/* ==========================================================================
   Modern Neumorphic Design - Product Discovery
   Color Scheme: White/Green (#85df6f) with subtle 3D effects
   ========================================================================== */

/* ==========================================================================
   CSS Variables
   ========================================================================== */

:root {
    /* Colors */
    --primary-green: #85df6f;
    --green-light: #a8e896;
    --green-dark: #6bc759;
    --background: #F8F9FA;
    --surface: #FFFFFF;
    --text-primary: #2D3436;
    --text-secondary: #636E72;
    --text-muted: #95A5A6;
    --border: #E8ECEF;

    /* Status Colors */
    --success: #85df6f;
    --warning: #FFA502;
    --danger: #FF6348;

    /* Neumorphic Shadows */
    --shadow-neumorph: 8px 8px 16px rgba(163, 177, 198, 0.6),
                       -8px -8px 16px rgba(255, 255, 255, 0.9);
    --shadow-neumorph-hover: 12px 12px 24px rgba(163, 177, 198, 0.7),
                             -12px -12px 24px rgba(255, 255, 255, 1);
    --shadow-neumorph-inset: inset 4px 4px 8px rgba(163, 177, 198, 0.5),
                             inset -4px -4px 8px rgba(255, 255, 255, 0.8);
    --shadow-neumorph-small: 6px 6px 12px rgba(163, 177, 198, 0.5),
                             -6px -6px 12px rgba(255, 255, 255, 0.8);

    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
}

/* ==========================================================================
   Global Styles
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.hidden {
    display: none !important;
}

/* ==========================================================================
   Animations
   ========================================================================== */

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes neumorph-pulse {
    0%, 100% {
        box-shadow:
            4px 4px 8px rgba(163, 177, 198, 0.5),
            -4px -4px 8px rgba(255, 255, 255, 0.8);
    }
    50% {
        box-shadow:
            8px 8px 16px rgba(163, 177, 198, 0.6),
            -8px -8px 16px rgba(255, 255, 255, 0.9);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInDown 0.6s ease;
}

.header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--green-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ==========================================================================
   Cards & Sections
   ========================================================================== */

.section {
    margin-bottom: 2rem;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card {
    background: var(--surface);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-neumorph);
    border: none;
    transition: var(--transition-smooth);
}

.card:hover {
    box-shadow: var(--shadow-neumorph-hover);
}

.card h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

/* ==========================================================================
   Tabs
   ========================================================================== */

.tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 0.5rem;
    background: var(--background);
    border-radius: 16px;
    box-shadow: var(--shadow-neumorph-inset);
}

.tab {
    flex: 1;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.tab:hover {
    color: var(--primary-green);
    background: rgba(133, 223, 111, 0.1);
}

.tab.active {
    background: var(--primary-green);
    color: white;
    box-shadow:
        inset 4px 4px 8px rgba(0, 0, 0, 0.15),
        inset -2px -2px 6px rgba(255, 255, 255, 0.2);
}

.tab-icon {
    font-size: 1.25rem;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: slideUp 0.3s ease;
}

/* ==========================================================================
   Forms & Inputs
   ========================================================================== */

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.input-group input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--background);
    box-shadow: var(--shadow-neumorph-inset);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.input-group input::placeholder {
    color: var(--text-muted);
}

.input-group input:focus {
    outline: none;
    box-shadow:
        inset 6px 6px 12px rgba(133, 223, 111, 0.2),
        inset -2px -2px 6px rgba(255, 255, 255, 0.9);
}

.input-group small {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    display: inline-block;
    box-shadow: var(--shadow-neumorph-small);
}

.btn:active {
    transform: translateY(1px);
    box-shadow: var(--shadow-neumorph-inset);
}

.btn-primary {
    background: var(--primary-green);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-neumorph);
}

.btn-primary:disabled,
.btn-primary.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    background: var(--text-secondary);
}

.btn-primary:disabled:hover,
.btn-primary.disabled:hover {
    transform: none;
    box-shadow: var(--shadow-neumorph-small);
}

.btn-secondary {
    background: var(--background);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--surface);
    transform: translateY(-2px);
    box-shadow: var(--shadow-neumorph);
}

.btn-success {
    background: var(--success);
    color: white;
    flex: 1;
}

.btn-success:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--danger);
    color: white;
    flex: 1;
}

.btn-danger:hover {
    background: #E84118;
    transform: translateY(-2px);
}

.button-group {
    display: flex;
    gap: 1rem;
}

/* ==========================================================================
   Progress Section
   ========================================================================== */

.progress-stages {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.progress-stage {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--surface);
    border-radius: 16px;
    box-shadow: var(--shadow-neumorph-small);
    transition: var(--transition-smooth);
}

.progress-stage-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    transition: var(--transition-fast);
}

.progress-stage-icon.pending {
    background: var(--background);
    color: var(--text-muted);
    box-shadow: var(--shadow-neumorph-inset);
}

.progress-stage-icon.running {
    background: var(--primary-green);
    color: white;
    box-shadow: var(--shadow-neumorph-small);
    animation: neumorph-pulse 2s ease-in-out infinite;
}

.progress-stage-icon.success {
    background: var(--success);
    color: white;
    box-shadow: var(--shadow-neumorph-small);
    animation: bounce 0.5s ease;
}

.progress-stage-icon.waiting {
    background: var(--warning);
    color: white;
    box-shadow: var(--shadow-neumorph-small);
    animation: neumorph-pulse 2s ease-in-out infinite;
}

.progress-stage-info {
    flex: 1;
}

.progress-stage-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.progress-stage-message {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.progress-logs {
    max-height: 300px;
    overflow-y: auto;
    background: var(--background);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: var(--shadow-neumorph-inset);
}

.progress-log {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
}

.progress-log:last-child {
    border-bottom: none;
}

.progress-log-time {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

/* ==========================================================================
   Confirmation Section
   ========================================================================== */

.confirmation-content {
    margin-top: 1.5rem;
}

.confirmation-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.confirmation-item {
    padding: 1.25rem;
    background: var(--surface);
    border-radius: 16px;
    box-shadow: var(--shadow-neumorph-small);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.confirmation-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-neumorph);
}

.confirmation-item.selected {
    background: linear-gradient(135deg,
        rgba(133, 223, 111, 0.15) 0%,
        rgba(133, 223, 111, 0.05) 100%);
    box-shadow:
        inset 3px 3px 6px rgba(133, 223, 111, 0.25),
        6px 6px 12px rgba(163, 177, 198, 0.5),
        -6px -6px 12px rgba(255, 255, 255, 0.9);
}

.confirmation-radio {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--background);
    box-shadow: var(--shadow-neumorph-inset);
    transition: var(--transition-fast);
}

.confirmation-item.selected .confirmation-radio {
    background: var(--primary-green);
    box-shadow: var(--shadow-neumorph-small);
}

.confirmation-item.selected .confirmation-radio::after {
    content: "✓";
    color: white;
    font-size: 1rem;
    font-weight: 700;
}

.confirmation-details {
    flex: 1;
}

.confirmation-details strong {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.confirmation-details small {
    color: var(--text-secondary);
    font-size: 0.875rem;
    display: block;
}

.extracted-details {
    background: var(--background);
    padding: 1.75rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-neumorph-inset);
}

.extracted-details div {
    margin-bottom: 1.25rem;
}

.extracted-details div:last-child {
    margin-bottom: 0;
}

.extracted-details strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.extracted-details span {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ==========================================================================
   Results Section
   ========================================================================== */

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.results-count {
    background: var(--primary-green);
    color: white;
    padding: 0.625rem 1.25rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: var(--shadow-neumorph-small);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.result-card {
    background: var(--surface);
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: var(--shadow-neumorph);
    transition: var(--transition-smooth);
}

.result-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        12px 12px 24px rgba(163, 177, 198, 0.7),
        -12px -12px 24px rgba(255, 255, 255, 1);
}

.result-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-neumorph-small);
}

.result-badge.individual {
    background: rgba(133, 223, 111, 0.2);
    color: var(--green-dark);
}

.result-badge.combo {
    background: rgba(255, 165, 2, 0.2);
    color: #D98C00;
}

.result-price {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--green-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.result-price-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 500;
}

.result-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.result-platform {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.result-link {
    display: inline-block;
    width: 100%;
    padding: 0.875rem;
    background: var(--primary-green);
    color: white;
    text-align: center;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-neumorph-small);
}

.result-link:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-neumorph);
}

.results-footer {
    text-align: center;
}

/* ==========================================================================
   Error Section
   ========================================================================== */

.error-card {
    text-align: center;
    border: 3px solid var(--danger);
    background: rgba(255, 99, 72, 0.05);
}

.error-card h2 {
    color: var(--danger);
    margin-bottom: 1rem;
}

.error-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Loading Overlay
   ========================================================================== */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(248, 249, 250, 0.95);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--background);
    box-shadow: var(--shadow-neumorph-inset);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: var(--primary-green);
    border-right-color: var(--primary-green);
    animation: spin 1s linear infinite;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .header h1 {
        font-size: 2.25rem;
    }

    .card {
        padding: 1.75rem;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .tabs {
        flex-direction: column;
        gap: 0.5rem;
    }

    .tab {
        padding: 0.875rem 1.25rem;
    }

    .button-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .results-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.875rem;
    }

    .container {
        padding: 1.5rem 0.75rem;
    }

    .card {
        padding: 1.5rem;
    }

    .result-price {
        font-size: 1.75rem;
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.text-center {
    text-align: center;
}

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.5rem !important; }
.mb-2 { margin-bottom: 1rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.5rem !important; }
.mt-2 { margin-top: 1rem !important; }
.mt-3 { margin-top: 1.5rem !important; }

/* ==========================================================================
   Authentication Styles
   ========================================================================== */

/* Header Layout */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.header-title {
    flex: 1;
}

/* Auth Controls */
.auth-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--background);
    padding: 0.75rem 1.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-neumorph-inset);
}

.user-phone {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.session-info {
    background: rgba(133, 223, 111, 0.15);
    color: var(--green-dark);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Auth Modal */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
}

.auth-modal-content {
    position: relative;
    background: var(--surface);
    border-radius: 24px;
    padding: 3rem;
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        var(--shadow-neumorph);
    animation: slideUp 0.3s ease;
}

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

.auth-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--background);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    box-shadow: var(--shadow-neumorph-small);
}

.auth-modal-close:hover {
    background: var(--danger);
    color: white;
    transform: rotate(90deg);
}

.auth-modal-alert {
    background: rgba(133, 223, 111, 0.1);
    border-left: 4px solid var(--primary-green);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* Auth Screens */
.auth-screen {
    animation: slideUp 0.3s ease;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.back-button {
    background: none;
    border: none;
    color: var(--primary-green);
    cursor: pointer;
    font-size: 0.95rem;
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    transition: var(--transition-fast);
}

.back-button:hover {
    color: var(--green-dark);
}

/* Phone Input */
.phone-input-wrapper {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.country-code {
    background: var(--background);
    padding: 1rem 1.25rem;
    border-radius: 12px 0 0 12px;
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: var(--shadow-neumorph-inset);
    display: flex;
    align-items: center;
}

.phone-input-wrapper input {
    flex: 1;
    border-radius: 0 12px 12px 0 !important;
    margin: 0 !important;
}

/* OTP Input */
.otp-input {
    text-align: center;
    font-size: 1.5rem !important;
    font-weight: 600;
    letter-spacing: 0.5rem;
    font-family: 'Courier New', monospace;
}

/* Remember Me */
.remember-me {
    margin: 1.5rem 0;
}

.remember-me label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.remember-me input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Auth Button */
.auth-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* Resend OTP */
.resend-otp {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.resend-otp span {
    display: block;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary-green);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    transition: var(--transition-fast);
}

.btn-link:hover:not(:disabled) {
    color: var(--green-dark);
    text-decoration: underline;
}

.btn-link:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Error/Success Messages */
.error-message {
    color: var(--danger);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 99, 72, 0.1);
    border-radius: 8px;
}

.success-message {
    color: var(--success);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(133, 223, 111, 0.1);
    border-radius: 8px;
}

/* Spinner */
.spinner-small {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Responsive Auth */
@media (max-width: 768px) {
    .auth-modal-content {
        padding: 2rem;
        max-width: 95%;
    }

    .header-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .auth-controls {
        justify-content: center;
    }
}

/* ============================================================================ */
/* Multi-Type Variant Selection (NEW) */
/* ============================================================================ */

.variant-selection-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.variant-selection-header h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.variant-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.step-indicator {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg,
        rgba(133, 223, 111, 0.15) 0%,
        rgba(133, 223, 111, 0.05) 100%);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-green);
    box-shadow: var(--shadow-neumorph-inset);
}

.selected-variants-summary {
    display: none; /* Hidden by default */
    background: var(--surface);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-neumorph-small);
}

.selected-variants-summary h4 {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.selected-variants-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.selected-variant-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: var(--text-primary);
    padding: 0.5rem;
    background: rgba(133, 223, 111, 0.08);
    border-radius: 8px;
}

.selected-variant-item strong {
    color: var(--text-secondary);
    min-width: 80px;
}

.all-variant-types-container {
    max-height: 60vh;
    overflow-y: auto;
    padding: 1rem 0;
    margin-bottom: 1.5rem;
}

.all-variant-types-container::-webkit-scrollbar {
    width: 8px;
}

.all-variant-types-container::-webkit-scrollbar-track {
    background: var(--surface);
    border-radius: 4px;
}

.all-variant-types-container::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 4px;
}

.variant-type-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(133, 223, 111, 0.1);
}

.variant-type-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.variant-type-section h4 {
    margin: 0 0 1rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
}

.variant-options-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.variant-option-item {
    padding: 1rem 1.25rem;
    background: var(--surface);
    border-radius: 16px;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-neumorph-small);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.variant-option-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-neumorph);
}

.variant-option-item.selected {
    background: linear-gradient(135deg,
        rgba(133, 223, 111, 0.15) 0%,
        rgba(133, 223, 111, 0.05) 100%);
    box-shadow: var(--shadow-neumorph);
}

.variant-option-item.extracted-value {
    border: 2px solid rgba(133, 223, 111, 0.3);
}

.variant-option-item input[type="radio"] {
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--background);
    box-shadow: var(--shadow-neumorph-inset);
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.variant-option-item input[type="radio"]:checked {
    background: var(--primary-green);
    box-shadow: var(--shadow-neumorph-small);
}

.variant-option-item input[type="radio"]:checked::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1rem;
    font-weight: bold;
}

.variant-option-item label {
    cursor: pointer;
    flex: 1;
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.extracted-badge {
    font-size: 0.875rem;
    color: var(--primary-green);
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    background: rgba(133, 223, 111, 0.15);
    border-radius: 12px;
    margin-left: 0.5rem;
}

/* Auto-selection message for single-option variants */
.auto-select-message {
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg,
        rgba(133, 223, 111, 0.1) 0%,
        rgba(133, 223, 111, 0.05) 100%);
    border: 1px solid rgba(133, 223, 111, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-neumorph-small);
}

.auto-select-message .info-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.auto-select-message .message-text {
    font-size: 0.9375rem;
    color: var(--text-primary);
    line-height: 1.5;
}

.auto-select-message strong {
    color: var(--primary-green);
    font-weight: 600;
}

/* Button for confirming variant type */
#confirm-variant-type-btn {
    width: 100%;
    margin-top: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .variant-selection-header h3 {
        font-size: 1.25rem;
    }

    .variant-option-item {
        padding: 0.875rem 1rem;
    }

    .selected-variant-item strong {
        min-width: 70px;
        font-size: 0.875rem;
    }
}
