:root {
    --black: #0a0a0a;
    --deep-black: #050505;
    --card-bg: #111111;
    --border: #222222;
    --white: #ffffff;
    --gray: #999999;
    --light-gray: #cccccc;
    /* Chumba Rainbow Palette */
    --red: #e63946;
    --orange: #f4a236;
    --yellow: #f7dc37;
    --green: #2ec44f;
    --blue: #3b82f6;
    --purple: #a855f7;
    --rainbow-grad: linear-gradient(90deg, #e63946, #f4a236, #f7dc37, #2ec44f, #3b82f6, #a855f7);
    --font-head: 'Poppins', sans-serif;
    --font-text: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--deep-black);
    color: var(--light-gray);
    font-family: var(--font-text);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-head);
    color: var(--white);
}

a {
    text-decoration: none;
    color: var(--blue);
    transition: color 0.3s;
}

a:hover {
    color: var(--purple);
}

.text-anchor {
    border-bottom: 1px dotted var(--orange);
    color: var(--orange);
}

.text-anchor:hover {
    border-bottom-color: var(--green);
    color: var(--green);
}

/* === MAGAZINE STICKY TOP NAV === */
.ch-topnav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid;
    border-image: var(--rainbow-grad) 1;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.ch-logo {
    font-family: var(--font-head);
    font-size: 1.6rem;
    font-weight: 800;
    background: var(--rainbow-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.ch-nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.ch-nav-links a {
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.ch-nav-links a:hover,
.ch-nav-links a.active {
    color: var(--white);
    border-bottom-color: var(--orange);
}

.ch-nav-cta {
    background: var(--rainbow-grad);
    color: var(--black) !important;
    padding: 10px 24px !important;
    border-radius: 25px;
    font-weight: 700 !important;
    border-bottom: none !important;
    font-size: 0.9rem;
}

.ch-nav-cta:hover {
    opacity: 0.85;
    color: var(--black) !important;
}

.ch-auth-links {
    display: flex;
    gap: 10px;
}

.ch-auth-links a {
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.ch-auth-links .login-btn {
    border: 1px solid var(--border);
    color: var(--white);
}

.ch-auth-links .login-btn:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.ch-auth-links .join-btn {
    background: var(--green);
    color: var(--black);
}

.ch-auth-links .join-btn:hover {
    background: var(--yellow);
}

/* === MAIN CONTENT WRAPPER === */
.ch-main {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 30px 100px;
}

/* === HERO BANNER (Full Width Card) === */
.ch-hero {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 420px;
    margin-bottom: 40px;
    border: 1px solid var(--border);
}

.ch-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.ch-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 50px 40px 35px;
    background: linear-gradient(to top, rgba(5, 5, 5, 1) 0%, transparent 100%);
}

.ch-hero-overlay h1 {
    font-size: 3rem;
    margin-bottom: 8px;
}

.ch-hero-overlay p {
    font-size: 1.15rem;
    background: var(--rainbow-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

/* === CARD GRID SYSTEM === */
.ch-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.ch-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.ch-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.15);
}

.ch-card h3 {
    font-size: 1.1rem;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid;
    border-image: var(--rainbow-grad) 1;
    display: inline-block;
}

.ch-card .chart-box {
    position: relative;
    width: 100%;
    height: 280px;
}

/* === RAINBOW TABLE === */
.ch-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 18px;
    border: 1px solid var(--border);
}

.ch-table th {
    background: var(--card-bg);
    color: var(--white);
    padding: 14px 18px;
    text-align: left;
    font-family: var(--font-head);
    font-size: 0.9rem;
    border-bottom: 2px solid;
    border-image: var(--rainbow-grad) 1;
}

.ch-table td {
    padding: 12px 18px;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.ch-table tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.02);
}

.ch-table tr:hover td {
    background: rgba(168, 85, 247, 0.08);
}

/* === SEO TEXT BLOCK === */
.ch-seo-block {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 40px;
    margin-top: 40px;
}

.ch-seo-block h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    background: var(--rainbow-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.ch-seo-block p {
    margin-bottom: 18px;
    line-height: 1.85;
    font-size: 1.02rem;
}

/* === FOOTER === */
.ch-footer {
    text-align: center;
    padding: 30px;
    border-top: 2px solid;
    border-image: var(--rainbow-grad) 1;
    margin-top: 60px;
}

.ch-footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.ch-footer-links a {
    color: var(--gray);
    font-size: 0.85rem;
}

.ch-footer-links a:hover {
    color: var(--white);
}

.ch-footer-copy {
    font-size: 0.75rem;
    color: #555;
}

/* === AUTHOR CHIP === */
.ch-author-chip {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 12px 24px;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: rgba(168, 85, 247, 0.05);
    margin-top: 20px;
}

.ch-author-chip img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--purple);
}

/* === MOBILE BURGER & DOCK === */
.ch-mobile-burger {
    display: none;
}

.ch-mobile-dock {
    display: none;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
    .ch-topnav {
        padding: 0 15px;
    }

    .ch-nav-links,
    .ch-auth-links {
        display: none;
    }

    .ch-mobile-burger {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        background: transparent;
        border: 1px solid var(--border);
        border-radius: 8px;
        cursor: pointer;
    }

    .ch-mobile-burger svg {
        width: 24px;
        height: 24px;
        fill: var(--white);
    }

    .ch-main {
        padding: 20px 15px 110px;
    }

    .ch-hero {
        height: 250px;
    }

    .ch-hero-overlay h1 {
        font-size: 1.8rem;
    }

    .ch-card-grid {
        grid-template-columns: 1fr;
    }

    .ch-mobile-dock {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(5, 5, 5, 0.98);
        border-top: 2px solid;
        border-image: var(--rainbow-grad) 1;
        justify-content: space-around;
        padding: 10px 0;
        z-index: 999;
    }

    .dock-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        color: var(--gray);
        font-size: 0.65rem;
        font-family: var(--font-head);
        font-weight: 600;
    }

    .dock-item svg {
        width: 20px;
        height: 20px;
        fill: currentColor;
    }

    .dock-item.active {
        color: var(--orange);
    }

    .dock-item.cta-dock {
        color: var(--green);
    }
}

/* Mobile Sidebar Drawer */
.ch-mobile-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    background: var(--deep-black);
    border-right: 2px solid;
    border-image: var(--rainbow-grad) 1;
    padding: 30px 20px;
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform 0.35s ease;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ch-mobile-sidebar.active {
    transform: translateX(0);
}

.ch-mobile-sidebar a {
    display: block;
    padding: 14px 20px;
    color: var(--light-gray);
    border-radius: 8px;
    font-family: var(--font-head);
    font-size: 1rem;
}

.ch-mobile-sidebar a:hover {
    background: var(--card-bg);
    color: var(--orange);
}

.ch-mobile-sidebar .close-sidebar {
    align-self: flex-end;
    cursor: pointer;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.ch-mobile-sidebar .mobile-auth {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.ch-mobile-sidebar .mobile-auth a {
    flex: 1;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.ch-mobile-sidebar .m-login {
    border: 1px solid var(--orange);
    color: var(--orange);
}

.ch-mobile-sidebar .m-join {
    background: var(--green);
    color: var(--black);
    font-weight: 700;
}