@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ============================================
   FSS DESIGN SYSTEM — WEB THEME
   Dark mode, minimal, tech
   ============================================ */

:root {
    /* Surfaces */
    --surface-page: #0C0C0E;
    --surface-card: #141416;
    --surface-elevated: #1C1C1F;

    /* Text */
    --text-primary: #F0F0F2;
    --text-secondary: #8A8A90;
    --text-muted: #4A4A52;

    /* Accent */
    --accent-primary: #E8192C;
    --accent-hover: #C8101E;
    --accent-subtle: rgba(232, 25, 44, 0.08);

    /* Status */
    --status-success: #22C55E;
    --status-error: #EF4444;
    --status-warning: #F59E0B;

    /* Borders */
    --border-default: rgba(255, 255, 255, 0.08);
    --border-subtle: rgba(255, 255, 255, 0.04);

    /* Geometry */
    --radius: 6px;

    /* Spacing */
    --spacing-section: 24px;
    --spacing-card: 20px;
    --spacing-item: 8px;
    --spacing-label: 4px;

    /* Typography */
    --font-display: 'Space Grotesk', sans-serif;
    --font-interface: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Z-index */
    --z-menu: 100;
    --z-modal: 200;
    --z-loader: 300;
}

/* ============================================
   BASE
   ============================================ */
body {
    font-family: var(--font-interface);
    background-color: var(--surface-page);
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtle scanline texture */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255, 255, 255, 0.008) 2px,
        rgba(255, 255, 255, 0.008) 4px
    );
    pointer-events: none;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-hover);
}

::selection {
    background: var(--accent-primary);
    color: #fff;
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
    width: 1080px;
    max-width: 90%;
    margin: 0 auto;
}

.content {
    padding: 80px 0;
}

/* ============================================
   AJAX LOADER
   ============================================ */
.ajax_load {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(12, 12, 14, 0.85);
    z-index: var(--z-loader);
    backdrop-filter: blur(4px);
}

.ajax_load_box {
    margin: auto;
    text-align: center;
    color: var(--text-primary);
}

.ajax_load_box_circle {
    border: 2px solid var(--border-default);
    border-top: 2px solid var(--accent-primary);
    border-radius: 50%;
    margin: 0 auto 16px;
    width: 32px;
    height: 32px;
    animation: spin 0.8s linear infinite;
}

.ajax_load_box_title {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

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

/* ============================================
   HEADER
   ============================================ */
.main_header {
    padding: 0;
    background: rgba(12, 12, 14, 0.9);
    border-bottom: 1px solid var(--border-default);
    position: sticky;
    top: 0;
    z-index: var(--z-menu);
    backdrop-filter: blur(12px);
    transition: transform 0.3s ease;
}

.main_header.header--hidden {
    transform: translateY(-100%);
}

.main_header.header--scrolled {
    box-shadow: 0 1px 0 var(--border-default);
}

.main_header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

/* Logo */
.main_header_logo h1 {
    font-size: 15px;
    font-weight: 500;
}

.main_header_logo h1 a {
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
}

.main_header_logo h1 a:hover {
    color: var(--text-primary);
}

.main_header_logo h1 a:hover b {
    text-shadow: 0 0 8px rgba(232, 25, 44, 0.3);
}

/* Logo image animation */
.main_header_logo_img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    flex-shrink: 0;
    animation: logoPulse 3s ease-in-out infinite;
    filter: drop-shadow(0 0 0 transparent);
}

@keyframes logoPulse {
    0%, 100% { filter: drop-shadow(0 0 0 transparent); transform: scale(1); }
    50%      { filter: drop-shadow(0 0 6px rgba(232, 25, 44, 0.3)); transform: scale(1.05); }
}

.main_header_logo h1 a:hover .main_header_logo_img {
    animation: logoSpin 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    filter: drop-shadow(0 0 8px rgba(232, 25, 44, 0.4));
}

@keyframes logoSpin {
    0%   { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

.main_header_logo h1 a b {
    font-weight: 700;
    color: var(--accent-primary);
    transition: text-shadow 0.3s ease;
}

/* Nav */
.main_header_nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.main_header_nav_links {
    display: flex !important;
    align-items: center;
    gap: 2px;
}

.main_header_nav_links .link {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 13px;
    border-radius: var(--radius);
    transition: color 0.25s ease;
    border: 1px solid transparent;
    position: relative;
}

.main_header_nav_links .link::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--accent-primary);
    transition: width 0.3s ease, left 0.3s ease;
}

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

.main_header_nav_links .link:hover::after {
    width: 50%;
    left: 25%;
}

/* Active page indicator */
.main_header_nav_links .link.active {
    color: var(--text-primary);
}

.main_header_nav_links .link.active::after {
    width: 50%;
    left: 25%;
    background: var(--accent-primary);
}

.main_header_nav_links .login {
    color: #fff;
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    transition: background 0.2s, box-shadow 0.3s;
}

.main_header_nav_links .login::after {
    display: none;
}

.main_header_nav_links .login:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
    box-shadow: 0 0 16px rgba(232, 25, 44, 0.2);
}

/* Mobile nav */
.main_header_nav_mobile,
.main_header_nav_mobile_close {
    display: none;
}

/* Mobile overlay */
.mobile_overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: calc(var(--z-menu) - 1);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s;
}

.mobile_overlay.is-active {
    display: block;
    opacity: 1;
}

/* ============================================
   HERO — HOME FEATURED
   ============================================ */
.home_featured {
    position: relative;
    background: var(--surface-card);
    border-bottom: 1px solid var(--border-default);
    overflow: hidden;
}

/* Hero background effects */
.home_hero_bg { position: absolute; inset: 0; pointer-events: none; }
.home_hero_grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(232,25,44,.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(232,25,44,.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at 50% 50%, #000 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 0%, transparent 70%);
}
.home_hero_glow {
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(232,25,44,.08) 0%, transparent 60%);
    animation: heroGlowPulse 6s ease-in-out infinite;
}
@keyframes heroGlowPulse {
    0%, 100% { opacity: .5; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}
.home_hero_orb {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(232,25,44,.08);
    animation: heroOrbFloat 8s ease-in-out infinite;
}
.home_hero_orb--1 { width: 300px; height: 300px; top: -100px; right: -80px; }
.home_hero_orb--2 { width: 200px; height: 200px; bottom: -60px; left: -40px; animation-delay: -4s; animation-direction: reverse; }
@keyframes heroOrbFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10px, -10px); }
}

.home_featured_content {
    padding: 80px 0 64px;
    position: relative;
    z-index: 1;
}

.home_featured_header {
    max-width: 660px;
    margin: 0 auto;
    text-align: center;
}

/* Hero badge */
.home_hero_badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .06em;
    color: var(--accent-primary);
    background: var(--accent-subtle);
    border: 1px solid rgba(232,25,44,.12);
    padding: 6px 16px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    animation: fadeUp .5s cubic-bezier(.22,1,.36,1) both;
}
.home_hero_badge_dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-primary);
    animation: heroDotPulse 2s ease-in-out infinite;
}
@keyframes heroDotPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .3; }
}

.home_featured_header h1 {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 20px;
    animation: fadeUp .6s cubic-bezier(.22,1,.36,1) .08s both;
}
.home_hero_accent {
    background: linear-gradient(135deg, var(--accent-primary) 0%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home_featured_header > p {
    margin: 0 0 28px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeUp .6s cubic-bezier(.22,1,.36,1) .16s both;
}

/* Hero actions */
.home_hero_actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    animation: fadeUp .6s cubic-bezier(.22,1,.36,1) .24s both;
}

.home_featured_btn {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--accent-primary);
    color: #fff;
    font-family: var(--font-interface);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius);
    transition: all .25s;
    border: none;
}
.home_featured_btn:hover {
    background: var(--accent-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(232,25,44,.25);
}
.home_btn_arrow {
    transition: transform .2s;
}
.home_featured_btn:hover .home_btn_arrow {
    transform: translateX(4px);
}

.home_hero_link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color .2s;
}
.home_hero_link:hover { color: var(--text-primary); }

/* Hero floating tags */
.home_hero_tags {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
    animation: fadeUp .7s cubic-bezier(.22,1,.36,1) .32s both;
}
.home_hero_tag {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .06em;
    color: var(--text-muted);
    text-transform: uppercase;
    padding: 5px 12px;
    background: var(--surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.home_features {
    background: var(--surface-page);
}

.home_section_tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .06em;
    color: var(--accent-primary);
    margin-bottom: 12px;
    text-transform: uppercase;
}

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

.home_features_header h2 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.home_features_header p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

.home_features_content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.home_features_content article {
    background: var(--surface-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius);
    padding: 32px 24px;
    transition: all .3s ease;
    position: relative;
    text-align: center;
    overflow: hidden;
}

.home_features_content article::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    transition: width .4s ease, left .4s ease;
}

.home_features_content article:hover {
    border-color: rgba(232,25,44,.12);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,.2);
}

.home_features_content article:hover::before {
    width: 100%;
    left: 0;
}

.feature_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    border-radius: 14px;
    background: var(--accent-subtle);
    border: 1px solid rgba(232,25,44,.1);
    font-size: 22px;
    color: var(--accent-primary);
    transition: all .3s;
}

.feature_icon::before {
    margin-right: 0 !important;
    top: 0 !important;
}

.home_features_content article:hover .feature_icon {
    background: var(--accent-primary);
    color: #fff;
    border-color: var(--accent-primary);
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(232,25,44,.2);
}

.home_features_content article h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.home_features_content article p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   CTA SECTION
   ============================================ */
.home_cta {
    padding: 0 0 48px;
}
.home_cta_card {
    position: relative;
    text-align: center;
    padding: 56px 32px;
    background: var(--surface-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius);
    overflow: hidden;
}
.home_cta_glow {
    position: absolute;
    bottom: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(232,25,44,.06) 0%, transparent 60%);
    pointer-events: none;
}
.home_cta_card h2 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px;
    position: relative;
}
.home_cta_card p {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0 0 24px;
    position: relative;
}
.home_cta_actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about_page {
    color: var(--text-secondary);
}

.about_page_content {
    max-width: 860px;
    margin: 0 auto;
}

/* About Hero */
.about_hero {
    background: var(--surface-card);
    border-bottom: 1px solid var(--border-default);
    position: relative;
    overflow: hidden;
}
.about_hero_bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(232,25,44,.06) 0%, transparent 70%);
    pointer-events: none;
}

.about_header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
    padding: 72px 0 56px;
    position: relative;
}

/* Hero stats */
.about_hero_stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-top: 32px;
    animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.24s both;
}
.about_hero_stat { text-align: center; }
.about_hero_stat_val {
    display: block;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1;
}
.about_hero_stat_label {
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .06em;
    color: var(--text-muted);
    margin-top: 6px;
    text-transform: uppercase;
}
.about_hero_stat_divider {
    width: 1px;
    height: 36px;
    background: var(--border-default);
}

/* Sticky nav */
.about_nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--surface-card);
    border-bottom: 1px solid var(--border-default);
    backdrop-filter: blur(12px);
}
.about_nav_inner {
    display: flex;
    justify-content: center;
    gap: 4px;
    padding: 8px 0;
    overflow-x: auto;
}
.about_nav_link {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius);
    white-space: nowrap;
    transition: all .15s;
}
.about_nav_link:hover { color: var(--text-primary); background: var(--surface-elevated); }
.about_nav_link.active { color: var(--accent-primary); background: var(--accent-subtle); }

.about_tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--accent-primary);
    background: var(--accent-subtle);
    border: 1px solid rgba(232, 25, 44, 0.12);
    padding: 4px 12px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    animation: fadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.about_header h1 {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.1;
    animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.about_header p {
    font-size: 15px;
    line-height: 1.6;
    margin-top: 16px;
    color: var(--text-secondary);
    animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both;
}

/* About intro */
.about_intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px;
}

.about_intro h2 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.about_intro_desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Category sections */
.about_category {
    margin-bottom: 48px;
}

.about_category_header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-subtle);
}

.about_category_number {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-primary);
    background: var(--accent-subtle);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid rgba(232, 25, 44, 0.12);
    flex-shrink: 0;
}

.about_category_info { flex: 1; min-width: 0; }

.about_category_header h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
}

.about_category_desc {
    font-size: 12px;
    color: var(--text-muted);
    margin: 2px 0 0;
}

.about_category_meta {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .04em;
    color: var(--text-muted);
    background: var(--surface-elevated);
    padding: 4px 10px;
    border-radius: var(--radius);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Task list (dot leader style) */
.about_task_list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.about_task_item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: var(--radius);
    transition: background .15s;
}
.about_task_item:hover { background: var(--surface-elevated); }
.about_task_name {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}
.about_task_dots {
    flex: 1;
    min-width: 20px;
    border-bottom: 1px dotted var(--border-subtle);
    margin: 0 4px;
    align-self: flex-end;
    margin-bottom: 4px;
}

/* Points badge */
.points_badge {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--surface-elevated);
    padding: 4px 10px;
    border-radius: var(--radius);
    border: 1px solid var(--border-subtle);
    white-space: nowrap;
    flex-shrink: 0;
}

.points_badge.highlight {
    color: var(--accent-primary);
    background: var(--accent-subtle);
    border-color: rgba(232, 25, 44, 0.12);
    font-weight: 700;
}

/* Use section - grid cards */
.about_use_section {
    margin: 48px 0;
}

.about_use_section h2 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 24px;
    text-align: center;
}

.about_use_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.about_use_card {
    background: var(--card-bg, var(--surface-card));
    border: 1px solid var(--border-default);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.about_use_card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--card-bg);
    opacity: 0;
    transition: opacity .3s;
}
.about_use_card:hover::before { opacity: 1; }

.about_use_card:hover {
    border-color: var(--card-accent, rgba(232, 25, 44, 0.15));
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.15);
}

.about_use_icon {
    font-size: 24px;
    color: var(--card-accent, var(--accent-primary));
    margin-bottom: 12px;
    display: block;
    position: relative;
    z-index: 1;
}

.about_use_card h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}

.about_use_card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

/* Resgate note */
.about_resgate_note {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 16px;
    padding: 12px;
    background: var(--surface-elevated);
    border-radius: var(--radius);
    border: 1px solid var(--border-subtle);
}

/* Rules grid */
.about_rules {
    margin: 48px 0;
}

.about_rules h2 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.about_rules_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.about_rule_item {
    background: var(--surface-card);
    border: 1px solid var(--border-default);
    border-left: 2px solid var(--accent-primary);
    border-radius: var(--radius);
    padding: 16px 20px;
    transition: border-color 0.3s ease;
}

.about_rule_item:hover {
    border-color: rgba(232, 25, 44, 0.2);
    border-left-color: var(--accent-primary);
}

.about_rule_label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--accent-primary);
    letter-spacing: 0.04em;
    margin-bottom: 6px;
    display: block;
}

.about_rule_item p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.about_rule_item p b {
    color: var(--text-primary);
}

/* Saldo section */
.about_saldo {
    text-align: center;
    padding: 48px 40px;
    background: var(--surface-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius);
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}
.about_saldo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 100%, rgba(232,25,44,.04) 0%, transparent 70%);
    pointer-events: none;
}

.about_saldo_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-subtle);
    color: var(--accent-primary);
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
}

.about_saldo h2 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
    position: relative;
}

.about_saldo p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    position: relative;
}

.about_saldo_btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: #25D366;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius);
    text-decoration: none;
    transition: all .2s;
    position: relative;
}
.about_saldo_btn:hover {
    background: #1fb855;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37,211,102,.3);
}

/* About responsive */
@media (max-width: 52em) {
    .about_use_grid { grid-template-columns: repeat(2, 1fr); }
    .about_header h1 { font-size: 32px; }
    .about_hero_stats { gap: 20px; }
    .about_hero_stat_val { font-size: 22px; }
    .about_category_meta { display: none; }
}

@media (max-width: 32em) {
    .about_use_grid { grid-template-columns: 1fr; }
    .about_hero_stats { flex-direction: column; gap: 12px; }
    .about_hero_stat_divider { width: 40px; height: 1px; }
    .about_nav_inner { gap: 2px; }
    .about_nav_link { padding: 6px 12px; font-size: 12px; }
    .about_task_item { padding: 10px 8px; }
    .about_saldo { padding: 32px 20px; }

    .about_rules_grid {
        grid-template-columns: 1fr;
    }

    .about_header {
        padding: 48px 0 40px;
    }

    .about_header h1 {
        font-size: 28px;
    }
}

.post_page {
    max-width: 860px;
    margin: 0 auto;
}

.post_page_content h2 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 32px;
    margin-bottom: 8px;
}

.post_page_content h1 {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--text-primary);
    margin-top: 40px;
}

.post_page_content p {
    font-size: 14px;
    line-height: 1.7;
}

.ideia {
    background: var(--surface-elevated);
    border: 1px solid var(--border-default);
    border-left: 3px solid var(--accent-primary);
    padding: 16px 20px;
    border-radius: var(--radius);
    margin: 16px 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
    transition: border-left-color 0.3s ease, background 0.3s ease;
}

.ideia:hover {
    border-left-color: var(--accent-hover);
    background: rgba(232, 25, 44, 0.03);
}

/* ============================================
   TABLES
   ============================================ */
table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-interface);
    font-size: 13px;
    margin: 8px 0 16px;
}

table thead {
    border-bottom: 1px solid var(--border-default);
}

table thead th {
    padding: 10px 16px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    text-align: left;
}

table tbody tr {
    border-bottom: 1px solid var(--border-subtle);
    transition: background 0.2s ease, border-color 0.2s ease;
}

table tbody tr:hover {
    background: var(--surface-elevated);
    border-bottom-color: var(--border-default);
}

table tbody tr td {
    padding: 12px 16px;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
    vertical-align: top;
}

/* Reset inline styles from about.php */
table thead th,
table tbody tr td,
table tbody tr {
    font-size: inherit;
}

tr[style*="color: black"] {
    color: var(--text-primary) !important;
}

thead[style*="font-size"] {
    font-size: inherit !important;
}

thead[style*="font-size"] th {
    font-size: 12px !important;
}

@media (max-width: 640px) {
    table thead { display: none; }
    table tbody tr {
        display: block;
        margin-bottom: 12px;
        border: 1px solid var(--border-default);
        border-radius: var(--radius);
        padding: 8px 0;
    }
    table tbody tr td {
        display: block;
        padding: 8px 16px;
        text-align: left;
    }
    table tbody tr td::before {
        content: attr(data-title);
        display: block;
        font-weight: 600;
        font-size: 11px;
        letter-spacing: 0.04em;
        color: var(--text-muted);
        margin-bottom: 4px;
    }
}

/* ============================================
   AUTH PAGES (Login, Register, Forget, Reset)
   ============================================ */
.auth {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
}

.auth_content {
    width: 100%;
}

.auth_content a {
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 13px;
}

.auth_content a:hover {
    color: var(--accent-hover);
}

.auth_header {
    text-align: center;
    margin-bottom: 32px;
}

.auth_header h1 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.auth_header p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    max-width: 420px;
    margin: 0 auto;
}

.auth_form {
    width: 420px;
    max-width: 100%;
    margin: 0 auto;
    background: var(--surface-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius);
    padding: 32px;
}

.auth_form label {
    display: block;
    margin-top: 16px;
}

.auth_form label:first-of-type {
    margin-top: 0;
}

.auth_form label div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.auth_form label div span {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 400;
    color: var(--text-secondary);
}

.auth_form label div span a {
    font-size: 12px;
}

.auth_form label input {
    display: block;
    width: 100%;
    font-family: var(--font-interface);
    font-size: 14px;
    padding: 10px 14px;
    outline: none;
    background: var(--surface-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--radius);
    color: var(--text-primary);
    transition: border-color 0.25s ease, box-shadow 0.35s ease;
}

.auth_form label input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(232, 25, 44, 0.08);
}

.auth_form label input::placeholder {
    color: var(--text-muted);
}

.auth_form .check {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0 4px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.auth_form .check:hover {
    color: var(--text-primary);
}

.auth_form .check input {
    width: auto;
    accent-color: var(--accent-primary);
}

.auth_form_btn {
    display: block;
    width: 100%;
    border: none;
    padding: 12px;
    font-family: var(--font-interface);
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: var(--accent-primary);
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.25s ease, box-shadow 0.35s ease, transform 0.25s ease;
    margin-top: 20px;
}

.auth_form_btn:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 16px rgba(232, 25, 44, 0.2);
    transform: translateY(-1px);
}

/* Auth form label row (register) */
.auth_form_label {
    display: flex;
    gap: 16px;
}

.auth_form_label label {
    flex: 1;
}

.auth_form_label label:last-of-type {
    margin-left: 0;
}

/* ============================================
   MESSAGES (flash/ajax)
   ============================================ */
.message {
    display: block;
    margin-bottom: 16px;
    padding: 12px 16px;
    text-align: center;
    border-radius: var(--radius);
    border: 1px solid var(--border-default);
    font-weight: 500;
    font-size: 13px;
}

.message.success {
    color: var(--status-success);
    border-color: rgba(34, 197, 94, 0.2);
    background: rgba(34, 197, 94, 0.04);
}

.message.info {
    color: #60A5FA;
    border-color: rgba(96, 165, 250, 0.2);
    background: rgba(96, 165, 250, 0.04);
}

.message.warning {
    color: var(--status-warning);
    border-color: rgba(245, 158, 11, 0.2);
    background: rgba(245, 158, 11, 0.04);
}

.message.error {
    color: var(--status-error);
    border-color: rgba(239, 68, 68, 0.2);
    background: rgba(239, 68, 68, 0.04);
}

.ajax_response {
    margin-bottom: 16px;
}

/* ============================================
   FOOTER
   ============================================ */
.main_footer {
    background: var(--surface-card);
    border-top: 1px solid var(--border-default);
}

.main_footer .content {
    padding: 48px 0;
}

.main_footer_content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.main_footer_content article h2 {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-subtle);
}

.main_footer_content article p,
.main_footer_content article a {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 6px;
}

.main_footer_content article p b {
    color: var(--text-primary);
    font-weight: 600;
}

.main_footer_content article a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s, padding-left 0.25s ease;
}

.main_footer_content article a:hover {
    color: var(--text-primary);
    padding-left: 4px;
}

.main_footer_content article a::before {
    color: var(--accent-primary) !important;
    margin-right: 6px !important;
    transition: transform 0.2s ease !important;
}

.main_footer_content article a:hover::before {
    transform: scale(1.1) !important;
}

.main_footer_content .social a {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    transition: color 0.2s, transform 0.25s ease;
}

.main_footer_content .social a:hover {
    transform: translateX(3px);
}

/* ============================================
   ERROR PAGE (404, etc.)
   ============================================ */
.not_found {
    text-align: center;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.not_found .error {
    font-family: var(--font-display);
    font-size: 56px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.not_found_header {
    max-width: 480px;
    margin: 0 auto;
}

.not_found_header h1 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.not_found_header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.not_found .error {
    font-family: var(--font-mono);
}

.not_found_btn {
    display: inline-flex;
    align-items: center;
    margin-top: 24px;
    padding: 12px 28px;
    color: #fff;
    background: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    border-radius: var(--radius);
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.35s ease;
}

.not_found_btn:hover {
    background: var(--accent-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 25, 44, 0.2);
}

/* ============================================
   TERMS PAGE
   ============================================ */
.terms_page_header {
    text-align: center;
    padding: 48px 20px;
    background: var(--surface-card);
    border-bottom: 1px solid var(--border-default);
}

.terms_page_header h1 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 500;
    color: var(--text-primary);
}

.terms_page_header p {
    margin-top: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.terms_page_content {
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 0;
}

.terms_page_content p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.terms_page_content strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ============================================
   OPTIN PAGES
   ============================================ */
.optin_page_content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.optin_page_content img {
    width: 300px;
    max-width: 100%;
    border-radius: var(--radius);
}

.optin_page_content h1 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 500;
    color: var(--text-primary);
}

.optin_page_content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 12px 0;
}

.optin_page_btn {
    display: inline-flex;
    padding: 12px 28px;
    margin-top: 16px;
    color: #fff;
    background: var(--accent-primary);
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    border-radius: var(--radius);
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.35s ease;
}

.optin_page_btn:hover {
    background: var(--accent-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(232, 25, 44, 0.2);
}

/* ============================================
   EMPTY CONTENT
   ============================================ */
.empty_content {
    max-width: 480px;
    text-align: center;
    margin: 0 auto;
}

.empty_content_cover {
    width: 280px;
    max-width: 100%;
    opacity: 0.6;
}

.empty_content_title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 500;
    color: var(--text-primary);
}

.empty_content_desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 8px 0 32px;
}

.empty_content_btn {
    display: inline-flex;
    padding: 12px 28px;
    color: #fff;
    background: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    border-radius: var(--radius);
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.35s ease;
}

.empty_content_btn:hover {
    background: var(--accent-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(232, 25, 44, 0.2);
}

/* ============================================
   AUTOFILL FIX
   ============================================ */
input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px var(--surface-elevated) inset !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    caret-color: var(--text-primary);
}

/* ============================================
   ANIMATIONS — KEYFRAMES
   ============================================ */

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

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

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

@keyframes blurIn {
    from { opacity: 0; filter: blur(4px); }
    to   { opacity: 1; filter: blur(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(16px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ============================================
   SCROLL REVEAL SYSTEM (.reveal)
   Elements start invisible, animate when .is-visible is added by JS
   ============================================ */

body.js-ready .reveal {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, filter 0.6s ease-out;
}

body.js-ready .reveal.reveal-up {
    transform: translateY(24px);
}

body.js-ready .reveal.reveal-left {
    transform: translateX(-24px);
}

body.js-ready .reveal.reveal-right {
    transform: translateX(24px);
}

body.js-ready .reveal.reveal-scale {
    transform: scale(0.95);
}

body.js-ready .reveal.reveal-blur {
    filter: blur(4px);
}

body.js-ready .reveal.is-visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
    filter: blur(0);
}

/* After reveal animation, restore component transitions for hover etc. */
body.js-ready .reveal.is-visible.revealed {
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.4s ease, color 0.2s ease;
}

/* Stagger delays for children */
.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: 0.5s; }

/* ============================================
   HEADER ANIMATION
   ============================================ */
.main_header {
    animation: slideDown 0.4s ease-out both;
}

/* ============================================
   HERO ANIMATIONS (overrides already in main styles)
   ============================================ */

.home_featured_header > p:nth-child(2) {
    animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.home_featured_header > p:nth-child(3) {
    animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.home_featured_header > p:nth-child(4) {
    animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.home_featured_header .features {
    animation: blurIn 0.8s ease-out 0.3s both;
}

.home_featured_btn {
    animation: fadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

/* ============================================
   AUTH PAGE ANIMATIONS
   ============================================ */
.auth_header {
    animation: fadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth_form {
    animation: scaleIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

/* ============================================
   ERROR PAGE ANIMATION
   ============================================ */
.not_found .error {
    animation: fadeIn 0.5s ease-out both;
}

.not_found_header h1 {
    animation: fadeUp 0.5s ease-out 0.1s both;
}

.not_found_header p {
    animation: fadeUp 0.5s ease-out 0.15s both;
}

.not_found_btn {
    animation: fadeUp 0.5s ease-out 0.2s both;
}

/* ============================================
   TERMS PAGE ANIMATION
   ============================================ */
.terms_page_header h1 {
    animation: fadeUp 0.5s ease-out both;
}

.terms_page_header p {
    animation: fadeUp 0.5s ease-out 0.08s both;
}

/* ============================================
   MESSAGES ANIMATION
   ============================================ */
.message {
    animation: scaleIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ============================================
   BUTTON PRESS EFFECT (global)
   ============================================ */
.home_featured_btn:active,
.auth_form_btn:active,
.not_found_btn:active,
.optin_page_btn:active,
.empty_content_btn:active {
    transform: scale(0.97) !important;
    transition-duration: 0.05s;
}

/* ============================================
   THEME TOGGLE BUTTON
   ============================================ */
.theme_toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--border-default);
    border-radius: var(--radius);
    background: var(--surface-elevated);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    flex-shrink: 0;
    font-size: 14px;
    line-height: 1;
    color: var(--text-secondary);
    padding: 0;
    margin-left: 8px;
}

.theme_toggle:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Sun/moon icon via pseudo */
.theme_toggle::before {
    content: "☀";
}

[data-theme="dark"] .theme_toggle::before {
    content: "☾";
}

/* ============================================
   LIGHT MODE
   ============================================ */
[data-theme="light"] {
    --surface-page: #F4F4F6;
    --surface-card: #FFFFFF;
    --surface-elevated: #FAFAFA;

    --text-primary: #0C0C0E;
    --text-secondary: #6B6B72;
    --text-muted: #B0B0B8;

    --accent-primary: #E8192C;
    --accent-hover: #C8101E;
    --accent-subtle: rgba(232, 25, 44, 0.06);

    --border-default: rgba(0, 0, 0, 0.08);
    --border-subtle: rgba(0, 0, 0, 0.04);
}

/* Scanline invisible in light */
[data-theme="light"] body::before {
    display: none;
}

/* Header bg */
[data-theme="light"] .main_header {
    background: rgba(244, 244, 246, 0.92);
}

/* Cards get subtle shadow in light */
[data-theme="light"] .home_features_content article,
[data-theme="light"] .auth_form,
[data-theme="light"] .about_use_card,
[data-theme="light"] .about_rule_item,
[data-theme="light"] .about_saldo {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .home_features_content article:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* Buttons: keep white text on accent */
[data-theme="light"] .home_featured_btn,
[data-theme="light"] .auth_form_btn,
[data-theme="light"] .not_found_btn,
[data-theme="light"] .optin_page_btn,
[data-theme="light"] .empty_content_btn,
[data-theme="light"] .main_header_nav_links .login {
    color: #fff;
}

[data-theme="light"] .main_header_nav_links .login:hover {
    color: #fff;
}

/* Mobile overlay lighter */
[data-theme="light"] .mobile_overlay {
    background: rgba(0, 0, 0, 0.2);
}

/* Ajax loader */
[data-theme="light"] .ajax_load {
    background: rgba(244, 244, 246, 0.85);
}

/* Selection */
[data-theme="light"] ::selection {
    color: #fff;
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    body.js-ready .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 62em) {
    .main_header_logo {
        font-size: 14px;
    }

    .main_header_nav_mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        font-size: 16px;
        cursor: pointer;
        color: var(--text-secondary);
        background: var(--surface-elevated);
        border: 1px solid var(--border-default);
        border-radius: var(--radius);
        transition: color 0.2s, border-color 0.2s;
    }

    .main_header_nav_mobile:hover {
        color: var(--text-primary);
        border-color: var(--accent-primary);
    }

    .main_header_nav_mobile_close {
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding: 16px;
        color: var(--text-muted);
        font-size: 18px;
    }

    .main_header_nav_mobile_close:hover {
        color: var(--accent-primary);
    }

    .main_header_nav_links {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        z-index: var(--z-menu);
        right: 0;
        top: 0;
        background: var(--surface-card);
        border-left: 1px solid var(--border-default);
        width: 280px;
        height: 100%;
        max-width: 80%;
        padding: 0 16px 16px;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }

    .main_header_nav_links.is-open {
        transform: translateX(0);
    }

    .main_header_nav_links .link,
    .main_header_nav_links .login {
        display: block;
        padding: 12px 14px;
        color: var(--text-secondary);
        background: none;
        border: none;
        font-size: 13px;
        border-radius: var(--radius);
        margin-top: 2px;
    }

    .main_header_nav_links .link:hover {
        background: var(--surface-elevated);
        color: var(--text-primary);
    }

    .main_header_nav_links .login {
        background: var(--accent-primary);
        color: #fff;
        margin-top: 12px;
        text-align: center;
    }

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

@media (max-width: 52em) {
    .home_featured_header h1 {
        font-size: 36px;
    }

    .home_features_content {
        grid-template-columns: 1fr;
    }

    .home_hero_orb { display: none; }

    .auth_form {
        padding: 24px;
    }
}

@media (max-width: 32em) {
    .home_featured_header h1 { font-size: 28px; }
    .home_featured_content { padding: 56px 0 40px; }
    .home_hero_actions { flex-direction: column; gap: 12px; }
    .home_cta_card { padding: 36px 20px; }

    .home_featured_content {
        padding: 48px 0 40px;
    }

    .main_footer_content {
        grid-template-columns: 1fr;
    }

    .auth_form_label {
        flex-direction: column;
        gap: 0;
    }

    .content {
        padding: 48px 0;
    }
}
