/* ============================================================
   AETHERFALL - Modern MMORPG Template
   Dark theme, glassmorphism, professional gaming aesthetic
   ============================================================ */

/* ── CSS Variables ── */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: rgba(18, 18, 26, 0.85);
    --bg-card-hover: rgba(25, 25, 40, 0.95);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-glass-hover: rgba(255, 255, 255, 0.06);
    --bg-input: rgba(255, 255, 255, 0.05);
    --bg-input-focus: rgba(255, 255, 255, 0.08);
    
    --border-color: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.1);
    --border-accent: rgba(139, 92, 246, 0.3);
    
    --text-primary: #e8e6f0;
    --text-secondary: #9896a8;
    --text-muted: #5c5a6e;
    --text-link: #a78bfa;
    --text-link-hover: #c4b5fd;
    
    --accent-primary: #8b5cf6;
    --accent-secondary: #6d28d9;
    --accent-glow: rgba(139, 92, 246, 0.15);
    --accent-gradient: linear-gradient(135deg, #8b5cf6, #6366f1);
    
    --success: #34d399;
    --success-bg: rgba(52, 211, 153, 0.1);
    --danger: #f87171;
    --danger-bg: rgba(248, 113, 113, 0.1);
    --warning: #fbbf24;
    --warning-bg: rgba(251, 191, 36, 0.1);
    --info: #60a5fa;
    --info-bg: rgba(96, 165, 250, 0.1);
    
    --online-color: #34d399;
    --offline-color: #f87171;
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(139, 92, 246, 0.1);
    
    --transition: 0.2s ease;
    --transition-slow: 0.4s ease;
    
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    
    --container-width: 1200px;
    --sidebar-width: 280px;
    --header-height: 72px;
}

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

html {
    font-size: 15px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animated background grid */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(ellipse 800px 600px at 20% 10%, rgba(139, 92, 246, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 600px 400px at 80% 80%, rgba(99, 102, 241, 0.04) 0%, transparent 60%),
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 60px 60px, 60px 60px;
    pointer-events: none;
    z-index: 0;
}

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

a:hover {
    color: var(--text-link-hover);
}

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

hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 1.5rem 0;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

h1 { font-size: 2rem; letter-spacing: -0.02em; }
h2 { font-size: 1.5rem; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }

p { margin-bottom: 0.8rem; }
b, strong { font-weight: 600; color: var(--text-primary); }

/* ── Layout ── */
.af-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Header / Navigation ── */
.af-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid var(--border-color);
    height: var(--header-height);
}

.af-header-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.af-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
}

.af-logo-icon {
    width: 36px;
    height: 36px;
    background: var(--accent-gradient);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    box-shadow: var(--shadow-glow);
}

.af-logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.af-logo-text span {
    color: var(--accent-primary);
}

/* Main Nav */
.af-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
    justify-content: center;
}

.af-nav-item {
    position: relative;
    padding: 0.5rem 1rem;
    font-size: 0.87rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    cursor: pointer;
    white-space: nowrap;
}

.af-nav-item:hover,
.af-nav-item.active {
    color: var(--text-primary);
    background: var(--bg-glass-hover);
}

.af-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background: var(--accent-primary);
    border-radius: 2px;
}

/* Dropdown */
.af-nav-dropdown {
    position: relative;
}

.af-nav-dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    z-index: 200;
}

/* Invisible hover bridge so mouse can travel from nav item to dropdown */
.af-nav-dropdown-content::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.af-nav-dropdown:hover .af-nav-dropdown-content {
    display: block;
    animation: fadeInDown 0.15s ease;
}

.af-nav-dropdown-content a {
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.af-nav-dropdown-content a:hover {
    color: var(--text-primary);
    background: var(--bg-glass-hover);
}

/* Header Actions */
.af-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Server Status Badge */
.af-status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.af-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.af-status-dot.online {
    background: var(--online-color);
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.5);
    animation: pulse 2s infinite;
}

.af-status-dot.offline {
    background: var(--offline-color);
    box-shadow: 0 0 8px rgba(248, 113, 113, 0.5);
}

/* ── Buttons ── */
.af-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 1.15rem;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: var(--font-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-glass);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.af-btn:hover {
    border-color: var(--border-light);
    color: var(--text-primary);
    background: var(--bg-glass-hover);
}

.af-btn-primary {
    background: var(--accent-gradient);
    border-color: transparent;
    color: white;
    box-shadow: var(--shadow-glow);
}

.af-btn-primary:hover {
    filter: brightness(1.1);
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.2);
    color: white;
}

.af-btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
}

.af-btn-lg {
    padding: 0.65rem 1.5rem;
    font-size: 0.95rem;
}

/* ── Main Content Area ── */
.af-main {
    flex: 1;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
}

.af-content-grid {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: 1.5rem;
    align-items: start;
}

.af-content-main {
    min-width: 0;
}

.af-content-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* ── Cards ── */
.af-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}

.af-card:hover {
    border-color: var(--border-light);
}

.af-card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.af-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.af-card-title .icon {
    font-size: 1rem;
    opacity: 0.7;
}

.af-card-body {
    padding: 1.25rem;
}

.af-card-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ── Buy Points Showcase ── */
.af-store-showcase {
    margin-bottom: 1.5rem;
}

.af-store-showcase-header {
    margin-bottom: 1.25rem;
}

.af-store-showcase-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: #f8d27a;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
}

.af-store-showcase-title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.45rem;
}

.af-store-showcase-subtitle {
    max-width: 720px;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.af-store-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.af-store-pack {
    --pack-accent: #d8a144;
    --pack-glow: rgba(216, 161, 68, 0.2);
    --pack-border: rgba(216, 161, 68, 0.34);
    position: relative;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--pack-border);
    background:
        radial-gradient(circle at 50% 22%, var(--pack-glow), transparent 36%),
        linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0) 18%),
        linear-gradient(180deg, rgba(12, 10, 18, 0.95), rgba(17, 12, 8, 0.98));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
    isolation: isolate;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.af-store-pack:hover {
    transform: translateY(-5px);
    border-color: var(--pack-accent);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(255,255,255,0.05);
}

.af-store-pack-frame {
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    pointer-events: none;
}

.af-store-pack::before,
.af-store-pack::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.af-store-pack::before {
    background:
        radial-gradient(circle at 0 0, var(--pack-accent) 0, transparent 18%),
        radial-gradient(circle at 100% 0, var(--pack-accent) 0, transparent 18%),
        radial-gradient(circle at 0 100%, var(--pack-accent) 0, transparent 18%),
        radial-gradient(circle at 100% 100%, var(--pack-accent) 0, transparent 18%);
    opacity: 0.16;
}

.af-store-pack::after {
    background: linear-gradient(135deg, rgba(255,255,255,0.14), transparent 26%, transparent 74%, rgba(255,255,255,0.08));
    mix-blend-mode: screen;
    opacity: 0.6;
}

.af-store-pack-topline,
.af-store-pack-art,
.af-store-pack-stats,
.af-store-pack-price,
.af-store-pack-cta {
    position: relative;
    z-index: 1;
}

.af-store-pack-topline {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: #f7efe0;
}

.af-store-pack-art {
    min-height: 118px;
    display: grid;
    place-items: center;
    margin: 0.6rem 0 0.4rem;
}

.af-store-pack-art span {
    font-size: 4rem;
    line-height: 1;
    color: var(--pack-accent);
    text-shadow: 0 0 18px var(--pack-glow), 0 0 34px rgba(0,0,0,0.45);
}

.af-store-pack-stats {
    margin-top: auto;
}

.af-store-pack-coins {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff5dd;
}

.af-store-pack-coins span {
    font-size: 0.94rem;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--pack-accent);
}

.af-store-pack-bonus {
    margin-top: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--pack-accent);
}

.af-store-pack-price {
    margin-top: 1rem;
    padding: 0.8rem 0.9rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.12);
    background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
    font-size: 1.7rem;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    color: #1b1408;
    text-shadow: none;
}

.af-store-pack-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 0.8rem;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: 0.01em;
}

.af-store-pack-cta:hover {
    color: white;
    background: rgba(255,255,255,0.09);
}

.af-store-showcase-note {
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.025);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.af-store-pack-gold {
    --pack-accent: #f2be5c;
    --pack-glow: rgba(242, 190, 92, 0.22);
    --pack-border: rgba(242, 190, 92, 0.34);
}

.af-store-pack-gold .af-store-pack-price {
    background: linear-gradient(180deg, #f5d48a, #c98b2c);
}

.af-store-pack-platinum {
    --pack-accent: #d58cff;
    --pack-glow: rgba(213, 140, 255, 0.2);
    --pack-border: rgba(213, 140, 255, 0.32);
}

.af-store-pack-platinum .af-store-pack-price {
    background: linear-gradient(180deg, #ecc2ff, #9651d9);
}

.af-store-pack-crystal {
    --pack-accent: #8ad7ff;
    --pack-glow: rgba(138, 215, 255, 0.22);
    --pack-border: rgba(138, 215, 255, 0.3);
}

.af-store-pack-crystal .af-store-pack-price {
    background: linear-gradient(180deg, #d6f4ff, #53a6d4);
}

.af-store-pack-ruby {
    --pack-accent: #ff6c5f;
    --pack-glow: rgba(255, 108, 95, 0.22);
    --pack-border: rgba(255, 108, 95, 0.32);
}

.af-store-pack-ruby .af-store-pack-price {
    background: linear-gradient(180deg, #ffb0a8, #cd3c2a);
}

.af-store-pack-emerald {
    --pack-accent: #9fe36d;
    --pack-glow: rgba(159, 227, 109, 0.22);
    --pack-border: rgba(159, 227, 109, 0.3);
}

.af-store-pack-emerald .af-store-pack-price {
    background: linear-gradient(180deg, #d3f5a9, #689829);
}

.af-store-pack-obsidian {
    --pack-accent: #ff9a4d;
    --pack-glow: rgba(255, 154, 77, 0.18);
    --pack-border: rgba(255, 154, 77, 0.28);
}

.af-store-pack-obsidian .af-store-pack-price {
    background: linear-gradient(180deg, #ffd1ae, #9e5c22);
}

/* ── Breadcrumb ── */
.af-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.af-breadcrumb a {
    color: var(--text-secondary);
}

.af-breadcrumb a:hover {
    color: var(--text-link);
}

.af-breadcrumb .separator {
    opacity: 0.4;
}

/* ── News / Posts ── */
.af-news-item {
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s ease;
    position: relative;
}

.af-news-item:hover {
    background: rgba(139, 92, 246, 0.03);
}

.af-news-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.5rem;
    bottom: 1.5rem;
    width: 3px;
    background: var(--accent-primary);
    border-radius: 0 2px 2px 0;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.af-news-item:hover::before {
    opacity: 1;
}

.af-news-item:last-child {
    border-bottom: none;
}

.af-news-header {
    margin-bottom: 1rem;
}

.af-news-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

.af-news-date {
    color: var(--text-muted);
}

.af-news-author {
    color: var(--text-secondary);
}

.af-news-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.af-news-body {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.75;
}

.af-news-body p {
    margin-bottom: 0.75rem;
}

.af-news-body p:last-child {
    margin-bottom: 0;
}

.af-news-body ul,
.af-news-body ol {
    margin: 0.5rem 0 0.75rem 1.25rem;
    padding: 0;
}

.af-news-body li {
    margin-bottom: 0.35rem;
    padding-left: 0.25rem;
}

.af-news-body li strong {
    color: var(--accent-light);
}

.af-news-body a {
    color: var(--text-link);
    text-decoration: underline;
    text-decoration-color: rgba(167, 139, 250, 0.3);
    text-underline-offset: 2px;
}

.af-news-body a:hover {
    text-decoration-color: var(--text-link);
}

.af-news-footer {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    text-align: right;
}

.af-news-comments-link {
    font-size: 0.82rem;
    color: var(--text-link);
    transition: color 0.2s;
}

.af-news-comments-link:hover {
    color: var(--accent-light);
}

/* ── Tables ── */
table.af-table {
    width: 100%;
    border-collapse: collapse;
}

table.af-table th {
    padding: 0.6rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.01);
}

table.af-table td {
    padding: 0.65rem 0.85rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

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

table.af-table tr:hover td {
    background: var(--bg-glass);
}

table.af-table .rank-col {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.82rem;
    width: 40px;
}

table.af-table .name-col a {
    font-weight: 500;
    color: var(--text-primary);
}

table.af-table .level-col {
    font-weight: 600;
    color: var(--accent-primary);
}

/* ── Forms ── */
.af-form-group {
    margin-bottom: 1rem;
}

.af-form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.af-form-input,
.af-input,
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 0.6rem 0.85rem;
    font-size: 0.9rem;
    font-family: var(--font-main);
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    transition: all var(--transition);
    outline: none;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    background: var(--bg-input-focus);
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

input[type="submit"],
input[type="button"],
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 1.15rem;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: var(--font-main);
    background: var(--accent-gradient);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    cursor: pointer;
    transition: all var(--transition);
}

input[type="submit"]:hover,
input[type="button"]:hover,
button:hover {
    filter: brightness(1.15);
    box-shadow: var(--shadow-glow);
}

input[type="checkbox"],
input[type="radio"] {
    width: auto;
    accent-color: var(--accent-primary);
}

/* ── Legacy table support (MyAAC system pages) ── */
.TableContainer,
.Table1 {
    width: 100% !important;
    border-collapse: collapse;
}

.CaptionContainer,
.CaptionInnerContainer {
    display: block;
    padding: 0;
}

.CaptionInnerContainer .Text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 0.75rem 0;
}

.CaptionEdgeLeftTop,
.CaptionEdgeRightTop,
.CaptionEdgeLeftBottom,
.CaptionEdgeRightBottom,
.CaptionBorderTop,
.CaptionBorderBottom,
.CaptionVerticalLeft,
.CaptionVerticalRight {
    display: none !important;
}

.InnerTableContainer {
    padding: 0;
}

.InnerTableContainer table {
    width: 100%;
}

.InnerTableContainer td {
    padding: 0.5rem 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border: none;
}

.LabelV {
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    padding-right: 1rem !important;
}

.FormFieldError {
    color: var(--danger);
    font-size: 0.82rem;
}

/* Legacy row bg colors → transparent */
tr[bgcolor] {
    background: transparent !important;
}

tr[bgcolor]:hover {
    background: var(--bg-glass) !important;
}

td[bgcolor] {
    background: transparent !important;
}

.white, .white b {
    color: var(--text-primary) !important;
}

span.red, .red {
    color: var(--danger) !important;
}

span.green, .green {
    color: var(--success) !important;
}

/* ── Sidebar Widgets ── */
.af-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.af-widget-header {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.af-widget-body {
    padding: 1rem;
}

.af-widget-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.45rem 0;
}

.af-widget-item + .af-widget-item {
    border-top: 1px solid var(--border-color);
    padding-top: 0.45rem;
}

.af-widget-rank {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.af-widget-rank.gold { color: #fbbf24; }
.af-widget-rank.silver { color: #94a3b8; }
.af-widget-rank.bronze { color: #d97706; }

.af-widget-name {
    flex: 1;
    min-width: 0;
}

.af-widget-name a {
    font-size: 0.87rem;
    font-weight: 500;
    color: var(--text-primary);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.af-widget-name small {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.af-widget-value {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-primary);
    flex-shrink: 0;
}

/* Server Info Widget */
.af-server-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.af-server-stat {
    text-align: center;
    padding: 0.65rem;
    background: var(--bg-glass);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.af-server-stat-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.af-server-stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 0.15rem;
}

/* ── Language Selector ── */
.af-lang-selector {
    position: relative;
}

.af-lang-btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.35rem 0.6rem;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.af-lang-btn:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
}

.af-lang-code {
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.03em;
}

.af-lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 160px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.4rem;
    z-index: 1000;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.af-lang-selector.open .af-lang-dropdown {
    display: block;
    animation: fadeSlideDown 0.15s ease;
}

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

.af-lang-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.65rem;
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.15s ease;
}

.af-lang-option:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
}

.af-lang-option.active {
    background: var(--accent-glow);
    color: var(--accent-light);
    font-weight: 500;
}

.af-lang-flag {
    font-size: 1.1rem;
    line-height: 1;
}

/* ── Quick Links ── */
.af-quick-link {
    display: block;
    padding: 0.45rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.2s;
    text-decoration: none;
}

.af-quick-link:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
    padding-left: 1rem;
}

/* ── Footer ── */
.af-footer {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-top: auto;
}

.af-footer a {
    color: var(--text-secondary);
}

.af-footer a:hover {
    color: var(--text-link);
}

/* ── Hero Section (Homepage) ── */
/* (rules moved to EPIC HERO section at end of file) */

/* Stats bar below hero */
.af-stats-bar {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1rem 2rem;
    background: var(--bg-glass);
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.af-stats-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.af-stats-item strong {
    color: var(--text-primary);
}

/* ── Ticker ── */
.af-ticker {
    background: var(--info-bg);
    border: 1px solid rgba(96, 165, 250, 0.15);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
    color: var(--info);
}

.af-ticker b { color: var(--info); }

/* ── Player Online Badge ── */
.player-online {
    color: var(--online-color);
    font-weight: 600;
}

.player-offline {
    color: var(--offline-color);
}

/* ── Pagination ── */
.af-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin-top: 1.5rem;
}

.af-pagination a,
.af-pagination span {
    padding: 0.35rem 0.65rem;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    transition: all var(--transition);
}

.af-pagination a:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-light);
    color: var(--text-primary);
}

.af-pagination .current {
    background: var(--accent-gradient);
    border-color: transparent;
    color: white;
}

/* ── Character Info ── */
.af-char-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
}

.af-char-outfit {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid var(--border-light);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-glass);
    display: flex;
    align-items: center;
    justify-content: center;
}

.af-char-details h2 {
    margin-bottom: 0.25rem;
}

.af-char-details .vocation {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ── Alerts / Messages ── */
.af-alert {
    padding: 0.85rem 1.15rem;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    margin-bottom: 1rem;
    border: 1px solid;
}

.af-alert-success {
    background: var(--success-bg);
    border-color: rgba(52, 211, 153, 0.2);
    color: var(--success);
}

.af-alert-danger {
    background: var(--danger-bg);
    border-color: rgba(248, 113, 113, 0.2);
    color: var(--danger);
}

.af-alert-warning {
    background: var(--warning-bg);
    border-color: rgba(251, 191, 36, 0.2);
    color: var(--warning);
}

.af-alert-info {
    background: var(--info-bg);
    border-color: rgba(96, 165, 250, 0.15);
    color: var(--info);
}

/* ── Mobile Toggle ── */
.af-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.3rem;
}

/* ── Animations ── */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

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

.af-fade-in {
    animation: fadeIn 0.3s ease;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .af-content-grid {
        grid-template-columns: 1fr;
    }
    
    .af-content-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }
    
    .af-nav {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 1rem;
        z-index: 99;
        overflow-y: auto;
        justify-content: flex-start;
        gap: 0.15rem;
    }
    
    .af-nav.open {
        display: flex;
    }
    
    .af-nav-item {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
    
    .af-nav-dropdown-content {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--bg-glass);
        display: block;
        margin-left: 1rem;
    }
    
    .af-mobile-toggle {
        display: block;
    }
    
    .af-header-actions .af-status-badge {
        display: none;
    }
    
    .af-main {
        padding: 1rem;
    }
    
    .af-hero {
        padding: 2rem 1rem;
    }
    
    .af-hero-title {
        font-size: 1.8rem;
    }
    
    .af-content-sidebar {
        grid-template-columns: 1fr;
    }
    
    .af-stats-bar {
        gap: 1rem;
        padding: 0.75rem 1rem;
    }
}

/* ── Print ── */
@media print {
    .af-header, .af-footer, .af-content-sidebar { display: none; }
    .af-content-grid { grid-template-columns: 1fr; }
    body { background: white; color: black; }
}

/* ═══════════════════════════════════════════════
   HOMEPAGE — EPIC HERO & CLASSES
   ═══════════════════════════════════════════════ */

.af-hero {
    position: relative;
    overflow: hidden;
    padding: 5rem 2rem 3rem;
    text-align: center;
    background: linear-gradient(180deg,
        rgba(139, 92, 246, 0.1) 0%,
        rgba(99, 102, 241, 0.05) 40%,
        transparent 100%);
    border-bottom: 1px solid var(--border-color);
}

/* Ambient orbs */
.af-hero-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
    opacity: 0.45;
    animation: heroOrbFloat 8s ease-in-out infinite;
}
.af-hero-orb-1 {
    width: 500px; height: 500px;
    top: -200px; left: -100px;
    background: radial-gradient(circle, rgba(139,92,246,0.25) 0%, transparent 70%);
    animation-delay: 0s;
}
.af-hero-orb-2 {
    width: 400px; height: 400px;
    top: -150px; right: -80px;
    background: radial-gradient(circle, rgba(99,102,241,0.2) 0%, transparent 70%);
    animation-delay: 3s;
}
.af-hero-orb-3 {
    width: 300px; height: 300px;
    bottom: 0; left: 40%;
    background: radial-gradient(circle, rgba(167,139,250,0.15) 0%, transparent 70%);
    animation-delay: 5s;
}
@keyframes heroOrbFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

.af-hero-inner {
    position: relative;
    z-index: 2;
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.75fr);
    gap: 1.5rem;
    align-items: stretch;
}

.af-hero-copy {
    text-align: left;
}

.af-hero-badge {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-primary);
    margin-bottom: 1.25rem;
}

.af-hero-title {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-primary) 60%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    line-height: 1.1;
}

.af-hero-kicker {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #f6ecff;
    max-width: 740px;
    margin: 0 0 0.9rem;
    line-height: 1.15;
}

.af-hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 670px;
    margin: 0 0 2rem;
    line-height: 1.7;
}

.af-hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0;
    justify-content: flex-start;
}

.af-hero-panel {
    position: relative;
    z-index: 2;
    align-self: center;
    padding: 1.35rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at top right, rgba(167, 139, 250, 0.18), transparent 35%),
        linear-gradient(180deg, rgba(10, 10, 15, 0.88), rgba(18, 18, 26, 0.92));
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
    text-align: left;
}

.af-hero-panel-label {
    display: inline-block;
    margin-bottom: 0.85rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #f5c86d;
}

.af-hero-panel-text {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.75;
    margin-bottom: 1rem;
}

.af-hero-panel-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.af-hero-panel-list li {
    position: relative;
    padding-left: 1rem;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.af-hero-panel-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.58rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-primary);
    box-shadow: 0 0 14px rgba(139, 92, 246, 0.6);
}

.af-landing-statbar {
    position: relative;
    z-index: 2;
    max-width: var(--container-width);
    margin: 2.2rem auto 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
}

.af-landing-stat {
    padding: 1rem 1.1rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(10px);
    text-align: left;
}

.af-landing-stat strong {
    display: block;
    font-size: 1.8rem;
    line-height: 1;
    color: white;
    margin-bottom: 0.35rem;
}

.af-landing-stat span {
    color: var(--text-secondary);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.af-landing-section-shell {
    margin-top: 2.8rem;
}

.af-section-heading {
    max-width: 760px;
    margin-bottom: 1.35rem;
}

.af-section-heading-centered {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.af-section-eyebrow {
    display: inline-block;
    margin-bottom: 0.7rem;
    color: #f5c86d;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.af-section-heading h2 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 0.55rem;
}

.af-section-heading p {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.75;
}

.af-landing-section {
    margin-bottom: 2rem;
}

.af-landing-pillars,
.af-system-grid,
.af-world-grid,
.af-boss-grid,
.af-roadmap-grid {
    display: grid;
    gap: 1rem;
}

.af-landing-pillars {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.af-system-grid,
.af-world-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.af-roadmap-grid,
.af-boss-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.af-landing-pillar,
.af-system-card,
.af-world-card,
.af-boss-card,
.af-roadmap-card,
.af-event-panel,
.af-landing-cta {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
        rgba(18, 18, 26, 0.82);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

.af-landing-pillar,
.af-system-card,
.af-world-card,
.af-boss-card,
.af-roadmap-card {
    padding: 1.15rem 1.2rem;
}

.af-landing-pillar h3,
.af-system-card h3,
.af-world-card h3,
.af-boss-card h3,
.af-roadmap-card h3,
.af-landing-cta h2 {
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.45rem;
}

.af-landing-pillar p,
.af-system-card p,
.af-world-card p,
.af-boss-card p,
.af-roadmap-card p,
.af-landing-cta p,
.af-home-news-intro {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.75;
}

.af-system-kicker,
.af-world-range,
.af-boss-tag,
.af-roadmap-phase {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.af-system-kicker {
    background: rgba(96, 165, 250, 0.12);
    border: 1px solid rgba(96, 165, 250, 0.22);
    color: #93c5fd;
}

.af-world-range {
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.22);
    color: #fcd34d;
}

.af-boss-tag {
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.22);
    color: #fca5a5;
}

.af-roadmap-phase {
    background: rgba(167, 139, 250, 0.12);
    border: 1px solid rgba(167, 139, 250, 0.25);
    color: #d8b4fe;
}

.af-roadmap-card {
    background:
        radial-gradient(circle at top right, rgba(167, 139, 250, 0.14), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
        rgba(18, 18, 26, 0.82);
}

.af-encounters-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.7fr);
    gap: 1rem;
    align-items: start;
}

.af-event-panel {
    padding: 1.25rem;
}

.af-event-list {
    list-style: none;
    margin: 0.8rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.af-event-list li {
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    font-weight: 600;
}

.af-landing-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    background:
        radial-gradient(circle at top right, rgba(139, 92, 246, 0.22), transparent 36%),
        linear-gradient(135deg, rgba(18, 18, 26, 0.96), rgba(27, 20, 48, 0.95));
}

.af-landing-cta-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.af-home-news-intro {
    margin-bottom: 1rem;
}

.af-landing-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top, rgba(139, 92, 246, 0.12), transparent 28%),
        linear-gradient(180deg, #09090f 0%, #0f1017 45%, #11131d 100%);
}

.af-landing-topbar-shell {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(16px);
    background: rgba(9, 10, 15, 0.62);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.af-landing-topbar,
.af-landing-main {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
}

.af-landing-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 0;
}

.af-landing-topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.af-landing-topbar .af-logo {
    min-height: 44px;
}

.af-landing-logo-image {
    display: block;
    width: auto;
    height: 48px;
    object-fit: contain;
}

.af-lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.32rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.af-lang-button {
    border: 0;
    min-height: 36px;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.af-lang-button:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.af-lang-button.is-active {
    background: linear-gradient(135deg, rgba(245, 200, 109, 0.2), rgba(192, 132, 252, 0.22));
    color: #fff3d2;
    box-shadow: inset 0 0 0 1px rgba(245, 200, 109, 0.2);
}

.af-hero-standalone {
    padding-top: 2.6rem;
    padding-bottom: 1.6rem;
}

.af-hero-standalone .af-hero-inner {
    grid-template-columns: 1fr;
    max-width: 820px;
    margin: 0 auto;
}

.af-hero-standalone .af-hero-copy {
    text-align: center;
}

.af-hero-standalone .af-hero-badge,
.af-hero-standalone .af-section-eyebrow {
    margin-left: auto;
    margin-right: auto;
}

.af-hero-standalone .af-hero-kicker,
.af-hero-standalone .af-hero-subtitle {
    margin-left: auto;
    margin-right: auto;
}

.af-hero-standalone .af-hero-actions {
    justify-content: center;
}

.af-landing-main {
    padding-bottom: 4rem;
}

.af-landing-content-block {
    margin-top: 1rem;
}

.af-landing-content-card {
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
        rgba(15, 17, 25, 0.9);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
    padding: 1.5rem;
}

.af-waitlist-card {
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    border-radius: 22px;
    border: 1px solid rgba(245, 200, 109, 0.16);
    background:
        radial-gradient(circle at top right, rgba(245, 200, 109, 0.12), transparent 36%),
        linear-gradient(135deg, rgba(18, 18, 26, 0.96), rgba(30, 21, 43, 0.94));
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.3);
    padding: 1.4rem;
}

.af-waitlist-form {
    display: grid;
    gap: 0.75rem;
}

.af-waitlist-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #f8ddb0;
}

.af-waitlist-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
}

.af-waitlist-input {
    width: 100%;
    min-height: 52px;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(8, 10, 16, 0.72);
    color: var(--text-primary);
    font-size: 0.96rem;
    outline: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.af-waitlist-input:focus {
    border-color: rgba(245, 200, 109, 0.4);
    box-shadow: 0 0 0 4px rgba(245, 200, 109, 0.08);
    background: rgba(10, 12, 18, 0.9);
}

.af-waitlist-submit {
    min-width: 220px;
}

.af-waitlist-submit:disabled {
    opacity: 0.7;
    cursor: wait;
}

.af-waitlist-note,
.af-waitlist-status {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.65;
}

.af-waitlist-note {
    color: var(--text-secondary);
}

.af-waitlist-status {
    min-height: 1.5em;
    color: var(--text-secondary);
}

.af-waitlist-status.is-success {
    color: #86efac;
}

.af-waitlist-status.is-error {
    color: #fca5a5;
}

.af-waitlist-status.is-info {
    color: #fcd34d;
}

.af-notfound-card {
    padding: 2rem 1.5rem;
}

.af-notfound-actions {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
}

.af-devlog-section + .af-devlog-section {
    margin-top: 2.4rem;
}

.af-devlog-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0 0 1.15rem;
}

.af-devlog-category-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.af-devlog-timeline {
    display: grid;
    gap: 1rem;
}

.af-devlog-item {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 1rem;
    align-items: stretch;
}

.af-devlog-rail {
    position: relative;
    display: flex;
    justify-content: center;
}

.af-devlog-rail::before {
    content: '';
    position: absolute;
    top: 0.45rem;
    bottom: -1rem;
    width: 2px;
    background: linear-gradient(180deg, rgba(245, 200, 109, 0.3), rgba(167, 139, 250, 0.22));
}

.af-devlog-item:last-child .af-devlog-rail::before {
    bottom: auto;
    height: 0.95rem;
}

.af-devlog-node {
    position: relative;
    z-index: 1;
    margin-top: 1rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f5c86d, #c084fc);
    box-shadow: 0 0 0 5px rgba(245, 200, 109, 0.08), 0 0 24px rgba(192, 132, 252, 0.35);
}

.af-devlog-card,
.af-devlog-panel {
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
        rgba(16, 18, 27, 0.92);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.af-devlog-card {
    padding: 1.15rem 1.2rem;
    overflow: hidden;
}

.af-devlog-card-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.af-devlog-card-layout.has-media {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 250px);
    align-items: center;
}

.af-devlog-card-copy {
    min-width: 0;
}

.af-devlog-card-media {
    align-self: center;
    justify-self: end;
    width: 100%;
    max-width: 250px;
}

.af-devlog-media {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 0.95rem;
    aspect-ratio: 16 / 9;
    background: rgba(255, 255, 255, 0.03);
}

.af-devlog-card-media .af-devlog-media {
    margin-bottom: 0;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
}

.af-devlog-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.af-devlog-meta {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    margin-bottom: 0.7rem;
}

.af-devlog-date,
.af-devlog-tag,
.af-devlog-panel-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.af-devlog-date {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e5e7eb;
}

.af-devlog-tag,
.af-devlog-panel-kicker {
    background: rgba(167, 139, 250, 0.12);
    border: 1px solid rgba(167, 139, 250, 0.25);
    color: #d8b4fe;
}

.af-devlog-category-patch {
    --af-category-color: #f5c86d;
    --af-category-bg: rgba(245, 200, 109, 0.12);
    --af-category-border: rgba(245, 200, 109, 0.26);
}

.af-devlog-category-lore {
    --af-category-color: #d8b4fe;
    --af-category-bg: rgba(216, 180, 254, 0.12);
    --af-category-border: rgba(216, 180, 254, 0.28);
}

.af-devlog-category-boss {
    --af-category-color: #fda4af;
    --af-category-bg: rgba(253, 164, 175, 0.12);
    --af-category-border: rgba(253, 164, 175, 0.26);
}

.af-devlog-category-system {
    --af-category-color: #93c5fd;
    --af-category-bg: rgba(147, 197, 253, 0.12);
    --af-category-border: rgba(147, 197, 253, 0.26);
}

.af-devlog-category-world-event {
    --af-category-color: #67e8f9;
    --af-category-bg: rgba(103, 232, 249, 0.12);
    --af-category-border: rgba(103, 232, 249, 0.26);
}

.af-devlog-category-chip,
.af-devlog-tag,
.af-devlog-panel-kicker {
    color: var(--af-category-color, #d8b4fe);
    background: var(--af-category-bg, rgba(167, 139, 250, 0.12));
    border-color: var(--af-category-border, rgba(167, 139, 250, 0.25));
}

.af-devlog-item .af-devlog-node {
    background: linear-gradient(135deg, var(--af-category-color, #f5c86d), #ffffff);
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.04), 0 0 24px rgba(255, 255, 255, 0.16);
}

.af-devlog-item .af-devlog-card,
.af-devlog-panel {
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.af-devlog-item .af-devlog-card {
    border-color: var(--af-category-border, rgba(255, 255, 255, 0.08));
}

.af-devlog-item .af-devlog-card::before,
.af-devlog-panel::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, var(--af-category-color, #f5c86d), transparent 85%);
    opacity: 0.9;
}

.af-devlog-item .af-devlog-card,
.af-devlog-panel {
    position: relative;
}

.af-devlog-panel {
    overflow: hidden;
}

.af-devlog-card h3,
.af-devlog-panel h3 {
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.45rem;
}

.af-devlog-card p,
.af-devlog-panel p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.75;
}

.af-devlog-bullets {
    list-style: none;
    margin: 0.95rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.af-devlog-bullets li {
    position: relative;
    padding-left: 1rem;
    color: var(--text-primary);
    font-size: 0.86rem;
}

.af-devlog-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.52rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f5c86d;
}

.af-devlog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.af-devlog-panel {
    padding: 1.15rem 1.2rem;
}

.af-widget-tracker {
    border-color: rgba(167, 139, 250, 0.22);
    background:
        radial-gradient(circle at top right, rgba(167, 139, 250, 0.12), transparent 40%),
        rgba(18, 18, 26, 0.92);
}

.af-widget-lead {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.af-tracker-links {
    display: grid;
    gap: 0.65rem;
}

.af-tracker-link {
    display: block;
    padding: 0.8rem 0.9rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.035);
    color: var(--text-primary);
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.af-tracker-link:hover {
    transform: translateY(-2px);
    border-color: rgba(167, 139, 250, 0.35);
    background: rgba(167, 139, 250, 0.08);
}

/* ── Classes Showcase ── */
.af-classes-section {
    position: relative;
    z-index: 2;
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-color);
}

.af-classes-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.af-class-grid {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 0.5rem;
}

.af-class-card {
    background: rgba(18, 18, 26, 0.7);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.25rem;
    width: 155px;
    text-align: center;
    cursor: default;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.af-class-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--class-glow, rgba(139, 92, 246, 0.06));
    opacity: 0;
    transition: opacity 0.25s ease;
    border-radius: inherit;
}

.af-class-card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 0 1px var(--border-light);
}

.af-class-card:hover::before {
    opacity: 1;
}

.af-class-icon {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 0.75rem;
    display: block;
    position: relative;
    z-index: 1;
}

.af-class-mage  { color: #f97316; text-shadow: 0 0 20px rgba(249,115,22,0.5); }
.af-class-cleric{ color: #facc15; text-shadow: 0 0 20px rgba(250,204,21,0.5); }
.af-class-ranger{ color: #4ade80; text-shadow: 0 0 20px rgba(74,222,128,0.5); }
.af-class-knight{ color: #60a5fa; text-shadow: 0 0 20px rgba(96,165,250,0.5); }
.af-class-bard  { color: #e879f9; text-shadow: 0 0 20px rgba(232,121,249,0.5); }

/* Class-specific glow vars */
.af-class-card:has(.af-class-mage)   { --class-glow: rgba(249,115,22,0.06); }
.af-class-card:has(.af-class-cleric) { --class-glow: rgba(250,204,21,0.06); }
.af-class-card:has(.af-class-ranger) { --class-glow: rgba(74,222,128,0.06); }
.af-class-card:has(.af-class-knight) { --class-glow: rgba(96,165,250,0.06); }
.af-class-card:has(.af-class-bard)   { --class-glow: rgba(232,121,249,0.08); }

.af-class-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
    position: relative;
    z-index: 1;
    letter-spacing: -0.01em;
}

.af-class-desc {
    font-size: 0.73rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.af-class-specs {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    position: relative;
    z-index: 1;
}

.af-class-specs span {
    font-size: 0.68rem;
    color: var(--text-muted);
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.15rem 0.4rem;
    letter-spacing: 0.02em;
}

/* Bard card accent */
.af-class-card-bard {
    border-color: rgba(232, 121, 249, 0.15);
}

/* ── Featured Article ── */
.af-featured-article {
    background: linear-gradient(135deg, rgba(139,92,246,0.08) 0%, rgba(99,102,241,0.05) 100%);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1.5rem;
    transition: border-color 0.2s ease;
}

.af-featured-article:hover {
    border-color: rgba(139, 92, 246, 0.35);
}

.af-featured-article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.af-featured-article-body {
    padding: 1.25rem 1.5rem;
}

.af-featured-article-tag {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.af-featured-article-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.af-featured-article-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.af-featured-article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    padding-top: 0.75rem;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ── Responsive — Classes ── */
@media (max-width: 768px) {
    .af-landing-topbar {
        padding: 0.85rem 0;
        align-items: flex-start;
        flex-direction: column;
        justify-content: flex-start;
    }

    .af-landing-topbar-actions,
    .af-lang-switch {
        width: 100%;
    }

    .af-landing-logo-image {
        height: 40px;
    }

    .af-lang-switch {
        justify-content: space-between;
    }

    .af-lang-button {
        flex: 1 1 0;
        text-align: center;
    }

    .af-devlog-categories {
        gap: 0.45rem;
    }

    .af-waitlist-row {
        grid-template-columns: 1fr;
    }

    .af-waitlist-submit {
        width: 100%;
        min-width: 0;
    }

    .af-devlog-item,
    .af-devlog-grid {
        grid-template-columns: 1fr;
    }

    .af-devlog-card-layout.has-media {
        grid-template-columns: 1fr;
    }

    .af-devlog-rail {
        display: none;
    }

    .af-hero {
        padding: 3.5rem 1rem 2rem;
    }
    .af-hero-inner {
        grid-template-columns: 1fr;
    }
    .af-hero-title {
        font-size: 2.5rem;
    }
    .af-hero-kicker {
        font-size: 1.25rem;
    }
    .af-hero-orb-1, .af-hero-orb-2 {
        display: none;
    }
    .af-landing-statbar,
    .af-landing-pillars,
    .af-system-grid,
    .af-world-grid,
    .af-roadmap-grid,
    .af-boss-grid,
    .af-encounters-layout {
        grid-template-columns: 1fr;
    }
    .af-class-grid {
        gap: 0.75rem;
    }
    .af-class-card {
        width: 130px;
        padding: 1.1rem 0.9rem;
    }
    .af-landing-cta {
        flex-direction: column;
        align-items: flex-start;
    }
    .af-section-heading h2 {
        font-size: 1.5rem;
    }

    .af-store-grid {
        grid-template-columns: 1fr;
    }

    .af-store-pack {
        min-height: 290px;
    }

    .af-store-showcase-title {
        font-size: 1.25rem;
    }
}

@media (min-width: 769px) and (max-width: 1100px) {
    .af-hero-inner,
    .af-encounters-layout {
        grid-template-columns: 1fr;
    }

    .af-landing-pillars,
    .af-roadmap-grid,
    .af-boss-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .af-landing-statbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .af-store-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
