:root {
    color-scheme: light dark;
    --bg: #f8fafc;
    --bg-elev: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --accent: #06b6d4;
    --accent-hover: #0891b2;
    --success: #10b981;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
    --shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 20px 60px rgba(15, 23, 42, 0.16);
    --radius: 16px;
    --radius-lg: 24px;
}

[data-theme='dark'] {
    --bg: #0f172a;
    --bg-elev: #1e293b;
    --text: #f1f5f9;
    --muted: #94a3b8;
    --primary: #818cf8;
    --primary-hover: #6366f1;
    --accent: #22d3ee;
    --accent-hover: #06b6d4;
    --success: #34d399;
    --border: #334155;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.6);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 3rem;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 3rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.2s ease, opacity 0.2s ease;
    flex-shrink: 0;
}

.brand:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

.brand .logo {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border-radius: 10px;
    padding: 0.6rem 0.8rem;
    font-size: 1.25rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand .logo-img {
    height: 40px;
    width: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.brand .brand-name {
    font-weight: 700;
    font-size: 1.125rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-primary {
    flex: 1;
    display: flex;
    align-items: center;
}

.nav-primary ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-shrink: 0;
}

.controls-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.icon-btn:hover {
    background: var(--bg);
    transform: scale(1.1);
}

.theme-icon {
    display: inline-flex;
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: absolute;
}

.theme-icon.sun-icon {
    opacity: 1;
}

.theme-icon.sun-icon.hidden {
    opacity: 0;
    transform: rotate(-180deg);
    pointer-events: none;
}

.theme-icon.moon-icon {
    opacity: 0;
    transform: rotate(180deg);
}

.theme-icon.moon-icon.hidden {
    display: none;
}

[data-theme="light"] .theme-icon.sun-icon {
    opacity: 1;
    transform: rotate(0deg);
}

[data-theme="light"] .theme-icon.moon-icon {
    opacity: 0;
    transform: rotate(180deg);
}

[data-theme="dark"] .theme-icon.sun-icon {
    opacity: 0;
    transform: rotate(-180deg);
}

[data-theme="dark"] .theme-icon.moon-icon {
    opacity: 1;
    transform: rotate(0deg);
}

.lang-switch {
    display: flex;
    gap: 0.5rem;
    background: var(--bg);
    padding: 0.4rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.lang-btn {
    background: none;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.lang-btn .flag-img {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 3px;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.lang-btn:hover .flag-img {
    transform: scale(1.1);
}

.lang-btn[data-active="true"] {
    background: var(--primary);
    box-shadow: 0 0 0 2px var(--primary);
}

.lang-btn[data-active="true"] .flag-img {
    filter: brightness(1.3);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.auth-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Hamburger Menu Button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: background 0.2s;
    flex-shrink: 0;
}

.hamburger:hover {
    background: var(--bg);
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.user-greeting {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: var(--bg);
}

.button {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elev);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    cursor: pointer;
    font-size: 0.95rem;
}

.button.primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.button.primary:hover {
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--accent-hover) 100%);
}

.ghost {
    border: none;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.5rem;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.ghost:hover {
    background: var(--border);
    color: var(--text);
}

.page {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
    margin: 3rem 0 5rem;
    padding: 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-bottom: 0.2rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--muted);
    margin-bottom: 3.5rem;
    line-height: 1.7;
}

.pricing-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ffffff, #f5f5f5);
    color: #1a1a2e;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.25);
    border: 2px solid rgba(139, 92, 246, 0.2);
    animation: pulse 2.5s ease-in-out infinite;
    transition: all 0.3s ease;
}

[data-theme="dark"] .pricing-badge {
    background: linear-gradient(135deg, #2a2a3e, #1f1f2e);
    color: #e0e0e0;
    border: 2px solid rgba(139, 92, 246, 0.4);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.35);
}

.pricing-badge .netflix {
    color: #e50914;
    font-weight: 900;
}

[data-theme="dark"] .pricing-badge .netflix {
    color: #ff4444;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 32px rgba(139, 92, 246, 0.25);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 40px rgba(139, 92, 246, 0.35);
    }
}

.hero-mockup {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    animation: float 3s ease-in-out infinite;
}

#theme-image-night,
#theme-image-day {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: filter 0.4s ease, opacity 0.3s ease;
    opacity: 1;
}

#theme-image-day {
    display: none;
}

[data-theme="light"] #theme-image-night {
    display: none;
}

[data-theme="light"] #theme-image-day {
    display: block;
}

[data-theme="light"] #theme-image-day {
    filter: brightness(1.1) contrast(1.05);
}

[data-theme="dark"] #theme-image-night {
    filter: brightness(0.95) contrast(1.1);
}

.flag {
    margin-right: 0.25rem;
    font-size: 1.1em;
    display: inline-block;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

.cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-card {
    background: var(--bg-elev);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: grid;
    gap: 1.5rem;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
}

.stat {
    padding: 1.5rem;
    border-radius: var(--radius);
    background: var(--bg);
    border: 1px solid var(--border);
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.stat:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.feature-card {
    background: var(--bg-elev);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleY(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.feature-card p {
    color: var(--muted);
    line-height: 1.6;
}

.card {
    background: var(--bg-elev);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin: 3rem 0;
    border: 1px solid var(--border);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.card h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.form {
    display: grid;
    gap: 1.75rem;
    margin-top: 2rem;
}

.field {
    display: grid;
    gap: 0.65rem;
}

.field label {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}

.field input,
.field select,
.field textarea {
    padding: 0.95rem 1.25rem;
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background: var(--bg-elev);
}

.field input::placeholder {
    color: var(--muted);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.role-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.role-option {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg);
}

.role-option:hover {
    border-color: var(--primary);
    background: var(--bg-elev);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.role-option input:checked + span {
    font-weight: 600;
    color: var(--primary);
}

.role-section {
    display: none;
    border-left: 3px solid var(--primary);
    padding-left: 1.5rem;
    margin-top: 1.5rem;
    animation: slideIn 0.3s ease;
}

.role-section.active {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.alert {
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.1));
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.alert.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.1));
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.hint {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.status {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    margin: 1.5rem 0;
    background: var(--bg);
    transition: all 0.3s ease;
}

.status:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.list {
    list-style: none;
    display: grid;
    gap: 1rem;
}

.list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.25rem;
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    background: var(--bg);
    transition: all 0.3s ease;
}

.list li:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateX(4px);
}

.badge {
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: var(--primary);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-card {
    border: 2px solid var(--border);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin: 2rem 0;
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg-elev) 100%);
    transition: all 0.3s ease;
}

.payment-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: scale(1.02);
}

.payment-card h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.payment-card p {
    color: var(--muted);
    font-size: 1.125rem;
}

/* Pricing Plans */
.pricing-section {
    padding: 2rem 2rem 4rem 2rem;
    text-align: center;
}

.pricing-section h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.pricing-section .subtitle {
    color: var(--muted);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.security-banner {
    max-width: 900px;
    margin: 0 auto 3rem auto;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(6, 182, 212, 0.08));
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius);
    text-align: center;
}

.security-banner p {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.security-banner strong {
    color: var(--primary);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

.pricing-card {
    background: var(--bg-elev);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: left;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.pricing-card.popular {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--bg-elev) 0%, rgba(99, 102, 241, 0.05) 100%);
    transform: scale(1.05);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-8px);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    padding: 0.4rem 1.25rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-card .plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.pricing-card .plan-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.pricing-card .plan-price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--muted);
}

.pricing-card .plan-savings {
    display: inline-block;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.1));
    color: var(--success);
    padding: 0.3rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.pricing-card .plan-divider {
    height: 1px;
    background: var(--border);
    margin: 1.5rem 0;
}

.pricing-card .plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    flex-grow: 1;
}

.pricing-card .plan-features li {
    padding: 0.6rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text);
}

.pricing-card .plan-features li::before {
    content: "✓";
    color: var(--success);
    font-weight: 700;
    flex-shrink: 0;
}

.pricing-card .plan-features li.highlight {
    font-weight: 600;
    color: var(--primary);
}

.pricing-card .plan-features li.highlight::before {
    content: "★";
    color: var(--primary);
}

.pricing-card .plan-features li.disabled {
    color: var(--muted);
    text-decoration: line-through;
    opacity: 0.6;
}

.pricing-card .plan-features li.disabled::before {
    content: "✗";
    color: #ef4444;
}

.pricing-card .plan-cta {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
}

.pricing-card.popular .plan-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border: none;
}

/* Subscribe page pricing */
.subscribe-pricing {
    max-width: 1100px;
    margin: 0 auto;
}

.subscribe-pricing .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* Current plan styling */
.pricing-card.current-plan {
    border-color: #10b981;
    background: linear-gradient(135deg, var(--bg-elev) 0%, rgba(16, 185, 129, 0.06) 100%);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}
.pricing-card.current-plan:hover {
    transform: none;
    cursor: default;
}
.plan-cta.btn-current {
    background: #d1fae5 !important;
    color: #065f46 !important;
    border: 2px solid #10b981 !important;
    cursor: default !important;
    font-weight: 700 !important;
    opacity: 1 !important;
}

/* Center plans 2-column grid */
.pricing-grid-2 {
    grid-template-columns: repeat(2, 1fr) !important;
    max-width: 850px !important;
}

/* Expand/collapse details inside center plan cards */
.has-details {
    display: block !important;
    align-items: flex-start !important;
}

/* Keep checkmark on same row as the span inside has-details */
.has-details::before {
    float: left;
    margin-right: 0.75rem;
    margin-top: 0.15rem;
}

.has-details > span {
    display: inline;
}

.expand-details-btn {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.2rem 0;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.expand-details-btn:hover {
    color: var(--accent);
}

.plan-sub-details {
    list-style: none;
    padding: 0.5rem 0 0 1rem;
    margin: 0;
}

.plan-sub-details li {
    font-size: 0.85rem;
    color: var(--muted);
    padding: 0.3rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.plan-sub-details li::before {
    content: "·";
    color: var(--primary);
    font-weight: 700;
    flex-shrink: 0;
}

/* ====================================
   ROLE SELECTION CARDS (register.html)
   ==================================== */
.role-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 820px;
    margin: 1.5rem auto 0;
}

.role-card {
    background: var(--bg-elev);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.5rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.role-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.role-card.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--bg-elev) 0%, rgba(99, 102, 241, 0.08) 100%);
}

.role-card .role-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.role-card .role-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.role-card .role-desc {
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.role-card .role-features {
    list-style: none;
    padding: 0;
    margin: 0 0 0.75rem 0;
    text-align: left;
    flex-grow: 1;
}

.role-card .role-features li {
    padding: 0.25rem 0;
    font-size: 0.85rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.role-card .role-features li::before {
    content: "✓";
    color: var(--success);
    font-weight: 700;
}

.role-card .role-features li.highlight {
    font-weight: 600;
    color: var(--primary);
}

.role-card .role-features li.highlight::before {
    content: "★";
    color: var(--primary);
}

.role-card .role-divider {
    height: 1px;
    background: var(--border);
    margin: 0.75rem 0;
}

.role-card .role-ideal {
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.4;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
    text-align: left;
}

.role-card .role-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.35rem;
    margin: 0.75rem 0 0.25rem;
    padding: 0.75rem 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(168, 85, 247, 0.06));
    border-radius: 12px;
}

.role-card .role-price-from {
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 500;
}

.role-card .role-price-amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.role-card .role-price-period {
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 500;
}

/* Step titles */
.step-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 0.25rem;
    text-align: center;
}

.step-subtitle {
    color: var(--muted);
    font-size: 0.9rem;
    text-align: center;
    margin: 0;
}

/* When form step is active, constrain width for readability */
#step-form {
    max-width: 680px;
    margin: 0 auto;
}

/* Mobile: stack role cards vertically */
@media (max-width: 700px) {
    .auth-card-wide {
        max-width: 100%;
        padding: 1.5rem;
    }
    .role-cards {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

/* Back button */
.back-btn {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.back-btn:hover {
    color: var(--accent);
}

/* Center-specific registration fields */
.center-fields-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

#center-fields {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.center-fields-header span:first-child {
    font-size: 1.25rem;
}

.form-divider {
    height: 1px;
    background: var(--border);
    margin: 1.75rem 0;
}

/* File input for logo - legacy (unused, kept for compat) */
.file-input-wrapper {
    position: relative;
}

.file-input-wrapper input[type="file"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-elev);
    color: var(--text);
    font-size: 0.95rem;
}

.file-input-wrapper input[type="file"]::file-selector-button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 0.75rem;
    font-size: 0.85rem;
}

/* Logo upload area */
.logo-upload-area {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.logo-upload-preview {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: var(--bg-elev);
    border: 2px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    transition: border-color 0.2s;
}

.logo-upload-preview.has-image {
    border: 2px solid var(--primary);
}

.logo-upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-upload-placeholder {
    font-size: 2rem;
    opacity: 0.5;
}

.logo-upload-actions {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.btn-upload-logo {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.2s;
}
.btn-upload-logo:hover { background: var(--primary-hover, #4f46e5); }

.btn-remove-logo {
    background: none;
    border: none;
    color: var(--danger, #ef4444);
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0.2rem 0;
    text-align: left;
}
.btn-remove-logo:hover { text-decoration: underline; }

.logo-upload-hint {
    font-size: 0.75rem;
    color: var(--muted);
    margin: 0;
}

/* Logo preview - legacy */
.logo-preview {
    margin-top: 0.75rem;
    text-align: center;
}

.logo-preview img {
    max-width: 120px;
    max-height: 120px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    object-fit: contain;
}

/* ========================= */
/* Crop Modal (Register)     */
/* ========================= */
.crop-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
}

.crop-modal {
    background: var(--bg-elev, #1e1e2e);
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.crop-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.crop-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text);
}

.crop-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--muted);
    cursor: pointer;
    line-height: 1;
}
.crop-modal-close:hover { color: var(--text); }

.crop-modal-body {
    padding: 1.25rem;
}

.crop-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.crop-image-wrapper {
    position: relative;
    max-width: 100%;
    max-height: 350px;
    overflow: hidden;
    background: #1a1a1a;
    border-radius: 8px;
}

.crop-image-wrapper img {
    max-width: 100%;
    max-height: 350px;
    display: block;
    opacity: 0.5;
}

.crop-selection {
    position: absolute;
    border: 3px solid #fff;
    background: rgba(255, 255, 255, 0.1);
    cursor: move;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.6), 0 0 10px rgba(0, 0, 0, 0.5);
    touch-action: none;
}

.crop-selection::before,
.crop-selection::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    background: var(--primary, #6366f1);
    border-radius: 3px;
}

.crop-selection::before {
    top: -7px;
    left: -7px;
    cursor: nw-resize;
}

.crop-selection::after {
    bottom: -7px;
    right: -7px;
    cursor: se-resize;
}

.crop-hint {
    text-align: center;
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--muted);
}

.crop-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
}

.btn-crop-cancel {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-crop-apply {
    background: var(--primary, #6366f1);
    color: white;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
}
.btn-crop-apply:hover { background: var(--primary-hover, #4f46e5); }

/* Hint label */
.hint-label {
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 400;
}

.hint-text {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 0.25rem;
}

@media (max-width: 600px) {
    .role-cards {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid-2 {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 1024px) {
    .pricing-grid,
    .subscribe-pricing .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    
    .pricing-grid-2 {
        max-width: 500px !important;
    }
    
    .pricing-card.popular {
        transform: none;
        order: -1;
    }
    
    .pricing-card.popular:hover {
        transform: translateY(-8px);
    }
    
    .subscribe-pricing {
        padding: 0 1rem;
    }
    
    .subscribe-pricing h2 {
        font-size: 1.5rem;
    }
    
    .pricing-card .plan-price {
        font-size: 2.25rem;
    }
    
    .security-banner {
        padding: 1rem;
        font-size: 0.85rem;
    }
}

.footer {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--muted);
    border-top: 1px solid var(--border);
    margin-top: 5rem;
    font-size: 0.95rem;
}

/* ═════════════════════════════════════════════════
   CENTER EXPIRED SUBSCRIPTION PAGE
   ═════════════════════════════════════════════════ */
.center-expired-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 2rem 1rem;
}

.center-expired-card {
    background: var(--bg-elev);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 3rem 3.5rem;
    width: 100%;
    max-width: 560px;
    border: 1px solid var(--border);
    text-align: center;
    animation: centerExpiredFadeIn 0.5s ease;
}

@keyframes centerExpiredFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.center-expired-icon {
    font-size: 4rem;
    margin-bottom: 1.25rem;
    animation: centerExpiredPulse 2.5s ease-in-out infinite;
}

@keyframes centerExpiredPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.center-expired-card h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.center-expired-lead {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.center-expired-info {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.center-expired-info-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0;
}

.center-expired-label {
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.center-expired-value {
    color: var(--muted);
    font-size: 0.9rem;
    word-break: break-all;
}

.center-expired-message {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: linear-gradient(135deg, rgba(99,102,241,.08), rgba(6,182,212,.08));
    border: 1px solid rgba(99,102,241,.15);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 2rem;
    text-align: left;
}

.center-expired-message-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.center-expired-message p {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.center-expired-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.center-expired-actions .button {
    min-width: 180px;
}

.center-expired-hint {
    color: var(--muted);
    font-size: 0.8rem;
    opacity: 0.7;
}

@media (max-width: 600px) {
    .center-expired-card {
        padding: 2rem 1.5rem;
    }
    .center-expired-card h1 {
        font-size: 1.4rem;
    }
    .center-expired-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .center-expired-actions .button {
        min-width: auto;
    }
}

/* ═══════════════════════════════════════════════
   LANDING PAGE — NEW SECTIONS
   ═══════════════════════════════════════════════ */

/* ---- Scroll-reveal animations ---- */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
}
.reveal.reveal-right {
    transform: translateX(36px);
}
.reveal.revealed {
    opacity: 1;
    transform: none;
}

/* ---- Hero enhancements ---- */
.hero-chip {
    display: inline-block;
    background: linear-gradient(135deg, rgba(99,102,241,.12), rgba(6,182,212,.12));
    color: var(--primary);
    padding: 0.55rem 1.25rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(99,102,241,.2);
    letter-spacing: -0.01em;
}
.hero-lead {
    font-size: 1.15rem !important;
    margin-bottom: 2rem !important;
}
.hero-trust {
    margin-top: 1.25rem;
    font-size: 0.85rem;
    color: var(--muted);
    opacity: .8;
}
.btn-lg {
    padding: 1rem 2rem !important;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
}

/* ---- Social proof strip ---- */
.social-proof {
    margin: -2rem 0 3rem;
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, rgba(99,102,241,.06), rgba(6,182,212,.06));
    border-top: 1px solid rgba(99,102,241,.1);
    border-bottom: 1px solid rgba(99,102,241,.1);
    border-radius: var(--radius-lg);
}
.proof-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}
.proof-number {
    display: block;
    font-size: 2.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}
.proof-label {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 0.35rem;
    font-weight: 500;
}

/* ---- Generic section layout ---- */
.landing-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.landing-section-alt {
    background: linear-gradient(135deg, rgba(99,102,241,.03), rgba(6,182,212,.03));
    border-radius: var(--radius-lg);
    max-width: 100%;
    padding-left: 2rem;
    padding-right: 2rem;
}
.landing-section-alt > * {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}
.section-chip {
    display: inline-block;
    background: linear-gradient(135deg, rgba(99,102,241,.12), rgba(6,182,212,.12));
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    border: 1px solid rgba(99,102,241,.15);
}
.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--primary);
}
.section-header h2 span {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-subtitle {
    color: var(--muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ---- Audience cards (para quién) ---- */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.audience-card {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.audience-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.audience-card:hover::after { transform: scaleX(1); }
.audience-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.audience-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.audience-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text);
}
.audience-card p {
    color: var(--muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ---- Feature showcases (alternating layout) ---- */
.feature-showcase {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}
.feature-showcase-reverse {
    grid-template-columns: 0.8fr 1.2fr;
}
.feature-showcase-reverse .feature-showcase-text { order: 2; }
.feature-showcase-reverse .feature-showcase-visual { order: 1; }
.feature-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 0.3rem 0.85rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}
.feature-showcase-text h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
}
.feature-showcase-text p {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}
.feature-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.feature-check-list li {
    padding: 0.4rem 0;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.95rem;
    color: var(--text);
}
.feature-check-list li::before {
    content: "✓";
    color: var(--success);
    font-weight: 700;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16,185,129,.12);
    border-radius: 50%;
    font-size: 0.7rem;
}
.feature-showcase-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}
.feature-visual-card {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, rgba(99,102,241,.08), rgba(6,182,212,.08));
    border: 1px solid rgba(99,102,241,.15);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.5rem;
    animation: float 3s ease-in-out infinite;
    box-shadow: var(--shadow);
}

/* ---- Mini features grid ---- */
.features-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.feature-mini {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: all 0.3s ease;
}
.feature-mini:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}
.feature-mini-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.75rem;
}
.feature-mini h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
}
.feature-mini p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ---- CTA Banner ---- */
.cta-banner {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    padding: 4rem 2rem;
    border-radius: var(--radius-lg);
    margin: 3rem auto;
    max-width: 1200px;
    text-align: center;
}
.cta-banner-final {
    margin-bottom: 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-width: 100%;
}
.cta-banner-content h2 {
    color: white;
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}
.cta-banner-content p {
    color: rgba(255,255,255,.85);
    font-size: 1.15rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.cta-banner .button {
    background: white;
    color: var(--primary);
    border-color: white;
}
.cta-banner .button.primary {
    background: white;
    color: var(--primary);
    border-color: white;
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.cta-banner .button.primary:hover {
    background: #f1f5f9;
    box-shadow: 0 8px 30px rgba(0,0,0,.2);
}
.cta-banner .button:not(.primary) {
    background: transparent;
    color: white;
    border-color: rgba(255,255,255,.4);
}
.cta-banner .button:not(.primary):hover {
    background: rgba(255,255,255,.15);
    border-color: white;
}

/* ---- Comparison table ---- */
.comparison-table-wrap {
    overflow-x: auto;
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 1rem;
}
.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--bg-elev);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    font-size: 0.95rem;
}
.comparison-table thead {
    background: linear-gradient(135deg, rgba(99,102,241,.08), rgba(6,182,212,.08));
}
.comparison-table th {
    padding: 1.25rem 1rem;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    border-bottom: 2px solid var(--border);
}
.comparison-table th:first-child {
    text-align: left;
}
.comparison-table th small {
    display: block;
    font-weight: 500;
    color: var(--muted);
    font-size: 0.8rem;
    margin-top: 0.2rem;
}
.comparison-table .col-highlight {
    background: rgba(99,102,241,.06);
    position: relative;
}
.comparison-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
    text-align: center;
    color: var(--text);
}
.comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
}
.comparison-table tbody tr:last-child td {
    border-bottom: none;
}
.comparison-table tbody tr:hover {
    background: rgba(99,102,241,.03);
}

/* ---- FAQ ---- */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.faq-item {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
}
.faq-item:hover, .faq-item[open] {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}
.faq-item summary {
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--text);
    list-style: none;
    user-select: none;
    transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary);
    flex-shrink: 0;
    transition: transform 0.3s ease;
    line-height: 1;
}
.faq-item[open] summary::after {
    transform: rotate(45deg);
}
.faq-item[open] summary {
    color: var(--primary);
}
.faq-answer {
    padding: 0 1.5rem 1.25rem 1.5rem;
    color: var(--muted);
    line-height: 1.7;
    font-size: 0.95rem;
    animation: faqOpen 0.3s ease;
}
@keyframes faqOpen {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════
   LANDING RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 1024px) {
    .audience-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin: 0 auto;
    }
    .feature-showcase,
    .feature-showcase-reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .feature-showcase-reverse .feature-showcase-text,
    .feature-showcase-reverse .feature-showcase-visual {
        order: unset;
    }
    .features-mini-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .section-header h2 {
        font-size: 2rem;
    }
    .cta-banner-content h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .proof-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .proof-number {
        font-size: 2rem;
    }
    .features-mini-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }
    .feature-visual-card {
        width: 120px;
        height: 120px;
        font-size: 3rem;
    }
    .landing-section {
        padding: 2.5rem 1rem;
    }
    .cta-banner {
        padding: 2.5rem 1.25rem;
        margin: 2rem 0;
        border-radius: var(--radius);
    }
    .cta-banner-final {
        border-radius: var(--radius) var(--radius) 0 0;
    }
    .section-header h2 {
        font-size: 1.65rem;
    }
    .comparison-table {
        font-size: 0.85rem;
    }
    .comparison-table th,
    .comparison-table td {
        padding: 0.65rem 0.5rem;
    }
    .hero-chip {
        font-size: 0.8rem;
        padding: 0.45rem 1rem;
    }
}

@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .topbar {
        padding: 0.75rem 1rem;
    }

    .header-container {
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    .hamburger {
        display: flex;
    }

    .nav-primary {
        display: none;
        width: 100%;
        order: 10;
    }

    .nav-primary.nav-open {
        display: block;
    }

    .nav-primary ul {
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0;
    }

    .nav-primary ul li {
        width: 100%;
    }

    .nav-primary .nav-link {
        display: block;
        padding: 0.75rem 1rem;
        border-radius: 8px;
    }

    .nav-primary .nav-link:hover {
        background: var(--bg);
    }

    .nav-actions {
        flex-direction: row;
        gap: 0.5rem;
        flex-shrink: 0;
        margin-left: auto;
    }

    .controls-group {
        gap: 0.5rem;
    }

    .auth-group {
        gap: 0.5rem;
    }

    .auth-group .button {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
        min-width: auto;
    }

    .user-greeting {
        display: none;
    }

    .brand .brand-name {
        display: none;
    }

    .lang-switch {
        display: none;
    }

    .payment-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
    }

    .card {
        padding: 2rem;
    }

    .page {
        padding: 2rem 1rem;
    }
}

/* Header Theme Toggle (3 options) */
.theme-toggle-header {
    display: flex;
    gap: 0.25rem;
    background: var(--bg);
    padding: 0.3rem;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.theme-toggle-btn {
    background: none;
    border: none;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.5;
}

.theme-toggle-btn:hover {
    opacity: 0.8;
    background: var(--border);
}

.theme-toggle-btn.active {
    background: var(--primary);
    opacity: 1;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

/* Toast Notification System */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    pointer-events: auto;
    animation: toastSlideIn 0.3s ease;
    max-width: 400px;
    min-width: 280px;
}

.toast.success {
    border-left: 4px solid var(--success);
    background: var(--bg-elev);
}

.toast.error {
    border-left: 4px solid #ef4444;
    background: var(--bg-elev);
}

.toast.info {
    border-left: 4px solid var(--primary);
    background: var(--bg-elev);
}

.toast.warning {
    border-left: 4px solid #f59e0b;
    background: var(--bg-elev);
}

.toast-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
}

.toast-message {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 0.25rem;
}

.toast-close {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.toast-close:hover {
    background: var(--border);
    color: var(--text);
}

.toast.hiding {
    animation: toastSlideOut 0.3s ease forwards;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* ===========================================
   AUTH FORMS (Login & Register)
   =========================================== */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 2rem 1rem;
}

.auth-card {
    background: var(--bg-elev);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem 3rem;
    width: 100%;
    max-width: 420px;
    border: 1px solid var(--border);
}

.auth-card-wide {
    max-width: 900px;
    padding: 3rem 3.5rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.auth-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: var(--muted);
    font-size: 0.95rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.auth-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 500px) {
    .auth-form .form-row {
        grid-template-columns: 1fr;
    }
}

.auth-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.auth-form label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.auth-form label .required {
    color: #ef4444;
    font-size: 0.75rem;
}

.auth-form .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-form .input-icon {
    position: absolute;
    left: 1rem;
    font-size: 1rem;
    opacity: 0.6;
    pointer-events: none;
}

.auth-form input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    background: var(--bg);
    color: var(--text);
    transition: all 0.2s ease;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.auth-form input::placeholder {
    color: var(--muted);
    opacity: 0.7;
}

.toggle-password {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    opacity: 0.6;
    transition: opacity 0.2s;
    padding: 0.5rem;
}

.toggle-password:hover {
    opacity: 1;
}

.password-strength {
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.25rem;
    height: 1rem;
}

.password-strength.weak {
    color: #ef4444;
}

.password-strength.medium {
    color: #f59e0b;
}

.password-strength.strong {
    color: #10b981;
}

.recaptcha-container {
    display: flex;
    justify-content: center;
    margin: 0.5rem 0;
}

.recaptcha-container > div {
    transform-origin: center;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.auth-footer p {
    color: var(--muted);
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ====================================
   ONLINE STATUS DOT (center dashboard)
   ==================================== */
.avatar-wrapper {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

.status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--bg-elev);
    z-index: 1;
}

.status-dot.online {
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
    animation: pulse-online 2s ease-in-out infinite;
}

.status-dot.offline {
    background: #9ca3af;
}

@keyframes pulse-online {
    0%, 100% { box-shadow: 0 0 4px rgba(34, 197, 94, 0.4); }
    50% { box-shadow: 0 0 10px rgba(34, 197, 94, 0.8); }
}
