/* ===== CSS DESIGN SYSTEM ===== */
:root {
    /* Colors - Dark Theme */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a2e;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --bg-glass: rgba(255, 255, 255, 0.03);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6b6b80;
    --text-accent: #667eea;
    
    /* Brand Colors */
    --accent-primary: #667eea;
    --accent-secondary: #764ba2;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-hover: linear-gradient(135deg, #7b8ff5 0%, #8a5cb5 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    
    /* Status Colors */
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.1);
    --error: #ef4444;
    --error-bg: rgba(239, 68, 68, 0.1);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.1);
    --info: #3b82f6;
    --info-bg: rgba(59, 130, 246, 0.1);
    
    /* Border & Dividers */
    --border-primary: rgba(255, 255, 255, 0.1);
    --border-secondary: rgba(255, 255, 255, 0.05);
    --border-accent: rgba(102, 126, 234, 0.3);
    
    /* Spacing Scale */
    --space-xs: 0.25rem;   /* 4px */
    --space-sm: 0.5rem;    /* 8px */
    --space-md: 1rem;      /* 16px */
    --space-lg: 1.5rem;    /* 24px */
    --space-xl: 2rem;      /* 32px */
    --space-2xl: 3rem;     /* 48px */
    --space-3xl: 4rem;     /* 64px */
    
    /* Border Radius */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 60px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 40px rgba(102, 126, 234, 0.3);
    --shadow-glow-hover: 0 0 60px rgba(102, 126, 234, 0.4);
    
    /* Typography */
    --font-family-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-family-mono: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', monospace;
    
    /* Font Sizes */
    --text-xs: 0.75rem;    /* 12px */
    --text-sm: 0.875rem;   /* 14px */
    --text-base: 1rem;     /* 16px */
    --text-lg: 1.125rem;   /* 18px */
    --text-xl: 1.25rem;    /* 20px */
    --text-2xl: 1.5rem;    /* 24px */
    --text-3xl: 1.875rem;  /* 30px */
    --text-4xl: 2.25rem;   /* 36px */
    --text-5xl: 3rem;      /* 48px */
    
    /* Font Weights */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;
    
    /* Line Heights */
    --leading-tight: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.75;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;
    --transition-bounce: 250ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Z-Index Scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    --z-toast: 1080;
}

/* ===== RESET & BASE STYLES ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family-primary);
    font-size: var(--text-base);
    font-weight: var(--font-normal);
    line-height: var(--leading-normal);
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== LAYOUT COMPONENTS ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-md);
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    background: var(--gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 50px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
}

.btn-full {
    width: 100%;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-primary);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
}

.logo-icon {
    font-size: 28px;
}

.logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    padding: 20px;
    border-bottom: 1px solid var(--border-primary);
    z-index: 999;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-primary);
}

.mobile-menu a {
    color: var(--text-primary);
    font-weight: 500;
}


/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(118, 75, 162, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(102, 126, 234, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--accent-primary);
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(40px, 8vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== Section Styles ===== */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-primary);
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* ===== Generator Section ===== */
.generator {
    background: var(--bg-secondary);
}

.generator-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 32px;
    border: 1px solid var(--border-primary);
    box-shadow: var(--shadow-lg);
}

/* Tabs */
.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: var(--bg-secondary);
    padding: 6px;
    border-radius: var(--radius-md);
}

.tab {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab:hover {
    color: var(--text-primary);
}

.tab.active {
    background: var(--gradient-primary);
    color: white;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Input Group */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-group input::placeholder,
.input-group textarea::placeholder {
    color: var(--text-muted);
}

.input-hint {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* Upload Area */
.upload-area {
    border: 2px dashed var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.upload-area:hover {
    border-color: var(--accent-primary);
    background: rgba(102, 126, 234, 0.05);
}

.upload-area.dragover {
    border-color: var(--accent-primary);
    background: rgba(102, 126, 234, 0.1);
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.upload-area p {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 4px;
}

.upload-area span {
    color: var(--text-muted);
    font-size: 14px;
}


/* ===== Result Area ===== */
.result-area {
    display: none;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-primary);
}

.result-area.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.result-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timer-ring {
    position: relative;
    width: 40px;
    height: 40px;
}

.timer-ring svg {
    transform: rotate(-90deg);
}

.timer-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.code-display {
    font-size: 56px;
    font-weight: 800;
    text-align: center;
    letter-spacing: 12px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.result-info {
    text-align: center;
    margin-bottom: 20px;
}

.result-info p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 4px 0;
}

.result-info strong {
    color: var(--text-primary);
}

.result-actions {
    display: flex;
    gap: 12px;
}

.result-actions .btn {
    flex: 1;
}

/* ===== How it Works Section ===== */
.how-it-works {
    background: var(--bg-primary);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.info-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.info-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.info-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

/* Steps */
.steps-container {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: 40px;
}

.steps-container h3 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 40px;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* ===== API Documentation ===== */
.api-docs {
    background: var(--bg-secondary);
}

.api-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.api-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.3s ease;
}

.api-card:hover {
    border-color: var(--accent-primary);
}

.api-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.method {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.method.post {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.method.get {
    background: rgba(102, 126, 234, 0.2);
    color: var(--accent-primary);
}

.api-header code {
    font-size: 14px;
    color: var(--text-secondary);
}

.api-desc {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
}

.api-example {
    margin-bottom: 12px;
}

.example-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.api-example pre {
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    padding: 12px;
    overflow-x: auto;
}

.api-example code {
    font-size: 13px;
    color: var(--text-primary);
    font-family: 'SF Mono', 'Fira Code', monospace;
}

/* Try API */
.try-api {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: 32px;
}

.try-api h3 {
    margin-bottom: 24px;
    font-size: 20px;
}

.try-api-form {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.try-api-form .input-group {
    flex: 1;
    min-width: 200px;
    margin-bottom: 0;
}

.try-api-result pre {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 16px;
    overflow-x: auto;
}

.try-api-result code {
    font-size: 13px;
    color: var(--text-secondary);
    font-family: 'SF Mono', 'Fira Code', monospace;
}


/* ===== About Section ===== */
.about {
    background: var(--bg-primary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 36px;
    font-weight: 700;
    margin: 16px 0;
}

.about-text > p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 24px;
}

.features-list {
    list-style: none;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: var(--text-secondary);
    font-size: 15px;
}

.features-list svg {
    color: var(--success);
    flex-shrink: 0;
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.security-badge {
    width: 280px;
    height: 280px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: var(--shadow-glow);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.shield-icon {
    font-size: 64px;
    margin-bottom: 12px;
}

.security-badge span {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-secondary);
    padding: 60px 0 24px;
    border-top: 1px solid var(--border-primary);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 12px;
    font-size: 14px;
}

.footer-links h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-primary);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 14px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-stats {
        gap: 30px;
    }

    .stat-number {
        font-size: 28px;
    }

    .code-display {
        font-size: 40px;
        letter-spacing: 8px;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-visual {
        order: -1;
    }

    .security-badge {
        width: 200px;
        height: 200px;
    }

    .shield-icon {
        font-size: 48px;
    }

    .security-badge span {
        font-size: 14px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .api-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        gap: 24px;
    }

    .step {
        flex-direction: column;
        text-align: center;
    }

    .step-number {
        margin: 0 auto;
    }

    .result-actions {
        flex-direction: column;
    }

    .try-api-form {
        flex-direction: column;
    }

    .try-api-form .btn {
        width: 100%;
    }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ===== Selection ===== */
::selection {
    background: rgba(102, 126, 234, 0.3);
    color: var(--text-primary);
}

/* ===== Toast Notification ===== */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 16px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    animation: slideIn 0.3s ease;
}

.toast.success {
    border-color: var(--success);
}

.toast.error {
    border-color: var(--error);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
/* ===== MIGRATION RESULTS COMPONENTS ===== */
.migration-results {
    margin-top: var(--space-xl);
    animation: slideInUp 0.4s ease;
    /* Use solid background instead of glass effect */
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
}

@keyframes slideInUp {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.migration-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-primary);
}

.migration-header h3 {
    margin: 0;
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
}

.accounts-count {
    background: var(--gradient-primary);
    color: white;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    box-shadow: var(--shadow-sm);
}

.accounts-list {
    display: grid;
    gap: var(--space-lg);
}

.account-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    /* Remove glass effect that causes blur issues */
}

.account-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.account-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.account-card:hover::before {
    opacity: 1;
}

.account-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-lg);
}

.account-info h4 {
    margin: 0 0 var(--space-xs) 0;
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
}

.account-info .issuer {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    font-weight: var(--font-medium);
}

.account-code {
    font-family: var(--font-family-mono);
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--accent-primary);
    letter-spacing: 0.1em;
    margin: var(--space-lg) 0;
    text-align: center;
    padding: var(--space-lg);
    background: var(--gradient-subtle);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-accent);
    position: relative;
}

.account-code::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0.05;
    border-radius: inherit;
}

.account-secret {
    font-family: var(--font-family-mono);
    font-size: var(--text-xs);
    color: var(--text-muted);
    background: var(--bg-card);
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
    margin-top: var(--space-md);
    word-break: break-all;
    border: 1px solid var(--border-secondary);
    line-height: var(--leading-relaxed);
}

.account-actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.account-actions .btn {
    flex: 1;
    min-width: max-content;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .migration-header {
        flex-direction: column;
        gap: var(--space-md);
        align-items: flex-start;
        text-align: left;
    }
    
    .account-header {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .account-code {
        font-size: var(--text-xl);
        padding: var(--space-md);
    }
    
    .account-actions {
        flex-direction: column;
    }
    
    .account-actions .btn {
        flex: none;
    }
}

/* ===== COMPONENT SYSTEM ===== */

/* Glass Card Component - Fixed */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    /* Remove backdrop-filter to prevent blur issues */
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* Optional: Add glass effect only for specific cards that need it */
.glass-card.with-blur {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-family-primary);
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    line-height: 1;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    user-select: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Button Variants */
.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--gradient-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
    color: var(--accent-primary);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid transparent;
}

.btn-ghost:hover {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border-primary);
}

/* Button Sizes */
.btn-sm {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-sm);
}

.btn-lg {
    padding: var(--space-lg) var(--space-2xl);
    font-size: var(--text-lg);
}

.btn-full {
    width: 100%;
}

/* Input System */
.input-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.input-group label {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--text-primary);
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: var(--space-md);
    font-family: var(--font-family-primary);
    font-size: var(--text-base);
    color: var(--text-primary);
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    resize: vertical;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-group .input-hint {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

/* Tab System - Fixed overflow */
.tabs {
    display: flex;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-xs);
    gap: var(--space-xs);
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.tabs::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.tab {
    flex: 1;
    min-width: max-content;
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    white-space: nowrap;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
}

.tab:hover {
    color: var(--text-primary);
    background: var(--bg-card-hover);
}

.tab.active {
    color: white;
    background: var(--gradient-primary);
    box-shadow: var(--shadow-sm);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
    padding-top: var(--space-md);
}

.tab-content.active {
    display: block;
}

.tab-content .input-group {
    margin-top: var(--space-lg);
}

.tab-content .btn {
    margin-top: var(--space-xl);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Upload Area */
.upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    padding: var(--space-3xl);
    border: 2px dashed var(--border-primary);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
    /* Remove glass effect to prevent blur */
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--accent-primary);
    background: var(--bg-card-hover);
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.upload-area .upload-icon {
    font-size: var(--text-4xl);
    opacity: 0.7;
}

.upload-area p {
    font-size: var(--text-lg);
    font-weight: var(--font-medium);
    color: var(--text-primary);
}

.upload-area span {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* Toast System */
.toast {
    position: fixed;
    top: var(--space-lg);
    right: var(--space-lg);
    padding: var(--space-md) var(--space-lg);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: var(--z-toast);
    animation: slideInRight 0.3s ease, fadeOut 0.3s ease 2.7s;
    pointer-events: none;
}

.toast.success {
    background: var(--success);
}

.toast.error {
    background: var(--error);
}

.toast.info {
    background: var(--info);
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Responsive Utilities */
.hidden-mobile {
    display: block;
}

.hidden-desktop {
    display: none;
}

@media (max-width: 768px) {
    .hidden-mobile {
        display: none;
    }
    
    .hidden-desktop {
        display: block;
    }
    
    .btn {
        padding: var(--space-md) var(--space-lg);
    }
    
    .tabs {
        padding: var(--space-xs);
    }
    
    .tab {
        padding: var(--space-sm) var(--space-md);
        font-size: var(--text-xs);
    }
    
    .upload-area {
        padding: var(--space-xl);
    }
    
    .toast {
        top: var(--space-md);
        right: var(--space-md);
        left: var(--space-md);
    }
}
/* ===== ADVANCED INTERACTIONS ===== */

/* Micro-interactions */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

/* Focus states for accessibility */
.btn:focus-visible,
.tab:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* Smooth scrolling enhancements */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
    
    .glass-card {
        transition: all var(--transition-normal);
    }
    
    .account-card {
        transition: all var(--transition-bounce);
    }
}

/* Dark mode optimizations */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #000000;
        --bg-secondary: #0a0a0a;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border-primary: rgba(255, 255, 255, 0.3);
        --text-secondary: #cccccc;
    }
}

/* Print styles */
@media print {
    .navbar,
    .btn,
    .upload-area,
    .toast {
        display: none !important;
    }
    
    .glass-card {
        background: white !important;
        color: black !important;
        border: 1px solid #ccc !important;
    }
}

/* Loading skeleton for better UX */
.skeleton {
    background: linear-gradient(90deg, 
        var(--bg-card) 25%, 
        var(--bg-card-hover) 50%, 
        var(--bg-card) 75%
    );
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Enhanced card effects without blur issues */
.glass-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    border-radius: inherit;
    transition: opacity var(--transition-normal);
    pointer-events: none;
    z-index: -1;
}

.glass-card:hover::after {
    opacity: 0.03;
}

/* Subtle gradient overlay for depth */
.migration-results::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0.5;
}

.account-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* Status indicators */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
}

.status-indicator.success {
    background: var(--success-bg);
    color: var(--success);
}

.status-indicator.error {
    background: var(--error-bg);
    color: var(--error);
}

.status-indicator.warning {
    background: var(--warning-bg);
    color: var(--warning);
}

.status-indicator::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* Improved mobile experience */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    .glass-card {
        padding: var(--space-lg);
    }
    
    .btn {
        min-height: 44px; /* Touch target size */
    }
    
    .tab {
        min-height: 44px;
    }
    
    .upload-area {
        padding: var(--space-lg);
    }
    
    .account-code {
        font-size: var(--text-lg);
    }
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Performance optimizations */
.glass-card,
.btn,
.account-card {
    will-change: transform;
}

.glass-card:not(:hover),
.btn:not(:hover),
.account-card:not(:hover) {
    will-change: auto;
}
/* ===== GENERATOR CARD STYLES ===== */
.generator-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    position: relative;
}

.generator-card:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-lg);
}

/* Add subtle gradient border on hover */
.generator-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: var(--gradient-primary);
    border-radius: inherit;
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: -1;
}

.generator-card:hover::before {
    opacity: 0.3;
}

.generator-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bg-card);
    border-radius: inherit;
    z-index: -1;
}

/* Fix z-index issues */
.generator-card > * {
    position: relative;
    z-index: 1;
}
/* ===== TAB INFO SECTIONS ===== */

/* Tab info section */

/* Tab info section */
.tab-info {
    background: var(--gradient-subtle);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.info-header h4 {
    margin: 0;
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
}

/* Difficulty badges */
.difficulty {
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.difficulty.easy {
    background: var(--success-bg);
    color: var(--success);
}

.difficulty.intermediate {
    background: var(--warning-bg);
    color: var(--warning);
}

.difficulty.advanced {
    background: var(--error-bg);
    color: var(--error);
}

/* Use cases and guides */
.use-cases,
.how-to-guide,
.format-example {
    margin-top: var(--space-md);
}

.use-cases strong,
.how-to-guide strong,
.format-example strong {
    color: var(--accent-primary);
    font-weight: var(--font-semibold);
}

.use-cases ul,
.how-to-guide ol {
    margin: var(--space-sm) 0 0 var(--space-lg);
    padding: 0;
}

.use-cases li,
.how-to-guide li {
    margin-bottom: var(--space-xs);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
}

.format-example code {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-sm);
    padding: var(--space-sm);
    margin-top: var(--space-sm);
    font-family: var(--font-family-mono);
    font-size: var(--text-xs);
    color: var(--text-muted);
    word-break: break-all;
    line-height: var(--leading-relaxed);
}

/* Mobile responsive */
@media (max-width: 768px) {
    
    .info-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }
    
    .tab-info {
        padding: var(--space-md);
    }
    
    .use-cases ul,
    .how-to-guide ol {
        margin-left: var(--space-md);
    }
}


/* ===== ENHANCED TAB SYSTEM ===== */

/* All tabs always visible - no scrolling */
.tabs {
    display: flex;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-xs);
    gap: var(--space-xs);
    /* Remove overflow to show all tabs */
    overflow: visible;
    /* Allow wrapping if needed */
    flex-wrap: wrap;
}

.tab {
    /* Allow tabs to shrink and grow equally */
    flex: 1;
    /* Minimum width for readability */
    min-width: 0;
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    /* Allow text to wrap if needed */
    white-space: nowrap;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
}

.tab:hover {
    color: var(--text-primary);
    background: var(--bg-card-hover);
}

.tab.active {
    color: white;
    background: var(--gradient-primary);
    box-shadow: var(--shadow-sm);
}

/* Mobile optimizations - stack vertically if needed */
@media (max-width: 768px) {
    .tabs {
        padding: var(--space-xs);
        gap: var(--space-xs);
        /* Allow wrapping on mobile */
        flex-wrap: wrap;
    }
    
    .tab {
        /* On mobile, make tabs smaller but still flexible */
        padding: var(--space-sm);
        font-size: var(--text-xs);
        /* Ensure minimum touch target */
        min-height: 44px;
    }
}

/* Very small screens - stack in 2x2 grid */
@media (max-width: 480px) {
    .tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xs);
    }
    
    .tab {
        font-size: var(--text-xs);
        padding: var(--space-sm);
        /* Ensure good touch targets */
        min-height: 48px;
    }
}
/* ===== TAB LAYOUT FIXES ===== */

/* Ensure tabs container doesn't overflow */
.generator-card .tabs {
    width: 100%;
    box-sizing: border-box;
}



/* Responsive text sizing */
@media (max-width: 600px) {
    .tab {
        font-size: 11px;
        padding: var(--space-sm) var(--space-xs);
    }
}

/* Ultra small screens - vertical stack */
@media (max-width: 360px) {
    .tabs {
        display: flex;
        flex-direction: column;
        gap: var(--space-xs);
    }
    
    .tab {
        width: 100%;
        justify-content: flex-start;
        padding: var(--space-md);
        font-size: var(--text-sm);
    }
}