/* Modern CSS Reset and Variables */
:root {
    /* Primary Colors - Gradient Blues */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-color: #667eea;
    --primary-dark: #5a67d8;
    --primary-light: #e6fffa;
    
    /* Accent Colors - Funky Touches */
    --accent-color: #ff6b6b;
    --accent-gradient: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    --success-color: #48bb78;
    --warning-color: #ed8936;
    --error-color: #f56565;
    
    /* Neutral Colors */
    --dark: #1a202c;
    --dark-light: #2d3748;
    --gray: #718096;
    --gray-light: #e2e8f0;
    --white: #ffffff;
    --background: #f7fafc;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;

    /* Brand Purple accents for icons */
    --brand-purple: #5b3cc4; /* primary purple used across site */
    --brand-purple-hover: #a786ff; /* lighter hover accent */

    /* Visual tuning for brand mark size relative to wordmark */
    --brand-mark-scale: 1.95; /* 1.0 = same as text; >1 makes icon larger; ~30% bigger than previous 1.5 */
    --brand-mark-nudge: 32px; /* fine-tune: ~+2px more down to match text bottom exactly */
    --brand-mark-extra: 0px; /* legacy offset; kept for compatibility */
}

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

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--background);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Header and Navigation */
header {
    /* Glassmorphism: translucent surface + blur */
    background: rgba(255, 255, 255, 0.55);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-normal);
}

/* Elevate and slightly strengthen background when scrolled */
header.scrolled {
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-bottom-color: rgba(0,0,0,0.08);
}

/* Fallback for browsers without backdrop-filter support */
@supports not ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
    header { background: rgba(255,255,255,0.9); }
}

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

/* Stacked header variant: brand centered with menu row beneath */
.nav-container.stacked {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
}

.brand {
    display: inline-flex;
    /* Align to the text baseline for pixel-true alignment */
    align-items: baseline;
    justify-content: center;
    text-decoration: none;
    /* Keep mark and text visually aligned */
    --brand-size: clamp(1.6rem, 4vw, 2.4rem);
    gap: 10px;
}

/* Dedicated SVG brand mark styling */
.brand-mark {
    display:inline-block;
    /* Scale relative to the wordmark size for a bold favicon-style mark */
    height: calc(var(--brand-size) * var(--brand-mark-scale));
    width: auto;
    aspect-ratio: 1 / 1;
    transform: translateY(var(--brand-mark-nudge));
    /* Dual-tone glow for visual interest */
    align-self: baseline;
    filter: drop-shadow(0 6px 14px rgba(99,102,241,0.28))
            drop-shadow(0 2px 6px rgba(236,72,153,0.22));
}
@media (max-width: 768px) {
    .brand { --brand-size: clamp(1.5rem, 4.5vw, 2rem); }
}

/* Brand icon + funky animated gradient text */
.brand i.fas.fa-wave-square {
    font-size: 2.4rem;
    background: linear-gradient(135deg,#4f46e5,#6366f1 60%,#a855f7);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    background-clip:text;
    filter: drop-shadow(0 2px 4px rgba(79,70,229,0.35));
    margin-right: 10px;
}
.brand-text {
    font-weight: 700;
    font-size: var(--brand-size);
    letter-spacing: 0.5px;
    line-height: 1;
    position: relative;
    background: linear-gradient(90deg,#ec4899,#f59e0b,#10b981,#3b82f6,#8b5cf6,#ec4899);
    background-size: 400% 100%;
    background-clip: text;
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    animation: brandGradientSlide 14s linear infinite;
    padding: 4px 8px 6px;
}
.brand-text::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 1px;
    height: 6px;
    background: linear-gradient(90deg,#ec4899,#f59e0b,#10b981,#3b82f6,#8b5cf6);
    border-radius: 4px;
    opacity: 0.55;
    filter: blur(2px);
    animation: brandUnderlinePulse 6s ease-in-out infinite;
}
@keyframes brandGradientSlide {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes brandUnderlinePulse {
    0%,100% { opacity:0.55; transform: translateY(0); }
    50% { opacity:0.85; transform: translateY(1px); }
}

/* Second row holds centered icon menu with auth on the right while keeping the menu perfectly centered */
.nav-row {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
}

.nav-row .nav-menu {
    grid-column: 2;
}

.nav-row .nav-auth,
.nav-row #account-menu {
    grid-column: 3;
    justify-self: end;
}

/* Legacy .logo removed in favor of .brand image */

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-xl);
    align-items: center;
}

.nav-menu a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition-normal);
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--primary-gradient);
    transition: var(--transition-normal);
    transform: translateX(-50%);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Icon-only nav links look better as compact, rounded buttons */
.nav-menu a > i {
    font-size: 1.1rem; /* legacy <i> fallback */
    color: var(--brand-purple);
}
/* New inline SVG icons */
.nav-menu a > .sw-icon {
    width: 1.6rem;
    height: 1.6rem;
    stroke: var(--brand-purple);
}

.nav-menu a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
}

/* Subtle elevated hover to match glass aesthetic */
.nav-menu a:hover {
    background: rgba(99, 102, 241, 0.08);
}

/* Accessible focus ring */
.nav-menu a:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

.nav-menu a:hover > i { color: var(--brand-purple-hover); }
.nav-menu a:hover > .sw-icon { stroke: var(--brand-purple-hover); }

/* Icon-only button style */
.btn.icon-only {
    padding: 8px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.btn.icon-only i { font-size: 1rem; }
.btn.icon-only .sw-icon { width: 1.1rem; height: 1.1rem; }

/* Accessible focus states for icon-only navigation and buttons */
.nav-menu a:focus-visible,
.btn.icon-only:focus-visible {
    outline: 3px solid #5b3cc4; /* dark purple ring */
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(91, 60, 196, 0.25);
}

/* Legend styling for cost guidance */
.cost-legend {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    font-size: 0.85rem;
    color: #555;
}
.cost-legend i { color: #8a6fd6; /* legacy */ }
.cost-legend .sw-icon { stroke: #8a6fd6; }

/* Hero Wave Planner CTA with richer gradient */
.cta-button.wave-planner {
    background: linear-gradient(135deg, #3b2e8a 0%, #764ba2 50%, #f093fb 100%);
    color: var(--white);
}

.cta-button.wave-planner i {
    color: var(--white);
}

.create-project-btn {
    background: var(--primary-gradient);
    color: var(--white);
    border: none;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    box-shadow: var(--shadow-md);
}

.create-project-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Hero Section */
.hero {
    /* Increased top padding to account for taller stacked header */
    padding: calc(110px + var(--space-2xl)) 0 var(--space-2xl);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Revamped hero layout */
.hero.hero-revamp { isolation: isolate; }
.hero-inner {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    display: grid;
    grid-template-columns: minmax(0, 720px) minmax(0, 1fr);
    gap: clamp(var(--space-xl), 6vw, var(--space-2xl));
    align-items: flex-start;
}
.hero-left { position: relative; z-index: 2; }
.hero-right { position: relative; z-index: 2; display:flex; align-items:flex-start; justify-content:center; }

.pill-row { display:flex; flex-wrap:wrap; gap:10px; margin-bottom: var(--space-lg); }
.pill {
    display:inline-flex; align-items:center; gap:6px;
    font-size:0.75rem; font-weight:600; letter-spacing:0.4px;
    padding:6px 12px; border-radius:999px;
    background: rgba(255,255,255,0.14);
    backdrop-filter: blur(8px);
    border:1px solid rgba(255,255,255,0.25);
    box-shadow:0 4px 10px -2px rgba(0,0,0,0.25);
}
.pill i { color:#f0eaff; font-size:0.85rem; }

.hero-headline { font-size: clamp(2.8rem, 6vw, 4.2rem); line-height:1.05; font-weight:700; margin:0 0 var(--space-lg); max-width: 780px; }
.hero-subhead { font-size:1.15rem; line-height:1.65; max-width:720px; margin:0 0 var(--space-lg); opacity:0.95; }

.value-list { list-style:none; padding:0; margin:0 0 var(--space-xl); display:grid; gap:10px; max-width:720px; }
.value-list li { display:flex; align-items:flex-start; gap:10px; font-size:0.95rem; background:rgba(255,255,255,0.07); padding:10px 14px; border-radius:12px; border:1px solid rgba(255,255,255,0.15); backdrop-filter: blur(6px); }
.value-list li i { color:#34d399; font-size:1rem; margin-top:2px; }

.cta-row { display:flex; align-items:center; gap:20px; flex-wrap:wrap; margin-bottom: var(--space-lg); }
.hero-cta { text-decoration:none; display:inline-flex; align-items:center; gap:10px; font-weight:600; padding:18px 32px; border-radius:16px; font-size:1.05rem; position:relative; overflow:hidden; box-shadow:0 12px 32px -8px rgba(0,0,0,0.45), 0 6px 12px -4px rgba(0,0,0,0.35); transition:transform 260ms cubic-bezier(.2,.8,.2,1), box-shadow 260ms; }
.hero-cta.primary { background:linear-gradient(135deg,#ffffff 0%,#e9ddff 55%,#d2b9ff 100%); color:#4c3d8f; }
.hero-cta.primary i { color:#4c3d8f; }
.hero-cta.secondary { background:rgba(255,255,255,0.12); color:#fff; border:1px solid rgba(255,255,255,0.25); backdrop-filter: blur(6px); }
.hero-cta:hover { transform:translateY(-4px) scale(1.02); box-shadow:0 18px 40px -10px rgba(0,0,0,0.55); }
.hero-cta:active { transform:translateY(0) scale(.98); }

.trust-row { display:flex; gap:28px; flex-wrap:wrap; margin-top:4px; font-size:0.75rem; letter-spacing:0.5px; text-transform:uppercase; font-weight:600; }
.trust-row .metric { display:flex; align-items:center; gap:6px; background:rgba(255,255,255,0.08); padding:6px 12px; border-radius:10px; border:1px solid rgba(255,255,255,0.18); backdrop-filter: blur(4px); }
.trust-row .metric-number { font-size:0.95rem; font-weight:700; background:linear-gradient(90deg,#fbbf24,#f472b6,#818cf8); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }

.hero-card { width:100%; max-width:380px; background:rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.25); border-radius:24px; padding:20px 22px 14px; backdrop-filter:blur(12px); box-shadow:0 20px 40px -12px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(255,255,255,0.3); position:relative; display:flex; flex-direction:column; gap:12px; }
.hero-card.glass::before { content:''; position:absolute; inset:0; border-radius:inherit; background:radial-gradient(circle at 30% 20%, rgba(255,255,255,0.35), rgba(255,255,255,0.05)); mix-blend-mode:overlay; pointer-events:none; }
.hero-card .card-header { font-weight:600; font-size:0.95rem; display:flex; align-items:center; gap:8px; }
.hero-card .card-header i { color:#d1c4ff; }
.mini-wave-list { display:flex; flex-direction:column; gap:8px; }
.mini-wave { display:grid; grid-template-columns: 1fr auto auto; align-items:center; gap:10px; background:rgba(255,255,255,0.12); padding:10px 14px; border-radius:14px; font-size:0.8rem; }
.mini-wave .mw-label { font-weight:600; }
.mini-wave .mw-points { font-weight:500; opacity:.85; }
.mini-wave .mw-status { font-weight:600; padding:2px 8px; border-radius:999px; font-size:0.65rem; letter-spacing:0.5px; }
.mini-wave .mw-status.good { background:linear-gradient(90deg,#10b981,#34d399); color:#fff; }
.mini-wave .mw-status.warn { background:linear-gradient(90deg,#f59e0b,#fbbf24); color:#1a1a1a; }
.hero-card-footer { margin-top:4px; font-size:0.65rem; text-transform:uppercase; letter-spacing:1px; opacity:.75; display:flex; justify-content:flex-start; }
.hero-card-footer i { color:#fcd34d; }
.foot-note { display:inline-flex; gap:6px; align-items:center; }

/* Decorative background orbs */
.hero-bg-orb { position:absolute; width:320px; height:320px; border-radius:50%; filter:blur(60px); opacity:0.45; animation: orbFloat 14s ease-in-out infinite; }
.hero-bg-orb.orb-1 { background:linear-gradient(135deg,#805ad5,#6d28d9); top:10%; right:5%; }
.hero-bg-orb.orb-2 { background:linear-gradient(135deg,#ec4899,#f59e0b); bottom:6%; right:20%; animation-delay:3s; }
@keyframes orbFloat { 0%,100% { transform:translateY(0) scale(1); } 50% { transform:translateY(-40px) scale(1.05); } }

/* Accessibility utility */
.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; }

/* Old hero badge removed in revamp */

/* Legacy hero h2 replaced by .hero-headline */

/* Legacy hero paragraph replaced by .hero-subhead */

/* Legacy hero buttons removed */

/* Original .cta-button retained for other sections; hero now uses .hero-cta */

.cta-button.primary {
    background: var(--white);
    color: var(--primary-color);
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.cta-button.tertiary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: var(--white);
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* Wave Animation */
.hero-visual {
    position: relative;
    height: 400px;
}

.wave-animation {
    position: absolute;
    width: 100%;
    height: 100%;
}

.wave {
    position: absolute;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: wave 6s ease-in-out infinite;
}

.wave-1 {
    animation-delay: 0s;
    opacity: 0.7;
}

.wave-2 {
    animation-delay: 2s;
    opacity: 0.5;
}

.wave-3 {
    animation-delay: 4s;
    opacity: 0.3;
}

@keyframes wave {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.1) rotate(180deg);
        opacity: 0.3;
    }
}

/* Sections */
section {
    padding: var(--space-2xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: var(--space-md);
}

.section-header p {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Projects Section */
.projects-section {
    background: var(--white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--space-lg);
}

.project-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    border: 1px solid var(--gray-light);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.project-card.empty-state {
    text-align: center;
    border: 2px dashed var(--gray-light);
    background: var(--background);
}

.empty-icon {
    font-size: 3rem;
    color: var(--gray);
    margin-bottom: var(--space-md);
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    color: var(--dark);
}

.project-card p {
    color: var(--gray);
    margin-bottom: var(--space-lg);
}

.create-first-project-btn {
    background: var(--primary-gradient);
    color: var(--white);
    border: none;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.create-first-project-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Wave Planner Section */
.wave-planner-section {
    background: var(--background);
}

.planner-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.step {
    text-align: center;
    padding: var(--space-xl);
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    font-size: 2rem;
    color: var(--white);
}

.step h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
    color: var(--dark);
}

.step p {
    color: var(--gray);
}

/* Upload Section */
.upload-section {
    max-width: 800px;
    margin: 0 auto;
}

.upload-area {
    border: 3px dashed var(--primary-color);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    text-align: center;
    background: var(--white);
    transition: var(--transition-normal);
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.upload-area:hover {
    border-color: var(--primary-dark);
    background: var(--primary-light);
}

.upload-area.highlight-pulse {
    animation: pulseBorder 1s ease-in-out 3;
}
@keyframes pulseBorder {
    0% { box-shadow: 0 0 0 0 rgba(102,126,234,0.4); }
    50% { box-shadow: 0 0 0 8px rgba(102,126,234,0.12); }
    100% { box-shadow: 0 0 0 0 rgba(102,126,234,0.0); }
}

.upload-area.dragover {
    border-color: var(--accent-color);
    background: var(--primary-light);
    transform: scale(1.02);
}

.upload-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: var(--space-lg);
}

.upload-area h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    color: var(--dark);
}

.upload-area p {
    color: var(--gray);
    margin-bottom: var(--space-lg);
}

/* Funky custom select styling to match site look */
.funky-select {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: 999px;
    padding: 6px 12px;
    box-shadow: var(--shadow-sm);
}
.funky-select select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: none;
    background: transparent;
    font-weight: 600;
    color: var(--dark);
    padding-right: 24px;
    outline: none;
    font-family: var(--font-primary);
    font-size: 0.95rem;
}
.funky-select .caret {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--primary-color);
    pointer-events: none;
}
.funky-select:hover { box-shadow: var(--shadow-md); }
.funky-select:focus-within { border-color: var(--primary-dark); }
.funky-select.disabled { opacity: 0.6; pointer-events: none; }
.funky-select .btn.small {
    padding: 6px 10px;
}

.upload-btn {
    background: var(--primary-gradient);
    color: var(--white);
    border: none;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.file-info {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin-top: var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-md);
}

.file-details {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.file-details i {
    font-size: 2rem;
    color: var(--success-color);
}

.file-name {
    font-weight: 600;
    color: var(--dark);
}

.file-size {
    color: var(--gray);
    font-size: 0.875rem;
}

.process-btn {
    background: var(--accent-gradient);
    color: var(--white);
    border: none;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.process-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Results Section */
.results-section {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin-top: var(--space-lg);
    box-shadow: var(--shadow-md);
}

.results-section h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-lg);
    color: var(--dark);
}

.wave-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.wave-card {
    background: var(--background);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Drag & drop visual states for wave combination */
.wave-card.dragging {
    opacity: 0.6;
    outline: 2px dashed #7c3aed;
}
.wave-card.drag-over {
    outline: 3px solid #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14,165,233,0.3);
}

/* Combine modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 20, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(3px);
    animation: fadeIn 160ms ease-out;
}
.modal-card {
    background: #121826;
    color: #eef2ff;
    border-radius: 16px;
    padding: 20px 20px 16px;
    width: min(520px, 92vw);
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    transform: translateY(6px);
    animation: slideUp 220ms cubic-bezier(.2,.8,.2,1);
    position: relative;
}
.modal-card .modal-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    background: rgba(255,255,255,0.06);
    color: #cbd5e1;
    cursor: pointer;
}
.modal-card .modal-close:hover { background: rgba(255,255,255,0.12); }
.modal-icon { font-size: 2rem; color: #a78bfa; margin-bottom: 6px; }
.modal-subtitle { color: #cbd5e1; margin-top: 4px; }
.violations { background: rgba(255, 68, 68, 0.08); border: 1px solid rgba(239, 68, 68, 0.35); border-radius: 12px; padding: 10px; margin-top: 10px; }
.violations-header { display:flex; align-items:center; gap:8px; color:#fecaca; font-weight:600; margin-bottom:6px; }
.violations ul, #combine-violations-list { list-style: none; padding-left: 18px; margin: 0; }
.violations li { position: relative; margin: 4px 0; }
.violations li::before { content: '⚠'; position: absolute; left: -18px; color: #fca5a5; }
.modal-actions { display:flex; justify-content: flex-end; gap:10px; margin-top: 14px; }

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

.wave-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15), 
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.5);
}

.wave-number {
    font-size: 2rem;
    font-weight: 700;
    color: rgba(30, 41, 59, 0.95);
    margin-bottom: var(--space-xs);
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8),
                 0 1px 2px rgba(255, 255, 255, 0.6);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.wave-count {
    color: rgba(30, 41, 59, 0.9);
    font-size: 0.875rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.wave-complexity {
    color: rgba(51, 65, 85, 0.8);
    font-size: 0.8rem;
    margin-top: var(--space-xs);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.wave-points {
    color: rgba(30, 41, 59, 0.95);
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: var(--space-sm);
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.85);
    border-radius: var(--radius-md);
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
}

/* Over capacity warning styles */
.wave-card.over-capacity {
    border-color: rgba(220, 38, 38, 0.5);
    animation: pulse-warning 2s ease-in-out infinite;
}

.wave-card.over-capacity:hover {
    border-color: rgba(220, 38, 38, 0.7);
}

@keyframes pulse-warning {
    0%, 100% {
        box-shadow: 0 4px 6px rgba(220, 38, 38, 0.2), 
                    inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4), 
                    inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
}

.wave-warning {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(254, 226, 226, 0.95);
    padding: 4px 8px;
    border-radius: var(--radius-md);
    color: #991b1b;
    font-size: 0.7rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3);
    border: 1px solid rgba(220, 38, 38, 0.3);
    backdrop-filter: blur(8px);
    z-index: 10;
    cursor: help;
    transition: var(--transition-normal);
}

/* Enhanced tooltip styling for multi-line analysis */
.wave-capacity-tooltip {
    position: fixed;
    background: rgba(15, 23, 42, 0.98);
    color: white;
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.7;
    white-space: pre-line;
    width: 380px;
    max-width: 90vw;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), 0 4px 8px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(0.95) translateY(-5px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 10000;
    text-align: left;
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    letter-spacing: 0.01em;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.wave-capacity-tooltip.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
}

.wave-warning[data-tooltip] {
    cursor: help;
}

.wave-warning:hover {
    background: rgba(254, 226, 226, 1);
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.4);
    transform: scale(1.05);
}

.wave-warning svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.wave-warning .warning-text {
    display: none;
}

.wave-warning:hover .warning-text {
    display: inline;
}

.wave-points.over-capacity-text {
    background: rgba(254, 226, 226, 0.95);
    color: #991b1b;
    border-color: rgba(220, 38, 38, 0.4);
    font-weight: 800;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2),
                inset 0 1px 0 rgba(255, 200, 200, 0.9);
}

.download-btn {
    background: var(--success-color);
    color: var(--white);
    border: none;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin: 0 auto;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* About Section */
.about-section {
    background: var(--white);
}

/* Marketing Additions */
.services-section, .pricing-section, .packages-section, .contact-section {
    background: var(--white);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-xl);
}

/* Callout styles for consultancy executive summary */
.callout {
    position: relative;
    padding: 14px 16px 14px 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--gray-light);
    box-shadow: var(--shadow-sm);
    margin: 0 0 var(--space-xl);
}
.callout::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 6px;
    border-radius: 14px 0 0 14px;
    background: linear-gradient(180deg, #8b5cf6, #10b981, #f59e0b);
}
.callout .callout-title { font-weight: 700; margin-bottom: 6px; display:flex; align-items:center; gap:8px; }
.callout .callout-link { font-weight: 600; margin-left: 8px; }
.callout.exec-summary { background: linear-gradient(135deg, #ffffff 0%, #eef2ff 100%); }

/* Responsive video placeholder for consultancy detail page */
.video-placeholder {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    background: radial-gradient( circle at 30% 30%, rgba(139,92,246,0.25), rgba(59,130,246,0.15) 40%, rgba(236,72,153,0.12) 70% );
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: var(--shadow-lg);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.video-placeholder .label {
    background: rgba(0,0,0,0.55);
    color: #fff;
    padding: 8px 12px;
    border-radius: 10px;
    font-weight: 700;
    letter-spacing: 0.4px;
}

/* Homepage promo video embed */
.promo-video-section { background: var(--white); }
.promo-video-frame {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: var(--shadow-lg);
}
.promo-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

.card {
    background: var(--background);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    position: relative;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.card h3 {
    margin: 0 0 var(--space-xs);
    font-size: 1.25rem;
}

.icon-badge {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: var(--shadow-lg);
}

/* Pricing */
.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.price-card {
    background: var(--background);
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

/* Keep CTAs visually aligned at the bottom across cards */
.price-card .price-cta { margin-top: auto; display: flex; }
.price-card .price-cta .btn { align-self: flex-start; }

.price-card.featured {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.price-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.price-header h3 { margin: 0; }
.price-header .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
}
.price-header .price span { font-size: 0.9rem; font-weight: 500; color: var(--gray); }

.price-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.9rem;
}
.price-features li { position: relative; padding-left: 18px; }
.price-features li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--success-color);
}

.note {
    margin-top: var(--space-lg);
    font-size: 0.85rem;
    color: var(--gray);
}

.assessment { margin-top: var(--space-xl); }
.assessment-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--gray-light);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.assessment-card h4 { margin-top: 0; }

/* Packages */
.package .package-price {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
}
.package ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.9rem;
}
.package ul li { position: relative; padding-left: 18px; }
.package ul li::before {
    content: '\2022';
    position: absolute;
    left: 4px;
    color: var(--primary-color);
}
.package.highlighted {
    border: 2px solid var(--primary-color);
    background: var(--primary-light);
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-xl);
}
.contact-form {
    background: var(--background);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-light);
    box-shadow: var(--shadow-md);
}
.contact-aside {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}
.contact-card {
    background: var(--background);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-light);
    box-shadow: var(--shadow-sm);
}
.contact-card h4 { margin-top: 0; }
.contact-card a { color: var(--primary-color); text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }

@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; }
    .price-grid { grid-template-columns: 1fr; }
    .card-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .card-grid { grid-template-columns: 1fr; }
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: var(--space-lg);
    color: var(--dark);
}

.about-content p {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.feature {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 500;
}

.feature i {
    color: var(--success-color);
    font-size: 1.2rem;
}

.about-stats {
    display: grid;
    gap: var(--space-xl);
}

.stat {
    text-align: center;
    padding: var(--space-xl);
    background: var(--background);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-light);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-xs);
}

.stat-label {
    color: var(--gray);
    font-weight: 500;
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--white);
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-xl);
}

.footer-section h4 {
    margin-bottom: var(--space-md);
    color: var(--white);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--space-xs);
}

.footer-section a {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition-normal);
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid var(--dark-light);
    padding-top: var(--space-lg);
    text-align: center;
    color: var(--gray);
}

/* Policy pages layout */
.policy-page {
    padding-top: 140px;
    padding-bottom: 40px;
}
.policy-page .muted.small { font-size: 0.9rem; }

/* Cookie banner */
.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    background: #111827;
    color: #f9fafb;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    display: none;
    z-index: 4000;
}
.cookie-banner.show { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cookie-banner .text { flex: 1 1 auto; font-size: 0.95rem; }
.cookie-banner .actions { display: flex; gap: 10px; }
.cookie-banner a { color: #93c5fd; text-decoration: underline; }
.cookie-banner .btn.accept { background: var(--primary-gradient); color: #fff; border: none; padding: 10px 14px; border-radius: 10px; font-weight: 600; cursor: pointer; }

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

/* ===================================
     Registration Page Styles
     =================================== */
.register-shell { min-height: 100vh; display:flex; align-items:center; justify-content:center; background: var(--background); padding: 16px 12px; }
.register-card {
        background: var(--white);
        border:1px solid var(--gray-light);
        border-radius: var(--radius-xl);
        box-shadow: var(--shadow-xl);
        width: 100%;
        max-width: 1100px;
        height: min(740px, 88vh);
        display: grid;
        grid-template-columns: 1.1fr 0.9fr;
        overflow: hidden;
}
.register-left { padding: 24px 28px; overflow:auto; }
.register-right { padding: 28px; background: var(--primary-gradient); color: #fff; display:flex; flex-direction:column; justify-content:space-between; }
.register-right-inner h2 { margin: 6px 0 10px; }
.register-title { margin: 0 0 6px 0; }
.register-sub { color: var(--gray); margin: 0 0 10px 0; }
.register-actions { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top: 8px; }
.auth-steps { list-style:none; padding:0; margin: 12px 0 0; }
.auth-steps li { margin: 8px 0; opacity: 0.96; }
.auth-brand { display:flex; align-items:center; gap:10px; margin-bottom: 8px; color:#fff; }

/* Form grid to reduce vertical scrolling */
.register-form .form-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 16px;
}
.register-form .form-group { margin-bottom: 0; }
.register-form .form-group.span-2 { grid-column: 1 / -1; }
.checkbox-inline { display:flex; align-items:center; gap:8px; font-weight:500; }

/* Package cards (registration) — styled like homepage price cards but compact */
.package-grid { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--space-xl); margin-top: 6px; }
.pkg-card { position: relative; border:2px solid var(--gray-light); padding: var(--space-xl); border-radius: var(--radius-xl); cursor:pointer; background: var(--background); transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal); display:flex; flex-direction:column; gap:10px; box-shadow: var(--shadow-sm); }
.pkg-card input[type="radio"] { position:absolute; inset:0; opacity:0; cursor:pointer; }
.pkg-card .pkg-title { font-weight:700; color: var(--dark); font-size: 1.1rem; margin: 0; }
.pkg-card .pkg-price { font-size: 2rem; font-weight: 700; color: var(--dark); }
.pkg-card .pkg-price .unit { font-size: 0.9rem; font-weight: 500; color: var(--gray); margin-left: 6px; }
.pkg-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.pkg-card.selected, .pkg-card:has(input:checked) { border-color: var(--primary-color); box-shadow: var(--shadow-lg); background: var(--white); }
.pkg-card .pkg-link { display:inline-block; margin-top:6px; font-size: 0.9rem; color: var(--primary-color); text-decoration:none; }
.pkg-card .pkg-link:hover { text-decoration: underline; }
.wizard-step { cursor: pointer; }

/* Compact inputs for this page */
.register-form input, .register-form select { padding: 10px 12px; }

/* Right column footer */
.register-right-footer { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-top: 10px; }

@media (max-width: 1024px) {
    .register-card { grid-template-columns: 1fr; height: auto; max-width: 760px; }
    .register-right { order: -1; border-bottom: 1px solid rgba(255,255,255,0.25); }
    .package-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* Make it fit on short laptop viewports */
@media (max-height: 820px) and (min-width: 900px) {
    .register-card { height: 86vh; }
    .register-left { padding: 18px 22px; }
    .register-right { padding: 22px; }
    .register-form .form-grid { gap: 10px 12px; }
}

@media (max-width: 560px) {
    .register-form .form-grid { grid-template-columns: 1fr; }
    .register-actions { flex-direction: column; align-items: stretch; gap:8px; }
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 600px;
    box-shadow: var(--shadow-xl);
    animation: modalSlide 0.3s ease-out;
    /* layout so header/body/footer can be sized independently and body can scroll */
    display: flex;
    flex-direction: column;
    max-height: 80vh; /* keep modal within viewport */
    overflow: hidden;
}

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

.modal-header {
    padding: var(--space-xl);
    border-bottom: 1px solid var(--gray-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: var(--dark);
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--gray);
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--dark);
}

.modal-body {
    padding: var(--space-xl);
    /* allow long content to scroll while keeping header/footer visible */
    overflow: auto;
    flex: 1 1 auto;
}

.modal-footer {
    padding: var(--space-xl);
    border-top: 1px solid var(--gray-light);
    display: flex;
    justify-content: flex-end;
    gap: var(--space-md);
    flex-shrink: 0; /* keep footer visible */
}

/* Form Styles */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: var(--space-md);
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition-normal);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* Inline error styles */
.form-group .input-error {
    color: var(--error-color);
    font-size: 0.85rem;
    margin-top: 6px;
    min-height: 1.1em;
}

.form-group.invalid input,
.form-group.invalid textarea {
    border-color: var(--error-color);
    box-shadow: 0 0 0 3px rgba(245, 101, 101, 0.12);
}

.form-group.valid input,
.form-group.valid textarea {
    border-color: var(--success-color);
    box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.12);
}

/* Subtle hint */
.field-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 4px;
}

/* Make auth modal a bit narrower */
.modal-content.auth {
    max-width: 480px;
}

/* Danger button variant for logout state */
.btn.danger {
    background: var(--accent-color);
    color: var(--white);
}

/* Button Styles */
.btn {
    padding: var(--space-md) var(--space-lg);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    text-decoration: none;
}

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

.btn.secondary {
    background: var(--gray-light);
    color: var(--dark);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Disabled button/link styles (used for checkout gating) */
.btn.disabled,
.btn[aria-disabled="true"],
#reg-checkout-link.disabled,
#reg-checkout-link[aria-disabled="true"] {
    opacity: 0.55;
    pointer-events: none;
    filter: grayscale(12%);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Small button variant */
.btn.small {
    padding: 6px 10px;
    font-size: 0.9rem;
}

/* Navbar auth widget */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 16px;
}
.nav-auth #nav-auth-status {
    font-size: 0.9rem;
    color: var(--gray);
}

/* Account menu */
.account-menu {
    position: relative;
    margin-left: 12px;
}
.account-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: 999px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}
.account-btn:hover { box-shadow: var(--shadow-md); }
.account-btn .avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}
.account-btn .account-email {
    font-size: 0.9rem;
    color: var(--dark);
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.account-btn .caret { color: var(--gray); font-size: 0.8rem; }

.account-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 220px;
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    padding: 8px;
    display: none;
    z-index: 2100;
}
.account-dropdown.show { display: block; }
.account-dropdown .account-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: transparent;
    border: none;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    text-align: left;
    cursor: pointer;
    color: var(--dark);
}
.account-dropdown .account-item:hover { background: var(--background); }
.account-dropdown .account-item.danger { color: var(--error-color); }
.account-dropdown .account-item i { width: 16px; color: var(--gray); }
.account-dropdown .account-item.danger i { color: var(--error-color); }
.account-dropdown .account-sep {
    border: none;
    border-top: 1px solid var(--gray-light);
    margin: 6px 4px;
}

/* Input row for password + toggle */
.input-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.input-row input {
    flex: 1;
}

/* Link style */
.link {
    color: var(--primary-color);
    text-decoration: none;
}
.link:hover { text-decoration: underline; }

/* Modal shake on error */
@keyframes shake {
    10%, 90% { transform: translateX(-1px); }
    20%, 80% { transform: translateX(2px); }
    30%, 50%, 70% { transform: translateX(-4px); }
    40%, 60% { transform: translateX(4px); }
}
.modal-content.shake {
    animation: shake 0.4s ease-in-out;
}

/* Wizard styles */
.wizard-steps.modern { position:relative; display:flex; align-items:center; gap:28px; margin: 18px 0 24px; padding-top:14px; }
.wizard-steps.modern .wizard-progress-bar { position:absolute; top:0; left:0; right:0; height:6px; background:linear-gradient(90deg,#e5e7eb,#f0f1f5); border-radius:6px; overflow:hidden; }
.wizard-steps.modern .wizard-progress-fill { height:100%; background:linear-gradient(90deg,var(--primary-color),#6366f1); transition:width .4s cubic-bezier(.4,.0,.2,1); }
.wizard-step { position:relative; display:flex; flex-direction:column; align-items:flex-start; min-width:90px; }
.wizard-step .step-index { width:34px; height:34px; border-radius:12px; background:#fff; border:1.5px solid #d1d5db; display:flex; align-items:center; justify-content:center; font-weight:600; font-size:0.9rem; color:#374151; box-shadow:0 1px 2px rgba(0,0,0,0.04); transition:all .35s ease; }
.wizard-step .step-label { margin-top:6px; font-size:0.75rem; font-weight:600; letter-spacing:.5px; text-transform:uppercase; color:#6b7280; transition:color .35s ease; }
.wizard-step.active .step-index { border-color: var(--primary-color); background:linear-gradient(135deg,var(--primary-color),#6366f1); color:#fff; box-shadow:0 4px 12px -2px rgba(99,102,241,0.4); transform:translateY(-2px); }
.wizard-step.active .step-label { color:#111827; }
.wizard-step.done .step-index { background:#10b981; border-color:#10b981; color:#fff; position:relative; }
.wizard-step.done .step-index::before { content:'\2713'; font-size:1rem; }
.wizard-step.done .step-label { color:#374151; }
.wizard-step[aria-current="step"] .step-label { font-weight:700; }

/* Checkout status improvements */
#checkout-status { font-size:0.75rem; letter-spacing:.3px; }
#checkout-status.loading { color:#4b5563; }
#checkout-status.opening { color: var(--primary-color); }
#checkout-status.error { color:#b00020; }
#checkout-status.success { color:#059669; }

/* Spinner */
.sw-spinner { width:16px; height:16px; border:3px solid rgba(255,255,255,.35); border-top-color:#fff; border-radius:50%; animation:swSpin .8s linear infinite; display:inline-block; vertical-align:middle; margin-right:6px; }
@keyframes swSpin { to { transform:rotate(360deg); } }
.wizard-pane { display:none; }
.wizard-pane.active { display:block; }
.wizard-nav { display:flex; align-items:center; gap:10px; margin-top: 10px; }
.wizard-nav .spacer { flex:1; }
.confirm-card { background: var(--background); border:1px solid var(--gray-light); border-radius: var(--radius-lg); padding: 14px; }
.confirm-card .confirm-price { font-size: 1.3rem; font-weight: 700; margin-top: 4px; }

/* Lightweight diagnostics callout for checkout issues */
.diag-box { background:#fff; border:1px solid var(--gray-light); border-radius:10px; padding:10px 12px; box-shadow: var(--shadow-sm); }
.diag-box .diag-title { font-weight:700; font-size:0.95rem; margin-bottom:4px; color:#1f2937; }
.diag-box .diag-body { font-size:0.85rem; color:#4b5563; }

/* Inline SVG icon style */
.sw-icon { width: 1.1em; height: 1.1em; display: inline-block; vertical-align: -0.15em; stroke: currentColor; fill: none; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.sw-icon.filled { fill: currentColor; stroke: none; }
.icon-badge .sw-icon { width: 1.9em; height: 1.9em; stroke-width: 2.4; stroke: #fff; }
.btn .sw-icon, .hero-cta .sw-icon { margin-right: 0.4em; }

/* Funky blob accent inside symbols */
.sw-icon .sw-blob { fill: url(#swAccent); opacity: 0.2; }

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-right { margin-top: var(--space-xl); }
    .hero-headline { text-align:center; }
    .hero-subhead, .value-list, .cta-row, .trust-row { text-align:left; }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-lg);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    .nav-container {
        padding: 0 var(--space-md);
    }
    .nav-container.stacked { gap: 6px; }
    .brand img { height: 38px; }
    
    .nav-menu {
        gap: var(--space-lg);
        margin-top: var(--space-md);
    }
    
    .hero {
        padding-top: calc(140px + var(--space-xl));
    }
    
    .hero-headline { font-size: 2.6rem; }
    
    .cta-row { justify-content:center; }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .features-list {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
}

@media (max-width: 480px) {
    .hero-headline { font-size: 2.15rem; }
    .hero-subhead { font-size:1rem; }
    .hero-cta { width:100%; justify-content:center; padding:16px 26px; }
    
    .planner-steps {
        grid-template-columns: 1fr;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Notifications */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-md) var(--space-lg);
    box-shadow: var(--shadow-xl);
    z-index: 3000;
    transform: translateX(400px);
    transition: var(--transition-normal);
    border-left: 4px solid var(--primary-color);
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-left-color: var(--success-color);
}

.notification.error {
    border-left-color: var(--error-color);
}

.notification.warning {
    border-left-color: var(--warning-color);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.notification-content i {
    font-size: 1.2rem;
}

.notification.success .notification-content i {
    color: var(--success-color);
}

.notification.error .notification-content i {
    color: var(--error-color);
}

.notification.warning .notification-content i {
    color: var(--warning-color);
}

/* Project Cards Enhanced */
.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-md);
}

.project-actions {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.project-actions .btn {
    flex: 1;
    justify-content: center;
}

.btn-icon {
    background: none;
    border: none;
    padding: var(--space-xs);
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--gray);
    transition: var(--transition-fast);
}

.btn-icon:hover {
    background: var(--gray-light);
    color: var(--dark);
}

.project-stats {
    display: flex;
    gap: var(--space-lg);
    margin: var(--space-lg) 0;
}

.project-stats .stat {
    text-align: center;
    padding: 0;
    background: none;
    border: none;
}

.project-stats .stat-number {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.project-stats .stat-label {
    font-size: 0.875rem;
}

/* Wave Plan Results */
.wave-table {
    background: var(--background);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-top: var(--space-lg);
}

.wave-table h4 {
    margin-bottom: var(--space-lg);
    color: var(--dark);
}

.wave-section {
    margin-bottom: var(--space-xl);
}

.wave-section h5 {
    color: var(--primary-color);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-xs);
    border-bottom: 2px solid var(--primary-color);
}

.applications-list {
    display: grid;
    gap: var(--space-sm);
}

.app-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-light);
}

/* New app-card styles for improved wave details */
.app-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    padding: calc(var(--space-md) + 2px);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-light);
    box-shadow: var(--shadow-sm);
}

.app-card-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.app-title {
    font-weight: 700;
    color: var(--dark);
    font-size: 1rem;
}

.app-meta {
    display: flex;
    gap: var(--space-xs);
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--white);
}

.badge.rfactor {
    background: var(--primary-gradient);
}

.badge.complexity {
    background: var(--accent-gradient);
}

.app-card-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    min-width: 220px;
}

.app-affinities {
    font-size: 0.9rem;
    color: var(--dark);
}

.app-affinities.muted {
    color: var(--gray);
}

/* Report Styles */
.report {
    background: linear-gradient(180deg, var(--white), #fbfdff);
    border: 1px solid var(--gray-light);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-top: var(--space-lg);
}
.report-header h3 { margin: 0; color: var(--primary-color); }
.report-sub { color: var(--gray); margin-bottom: var(--space-sm); }
.report-stats { list-style: none; padding: 0; display: flex; gap: var(--space-lg); flex-wrap: wrap; }
.report-stats li { background: var(--background); padding: var(--space-sm) var(--space-md); border-radius: var(--radius-sm); border: 1px solid var(--gray-light); }
.report-issue { margin-top: var(--space-md); padding: var(--space-md); border-radius: var(--radius-sm); }
.report-warning { background: linear-gradient(90deg, rgba(254,234,160,0.15), rgba(255,255,255,0)); border-left: 4px solid var(--warning-color); }
.report-danger { background: linear-gradient(90deg, rgba(255, 110, 110,0.07), rgba(255,255,255,0)); border-left: 4px solid var(--error-color); }
.report-ok { margin-top: var(--space-md); padding: var(--space-md); background: rgba(72,187,120,0.06); border-left: 4px solid var(--success-color); }
.report-section { margin-top: var(--space-md); }
.report-footer { margin-top: var(--space-md); color: var(--gray); font-size: 0.9rem; }

.app-name {
    font-weight: 500;
    color: var(--dark);
}

.app-priority {
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    background: var(--gray-light);
    color: var(--gray);
}

.wave-complexity {
    font-size: 0.875rem;
    color: var(--gray);
    margin-top: var(--space-xs);
}

/* Loading States */
.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--gray-light);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Header Scroll Effect */
header {
    transition: transform var(--transition-normal);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* App Edit Card Styles for Wave Detail Modal */
.app-edit-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    background: var(--white);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-light);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-md);
}

.app-edit-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
}

.app-edit-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.app-edit-right {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
}

.app-edit-card .app-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--dark);
}

.app-edit-card .app-id,
.app-edit-card .muted {
    font-size: 0.85rem;
    color: var(--gray);
}

.app-edit-card input[type="number"],
.app-edit-card input[type="text"],
.app-edit-card select {
    padding: var(--space-sm) var(--space-md);
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    transition: var(--transition-normal);
}

.app-edit-card input[type="number"]:focus,
.app-edit-card input[type="text"]:focus,
.app-edit-card select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-rfactor,
.input-complexity {
    width: 80px;
}

.input-owner {
    width: 150px;
}

.select-move-wave {
    min-width: 120px;
}

.app-edit-card label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.save-app-btn {
    white-space: nowrap;
}

/* Wave Detail Modal - Make it wider and better styled */
#wave-detail-modal .modal-content {
    max-width: 1000px;
    width: 95%;
}

#wave-detail-modal .modal-body {
    padding: var(--space-xl);
}

#wave-detail-modal .wave-app-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

/* Enhanced dropdown styling for wave detail modal */
.app-edit-card select.select-move-wave {
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-light) 100%);
    border: 2px solid var(--gray-light);
    padding: var(--space-sm) var(--space-md);
    padding-right: calc(var(--space-md) + 20px);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    transition: all var(--transition-normal);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23667eea' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-sm) center;
    background-size: 12px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.app-edit-card select.select-move-wave:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.app-edit-card select.select-move-wave:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: var(--white);
}

/* Enhanced input styling with colors */
.app-edit-card input.input-rfactor,
.app-edit-card input.input-complexity,
.app-edit-card input.input-owner {
    background: linear-gradient(135deg, var(--white) 0%, rgba(102, 126, 234, 0.02) 100%);
    transition: all var(--transition-normal);
}

.app-edit-card input.input-rfactor:hover,
.app-edit-card input.input-complexity:hover,
.app-edit-card input.input-owner:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

/* Save button with gradient */
.save-app-btn {
    background: var(--primary-gradient);
    color: var(--white);
    font-weight: 600;
    transition: all var(--transition-normal);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.save-app-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

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

.save-app-btn:disabled {
    background: var(--gray-light);
    color: var(--gray);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Color-coded labels */
.app-edit-card label {
    color: var(--primary-color);
}

/* Better app card hover effect */
.app-edit-card:hover {
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
    transition: all var(--transition-normal);
}
/* Wave Generation Controls */
.wave-controls {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.controls-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.1);
}

.controls-header h4 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.reset-controls-btn {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.reset-controls-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    transform: translateY(-1px);
}

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

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

.control-item label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.control-label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}

.control-value {
    background: var(--primary-gradient);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    min-width: 40px;
    text-align: center;
}

.wave-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, rgba(102, 126, 234, 0.2) 0%, rgba(102, 126, 234, 0.4) 100%);
    outline: none;
    transition: all 0.2s ease;
}

.wave-slider:hover {
    background: linear-gradient(to right, rgba(102, 126, 234, 0.3) 0%, rgba(102, 126, 234, 0.5) 100%);
}

.wave-slider:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.wave-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-gradient);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
    transition: all 0.2s ease;
}

.wave-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-gradient);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
    transition: all 0.2s ease;
}

.wave-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.6);
}

.wave-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.6);
}

.wave-slider:disabled::-webkit-slider-thumb,
.wave-slider:disabled::-moz-range-thumb {
    cursor: not-allowed;
    transform: none;
}

.control-range {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--gray);
    margin-top: 4px;
}

.controls-status {
    background: rgba(102, 126, 234, 0.05);
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 16px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
    font-size: 0.9rem;
}

.status-indicator i {
    color: var(--primary-color);
}

.status-indicator.calculating {
    color: var(--primary-color);
    font-weight: 600;
}

.status-indicator.error {
    color: #dc2626;
}

.status-indicator i.fa-spin {
    display: inline-block !important;
}

/* ===================================
   WIZARD WORKFLOW STYLES
   =================================== */

.wizard-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0 3rem;
    padding: 0 2rem;
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.wizard-step .step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gray-light);
    color: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    transition: all var(--transition-normal);
    border: 3px solid var(--gray-light);
}

.wizard-step .step-label {
    font-size: 0.9rem;
    color: var(--gray);
    font-weight: 500;
    transition: color var(--transition-normal);
}

.wizard-step.active .step-number {
    background: var(--primary-gradient);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.wizard-step.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

.wizard-step.completed .step-number {
    background: var(--success-color);
    color: white;
    border-color: var(--success-color);
}

.wizard-step.completed .step-number::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.wizard-step.completed .step-label {
    color: var(--success-color);
}

.wizard-connector {
    flex: 1;
    height: 3px;
    background: var(--gray-light);
    margin: 0 1rem;
    max-width: 150px;
    position: relative;
    bottom: 25px;
}

.wizard-connector.active {
    background: var(--primary-gradient);
}

.wizard-content {
    min-height: 400px;
    animation: fadeInUp 0.4s ease-out;
}

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

.wizard-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    max-width: 800px;
    margin: 0 auto;
}

.wizard-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-lg);
}

.wizard-card h3 {
    text-align: center;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.wizard-card > p {
    text-align: center;
    color: var(--gray);
    margin-bottom: 2rem;
}

.wizard-actions {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-light);
    display: flex;
    justify-content: center;
}

.project-selection {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.existing-projects {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.project-option {
    background: var(--background);
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: left;
}

.project-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.project-option.selected {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.project-option h4 {
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.project-option .project-meta {
    color: var(--gray);
    font-size: 0.85rem;
    display: flex;
    gap: 1rem;
}

.btn.large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Wave Plans Section in Wizard */
.project-wave-plans {
    margin-top: 2rem;
}

.project-wave-plans .divider {
    height: 1px;
    background: var(--border);
    margin: 2rem 0 1.5rem 0;
}

.project-wave-plans h4 {
    color: var(--dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-wave-plans h4 i {
    color: var(--primary);
}

.wave-plans-list {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1rem;
    max-height: 300px;
    overflow-y: auto;
    padding: 0.5rem;
}

.wave-plan-item {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wave-plan-item:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: translateX(4px);
}

.wave-plan-item.active {
    border-color: var(--primary);
    background: var(--primary-light);
}

.wave-plan-info {
    flex: 1;
}

.wave-plan-info h5 {
    color: var(--dark);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.wave-plan-meta {
    color: var(--gray);
    font-size: 0.8rem;
    display: flex;
    gap: 1rem;
}

.wave-plan-actions {
    display: flex;
    gap: 0.5rem;
}

.wave-plan-actions .btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.wave-plans-list:empty::before {
    content: 'No wave plans yet. Create one to get started.';
    display: block;
    text-align: center;
    color: var(--gray);
    padding: 2rem;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .wizard-steps {
        padding: 0 1rem;
    }
    
    .wizard-connector {
        max-width: 80px;
    }
    
    .wizard-step .step-label {
        font-size: 0.75rem;
    }
    
    .wizard-card {
        padding: 1.5rem;
    }
    
    .existing-projects {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   OAUTH AUTHENTICATION STYLES
   =================================== */

.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    gap: 0.75rem;
}

.auth-divider hr {
    flex: 1;
    border: none;
    height: 1px;
    background-color: var(--border-light);
}

.auth-divider span {
    color: var(--gray);
    font-size: 0.875rem;
    font-weight: 500;
}

.oauth-section {
    margin-bottom: 1rem;
}

.google-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: white;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.google-btn:hover {
    background: var(--bg-light);
    border-color: var(--border);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.google-btn svg {
    flex-shrink: 0;
}

/* Microsoft button styled similarly to Google button */
.microsoft-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: white;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.microsoft-btn:hover {
    background: var(--bg-light);
    border-color: var(--border);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.microsoft-btn svg {
    flex-shrink: 0;
    border-radius: 2px;
}

/* OAuth status messages */
.oauth-status {
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    text-align: center;
}

.oauth-status.pending {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.oauth-status.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Funky Pending Approval Overlay */
.pending-approval-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.95) 0%, 
        rgba(118, 75, 162, 0.95) 100%);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.9);
    transition: all var(--transition-slow);
}

.pending-approval-overlay.visible {
    opacity: 1;
    transform: scale(1);
}

.pending-approval-container {
    max-width: 600px;
    margin: var(--space-lg);
    perspective: 1000px;
}

.pending-approval-content {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    text-align: center;
    box-shadow: var(--shadow-xl);
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotateX(0deg); }
    50% { transform: translateY(-20px) rotateX(2deg); }
}

.pending-approval-icon {
    margin-bottom: var(--space-lg);
    position: relative;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rotating-waves {
    position: relative;
    width: 120px;
    height: 120px;
}

.wave-icon {
    position: absolute;
    font-size: 3rem;
    color: var(--primary-color);
    animation: wave-rotate 3s linear infinite;
    opacity: 0.7;
}

.wave-icon:nth-child(1) {
    animation-delay: 0s;
    transform-origin: center;
}

.wave-icon:nth-child(2) {
    animation-delay: -1s;
    color: var(--accent-color);
    transform: scale(0.8);
}

.wave-icon:nth-child(3) {
    animation-delay: -2s;
    color: var(--success-color);
    transform: scale(0.6);
}

@keyframes wave-rotate {
    0% { 
        transform: rotate(0deg) translateX(30px) rotate(0deg);
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
    100% { 
        transform: rotate(360deg) translateX(30px) rotate(-360deg);
        opacity: 1;
    }
}

.pending-approval-title {
    margin-bottom: var(--space-md);
    font-size: 2.5rem;
    font-weight: 700;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse 2s ease-in-out infinite alternate;
}

@keyframes pulse {
    from { opacity: 0.8; }
    to { opacity: 1; }
}

.pending-approval-message {
    margin-bottom: var(--space-xl);
}

.primary-message {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: var(--space-sm);
}

.secondary-message {
    color: var(--gray);
    line-height: 1.6;
}

.pending-approval-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    padding: var(--space-lg);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--gray-light) 100%);
    border-radius: var(--radius-lg);
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    margin-bottom: var(--space-xs);
}

.step.completed .step-icon {
    background: var(--success-color);
    color: var(--white);
    animation: bounce-in 0.6s ease-out;
}

.step.pending .step-icon {
    background: var(--warning-color);
    color: var(--white);
    animation: spin 2s linear infinite;
}

.step.future .step-icon {
    background: var(--gray-light);
    color: var(--gray);
}

@keyframes bounce-in {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

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

.step-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--dark);
    text-align: center;
}

.step.future .step-text {
    color: var(--gray);
}

.pending-approval-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.pending-approval-actions .btn {
    min-width: 160px;
}

.pending-approval-footer {
    padding-top: var(--space-lg);
    border-top: 1px solid var(--gray-light);
}

.pending-approval-footer .muted {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Mobile responsiveness for pending approval */
@media (max-width: 768px) {
    .pending-approval-content {
        padding: var(--space-lg);
        margin: var(--space-sm);
    }
    
    .pending-approval-title {
        font-size: 2rem;
    }
    
    .pending-approval-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
        padding: var(--space-md);
    }
    
    .pending-approval-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .pending-approval-actions .btn {
        width: 100%;
        max-width: 200px;
    }
}

/* =====================================
   ADMIN PANEL STYLES 
   ===================================== */

.admin-body {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    min-height: 100vh;
    font-family: var(--font-primary);
}

.admin-header {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-icon {
    color: var(--accent-color);
    margin-right: var(--space-xs);
}

.admin-badge {
    font-size: 0.75rem;
    background: var(--accent-gradient);
    color: var(--white);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-status {
    color: var(--white);
    font-weight: 500;
    opacity: 0.9;
}

.admin-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Admin Login Section */
.admin-login-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
}

.admin-login-container {
    width: 100%;
    max-width: 400px;
}

.admin-login-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.6s ease-out;
}

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

.admin-login-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.admin-login-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    font-size: 1.5rem;
    color: var(--white);
}

.admin-login-header h2 {
    margin: 0 0 var(--space-xs);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
}

.admin-login-form {
    margin-bottom: var(--space-lg);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-weight: 500;
    color: var(--dark);
    margin-bottom: var(--space-xs);
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all var(--transition-normal);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.full-width {
    width: 100%;
}

.admin-login-message {
    margin-top: var(--space-md);
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    text-align: center;
}

.admin-login-message.error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.admin-login-message.success {
    background: #f0f9ff;
    color: #0369a1;
    border: 1px solid #7dd3fc;
}

.admin-login-footer {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--gray-light);
}

.back-link {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color var(--transition-normal);
}

.back-link:hover {
    color: var(--primary-color);
}

/* Admin Panel */
.admin-panel {
    flex: 1;
    padding: var(--space-xl) 0;
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.admin-dashboard-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
    color: var(--white);
}

.admin-dashboard-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Stats Grid */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.admin-stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-normal);
}

.admin-stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--white);
}

.stat-icon.pending {
    background: var(--warning-color);
}

.stat-icon.approved {
    background: var(--success-color);
}

.stat-icon.total {
    background: var(--primary-color);
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: var(--dark);
}

.stat-content p {
    margin: 0;
    color: var(--gray);
    font-size: 0.875rem;
}

/* Admin Sections */
.admin-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.admin-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--gray-light);
    background: linear-gradient(135deg, var(--background) 0%, var(--white) 100%);
}

.admin-section-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

/* Plans Editor */
.plans-grid {
    padding: var(--space-lg);
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

.plan-card {
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.plan-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    background: linear-gradient(135deg, #eef2ff 0%, #fff 100%);
    border-bottom: 1px solid var(--gray-light);
}

.plan-card-header h4 {
    margin: 0;
    font-weight: 600;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-md);
    padding: var(--space-lg);
}

.plan-card label {
    font-size: 0.9rem;
    color: var(--gray);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.plan-card input[type="text"],
.plan-card input[type="number"],
.plan-card select,
.plan-card textarea {
    width: 100%;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    font-size: 0.95rem;
}

.plan-card textarea {
    resize: vertical;
    min-height: 100px;
}

.plan-card .plan-features {
    min-height: 160px;
}

/* Admin table (inquiries) */
.admin-table { padding: var(--space-lg); }
.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.table thead th {
    text-align: left;
    background: #f8fafc;
    color: var(--dark);
    font-weight: 600;
    padding: 10px 12px;
    border-bottom: 1px solid var(--gray-light);
}
.table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid #eef2f7;
    font-size: 0.95rem;
}
.table.compact thead th, .table.compact tbody td { padding: 8px 10px; }

/* Filters */
.admin-filters {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--gray-light);
}

.filter-group {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.filter-btn {
    padding: var(--space-xs) var(--space-md);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-md);
    background: var(--white);
    color: var(--gray);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Users Grid */
.users-grid {
    padding: var(--space-lg);
}

.user-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    transition: all var(--transition-normal);
}

.user-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.user-info {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex: 1;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 500;
}

.user-details h4 {
    margin: 0 0 var(--space-xs);
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark);
}

.user-details p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--gray);
}

.user-status {
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-status.pending {
    background: #fef3c7;
    color: #92400e;
}

.user-status.approved {
    background: #d1fae5;
    color: #065f46;
}

.user-status.rejected {
    background: #fee2e2;
    color: #991b1b;
}

.user-actions {
    display: flex;
    gap: var(--space-xs);
}

.user-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Search */
.admin-search {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--gray-light);
}

.search-group {
    display: flex;
    gap: var(--space-md);
    max-width: 400px;
}

.search-group input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
}

.search-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Log Viewer */
.admin-results {
    padding: var(--space-lg);
}

.log-viewer {
    max-height: 400px;
    overflow: auto;
    background: var(--dark);
    color: #00ff00;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.4;
    border: none;
    margin: 0;
}

.log-viewer:empty::before {
    content: "No logs found. Try searching for something...";
    color: var(--gray);
    font-style: italic;
}

/* Admin: Pricing grid */
.pricing-grid {
    padding: var(--space-lg);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-lg);
}

/* Mobile responsiveness for admin */
@media (max-width: 768px) {
    .admin-container {
        padding: 0 var(--space-md);
    }
    
    .admin-stats-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .admin-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }
    
    .filter-group {
        justify-content: center;
    }
    
    .user-card {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }
    
    .user-info {
        width: 100%;
    }
    
    .user-actions {
        width: 100%;
        justify-content: center;
    }
    
    .search-group {
        flex-direction: column;
        max-width: none;
    }
}
