/* ==========================================================================
   SELLER UPGRADE - Customer to Seller
   The Original Lab - Modern Design
   ========================================================================== */

/* Root Variables (heredadas del sistema) */
:root {
    --primary: #1a1a2e;
    --primary-light: #2d2d44;
    --accent: #130c9d;
    --accent-light: #060aed;
    --accent-dark: #1c0dc7;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --border: #e5e7eb;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
    
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    
    --transition-fast: 150ms ease-in-out;
    --transition-base: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
}

/* ==========================================================================
   HEADER / HERO BANNER
   ========================================================================== */

.seller_upgrade_header {
    background: linear-gradient(135deg, #021469 0%, #130523 100%);
    padding: var(--spacing-3xl) 0;
    position: relative;
    overflow: hidden;
    margin-bottom: var(--spacing-2xl);
}

.seller_upgrade_header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none"/><path d="M0 0L50 50M50 0L100 50M0 50L50 100M50 50L100 100" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></svg>');
    opacity: 0.3;
}

.seller_upgrade_banner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    position: relative;
    z-index: 1;
}

.seller_upgrade_banner_content {
    text-align: center;
    color: white;
}

.seller_upgrade_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-2xl);
    margin: 0 auto var(--spacing-lg);
    backdrop-filter: blur(10px);
}

.seller_upgrade_icon svg {
    width: 48px;
    height: 48px;
    stroke-width: 2;
}

.seller_upgrade_title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

@media (min-width: 768px) {
    .seller_upgrade_title {
        font-size: 3.5rem;
    }
}

.seller_upgrade_subtitle {
    font-size: 1.125rem;
    line-height: 1.7;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

/* ==========================================================================
   BENEFITS SECTION
   ========================================================================== */

.seller_upgrade_benefits {
    max-width: 1280px;
    margin: 0 auto var(--spacing-3xl);
    padding: 0 var(--spacing-md);
}

.seller_upgrade_section_title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

@media (min-width: 768px) {
    .seller_upgrade_section_title {
        font-size: 2.5rem;
    }
}

.seller_upgrade_benefits_grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

@media (min-width: 640px) {
    .seller_upgrade_benefits_grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .seller_upgrade_benefits_grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.seller_upgrade_benefit_card {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: 1px solid var(--border);
    text-align: center;
}

.seller_upgrade_benefit_card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.seller_upgrade_benefit_icon {
    width: 70px;
    height: 70px;
    margin: 0 auto var(--spacing-md);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: transform var(--transition-base);
}

.seller_upgrade_benefit_card:hover .seller_upgrade_benefit_icon {
    transform: scale(1.1);
}

.seller_upgrade_benefit_card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.seller_upgrade_benefit_card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==========================================================================
   CARD SECTIONS
   ========================================================================== */

.seller_upgrade_user_info,
.seller_upgrade_products,
.seller_upgrade_confirmation {
    max-width: 1280px;
    margin: 0 auto var(--spacing-2xl);
    padding: 0 var(--spacing-md);
}

.seller_upgrade_card {
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    overflow: hidden;
}

.seller_upgrade_card_header {
    padding: var(--spacing-xl);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.seller_upgrade_card_title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.seller_upgrade_card_subtitle {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.seller_upgrade_card_body {
    padding: var(--spacing-xl);
}

/* ==========================================================================
   USER INFO SECTION
   ========================================================================== */

.seller_upgrade_current_user {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    margin-bottom: var(--spacing-xl);
}

.seller_upgrade_user_avatar {
    flex-shrink: 0;
}

.seller_upgrade_user_avatar img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 3px solid white;
    box-shadow: var(--shadow-md);
}

.seller_upgrade_user_details h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.seller_upgrade_user_details p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

.seller_upgrade_user_badge {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--accent);
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

/* ==========================================================================
   FORM SECTIONS
   ========================================================================== */

.seller_upgrade_form_section {
    margin-bottom: var(--spacing-xl);
}

.seller_upgrade_form_section:last-child {
    margin-bottom: 0;
}

.seller_upgrade_form_title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.seller_upgrade_form_description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.seller_upgrade_form_row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

@media (min-width: 640px) {
    .seller_upgrade_form_row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.seller_upgrade_form_group {
    margin-bottom: var(--spacing-md);
}

.seller_upgrade_label {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.seller_upgrade_label svg {
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

.seller_upgrade_input,
.seller_upgrade_textarea {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    font-family: var(--font-sans);
    color: var(--text-primary);
    transition: all var(--transition-fast);
    background: white;
}

.seller_upgrade_input:focus,
.seller_upgrade_textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(19, 12, 157, 0.1);
}

.seller_upgrade_textarea {
    resize: vertical;
    min-height: 100px;
}

/* ==========================================================================
   PRODUCT STATS
   ========================================================================== */

.seller_upgrade_product_stats {
    display: flex;
    gap: var(--spacing-xl);
}

.seller_upgrade_stat {
    text-align: center;
}

.seller_upgrade_stat_number {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.seller_upgrade_stat_label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   TOOLBAR
   ========================================================================== */

.seller_upgrade_toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    align-items: center;
}

.seller_upgrade_search_wrapper {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.seller_upgrade_search_wrapper svg {
    position: absolute;
    left: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    stroke-width: 2;
}

.seller_upgrade_search {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md) var(--spacing-sm) calc(var(--spacing-md) * 3);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
}

.seller_upgrade_search:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(19, 12, 157, 0.1);
}

.seller_upgrade_btn_select_all {
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all var(--transition-base);
}

.seller_upgrade_btn_select_all:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* ==========================================================================
   PRODUCTS GRID
   ========================================================================== */

.seller_upgrade_products_grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

@media (min-width: 640px) {
    .seller_upgrade_products_grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .seller_upgrade_products_grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.seller_upgrade_product_card {
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    transition: all var(--transition-base);
    cursor: pointer;
}

.seller_upgrade_product_card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-light);
}

.seller_upgrade_product_card.selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(19, 12, 157, 0.1);
}

/* Product Selection Checkbox */
.seller_upgrade_product_selection {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    z-index: 10;
}

.seller_upgrade_product_checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.seller_upgrade_product_check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.seller_upgrade_product_check svg {
    stroke-width: 3;
    opacity: 0;
    transform: scale(0);
    transition: all var(--transition-fast);
}

.seller_upgrade_product_checkbox:checked + .seller_upgrade_product_check {
    background: var(--accent);
    border-color: var(--accent);
}

.seller_upgrade_product_checkbox:checked + .seller_upgrade_product_check svg {
    opacity: 1;
    transform: scale(1);
    stroke: white;
}

/* Product Image */
.seller_upgrade_product_image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.seller_upgrade_product_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.seller_upgrade_product_card:hover .seller_upgrade_product_image img {
    transform: scale(1.05);
}

.seller_upgrade_product_placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Product Info */
.seller_upgrade_product_info {
    padding: var(--spacing-md);
}

.seller_upgrade_product_category {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-xs);
}

.seller_upgrade_product_info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.seller_upgrade_product_footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.seller_upgrade_product_price {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--text-primary);
}

.seller_upgrade_product_commission {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--success);
    background: rgba(16, 185, 129, 0.1);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-full);
}

/* ==========================================================================
   SUMMARY / CONFIRMATION
   ========================================================================== */

.seller_upgrade_card_sticky {
    position: sticky;
    top: var(--spacing-lg);
}

.seller_upgrade_summary_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.seller_upgrade_summary_header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.seller_upgrade_summary_badge {
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--accent);
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
}

.seller_upgrade_summary_items {
    margin-bottom: var(--spacing-lg);
}

.seller_upgrade_summary_item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--border);
}

.seller_upgrade_summary_item:last-child {
    border-bottom: none;
}

.seller_upgrade_summary_item.highlight {
    background: var(--bg-secondary);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    margin-top: var(--spacing-md);
    border: none;
}

.seller_upgrade_summary_item span {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.seller_upgrade_summary_item strong {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.seller_upgrade_summary_item.highlight strong {
    font-size: 1.25rem;
    color: var(--success);
}

/* ==========================================================================
   TERMS CHECKBOX
   ========================================================================== */

.seller_upgrade_terms {
    margin-bottom: var(--spacing-lg);
}

.seller_upgrade_checkbox_label {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    cursor: pointer;
}

.seller_upgrade_checkbox_label input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.seller_upgrade_checkbox_label span {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.seller_upgrade_link {
    color: var(--accent);
    font-weight: 600;
    text-decoration: underline;
}

.seller_upgrade_link:hover {
    color: var(--accent-dark);
}

/* ==========================================================================
   BUTTONS / ACTIONS
   ========================================================================== */

.seller_upgrade_actions {
    display: flex;
    gap: var(--spacing-md);
}

.seller_upgrade_btn {
    flex: 1;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
}

.seller_upgrade_btn svg {
    stroke-width: 2;
}

.seller_upgrade_btn_cancel {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border);
}

.seller_upgrade_btn_cancel:hover {
    background: var(--bg-secondary);
    border-color: var(--text-secondary);
}

.seller_upgrade_btn_primary {
    background: var(--accent);
    color: white;
}

.seller_upgrade_btn_primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.seller_upgrade_btn_primary:disabled {
    background: var(--bg-tertiary);
    color: var(--text-light);
    cursor: not-allowed;
    transform: none;
}

.seller_upgrade_btn_success {
    background: var(--success);
    color: white;
    width: 100%;
}

.seller_upgrade_btn_success:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   SUCCESS MODAL
   ========================================================================== */

.seller_upgrade_modal_overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: var(--spacing-md);
}

.seller_upgrade_modal {
    background: white;
    border-radius: var(--radius-2xl);
    padding: var(--spacing-2xl);
    max-width: 500px;
    width: 100%;
    box-shadow: var(--shadow-xl);
    text-align: center;
    animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.seller_upgrade_modal_success_icon {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--spacing-lg);
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.seller_upgrade_modal_success_icon svg {
    stroke-width: 2;
}

.seller_upgrade_modal_title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.seller_upgrade_modal_text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-xl);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 767px) {
    .seller_upgrade_title {
        font-size: 2rem;
    }
    
    .seller_upgrade_section_title {
        font-size: 1.75rem;
    }
    
    .seller_upgrade_current_user {
        flex-direction: column;
        text-align: center;
    }
    
    .seller_upgrade_actions {
        flex-direction: column;
    }
    
    .seller_upgrade_btn {
        width: 100%;
    }
    
    .seller_upgrade_card_header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .seller_upgrade_product_stats {
        width: 100%;
        justify-content: space-around;
    }
}
