/* ============================================
   DESIGN SYSTEM - RenewGPT
   ============================================ */

:root {
    /* Colors */
    --bg-primary: #06060b;
    --bg-secondary: #0d0d15;
    --bg-card: rgba(15, 15, 25, 0.7);
    --bg-card-hover: rgba(20, 20, 35, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-glass-hover: rgba(255, 255, 255, 0.06);

    --text-primary: #f0f0f5;
    --text-secondary: #9494a8;
    --text-muted: #5a5a72;
    --text-accent: #10b981;

    --accent-primary: #10b981;
    --accent-primary-rgb: 16, 185, 129;
    --accent-secondary: #06d6a0;
    --accent-glow: rgba(16, 185, 129, 0.15);
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-orange: #f59e0b;
    --accent-red: #ef4444;

    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --border-accent: rgba(16, 185, 129, 0.3);

    --gradient-primary: linear-gradient(135deg, #10b981 0%, #06d6a0 50%, #3b82f6 100%);
    --gradient-card: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(59, 130, 246, 0.05) 100%);
    --gradient-hero: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, transparent 60%);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(16, 185, 129, 0.15);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
    --transition-spring: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Layout */
    --max-width: 1200px;
    --nav-height: 72px;
}

/* ============================================
   RESET & BASE
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

input, textarea {
    font-family: inherit;
    outline: none;
}

::selection {
    background: rgba(16, 185, 129, 0.3);
    color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ============================================
   BACKGROUND EFFECTS
   ============================================ */

.bg-effects {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(16, 185, 129, 0.08) 0%, transparent 60%),
                radial-gradient(ellipse 60% 40% at 80% 50%, rgba(59, 130, 246, 0.04) 0%, transparent 60%),
                radial-gradient(ellipse 60% 40% at 20% 80%, rgba(139, 92, 246, 0.04) 0%, transparent 60%);
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 50% at 50% 30%, black 20%, transparent 70%);
}

.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    animation: floatGlow 20s infinite ease-in-out;
}

.bg-glow-1 {
    width: 600px; height: 600px;
    top: -200px; left: 10%;
    background: rgba(16, 185, 129, 0.06);
    animation-delay: 0s;
}

.bg-glow-2 {
    width: 400px; height: 400px;
    top: 50%; right: -100px;
    background: rgba(59, 130, 246, 0.05);
    animation-delay: -7s;
}

.bg-glow-3 {
    width: 500px; height: 500px;
    bottom: -100px; left: 30%;
    background: rgba(139, 92, 246, 0.04);
    animation-delay: -14s;
}

#particles-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

@keyframes floatGlow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.1); }
    50% { transform: translate(-20px, 20px) scale(0.9); }
    75% { transform: translate(40px, 30px) scale(1.05); }
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background: rgba(6, 6, 11, 0.75);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-base);
}

.navbar.scrolled {
    background: rgba(6, 6, 11, 0.92);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    color: white;
}

.logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 4px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-glass-hover);
}

.nav-link.active {
    color: var(--accent-primary);
    background: var(--accent-glow);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-btn-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    box-shadow: 0 2px 12px rgba(16, 185, 129, 0.3);
}

.nav-btn-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: var(--transition-fast);
}

.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: rgba(6, 6, 11, 0.95);
    backdrop-filter: blur(20px);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-base);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    padding: 24px;
    gap: 4px;
}

.mobile-link {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    border: 1px solid transparent;
}

.mobile-link:hover, .mobile-link.active {
    color: var(--text-primary);
    background: var(--bg-glass-hover);
    border-color: var(--border-color);
}

.mobile-link.cta {
    margin-top: 12px;
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    text-align: center;
}

/* ============================================
   MAIN CONTENT & PAGES
   ============================================ */

.main-content {
    position: relative;
    z-index: 1;
    padding-top: var(--nav-height);
    min-height: 100vh;
}

.page {
    display: none;
    animation: fadeIn 0.4s ease;
}

.page.active {
    display: block;
}

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

.page-container {
    max-width: 680px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

.page-header {
    text-align: center;
    margin-bottom: 36px;
}

.page-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    display: block;
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

.page-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.page-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 80px 24px 60px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    background: var(--accent-glow);
    border: 1px solid var(--border-accent);
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--accent-primary);
    margin-bottom: 28px;
    animation: fadeIn 0.6s ease;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-primary);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
    50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    animation: fadeIn 0.7s ease 0.1s both;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 36px;
    line-height: 1.7;
    animation: fadeIn 0.7s ease 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 56px;
    animation: fadeIn 0.7s ease 0.3s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    padding: 28px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    animation: fadeIn 0.7s ease 0.4s both;
}

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

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-primary);
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 2px;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-weight: 600;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 2px 16px rgba(16, 185, 129, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.35);
}

.btn-primary:active { transform: translateY(0); }

.btn-glass {
    background: var(--bg-glass);
    color: var(--text-primary);
    border-color: var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 2px 16px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.4);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
    border-radius: var(--radius-md);
}

.btn-block { width: 100%; }

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ============================================
   FEATURES SECTION
   ============================================ */

.features-section, .steps-section, .video-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 60px 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.feature-card {
    padding: 32px 28px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-card);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.feature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
    position: relative;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.feature-icon-speed { background: rgba(16, 185, 129, 0.12); color: var(--accent-primary); }
.feature-icon-secure { background: rgba(59, 130, 246, 0.12); color: var(--accent-blue); }
.feature-icon-auto { background: rgba(139, 92, 246, 0.12); color: var(--accent-purple); }
.feature-icon-support { background: rgba(245, 158, 11, 0.12); color: var(--accent-orange); }

.feature-card h3 {
    position: relative;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    position: relative;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============================================
   STEPS SECTION
   ============================================ */

.steps-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.step-card {
    flex: 1;
    min-width: 220px;
    max-width: 320px;
    padding: 32px 24px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.step-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
}

.step-number {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    line-height: 1;
}

.step-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 14px;
}

.step-link {
    display: inline-flex;
    align-items: center;
    color: var(--accent-primary);
    font-size: 0.88rem;
    font-weight: 600;
    transition: var(--transition-fast);
}

.step-link:hover { color: var(--accent-secondary); }

.step-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    padding-top: 60px;
}

/* ============================================
   VIDEO SECTION
   ============================================ */

.video-card {
    text-align: center;
    padding: 48px 32px;
    position: relative;
    overflow: hidden;
}

.video-card::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.video-icon {
    position: relative;
    width: 80px; height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: var(--accent-glow);
    border: 2px solid var(--border-accent);
    border-radius: 50%;
    color: var(--accent-primary);
    animation: pulseRing 3s infinite;
}

@keyframes pulseRing {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.2); }
    50% { box-shadow: 0 0 0 15px rgba(16, 185, 129, 0); }
}

.video-card h3 {
    position: relative;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.video-card p {
    position: relative;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ============================================
   GLASS CARD
   ============================================ */

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ============================================
   FORM COMPONENTS
   ============================================ */

.form-card {
    padding: 36px;
}

.form-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 36px;
}

.form-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition-base);
}

.form-step.active { color: var(--accent-primary); }
.form-step.completed { color: var(--text-secondary); }

.step-dot {
    width: 32px; height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    font-weight: 700;
    font-size: 0.85rem;
    transition: var(--transition-base);
}

.form-step.active .step-dot {
    border-color: var(--accent-primary);
    background: var(--accent-glow);
    color: var(--accent-primary);
}

.form-step.completed .step-dot {
    border-color: var(--accent-primary);
    background: var(--accent-primary);
    color: white;
}

.step-line {
    flex: 0 0 40px;
    height: 2px;
    background: var(--border-color);
    margin: 0 8px;
    border-radius: 1px;
    transition: var(--transition-base);
}

.step-line.active { background: var(--accent-primary); }

.form-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.form-panel.active { display: block; }

.input-group {
    margin-bottom: 24px;
}

.input-group label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.label-link {
    font-size: 0.8rem;
    color: var(--accent-primary);
    font-weight: 500;
}

.label-link:hover { text-decoration: underline; }

.required { color: var(--accent-red); }

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.input-wrapper input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    background: rgba(255, 255, 255, 0.04);
}

textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.88rem;
    font-family: 'Courier New', monospace;
    resize: vertical;
    min-height: 120px;
    transition: var(--transition-fast);
}

textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    background: rgba(255, 255, 255, 0.04);
}

.input-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.session-helper {
    margin-bottom: 10px;
}

.helper-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-primary);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 6px 14px;
    background: var(--accent-glow);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.helper-link:hover {
    background: rgba(16, 185, 129, 0.2);
}

.form-actions {
    margin-top: 28px;
}

.form-actions.dual {
    display: flex;
    gap: 12px;
}

.form-actions.dual .btn:last-child { flex: 1; }

/* ============================================
   CONFIRM INFO
   ============================================ */

.confirm-info {
    padding: 24px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
}

.confirm-info h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--accent-primary);
}

.confirm-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.confirm-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.confirm-row:last-child { border-bottom: none; }

.confirm-label {
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.confirm-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.92rem;
    word-break: break-all;
    text-align: right;
    max-width: 60%;
}

/* ============================================
   WARNING BANNER
   ============================================ */

.warning-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    color: var(--accent-orange);
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.5;
}

/* ============================================
   PROCESSING STATE
   ============================================ */

.processing-state {
    text-align: center;
    padding: 48px 24px;
}

.processing-animation {
    position: relative;
    width: 100px; height: 100px;
    margin: 0 auto 24px;
}

.spinner-ring {
    position: absolute;
    inset: 0;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.processing-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    animation: pulseIcon 2s infinite;
}

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

.processing-state h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.processing-msg {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.processing-timer {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    font-variant-numeric: tabular-nums;
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    max-width: 300px;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    margin: 0 auto;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
    width: 0%;
    transition: width 1s linear;
}

/* ============================================
   RESULT STATES
   ============================================ */

.result-state {
    text-align: center;
    padding: 48px 24px;
}

.result-icon {
    width: 100px; height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    border-radius: 50%;
    animation: bounceIn 0.6s ease;
}

.result-success {
    color: var(--accent-primary);
    background: var(--accent-glow);
    border: 2px solid var(--border-accent);
}

.result-error {
    color: var(--accent-red);
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid rgba(239, 68, 68, 0.3);
}

.result-state h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.result-state p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.result-details {
    padding: 16px 20px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    text-align: left;
    font-size: 0.88rem;
}

.result-details .detail-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid var(--border-color);
}

.result-details .detail-row:last-child { border-bottom: none; }
.result-details .detail-label { color: var(--text-secondary); }
.result-details .detail-value { color: var(--text-primary); font-weight: 600; }

/* ============================================
   LOOKUP RESULT
   ============================================ */

.lookup-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 32px;
    color: var(--text-secondary);
    margin-top: 24px;
}

.mini-spinner {
    width: 24px; height: 24px;
    border: 2px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.lookup-result {
    margin-top: 24px;
    padding: 24px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    animation: fadeIn 0.3s ease;
}

.lookup-result-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
}

.status-available { background: rgba(59, 130, 246, 0.12); color: var(--accent-blue); border: 1px solid rgba(59, 130, 246, 0.2); }
.status-processing { background: rgba(245, 158, 11, 0.12); color: var(--accent-orange); border: 1px solid rgba(245, 158, 11, 0.2); }
.status-completed { background: rgba(16, 185, 129, 0.12); color: var(--accent-primary); border: 1px solid rgba(16, 185, 129, 0.2); }
.status-failed { background: rgba(239, 68, 68, 0.12); color: var(--accent-red); border: 1px solid rgba(239, 68, 68, 0.2); }
.status-pending { background: rgba(139, 92, 246, 0.12); color: var(--accent-purple); border: 1px solid rgba(139, 92, 246, 0.2); }

.lookup-result-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lookup-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
}

.lookup-row .label { color: var(--text-secondary); }
.lookup-row .value { color: var(--text-primary); font-weight: 600; }

.lookup-cdk-copy {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

.copy-label { color: var(--text-muted); }

.lookup-cdk-copy code {
    flex: 1;
    color: var(--accent-primary);
    font-weight: 600;
    word-break: break-all;
}

.btn-copy {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    background: var(--bg-glass-hover);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.btn-copy:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

/* ============================================
   WARRANTY
   ============================================ */

.warranty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.warranty-card {
    padding: 32px 24px;
    text-align: center;
    transition: all var(--transition-base);
}

.warranty-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
}

.warranty-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.warranty-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.warranty-card p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
}

.warranty-cta {
    padding: 40px 32px;
    text-align: center;
}

.warranty-cta h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.warranty-cta p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.warranty-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-warranty .page-container {
    max-width: 900px;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border-color);
    background: rgba(6, 6, 11, 0.8);
    backdrop-filter: blur(10px);
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 48px 24px 24px;
}

.footer-top {
    display: flex;
    gap: 60px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.footer-brand {
    flex: 1;
    min-width: 250px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--accent-primary);
    margin-bottom: 12px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
    max-width: 300px;
}

.footer-links-group {
    min-width: 140px;
}

.footer-links-group h4 {
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.footer-links-group a {
    display: block;
    padding: 4px 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

.footer-links-group a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 8px;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.footer-support {
    color: var(--accent-primary) !important;
}

/* ============================================
   TOAST
   ============================================ */

.toast-container {
    position: fixed;
    top: calc(var(--nav-height) + 16px);
    right: 16px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    font-size: 0.88rem;
    color: var(--text-primary);
    animation: slideInRight 0.3s ease;
    max-width: 380px;
}

.toast.toast-success { border-color: var(--border-accent); }
.toast.toast-error { border-color: rgba(239, 68, 68, 0.3); }
.toast.toast-info { border-color: rgba(59, 130, 246, 0.3); }

.toast.hide { animation: slideOutRight 0.3s ease forwards; }

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* ============================================
   CDK FEEDBACK
   ============================================ */

.cdk-feedback {
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    animation: fadeIn 0.3s ease;
}

.cdk-checking {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--accent-blue);
}

.cdk-valid {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--accent-primary);
}

.cdk-used {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: var(--accent-orange);
}

.cdk-error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--accent-red);
}

.input-valid {
    border-color: var(--accent-primary) !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}

.input-error {
    border-color: var(--accent-red) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

/* ============================================
   LOOKUP MULTI-CDK
   ============================================ */

.page-container-wide {
    max-width: 900px;
}

.lookup-result-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.lookup-copy-section {
    margin-bottom: 20px;
}

.lookup-copy-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.lookup-copy-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.btn-copy-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.btn-copy-filter:hover {
    background: var(--bg-glass-hover);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Stats Cards */
.lookup-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.lookup-stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-glass);
}

.lookup-stat-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.lookup-stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.lookup-stat-total .lookup-stat-label { color: var(--accent-blue); }
.lookup-stat-total .lookup-stat-value { color: var(--text-primary); }
.lookup-stat-total { border-color: rgba(59, 130, 246, 0.2); background: rgba(59, 130, 246, 0.05); }

.lookup-stat-used .lookup-stat-label { color: var(--accent-orange); }
.lookup-stat-used .lookup-stat-value { color: var(--text-primary); }
.lookup-stat-used { border-color: rgba(245, 158, 11, 0.2); background: rgba(245, 158, 11, 0.05); }

.lookup-stat-available .lookup-stat-label { color: var(--accent-primary); }
.lookup-stat-available .lookup-stat-value { color: var(--text-primary); }
.lookup-stat-available { border-color: rgba(16, 185, 129, 0.2); background: rgba(16, 185, 129, 0.05); }

.lookup-stat-invalid .lookup-stat-label { color: var(--accent-red); }
.lookup-stat-invalid .lookup-stat-value { color: var(--text-primary); }
.lookup-stat-invalid { border-color: rgba(239, 68, 68, 0.2); background: rgba(239, 68, 68, 0.05); }

/* Table */
.lookup-table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.lookup-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.lookup-table thead {
    background: rgba(255, 255, 255, 0.03);
}

.lookup-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.lookup-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    vertical-align: middle;
}

.lookup-table tbody tr:last-child td {
    border-bottom: none;
}

.lookup-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.lookup-table .cdk-code {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.04);
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.lookup-table .status-badge {
    font-size: 0.78rem;
    padding: 4px 10px;
    white-space: nowrap;
}

/* ============================================
   UTILITIES
   ============================================ */

.hidden { display: none !important; }

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

@media (max-width: 768px) {
    :root { --nav-height: 64px; }

    .nav-links { display: none; }
    .nav-hamburger { display: flex; }
    .nav-btn-cta { display: none; }

    .hero { padding: 48px 16px 40px; }
    .hero-title { font-size: 2rem; }
    .hero-desc { font-size: 1rem; }
    .hero-stats { gap: 20px; padding: 20px; }
    .stat-divider { display: none; }
    .stat-value { font-size: 1.4rem; }

    .features-section, .steps-section, .video-section {
        padding: 40px 16px;
    }

    .section-title { font-size: 1.6rem; }

    .step-connector { display: none; }
    .steps-grid { flex-direction: column; align-items: center; }
    .step-card { max-width: 100%; }

    .page-container { padding: 32px 16px 60px; }
    .page-title { font-size: 1.6rem; }

    .form-card { padding: 24px 18px; }
    .form-step span { display: none; }

    .form-actions.dual { flex-direction: column; }
    .form-actions.dual .btn { width: 100%; }

    .footer-top { gap: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; }

    .warranty-grid { grid-template-columns: 1fr; }
    .warranty-actions { flex-direction: column; }
    .warranty-actions .btn { width: 100%; }

    .toast { max-width: calc(100vw - 32px); }

    .lookup-stats { grid-template-columns: repeat(2, 1fr); }
    .lookup-stat-value { font-size: 1.4rem; }
    .lookup-copy-buttons { gap: 6px; }
    .btn-copy-filter { font-size: 0.75rem; padding: 6px 10px; }

    .lookup-table th,
    .lookup-table td { padding: 10px 10px; font-size: 0.8rem; }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-actions .btn { width: 100%; }
    .hero-stats { flex-direction: column; }
    .confirm-row { flex-direction: column; align-items: flex-start; gap: 4px; }
    .confirm-value { text-align: left; max-width: 100%; }
}
