/* ============================================
   CyberoxLab - Main Stylesheet
   ============================================ */

:root {
    --cx-primary: #0e64a1;
    --cx-primary-dark: #0a4f80;
    --cx-primary-light: #1a7bc5;
    --cx-teal: #0d9c96;
    --cx-teal-dark: #0a7d78;
    --cx-teal-light: #12c4bd;
    --cx-green: #16a34a;
    --cx-red: #dc2626;
    --cx-orange: #ea580c;
    --cx-purple: #7c3aed;
    --cx-yellow: #eab308;
    --cx-white: #ffffff;
    --cx-black: #0f172a;
    --cx-gray-50: #f8fafc;
    --cx-gray-100: #f1f5f9;
    --cx-gray-200: #e2e8f0;
    --cx-gray-300: #cbd5e1;
    --cx-gray-400: #94a3b8;
    --cx-gray-500: #64748b;
    --cx-gray-600: #475569;
    --cx-gray-700: #334155;
    --cx-gray-800: #1e293b;
    --cx-gray-900: #0f172a;

    --cx-bg: #ffffff;
    --cx-bg-alt: #f8fafc;
    --cx-text: #1e293b;
    --cx-text-light: #64748b;
    --cx-muted: #94a3b8;
    --cx-border: #e2e8f0;
    --cx-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --cx-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --cx-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --cx-radius: 10px;
    --cx-radius-lg: 16px;
    --cx-transition: 0.2s ease;
    --cx-font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --cx-font-mono: 'JetBrains Mono', monospace;
}

/* ============================================
   New Dropdown System (v2)
   ============================================ */
.cx-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.cx-dropdown__trigger {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: 8px 16px;
    color: var(--cx-gray-600);
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: var(--cx-font);
    white-space: nowrap;
    transition: color .18s, background .18s;
}
.cx-dropdown__trigger:hover { color: var(--cx-primary); background: var(--cx-gray-50); }
.cx-chevron { font-size: .65rem; transition: transform .22s; }
.cx-dropdown.is-open .cx-chevron { transform: rotate(180deg); }

.cx-dropdown__menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--cx-border);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
    padding: 6px;
    list-style: none;
    margin: 0;
    z-index: 500;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px) scale(.97);
    transform-origin: top left;
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}
/* Gap bridge */
.cx-dropdown__menu::before {
    content:'';
    position:absolute;
    top:-10px;left:0;right:0;height:10px;
}
.cx-dropdown.is-open .cx-dropdown__menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}
.cx-dropdown__menu li { display: block; }
.cx-dropdown__menu .cx-nav__link {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .85rem;
    font-size: .855rem;
    border-radius: 7px;
    color: var(--cx-text);
    width: 100%;
}
.cx-dropdown__menu .cx-nav__link:hover { color: var(--cx-primary); background: var(--cx-gray-50); }

/* Mobile dropdown */
@media (max-width: 900px) {
    .cx-dropdown { position: static; width: 100%; flex-direction: column; align-items: stretch; }
    .cx-dropdown__trigger { width: 100%; justify-content: space-between; padding: .7rem 1rem; }
    .cx-dropdown__menu {
        position: static;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: none !important;
        box-shadow: none;
        border: none;
        background: var(--cx-gray-50);
        border-radius: 8px;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height .32s ease, padding .22s ease;
    }
    .cx-dropdown.is-open .cx-dropdown__menu {
        max-height: 500px;
        padding: 6px;
    }
    .cx-dropdown__menu .cx-nav__link { padding: .55rem 1rem .55rem 1.5rem; }
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--cx-font);
    color: var(--cx-text);
    background: var(--cx-bg);
    line-height: 1.6;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--cx-primary);
    text-decoration: none;
    transition: color var(--cx-transition);
}

a:hover {
    color: var(--cx-primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    font-family: inherit;
}

code {
    font-family: var(--cx-font-mono);
    font-size: 0.875em;
    background: var(--cx-gray-100);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Container */
.cx-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   Navigation
   ============================================ */
.cx-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--cx-border);
    transition: all 0.3s;
}

.cx-nav--scrolled {
    box-shadow: var(--cx-shadow-md);
}

.cx-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.cx-nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    color: var(--cx-black);
}

.cx-nav__logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--cx-primary), var(--cx-teal));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.cx-nav__logo-text {
    font-weight: 400;
    letter-spacing: -0.3px;
}

.cx-nav__logo-text strong {
    font-weight: 700;
}

.cx-nav__menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cx-nav__link {
    padding: 8px 16px;
    color: var(--cx-gray-600);
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all var(--cx-transition);
}

.cx-nav__link:hover {
    color: var(--cx-primary);
    background: var(--cx-gray-50);
}

.cx-nav__toggle {
    display: none;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.cx-nav__toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--cx-gray-700);
    border-radius: 2px;
    transition: all 0.3s;
}

@media (max-width: 768px) {
    .cx-nav__toggle {
        display: flex;
    }

    .cx-nav__menu {
        display: none;
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        flex-direction: column;
        padding: 24px;
        gap: 4px;
        z-index: 999;
        overflow-y: auto;
    }

    .cx-nav__menu.active {
        display: flex;
    }

    .cx-nav__link {
        padding: 14px 16px;
        font-size: 16px;
        width: 100%;
    }
}

/* ============================================
   Buttons
   ============================================ */
.cx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--cx-transition);
    text-decoration: none;
    white-space: nowrap;
    font-family: var(--cx-font);
    line-height: 1.4;
}

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

.cx-btn--primary:hover {
    background: var(--cx-primary-dark);
    border-color: var(--cx-primary-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 100, 161, 0.3);
}

.cx-btn--outline {
    background: transparent;
    color: var(--cx-primary);
    border-color: var(--cx-border);
}

.cx-btn--outline:hover {
    border-color: var(--cx-primary);
    background: rgba(14, 100, 161, 0.04);
    color: var(--cx-primary);
}

.cx-btn--danger {
    background: var(--cx-red);
    color: white;
    border-color: var(--cx-red);
}

.cx-btn--danger:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    color: white;
}

.cx-btn--warning {
    background: var(--cx-orange);
    color: white;
    border-color: var(--cx-orange);
}

.cx-btn--warning:hover {
    background: #c2410c;
    color: white;
}

.cx-btn--success {
    background: var(--cx-green);
    color: white;
    border-color: var(--cx-green);
}

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

.cx-btn--white:hover {
    background: var(--cx-gray-50);
    color: var(--cx-primary-dark);
}

.cx-btn--sm {
    padding: 6px 12px;
    font-size: 13px;
}

.cx-btn--lg {
    padding: 14px 28px;
    font-size: 16px;
}

.cx-btn--block {
    width: 100%;
}

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

/* ============================================
   Hero Section
   ============================================ */
.cx-hero {
    position: relative;
    padding: 140px 0 80px;
    overflow: hidden;
    background: linear-gradient(165deg, var(--cx-gray-50) 0%, white 50%, rgba(13, 156, 150, 0.03) 100%);
}

.cx-hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cx-hero__grid-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, var(--cx-gray-300) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.3;
}

.cx-hero__content {
    position: relative;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.cx-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(14, 100, 161, 0.08);
    color: var(--cx-primary);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}

.cx-hero__title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: var(--cx-black);
    margin-bottom: 20px;
}

.cx-hero__highlight {
    background: linear-gradient(135deg, var(--cx-primary), var(--cx-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cx-hero__subtitle {
    font-size: 18px;
    color: var(--cx-gray-500);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.cx-hero__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.cx-hero__stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
}

.cx-hero__stat {
    text-align: center;
}

.cx-hero__stat strong {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--cx-black);
}

.cx-hero__stat span {
    font-size: 13px;
    color: var(--cx-gray-500);
}


/* ============================================
   Sections (Page Blocks)
   ============================================ */
.cx-section {
    padding: 80px 0;
}

.cx-section--alt {
    background: var(--cx-gray-50);
}

.cx-section__header {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 48px;
}

.cx-section__badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(14, 100, 161, 0.08);
    color: var(--cx-primary);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.cx-section__header h2 {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px;
    color: var(--cx-black);
}

.cx-section__header p {
    font-size: 16px;
    color: var(--cx-gray-500);
}

/* Steps */
.cx-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cx-step {
    flex: 1;
    min-width: 220px;
    max-width: 300px;
    text-align: center;
    padding: 32px 24px;
    background: white;
    border-radius: var(--cx-radius-lg);
    border: 1px solid var(--cx-border);
    transition: all 0.3s;
    position: relative;
}

.cx-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--cx-shadow-lg);
    border-color: var(--cx-primary);
}

.cx-step__number {
    position: absolute;
    top: -12px;
    right: -8px;
    font-size: 48px;
    font-weight: 900;
    color: rgba(14, 100, 161, 0.06);
    line-height: 1;
}

.cx-step__icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--cx-primary), var(--cx-teal));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    margin: 0 auto 16px;
}

.cx-step h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.cx-step p {
    font-size: 14px;
    color: var(--cx-gray-500);
}

.cx-step__arrow {
    display: flex;
    align-items: center;
    padding-top: 60px;
    color: var(--cx-gray-300);
    font-size: 24px;
}

@media (max-width: 768px) {
    .cx-step__arrow {
        display: none;
    }
}

/* Grid */
.cx-grid {
    display: grid;
    gap: 24px;
}

.cx-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.cx-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.cx-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .cx-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .cx-grid--2,
    .cx-grid--3,
    .cx-grid--4 {
        grid-template-columns: 1fr;
    }
}

/* Cards */
.cx-card {
    background: white;
    border-radius: var(--cx-radius-lg);
    border: 1px solid var(--cx-border);
    overflow: hidden;
    transition: all 0.3s;
}

.cx-card:hover {
    box-shadow: var(--cx-shadow-md);
}

.cx-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--cx-border);
    flex-wrap: wrap;
    gap: 12px;
}

.cx-card__header h3 {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cx-card__body {
    padding: 24px;
}

.cx-card__body--table {
    padding: 0;
}

.cx-card__thumb {
    height: 200px;
    background: linear-gradient(135deg, var(--cx-gray-100), var(--cx-gray-50));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.cx-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cx-card__thumb-placeholder {
    text-align: center;
    color: var(--cx-gray-400);
}

.cx-card__thumb-placeholder i {
    font-size: 40px;
    margin-bottom: 8px;
    display: block;
}

.cx-card__thumb-placeholder span {
    font-size: 13px;
    font-weight: 600;
}

.cx-card__pro-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--cx-orange), #f59e0b);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.cx-card--section .cx-card__body h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
}

.cx-card--section .cx-card__body p {
    font-size: 14px;
    color: var(--cx-gray-500);
    margin-bottom: 14px;
    line-height: 1.5;
}

.cx-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 13px;
    color: var(--cx-gray-500);
}

.cx-card__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Features */
.cx-feature {
    text-align: center;
    padding: 32px 24px;
}

.cx-feature__icon {
    width: 60px;
    height: 60px;
    background: rgba(14, 100, 161, 0.08);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cx-primary);
    font-size: 24px;
    margin: 0 auto 16px;
}

.cx-feature h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}

.cx-feature p {
    font-size: 14px;
    color: var(--cx-gray-500);
}

/* ============================================
   Pricing
   ============================================ */
.cx-price-card {
    background: white;
    border-radius: var(--cx-radius-lg);
    border: 1px solid var(--cx-border);
    padding: 36px 28px;
    text-align: center;
    position: relative;
    transition: all 0.3s;
}

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

.cx-price-card--featured {
    border-color: var(--cx-primary);
    box-shadow: 0 0 0 1px var(--cx-primary);
}

.cx-price-card__badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--cx-primary);
    color: white;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
}

.cx-price-card__header h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.cx-price-card__amount {
    font-size: 52px;
    font-weight: 800;
    color: var(--cx-black);
    line-height: 1.1;
    margin-bottom: 4px;
}

.cx-price-card__currency {
    font-size: 24px;
    vertical-align: top;
    position: relative;
    top: 8px;
}

.cx-price-card__period {
    font-size: 16px;
    font-weight: 400;
    color: var(--cx-gray-500);
}

.cx-price-card__features {
    list-style: none;
    text-align: left;
    margin: 28px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cx-price-card__features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--cx-gray-700);
}

.cx-price-card__features li i {
    width: 18px;
    font-size: 13px;
}

.cx-price-card__features li .fa-check {
    color: var(--cx-green);
}

.cx-price-card__features li .fa-times {
    color: var(--cx-gray-300);
}

.cx-price-card__disabled {
    opacity: 0.5;
}

/* ============================================
   FAQ
   ============================================ */
.cx-faq {
    max-width: 700px;
    margin: 0 auto;
}

.cx-faq__item {
    border: 1px solid var(--cx-border);
    border-radius: var(--cx-radius);
    margin-bottom: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.cx-faq__item.active {
    border-color: var(--cx-primary);
    box-shadow: 0 0 0 1px rgba(14, 100, 161, 0.1);
}

.cx-faq__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 600;
    color: var(--cx-text);
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
}

.cx-faq__question:hover {
    background: var(--cx-gray-50);
}

.cx-faq__question i {
    transition: transform 0.3s;
    font-size: 13px;
    color: var(--cx-gray-400);
}

.cx-faq__item.active .cx-faq__question i {
    transform: rotate(180deg);
    color: var(--cx-primary);
}

.cx-faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.cx-faq__answer p {
    padding: 0 20px 18px;
    font-size: 14px;
    color: var(--cx-gray-600);
    line-height: 1.7;
}

.cx-faq__item.active .cx-faq__answer {
    max-height: 300px;
}

/* ============================================
   CTA Section
   ============================================ */
.cx-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--cx-primary), var(--cx-teal));
    text-align: center;
    color: white;
}

.cx-cta h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.cx-cta p {
    font-size: 18px;
    opacity: 0.85;
    margin-bottom: 32px;
}

/* ============================================
   Footer
   ============================================ */
.cx-footer {
    padding: 60px 0 24px;
    background: var(--cx-gray-900);
    color: var(--cx-gray-400);
}

.cx-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.cx-footer__brand p {
    font-size: 14px;
    margin-top: 16px;
    line-height: 1.7;
}

.cx-footer__col h4 {
    color: white;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cx-footer__col a {
    display: block;
    color: var(--cx-gray-400);
    font-size: 14px;
    padding: 4px 0;
    transition: color 0.2s;
}

.cx-footer__col a:hover {
    color: white;
}

.cx-footer__bottom {
    border-top: 1px solid var(--cx-gray-800);
    padding-top: 24px;
    text-align: center;
    font-size: 13px;
}

.cx-footer__bottom a {
    color: var(--cx-teal-light);
}

@media (max-width: 768px) {
    .cx-footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .cx-footer__grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Auth Pages
   ============================================ */
.cx-auth-page .cx-nav {
    background: white;
}

.cx-auth {
    min-height: calc(100vh - 68px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 24px 60px;
    background: var(--cx-gray-50);
}

.cx-auth__container {
    width: 100%;
    max-width: 440px;
}

.cx-auth__card {
    background: white;
    border-radius: var(--cx-radius-lg);
    border: 1px solid var(--cx-border);
    padding: 40px 36px;
    box-shadow: var(--cx-shadow-lg);
}

.cx-auth__header {
    text-align: center;
    margin-bottom: 28px;
}

.cx-auth__header h1 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 6px;
}

.cx-auth__header p {
    color: var(--cx-gray-500);
    font-size: 14px;
}

.cx-auth__footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--cx-gray-500);
}

.cx-auth__footer a {
    font-weight: 600;
}

/* ============================================
   Forms
   ============================================ */
.cx-form__group {
    margin-bottom: 20px;
}

.cx-form__label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--cx-gray-700);
    margin-bottom: 6px;
}

.cx-form__input,
.cx-form__select,
.cx-form__textarea {
    width: 100%;
    padding: 11px 14px;
    font-size: 14px;
    font-family: var(--cx-font);
    border: 1.5px solid var(--cx-border);
    border-radius: 8px;
    color: var(--cx-text);
    background: white;
    transition: all var(--cx-transition);
    outline: none;
}

.cx-form__input:focus,
.cx-form__select:focus,
.cx-form__textarea:focus {
    border-color: var(--cx-primary);
    box-shadow: 0 0 0 3px rgba(14, 100, 161, 0.1);
}

.cx-form__input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.cx-form__input-wrap i {
    position: absolute;
    left: 14px;
    color: var(--cx-gray-400);
    font-size: 14px;
    pointer-events: none;
    z-index: 1;
}

.cx-form__input-wrap .cx-form__input {
    padding-left: 40px;
}

.cx-form__toggle-pw {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--cx-gray-400);
    font-size: 14px;
    cursor: pointer;
    padding: 4px;
    z-index: 1;
}

.cx-form__toggle-pw:hover {
    color: var(--cx-primary);
}

.cx-form__help {
    display: block;
    font-size: 12px;
    color: var(--cx-gray-500);
    margin-top: 4px;
}

.cx-form__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 14px;
}

.cx-form__checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--cx-gray-600);
    cursor: pointer;
}

.cx-form__checkbox input {
    accent-color: var(--cx-primary);
    width: 16px;
    height: 16px;
}

.cx-form__link {
    color: var(--cx-primary);
    font-size: 13px;
    font-weight: 600;
}

.cx-form__select--sm {
    padding: 5px 8px;
    font-size: 12px;
    width: auto;
}

.cx-form__textarea {
    resize: vertical;
    min-height: 80px;
}

.cx-form__code {
    font-family: var(--cx-font-mono);
    font-size: 13px;
    line-height: 1.6;
    min-height: 200px;
    background: var(--cx-gray-900);
    color: #e2e8f0;
    border-color: var(--cx-gray-700);
    border-radius: 8px;
    tab-size: 2;
}

.cx-form__code:focus {
    border-color: var(--cx-teal);
    box-shadow: 0 0 0 3px rgba(13, 156, 150, 0.15);
}

/* ============================================
   Alerts
   ============================================ */
.cx-alert {
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
}

.cx-alert p {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cx-alert--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.cx-alert--success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.cx-alert--warning {
    background: #fffbeb;
    border: 1px solid #fed7aa;
    color: #92400e;
}

.cx-alert--info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

/* Flash */
.cx-flash {
    padding: 14px 0;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    z-index: 9999;
    transition: opacity 0.3s;
}

.cx-flash .cx-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cx-flash--error {
    background: #fef2f2;
    color: #991b1b;
    border-bottom: 1px solid #fecaca;
}

.cx-flash--success {
    background: #f0fdf4;
    color: #166534;
    border-bottom: 1px solid #bbf7d0;
}

.cx-flash__close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
}

/* Badges */
.cx-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: var(--cx-gray-100);
    color: var(--cx-gray-600);
}

.cx-badge--success {
    background: #dcfce7;
    color: #166534;
}

.cx-badge--danger {
    background: #fef2f2;
    color: #991b1b;
}

.cx-badge--warning {
    background: #fef3c7;
    color: #92400e;
}

.cx-badge--primary {
    background: rgba(14, 100, 161, 0.1);
    color: var(--cx-primary);
}

.cx-badge--free {
    background: var(--cx-gray-100);
    color: var(--cx-gray-600);
}

.cx-badge--pro {
    background: rgba(14, 100, 161, 0.1);
    color: var(--cx-primary);
}

.cx-badge--agency {
    background: rgba(124, 58, 237, 0.1);
    color: var(--cx-purple);
}

/* ============================================
   Tabs
   ============================================ */
.cx-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--cx-border);
    margin-bottom: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.cx-tabs__btn {
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--cx-gray-500);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: var(--cx-font);
}

.cx-tabs__btn:hover {
    color: var(--cx-primary);
}

.cx-tabs__btn.active {
    color: var(--cx-primary);
    border-bottom-color: var(--cx-primary);
}

.cx-tabs__content {
    display: none;
}

.cx-tabs__content.active {
    display: block;
}

/* ============================================
   Modals
   ============================================ */
.cx-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.cx-modal.active {
    display: flex;
}

.cx-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.cx-modal__content {
    position: relative;
    width: 100%;
    max-width: 520px;
    background: white;
    border-radius: var(--cx-radius-lg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    max-height: 90vh;
    overflow-y: auto;
    animation: cxModalIn 0.25s ease;
}

.cx-modal__content--lg {
    max-width: 800px;
}

@keyframes cxModalIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.cx-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--cx-border);
}

.cx-modal__header h3 {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cx-modal__close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cx-gray-100);
    border: none;
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
    color: var(--cx-gray-500);
    transition: all 0.2s;
}

.cx-modal__close:hover {
    background: var(--cx-gray-200);
}

.cx-modal__body {
    padding: 24px;
}

.cx-modal__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--cx-border);
}

/* Code Block */
.cx-code-block {
    background: var(--cx-gray-900);
    color: #e2e8f0;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: var(--cx-font-mono);
    font-size: 13px;
    line-height: 1.6;
    max-height: 400px;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Tables */
.cx-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.cx-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.cx-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--cx-gray-500);
    background: var(--cx-gray-50);
    border-bottom: 1px solid var(--cx-border);
    white-space: nowrap;
}

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

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

.cx-table tr:hover td {
    background: var(--cx-gray-50);
}

/* Action buttons group */
.cx-action-btns {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* Empty state */
.cx-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--cx-gray-400);
}

.cx-empty i {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
}

.cx-empty p {
    margin-bottom: 8px;
}

/* Store items */
.cx-store-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--cx-border);
}

.cx-store-item:last-child {
    border-bottom: none;
}

.cx-store-item__info {
    flex: 1;
}

.cx-store-item__info strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}

.cx-store-item__info span {
    font-size: 12px;
    color: var(--cx-gray-500);
}

/* Connect guide */
.cx-connect-guide__info {
    margin-bottom: 24px;
}

.cx-connect-guide__info h4 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}

.cx-connect-guide__info p {
    font-size: 14px;
    color: var(--cx-gray-600);
    margin-bottom: 12px;
}

.cx-connect-guide__info ol {
    padding-left: 20px;
    font-size: 14px;
    color: var(--cx-gray-600);
    margin-bottom: 8px;
}

.cx-connect-guide__info ol li {
    margin-bottom: 6px;
    line-height: 1.5;
}

/* Filter bar */
.cx-filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cx-filter-btn {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border: 1.5px solid var(--cx-border);
    border-radius: 8px;
    background: white;
    color: var(--cx-gray-600);
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--cx-font);
}

.cx-filter-btn:hover {
    border-color: var(--cx-primary);
    color: var(--cx-primary);
}

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

/* Pagination */
.cx-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Text helpers */
.cx-text-muted {
    color: var(--cx-gray-500);
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.cx-hero__content {
    animation: fadeInUp 0.6s ease;
}

.cx-step {
    animation: fadeInUp 0.6s ease backwards;
}

.cx-step:nth-child(1) {
    animation-delay: 0.1s;
}

.cx-step:nth-child(3) {
    animation-delay: 0.2s;
}

.cx-step:nth-child(5) {
    animation-delay: 0.3s;
}
/* ============================================
   Templates & Static Pages
   ============================================ */
.cx-templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 32px;
}
.cx-template-card {
    background: var(--cx-bg);
    border: 1px solid var(--cx-border);
    border-radius: var(--cx-radius-lg);
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
}
.cx-template-card:hover { box-shadow: var(--cx-shadow-lg); transform: translateY(-3px); }
.cx-template-card__preview {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, var(--cx-primary) 0%, var(--cx-teal) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2.5rem;
    position: relative;
    overflow: hidden;
}
.cx-template-card__preview img { width:100%; height:100%; object-fit:cover; position:absolute; }
.cx-template-card__body { padding: 20px; }
.cx-template-card__body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.cx-template-card__body p { font-size: .85rem; color: var(--cx-text-light); margin-bottom: 16px; }
.cx-template-card__footer { display: flex; gap: 8px; }
.cx-niche-badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: 20px; background: var(--cx-gray-100); color: var(--cx-gray-600); text-transform: capitalize; }
.cx-template-card__pro { position: absolute; top: 10px; right: 10px; background: linear-gradient(135deg,#f59e0b,#d97706); color:#fff; font-size:.7rem; font-weight:700; padding:3px 9px; border-radius:20px; letter-spacing:.5px; }

/* Niche tabs */
.cx-niche-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.cx-niche-tab { padding: .45rem 1.1rem; border-radius: 20px; border: 1.5px solid var(--cx-border); background: transparent; color: var(--cx-text-light); font-size: .86rem; font-weight: 500; cursor: pointer; transition: all .18s; font-family: var(--cx-font); }
.cx-niche-tab:hover, .cx-niche-tab.active { background: var(--cx-primary); border-color: var(--cx-primary); color: #fff; }

/* Static page content */
.cx-page-content { max-width: 800px; margin: 0 auto; }
.cx-page-content h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 16px; margin-top: 32px; color: var(--cx-text); }
.cx-page-content h2:first-child { margin-top: 0; }
.cx-page-content h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; margin-top: 24px; color: var(--cx-text); }
.cx-page-content p { margin-bottom: 14px; color: var(--cx-text-light); line-height: 1.75; }
.cx-page-content ul, .cx-page-content ol { margin: 0 0 14px 1.5rem; color: var(--cx-text-light); line-height: 1.8; }

/* Contact page */
.cx-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.cx-contact-info { display: flex; flex-direction: column; gap: 20px; }
.cx-contact-item { display: flex; align-items: flex-start; gap: 14px; }
.cx-contact-item i { width: 40px; height: 40px; background: var(--cx-gray-100); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--cx-primary); font-size: 1rem; flex-shrink: 0; }
.cx-contact-item strong { display: block; font-weight: 700; font-size: .9rem; }
.cx-contact-item span, .cx-contact-item a { color: var(--cx-text-light); font-size: .875rem; text-decoration: none; }
.cx-contact-form .cx-form__group { margin-bottom: 18px; }
.cx-contact-form textarea.cx-form__input { min-height: 140px; resize: vertical; padding-top: 12px; }
@media (max-width: 768px) { .cx-contact-grid { grid-template-columns: 1fr; } }

/* Page hero (for static pages) */
.cx-page-hero { background: linear-gradient(135deg, var(--cx-primary) 0%, var(--cx-teal) 100%); color: #fff; padding: 60px 0 40px; text-align: center; }
.cx-page-hero h1 { font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.cx-page-hero p { opacity: .85; font-size: 1rem; max-width: 500px; margin: 0 auto; }

/* Payment gateways grid */
.cx-gateway-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; margin-top: 32px; }
.cx-gateway-card { background: var(--cx-bg); border: 1px solid var(--cx-border); border-radius: var(--cx-radius); padding: 24px; text-align: center; }
.cx-gateway-card__icon { width: 56px; height: 56px; background: var(--cx-gray-100); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; font-size: 1.5rem; color: var(--cx-primary); }
.cx-gateway-card h4 { font-size: .9rem; font-weight: 700; margin-bottom: 4px; }
.cx-gateway-card p { font-size: .8rem; color: var(--cx-text-light); }

/* Plan restriction badge */
.cx-plan-lock { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--cx-orange); font-weight: 600; }
.cx-plan-lock i { font-size: .85rem; }

/* Flash fixed */
.cx-flash { padding: 12px 0; border-bottom: 1px solid transparent; }
.cx-flash--success { background: #dcfce7; border-color: #bbf7d0; color: #166534; }
.cx-flash--error { background: #fee2e2; border-color: #fecaca; color: #991b1b; }
.cx-flash--info { background: #dbeafe; border-color: #bfdbfe; color: #1d4ed8; }
.cx-flash__close { background: none; border: none; font-size: 1.2rem; cursor: pointer; margin-left: auto; float: right; opacity: .6; }
.cx-flash .cx-container { display: flex; align-items: center; }

/* Google Sign In */
.cx-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: .7rem 1rem;
    background: #fff;
    border: 1.5px solid var(--cx-border);
    border-radius: 9px;
    font-size: .9rem;
    font-weight: 600;
    color: var(--cx-text);
    cursor: pointer;
    transition: box-shadow .18s, border-color .18s;
    font-family: var(--cx-font);
    text-decoration: none;
}
.cx-google-btn:hover { box-shadow: var(--cx-shadow-md); border-color: #4285f4; color: var(--cx-text); }
.cx-google-btn img { width: 20px; height: 20px; }
.cx-auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--cx-muted); font-size: .82rem; }
.cx-auth-divider::before, .cx-auth-divider::after { content:''; flex:1; height:1px; background: var(--cx-border); }

/* Nav mobile */
@media (max-width: 900px) {
    .cx-nav__toggle { display: flex !important; }
    .cx-nav__menu {
        flex-direction: column;
        align-items: stretch;
        position: fixed;
        top: 68px;
        left: 0; right: 0;
        bottom: 0;
        background: #fff;
        border-top: 1px solid var(--cx-border);
        box-shadow: 0 8px 32px rgba(0,0,0,.10);
        overflow-y: auto;
        overflow-x: hidden;
        opacity: 0;
        padding: 0 .75rem;
        pointer-events: none;
        transform: translateY(-12px);
        transition: opacity .28s ease, transform .28s ease, padding .2s ease;
        gap: 2px;
        z-index: 999;
    }
    .cx-nav__menu.active {
        opacity: 1;
        pointer-events: auto;
        padding: .75rem;
        transform: translateY(0);
    }
    .cx-nav__menu > .cx-nav__link, .cx-nav__menu > a {
        display: flex; width: 100%; padding: .7rem 1rem; border-radius: 8px;
    }
    .cx-nav__menu .cx-btn {
        display: flex; width: 100%; justify-content: center; margin-top: 4px;
    }
}

/* ── Auth page ── */
.cx-auth { min-height: calc(100vh - 68px); display: flex; align-items: center; justify-content: center; padding: 40px 20px; background: var(--cx-bg-alt); }
.cx-auth__container { width: 100%; max-width: 460px; }
.cx-auth__card { background: #fff; border-radius: 20px; padding: 36px 40px; box-shadow: 0 8px 40px rgba(0,0,0,.10); border: 1px solid var(--cx-border); }
.cx-auth__header { text-align: center; margin-bottom: 24px; }
.cx-auth__header h1 { font-size: 1.5rem; font-weight: 800; margin-bottom: 6px; }
.cx-auth__header p { color: var(--cx-text-light); font-size: .9rem; }
.cx-auth__footer { text-align: center; margin-top: 20px; font-size: .875rem; color: var(--cx-text-light); }
.cx-auth__footer a { color: var(--cx-primary); font-weight: 600; }
@media (max-width: 500px) { .cx-auth__card { padding: 28px 20px; } }

/* ── Form ── */
.cx-form__group { margin-bottom: 18px; }
.cx-form__label { display: block; font-size: .83rem; font-weight: 600; margin-bottom: 6px; color: var(--cx-text); }
.cx-form__input { width: 100%; padding: .65rem 1rem; border: 1.5px solid var(--cx-border); border-radius: 9px; font-family: var(--cx-font); font-size: .9rem; color: var(--cx-text); background: #fff; transition: border-color .2s, box-shadow .2s; outline: none; }
.cx-form__input:focus { border-color: var(--cx-primary); box-shadow: 0 0 0 3px rgba(14,100,161,.12); }
textarea.cx-form__input { resize: vertical; }
select.cx-form__input { cursor: pointer; }
.cx-form__input-wrap { position: relative; }
.cx-form__input-wrap > i:not(.cx-form__toggle-pw i) { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--cx-muted); font-size: .85rem; pointer-events: none; z-index: 1; }
.cx-form__input-wrap > i + .cx-form__input,
.cx-form__input-wrap > i ~ .cx-form__input { padding-left: 36px; }
.cx-form__toggle-pw { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--cx-muted); cursor: pointer; padding: 4px; font-size: .85rem; }
.cx-form__row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; font-size: .85rem; }
.cx-form__checkbox { display: flex; align-items: flex-start; gap: 8px; font-size: .85rem; cursor: pointer; }
.cx-form__checkbox input { margin-top: 2px; flex-shrink: 0; cursor: pointer; }
.cx-form__link { color: var(--cx-primary); font-size: .85rem; }

/* ── Alerts ── */
.cx-alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 18px; font-size: .875rem; line-height: 1.6; border: 1px solid transparent; }
.cx-alert--error, .cx-alert--danger { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
.cx-alert--success { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.cx-alert--info { background: #dbeafe; color: #1e40af; border-color: #bfdbfe; }
.cx-alert p { margin: 0 0 4px; }
.cx-alert p:last-child { margin: 0; }

/* ── Buttons ── */
.cx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: .55rem 1.1rem; font-family: var(--cx-font); font-size: .875rem; font-weight: 600; border-radius: 9px; border: 1.5px solid transparent; cursor: pointer; text-decoration: none; transition: all .18s; white-space: nowrap; line-height: 1.4; }
.cx-btn--primary { background: var(--cx-primary); color: #fff; border-color: var(--cx-primary); }
.cx-btn--primary:hover { background: var(--cx-primary-dark); border-color: var(--cx-primary-dark); color: #fff; }
.cx-btn--outline { background: transparent; color: var(--cx-text); border-color: var(--cx-border); }
.cx-btn--outline:hover { border-color: var(--cx-primary); color: var(--cx-primary); background: rgba(14,100,161,.05); }
.cx-btn--white { background: #fff; color: var(--cx-primary); border-color: #fff; }
.cx-btn--white:hover { background: var(--cx-gray-100); color: var(--cx-primary-dark); }
.cx-btn--warning { background: #f59e0b; color: #fff; border-color: #f59e0b; }
.cx-btn--warning:hover { background: #d97706; }
.cx-btn--danger { background: var(--cx-red); color: #fff; border-color: var(--cx-red); }
.cx-btn--danger:hover { background: #b91c1c; }
.cx-btn--success { background: var(--cx-green); color: #fff; border-color: var(--cx-green); }
.cx-btn--sm { padding: .38rem .8rem; font-size: .8rem; border-radius: 7px; }
.cx-btn--lg { padding: .75rem 1.6rem; font-size: 1rem; border-radius: 11px; }
.cx-btn--block { display: flex; width: 100%; }

/* ── Google auth button ── */
.cx-google-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: .7rem 1rem; background: #fff; border: 1.5px solid var(--cx-border); border-radius: 9px; font-size: .9rem; font-weight: 600; color: var(--cx-text); cursor: pointer; transition: box-shadow .18s, border-color .18s; font-family: var(--cx-font); text-decoration: none; }
.cx-google-btn:hover { box-shadow: 0 2px 12px rgba(0,0,0,.10); border-color: #aaa; color: var(--cx-text); }
.cx-auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--cx-muted); font-size: .82rem; }
.cx-auth-divider::before, .cx-auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--cx-border); }

/* ── Nav desktop ── */
.cx-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255,255,255,.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--cx-border); transition: box-shadow .3s; }
.cx-nav--scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.08); }
.cx-nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 8px; }
.cx-nav__logo { display: flex; align-items: center; flex-shrink: 0; }
.cx-nav__logo img { display: block; height: 36px; width: auto; }
.cx-nav__menu { display: flex; align-items: center; gap: 4px; }
.cx-nav__link { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .85rem; color: var(--cx-gray-600); font-size: .875rem; font-weight: 500; border-radius: 8px; transition: color .18s, background .18s; text-decoration: none; background: none; border: none; cursor: pointer; font-family: var(--cx-font); white-space: nowrap; }
.cx-nav__link:hover { color: var(--cx-primary); background: var(--cx-gray-50); }
.cx-nav__toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; background: transparent; border: 1.5px solid var(--cx-border); border-radius: 7px; cursor: pointer; padding: 8px 9px; flex-shrink: 0; transition: border-color .2s; }
.cx-nav__toggle span { display: block; width: 20px; height: 2px; background: var(--cx-text); border-radius: 2px; transition: transform .28s, opacity .28s, width .28s; }
.cx-nav__toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.cx-nav__toggle.active span:nth-child(2) { opacity: 0; width: 0; }
.cx-nav__toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
body { padding-top: 68px; }

/* ── Footer ── */
.cx-footer { background: var(--cx-black); color: rgba(255,255,255,.7); padding: 64px 0 0; }
.cx-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.cx-footer__brand p { font-size: .875rem; line-height: 1.7; margin-top: 14px; }
.cx-footer__col h4 { color: #fff; font-size: .875rem; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .5px; }
.cx-footer__col a { display: block; color: rgba(255,255,255,.6); font-size: .875rem; margin-bottom: 10px; transition: color .18s; text-decoration: none; }
.cx-footer__col a:hover { color: #fff; }
.cx-footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; text-align: center; font-size: .8rem; color: rgba(255,255,255,.4); }
.cx-footer__bottom a { color: var(--cx-primary); }
@media (max-width: 900px) { .cx-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 600px) { .cx-footer__grid { grid-template-columns: 1fr; } }

/* ── Desktop nav menu reset (override mobile fixed) ── */
@media (min-width: 901px) {
    .cx-nav__menu {
        position: static !important;
        flex-direction: row !important;
        align-items: center !important;
        max-height: none !important;
        overflow: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: none !important;
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        gap: 4px !important;
    }
    .cx-nav__toggle { display: none !important; }
}
