/* ============================================================
   SAPHIRA — Premium Dark Fantasy MMORPG Portal
   Cinematic AAA-grade stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Open+Sans:wght@300;400;600;700&display=swap');

/* ─────────────────────────────────────────────────────────────
   1. CSS CUSTOM PROPERTIES
   ───────────────────────────────────────────────────────────── */

:root {
    /* Backgrounds */
    --bg-body: #0b0d15;
    --bg-panel: rgba(14, 17, 28, 0.85);
    --bg-panel-solid: #0e111c;
    --bg-panel-hover: rgba(20, 24, 40, 0.9);
    --bg-header: rgba(16, 20, 34, 0.95);
    --bg-input: rgba(8, 10, 18, 0.6);

    /* Borders */
    --border-subtle: rgba(200, 168, 72, 0.12);
    --border-medium: rgba(200, 168, 72, 0.2);
    --border-hover: rgba(200, 168, 72, 0.35);

    /* Gold palette */
    --gold: #c8a848;
    --gold-bright: #e8c85a;
    --gold-dim: #8a7030;

    /* Text */
    --text-primary: #d0ccc0;
    --text-secondary: #8890a0;
    --text-muted: #555d70;
    --text-bright: #eae6da;

    /* Accents */
    --blue-accent: #3a7bd5;
    --blue-glow: rgba(58, 123, 213, 0.3);
    --green-online: #44d058;
    --green-glow: rgba(68, 208, 88, 0.2);
    --red: #d05050;

    /* Typography */
    --font-display: 'Cinzel', serif;
    --font-body: 'Open Sans', sans-serif;

    /* Radii */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;

    /* Shadows */
    --shadow-panel: 0 4px 24px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(200, 168, 72, 0.05);
    --glow-gold: 0 0 20px rgba(200, 168, 72, 0.08);

    /* Motion */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


/* ─────────────────────────────────────────────────────────────
   2. RESET & BASE
   ───────────────────────────────────────────────────────────── */

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

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

body {
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-primary);
    background-color: var(--bg-body);
    background-image: radial-gradient(ellipse at top center, #0f1220 0%, #0b0d15 50%, #080a10 100%);
    background-attachment: fixed;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Custom scrollbar — WebKit */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0c14;
}

::-webkit-scrollbar-thumb {
    background: rgba(200, 168, 72, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(200, 168, 72, 0.35);
}

::-webkit-scrollbar-corner {
    background: #0a0c14;
}

/* Custom scrollbar — Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: rgba(200, 168, 72, 0.2) #0a0c14;
}

/* Selection */
::selection {
    background: rgba(200, 168, 72, 0.25);
    color: var(--text-bright);
}

::-moz-selection {
    background: rgba(200, 168, 72, 0.25);
    color: var(--text-bright);
}

/* Base links */
a {
    color: var(--gold);
    text-decoration: none;
    transition: color var(--transition), text-shadow var(--transition);
}

a:hover {
    color: var(--gold-bright);
    text-shadow: 0 0 8px rgba(200, 168, 72, 0.15);
}

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

ul,
ol {
    list-style: none;
}

hr {
    border: none;
    height: 1px;
    background: var(--border-subtle);
    margin: 20px 0;
}

strong,
b {
    font-weight: 700;
    color: var(--text-bright);
}

em,
i {
    font-style: italic;
}

small {
    font-size: 12px;
    color: var(--text-muted);
}

code,
pre {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 12px;
    background: rgba(8, 10, 18, 0.6);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
}

code {
    padding: 2px 6px;
}

pre {
    padding: 10px 14px;
    overflow-x: auto;
    line-height: 1.5;
    margin-bottom: 16px;
}

blockquote {
    border-left: 3px solid var(--gold-dim);
    padding: 12px 18px;
    margin: 16px 0;
    color: var(--text-secondary);
    font-style: italic;
    background: rgba(200, 168, 72, 0.03);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}


/* ─────────────────────────────────────────────────────────────
   3. TOP NAVIGATION (#top-nav)
   ───────────────────────────────────────────────────────────── */

#top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: rgba(8, 10, 16, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-nav-inner {
    max-width: 1400px;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 18px;
    gap: 0;
}

/* Logo */
.top-nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    margin-right: auto;
    flex-shrink: 0;
}

.top-nav-logo .logo-icon {
    color: var(--blue-accent);
    font-size: 16px;
}

.top-nav-logo .logo-text {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 3px;
    text-transform: uppercase;
    line-height: 1.2;
}

.top-nav-logo .logo-sub {
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 1px;
    font-family: var(--font-body);
    font-weight: 400;
}

/* Nav links */
.top-nav-links {
    display: flex;
    align-items: center;
    gap: 0;
}

.tnl {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    gap: 2px;
    color: var(--text-secondary);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: color var(--transition), text-shadow var(--transition), border-color var(--transition);
    border-bottom: 2px solid transparent;
    position: relative;
}

.tnl i,
.tnl .tnl-icon {
    font-size: 13px;
    transition: color var(--transition);
}

.tnl:hover {
    color: var(--gold);
}

.tnl:hover i,
.tnl:hover .tnl-icon {
    color: var(--gold);
}

.tnl.active {
    color: var(--gold);
    border-bottom: 2px solid var(--gold);
    text-shadow: 0 0 8px rgba(200, 168, 72, 0.3);
}

.tnl.active i,
.tnl.active .tnl-icon {
    color: var(--gold);
}

/* Login button */
.top-nav-login {
    padding: 6px 18px;
    border: 1px solid var(--blue-accent);
    color: var(--blue-accent);
    border-radius: 16px;
    font-size: 9px;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    margin-left: auto;
    flex-shrink: 0;
    transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}

.top-nav-login:hover {
    background: var(--blue-accent);
    color: #ffffff;
    box-shadow: 0 0 16px var(--blue-glow);
    text-shadow: none;
}

/* Top nav right area */
.top-nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}


/* ─────────────────────────────────────────────────────────────
   4. WRAPPER & COLUMNS
   ───────────────────────────────────────────────────────────── */

#wrapper {
    max-width: 1400px;
    margin: 56px auto 0;
    padding: 7px 12px;
    display: flex;
    gap: 14px;
    min-height: calc(100vh - 56px - 80px);
}

body:not(:has(#hero)) #wrapper {
    margin-top: 56px;
}

#left-col {
    width: 230px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#center-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#right-col {
    width: 250px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}


/* ─────────────────────────────────────────────────────────────
   5. SIDEBAR BOX (.sb-box) — GLASS PANELS
   ───────────────────────────────────────────────────────────── */

.sb-box {
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-panel);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.sb-box:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-hover);
}

.sb-header {
    padding: 9px 14px;
    border-bottom: 1px solid var(--border-subtle);
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.sh-arrow {
    color: var(--gold-dim);
    font-size: 10px;
}


/* ─────────────────────────────────────────────────────────────
   6. HERO SECTION (#hero)
   ───────────────────────────────────────────────────────────── */

#hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    min-height: 360px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-panel), var(--glow-gold);
    display: flex;
    align-items: flex-end;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(11, 13, 21, 0.2) 0%,
        rgba(11, 13, 21, 0.4) 40%,
        rgba(11, 13, 21, 0.85) 80%,
        rgba(11, 13, 21, 0.98) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 24px 28px;
    width: 100%;
}

.hero-crown {
    margin-bottom: 8px;
}

.hero-crown i {
    font-size: 22px;
    color: var(--gold);
    text-shadow: 0 0 20px rgba(200, 168, 72, 0.4);
}

.hero-title {
    font-family: var(--font-display);
    font-size: 52px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 8px;
    text-transform: uppercase;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(200, 168, 72, 0.1);
    line-height: 1.1;
}

.hero-subtitle-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 6px 0 14px;
}

.hsl-deco {
    width: 50px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: 13px;
    color: var(--gold);
    letter-spacing: 6px;
    text-transform: uppercase;
    font-weight: 400;
}

.hero-tagline {
    font-size: 14px;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 24px;
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.hbtn {
    padding: 10px 24px;
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition);
    text-decoration: none;
    cursor: pointer;
    line-height: 1;
}

.hbtn-play {
    background: rgba(200, 168, 72, 0.1);
    border: 1px solid var(--gold);
    color: var(--gold);
}

.hbtn-play:hover {
    background: rgba(200, 168, 72, 0.2);
    box-shadow: 0 0 20px rgba(200, 168, 72, 0.15);
    text-shadow: 0 0 8px rgba(200, 168, 72, 0.3);
    color: var(--gold-bright);
}

.hbtn-download {
    background: linear-gradient(135deg, #1a4a8a, #2a6ab5);
    border: none;
    color: #d0dff0;
    box-shadow: 0 2px 12px rgba(42, 106, 181, 0.3);
}

.hbtn-download:hover {
    background: linear-gradient(135deg, #2060a0, #3078c5);
    box-shadow: 0 4px 20px rgba(42, 106, 181, 0.4);
    color: #ffffff;
    text-shadow: none;
}


/* ─────────────────────────────────────────────────────────────
   7. FEATURES (#features)
   ───────────────────────────────────────────────────────────── */

#features {
    margin-bottom: 0;
}

.feat-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.feat-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    text-align: center;
    padding: 14px 8px;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.feat-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.feat-icon {
    font-size: 26px;
    color: var(--gold-dim);
    margin-bottom: 8px;
    transition: color var(--transition);
}

.feat-card:hover .feat-icon {
    color: var(--gold);
}

.feat-card h3 {
    font-family: var(--font-display);
    font-size: 8px;
    color: var(--gold-dim);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 4px;
    transition: color var(--transition);
}

.feat-card:hover h3 {
    color: var(--gold);
}

.feat-card p {
    font-size: 10px;
    color: var(--text-muted);
    line-height: 1.5;
}


/* ─────────────────────────────────────────────────────────────
   8. PREMIUM BOX
   ───────────────────────────────────────────────────────────── */

.premium-box {
    text-align: center;
    padding: 14px 14px;
}

.premium-crown i {
    font-size: 22px;
    color: var(--gold);
    text-shadow: 0 0 12px rgba(200, 168, 72, 0.25);
}

.premium-title {
    font-family: var(--font-display);
    font-size: 11px;
    color: var(--gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 5px 0;
}

.premium-desc {
    font-size: 10px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 10px;
    padding: 0 4px;
}

.premium-btn {
    display: block;
    margin: 0 10px;
    padding: 7px;
    background: linear-gradient(180deg, rgba(200, 168, 72, 0.15), rgba(200, 168, 72, 0.05));
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-size: 10px;
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    transition: all var(--transition);
}

.premium-btn:hover {
    background: rgba(200, 168, 72, 0.2);
    border-color: var(--border-hover);
    box-shadow: var(--glow-gold);
    color: var(--gold-bright);
    text-shadow: none;
}


/* ─────────────────────────────────────────────────────────────
   9. SIDE MENU
   ───────────────────────────────────────────────────────────── */

.sm-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    color: var(--text-primary);
    font-size: 12px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: all var(--transition);
    cursor: pointer;
    background: transparent;
    border-left: 3px solid transparent;
    font-family: inherit;
    width: 100%;
    text-align: left;
    border-right: none;
    border-top: none;
    outline: none;
}

.sm-icon {
    width: 18px;
    font-size: 12px;
    color: var(--text-muted);
    margin-right: 10px;
    text-align: center;
    transition: color var(--transition);
    flex-shrink: 0;
}

.sm-chev {
    margin-left: auto;
    font-size: 9px;
    color: var(--text-muted);
    transition: transform var(--transition), color var(--transition);
}

.sm-item:hover {
    background: rgba(200, 168, 72, 0.04);
    color: var(--gold);
    border-left-color: rgba(200, 168, 72, 0.3);
}

.sm-item:hover .sm-icon {
    color: var(--gold-dim);
}

.sm-item:hover .sm-chev {
    color: var(--gold-dim);
}

.sm-item.active {
    background: rgba(200, 168, 72, 0.08);
    color: var(--gold);
    border-left-color: var(--gold);
}

.sm-item.active .sm-icon {
    color: var(--gold);
}

/* Submenu */
.sm-group .sm-sub {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.sm-group.open .sm-sub {
    max-height: 300px;
}

.sm-group.open .sm-toggle .sm-chev {
    transform: rotate(180deg);
}

.sms-item {
    display: block;
    padding: 6px 12px 6px 40px;
    color: var(--text-secondary);
    font-size: 12px;
    text-decoration: none;
    transition: color var(--transition), background var(--transition);
}

.sms-item:hover {
    color: var(--gold);
    background: rgba(200, 168, 72, 0.03);
    text-shadow: none;
}

.sms-item.active {
    color: var(--gold);
}


/* ─────────────────────────────────────────────────────────────
   10. SOCIAL ICONS
   ───────────────────────────────────────────────────────────── */

.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 10px;
}

.soc-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    text-decoration: none;
    transition: all var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.soc-discord {
    background: rgba(88, 101, 242, 0.15);
    color: #7289da;
}

.soc-discord:hover {
    background: #5865F2;
    color: #ffffff;
    border-color: #5865F2;
    box-shadow: 0 0 12px rgba(88, 101, 242, 0.3);
    text-shadow: none;
}

.soc-facebook {
    background: rgba(24, 119, 242, 0.15);
    color: #4a90d9;
}

.soc-facebook:hover {
    background: #1877F2;
    color: #ffffff;
    border-color: #1877F2;
    box-shadow: 0 0 12px rgba(24, 119, 242, 0.3);
    text-shadow: none;
}

.soc-youtube {
    background: rgba(255, 0, 0, 0.1);
    color: #d04040;
}

.soc-youtube:hover {
    background: #FF0000;
    color: #ffffff;
    border-color: #FF0000;
    box-shadow: 0 0 12px rgba(255, 0, 0, 0.3);
    text-shadow: none;
}

.soc-twitter {
    background: rgba(29, 161, 242, 0.12);
    color: #1DA1F2;
}

.soc-twitter:hover {
    background: #1DA1F2;
    color: #ffffff;
    border-color: #1DA1F2;
    box-shadow: 0 0 12px rgba(29, 161, 242, 0.3);
    text-shadow: none;
}

.soc-instagram {
    background: rgba(225, 48, 108, 0.12);
    color: #e1306c;
}

.soc-instagram:hover {
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #ffffff;
    border-color: #dc2743;
    box-shadow: 0 0 12px rgba(220, 39, 67, 0.3);
    text-shadow: none;
}


/* ─────────────────────────────────────────────────────────────
   11. JOIN BOX
   ───────────────────────────────────────────────────────────── */

.join-box {
    text-align: center;
    padding: 14px 14px;
}

.join-title {
    font-family: var(--font-display);
    font-size: 12px;
    color: var(--gold);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.join-desc {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.6;
}

.join-btn {
    display: block;
    padding: 11px;
    background: linear-gradient(135deg, #1a6040, #208848);
    border: none;
    border-radius: var(--radius-sm);
    color: #d0f0d8;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    transition: all var(--transition);
    box-shadow: 0 2px 12px rgba(32, 136, 72, 0.2);
    cursor: pointer;
}

.join-btn:hover {
    background: linear-gradient(135deg, #208848, #28a058);
    box-shadow: 0 4px 20px rgba(32, 136, 72, 0.3);
    color: #ffffff;
    text-shadow: none;
}


/* ─────────────────────────────────────────────────────────────
   12. HOME ROW (News + Gallery)
   ───────────────────────────────────────────────────────────── */

.home-row {
    display: flex;
    gap: 12px;
}

.home-news {
    flex: 1;
    min-width: 0;
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-panel);
}

.home-gallery {
    width: 300px;
    flex-shrink: 0;
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-panel);
}

.home-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-header);
}

.home-section-header h2 {
    font-family: var(--font-display);
    font-size: 11px;
    color: var(--gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    margin: 0;
    padding: 0;
    border: none;
}

.hsh-link {
    font-size: 10px;
    color: var(--gold-dim);
    text-decoration: none;
    transition: color var(--transition);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.hsh-link:hover {
    color: var(--gold);
    text-shadow: none;
}

/* News items */
.news-item {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background var(--transition);
}

.news-item:hover {
    background: rgba(200, 168, 72, 0.03);
}

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

.news-title {
    font-size: 13px;
    color: var(--gold);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition), text-shadow var(--transition);
    display: block;
    margin-bottom: 5px;
}

.news-title:hover {
    color: var(--gold-bright);
    text-shadow: 0 0 8px rgba(200, 168, 72, 0.15);
}

.news-excerpt {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 5px;
}

.news-meta {
    font-size: 10px;
    color: var(--text-muted);
}

.news-cat {
    color: var(--blue-accent);
    margin-left: 10px;
    font-weight: 600;
}

/* Gallery grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    padding: 6px;
}

.gallery-grid img {
    width: 100%;
    border-radius: var(--radius-sm);
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: opacity var(--transition), transform var(--transition);
    cursor: pointer;
}

.gallery-grid img:hover {
    opacity: 0.8;
    transform: scale(1.02);
}


/* ─────────────────────────────────────────────────────────────
   13. STATUS BOX
   ───────────────────────────────────────────────────────────── */

.status-inner {
    padding: 14px 14px;
    text-align: center;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
}

.status-dot.on {
    background: var(--green-online);
    box-shadow: 0 0 10px var(--green-online);
    animation: status-pulse 2s infinite;
}

.status-dot.off {
    background: var(--red);
    box-shadow: 0 0 10px rgba(208, 80, 80, 0.3);
}

@keyframes status-pulse {
    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 10px var(--green-online);
    }
    50% {
        opacity: 0.7;
        box-shadow: 0 0 4px var(--green-online);
    }
}

.status-label {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    vertical-align: middle;
}

.status-label.on {
    color: var(--green-online);
}

.status-label.off {
    color: var(--red);
}

.status-count-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 10px;
}

.status-count {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 900;
    color: var(--green-online);
    letter-spacing: 2px;
    line-height: 1.2;
}

.status-count.off {
    color: var(--red);
}

.status-world-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    margin-top: 12px;
    border-top: 1px solid var(--border-subtle);
    font-size: 12px;
    color: var(--text-secondary);
}

.status-world-num {
    color: var(--green-online);
    font-weight: 700;
}

.sb-btn {
    display: block;
    margin-top: 10px;
    padding: 8px 12px;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    text-align: center;
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 700;
    color: var(--gold-dim);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all var(--transition);
}

.sb-btn:hover {
    border-color: var(--border-hover);
    color: var(--gold);
    background: rgba(200, 168, 72, 0.05);
    box-shadow: var(--glow-gold);
    text-shadow: none;
}


/* ─────────────────────────────────────────────────────────────
   14. TOP 5 PLAYERS
   ───────────────────────────────────────────────────────────── */

.t5-row {
    display: flex;
    align-items: center;
    padding: 7px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background var(--transition);
}

.t5-row:hover {
    background: rgba(200, 168, 72, 0.03);
}

.t5-row:last-child {
    border-bottom: none;
}

.t5-rank {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 700;
    margin-right: 12px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.t5-rank.r1 {
    border-color: rgba(255, 215, 0, 0.4);
    color: #ffd700;
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.3);
}

.t5-rank.r2 {
    border-color: rgba(192, 192, 192, 0.4);
    color: #c0c0c0;
}

.t5-rank.r3 {
    border-color: rgba(205, 127, 50, 0.4);
    color: #cd7f32;
}

.t5-rank.r4,
.t5-rank.r5 {
    color: var(--text-muted);
}

.t5-name {
    flex: 1;
    font-size: 12px;
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.t5-name:hover {
    color: var(--gold);
    text-shadow: none;
}

.t5-level {
    font-size: 12px;
    color: var(--gold-dim);
    font-weight: 700;
    flex-shrink: 0;
    margin-left: 8px;
}

.t5-voc {
    font-size: 10px;
    color: var(--text-muted);
    margin-left: 8px;
    flex-shrink: 0;
}


/* ─────────────────────────────────────────────────────────────
   15. QUICK LINKS
   ───────────────────────────────────────────────────────────── */

.ql-item {
    display: flex;
    align-items: center;
    padding: 9px 14px;
    color: var(--text-primary);
    font-size: 12px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: all var(--transition);
}

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

.ql-icon {
    font-size: 13px;
    color: var(--text-muted);
    width: 22px;
    margin-right: 12px;
    text-align: center;
    transition: color var(--transition);
    flex-shrink: 0;
}

.ql-arrow {
    margin-left: auto;
    font-size: 9px;
    color: var(--text-muted);
    transition: transform var(--transition), color var(--transition);
}

.ql-item:hover {
    background: rgba(200, 168, 72, 0.03);
    color: var(--gold);
}

.ql-item:hover .ql-icon {
    color: var(--gold-dim);
}

.ql-item:hover .ql-arrow {
    transform: translateX(3px);
    color: var(--gold-dim);
}


/* ─────────────────────────────────────────────────────────────
   16. CONTENT BOX
   ───────────────────────────────────────────────────────────── */

.content-box {
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 18px;
    box-shadow: var(--shadow-panel);
    min-height: 100px;
}

.content-box h1 {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-subtle);
    line-height: 1.3;
}

.content-box h2 {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 12px 0 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-subtle);
    line-height: 1.3;
}

.content-box h3 {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    color: var(--gold-dim);
    margin: 10px 0 6px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.content-box h4 {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-bright);
    margin: 14px 0 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.content-box p {
    color: var(--text-primary);
    font-size: 12px;
    line-height: 1.45;
    margin-bottom: 8px;
}

.content-box a {
    color: var(--gold);
}

.content-box a:hover {
    color: var(--gold-bright);
}

.content-box ul,
.content-box ol {
    margin: 8px 0 12px 24px;
}

.content-box ul {
    list-style: disc;
}

.content-box ol {
    list-style: decimal;
}

.content-box li {
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 4px;
}

.content-box li::marker {
    color: var(--gold-dim);
}

/* Tables inside content */
.content-box table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-panel-solid);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 12px;
}

.content-box th {
    background: var(--bg-header);
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 700;
    color: var(--gold-dim);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-subtle);
    text-align: left;
}

.content-box td {
    padding: 7px 12px;
    color: var(--text-primary);
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.content-box tr:hover td {
    background: rgba(200, 168, 72, 0.03);
}

.content-box tr:nth-child(even) td {
    background: rgba(14, 17, 28, 0.3);
}

.content-box tr:nth-child(even):hover td {
    background: rgba(200, 168, 72, 0.03);
}

/* Standalone tables (outside .content-box) */
table {
    width: 100%;
    border-collapse: collapse;
}

table.table,
.table-responsive table {
    background: var(--bg-panel-solid);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 20px;
}

table.table th,
.table-responsive table th {
    background: var(--bg-header);
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 700;
    color: var(--gold-dim);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-subtle);
    text-align: left;
}

table.table td,
.table-responsive table td {
    padding: 7px 12px;
    color: var(--text-primary);
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}


/* ─────────────────────────────────────────────────────────────
   17. SUBPAGE BANNER
   ───────────────────────────────────────────────────────────── */

.subpage-banner {
    border: 1px solid var(--border-subtle);
    border-bottom: none;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    overflow: hidden;
    box-shadow: var(--shadow-panel);
    position: relative;
}

.subpage-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.subpage-banner + .content-box {
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.subpage-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(11, 13, 21, 0) 0%,
        rgba(11, 13, 21, 0.6) 100%
    );
}

.subpage-banner-title {
    position: absolute;
    bottom: 16px;
    left: 24px;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 2;
}


/* ─────────────────────────────────────────────────────────────
   18. FOOTER
   ───────────────────────────────────────────────────────────── */

footer,
#footer,
.footer {
    background: rgba(8, 10, 16, 0.95);
    border-top: 1px solid var(--border-subtle);
    margin-top: 20px;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 22px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-muted);
}

.footer-copy {
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 0;
}

.footer-links a {
    color: var(--text-muted);
    margin-left: 18px;
    font-size: 11px;
    transition: color var(--transition);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--gold);
    text-shadow: none;
}

.footer-gem {
    color: var(--gold-dim);
    font-size: 16px;
}

.footer-gem i {
    color: var(--gold-dim);
}


/* ─────────────────────────────────────────────────────────────
   19. MOBILE NAVIGATION
   ───────────────────────────────────────────────────────────── */

.mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    transition: all var(--transition);
}

.mobile-toggle:hover {
    border-color: var(--border-hover);
    color: var(--gold);
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}

.mobile-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav {
    width: 280px;
    height: 100%;
    background: var(--bg-panel-solid);
    padding: 24px 0;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    position: relative;
}

.mobile-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: transparent;
    border: none;
    color: var(--gold);
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color var(--transition);
}

.mobile-close:hover {
    color: var(--gold-bright);
}

.mobile-nav-logo {
    padding: 0 24px 20px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 8px;
}

.mobile-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 24px;
    color: var(--text-primary);
    font-size: 13px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: all var(--transition);
}

.mobile-nav a:hover {
    color: var(--gold);
    background: rgba(200, 168, 72, 0.04);
    text-shadow: none;
}

.mobile-nav a i {
    width: 20px;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}

.mobile-nav a:hover i {
    color: var(--gold-dim);
}


/* ─────────────────────────────────────────────────────────────
   20. FORMS
   ───────────────────────────────────────────────────────────── */

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="search"],
input[type="tel"],
input[type="url"],
textarea,
select {
    width: 100%;
    padding: 7px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-bright);
    font-family: var(--font-body);
    font-size: 13px;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
    border-color: var(--gold-dim);
    box-shadow: 0 0 0 3px rgba(200, 168, 72, 0.06);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.6;
}

label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-weight: 600;
}

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

/* Select custom arrow */
select {
    padding-right: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238890a0' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
}

select option {
    background: var(--bg-panel-solid);
    color: var(--text-primary);
    padding: 8px;
}

fieldset {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 16px;
}

legend {
    font-family: var(--font-display);
    font-size: 11px;
    color: var(--gold-dim);
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0 8px;
    font-weight: 600;
}

/* Form field containers */
.form-group {
    margin-bottom: 16px;
}

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.form-row > * {
    flex: 1;
}

.form-inline {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-hint {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.form-error {
    font-size: 11px;
    color: var(--red);
    margin-top: 4px;
}


/* ─────────────────────────────────────────────────────────────
   21. BUTTONS
   ───────────────────────────────────────────────────────────── */

/* Primary gold buttons — universal MyAAC overrides */
.BigButton,
.MediumButton,
.SmallButton,
.BigButtonBackground,
.MediumButtonBackground,
input[type="submit"],
input[type="button"],
button[type="submit"] {
    background: linear-gradient(180deg, #d4a030, #a07818 50%, #705010) !important;
    color: #1a1000 !important;
    border: none !important;
    border-radius: var(--radius-sm) !important;
    font-family: var(--font-display) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    padding: 7px 16px !important;
    cursor: pointer !important;
    transition: all var(--transition) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    width: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    text-decoration: none !important;
    line-height: 1.2 !important;
    min-height: 36px !important;
}

.BigButton:hover,
.MediumButton:hover,
.SmallButton:hover,
.BigButtonBackground:hover,
.MediumButtonBackground:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
button[type="submit"]:hover {
    filter: brightness(1.15) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 16px rgba(200, 168, 72, 0.2) !important;
}

.BigButton:active,
.MediumButton:active,
.SmallButton:active,
.BigButtonBackground:active,
.MediumButtonBackground:active,
input[type="submit"]:active,
input[type="button"]:active,
button[type="submit"]:active {
    transform: translateY(0) !important;
    filter: brightness(0.95) !important;
}

/* Text-style buttons */
.BigButtonText,
.MediumButtonText,
.SmallButtonText {
    background: transparent !important;
    color: var(--gold-dim) !important;
    box-shadow: none !important;
    border: none !important;
    font-family: var(--font-display) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    padding: 7px 16px !important;
    cursor: pointer !important;
    transition: color var(--transition) !important;
}

.BigButtonText:hover,
.MediumButtonText:hover,
.SmallButtonText:hover {
    color: var(--gold) !important;
    filter: none !important;
    transform: none !important;
}

/* Generic button reset */
button {
    font-family: var(--font-body);
    cursor: pointer;
}

/* Utility button classes */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    line-height: 1.2;
}

.btn-primary {
    background: linear-gradient(180deg, #d4a030, #a07818 50%, #705010);
    color: #1a1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(200, 168, 72, 0.2);
    color: #1a1000;
    text-shadow: none;
}

.btn-secondary {
    background: var(--bg-header);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
    border-color: var(--border-hover);
    color: var(--gold);
    text-shadow: none;
}

.btn-outline {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--border-medium);
}

.btn-outline:hover {
    background: rgba(200, 168, 72, 0.1);
    border-color: var(--border-hover);
    box-shadow: var(--glow-gold);
    text-shadow: none;
}

.btn-danger {
    background: linear-gradient(180deg, #d05050, #a03030);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(208, 80, 80, 0.2);
}

.btn-danger:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    color: #ffffff;
    text-shadow: none;
}

.btn-sm {
    padding: 7px 16px;
    font-size: 10px;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 12px;
}

.btn-block {
    display: flex;
    width: 100%;
}


/* ─────────────────────────────────────────────────────────────
   22. MyAAC OVERRIDES
   ───────────────────────────────────────────────────────────── */

/* Kill ALL legacy decorative elements */
.CaptionEdge,
.CaptionEdgeLeftTop,
.CaptionEdgeRightTop,
.CaptionEdgeLeftBottom,
.CaptionEdgeRightBottom,
.CaptionBorderTop,
.CaptionBorderBottom,
.CaptionBorderLeft,
.CaptionBorderRight,
.CaptionVerticalLeft,
.CaptionVerticalRight,
.TableShadowContainerRightTop,
.TableShadowContainerBottomLeft,
.TableShadowContainerBottomRight,
.TableShadowContainerTopRight,
.TableShadowRightTop,
.TableShadowRightTopRightBottom,
.TableShadowLeftBottomRightBottom,
.TableShadowRightBottom,
div[class*="CaptionEdge"],
div[class*="CaptionBorder"],
div[class*="CaptionVertical"],
div[class*="TableShadow"] {
    background-image: none !important;
    background: transparent !important;
    display: block !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
    width: auto !important;
    min-height: 0 !important;
}

/* Main table containers */
.TableContainer,
.Table1,
.Table2,
.Table3,
.Table4,
.Table5,
.Table6,
.Table7,
.Table8,
.Table9 {
    background: var(--bg-panel-solid) !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: var(--radius-sm) !important;
    overflow: hidden !important;
    width: 100% !important;
    margin-bottom: 16px !important;
}

/* Caption container (header) */
.CaptionContainer,
.CaptionInnerContainer {
    background: var(--bg-header) !important;
    padding: 8px 12px !important;
    border-bottom: 1px solid var(--border-subtle) !important;
    border-radius: 0 !important;
}

.CaptionContainer .Text,
.CaptionInnerContainer .Text {
    font-family: var(--font-display) !important;
    font-size: 11px !important;
    color: var(--gold) !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
}

/* Inner content */
.InnerTableContainer {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
}

.TableContentContainer {
    background: var(--bg-panel-solid) !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: var(--radius-sm) !important;
    overflow: hidden !important;
}

.TableContent {
    width: 100% !important;
    border-collapse: collapse !important;
}

.TableContent td {
    padding: 7px 12px !important;
    color: var(--text-primary) !important;
    font-size: 13px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
}

.TableContent tr:hover td {
    background: rgba(200, 168, 72, 0.03) !important;
}

.TableContent tr:nth-child(even) td {
    background: rgba(14, 17, 28, 0.3) !important;
}

.TableContent tr:nth-child(even):hover td {
    background: rgba(200, 168, 72, 0.03) !important;
}

/* Labels */
.LabelV,
.LabelH {
    background: var(--bg-header) !important;
    font-family: var(--font-display) !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: var(--gold-dim) !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    padding: 7px 12px !important;
    border-bottom: 1px solid var(--border-subtle) !important;
}

/* Form field error */
.FormFieldError {
    color: var(--red) !important;
    font-size: 11px !important;
}

/* MyAAC table class */
.myaac-table {
    width: 100% !important;
    border-collapse: collapse !important;
    background: var(--bg-panel-solid) !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: var(--radius-sm) !important;
    overflow: hidden !important;
    margin-bottom: 16px !important;
}

.myaac-table th {
    background: var(--bg-header) !important;
    font-family: var(--font-display) !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    color: var(--gold-dim) !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    padding: 8px 12px !important;
    border-bottom: 1px solid var(--border-subtle) !important;
    text-align: left !important;
}

.myaac-table td {
    padding: 7px 12px !important;
    color: var(--text-primary) !important;
    font-size: 13px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
}

.myaac-table tr:hover td {
    background: rgba(200, 168, 72, 0.03) !important;
}

.myaac-table tr:nth-child(even) td {
    background: rgba(14, 17, 28, 0.3) !important;
}

/* Override inline bgcolor attributes */
tr[bgcolor],
td[bgcolor] {
    background: transparent !important;
}

tr[style*="background"],
td[style*="background"] {
    background: transparent !important;
}

tr[bgcolor]:nth-child(odd) td,
tr[style*="background"]:nth-child(odd) td {
    background: var(--bg-panel-solid) !important;
}

tr[bgcolor]:nth-child(even) td,
tr[style*="background"]:nth-child(even) td {
    background: rgba(14, 17, 28, 0.3) !important;
}

tr[bgcolor]:hover td,
tr[style*="background"]:hover td {
    background: rgba(200, 168, 72, 0.03) !important;
}

/* Account management */
#account-manage {
    display: flex;
    gap: 14px;
}

#account-manage #one,
#one {
    width: 200px;
    flex-shrink: 0;
    float: none;
}

#account-manage #two,
#two {
    flex: 1;
    margin-left: 0;
}

/* Vertical menu */
.vertical-menu a,
.vertical-menu button {
    display: block !important;
    background: var(--bg-panel-solid) !important;
    color: var(--text-primary) !important;
    padding: 8px 14px !important;
    border: none !important;
    border-bottom: 1px solid var(--border-subtle) !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-family: var(--font-body) !important;
    text-align: left !important;
    width: 100% !important;
    cursor: pointer !important;
    transition: all var(--transition) !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    font-weight: 400 !important;
    min-height: auto !important;
    line-height: 1.5 !important;
    box-shadow: none !important;
    filter: none !important;
}

.vertical-menu a:hover,
.vertical-menu button:hover {
    background: var(--bg-panel-hover) !important;
    color: var(--gold) !important;
    transform: none !important;
    filter: none !important;
}

.vertical-menu a.active,
.vertical-menu button.active {
    background: rgba(200, 168, 72, 0.08) !important;
    color: var(--gold) !important;
    border-left: 3px solid var(--gold) !important;
}

/* Color overrides */
.red {
    color: var(--red) !important;
}

span[style*="color: green"],
span[style*="color:green"],
span[style*="color:#00FF00"],
span[style*="color: #00FF00"],
span[style*="color:#00ff00"],
span[style*="color: #00ff00"] {
    color: var(--green-online) !important;
}

span[style*="color: red"],
span[style*="color:red"],
span[style*="color:#FF0000"],
span[style*="color: #FF0000"],
span[style*="color:#ff0000"],
span[style*="color: #ff0000"] {
    color: var(--red) !important;
}

font {
    color: inherit !important;
}

font[color] {
    color: inherit !important;
}

/* Image borders and legacy decorations */
img[border] {
    border: none !important;
}


/* ─────────────────────────────────────────────────────────────
   23. LOGIN PAGE
   ───────────────────────────────────────────────────────────── */

.login-page-layout {
    display: flex;
    gap: 20px;
    max-width: 100%;
}

.login-section {
    flex: 1;
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-panel);
}

.login-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-subtle);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.login-section-header i {
    color: var(--gold-dim);
    font-size: 14px;
}

.login-section-body {
    padding: 16px;
}

.login-field {
    margin-bottom: 10px;
}

.login-field label {
    font-family: var(--font-display);
    font-size: 9px;
    font-weight: 600;
    color: var(--gold-dim);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 6px;
    display: block;
}

.login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    width: auto;
    margin: 0;
    line-height: 1.2;
}

.login-btn--primary {
    flex: 1;
    background: linear-gradient(180deg, #d4a030, #a07818 50%, #705010);
    color: #1a1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.login-btn--primary:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(200, 168, 72, 0.2);
    color: #1a1000;
    text-shadow: none;
}

.login-btn--secondary {
    background: var(--bg-header);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

.login-btn--secondary:hover {
    border-color: var(--border-hover);
    color: var(--gold);
    text-shadow: none;
}

.login-btn--register {
    width: 100%;
    background: linear-gradient(135deg, #1a6040, #208848);
    color: #d0f0d8;
    box-shadow: 0 2px 12px rgba(32, 136, 72, 0.2);
    justify-content: center;
}

.login-btn--register:hover {
    background: linear-gradient(135deg, #208848, #28a058);
    box-shadow: 0 4px 20px rgba(32, 136, 72, 0.3);
    color: #ffffff;
    text-shadow: none;
}

.login-section-actions {
    padding: 12px 16px;
    display: flex;
    gap: 8px;
    border-top: 1px solid var(--border-subtle);
    flex-wrap: wrap;
}

.login-error {
    background: rgba(208, 80, 80, 0.1);
    border: 1px solid rgba(208, 80, 80, 0.2);
    border-left: 3px solid var(--red);
    color: var(--red);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    margin-bottom: 16px;
}

.login-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 12px;
    color: var(--text-secondary);
}

.login-remember input[type="checkbox"] {
    width: auto;
    accent-color: var(--gold);
}

.login-links {
    padding: 12px 22px;
    border-top: 1px solid var(--border-subtle);
}

.login-links a {
    font-size: 12px;
    color: var(--text-muted);
    display: block;
    padding: 4px 0;
}

.login-links a:hover {
    color: var(--gold);
}

/* New player section */
.new-player-icon {
    font-size: 32px;
    color: var(--gold-dim);
    text-align: center;
    margin-bottom: 12px;
}

.new-player-text {
    text-align: center;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.new-player-features {
    margin-bottom: 20px;
}

.new-player-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 12px;
    color: var(--text-secondary);
}

.new-player-features li i {
    color: var(--green-online);
    font-size: 11px;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}


/* ─────────────────────────────────────────────────────────────
   24. PAGINATION
   ───────────────────────────────────────────────────────────── */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 18px 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    min-width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-panel-solid);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-size: 11px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    text-decoration: none;
    padding: 0 8px;
}

.pagination a:hover {
    border-color: var(--border-hover);
    color: var(--gold);
    text-shadow: none;
}

.pagination .current,
.pagination .active,
.pagination span.current {
    background: linear-gradient(180deg, #d4a030, #a07818 50%, #705010);
    color: #1a1000;
    border: none;
    font-weight: 700;
}

.pagination .disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Alternative pagination styles */
.page-links {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 18px 0;
}

.page-links a,
.page-links span {
    min-width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-panel-solid);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-size: 11px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    text-decoration: none;
}

.page-links a:hover {
    border-color: var(--border-hover);
    color: var(--gold);
    text-shadow: none;
}

.page-links .current {
    background: linear-gradient(180deg, #d4a030, #a07818 50%, #705010);
    color: #1a1000;
    border: none;
    font-weight: 700;
}


/* ─────────────────────────────────────────────────────────────
   25. ALERTS & NOTIFICATIONS
   ───────────────────────────────────────────────────────────── */

.alert {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.alert i {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.alert-success,
.success {
    background: rgba(68, 208, 88, 0.08);
    border: 1px solid rgba(68, 208, 88, 0.15);
    border-left: 3px solid var(--green-online);
    color: #a0e8a8;
}

.alert-success i {
    color: var(--green-online);
}

.alert-error,
.error {
    background: rgba(208, 80, 80, 0.08);
    border: 1px solid rgba(208, 80, 80, 0.15);
    border-left: 3px solid var(--red);
    color: #e8a0a0;
}

.alert-error i {
    color: var(--red);
}

.alert-warning,
.warning {
    background: rgba(200, 168, 72, 0.08);
    border: 1px solid rgba(200, 168, 72, 0.15);
    border-left: 3px solid var(--gold);
    color: var(--gold-bright);
}

.alert-warning i {
    color: var(--gold);
}

.alert-info,
.info {
    background: rgba(58, 123, 213, 0.08);
    border: 1px solid rgba(58, 123, 213, 0.15);
    border-left: 3px solid var(--blue-accent);
    color: #90b8e8;
}

.alert-info i {
    color: var(--blue-accent);
}

/* Flash messages (MyAAC) */
.flash-message {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 13px;
}

.flash-message.success {
    background: rgba(68, 208, 88, 0.08);
    border: 1px solid rgba(68, 208, 88, 0.15);
    border-left: 3px solid var(--green-online);
    color: #a0e8a8;
}

.flash-message.error {
    background: rgba(208, 80, 80, 0.08);
    border: 1px solid rgba(208, 80, 80, 0.15);
    border-left: 3px solid var(--red);
    color: #e8a0a0;
}


/* ─────────────────────────────────────────────────────────────
   26. ANIMATIONS & KEYFRAMES
   ───────────────────────────────────────────────────────────── */

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

/* Subtle shimmer for premium elements */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* Glow pulse for accents */
@keyframes glowPulse {
    0%,
    100% {
        box-shadow: 0 0 10px rgba(200, 168, 72, 0.1);
    }
    50% {
        box-shadow: 0 0 20px rgba(200, 168, 72, 0.2);
    }
}

/* Entrance animation for content */
.content-box,
.sb-box,
.home-news,
.home-gallery,
.login-section {
    animation: fadeIn 0.4s ease-out;
}

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

    html {
        scroll-behavior: auto;
    }
}


/* ─────────────────────────────────────────────────────────────
   27. HIGHSCORES / SPECIFIC PAGES
   ───────────────────────────────────────────────────────────── */

/* Highscores */
.highscores-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.highscores-filters select {
    width: auto;
    min-width: 150px;
}

/* Character page */
.character-info {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0;
}

.character-info dt {
    padding: 7px 12px;
    font-family: var(--font-display);
    font-size: 11px;
    color: var(--gold-dim);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    background: var(--bg-header);
}

.character-info dd {
    padding: 7px 12px;
    color: var(--text-primary);
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

/* Outfit display */
.outfit-container {
    text-align: center;
    padding: 20px;
}

.outfit-container img {
    margin: 0 auto;
    image-rendering: pixelated;
}

/* Deaths list */
.death-entry {
    padding: 8px 16px;
    font-size: 12px;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.death-entry .killer {
    color: var(--red);
    font-weight: 600;
}

.death-entry .time {
    color: var(--text-muted);
    font-size: 11px;
}

/* Guild page */
.guild-logo {
    text-align: center;
    padding: 20px;
}

.guild-logo img {
    max-width: 128px;
    margin: 0 auto;
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-sm);
}

.guild-description {
    padding: 16px;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
    border-bottom: 1px solid var(--border-subtle);
}

.guild-rank-header {
    font-family: var(--font-display);
    font-size: 11px;
    color: var(--gold-dim);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 7px 12px;
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-subtle);
}

/* Shop page */
.shop-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background var(--transition);
}

.shop-item:hover {
    background: rgba(200, 168, 72, 0.03);
}

.shop-item-image {
    width: 64px;
    height: 48px;
    flex-shrink: 0;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 10, 18, 0.4);
}

.shop-item-image img {
    image-rendering: pixelated;
}

.shop-item-info {
    flex: 1;
}

.shop-item-name {
    font-size: 14px;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 4px;
}

.shop-item-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

.shop-item-price {
    font-family: var(--font-display);
    font-size: 14px;
    color: var(--gold-bright);
    font-weight: 700;
    flex-shrink: 0;
}

/* Forum */
.forum-category {
    margin-bottom: 16px;
}

.forum-thread {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background var(--transition);
}

.forum-thread:hover {
    background: rgba(200, 168, 72, 0.03);
}

.forum-thread-title {
    flex: 1;
    font-size: 13px;
    color: var(--text-primary);
}

.forum-thread-title a {
    color: var(--text-primary);
}

.forum-thread-title a:hover {
    color: var(--gold);
}

.forum-thread-meta {
    font-size: 11px;
    color: var(--text-muted);
    flex-shrink: 0;
    text-align: right;
}

.forum-post {
    padding: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.forum-post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.forum-post-author {
    font-weight: 600;
    color: var(--gold);
    font-size: 13px;
}

.forum-post-date {
    font-size: 11px;
    color: var(--text-muted);
}

.forum-post-body {
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.5;
}


/* ─────────────────────────────────────────────────────────────
   28. MISCELLANEOUS COMPONENTS
   ───────────────────────────────────────────────────────────── */

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge-gold {
    background: rgba(200, 168, 72, 0.15);
    color: var(--gold);
    border: 1px solid rgba(200, 168, 72, 0.2);
}

.badge-blue {
    background: rgba(58, 123, 213, 0.15);
    color: var(--blue-accent);
    border: 1px solid rgba(58, 123, 213, 0.2);
}

.badge-green {
    background: rgba(68, 208, 88, 0.15);
    color: var(--green-online);
    border: 1px solid rgba(68, 208, 88, 0.2);
}

.badge-red {
    background: rgba(208, 80, 80, 0.15);
    color: var(--red);
    border: 1px solid rgba(208, 80, 80, 0.2);
}

/* Tooltips */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    background: var(--bg-panel-solid);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition), transform var(--transition);
    z-index: 100;
    box-shadow: var(--shadow-panel);
}

.tooltip:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-8px);
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 1px solid var(--border-subtle);
    gap: 0;
    margin-bottom: 20px;
}

.tab {
    padding: 12px 20px;
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition);
    border-bottom: 2px solid transparent;
    background: transparent;
    border-top: none;
    border-left: none;
    border-right: none;
}

.tab:hover {
    color: var(--gold);
}

.tab.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

/* Divider with text */
.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-subtle);
}

.divider span {
    font-family: var(--font-display);
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    flex-shrink: 0;
}

/* Progress bar */
.progress {
    height: 6px;
    background: rgba(8, 10, 18, 0.6);
    border-radius: 3px;
    overflow: hidden;
    margin: 8px 0;
}

.progress-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s ease;
}

.progress-bar-gold {
    background: linear-gradient(90deg, var(--gold-dim), var(--gold));
}

.progress-bar-blue {
    background: linear-gradient(90deg, #1a4a8a, var(--blue-accent));
}

.progress-bar-green {
    background: linear-gradient(90deg, #1a6040, var(--green-online));
}

.progress-bar-red {
    background: linear-gradient(90deg, #8a2020, var(--red));
}

/* Loading spinner */
.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-subtle);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 20px auto;
}

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

/* Empty state */
.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-state i {
    font-size: 36px;
    color: var(--text-muted);
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-state h3 {
    font-family: var(--font-display);
    font-size: 14px;
    color: var(--text-secondary);
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.empty-state p {
    font-size: 12px;
    color: var(--text-muted);
}

/* Avatar / character image */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border-subtle);
    object-fit: cover;
    flex-shrink: 0;
}

.avatar-sm {
    width: 28px;
    height: 28px;
}

.avatar-lg {
    width: 64px;
    height: 48px;
}

/* Separator */
.sep {
    height: 1px;
    background: var(--border-subtle);
    margin: 12px 0;
}

/* Text utilities */
.text-gold {
    color: var(--gold);
}

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

.text-bright {
    color: var(--text-bright);
}

.text-blue {
    color: var(--blue-accent);
}

.text-green {
    color: var(--green-online);
}

.text-red {
    color: var(--red);
}

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

.text-right {
    text-align: right;
}

.text-uppercase {
    text-transform: uppercase;
}

.text-small {
    font-size: 11px;
}

/* Spacing utilities */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.p-0 { padding: 0; }
.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }

/* Flex utilities */
.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.flex-1 { flex: 1; }

/* Display utilities */
.d-none { display: none; }
.d-block { display: block; }
.d-inline { display: inline; }


/* ─────────────────────────────────────────────────────────────
   29. COUNTDOWN / EVENT TIMER
   ───────────────────────────────────────────────────────────── */

.countdown {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 16px;
}

.countdown-unit {
    text-align: center;
}

.countdown-value {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 900;
    color: var(--gold);
    letter-spacing: 1px;
    line-height: 1.2;
}

.countdown-label {
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown-sep {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--gold-dim);
    line-height: 1.2;
}


/* ─────────────────────────────────────────────────────────────
   30. MODAL / DIALOG
   ───────────────────────────────────────────────────────────── */

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}

.modal-backdrop.open {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: var(--bg-panel-solid);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.5), var(--glow-gold);
    max-width: 520px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    animation: fadeIn 0.3s ease-out;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-header);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.modal-header h3 {
    font-family: var(--font-display);
    font-size: 13px;
    color: var(--gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    margin: 0;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    transition: color var(--transition);
}

.modal-close:hover {
    color: var(--gold);
}

.modal-body {
    padding: 22px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 22px;
    border-top: 1px solid var(--border-subtle);
}


/* ─────────────────────────────────────────────────────────────
   31. BREADCRUMBS
   ───────────────────────────────────────────────────────────── */

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    margin-bottom: 16px;
    font-size: 11px;
}

.breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition);
}

.breadcrumbs a:hover {
    color: var(--gold);
    text-shadow: none;
}

.breadcrumbs .sep {
    color: var(--text-muted);
    font-size: 9px;
    height: auto;
    background: none;
    margin: 0;
}

.breadcrumbs .current {
    color: var(--text-secondary);
}


/* ─────────────────────────────────────────────────────────────
   32. EXPERIENCE BAR / LEVEL PROGRESS
   ───────────────────────────────────────────────────────────── */

.exp-bar-container {
    padding: 8px 12px;
}

.exp-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.exp-bar-label .level {
    color: var(--gold);
    font-weight: 700;
}

.exp-bar {
    height: 8px;
    background: rgba(8, 10, 18, 0.6);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

.exp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-dim), var(--gold), var(--gold-bright));
    border-radius: 4px;
    transition: width 1s ease;
    position: relative;
}

.exp-bar-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.15) 50%,
        transparent 100%
    );
    animation: shimmer 2s ease-in-out infinite;
    background-size: 200% 100%;
}


/* ─────────────────────────────────────────────────────────────
   33. WORLD MAP PREVIEW
   ───────────────────────────────────────────────────────────── */

.map-preview {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

.map-preview img {
    width: 100%;
    display: block;
}

.map-preview-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 60%,
        rgba(11, 13, 21, 0.8) 100%
    );
    pointer-events: none;
}


/* ─────────────────────────────────────────────────────────────
   34. VOCATION ICONS / CLASS INDICATORS
   ───────────────────────────────────────────────────────────── */

.voc-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    flex-shrink: 0;
}

.voc-sorcerer {
    background: rgba(58, 123, 213, 0.15);
    color: var(--blue-accent);
    border: 1px solid rgba(58, 123, 213, 0.25);
}

.voc-druid {
    background: rgba(68, 208, 88, 0.12);
    color: var(--green-online);
    border: 1px solid rgba(68, 208, 88, 0.2);
}

.voc-paladin {
    background: rgba(200, 168, 72, 0.12);
    color: var(--gold);
    border: 1px solid rgba(200, 168, 72, 0.2);
}

.voc-knight {
    background: rgba(208, 80, 80, 0.12);
    color: var(--red);
    border: 1px solid rgba(208, 80, 80, 0.2);
}


/* ─────────────────────────────────────────────────────────────
   35. ONLINE LIST
   ───────────────────────────────────────────────────────────── */

.online-player {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background var(--transition);
    gap: 10px;
}

.online-player:hover {
    background: rgba(200, 168, 72, 0.03);
}

.online-player:last-child {
    border-bottom: none;
}

.online-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green-online);
    box-shadow: 0 0 6px var(--green-online);
    flex-shrink: 0;
}

.online-name {
    flex: 1;
    font-size: 12px;
    color: var(--text-primary);
    text-decoration: none;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.online-name:hover {
    color: var(--gold);
    text-shadow: none;
}

.online-level {
    font-size: 11px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.online-voc {
    font-size: 10px;
    color: var(--text-muted);
    flex-shrink: 0;
    min-width: 24px;
    text-align: right;
}


/* ─────────────────────────────────────────────────────────────
   36. SEARCH
   ───────────────────────────────────────────────────────────── */

.search-box {
    position: relative;
}

.search-box input {
    padding-left: 40px;
    padding-right: 16px;
}

.search-box i,
.search-box .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-panel-solid);
    border: 1px solid var(--border-subtle);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    box-shadow: var(--shadow-panel);
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 12px;
    color: var(--text-primary);
    text-decoration: none;
    transition: background var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 13px;
}

.search-result-item:hover {
    background: rgba(200, 168, 72, 0.03);
    color: var(--gold);
    text-shadow: none;
}


/* ─────────────────────────────────────────────────────────────
   37. CHANGELOG / PATCH NOTES
   ───────────────────────────────────────────────────────────── */

.changelog-entry {
    padding: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.changelog-entry:last-child {
    border-bottom: none;
}

.changelog-version {
    font-family: var(--font-display);
    font-size: 14px;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 4px;
}

.changelog-date {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.changelog-list {
    margin: 0;
    padding: 0;
}

.changelog-list li {
    padding: 4px 0 4px 20px;
    font-size: 12px;
    color: var(--text-secondary);
    position: relative;
    list-style: none;
}

.changelog-list li::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 10px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gold-dim);
}

.changelog-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-right: 6px;
}

.changelog-tag.new {
    background: rgba(68, 208, 88, 0.12);
    color: var(--green-online);
}

.changelog-tag.fix {
    background: rgba(58, 123, 213, 0.12);
    color: var(--blue-accent);
}

.changelog-tag.change {
    background: rgba(200, 168, 72, 0.12);
    color: var(--gold);
}

.changelog-tag.remove {
    background: rgba(208, 80, 80, 0.12);
    color: var(--red);
}


/* ─────────────────────────────────────────────────────────────
   38. POWERBAR / STAT BAR
   ───────────────────────────────────────────────────────────── */

.stat-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    min-width: 60px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.stat-bar {
    flex: 1;
    height: 6px;
    background: rgba(8, 10, 18, 0.6);
    border-radius: 3px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s ease;
}

.stat-bar-hp {
    background: linear-gradient(90deg, #8a2020, var(--red));
}

.stat-bar-mp {
    background: linear-gradient(90deg, #1a3a8a, var(--blue-accent));
}

.stat-value {
    font-size: 11px;
    color: var(--text-secondary);
    min-width: 40px;
    text-align: right;
    font-weight: 600;
}


/* ─────────────────────────────────────────────────────────────
   39. DROPDOWN MENU
   ───────────────────────────────────────────────────────────── */

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 180px;
    background: var(--bg-panel-solid);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-panel);
    z-index: 200;
    padding: 6px 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: all var(--transition);
}

.dropdown.open .dropdown-menu {
    opacity: 1;
    pointer-events: all;
    transform: translateY(4px);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    font-size: 12px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    font-family: var(--font-body);
}

.dropdown-item i {
    width: 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
}

.dropdown-item:hover {
    background: rgba(200, 168, 72, 0.04);
    color: var(--gold);
}

.dropdown-item:hover i {
    color: var(--gold-dim);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 4px 0;
}


/* ─────────────────────────────────────────────────────────────
   40. NOTIFICATIONS / TOAST
   ───────────────────────────────────────────────────────────── */

.toast-container {
    position: fixed;
    top: 84px;
    right: 24px;
    z-index: 4000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    background: var(--bg-panel-solid);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    box-shadow: var(--shadow-panel);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 280px;
    max-width: 400px;
    pointer-events: all;
    animation: fadeIn 0.3s ease-out;
}

.toast-icon {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 2px;
}

.toast-message {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.5;
}

.toast-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.toast-close:hover {
    color: var(--text-primary);
}

.toast-success {
    border-left: 3px solid var(--green-online);
}

.toast-success .toast-icon {
    color: var(--green-online);
}

.toast-error {
    border-left: 3px solid var(--red);
}

.toast-error .toast-icon {
    color: var(--red);
}


/* ─────────────────────────────────────────────────────────────
   41. IMAGE LIGHTBOX OVERLAY
   ───────────────────────────────────────────────────────────── */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    cursor: zoom-out;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}

.lightbox.open {
    opacity: 1;
    pointer-events: all;
}

.lightbox img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    opacity: 0.6;
    transition: opacity var(--transition);
}

.lightbox-close:hover {
    opacity: 1;
}


/* ─────────────────────────────────────────────────────────────
   42. CREATURE / MONSTER LIST
   ───────────────────────────────────────────────────────────── */

.creature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    padding: 16px;
}

.creature-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    text-align: center;
    padding: 16px 10px;
    transition: all var(--transition);
    text-decoration: none;
    display: block;
}

.creature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.creature-card img {
    margin: 0 auto 8px;
    image-rendering: pixelated;
    width: 64px;
    height: 48px;
    object-fit: contain;
}

.creature-card .name {
    font-size: 11px;
    color: var(--text-primary);
    font-weight: 600;
}

.creature-card:hover .name {
    color: var(--gold);
}


/* ─────────────────────────────────────────────────────────────
   43. CARD GRID (generic)
   ───────────────────────────────────────────────────────────── */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.card {
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition);
}

.card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.card-image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.card:hover .card-image img {
    transform: scale(1.03);
}

.card-body {
    padding: 16px;
}

.card-title {
    font-family: var(--font-display);
    font-size: 13px;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.card-text {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
}


/* ─────────────────────────────────────────────────────────────
   44. TICKER / ANNOUNCEMENT BAR
   ───────────────────────────────────────────────────────────── */

.announcement-bar {
    background: rgba(200, 168, 72, 0.08);
    border-bottom: 1px solid var(--border-subtle);
    padding: 8px 24px;
    text-align: center;
    font-size: 12px;
    color: var(--gold);
    letter-spacing: 0.5px;
}

.announcement-bar a {
    color: var(--gold-bright);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.announcement-bar a:hover {
    color: #ffffff;
}


/* ─────────────────────────────────────────────────────────────
   45. COOKIE / PRIVACY BANNER
   ───────────────────────────────────────────────────────────── */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-panel-solid);
    border-top: 1px solid var(--border-subtle);
    padding: 16px 24px;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
}

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

.cookie-banner a {
    color: var(--gold);
}


/* ─────────────────────────────────────────────────────────────
   46. WYSIWYG / RICH TEXT EDITOR OVERRIDES
   ───────────────────────────────────────────────────────────── */

.mce-tinymce,
.tox-tinymce {
    border: 1px solid var(--border-subtle) !important;
    border-radius: var(--radius-sm) !important;
}

.mce-panel,
.tox-toolbar,
.tox-toolbar__primary {
    background: var(--bg-header) !important;
    border-color: var(--border-subtle) !important;
}

iframe[id*="mce"] {
    background: var(--bg-input) !important;
}


/* ─────────────────────────────────────────────────────────────
   47. CAPTCHA WRAPPER
   ───────────────────────────────────────────────────────────── */

.captcha-wrapper {
    margin: 16px 0;
    display: flex;
    justify-content: center;
}

.captcha-wrapper > div {
    border-radius: var(--radius-sm);
    overflow: hidden;
}


/* ─────────────────────────────────────────────────────────────
   48. RESPONSIVE BREAKPOINTS
   ───────────────────────────────────────────────────────────── */

/* 1200px — medium screens */
@media (max-width: 1200px) {
    .feat-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .home-gallery {
        width: 260px;
    }

    #left-col {
        width: 220px;
    }

    #right-col {
        width: 240px;
    }

    .hero-title {
        font-size: 42px;
        letter-spacing: 6px;
    }
}

/* 1000px — tablet / single column */
@media (max-width: 1000px) {
    .top-nav-links {
        display: none !important;
    }

    .mobile-toggle {
        display: flex !important;
    }

    #left-col {
        display: none !important;
    }

    #right-col {
        display: none !important;
    }

    #wrapper {
        flex-direction: column;
        margin-top: 56px;
        padding: 16px;
        gap: 16px;
    }

    #center-col {
        width: 100%;
    }

    .hero-title {
        font-size: 36px;
        letter-spacing: 4px;
    }

    .hero-content {
        padding: 40px 20px 30px;
    }

    #hero {
        min-height: 320px;
    }

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

    .login-page-layout {
        flex-direction: column;
    }

    #account-manage {
        flex-direction: column;
    }

    #account-manage #one,
    #one {
        width: 100%;
    }

    .top-nav-login {
        display: none;
    }
}

/* 768px — small tablet */
@media (max-width: 768px) {
    .feat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-row {
        flex-direction: column;
    }

    .home-gallery {
        width: 100%;
    }

    .hero-title {
        font-size: 28px;
        letter-spacing: 3px;
    }

    .hero-subtitle {
        font-size: 11px;
        letter-spacing: 4px;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
    }

    .hbtn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .content-box {
        padding: 16px;
    }

    .content-box h1 {
        font-size: 18px;
        letter-spacing: 2px;
    }

    .content-box h2 {
        font-size: 15px;
    }

    .countdown-value {
        font-size: 22px;
    }

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

    .footer-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-links a {
        margin-left: 0;
        margin: 0 8px;
    }

    .cookie-banner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .form-row {
        flex-direction: column;
    }

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

/* 500px — mobile */
@media (max-width: 500px) {
    .feat-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 22px;
        letter-spacing: 2px;
    }

    .hero-subtitle {
        font-size: 10px;
        letter-spacing: 3px;
    }

    .hero-tagline {
        font-size: 12px;
    }

    .hero-content {
        padding: 30px 16px 24px;
    }

    #hero {
        min-height: 280px;
    }

    .hsl-deco {
        width: 30px;
    }

    body {
        font-size: 13px;
    }

    .content-box h1 {
        font-size: 16px;
    }

    .content-box h2 {
        font-size: 14px;
    }

    .content-box {
        padding: 14px;
    }

    #wrapper {
        padding: 10px;
    }

    .top-nav-logo .logo-text {
        font-size: 15px;
        letter-spacing: 2px;
    }

    #top-nav {
        height: 56px;
    }

    .countdown {
        gap: 8px;
    }

    .countdown-value {
        font-size: 18px;
    }

    .status-count {
        font-size: 28px;
    }

    .pagination a,
    .pagination span {
        min-width: 30px;
        height: 30px;
        font-size: 10px;
    }

    .modal {
        margin: 10px;
        max-width: calc(100% - 20px);
    }

    .toast-container {
        right: 10px;
        left: 10px;
    }

    .toast {
        min-width: auto;
        max-width: none;
    }
}

/* Ultra small devices */
@media (max-width: 360px) {
    .hero-title {
        font-size: 18px;
        letter-spacing: 1px;
    }

    .hero-subtitle-line {
        gap: 10px;
    }

    .top-nav-logo .logo-text {
        font-size: 13px;
    }

    .top-nav-inner {
        padding: 0 12px;
    }
}


/* ─────────────────────────────────────────────────────────────
   49. PRINT STYLES
   ───────────────────────────────────────────────────────────── */

@media print {
    #top-nav,
    .top-nav,
    #left-col,
    #right-col,
    #hero,
    #features,
    footer,
    #footer,
    .footer,
    .mobile-overlay,
    .mobile-toggle,
    .social-icons,
    .cookie-banner,
    .toast-container {
        display: none !important;
    }

    body {
        background: #ffffff !important;
        color: #000000 !important;
        font-size: 12pt !important;
    }

    #wrapper {
        margin: 0 !important;
        padding: 0 !important;
        max-width: 100% !important;
    }

    #center-col {
        width: 100% !important;
    }

    .content-box {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    .content-box h1,
    .content-box h2,
    .content-box h3 {
        color: #000000 !important;
    }

    .content-box p,
    .content-box td,
    .content-box li {
        color: #333333 !important;
    }

    a {
        color: #000000 !important;
        text-decoration: underline !important;
    }

    table {
        border: 1px solid #cccccc !important;
    }

    th {
        background: #f0f0f0 !important;
        color: #000000 !important;
        border-bottom: 2px solid #cccccc !important;
    }

    td {
        border-bottom: 1px solid #e0e0e0 !important;
        color: #333333 !important;
    }
}


/* ─────────────────────────────────────────────────────────────
   50. LAST-RESORT OVERRIDES & CLEANUP
   ───────────────────────────────────────────────────────────── */

/* Kill any remaining legacy borders/backgrounds */
table[cellpadding],
table[cellspacing],
table[border] {
    border-collapse: collapse !important;
}

table[border] {
    border: 1px solid var(--border-subtle) !important;
}

td[valign],
th[valign] {
    vertical-align: middle !important;
}

/* Ensure no horizontal overflow */
.content-box img {
    max-width: 100%;
    height: auto;
}

/* Center legacy content images */
.content-box center {
    display: block;
    text-align: center;
}

/* Legacy font tags */
font[size="1"] { font-size: 10px !important; }
font[size="2"] { font-size: 12px !important; }
font[size="3"] { font-size: 14px !important; }
font[size="4"] { font-size: 16px !important; }
font[size="5"] { font-size: 18px !important; }
font[size="6"] { font-size: 22px !important; }
font[size="7"] { font-size: 28px !important; }

/* Legacy align */
div[align="center"],
p[align="center"],
td[align="center"] {
    text-align: center;
}

/* Kill any image borders from legacy HTML */
img {
    border: 0;
}

/* Ensure text wrapping on long strings */
.content-box td,
.content-box th {
    word-break: break-word;
}

/* MyAAC specific class overrides */
.widget-body {
    padding: 0 !important;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    background: var(--bg-panel-solid);
    color: var(--gold);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    z-index: 10000;
    font-size: 12px;
    transition: top var(--transition);
}

.skip-link:focus {
    top: 8px;
}

/* Hide elements with .hidden class */
.hidden {
    display: none !important;
}

/* Vue v-cloak directive */
[v-cloak] {
    display: none;
}

/* Clearfix for legacy floats */
.clearfix::after {
    content: '';
    display: block;
    clear: both;
}

/* Normalize hr inside content */
.content-box hr {
    border: none;
    height: 1px;
    background: var(--border-subtle);
    margin: 20px 0;
}

/* Tibia-specific item image rendering */
.item-image,
.outfit-image,
.creature-image {
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

/* Smooth anchor scroll offset for fixed nav */
:target {
    scroll-margin-top: 60px;
}

/* End of Saphira Premium CSS */
