/*
Theme Name: Check Your Potential
Description: AI-powered photo analysis theme with Stripe integration
Version: 1.0
Author: CYP Team
Text Domain: cyp
*/

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --border-color: #e5e7eb;
    /* CYP Dashboard & Auth – unified dark palette (few colors) */
    --cyp-bg: #0d0d1a;
    --cyp-bg-elevated: #15152a;
    --cyp-bg-card: rgba(255, 255, 255, 0.05);
    --cyp-accent: #6366f1;
    --cyp-accent-hover: #818cf8;
    --cyp-accent-soft: rgba(99, 102, 241, 0.12);
    --cyp-text: #ffffff;
    --cyp-text-muted: #94a3b8;
    --cyp-text-subtle: #64748b;
    --cyp-border: rgba(255, 255, 255, 0.08);
    --cyp-border-strong: rgba(255, 255, 255, 0.12);
    --cyp-locked: rgba(239, 68, 68, 0.15);
    --cyp-locked-border: rgba(239, 68, 68, 0.35);
}

/* Global UI consistency: ensure form controls + buttons always use the same font */
button,
input,
select,
textarea {
    font-family: inherit !important;
    font-size: inherit;
}

/* Global button sizing consistency */
.btn,
.cta-button,
.login-button,
.checkout-button,
.select-plan-btn,
.age-gate-button {
    font-family: inherit !important;
    line-height: 1.1;
    min-height: 44px !important;
    padding: 0.75rem 1.25rem !important;
    border-radius: 0.75rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: #fff;
    font-weight: 400;
}

/* Azbuka (Cyrillic): fallback fonty první, aby se ruština vždy zobrazila správně */
html[lang="ru-RU"] body,
html[lang^="ru"] body {
    font-family: 'Segoe UI', Roboto, Arial, 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Service pages: unified container – back button + content aligned (stejná estetika) */
.service-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}
/* Inner .container on service pages: no extra padding so "Zpět na přehled" and blocks below align */
.service-page .container {
    max-width: none;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}
.back-button {
    text-align: left;
    margin-bottom: 2rem;
}
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.btn-back::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transition: left 0.5s ease;
}
.btn-back:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}
.btn-back:hover::before {
    left: 100%;
}
.btn-back:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.btn-back .back-icon {
    font-size: 1.2rem;
}

@media (max-width: 640px) {
    .service-page {
        padding: 0 1rem;
    }
}

/* Header */
.site-header {
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    position: relative;
}

/* Header responsiveness (hard guarantee) */
.header-content > * {
    min-width: 0;
}

/* Ensure header never overflows on smaller widths */
@media (max-width: 1024px) {
    .header-content {
        gap: 0.75rem;
    }

    /* Mobile header = logo + hamburger only (user + plan live inside drawer) */
    #masthead .header-actions {
        display: none !important;
    }

    .header-actions {
        gap: 0.5rem;
    }

    .user-button {
        max-width: 170px;
    }

    .user-name {
        max-width: 90px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Shrink plan pill to avoid wrapping/overflow */
    .plan-display {
        gap: 0.5rem;
        padding: 0.55rem 0.75rem;
    }

    .plan-meta {
        font-size: 0.85rem;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .site-header .container {
        padding: 0 12px;
    }

    /* Prioritize tap targets + avoid cramped header */
    .header-actions {
        gap: 0.35rem;
    }

    .user-button {
        padding: 0.45rem 0.6rem;
    }

    .user-name,
    .dropdown-arrow {
        display: none;
    }

    /* Show only plan label on tiny screens */
    .plan-meta {
        display: none;
    }
}

/* Logo */
.site-header .logo {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    font-size: 1.25rem !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    /* transition removed */
}

/* Hover effects removed */

.logo-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-text {
    display: flex !important;
    flex-direction: column !important;
    line-height: 1.1 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    font-size: 13px !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
}

.logo-line-1,
.logo-line-2 {
    color: #ffffff !important;
    display: block !important;
    text-decoration: none !important;
}

.logo-line-2 {
    letter-spacing: 2.2px !important;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.menu-toggle {
    /* Desktop default: hide hamburger. It is enabled only for mobile/tablet breakpoints. */
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.main-navigation {
    gap: 0.75rem;
}

/* Desktop navigation: show the menu inline (no drawer overlay) */
@media (min-width: 1025px) {
    .nav-menu-wrapper {
        position: static !important;
        inset: auto !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        backdrop-filter: none !important;
        padding: 0 !important;
        overflow: visible !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        z-index: auto !important;
        display: block !important;
        pointer-events: auto !important;
    }

    .nav-drawer {
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        transform: none !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
    }

    /* Hide drawer-only header and lang switcher on desktop */
    .nav-drawer-header,
    .nav-drawer-lang,
    .menu-close {
        display: none !important;
    }

    .nav-drawer-links {
        padding: 0 !important;
        overflow: visible !important;
    }

    .nav-menu {
        flex-direction: row !important;
        gap: 0.75rem !important;
        align-items: center !important;
        width: auto !important;
        max-width: none !important;
    }

    .nav-menu a {
        background: transparent !important;
        border: none !important;
        padding: 0.35rem 0.5rem !important;
        border-radius: 0.5rem !important;
    }
}

/* =========================
   Public pages design system
   ========================= */
.public-hero {
    position: relative;
    padding: 5rem 0 3.5rem;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    overflow: hidden;
}
.public-hero::before,
.public-hero::after {
    content: '';
    position: absolute;
    inset: auto;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(99, 102, 241, 0.28), rgba(99, 102, 241, 0) 60%);
    filter: blur(2px);
    pointer-events: none;
}
.public-hero::before { top: -220px; left: -180px; }
.public-hero::after  { bottom: -260px; right: -220px; background: radial-gradient(circle at 30% 30%, rgba(139, 92, 246, 0.22), rgba(139, 92, 246, 0) 60%); }

.public-hero .container {
    position: relative;
    z-index: 2;
}
.public-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
    font-size: 0.9rem;
}
.public-title {
    margin: 1rem 0 0.75rem;
    color: #fff;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 900;
    letter-spacing: -0.02em;
}
.public-subtitle {
    margin: 0;
    color: #cbd5e1;
    font-size: 1.1rem;
    max-width: 62ch;
}

.public-section {
    background: #0b1220;
    padding: 3.5rem 0;
}
.public-section.alt {
    background: #0f172a;
}
.public-section .section-title {
    color: #fff;
    font-size: 1.7rem;
    font-weight: 800;
    margin: 0 0 0.75rem;
}
.public-section .section-subtitle {
    color: #94a3b8;
    margin: 0 0 1.5rem;
}

.public-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.25rem;
}
.public-card {
    grid-column: span 4;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 1rem;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.public-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(99, 102, 241, 0.3);
}
.public-card h3 {
    margin: 0 0 0.5rem;
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
}
.public-card h3 a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
}
.public-card h3 a:hover {
    color: #a5b4fc;
}
.public-card p {
    margin: 0;
    color: #cbd5e1;
}
.public-card .muted {
    color: #94a3b8;
}
.public-card .icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    margin-bottom: 0.75rem;
    background: rgba(99, 102, 241, 0.18);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: #c7d2fe;
    font-weight: 900;
}

/* Blog Card Enhancements */
.blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
    overflow: hidden;
}
.blog-card-image {
    display: block;
    width: 100%;
    margin: 0;
    overflow: hidden;
    transition: transform 0.3s ease;
    border-radius: 1rem 1rem 0 0;
}
.blog-card-image img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}
.blog-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.blog-card-content .icon {
    margin-bottom: 1rem;
}
.blog-card h3 {
    margin: 0 0 0.75rem;
    font-size: 1.2rem;
    line-height: 1.4;
}
.blog-card-date {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}
.blog-card-excerpt {
    margin: 0 0 1rem;
    line-height: 1.6;
    color: #cbd5e1;
    flex-grow: 1;
}
.blog-card-categories {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.blog-card-category {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: #c7d2fe;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    transition: all 0.2s ease;
}
.blog-card-category:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.35);
    color: #fff;
    transform: translateY(-1px);
}
.blog-card-footer {
    margin-top: auto;
    padding-top: 1rem;
}

/* Guide cards (Kurzy) – professional hover: icon rotation, card lift, button */
.guides-grid .guide-card {
    transition: transform 0.4s cubic-bezier(0.34, 1.2, 0.64, 1), box-shadow 0.4s ease, border-color 0.3s ease;
}
.guides-grid .guide-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.35);
}
.guide-card .blog-card-content .icon {
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center;
    will-change: transform;
}
.guide-card:hover .blog-card-content .icon {
    transform: rotate(360deg);
}
.guide-card .blog-card-footer .public-btn.secondary {
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, padding-right 0.25s ease, box-shadow 0.25s ease;
}
.guide-card:hover .blog-card-footer .public-btn.secondary {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.2);
    padding-right: 1.25rem;
}
.guide-card .blog-card-image img,
.guide-card .blog-card-image {
    transition: transform 0.5s cubic-bezier(0.34, 1.2, 0.64, 1);
}
.guide-card:hover .blog-card-image img {
    transform: scale(1.06);
}
.guide-card h3 a {
    transition: color 0.2s ease;
}
.guide-card:hover h3 a {
    color: #a5b4fc;
}

/* Blog Post CTA Section */
.blog-cta-section {
    padding: 3rem 0;
}

.blog-cta-card {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.12) 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 1.5rem;
    padding: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}


.blog-cta-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.blog-cta-title {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 1rem;
    line-height: 1.2;
}

.blog-cta-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #cbd5e1;
    margin: 0 0 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.blog-cta-description strong {
    color: #a5b4fc;
    font-weight: 700;
}

.blog-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.blog-cta-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    border: none;
    position: relative;
    overflow: hidden;
}

.blog-cta-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.blog-cta-btn-primary:hover::before {
    left: 100%;
}

.blog-cta-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.blog-cta-btn-primary .btn-icon {
    font-size: 1.25rem;
}

.blog-cta-btn-primary .btn-text {
    font-weight: 700;
}

.blog-cta-btn-primary .btn-arrow {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.blog-cta-btn-primary:hover .btn-arrow {
    transform: translateX(4px);
}

.blog-cta-btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 1rem 1.75rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #c7d2fe;
    text-decoration: none;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.blog-cta-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: translateY(-1px);
}

.blog-cta-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #94a3b8;
    margin: 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-cta-note .note-icon {
    font-size: 1.1rem;
}

/* Responsive Blog CTA */
@media (max-width: 768px) {
    .blog-cta-section {
        padding: 2rem 0;
    }
    
    .blog-cta-card {
        padding: 2rem 1.5rem;
    }
    
    .blog-cta-title {
        font-size: 1.5rem;
    }
    
    .blog-cta-description {
        font-size: 1rem;
    }
    
    .blog-cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .blog-cta-btn-primary,
    .blog-cta-btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* Blog Grid Responsive */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.blog-grid .blog-card {
    grid-column: auto !important;
    width: 100%;
}

.blog-card-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.blog-pagination {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.blog-pagination-link a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.2s ease;
    display: inline-block;
}

.blog-pagination-link a:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-1px);
}

/* Tablet - 2 columns */
@media (max-width: 968px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

/* Mobile - 1 column */
@media (max-width: 640px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .blog-card-content {
        padding: 1.25rem;
    }
    
    .blog-card-thumbnail {
        height: 180px;
    }
    
    .blog-pagination {
        flex-direction: column;
        align-items: stretch;
    }
    
    .blog-pagination-link {
        width: 100%;
    }
    
    .blog-pagination-link a {
        width: 100%;
        text-align: center;
        display: block;
    }
}

.public-prose {
    color: #cbd5e1;
    line-height: 1.75;
    font-size: 1.02rem;
}
.public-prose h2, .public-prose h3, .public-prose h4 {
    color: #fff;
    margin-top: 1.75rem;
}
.public-prose a {
    color: #a5b4fc;
}
.public-prose a:hover {
    color: #c7d2fe;
}
.public-prose ul, .public-prose ol {
    margin: 1rem 0;
    padding-left: 2rem;
}
.public-prose ul {
    list-style-type: disc;
}
.public-prose ol {
    list-style-type: decimal;
}
.public-prose li {
    margin: 0.5rem 0;
    padding-left: 0.5rem;
}
.public-prose ul ul, .public-prose ol ol, .public-prose ul ol, .public-prose ol ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

/* Action Plan Section */
.action-plan-box {
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 1.25rem;
    position: relative;
    overflow: hidden;
}
.action-plan-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
}
.action-plan-box h2 {
    margin: 0 0 1rem;
    color: #fff;
    font-size: 1.75rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.action-plan-box h2::before {
    content: '📅';
    font-size: 1.5rem;
}
.action-plan-box > p:first-of-type {
    color: #cbd5e1;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}
.action-plan-weeks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}
.action-plan-week {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1.25rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.action-plan-week:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.4);
}
.action-plan-week h3 {
    margin: 0 0 0.75rem;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.action-plan-week h3::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    flex-shrink: 0;
}
.action-plan-week ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.action-plan-week li {
    color: #cbd5e1;
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}
.action-plan-week li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #a5b4fc;
    font-weight: 700;
}
.action-plan-week li:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive for Action Plan */
@media (max-width: 768px) {
    .action-plan-box {
        padding: 1.5rem;
    }
    .action-plan-weeks {
        grid-template-columns: 1fr;
    }
    .action-plan-box h2 {
        font-size: 1.5rem;
    }
}

/* --- Public FAQ page fixes (readability + sidebar links) --- */
.public-faq .faq-sidebar-card { grid-column: span 4; }
.public-faq .faq-main-card { grid-column: span 8; }

.public-faq .faq-quicklinks {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
}
.public-faq .faq-quicklinks li {
    margin: 0.35rem 0;
}
.public-faq .faq-quicklinks a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
    border-radius: 0.75rem;
    text-decoration: none;
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.03);
    transition: border-color .15s ease, transform .15s ease, background .15s ease;
}
.public-faq .faq-quicklinks a:hover {
    transform: translateY(-1px);
    border-color: rgba(99, 102, 241, 0.55);
    background: rgba(99, 102, 241, 0.10);
    color: #fff;
}

.public-faq .faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 0.9rem;
    margin: 0.9rem 0;
    overflow: hidden;
}
.public-faq .faq-question {
    padding: 1rem 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    color: #fff;
    background: transparent;
}
.public-faq .faq-question:hover {
    background: rgba(99, 102, 241, 0.10);
}
.public-faq .faq-question h4 {
    margin: 0;
    color: inherit;
    font-size: 1.02rem;
    font-weight: 900;
}
.public-faq .faq-icon {
    font-weight: 900;
    color: #a5b4fc;
    transition: transform .2s ease;
}
.public-faq .faq-answer {
    padding: 0 1.1rem 1.1rem;
    color: #cbd5e1;
    line-height: 1.65;
    display: none;
}
.public-faq .faq-item.active .faq-answer,
.public-faq .faq-answer.active { display: block; }
.public-faq .faq-item.active .faq-icon { transform: rotate(45deg); }

@media (max-width: 1024px) {
    .public-faq .faq-sidebar-card,
    .public-faq .faq-main-card {
        grid-column: span 12;
    }
}

.public-cta {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.18) 0%, rgba(139, 92, 246, 0.14) 100%);
    border: 1px solid rgba(99, 102, 241, 0.28);
    border-radius: 1.25rem;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}
.public-cta .cta-left h3 {
    margin: 0 0 0.4rem;
    color: #fff;
    font-weight: 900;
}
.public-cta .cta-left p {
    margin: 0;
    color: #cbd5e1;
}
.public-cta .cta-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.public-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.1rem;
    border-radius: 0.9rem;
    font-weight: 800;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.public-btn:hover { transform: translateY(-1px); border-color: rgba(99, 102, 241, 0.55); box-shadow: 0 14px 30px rgba(0,0,0,0.25); }
.public-btn.primary { background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); border-color: rgba(99, 102, 241, 0.55); }
.public-btn.secondary { background: rgba(255,255,255,0.06); }

/* Pricing (scoped to public pages to avoid breaking home page "Choose Your Plan") */
.public-section .pricing-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.25rem;
    margin-top: 1.25rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}
.public-section .pricing-card {
    grid-column: span 4;
    border-radius: 1.25rem;
    padding: 1.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Pricing page alignment + "Most popular" badge */
.public-pricing .section-title,
.public-pricing .section-subtitle {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
.public-pricing .section-subtitle {
    max-width: 70ch;
}
.public-section .pricing-popular {
    /* Static, centered badge so it never overlaps content */
    position: static;
    display: block;
    width: max-content;
    margin: 0 auto 0.9rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #d1fae5;
    font-weight: 900;
    font-size: 0.9rem;
    line-height: 1;
    box-shadow: 0 10px 24px rgba(16, 185, 129, 0.14);
}

/* The homepage pricing CSS adds a "Most Popular" ribbon via .pricing-card.featured::before.
   Disable it on the dedicated /pricing/ page so only the new badge is shown. */
.public-pricing .pricing-card.featured::before,
.public-pricing .pricing-card.featured::after {
    content: none !important;
    display: none !important;
}
.public-section .pricing-card.featured {
    border-color: rgba(99, 102, 241, 0.55);
    box-shadow: 0 18px 45px rgba(99, 102, 241, 0.18);
}
.public-section .pricing-card .plan-name { color: #fff; font-weight: 900; font-size: 1.25rem; margin: 0.5rem 0; }
.public-section .pricing-card .plan-desc { color: #cbd5e1; margin: 0 0 1rem; }
.public-section .pricing-card .plan-price { color: #fff; font-weight: 900; font-size: 2.2rem; letter-spacing: -0.02em; }
.public-section .pricing-card .plan-price span { color: #94a3b8; font-size: 1rem; font-weight: 700; margin-left: .35rem; }
.public-section .pricing-card ul { margin: 1rem 0 0; padding-left: 1.1rem; color: #cbd5e1; flex-grow: 1; }
.public-section .pricing-card li { margin: 0.45rem 0; }
.public-section .pricing-card > div[style*="margin-top"] {
    margin-top: auto !important;
    padding-top: 1.25rem;
}
.public-section .pricing-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.16);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: #c7d2fe;
    font-weight: 900;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .public-card { grid-column: span 6; }
    .public-section .pricing-card { grid-column: span 6; }
    .public-section .section-title { font-size: 1.5rem; }
    .public-section .section-subtitle { font-size: 0.9375rem; }
}
@media (max-width: 768px) {
    .public-hero { padding: 3rem 0 2rem; }
    .public-title { font-size: 2rem; }
    .public-subtitle { font-size: 1rem; }
    .public-section .section-title { font-size: 1.375rem; }
    .public-cta { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .public-cta .cta-left { width: 100%; }
    .public-cta .cta-actions { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
    .public-cta .cta-actions .public-btn { flex: 1; min-width: 150px; }
}
@media (max-width: 640px) {
    .public-hero { padding: 2.5rem 0 2rem; }
    .public-card { grid-column: span 12; }
    .public-section .pricing-card { grid-column: span 12; }
    .public-cta { padding: 1.5rem; }
    .public-cta .cta-actions { flex-direction: column; }
    .public-cta .cta-actions .public-btn { width: 100%; }
    .container { padding: 0 1rem; }
}

/* Mobile/tablet navigation: hamburger + drawer */
@media (max-width: 1024px) {
    .menu-toggle {
        display: flex !important;
    }
}

.menu-toggle:hover {
    background: rgba(99, 102, 241, 0.2);
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.hamburger span {
    width: 20px;
    height: 2px;
    background: #ffffff;
    border-radius: 1px;
    transition: all 0.3s ease;
}

.menu-toggle[aria-expanded="true"] .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle[aria-expanded="true"] .hamburger span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.menu-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffffff;
}

.nav-menu-wrapper {
    /* Drawer menu (hidden until .active) */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(20px);
    padding: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s ease;
    z-index: 2000;
    display: none !important;
    /* Safety: never let an invisible/hidden overlay block clicks */
    pointer-events: none;
    align-items: stretch;
    justify-content: flex-end;
}

.nav-menu-wrapper.active {
    display: flex !important;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Side drawer panel */
.nav-drawer {
    width: min(360px, 92vw);
    height: 100%;
    background: rgb(15, 15, 35);
    border-left: 1px solid rgba(99, 102, 241, 0.22);
    box-shadow: -10px 0 30px rgba(0,0,0,0.45);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.25s ease;
}

.nav-menu-wrapper.active .nav-drawer {
    transform: translateX(0);
}

.nav-drawer-header {
    padding: 1rem 1rem 0.75rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: relative;
    padding-right: 3.25rem; /* room for close button */
}

.nav-drawer-links {
    padding: 0.75rem 1rem 1rem 1rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.25rem;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
}

/* In drawer: full width + left aligned */
.nav-drawer .nav-menu {
    max-width: none;
    width: 100%;
}

/* Mobil: přepínač jazyků v draweru */
.nav-drawer-lang {
    padding: 1rem 1rem 1.25rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: auto;
}

.nav-drawer-lang-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.6rem;
}

.nav-drawer-lang-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.nav-drawer-lang-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.nav-drawer-lang-item:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(99, 102, 241, 0.4);
    color: #ffffff;
}

.nav-drawer-lang-item.is-current {
    background: #815ff5;
    border-color: #815ff5;
    color: #ffffff;
}

.nav-drawer .nav-menu a {
    text-align: left;
    width: 100%;
    max-width: 100%;
    word-break: break-word;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.9rem 1rem;
    position: relative;
    transition: all 0.3s ease;
    text-align: center;
    border-radius: 0.75rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
}

.nav-menu a:hover {
    color: #ffffff;
}


.nav-menu a.current-menu-item {
    color: #ffffff;
    font-weight: 600;
}

/* Fix white icons in navigation */
.nav-menu a {
    color: #cbd5e1 !important;
}

.nav-menu a:hover {
    color: #ffffff !important;
}

.nav-menu a::after {
    display: none;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a.current-menu-item::after {
    width: 100%;
}

/* Force current-menu-item for home page */
body.home .nav-menu a[href*="/"]:first-child {
    color: #ffffff !important;
    font-weight: 600;
}

body.home .nav-menu a[href*="/"]:first-child::after {
    width: 100%;
}

/* Force current-menu-item for all pages - first link is always Home */
.nav-menu a:first-child {
    color: #ffffff !important;
    font-weight: 600;
}

.nav-menu a:first-child::after {
    width: 100%;
}

.nav-menu a.current-menu-item {
    color: #ffffff !important;
    font-weight: 600;
}

.menu-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2001;
}

/* Prevent any horizontal overflow inside drawer */
.nav-drawer,
.nav-drawer * {
    box-sizing: border-box;
}

.nav-action-link,
.nav-upgrade-btn {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-menu-wrapper.active .menu-close {
    display: flex;
}

/* Drawer user block */
.nav-drawer-user {
    margin-top: 0.5rem;
    padding: 0.75rem;
    border-radius: 1rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
}

.nav-user-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.nav-user-meta {
    min-width: 0;
}

.nav-user-name {
    color: #ffffff;
    font-weight: 800;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-user-plan {
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nav-plan-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    background: rgba(107, 114, 128, 0.2);
    color: #e5e7eb;
}

.nav-plan-pill.nav-plan-creator {
    background: rgba(139, 92, 246, 0.22);
    color: #a78bfa;
}

.nav-plan-pill.nav-plan-admin {
    background: rgba(16, 185, 129, 0.22);
    color: #34d399;
}

.nav-plan-sub {
    color: #cbd5e1;
    font-size: 0.85rem;
    font-weight: 600;
}

.nav-user-actions {
    margin-top: 0.75rem;
    display: grid;
    gap: 0.5rem;
}

.nav-action-link {
    display: block;
    padding: 0.75rem 0.75rem;
    border-radius: 0.75rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 700;
}

.nav-action-link:hover {
    background: rgba(99, 102, 241, 0.16);
    border-color: rgba(99, 102, 241, 0.25);
    color: #ffffff;
}

.nav-upgrade-btn {
    margin-top: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.85rem 0.9rem;
    border-radius: 0.9rem;
    font-weight: 800;
    text-decoration: none;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.12);
}

.nav-auth-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

/* Mobile: keep header clean; user + plan live inside the drawer */
@media (max-width: 1024px) {
    /* must be !important because there are later desktop rules */
    #masthead .header-actions,
    #masthead .user-status,
    #masthead .header-cta,
    #masthead .user-menu,
    #masthead .plan-display {
        display: none !important;
    }
}

/* --- Final overrides (wins over legacy mobile menu styles later in file) --- */
@media (max-width: 1024px) {
    /* Side-drawer overlay */
    .nav-menu-wrapper {
        background: rgba(0, 0, 0, 0.55) !important;
        backdrop-filter: blur(20px) !important;
        padding: 0 !important;
        align-items: stretch !important;
        justify-content: stretch !important;
        z-index: 2000 !important;
        width: 100vw !important;
        height: 100vh !important;
    }

    /* Drawer panel */
    .nav-drawer {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100vh !important;
        background: rgb(15, 15, 35) !important;
        border-left: none !important;
        box-shadow: none !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }

    /* Drawer header: full width, no overlap with close button */
    .nav-drawer-header {
        position: sticky !important;
        top: 0 !important;
        z-index: 2002 !important;
        background: rgb(15, 15, 35) !important;
        padding: 1rem 1rem 0.75rem 1rem !important;
        padding-right: 1rem !important; /* don't reserve space for absolute close */
        display: flex !important;
        flex-direction: column !important;
    }

    .nav-drawer-links {
        flex: 1 1 auto !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* Compact spacing */
    .nav-menu {
        gap: 0.75rem !important;
        max-width: none !important;
        width: 100% !important;
    }

    .nav-menu a {
        padding: 0.75rem 0.9rem !important;
        text-align: left !important;
    }

    /* Close button should live inside drawer header and never "float" weirdly */
    .menu-close {
        position: static !important;
        align-self: flex-end !important;
        margin: 0 0 0.5rem 0 !important;
        width: 44px !important;
        height: 44px !important;
        display: flex !important;
        z-index: 2001 !important;
    }

    .close-icon {
        line-height: 1 !important;
    }

    /* Stack auth links on very small screens */
    @media (max-width: 380px) {
        .nav-auth-links {
            grid-template-columns: 1fr !important;
        }
    }
}

/* Header Actions – stejný design všude (masthead) */
#masthead .header-actions {
    display: flex;
    align-items: center;
    margin: 0;
    gap: 7px;
}

.header-actions {
    display: flex;
    align-items: center;
    margin: 0;
    gap: 7px;
}

.header-actions .plan-display {
    height: 45px;
    border-radius: 0;
    min-width: auto;
    width: auto;
}

.header-actions .plan-display .plan-pill {
    border-radius: 0.5rem 0 0 0.5rem;
    height: 45px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    padding: 0 1rem;
}

.header-actions .user-button {
    height: 45px;
    border-radius: 0;
    padding: 0 0.875rem;
    box-sizing: border-box;
}

/* Start Quiz v headeru – stejný pill styl jako předplatné (jen klikací) */
.header-actions .header-cta .cta-button {
    border-radius: 0.5rem 0 0 0.5rem;
    height: 45px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    padding: 0 1rem;
    min-height: 45px;
}

.header-actions .header-cta .cta-button:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.header-actions .header-cta .cta-button .cta-icon img.emoji {
    width: 18px;
    height: 18px;
    object-fit: contain;
    vertical-align: middle;
}

.header-lang-select-wrap {
    display: inline-flex;
    align-items: center;
    margin-left: 0;
}

.header-lang-select {
    height: 45px;
    box-sizing: border-box;
    padding: 0.35rem 1.75rem 0.35rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.375rem;
    cursor: pointer;
    appearance: none;
    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='%23fff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.4rem center;
}

.header-lang-select:hover,
.header-lang-select:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    outline: none;
}

/* Header lang dropdown: button looks like former select */
.header-lang-dropdown-wrap {
    position: relative;
}

.header-lang-dropdown-wrap .header-lang-select.lang-select-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    appearance: none;
    background-image: none;
    min-width: 4rem;
    border-radius: 0 0.5rem 0.5rem 0;
    background: #815ff5;
    border: none;
    padding: 0 15px;
}

.header-lang-dropdown-wrap .header-lang-select.lang-select-trigger:hover,
.header-lang-dropdown-wrap .header-lang-select.lang-select-trigger:focus {
    background: #9370f7;
}

.header-lang-dropdown-wrap .dropdown-arrow {
    font-size: 0.5rem;
    opacity: 0.9;
    transition: transform 0.2s ease;
}

.header-lang-dropdown-wrap .lang-select-trigger[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}

/* Lang dropdown panel: same look as user dropdown (Lisa Newton style) */
.lang-dropdown.user-dropdown-style {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: rgba(15, 15, 35, 0.95);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(20px);
    overflow: hidden;
    display: block;
}

.lang-dropdown.user-dropdown-style.force-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown.user-dropdown-style .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-weight: 500;
    border: none;
    width: 100%;
    text-align: left;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
}

.lang-dropdown.user-dropdown-style .dropdown-item:hover {
    background: rgba(99, 102, 241, 0.2);
    color: #ffffff;
}

.lang-dropdown.user-dropdown-style .dropdown-item.is-current {
    background: rgba(99, 102, 241, 0.25);
    color: #ffffff;
}

.lang-dropdown.user-dropdown-style .dropdown-item:first-child {
    border-radius: 0.75rem 0.75rem 0 0;
}

.lang-dropdown.user-dropdown-style .dropdown-item:last-child {
    border-radius: 0 0 0.75rem 0.75rem;
}

/* Profile modal: Preferred Language dropdown (same Lisa style) */
.profile-lang-dropdown-wrap {
    position: relative;
    width: 100%;
}

.profile-lang-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    font-family: inherit;
}

.profile-lang-trigger:hover,
.profile-lang-trigger:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(99, 102, 241, 0.3);
    outline: none;
}

.profile-lang-trigger .dropdown-arrow {
    font-size: 0.5rem;
    opacity: 0.9;
    transition: transform 0.2s ease;
}

.profile-lang-dropdown-wrap .lang-select-trigger[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}

.profile-lang-dropdown {
    left: 0;
    right: 0;
    min-width: 100%;
}

.user-status {
    display: flex;
    align-items: center;
}

.login-button {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    font-size: 0.9rem;
}

.login-button:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.user-menu {
    position: relative;
}

.user-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.5rem;
    padding: 0.5rem 0.875rem;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    font-size: 0.85rem;
    color: #ffffff;
    font-weight: 600;
}

.user-button:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--cyp-accent, #6366f1);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.user-avatar img.emoji {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.user-name {
    font-weight: 600;
    color: #ffffff;
}

.dropdown-arrow {
    font-size: 0.8rem;
    color: #cbd5e1;
    transition: transform 0.3s ease;
}

.user-menu:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(15, 15, 35, 0.95);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(20px);
    overflow: hidden;
}

.user-dropdown .dropdown-item:first-child {
    border-radius: 0.75rem 0.75rem 0 0;
}

.user-dropdown .dropdown-item:last-child {
    border-radius: 0 0 0.75rem 0.75rem;
}

.user-menu:hover .user-dropdown {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    display: block !important;
}

.user-dropdown:hover {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    display: block !important;
}

.user-dropdown.force-open {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    display: block !important;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.dropdown-item:hover {
    background: rgba(99, 102, 241, 0.2);
    color: #ffffff;
}

.dropdown-item .icon {
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

.dropdown-item .icon img.emoji {
    width: 16px;
    height: 16px;
    object-fit: contain;
    vertical-align: middle;
}

/* CTA Button */
.cta-button {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
}

.cta-icon {
    font-size: 0.9rem;
}

.cta-text {
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Credits Display */
.credits-display {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 0.5rem;
    padding: 0.5rem 0.5rem;
    width: 110px;
    height: 46px;
}

/* Header: plan badge (single clean pill, no doubled/ghost effect) */
.plan-display {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 0.5rem;
    border: none;
    background: transparent;
    height: 40px;
    box-sizing: border-box;
    min-width: 80px;
}

.plan-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.85rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    border: 1px solid transparent;
    /* No box-shadow, no ::before – prevents doubled/ghost look */
    background: var(--cyp-accent, #6366f1);
    color: #ffffff;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.plan-pill:hover {
    background: var(--cyp-accent-hover, #818cf8);
}

.plan-meta {
    display: none;
}

.plan-display.plan-free .plan-pill {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
}

.plan-display.plan-free .plan-pill:hover {
    background: rgba(255, 255, 255, 0.18);
}

.plan-display.plan-creator .plan-pill,
.plan-display.plan-pro .plan-pill {
    background: var(--cyp-accent, #6366f1);
    color: #ffffff;
    border-color: rgba(99, 102, 241, 0.5);
}

.plan-display.plan-creator .plan-pill:hover,
.plan-display.plan-pro .plan-pill:hover {
    background: var(--cyp-accent-hover, #818cf8);
}

.plan-display.plan-elite .plan-pill,
.plan-display.plan-admin .plan-pill {
    background: var(--cyp-accent, #6366f1);
    color: #ffffff;
    border-color: rgba(99, 102, 241, 0.5);
}

.plan-display.plan-elite .plan-pill:hover,
.plan-display.plan-admin .plan-pill:hover {
    background: var(--cyp-accent-hover, #818cf8);
}

.credits-count {
    font-size: 1rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.credits-label {
    font-size: 0.7rem;
    color: #e2e8f0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    color: white;
    padding: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    height: 100vh;
    min-height: 100vh;
}

/* Ask Agent hero: allow content to expand and page to scroll on desktop (avoid clipping). */
.hero.hero-ask-agent {
    height: auto;
    min-height: calc(100vh - 96px);
    padding: 2.5rem 0 3.5rem;
    align-items: flex-start;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    background: rgba(99, 102, 241, 0.6);
    border-radius: 50%;
    animation: particleFloat 12s linear infinite;
}

.particle-1 {
    width: 4px;
    height: 4px;
    top: 20%;
    left: 10%;
    /* Negative delay so particles are already "in motion" on first paint (no waiting). */
    animation-delay: -6s;
    animation-duration: 15s;
}

.particle-2 {
    width: 6px;
    height: 6px;
    top: 60%;
    left: 20%;
    animation-delay: -11s;
    animation-duration: 18s;
}

.particle-3 {
    width: 3px;
    height: 3px;
    top: 40%;
    right: 15%;
    animation-delay: -7s;
    animation-duration: 12s;
}

.particle-4 {
    width: 5px;
    height: 5px;
    bottom: 30%;
    left: 30%;
    animation-delay: -9s;
    animation-duration: 16s;
}

.particle-5 {
    width: 4px;
    height: 4px;
    top: 80%;
    right: 25%;
    animation-delay: -5s;
    animation-duration: 14s;
}

.particle-6 {
    width: 7px;
    height: 7px;
    top: 10%;
    right: 40%;
    animation-delay: -13s;
    animation-duration: 20s;
}

/* Respect user preferences */
@media (prefers-reduced-motion: reduce) {
    .hero-gradient,
    .particle {
        animation: none !important;
    }
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
}


.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.badge-icon {
    font-size: 1rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-3px); }
    60% { transform: translateY(-2px); }
}

.badge-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #a5b4fc;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 2rem;
    line-height: 1.1;
    color: #ffffff;
}

.title-line {
    display: block;
    animation: titleSlide 1s ease-out;
}

.title-line.highlight {
    background: linear-gradient(135deg, #a5b4fc 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleSlide 1s ease-out 0.2s both;
}

@keyframes titleSlide {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-description {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: 3rem;
    color: #cbd5e1;
    line-height: 1.7;
    max-width: 600px;
    animation: fadeInUp 1s ease-out 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
}

.feature-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 50%;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.cta-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
    letter-spacing: 0.3px;
}

/* Prevent ugly word-wrapping in the hero CTA ("Get Started Free") */
.cta-primary .cta-text {
    display: inline-block;
    white-space: nowrap;
}

.cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.cta-primary:hover::before {
    left: 100%;
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.5);
    background: linear-gradient(135deg, #5a67d8 0%, #7c3aed 100%);
}

.cta-icon {
    font-size: 1.3rem;
    animation: rocketPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.cta-arrow {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.3));
}

.cta-primary:hover .cta-arrow {
    transform: translateX(6px);
}

@keyframes rocketPulse {
    0%, 100% { 
        transform: scale(1) rotate(0deg); 
    }
    25% { 
        transform: scale(1.1) rotate(-5deg); 
    }
    75% { 
        transform: scale(1.1) rotate(5deg); 
    }
}

.cta-secondary {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 600;
    padding: 1rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-2px);
}

.hero-social-proof {
    display: flex;
    align-items: center;
    gap: 2rem;
    animation: fadeInUp 1s ease-out 1s both;
}

.social-proof-text {
    color: #94a3b8;
    font-size: 0.9rem;
}

.social-proof-text strong {
    color: #a5b4fc;
    font-weight: 700;
    font-size: 1.1rem;
}

.social-proof-stars {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.star {
    font-size: 1rem;
    animation: starTwinkle 2s ease-in-out infinite;
}

.star:nth-child(2) { animation-delay: 0.2s; }
.star:nth-child(3) { animation-delay: 0.4s; }
.star:nth-child(4) { animation-delay: 0.6s; }
.star:nth-child(5) { animation-delay: 0.8s; }

@keyframes starTwinkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.rating {
    margin-left: 0.5rem;
    color: #a5b4fc;
    font-weight: 600;
    font-size: 0.9rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInRight 1s ease-out 0.5s both;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.dashboard-mockup {
    width: 400px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 1.5rem;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.dashboard-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #a5b4fc;
}

.dashboard-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #10b981;
    font-size: 0.9rem;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.dashboard-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.question-card, .response-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.question-card:hover, .response-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.question-header, .response-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.question-avatar, .response-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.question-name, .response-name {
    font-weight: 600;
    color: #e2e8f0;
    font-size: 0.9rem;
}

.question-time, .response-time {
    color: #94a3b8;
    font-size: 0.8rem;
}

.question-text, .response-text {
    color: #cbd5e1;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.question-tags {
    display: flex;
    gap: 0.5rem;
}

.tag {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.action-btn {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: rgba(99, 102, 241, 0.3);
    transform: translateY(-1px);
}

/* Upload Widget */
.upload-widget {
    background: white;
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin: 2rem 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--border-color);
}

.upload-header {
    text-align: center;
    margin-bottom: 2rem;
}

.upload-widget h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.upload-widget p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.upload-limit-info {
    background: var(--bg-light);
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.limit-text {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

/* Login Required Widget */
.login-required-widget {
    background: white;
    border-radius: 1.5rem;
    padding: 4rem 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin: 2rem 0;
    border: 1px solid var(--border-color);
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.login-widget-content {
    max-width: 500px;
    margin: 0 auto;
}

.login-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.login-required-widget h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.login-required-widget p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.login-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.login-benefits {
    background: var(--bg-light);
    border-radius: 1rem;
    padding: 2rem;
    text-align: left;
}

.login-benefits h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
    text-align: center;
}

.login-benefits ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.login-benefits li {
    padding: 0.75rem 0;
    color: var(--text-dark);
    font-size: 1rem;
    position: relative;
    padding-left: 2rem;
}

.login-benefits li::before {
    content: '✅';
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 0.5rem;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: var(--bg-light);
}

.upload-area.dragover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
}

.upload-icon {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.upload-text {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.upload-subtext {
    color: var(--text-light);
    font-size: 0.9rem;
}

.file-input {
    display: none;
}

.uploaded-files {
    margin-top: 1rem;
}

.file-preview {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

.file-preview img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 0.25rem;
    margin-right: 1rem;
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 600;
    color: var(--text-dark);
}

.file-size {
    font-size: 0.875rem;
    color: var(--text-light);
}

.remove-file {
    background: var(--danger-color);
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.875rem;
}

/* Analysis Form */
.analysis-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.form-select, .form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-select:focus, .form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.analyze-button {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.analyze-button:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
}

.analyze-button:disabled {
    background: var(--text-light);
    cursor: not-allowed;
    transform: none;
}

/* Loading Spinner */
.loading {
    display: none;
    text-align: center;
    padding: 2rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Results */
.results {
    display: none;
    margin-top: 2rem;
}

.score-display {
    text-align: center;
    margin-bottom: 2rem;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    margin: 0 auto 1rem;
    color: white;
}

.score-excellent { background: var(--success-color); }
.score-good { background: var(--primary-color); }
.score-average { background: var(--warning-color); }
.score-poor { background: var(--danger-color); }

.score-text {
    font-size: 1.1rem;
    color: var(--text-dark);
}

.tips-section {
    background: var(--bg-light);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.tips-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.tip-item {
    background: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    border-left: 4px solid var(--primary-color);
}

.tip-item:last-child {
    margin-bottom: 0;
}

.safety-section {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.safety-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.safety-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.safety-item:last-child {
    margin-bottom: 0;
}

.safety-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
}

.safety-ok { background: var(--success-color); }
.safety-warn { background: var(--warning-color); }
.safety-ban { background: var(--danger-color); }

.safety-text {
    flex: 1;
    font-weight: 500;
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}

.features-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.features-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.features .shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    animation: float 6s ease-in-out infinite;
}

.features .shape-1 {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.features .shape-2 {
    width: 120px;
    height: 120px;
    top: 20%;
    right: 15%;
    animation-delay: 1s;
}

.features .shape-3 {
    width: 60px;
    height: 60px;
    top: 60%;
    left: 5%;
    animation-delay: 2s;
}

.features .shape-4 {
    width: 100px;
    height: 100px;
    top: 70%;
    right: 20%;
    animation-delay: 3s;
}

.features .shape-5 {
    width: 40px;
    height: 40px;
    top: 40%;
    left: 50%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.features-header {
    text-align: center;
    margin-bottom: 4rem;
}

.features-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #1e293b;
}

.features-header p {
    font-size: 1.25rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto 1rem auto;
}

.features-subtitle {
    font-size: 1rem !important;
    color: #94a3b8 !important;
    max-width: 800px !important;
    margin: 0 auto !important;
    font-style: italic;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    position: relative;
}

.icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 55px;
    height: 60px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.icon-wrapper .icon {
    font-size: 2rem;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

img.wp-smiley, img.emoji {
    display: inline !important;
    border: none !important;
    box-shadow: none !important;
    height: .8em !important;
    width: .8em !important;
    margin: 0 0.07em !important;
    vertical-align: -0.1em !important;
    background: none !important;
    padding: 0 !important;
}

.step-number {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.875rem;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.feature-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.feature-item p {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

.feature-details {
    text-align: left;
    background: #f8fafc;
    border-radius: 0.5rem;
    padding: 1rem;
    width: 100%;
}

.feature-details ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.feature-details li {
    padding: 0.5rem 0;
    color: #64748b;
    font-size: 0.875rem;
    position: relative;
    padding-left: 1.5rem;
}

.feature-details li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 700;
}

.features-cta {
    text-align: center;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 1rem;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.features-cta p {
    font-size: 1.125rem;
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.features-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: #6366f1;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.features-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    background: #f8fafc;
}

/* Pricing */
.pricing {
    padding: 6rem 0;
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.pricing-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.pricing-shapes .shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.05);
    animation: float 8s ease-in-out infinite;
}

.pricing-shapes .shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.pricing-shapes .shape-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: 5%;
    animation-delay: 4s;
}

.pricing-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.toggle-label {
    font-weight: 600;
    color: var(--text-dark);
}

.discount-badge {
    background: var(--success-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: 0.4s;
    border-radius: 30px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--primary-color);
}

input:checked + .toggle-slider:before {
    transform: translateX(30px);
}

.pricing-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.pricing-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.pricing-cta {
    text-align: center;
    margin-bottom: 2rem;
}

.view-all-plans {
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.view-all-plans:hover {
    color: #8b5cf6;
    text-decoration: none;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    position: relative;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-4px);
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
}

.pricing-card.featured::before {
    content: "Most Popular";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.plan-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.plan-price.discounted {
    color: #10b981;
    transform: scale(1.05);
}

.plan-period {
    color: var(--text-light);
    margin-bottom: 2rem;
}


.plan-features {
    list-style: none;
    margin-bottom: 2rem;
}

.plan-feature {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.plan-feature::before {
    content: "✓";
    color: var(--success-color);
    font-weight: 700;
    margin-right: 0.75rem;
}

.plan-button {
    width: 100% !important;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: auto 0 0 0;
    text-align: center;
    display: block;
    text-decoration: none;
}

.plan-button:hover {
    background: var(--secondary-color);
}

.plan-button.secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.plan-button.secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* Long translations (i18n): prevent overflow, align cards, allow wrapping */
.hero-title,
.hero-description {
    overflow-wrap: break-word;
    word-wrap: break-word;
}
.hero-title {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
}
.hero-description {
    line-height: 1.65;
}
/* Slightly smaller hero title for languages with longer translations (RU, DE, ES, IT, PL, FR, PT, CS) */
html[lang="ru-RU"] .hero-title,
html[lang^="ru"] .hero-title,
html[lang="de-DE"] .hero-title,
html[lang^="de"] .hero-title,
html[lang="es-ES"] .hero-title,
html[lang^="es"] .hero-title,
html[lang="it-IT"] .hero-title,
html[lang^="it"] .hero-title,
html[lang="pl-PL"] .hero-title,
html[lang^="pl"] .hero-title,
html[lang="fr-FR"] .hero-title,
html[lang^="fr"] .hero-title,
html[lang="pt-PT"] .hero-title,
html[lang^="pt"] .hero-title,
html[lang="cs-CZ"] .hero-title,
html[lang^="cs"] .hero-title {
    font-size: clamp(1.75rem, 4vw, 3rem);
}
.feature-item h3,
.feature-item p {
    overflow-wrap: break-word;
    word-wrap: break-word;
}
.feature-item p {
    min-height: 0;
}
.pricing-card .plan-name,
.pricing-card .plan-feature,
.public-section .pricing-card .plan-name,
.public-section .pricing-card .plan-feature {
    overflow-wrap: break-word;
    word-wrap: break-word;
}
.pricing-card ul.plan-features,
.public-section .pricing-card ul {
    flex-grow: 1;
    min-height: 0;
}
.faq-question h3,
.faq-question h4,
.faq-answer {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Hero dashboard mockup box (Experts Panel): long translations wrap, box can grow */
.dashboard-mockup {
    min-height: 500px;
    height: auto;
    overflow: visible;
}
.dashboard-content {
    overflow: visible;
}
.dashboard-title,
.question-text,
.response-text,
.question-name,
.response-name,
.question-time,
.response-time,
.hero .tag,
.hero .action-btn {
    overflow-wrap: break-word;
    word-wrap: break-word;
}
.question-card,
.response-card {
    min-height: 0;
    overflow-wrap: break-word;
}

.pricing-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
}

.info-card h3 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-card li {
    color: #cbd5e1;
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.info-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 700;
}

.user-info {
    text-align: left;
}

.user-info p {
    color: #cbd5e1;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.user-info strong {
    color: #ffffff;
    font-weight: 600;
}

@media (max-width: 768px) {
    .pricing-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 3rem;
    }
    
    .info-card {
        padding: 1.5rem;
    }
}

/* FAQ */
.faq {
    padding: 4rem 0;
}

.faq-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.faq-cta {
    text-align: center;
    margin-bottom: 2rem;
}

.view-all-faq {
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.view-all-faq:hover {
    color: #8b5cf6;
    text-decoration: none;
}

.faq-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-light);
    line-height: 1.6;
    display: none;
}

.faq-answer.active {
    display: block;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* New Pages Styles */
.hero-small {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-small .hero-content {
    position: relative;
    z-index: 2;
}

.hero-small .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 2rem;
    padding: 0.5rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: #e2e8f0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.hero-small .hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-small .hero-description {
    font-size: 1.25rem;
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* FAQ Page Styles */
.faq-content-section {
    padding: 4rem 0;
    background: #f8fafc;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-sidebar {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.faq-sidebar h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.faq-sidebar ul {
    list-style: none;
}

.faq-sidebar li {
    margin-bottom: 0.75rem;
}

.faq-sidebar a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.faq-sidebar a:hover {
    color: var(--primary-color);
}

.faq-main {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.faq-category {
    margin-bottom: 3rem;
}

.faq-category h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-dark);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.faq-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.faq-question {
    padding: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
    color: var(--text-dark);
}

.faq-question:hover {
    background: rgba(99, 102, 241, 0.05);
}

.faq-question h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.faq-icon {
    font-size: 1.25rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    font-weight: bold;
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-light);
    line-height: 1.6;
    display: none;
}

.faq-answer.active {
    display: block;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.cta-section {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    color: white;
    text-decoration: none;
}

/* Pricing Page Styles */
.pricing-full-section {
    padding: 4rem 0;
    background: #f8fafc;
}

.pricing-toggle-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.toggle-label {
    font-weight: 600;
    color: var(--text-dark);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 30px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--primary-color);
}

input:checked + .toggle-slider:before {
    transform: translateX(30px);
}

.discount-badge {
    background: var(--success-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.pricing-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card-full {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card-full:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.15);
    transform: translateY(-4px);
}

.pricing-card-full.featured {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
}

.pricing-card-full.featured::before {
    content: "Most Popular";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.plan-tagline {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.plan-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.plan-period {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.plan-features li::before {
    content: "✓";
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.125rem;
}

.cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    width: 100%;
    justify-content: center;
}

.cta-secondary:hover {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

.pricing-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-feature {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.pricing-feature img {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
}

.pricing-feature h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.pricing-feature p {
    color: var(--text-light);
    line-height: 1.6;
}

.faq-section-pricing {
    padding: 4rem 0;
    background: white;
}

.faq-section-pricing h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

/* Contact Page Styles */
.contact-section {
    padding: 4rem 0;
    background: #f8fafc;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-form-container {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.contact-form-container h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.contact-form-container p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
}

.contact-info-container {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.contact-info-container h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.contact-info-container p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.info-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 0.75rem;
    border-left: 4px solid var(--primary-color);
}

.info-item h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.info-item p {
    color: var(--text-light);
    margin: 0;
}

.info-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.info-item a:hover {
    text-decoration: underline;
}

.quick-links {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.quick-links h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.quick-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quick-links a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.quick-links a:hover {
    color: var(--primary-color);
}

.faq-preview-section {
    padding: 4rem 0;
    background: white;
    text-align: center;
}

.faq-preview-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.faq-preview-section p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto 2rem;
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

/* Footer */
.site-footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 2rem;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-section p, .footer-section a {
    color: #9ca3af;
    text-decoration: none;
    line-height: 1.6;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    color: #9ca3af;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .upload-widget {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    /* Mobile Header */
    .header-content {
        flex-wrap: nowrap;
        gap: 0.75rem;
        justify-content: space-between;
        align-items: center;
        min-height: 60px;
        padding: 0.5rem 0;
    }
    
    .logo {
        font-size: 1.25rem;
        flex-shrink: 0;
        height: 40px;
        display: flex;
        align-items: center;
    }
    
    .logo-text {
        display: flex;
        flex-direction: column;
        line-height: 1.1;
        font-size: 11px;
    }
    
    .logo-line-1,
    .logo-line-2 {
        font-size: inherit;
    }
    
    .logo-text {
        display: none !important;
    }
    
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.5rem 0.75rem;
        height: 54px;
        min-width: 90px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 0.5rem;
        color: white;
        font-size: 0.875rem;
        font-weight: 500;
        transition: all 0.3s ease;
        cursor: pointer;
        position: relative;
    }
    
    .menu-toggle .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 18px;
        height: 14px;
        gap: 2px;
    }
    
    .menu-toggle .hamburger span {
        display: block;
        width: 100%;
        height: 2px;
        background: white;
        border-radius: 1px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        transform-origin: center;
    }
    
    .menu-toggle[aria-expanded="true"] .hamburger span:nth-child(1) {
        transform: rotate(45deg) translate(3px, 3px);
    }
    
    .menu-toggle[aria-expanded="true"] .hamburger span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }
    
    .menu-toggle[aria-expanded="true"] .hamburger span:nth-child(3) {
        transform: rotate(-45deg) translate(3px, -3px);
    }
    
    .menu-toggle:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.3);
    }
    
    .menu-toggle[aria-expanded="true"] {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.4);
    }
    
    .nav-menu-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgb(15, 15, 35);
        backdrop-filter: blur(20px);
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding: 2rem;
        width: 100vw;
        height: 100vh;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 1000;
        display: none;
        align-items: center;
        justify-content: center;
    }
    
    .nav-menu-wrapper.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        display: flex;
    }
    
    body.menu-open {
        overflow: hidden;
    }
    
    .menu-close {
        position: absolute;
        top: 2rem;
        right: 2rem;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        z-index: 1001;
    }
    
    .menu-close:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.4);
        transform: scale(1.1);
    }
    
    .close-icon {
        font-size: 24px;
        font-weight: bold;
        color: #e2e8f0;
        line-height: 1;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 2rem;
        width: 100%;
        max-width: 300px;
    }
    
    .nav-menu li {
        position: relative;
        width: 100%;
    }
    
    .nav-menu a {
        padding: 1rem 1.25rem;
        width: 100%;
        display: block;
        text-align: center;
        border-radius: 0.75rem;
        transition: all 0.3s ease;
        color: #e2e8f0;
        font-weight: 600;
        font-size: 1rem;
        background: rgba(255, 255, 255, 0.1);
        border: none;
        text-decoration: none;
    }
    
    .nav-menu a:hover {
        background: rgba(99, 102, 241, 0.3);
        border: none;
        color: #ffffff;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
    }
    
    .nav-menu a.current-menu-item {
        background: rgba(99, 102, 241, 0.4) !important;
        border: none !important;
        color: #ffffff !important;
        box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4) !important;
        font-weight: 700 !important;
    }
    
    /* Hide hover line effects on mobile */
    .nav-menu a::after {
        display: none !important;
    }
    
    .nav-menu a:hover::after {
        display: none !important;
    }
    
    .header-actions {
        gap: 0.5rem;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        height: 40px;
    }
    
    .user-button {
        padding: 0.5rem;
        height: 54px;
        min-width: 54px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 0.5rem;
        color: white;
        transition: all 0.3s ease;
        gap: 0.5rem;
    }
    
    .user-button:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.3);
    }
    
    .user-name {
        display: none;
    }
    
    .cta-button {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .credits-display {
        width: auto;
        min-width: 100px;
        height: 54px;
        padding: 0.5rem 0.75rem;
        gap: 0.3rem;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 0.5rem;
        color: white;
        font-size: 0.8rem;
        font-weight: 500;
        transition: all 0.3s ease;
    }
    
    .credits-display:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.3);
    }
    
    .credits-count {
        font-size: 0.9rem;
        font-weight: 600;
    }
    
    .credits-label {
        font-size: 0.6rem;
        opacity: 0.8;
    }
    
    .cta-text {
        display: block;
    }
    
    .cta-icon {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        padding: 0.75rem 0;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .logo-icon {
        font-size: 1.5rem;
    }
    
    .header-actions {
        gap: 0.25rem;
    }
    
    .cta-button {
        padding: 0.5rem;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        justify-content: center;
    }
    
}

/* ============================================
   Auth & Dashboard – unified responsive design
   ============================================ */

/* Auth Pages */
.auth-section {
    min-height: 100vh;
    background: var(--cyp-bg);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-back-button {
    position: fixed;
    top: 1.25rem;
    left: 1.25rem;
    z-index: 1000;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--cyp-text);
    text-decoration: none;
    background: var(--cyp-bg-card);
    backdrop-filter: blur(12px);
    padding: 0.65rem 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid var(--cyp-border-strong);
    transition: all 0.2s ease;
    font-weight: 600;
    font-size: 0.9375rem;
    white-space: nowrap;
}

.back-link:hover {
    background: var(--cyp-accent-soft);
    border-color: var(--cyp-accent);
    color: var(--cyp-text);
    text-decoration: none;
}

.cyp-back-to-dashboard {
    margin: 0 0 1.25rem 0;
    position: relative;
    z-index: 9999;
}

/* Variant: Back link inside tool/check pages (not fixed like auth pages). */
.cyp-back-to-dashboard .back-link {
    display: inline-flex;
    position: relative;
    background: rgba(255, 255, 255, 0.06);
    padding: 0.55rem 0.9rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    font-weight: 700;
}

.cyp-back-to-dashboard .back-link:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(99, 102, 241, 0.55);
    transform: translateY(-1px);
}

/* Fallback: some hero layouts place first children behind absolute layers. Use a floating back link. */
.cyp-back-floating {
    position: fixed;
    top: 5.75rem;
    left: 1.25rem;
    z-index: 1200;
}

@media (max-width: 768px) {
    .cyp-back-floating {
        top: 5.25rem;
        left: 1rem;
    }
}

.back-icon {
    font-size: 1.2rem;
    font-weight: bold;
}

.back-text {
    font-size: 0.9rem;
}

.auth-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.auth-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.auth-section .shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    animation: float 8s ease-in-out infinite;
}

.auth-section .shape-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.auth-section .shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.auth-section .shape-3 {
    width: 80px;
    height: 80px;
    top: 40%;
    left: 80%;
    animation-delay: 4s;
}

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 0 1rem;
}

.auth-card {
    background: var(--cyp-bg-elevated);
    backdrop-filter: blur(20px);
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    width: 100%;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--cyp-border-strong);
}

.auth-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth-logo {
    margin-bottom: 1.25rem;
}

.auth-logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.auth-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cyp-text);
    margin: 0 0 0.35rem 0;
    letter-spacing: -0.02em;
}

.auth-header p {
    color: var(--cyp-text-muted);
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.4;
}

.auth-content {
    width: 100%;
}

.auth-error, .auth-success {
    padding: 0.875rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.4;
}

.auth-error {
    background: var(--cyp-locked);
    color: #fca5a5;
    border: 1px solid var(--cyp-locked-border);
}

.auth-success {
    background: var(--cyp-accent-soft);
    color: var(--cyp-text-muted);
    border: 1px solid var(--cyp-border-strong);
}

.auth-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--cyp-text-muted);
    margin-bottom: 0.4rem;
    font-size: 0.875rem;
}

/* Auth pages: labels must be clearly visible on dark card */
.auth-section .form-label {
    color: #e2e8f0;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--cyp-border-strong);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--cyp-bg-card);
    color: var(--cyp-text);
}

.form-input::placeholder {
    color: var(--cyp-text-subtle);
}

.form-input:focus {
    outline: none;
    border-color: var(--cyp-accent);
    box-shadow: 0 0 0 3px var(--cyp-accent-soft);
}

.form-group-checkbox {
    margin-bottom: 1.25rem;
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--cyp-text-muted) !important;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--cyp-border-strong);
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--cyp-accent);
    border-color: var(--cyp-accent);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-weight: bold;
    font-size: 0.7rem;
}

/* Auth: "I agree to Terms and Privacy" – readable text, subtle links */
.auth-terms-text {
    color: #cbd5e1;
    font-size: 0.875rem;
}

.auth-terms-text a {
    color: var(--cyp-accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.auth-terms-text a:hover {
    color: var(--cyp-accent-hover);
    border-bottom-color: var(--cyp-accent);
}

.password-strength {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.password-strength.strength-0, .password-strength.strength-1 {
    color: #fca5a5;
}

.password-strength.strength-2, .password-strength.strength-3 {
    color: var(--cyp-text-muted);
}

.password-strength.strength-4, .password-strength.strength-5 {
    color: var(--cyp-accent);
}

.auth-button {
    width: 100%;
    background: var(--cyp-accent);
    color: var(--cyp-text);
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.auth-button:hover {
    background: var(--cyp-accent-hover);
    transform: translateY(-1px);
}

.auth-links {
    text-align: center;
    color: var(--cyp-text-muted);
    font-size: 0.875rem;
    line-height: 1.5;
}

.auth-link {
    color: var(--cyp-accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.auth-link:hover {
    color: var(--cyp-accent-hover);
}

.auth-divider {
    margin: 0 0.75rem;
    color: var(--cyp-text-subtle);
}

.auth-lang-switcher {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,.08);
    text-align: center;
    font-size: 0.8rem;
    color: var(--cyp-text-muted);
}

.auth-lang-link {
    color: var(--cyp-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.auth-lang-link:hover {
    color: var(--cyp-accent);
}

.auth-lang-link.is-current {
    color: var(--cyp-accent);
    font-weight: 600;
}

.auth-lang-sep {
    margin: 0 0.35rem;
    color: var(--cyp-text-subtle);
}

@media (max-width: 768px) {
    .auth-back-button {
        top: 1rem;
        left: 1rem;
    }
    .auth-card {
        padding: 2rem 1.5rem;
    }
    .auth-header h1 {
        font-size: 1.375rem;
    }
    .auth-header p {
        font-size: 0.875rem;
    }
    .auth-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.25rem;
    }
    .auth-divider {
        display: none;
    }
}

/* Footer */
.site-footer {
    background: #1a1a2e;
    color: #cbd5e1;
    padding: 3rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 2rem;
    align-items: start;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 1rem 0;
}

.footer-brand p {
    font-size: 1rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #ffffff;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid #2d3748;
    text-align: center;
}

.footer-bottom p {
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 0;
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-brand {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-links {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Age Gate Modal */
.age-gate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.age-gate-content {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    max-width: 400px;
    text-align: center;
    margin: 1rem;
}

.age-gate h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.age-gate p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.age-gate-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.age-gate-button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.age-gate-button.primary {
    background: var(--primary-color);
    color: white;
}

.age-gate-button.secondary {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--border-color);
}

.age-gate-button:hover {
    transform: translateY(-1px);
}

/* User Profile (legacy layout - used only when wrapped in .user-profile) */
.user-profile {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.user-profile .profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.avatar-icon {
    color: white;
}

.profile-info h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.profile-email {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.profile-plan {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.plan-badge {
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.plan-badge.plan-free {
    background: rgba(107, 114, 128, 0.3);
    color: #f3f4f6;
}

.plan-badge.plan-pro,
.plan-badge.plan-creator {
    background: rgba(139, 92, 246, 0.3);
    color: #c4b5fd;
}

.plan-badge.plan-elite,
.plan-badge.plan-admin {
    background: rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-weight: 500;
}

.profile-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    background: white;
    border-radius: 1rem;
    padding: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.tab-button {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    background: none;
    border-radius: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.3);
}

.tab-button:hover:not(.active) {
    background: var(--bg-light);
    color: var(--text-dark);
}

.tab-panel {
    display: none;
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.tab-panel.active {
    display: block;
}

.analyses-list {
    display: grid;
    gap: 1.5rem;
}

.analysis-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.analysis-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.analysis-score {
    flex-shrink: 0;
}

.score-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
}

.score-excellent { background: var(--success-color); }
.score-good { background: var(--primary-color); }
.score-average { background: var(--warning-color); }
.score-poor { background: var(--danger-color); }

.analysis-info {
    flex: 1;
}

.analysis-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.analysis-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.analysis-niche {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
}

.analysis-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.no-analyses {
    text-align: center;
    padding: 4rem 2rem;
}

.no-analyses-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.no-analyses h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.no-analyses p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.profile-settings-form {
    max-width: 500px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.history-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.history-filters select {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    background: white;
}

.login-required {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.login-required h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.login-required p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Hero Responsive - Height */
@media (max-height: 900px) {
    .hero-title {
        font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    }
    
    .hero-description {
        font-size: clamp(0.85rem, 2vw, 1rem);
    }
    
    .hero {
        min-height: 80vh;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 1rem 0;
        min-height: auto;
        height: auto !important;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .hero-visual {
        display: none;
    }
    
    .hero-title {
        font-size: clamp(2rem, 4vw, 2.5rem);
    }
    
    .hero-description {
        font-size: clamp(0.9rem, 2vw, 1.1rem);
    }
    
    .hero-features {
        align-items: center;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-primary, .cta-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .hero-social-proof {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .dashboard-mockup {
        width: 350px;
        min-height: 450px;
        height: auto;
    }
    
    .features-header h2 {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .feature-item {
        padding: 2rem;
    }
    
    .pricing-header h2 {
        font-size: 2rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .pricing-card {
        padding: 2rem;
    }
    
    .faq-item {
        margin-bottom: 1rem;
    }
    
    .upload-widget {
        padding: 2rem;
    }
    
    .upload-widget h2 {
        font-size: 2rem;
    }
    
    .login-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .login-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .phone-mockup {
        width: 200px;
        height: 400px;
    }
    
    .feature-item {
        padding: 1.5rem;
    }
    
    .pricing-card {
        padding: 1.5rem;
    }
    
    .upload-widget {
        padding: 1.5rem;
    }
    
    .login-required-widget {
        padding: 2rem 1.5rem;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.hidden { display: none; }
.visible { display: block; }

/* Onboarding Styles – full viewport height, no page scroll */
body.onboarding-page {
    overflow: hidden;
    height: 100vh;
}

.onboarding-section {
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0;
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.onboarding-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
}

.onboarding-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.onboarding-shapes .shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.onboarding-shapes .shape-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.onboarding-shapes .shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.onboarding-shapes .shape-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.onboarding-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.onboarding-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 2rem 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 100%;
    max-height: calc(100vh - 2rem);
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.onboarding-progress {
    margin-bottom: 0.5rem;
    text-align: center;
    flex-shrink: 0;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 25%;
}

.progress-text {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.onboarding-step {
    display: none;
    animation: fadeIn 0.3s ease;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    flex-direction: column;
}

.onboarding-step.active {
    display: flex;
    flex-direction: column;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-header {
    text-align: center;
    margin-bottom: 0.75rem;
    flex-shrink: 0;
}

.step-header h1 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.step-header p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.step-content {
    width: 100%;
    max-width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    -webkit-overflow-scrolling: touch;
}

/* Karty vždy vidět – min. výška, při malém viewportu scroll v .step-content */
.goal-selector {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1 1 auto;
    min-height: 0;
    padding-top: 4px; /* místo pro horní border první karty při translateY(-2px) */
}

.goal-option {
    cursor: pointer;
    display: block;
    flex: 0 0 auto;
    min-height: 0;
}

.goal-option input[type="radio"] {
    display: none;
}

.goal-card {
    background: #fff;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.goal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.5s ease;
}

.goal-option:hover .goal-card::before {
    left: 100%;
}

.goal-option input[type="radio"]:checked + .goal-card {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.2);
}

.goal-icon {
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
    display: block;
}

.goal-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.goal-desc {
    color: var(--text-light);
    font-size: 0.8rem;
    line-height: 1.3;
}

.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    align-content: start;
}

.metric-field {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
    min-width: 0;
    flex-shrink: 0;
}

.metric-field label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
}

.metric-field input {
    padding: 0.5rem 0.6rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
    background: #fff;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.metric-field input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.content-settings {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-shrink: 0;
}

.setting-group label {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 1rem;
}

.setting-group select {
    padding: 0.5rem 0.6rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    background: #fff;
    transition: border-color 0.3s ease;
}

.setting-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.toggle-group {
    display: flex;
    gap: 1rem;
}

.toggle-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #fff;
}

.toggle-option:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
}

.toggle-option input[type="radio"] {
    margin: 0;
}

.toggle-option input[type="radio"]:checked + .toggle-label {
    color: var(--primary-color);
    font-weight: 600;
}

.toggle-option input[type="radio"]:checked {
    accent-color: var(--primary-color);
}

.import-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1 1 auto;
    min-height: 0;
    justify-content: center;
    overflow: hidden;
}

.import-option {
    display: flex;
    justify-content: center;
}

.upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1.5rem;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 0;
    flex: 1 1 auto;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
}

.upload-area.file-selected {
    border-color: var(--success-color);
    background: rgba(16, 185, 129, 0.05);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.upload-text strong {
    display: block;
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.upload-text span {
    color: var(--text-light);
    font-size: 0.9rem;
}

.import-divider {
    text-align: center;
    position: relative;
    color: var(--text-light);
    font-size: 0.9rem;
}

.import-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
    z-index: 1;
}

.import-divider span {
    background: rgba(255, 255, 255, 0.95);
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

.skip-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.skip-button:hover {
    background: var(--text-light);
    color: #fff;
    border-color: var(--text-light);
}

.skip-icon {
    font-size: 1.2rem;
}

.onboarding-navigation {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

.nav-button {
    padding: 0.85rem 1.75rem;
    border: none;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.prev-button {
    background: var(--bg-light);
    color: var(--text-light);
    border: 2px solid var(--border-color);
    margin-right: auto;
}

.prev-button:hover {
    background: var(--text-light);
    color: #fff;
    border-color: var(--text-light);
}

.next-button, .finish-button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border: 2px solid transparent;
}

.next-button:hover, .finish-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.finish-button {
    background: linear-gradient(135deg, var(--success-color), #059669);
}

.finish-button:hover {
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

/* Responsive Design – stále bez scrollu */
@media (max-width: 768px) {
    .onboarding-card {
        padding: 1.5rem 1.5rem;
        margin: 0.5rem;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .toggle-group {
        flex-direction: row;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .onboarding-navigation {
        flex-direction: row; /* Zpět na řádek, aby fungoval margin-left: auto */
        justify-content: flex-end; /* Vždy doprava, i když je jen jedno */
        gap: 0.75rem;
    }
    
    .nav-button {
        width: auto; /* Může mít proměnnou šířku */
        justify-content: center;
        padding: 0.65rem 1rem;
    }
    
    .step-header h1 {
        font-size: 1.25rem;
    }
    
    .step-header p {
        font-size: 0.875rem;
    }
    
    .goal-card {
        padding: 1rem;
    }
    
    .goal-icon {
        font-size: 2rem;
    }
}

/* Welcome Popup Modal Styles */
.welcome-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
    padding: 1rem;
}

.welcome-popup-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.welcome-popup-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.welcome-popup-content::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

.welcome-popup-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 2s ease-in-out infinite;
    display: block;
    position: relative;
    z-index: 1;
}

.welcome-popup-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.welcome-popup-message {
    font-size: 1.1rem;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.welcome-popup-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.welcome-popup-btn {
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    min-width: 160px;
    justify-content: center;
}

.welcome-popup-btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.welcome-popup-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.welcome-popup-btn-secondary {
    background: #ffffff;
    color: #4b5563;
    border: 2px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.welcome-popup-btn-secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.welcome-popup-btn .btn-icon {
    font-size: 1.2rem;
}

@media (max-width: 640px) {
    .welcome-popup-content {
        padding: 2rem 1.5rem;
    }
    
    .welcome-popup-title {
        font-size: 1.5rem;
    }
    
    .welcome-popup-message {
        font-size: 1rem;
    }
    
    .welcome-popup-actions {
        flex-direction: column;
    }
    
    .welcome-popup-btn {
        width: 100%;
    }
    
    .welcome-popup-icon {
        font-size: 3rem;
    }
}

/* Onboarding Notice Styles */
.onboarding-notice {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.onboarding-notice::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%) translateY(-100%) rotate(0deg); }
    50% { transform: translateX(0%) translateY(0%) rotate(180deg); }
}

.notice-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

.notice-icon {
    font-size: 3rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.notice-text {
    flex: 1;
    color: white;
}

.notice-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.notice-text p {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
    line-height: 1.5;
}

.notice-action {
    flex-shrink: 0;
}

.notice-action .btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.notice-action .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Design for Notice */
@media (max-width: 768px) {
    .onboarding-notice {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .notice-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .notice-icon {
        font-size: 2.5rem;
    }
    
    .notice-text h3 {
        font-size: 1.25rem;
    }
    
    .notice-text p {
        font-size: 0.9rem;
    }
    
    .notice-action .btn {
        width: 100%;
        text-align: center;
    }
}

/* ===== ONBOARDING DASHBOARD SECTION ===== */

/* Onboarding Section on Dashboard */
.onboarding-section-dashboard {
    margin-top: 1.5rem;
}

.onboarding-card-dashboard {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
}

.onboarding-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.onboarding-icon {
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.onboarding-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: #e2e8f0;
}

.onboarding-content p {
    margin: 0;
    opacity: 0.7;
    font-size: 0.875rem;
}

.onboarding-status {
    margin-top: 0;
}

/* Completed Onboarding Styles */
.onboarding-completed {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.completion-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    min-width: 140px;
    justify-content: center;
    color: #22c55e;
}

.check-icon {
    font-size: 1rem;
}

/* Incomplete Onboarding Styles */
.onboarding-incomplete {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.incomplete-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 0.875rem;
    min-width: 140px;
    justify-content: center;
}

.warning-icon {
    font-size: 1rem;
}

/* Action Buttons */
.onboarding-actions {
    display: flex;
    gap: 0.75rem;
}

.onboarding-actions .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
    min-width: 140px;
    justify-content: center;
}

.onboarding-actions .btn-primary {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.3);
}

.onboarding-actions .btn-primary:hover {
    background: rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

.onboarding-actions .btn-secondary {
    background: rgba(107, 114, 128, 0.15);
    color: #d1d5db;
    border-color: rgba(107, 114, 128, 0.3);
}

.onboarding-actions .btn-secondary:hover {
    background: rgba(107, 114, 128, 0.25);
    border-color: rgba(107, 114, 128, 0.4);
    transform: translateY(-1px);
}

.btn-icon {
    font-size: 0.875rem;
}

/* Responsive Design for New Pages */
@media (max-width: 768px) {
    .hero-small .hero-title {
        font-size: 2rem;
    }
    
    .hero-small .hero-description {
        font-size: 1rem;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .faq-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
    
    .pricing-grid-full {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .pricing-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pricing-toggle-wrapper {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .cta-section p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-small {
        padding: 2rem 0;
    }
    
    .hero-small .hero-title {
        font-size: 1.75rem;
    }
    
    .faq-content-section,
    .pricing-full-section,
    .contact-section {
        padding: 2rem 0;
    }
    
    .faq-main,
    .contact-form-container,
    .contact-info-container {
        padding: 1.5rem;
    }
    
    .pricing-card-full {
        padding: 1.5rem;
    }
    
    .plan-price {
        font-size: 2.5rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .onboarding-card-dashboard {
        padding: 1rem;
    }
    
    .onboarding-completed,
    .onboarding-incomplete {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .onboarding-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .onboarding-actions .btn {
        flex: 1;
        justify-content: center;
    }
}

/* ========================================================================== */
/* FINAL: mobile header + drawer overrides (must be last in file to win)       */
/* ========================================================================== */
@media (max-width: 1024px) {
    /* Header: mobile must show ONLY logo + hamburger */
    #masthead .header-actions,
    #masthead .user-status,
    #masthead .header-cta,
    #masthead .user-menu,
    #masthead .plan-display {
        display: none !important;
    }

    /* Overlay: full viewport, drawer fills it */
    .nav-menu-wrapper {
        background: rgba(0, 0, 0, 0.55) !important;
        backdrop-filter: blur(20px) !important;
        padding: 0 !important;
        align-items: stretch !important;
        justify-content: stretch !important;
        z-index: 2000 !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        pointer-events: auto !important;
    }

    /* Side drawer panel: full width, no white strip, clickable */
    .nav-drawer {
        width: 100% !important;
        max-width: 100vw !important;
        min-height: 100vh !important;
        min-height: 100dvh !important;
        height: 100% !important;
        background: rgb(15, 15, 35) !important;
        border-left: none !important;
        box-shadow: none !important;
        display: flex !important;
        flex-direction: column !important;
        position: relative !important;
        pointer-events: auto !important;
        z-index: 2001 !important;
        padding-bottom: env(safe-area-inset-bottom, 0) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* Fade at bottom of drawer (like photo 2) – vizuální přechod */
    .nav-drawer::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 100px;
        pointer-events: none;
        background: linear-gradient(to top, rgb(15, 15, 35) 0%, rgba(15, 15, 35, 0.85) 40%, transparent 100%);
        z-index: 10;
    }

    .nav-drawer-links {
        overflow-x: hidden !important;
        padding-bottom: 1.5rem !important;
    }

    /* Compact + left aligned */
    .nav-menu {
        gap: 0.75rem !important;
        max-width: none !important;
        width: 100% !important;
    }

    .nav-menu a {
        padding: 0.75rem 0.9rem !important;
        text-align: left !important;
    }

    /* Close button: pinned inside drawer header */
    .menu-close {
        top: 0.75rem !important;
        right: 0.75rem !important;
        width: 44px !important;
        height: 44px !important;
        display: flex !important;
        z-index: 2002 !important;
    }
}

@media (max-width: 380px) {
    .nav-auth-links {
        grid-template-columns: 1fr !important;
    }
}

/* UA-based safety net: if WordPress detects mobile, force header to be clean */
body.cyp-is-mobile #masthead .header-actions,
body.cyp-is-mobile #masthead .user-status,
body.cyp-is-mobile #masthead .header-cta,
body.cyp-is-mobile #masthead .user-menu,
body.cyp-is-mobile #masthead .plan-display {
    display: none !important;
}

/* Viewport-based mobile layout (works even on desktop UA with narrow window) */
body.cyp-viewport-mobile #masthead .header-actions,
body.cyp-viewport-mobile #masthead .user-status,
body.cyp-viewport-mobile #masthead .header-cta,
body.cyp-viewport-mobile #masthead .user-menu,
body.cyp-viewport-mobile #masthead .plan-display {
    display: none !important;
}

/* When drawer is open, lock scroll + prevent horizontal overflow (all widths) */
html, body {
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
    background: rgb(15, 15, 35);
}

/* Mobilní menu otevřené: žádný bílý pruh dole – viewport zaplněn */
body.menu-open .nav-menu-wrapper,
body.menu-open .nav-drawer {
    min-height: 100vh;
    min-height: 100dvh;
}

/* While the drawer is open, never show header user/plan UI (clean header) */
body.menu-open #masthead .header-actions,
body.menu-open #masthead .user-status,
body.menu-open #masthead .header-cta,
body.menu-open #masthead .user-menu,
body.menu-open #masthead .plan-display {
    display: none !important;
}

/* Strongest guarantee: if JS marks masthead as drawer-open, hide header user/plan */
#masthead.drawer-open .header-actions,
#masthead.drawer-open .user-status,
#masthead.drawer-open .header-cta,
#masthead.drawer-open .user-menu,
#masthead.drawer-open .plan-display {
    display: none !important;
}

/* Drawer links should never shrink to "pills" */
.nav-menu li {
    width: 100%;
}

.nav-menu a {
    display: block;
    width: 100%;
    max-width: 100%;
}

/* ==========================================================================
   FINAL DESKTOP OVERRIDES (must be last): classic horizontal menu on >=1025px
   ========================================================================== */
@media (min-width: 1025px) {
    /* Desktop: show header actions (Login/Register dropdown etc.) */
    #masthead .header-actions,
    #masthead .user-status,
    #masthead .header-cta {
        display: flex !important;
    }

    /* Desktop: hide hamburger + drawer-only UI */
    .menu-toggle {
        display: none !important;
    }

    .nav-drawer-header,
    .menu-close {
        display: none !important;
    }

    /* Desktop: inline menu (no overlay) */
    .nav-menu-wrapper {
        position: static !important;
        inset: auto !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        backdrop-filter: none !important;
        padding: 0 !important;
        overflow: visible !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        z-index: auto !important;
        display: block !important;
        pointer-events: auto !important;
    }

    .nav-drawer {
        width: auto !important;
        height: auto !important;
        max-width: none !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        overflow: visible !important;
        transform: none !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
    }

    .nav-drawer-links {
        padding: 0 !important;
        overflow: visible !important;
        flex: 0 0 auto !important;
    }

    .nav-menu {
        flex-direction: row !important;
        gap: 0.9rem !important;
        align-items: center !important;
        justify-content: center !important;
        width: auto !important;
        max-width: none !important;
        flex-wrap: nowrap !important;
    }

    .nav-menu li {
        width: auto !important;
    }

    .nav-menu a {
        background: transparent !important;
        border: none !important;
        padding: 0.35rem 0.5rem !important;
        border-radius: 0.5rem !important;
        text-align: center !important;
        white-space: nowrap !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
    }

    /* Some earlier drawer rules set word-break for links inside .nav-drawer — disable that on desktop */
    .nav-drawer .nav-menu a {
        white-space: nowrap !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
    }

    /* Give nav area enough room and make it look balanced */
    #site-navigation.main-navigation {
        flex: 1 1 auto;
        justify-content: center;
    }

    /* Slightly tighter, cleaner desktop typography */
    .nav-menu a {
        font-size: 0.95rem !important;
        font-weight: 600 !important;
        letter-spacing: 0.01em;
    }
}

/* Tutorial Section on How It Works Page */
.tutorial-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(15, 15, 35, 0.95), rgba(26, 26, 46, 0.95));
}

.tutorial-header {
    text-align: center;
    margin-bottom: 3rem;
}

.tutorial-header .public-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 2rem;
    padding: 0.5rem 1.25rem;
    margin-bottom: 1.5rem;
}

.tutorial-header .section-title {
    color: #ffffff;
}

.tutorial-header .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

/* Tutorial Locked Preview */
.tutorial-locked-preview {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.tutorial-preview-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    opacity: 0.6;
    filter: blur(2px);
    pointer-events: none;
    user-select: none;
}

.tutorial-item-preview {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2.5rem;
}

.tutorial-item-preview .tutorial-item-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tutorial-item-preview .tutorial-item-icon {
    font-size: 3rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 1rem;
    flex-shrink: 0;
}

.tutorial-item-preview h3 {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.tutorial-item-preview .tutorial-item-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin: 0;
}

.tutorial-item-preview .tutorial-item-content {
    color: rgba(255, 255, 255, 0.9);
}

.tutorial-item-preview .tutorial-info-box {
    background: rgba(15, 15, 35, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tutorial-item-preview .info-item {
    display: flex;
    gap: 1rem;
}

.tutorial-item-preview .info-label {
    color: #4d6cfe;
    font-weight: 700;
    min-width: 120px;
}

.tutorial-item-preview .info-value {
    color: #4b5563 !important;
    font-weight: 600 !important;
    font-size: 1.05em;
}

/* All info-values same color in preview */
.tutorial-item-preview .info-item:first-child .info-value {
    color: #4b5563 !important;
}

.tutorial-item-preview h4 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2rem 0 1rem 0;
}

.tutorial-item-preview .tutorial-steps {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    counter-reset: step-counter;
}

.tutorial-item-preview .tutorial-steps li {
    counter-increment: step-counter;
    padding: 1rem 0 1rem 3rem;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
}

.tutorial-item-preview .tutorial-steps li:last-child {
    border-bottom: none;
}

.tutorial-item-preview .tutorial-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 1rem;
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.875rem;
}

.tutorial-lock-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 600px;
    background: rgba(15, 15, 35, 0.98);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(99, 102, 241, 0.4);
    border-radius: 1.5rem;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.lock-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.lock-icon {
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

.lock-content h3 {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.lock-content > p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
    margin: 0;
}

.lock-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    text-align: left;
    width: 100%;
}

.lock-features li {
    color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 0;
    font-size: 1rem;
}

.lock-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    margin-top: 1rem;
}

.lock-actions .public-btn {
    width: 100%;
    text-align: center;
    padding: 1rem 2rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.lock-actions .public-btn.primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
}

.lock-actions .public-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.lock-actions .public-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.lock-actions .public-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Full Tutorial Content for Logged In Users */
.tutorial-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.tutorial-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2.5rem;
}

.tutorial-item-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tutorial-item-icon {
    font-size: 3rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 1rem;
    flex-shrink: 0;
}

.tutorial-item-header h3 {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.tutorial-item-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin: 0;
}

.tutorial-action-btn {
    margin-left: auto;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tutorial-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.tutorial-action-btn.is-locked {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    cursor: not-allowed;
}

.tutorial-item-content {
    color: rgba(255, 255, 255, 0.9);
}

.tutorial-item-content h4 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2rem 0 1rem 0;
}

.tutorial-info-box {
    background: rgba(15, 15, 35, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    gap: 1rem;
}

.info-label {
    color: #4d6cfe;
    font-weight: 700;
    min-width: 120px;
}

.info-value {
    color: #4b5563 !important;
    font-weight: 600 !important;
    font-size: 1.05em;
}

/* Ensure all info-values in tutorial sections are highlighted - same lighter gray for all */
.tutorial-info-box .info-value,
.tutorial-item-content .info-value,
.tutorial-item-preview .info-value {
    color: #4b5563 !important;
    font-weight: 600 !important;
    font-size: 1.05em !important;
}

/* All info-values same color - including availability text */
.info-item:first-child .info-value,
.tutorial-info-box .info-item:first-child .info-value,
.tutorial-item-preview .info-item:first-child .info-value {
    color: #4b5563 !important;
}

.tutorial-steps {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    counter-reset: step-counter;
}

.tutorial-steps li {
    counter-increment: step-counter;
    padding: 1rem 0 1rem 3rem;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tutorial-steps li:last-child {
    border-bottom: none;
}

.tutorial-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 1rem;
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.875rem;
}

.tutorial-tips {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.tutorial-tips li {
    padding: 0.75rem 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.tutorial-tip-box {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.tutorial-upgrade-box {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive */
@media (max-width: 768px) {
    .tutorial-lock-overlay {
        padding: 2rem 1.5rem;
    }
    
    .lock-content h3 {
        font-size: 1.5rem;
    }
    
    .tutorial-item-header {
        flex-wrap: wrap;
    }
    
    .tutorial-action-btn {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
    
    .tutorial-item {
        padding: 1.5rem;
    }
}
