/* ========================================
   NRI Migration Tool - Apple Minimal Design
   ======================================== */

.nri-migration-page {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    transition: background 0.3s ease;
}

/* Dark mode gradient - fixed */
html[data-theme="dark"] .nri-migration-page,
body:not(.light-mode) .nri-migration-page {
    background: linear-gradient(135deg, #0a0a0f 0%, #0f1419 100%);
}

/* Light mode gradient */
html[data-theme="light"] .nri-migration-page,
body.light-mode .nri-migration-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.nri-migration-page .app-container {
    visibility: visible !important;
    display: flex !important;
    flex-direction: column !important;
    grid-template-areas: none !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    min-height: 100vh;
}

.nri-migration-page .header {
    position: relative;
    width: 100%;
    flex-shrink: 0;
    background: var(--gradient-header);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px var(--spacing-2xl, 24px);
    backdrop-filter: blur(20px);
}

.nri-migration-page .logo-title-container {
    flex: 0 0 auto;
    min-width: 0;
}

.nri-migration-page .logo-title-wrapper {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 6px;
}

.nri-migration-page .logo-title-main {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--theme-text-primary);
    margin: 0;
    padding: 0;
}

.nri-migration-page .logo-title-sub {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--theme-text-primary);
    margin: 0;
    padding: 0;
}

.nri-migration-page .header-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    white-space: nowrap;
}

.nri-migration-page .header-nav-link {
    color: var(--theme-text-secondary, #666);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 6px 12px;
    border-radius: 6px;
    position: relative;
}

.nri-migration-page .header-nav-link:hover {
    color: var(--theme-text-primary, #212529);
    background: rgba(255, 255, 255, 0.05);
}

.nri-migration-page .header-nav-link.active {
    color: var(--theme-text-primary, #212529);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
    transform: translateY(1px);
    font-weight: 600;
}

html[data-theme="dark"] .nri-migration-page .header-nav-link,
body:not(.light-mode) .nri-migration-page .header-nav-link {
    color: var(--theme-text-secondary, #999);
}

html[data-theme="dark"] .nri-migration-page .header-nav-link:hover,
body:not(.light-mode) .nri-migration-page .header-nav-link:hover {
    color: var(--theme-text-primary, #ffffff);
}

html[data-theme="dark"] .nri-migration-page .header-nav-link.active,
body:not(.light-mode) .nri-migration-page .header-nav-link.active {
    color: var(--theme-text-primary, #ffffff);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

html[data-theme="light"] .nri-migration-page .header-nav-link.active,
body.light-mode .nri-migration-page .header-nav-link.active {
    background: rgba(0, 0, 0, 0.06);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nri-migration-page .header-controls {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: var(--spacing-xl, 16px);
    margin-left: auto;
}

.nri-main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    overflow-y: auto;
}

.nri-container {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

/* Header */
.nri-header {
    text-align: center;
    margin-bottom: 48px;
    animation: fadeIn 0.6s ease-out;
}

.nri-title {
    font-weight: 700;
    color: var(--theme-text-primary, #212529);
    margin-bottom: 16px;
    line-height: 1.2;
    transition: color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.nri-title-small {
    font-size: clamp(28px, 6vw, 36px);
}

.nri-title-large {
    font-size: clamp(40px, 9vw, 56px);
}

html[data-theme="dark"] .nri-title,
body:not(.light-mode) .nri-title {
    color: var(--theme-text-primary, #ffffff);
}

.nri-subtitle {
    font-size: 18px;
    color: var(--theme-text-secondary, #666);
    font-weight: 400;
    max-width: 500px;
    margin: 0 auto;
    transition: color 0.3s ease;
}

/* Form Card */
.nri-form-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1), 0 0 1px rgba(0, 0, 0, 0.05);
    animation: slideUp 0.6s ease-out;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

html[data-theme="dark"] .nri-form-card,
body:not(.light-mode) .nri-form-card {
    background: rgba(30, 30, 30, 0.95);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 1px rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Autocomplete */
.nri-autocomplete-wrapper {
    position: relative;
}

.nri-autocomplete-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    border: 2px solid var(--theme-border, #E5E5E5);
    border-radius: 12px;
    background: white;
    color: #000;
    outline: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

html[data-theme="dark"] .nri-autocomplete-input,
body:not(.light-mode) .nri-autocomplete-input {
    background: rgba(45, 45, 45, 0.8);
    border-color: rgba(64, 64, 64, 1);
    color: var(--theme-text-primary, #fff);
}

.nri-autocomplete-input:hover {
    border-color: var(--theme-primary, #007AFF);
}

.nri-autocomplete-input:focus {
    border-color: var(--theme-primary, #007AFF);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.nri-autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--theme-bg-primary, white);
    border: 2px solid var(--theme-border, #E5E5E5);
    border-top: none;
    border-radius: 0 0 12px 12px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: -2px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    touch-action: manipulation; /* Better touch handling on mobile */
}

html[data-theme="dark"] .nri-autocomplete-dropdown,
body:not(.light-mode) .nri-autocomplete-dropdown {
    background: rgba(30, 30, 30, 0.98);
    border-color: rgba(64, 64, 64, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nri-autocomplete-dropdown.show {
    display: block;
}

.nri-autocomplete-header {
    padding: 8px 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--theme-text-secondary, #666);
    background: var(--theme-bg-secondary, #f8f9fa);
    border-bottom: 1px solid var(--theme-border, #E5E5E5);
    position: sticky;
    top: 0;
    z-index: 10;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

html[data-theme="dark"] .nri-autocomplete-header,
body:not(.light-mode) .nri-autocomplete-header {
    background: rgba(45, 45, 45, 0.8);
    border-bottom-color: rgba(64, 64, 64, 1);
    color: var(--theme-text-secondary, #b3b3b3);
}

.nri-autocomplete-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: #000;
    font-size: 15px;
    touch-action: manipulation; /* Prevent double-tap zoom on mobile */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
    user-select: none; /* Prevent text selection on mobile */
}

html[data-theme="dark"] .nri-autocomplete-item,
body:not(.light-mode) .nri-autocomplete-item {
    border-bottom-color: rgba(255, 255, 255, 0.1);
    color: var(--theme-text-primary, #fff);
}

.nri-autocomplete-item:last-child {
    border-bottom: none;
}

.nri-autocomplete-item:hover,
.nri-autocomplete-item.highlighted {
    background: rgba(0, 122, 255, 0.1);
}

html[data-theme="dark"] .nri-autocomplete-item:hover,
body:not(.light-mode) .nri-autocomplete-item:hover,
html[data-theme="dark"] .nri-autocomplete-item.highlighted,
body:not(.light-mode) .nri-autocomplete-item.highlighted {
    background: rgba(255, 255, 255, 0.1);
}

/* Scrollbar styling for autocomplete dropdown */
.nri-autocomplete-dropdown::-webkit-scrollbar {
    width: 6px;
}

.nri-autocomplete-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.nri-autocomplete-dropdown::-webkit-scrollbar-thumb {
    background: var(--theme-border, #ccc);
    border-radius: 3px;
}

.nri-autocomplete-dropdown::-webkit-scrollbar-thumb:hover {
    background: var(--theme-text-secondary, #999);
}

.nri-autocomplete-item-name {
    font-weight: 500;
    color: inherit;
}

.nri-autocomplete-item-country {
    font-size: 13px;
    color: var(--theme-text-secondary, #666);
    margin-left: 8px;
}

/* Form Groups */
.nri-form-group {
    margin-bottom: 32px;
}

.nri-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--theme-text-secondary, #666);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}


/* Salary Input */
.nri-salary-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.nri-currency-symbol {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: var(--theme-text-secondary, #999);
    font-weight: 600;
    pointer-events: none;
    z-index: 1;
    transition: color 0.3s ease;
    white-space: nowrap;
    min-width: 20px; /* Minimum width for single char symbols */
    text-align: left;
}

.nri-salary-hint {
    margin-top: 8px;
    font-size: 12px;
    color: var(--theme-text-secondary, #999);
    font-weight: 400;
    transition: color 0.3s ease;
    line-height: 1.4;
}

.nri-salary-input {
    width: 100%;
    padding: 18px 20px 18px 50px; /* Default padding, will be adjusted dynamically for longer symbols */
    font-size: 24px;
    font-weight: 600;
    border: 2px solid var(--theme-border, #E5E5E5);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--theme-text-primary, #212529);
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
    text-align: left;
    box-sizing: border-box;
}

html[data-theme="dark"] .nri-salary-input,
body:not(.light-mode) .nri-salary-input {
    background: rgba(45, 45, 45, 0.8);
    border-color: rgba(64, 64, 64, 1);
    color: var(--theme-text-primary, #fff);
}

.nri-salary-input:hover {
    border-color: var(--theme-primary, #007AFF);
}

.nri-salary-input:focus {
    border-color: var(--theme-primary, #007AFF);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

/* Calculate Button */
.nri-calculate-btn {
    width: 100%;
    padding: 18px;
    font-size: 17px;
    font-weight: 600;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d4a6b 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(30, 58, 95, 0.3);
    font-family: inherit;
}

.nri-calculate-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(30, 58, 95, 0.4);
}

.nri-calculate-btn:active:not(:disabled) {
    transform: translateY(0);
}

.nri-calculate-btn:disabled {
    background: var(--theme-border, #E5E5E5);
    color: var(--theme-text-secondary, #999);
    cursor: not-allowed;
    box-shadow: none;
}

/* Results */
.nri-results {
    animation: fadeIn 0.6s ease-out;
}

.nri-result-hero {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 32px 48px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
    text-align: center;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .nri-result-hero,
body:not(.light-mode) .nri-result-hero {
    background: rgba(30, 30, 30, 0.95);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border-color: rgba(64, 64, 64, 1);
}

.nri-result-label {
    font-size: 14px;
    color: var(--theme-text-secondary, #666);
    font-weight: 500;
    margin-bottom: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nri-result-salary {
    font-size: clamp(56px, 10vw, 72px);
    font-weight: 100;
    color: var(--color-text-primary, #000);
    margin-bottom: 12px;
    line-height: 1;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
    animation: nri-glow 3s ease-in-out infinite alternate;
}

@keyframes nri-glow {
    from { text-shadow: 0 0 30px rgba(255, 255, 255, 0.1); }
    to { text-shadow: 0 0 40px rgba(0, 122, 255, 0.3); }
}

html[data-theme="dark"] .nri-result-salary,
body:not(.light-mode) .nri-result-salary {
    color: var(--color-text-primary, #fff);
    text-shadow: 0 0 30px rgba(0, 122, 255, 0.2);
    animation: nri-glow-dark 3s ease-in-out infinite alternate;
}

@keyframes nri-glow-dark {
    from { text-shadow: 0 0 30px rgba(0, 122, 255, 0.2); }
    to { text-shadow: 0 0 50px rgba(0, 122, 255, 0.4); }
}

.nri-result-cities {
    font-size: 16px;
    color: var(--theme-text-secondary, #666);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
    transition: color 0.3s ease;
    flex-wrap: wrap;
}

.nri-origin-salary {
    font-weight: 600;
    color: var(--theme-text-primary, #000);
    opacity: 0.9;
}

html[data-theme="dark"] .nri-origin-salary,
body:not(.light-mode) .nri-origin-salary {
    color: var(--theme-text-primary, #fff);
}

.nri-city-separator {
    font-weight: 400;
    opacity: 0.7;
    font-size: 14px;
}

.nri-result-ppp {
    font-size: 14px;
    color: var(--theme-text-secondary, #999);
    font-weight: 400;
    transition: color 0.3s ease;
}

/* Breakdown Card */
.nri-breakdown-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .nri-breakdown-card,
body:not(.light-mode) .nri-breakdown-card {
    background: rgba(30, 30, 30, 0.95);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border-color: rgba(64, 64, 64, 1);
}

.nri-breakdown-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--theme-text-primary, #000);
    margin-bottom: 24px;
    transition: color 0.3s ease;
}

.nri-breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nri-breakdown-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nri-breakdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nri-breakdown-name {
    font-size: 15px;
    color: var(--theme-text-secondary, #666);
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nri-breakdown-icon {
    font-size: 18px;
    opacity: 0.8;
}

html[data-theme="dark"] .nri-breakdown-name,
body:not(.light-mode) .nri-breakdown-name {
    color: var(--theme-text-secondary, #b3b3b3);
}

.nri-breakdown-value {
    font-size: 15px;
    color: var(--theme-text-primary, #000);
    font-weight: 600;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nri-breakdown-ratio {
    font-size: 13px;
    font-weight: 500;
    color: var(--theme-text-secondary, #666);
    opacity: 0.8;
}

.nri-breakdown-percent {
    font-weight: 600;
    min-width: 40px;
    text-align: right;
}

html[data-theme="dark"] .nri-breakdown-value,
body:not(.light-mode) .nri-breakdown-value {
    color: var(--theme-text-primary, #fff);
}

html[data-theme="dark"] .nri-breakdown-ratio,
body:not(.light-mode) .nri-breakdown-ratio {
    color: var(--theme-text-secondary, #b3b3b3);
}

.nri-breakdown-empty {
    text-align: center;
    padding: 24px;
    color: var(--theme-text-secondary, #666);
    font-size: 14px;
}

html[data-theme="dark"] .nri-breakdown-empty,
body:not(.light-mode) .nri-breakdown-empty {
    color: var(--theme-text-secondary, #b3b3b3);
}

.nri-breakdown-bar {
    height: 6px;
    background: var(--theme-bg-tertiary, #F0F0F0);
    border-radius: 3px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.nri-breakdown-fill {
    height: 100%;
    background: linear-gradient(90deg, #1e3a5f 0%, #2d4a6b 100%);
    border-radius: 3px;
    transition: width 0.6s ease-out;
}

/* Actions */
.nri-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.nri-action-btn {
    padding: 16px;
    font-size: 15px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.95);
    color: var(--theme-primary, #007AFF);
    border: 2px solid var(--theme-border, #E5E5E5);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

html[data-theme="dark"] .nri-action-btn,
body:not(.light-mode) .nri-action-btn {
    background: rgba(30, 30, 30, 0.95);
    border-color: rgba(64, 64, 64, 1);
    color: var(--theme-primary, #4dabf7);
}

.nri-action-btn:hover:not(:disabled) {
    border-color: var(--theme-primary, #007AFF);
    transform: translateY(-2px);
}

.nri-action-btn:active:not(:disabled) {
    transform: translateY(0);
}

.nri-action-btn:disabled {
    opacity: 0.5;
    cursor: help;
    pointer-events: auto;
}

.nri-new-calculation {
    width: 100%;
    padding: 16px;
    font-size: 15px;
    font-weight: 600;
    background: transparent;
    color: var(--theme-primary, #007AFF);
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.nri-new-calculation:hover:not(:disabled),
.nri-new-calculation:active:not(:disabled) {
    opacity: 0.8;
}

.nri-new-calculation:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Mobile-specific improvements */
@media (max-width: 768px) {
    .nri-new-calculation {
        padding: 18px 16px;
        font-size: 16px;
        min-height: 48px; /* Minimum touch target size */
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
    /* Mobile Header Styling */
    .nri-migration-page .header {
        min-height: auto;
        padding: 10px 16px;
        align-items: flex-start;
    }

    .nri-migration-page .logo-title-container {
        align-items: flex-start;
        gap: 12px;
    }

    .nri-migration-page .logo-image {
        height: 48px !important;
        margin-right: 0 !important;
        flex-shrink: 0;
        align-self: flex-start;
        margin-top: 2px;
    }

    .nri-migration-page .logo-title-wrapper {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        flex: 1;
    }

    .nri-migration-page .logo-title-main {
        font-size: clamp(18px, 4.5vw, 22px);
        font-weight: 700;
        line-height: 1.2;
        color: var(--theme-text-primary);
        margin: 0;
        padding: 0;
    }

    .nri-migration-page .logo-title-sub {
        font-size: clamp(13px, 3.2vw, 15px);
        font-weight: 500;
        line-height: 1.2;
        color: var(--theme-text-secondary);
        margin: 0;
        padding: 0;
    }

    .nri-migration-page .header-controls {
        align-items: flex-start;
        margin-top: 4px;
    }

    /* Hide navigation links on mobile */
    .nri-migration-page .desktop-only {
        display: none;
    }

    .nri-migration-page .header {
        padding: 10px 16px;
    }

    /* Make logo clickable on mobile */
    .nri-migration-page .logo-title-container {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .nri-migration-page .logo-title-container:active {
        opacity: 0.7;
    }

    .nri-main-content {
        padding: 20px 16px;
    }

    .nri-form-card,
    .nri-result-hero,
    .nri-breakdown-card {
        padding: 32px 24px;
    }

    .nri-title {
        font-size: 36px;
    }

    .nri-result-salary {
        font-size: 48px;
    }

    .nri-actions {
        grid-template-columns: 1fr;
    }
}

/* Mobile Menu */
.nri-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    pointer-events: none;
}

.nri-mobile-menu[style*="display: block"] {
    pointer-events: auto;
}

.nri-mobile-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nri-mobile-menu[style*="display: block"] .nri-mobile-menu-overlay {
    opacity: 1;
}

.nri-mobile-menu-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 280px;
    max-width: 85vw;
    height: 100%;
    background: var(--theme-bg-primary, #ffffff);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

html[data-theme="dark"] .nri-mobile-menu-content,
body:not(.light-mode) .nri-mobile-menu-content {
    background: var(--theme-bg-primary, #121212);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.5);
}

.nri-mobile-menu[style*="display: block"] .nri-mobile-menu-content {
    transform: translateX(0);
}

.nri-mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--theme-border, rgba(0, 0, 0, 0.1));
}

.nri-mobile-menu-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--theme-text-primary);
    margin: 0;
}

.nri-mobile-menu-close {
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--theme-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.nri-mobile-menu-close:hover {
    background: var(--theme-bg-secondary, rgba(0, 0, 0, 0.05));
    color: var(--theme-text-primary);
}

.nri-mobile-menu-close:active {
    transform: scale(0.95);
}

.nri-mobile-menu-nav {
    display: flex;
    flex-direction: column;
    padding: 8px;
}

.nri-mobile-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    color: var(--theme-text-primary);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s ease;
    font-size: 16px;
    font-weight: 500;
    -webkit-tap-highlight-color: transparent;
}

.nri-mobile-menu-item:hover {
    background: var(--theme-bg-secondary, rgba(0, 0, 0, 0.05));
}

.nri-mobile-menu-item:active {
    transform: scale(0.98);
    background: var(--theme-bg-tertiary, rgba(0, 0, 0, 0.1));
}

.nri-mobile-menu-item svg {
    color: var(--theme-text-secondary);
    flex-shrink: 0;
}

@media (min-width: 769px) {
    .nri-mobile-menu {
        display: none !important;
    }
    
    .nri-migration-page .logo-title-container {
        cursor: default;
    }
}

/* ========================================
   FAQ SECTION - Always Expanded with Left Nav
   ======================================== */

.nri-faq-container {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 2px solid var(--theme-border, rgba(0, 0, 0, 0.1));
    background: var(--theme-bg-secondary, #f8f9fa);
    min-height: 400px;
}

html[data-theme="dark"] .nri-faq-container,
body:not(.light-mode) .nri-faq-container {
    background: var(--theme-bg-secondary, #1a1a1a);
    border-top-color: rgba(255, 255, 255, 0.1);
}

.nri-faq-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
    align-items: start;
}

/* Left Navigation Panel */
.nri-faq-nav {
    position: sticky;
    top: 100px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--theme-border, rgba(0, 0, 0, 0.1));
    height: fit-content;
}

html[data-theme="dark"] .nri-faq-nav,
body:not(.light-mode) .nri-faq-nav {
    background: rgba(30, 30, 30, 0.95);
    border-color: rgba(64, 64, 64, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nri-faq-nav-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--theme-text-primary, #212529);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--theme-border, rgba(0, 0, 0, 0.1));
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
}

html[data-theme="dark"] .nri-faq-nav-title,
body:not(.light-mode) .nri-faq-nav-title {
    color: var(--theme-text-primary, #ffffff);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.nri-faq-nav-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nri-faq-nav-link {
    color: var(--theme-text-secondary, #666);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
}

html[data-theme="dark"] .nri-faq-nav-link,
body:not(.light-mode) .nri-faq-nav-link {
    color: var(--theme-text-secondary, #999);
}

.nri-faq-nav-link:hover {
    background: var(--theme-bg-tertiary, rgba(0, 0, 0, 0.05));
    color: var(--theme-primary, #007AFF);
    transform: translateX(4px);
}

html[data-theme="dark"] .nri-faq-nav-link:hover,
body:not(.light-mode) .nri-faq-nav-link:hover {
    background: rgba(64, 64, 64, 0.5);
    color: var(--theme-primary, #4dabf7);
}

/* FAQ Content */
.nri-faq-content {
    background: transparent;
}

.nri-faq-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--theme-text-primary, #212529);
    margin-bottom: 40px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
}

html[data-theme="dark"] .nri-faq-title,
body:not(.light-mode) .nri-faq-title {
    color: var(--theme-text-primary, #ffffff);
}

.nri-faq-items {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.nri-faq-item {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--theme-border, rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
    scroll-margin-top: 100px; /* For smooth scrolling with sticky header */
}

html[data-theme="dark"] .nri-faq-item,
body:not(.light-mode) .nri-faq-item {
    background: rgba(30, 30, 30, 0.95);
    border-color: rgba(64, 64, 64, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nri-faq-item:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.nri-faq-question {
    font-size: 20px;
    font-weight: 600;
    color: var(--theme-text-primary, #212529);
    margin-bottom: 16px;
    line-height: 1.4;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
}

html[data-theme="dark"] .nri-faq-question,
body:not(.light-mode) .nri-faq-question {
    color: var(--theme-text-primary, #ffffff);
}

.nri-faq-answer {
    font-size: 15px;
    line-height: 1.7;
    color: var(--theme-text-secondary, #666);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
}

html[data-theme="dark"] .nri-faq-answer,
body:not(.light-mode) .nri-faq-answer {
    color: var(--theme-text-secondary, #999);
}

.nri-faq-answer p {
    margin-bottom: 16px;
}

.nri-faq-answer p:last-child {
    margin-bottom: 0;
}

.nri-faq-answer ul {
    margin: 16px 0;
    padding-left: 24px;
}

.nri-faq-answer li {
    margin-bottom: 8px;
}

.nri-faq-answer strong {
    color: var(--theme-text-primary, #212529);
    font-weight: 600;
}

html[data-theme="dark"] .nri-faq-answer strong,
body:not(.light-mode) .nri-faq-answer strong {
    color: var(--theme-text-primary, #ffffff);
}

.nri-faq-answer a {
    color: var(--theme-primary, #007AFF);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nri-faq-answer a:hover {
    text-decoration: underline;
}

html[data-theme="dark"] .nri-faq-answer a,
body:not(.light-mode) .nri-faq-answer a {
    color: var(--theme-primary, #4dabf7);
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .nri-faq-wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .nri-faq-nav {
        position: static;
        order: 2;
    }
    
    .nri-faq-content {
        order: 1;
    }
    
    .nri-faq-nav-links {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .nri-faq-nav-link {
        padding: 8px 16px;
        border: 1px solid var(--theme-border, rgba(0, 0, 0, 0.1));
        border-radius: 20px;
        font-size: 13px;
    }
    
    .nri-faq-nav-link:hover {
        transform: translateY(-2px);
    }
    
    .nri-faq-title {
        font-size: 28px;
        margin-bottom: 32px;
    }
    
    .nri-faq-item {
        padding: 24px;
    }
    
    .nri-faq-question {
        font-size: 18px;
    }
}
