/* ============================================================
   SIXORA — Premium Dark Theme v4
   Last updated: 2026-03-01 01:20
   ============================================================ */

:root {
    --sx-bg-0: #060810;
    --sx-bg-1: #0c1018;
    --sx-bg-2: #131822;
    --sx-bg-3: #1a1f2c;
    --sx-silver: #d4d4dc;
    --sx-silver-soft: #a8a8b4;
    --sx-gold: #d4af7d;
    --sx-gold-bright: #f2d89e;
    --sx-gold-soft: #ccb590;
    --sx-gold-dark: #8a7040;
    --sx-text: #e0e0e8;
    --sx-muted: #6e7280;
    --sx-line: rgba(212, 175, 125, 0.22);
    --sx-line-soft: rgba(212, 175, 125, 0.10);
    --sx-glass: rgba(10, 14, 20, 0.88);
    --sx-glass-border: rgba(200, 200, 208, 0.10);
    --sx-green: #4ade80;
    --sx-red: #ef4444;
    --sx-radius: 10px;
    --sx-radius-lg: 14px;
    --sx-shadow-gold: 0 0 40px rgba(212, 175, 125, 0.08);
    --sx-glow-gold: 0 0 80px rgba(212, 175, 125, 0.05);
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes goldGlow {
    0%, 100% { box-shadow: 0 0 8px rgba(212, 175, 125, 0.15); }
    50%      { box-shadow: 0 0 20px rgba(212, 175, 125, 0.30); }
}
@keyframes pulseGreen {
    0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
    50%      { box-shadow: 0 0 0 5px rgba(74, 222, 128, 0); }
}
@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}
@keyframes subtlePulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.7; }
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }

body {
    color: var(--sx-text);
    font-family: CronosPro, "Open Sans", "Segoe UI", sans-serif;
    background: var(--sx-bg-0);
    background-image:
        radial-gradient(ellipse at 50% -10%, rgba(212, 175, 125, 0.12) 0%, transparent 45%),
        radial-gradient(ellipse at 80% 60%, rgba(212, 175, 125, 0.05) 0%, transparent 40%),
        radial-gradient(ellipse at 20% 40%, rgba(212, 175, 125, 0.04) 0%, transparent 40%),
        linear-gradient(180deg, rgba(6, 8, 12, 0.4), rgba(6, 8, 12, 0.96)),
        url(../images/sixora-bg.png);
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Top gold line across entire page */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--sx-gold-dark), var(--sx-gold-bright), var(--sx-gold-dark), transparent);
    z-index: 9999;
    pointer-events: none;
}

a { color: var(--sx-silver); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--sx-gold); text-decoration: none; }

h1, h2, h3, h4, h5, h6 { color: var(--sx-silver); }

.page-width {
    width: min(1200px, calc(100% - 30px));
    margin: 0 auto;
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.main-hd {
    position: relative;
    z-index: 10;
    margin: 0 0 24px;
}

.main-hd::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 125, 0.25), transparent);
}

.main-hd .page-width {
    position: relative;
    min-height: 340px;
}

.main-hd h1 {
    margin: 0;
    position: absolute;
    left: 10px;
    top: 60px;
    width: 360px;
    height: 190px;
    background: url(../images/sixora_logo.png) no-repeat center center;
    background-size: contain;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.5))
            drop-shadow(0 0 40px rgba(212, 175, 125, 0.08));
    transition: filter 0.3s;
}

.main-hd h1:hover {
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.5))
            drop-shadow(0 0 50px rgba(212, 175, 125, 0.15));
}

.main-hd h1 a {
    display: block;
    width: 100%;
    height: 100%;
}

/* Top bar (external links) */
.main-hd .external {
    position: absolute;
    top: 10px;
    right: 0;
    left: auto;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-hd .external .menu-item,
.main-hd .external li:first-child,
.main-hd .external li:last-child {
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    height: auto;
}

.main-hd .external a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 16px !important;
    border: 1px solid rgba(200, 200, 208, 0.22);
    border-radius: 999px;
    background: rgba(10, 12, 18, 0.65) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--sx-silver) !important;
    font: 700 11.5px EasonProDisplayCaps, EasonPro, "Times New Roman", serif;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    transition: all 0.25s;
}

.main-hd .external a:hover {
    border-color: var(--sx-gold);
    color: var(--sx-gold) !important;
    background: rgba(212, 175, 125, 0.08) !important;
    box-shadow: 0 0 16px rgba(212, 175, 125, 0.12);
}

/* Main navigation */
.main-hd .main {
    position: absolute;
    right: 0;
    top: 214px;
    width: calc(100% - 390px);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 2px 6px;
    font-size: 42px;
}

.main-hd .main > .menu-item { margin: 0; }
.main-hd .main .menu-item { position: relative; }

.main-hd .main a {
    position: relative;
    display: inline-block;
    padding: 4px 8px;
    color: var(--sx-silver) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    transition: transform 0.2s ease, color 0.2s ease, text-shadow 0.2s ease;
}

.main-hd .main a:hover {
    color: var(--sx-gold) !important;
    transform: scale(1.06);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 125, 0.2);
}

.main-hd .main a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--sx-gold), transparent);
    transition: width 0.25s, left 0.25s;
}

.main-hd .main a:hover::after {
    width: 80%;
    left: 10%;
}

.main-hd .main .menu-item:hover > .sub-menu { display: block; }

.main-hd .sub-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 190px;
    padding: 8px;
    border: 1px solid var(--sx-line);
    border-radius: var(--sx-radius);
    background: rgba(12, 14, 20, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.2s ease;
}

.main-hd .sub-menu::after { display: none; }
.main-hd .sub-menu li { border: 0; margin: 0; }

.main-hd .sub-menu a {
    margin: 0;
    display: block;
    font-size: 15px;
    padding: 8px 10px;
    border-radius: 7px;
    color: var(--sx-silver-soft) !important;
}

.main-hd .sub-menu a:hover {
    background: rgba(212, 175, 125, 0.10);
    color: var(--sx-gold) !important;
}

/* Online counter badge in nav */
.sx-online-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px !important;
    border: 1px solid rgba(74, 222, 128, 0.25) !important;
    border-radius: 999px;
    background: rgba(74, 222, 128, 0.06) !important;
    color: var(--sx-green) !important;
    font: 700 11px EasonProDisplayCaps, EasonPro, sans-serif !important;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.sx-online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sx-green);
    animation: pulseGreen 2s infinite;
}

/* ============================================================
   CONTENT AREA
   ============================================================ */
#content { position: relative; }
#content::after { display: none !important; }

.article .page-padding.mt2cms2-c.page-bd {
    position: relative;
    margin: 0;
    padding: 32px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
    border: 1px solid rgba(212, 175, 125, 0.15);
    border-top: 3px solid var(--sx-gold);
    border-radius: var(--sx-radius-lg);
    background:
        radial-gradient(ellipse at 50% 0%, rgba(212, 175, 125, 0.05), transparent 40%),
        radial-gradient(ellipse at 0% 50%, rgba(212, 175, 125, 0.02), transparent 40%),
        linear-gradient(170deg,
            rgba(14, 18, 26, 0.98) 0%,
            rgba(8, 12, 18, 0.99) 100%);
    box-shadow:
        0 30px 100px rgba(0, 0, 0, 0.6),
        0 0 150px rgba(212, 175, 125, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    animation: fadeIn 0.5s ease;
}

.article .page-padding.mt2cms2-c.page-bd::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--sx-gold-bright), transparent);
    opacity: 0.6;
}

.article .mt2cms2-c {
    min-height: 0;
    padding-top: 0;
    background: none !important;
    overflow: visible;
}

.article .mt2cms2-c-l,
.article .mt2cms2-c-s {
    float: none;
    width: auto;
    margin: 0;
}

.article .mt2cms2-c-l .bd-c,
.article .mt2cms2-c-s .bd-c { margin: 0; }

.container {
    width: 100%;
    max-width: none !important;
    padding: 0;
    margin: 0;
}

/* ============================================================
   PAGE HEADERS
   ============================================================ */
.article .page-hd,
.page-template-template-community-php .page-hd,
.page-template-template-blog-php .page-hd {
    height: auto;
    margin: 0 0 22px;
    padding: 20px 22px 18px;
    border: 1px solid rgba(212, 175, 125, 0.15);
    border-left: 3px solid var(--sx-gold);
    border-radius: var(--sx-radius);
    background: linear-gradient(135deg, rgba(20, 24, 32, 0.95), rgba(14, 18, 24, 0.98)) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), var(--sx-shadow-gold);
}

.article .page-hd[style],
.article .page-hd[style*="background"] {
    background-image: none !important;
}

.article .page-hd::before,
.article .page-hd::after,
.page-template-template-community-php .page-hd::before,
.page-template-template-blog-php .page-hd::before {
    content: none !important;
}

.article .page-hd h2,
.page-hd h2.pre-social,
.pre-social {
    margin: 0 0 4px;
    font: 700 54px/0.95 EasonPro, "Times New Roman", serif;
    letter-spacing: 0.5px;
    color: #d7d7df;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.page-hd h6 {
    margin: 0;
    color: var(--sx-muted);
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

/* ============================================================
   HERO SECTION (Homepage)
   ============================================================ */
.sx-hero {
    position: relative;
    margin: -28px -28px 26px;
    padding: 64px 32px 52px;
    background:
        linear-gradient(180deg, rgba(8, 10, 14, 0.15) 0%, rgba(8, 10, 14, 0.92) 100%),
        radial-gradient(ellipse at 50% 30%, rgba(212, 175, 125, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 50%, rgba(212, 175, 125, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(212, 175, 125, 0.04) 0%, transparent 50%),
        url(../images/sixora-bg.png) center top / cover no-repeat;
    border-bottom: 2px solid rgba(212, 175, 125, 0.15);
    text-align: center;
    overflow: hidden;
}

.sx-hero::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--sx-gold-bright), transparent);
    opacity: 0.6;
}

.sx-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 80px;
    background: radial-gradient(ellipse at 50% 100%, rgba(212, 175, 125, 0.06), transparent);
    pointer-events: none;
}

.sx-hero-title {
    margin: 0 0 10px;
    font: 700 52px/1 EasonPro, "Times New Roman", serif;
    color: #eaeaf2;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 0 0 60px rgba(212, 175, 125, 0.05);
    animation: fadeInUp 0.5s ease;
}

.sx-hero-title span {
    background: linear-gradient(135deg, var(--sx-gold-bright), var(--sx-gold), var(--sx-gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(212, 175, 125, 0.3));
}

.sx-hero-sub {
    margin: 0 0 32px;
    color: var(--sx-silver-soft);
    font-size: 16px;
    letter-spacing: 0.5px;
    animation: fadeInUp 0.5s ease 0.1s both;
}

.sx-hero-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    animation: fadeInUp 0.5s ease 0.2s both;
}

.sx-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none !important;
}

.sx-hero-btn.primary {
    background: linear-gradient(135deg, var(--sx-gold-bright), var(--sx-gold), var(--sx-gold-dark)) !important;
    color: #0a0d12 !important;
    border: 1px solid var(--sx-gold) !important;
    box-shadow:
        0 4px 16px rgba(212, 175, 125, 0.3),
        0 0 40px rgba(212, 175, 125, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.sx-hero-btn.primary:hover {
    background: linear-gradient(135deg, #fae4b0, var(--sx-gold-bright), var(--sx-gold)) !important;
    box-shadow:
        0 8px 32px rgba(212, 175, 125, 0.4),
        0 0 60px rgba(212, 175, 125, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.sx-hero-btn.secondary {
    background: rgba(200, 200, 208, 0.06) !important;
    color: var(--sx-silver) !important;
    border: 1px solid rgba(200, 200, 208, 0.20) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.sx-hero-btn.secondary:hover {
    background: rgba(200, 200, 208, 0.12) !important;
    border-color: var(--sx-silver) !important;
    color: #fff !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* ============================================================
   STATS BAR
   ============================================================ */
.sx-stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 0 0 22px;
    animation: fadeInUp 0.5s ease 0.3s both;
}

.sx-stat {
    position: relative;
    padding: 18px 14px;
    text-align: center;
    border: 1px solid rgba(212, 175, 125, 0.12);
    border-radius: var(--sx-radius);
    background: linear-gradient(180deg, rgba(18, 22, 30, 0.95), rgba(12, 16, 22, 0.98));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.sx-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--sx-gold), transparent);
    opacity: 0.4;
    transition: opacity 0.3s;
}

.sx-stat::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(212, 175, 125, 0.06), transparent 70%);
    pointer-events: none;
}

.sx-stat:hover {
    border-color: rgba(212, 175, 125, 0.25);
    transform: translateY(-3px);
    box-shadow:
        0 12px 36px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(212, 175, 125, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.sx-stat:hover::before { opacity: 0.8; }

.sx-stat-value {
    position: relative;
    display: block;
    font-size: 30px;
    font-weight: 800;
    color: var(--sx-gold-bright);
    line-height: 1;
    margin-bottom: 4px;
    text-shadow: 0 0 20px rgba(212, 175, 125, 0.25);
}

.sx-stat-value.online {
    color: var(--sx-green);
    text-shadow: 0 0 20px rgba(74, 222, 128, 0.25);
}

.sx-stat-label {
    position: relative;
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: var(--sx-muted);
}

.sx-stat-icon {
    position: relative;
    display: block;
    font-size: 16px;
    margin-bottom: 6px;
    color: var(--sx-gold-soft);
    opacity: 0.5;
    transition: opacity 0.3s;
}

.sx-stat:hover .sx-stat-icon { opacity: 0.8; }

/* ============================================================
   NEWS SECTION HEADER
   ============================================================ */
.sx-section-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 18px;
    padding: 0 0 14px;
    border-bottom: 1px solid rgba(212, 175, 125, 0.15);
}

.sx-section-hd h3 {
    margin: 0;
    font: 700 24px/1 EasonPro, "Times New Roman", serif;
    color: var(--sx-silver);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.sx-section-hd .sx-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--sx-gold);
    border: 1px solid rgba(212, 175, 125, 0.20);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(212, 175, 125, 0.08), rgba(212, 175, 125, 0.03));
    box-shadow: 0 2px 8px rgba(212, 175, 125, 0.05);
}

/* ============================================================
   TEXT / CONTENT
   ============================================================ */
.article p, .article dl, .article li, .article td, .article th, .article label {
    color: var(--sx-text);
}

.article p, .article dl { line-height: 1.7; }

.article h3 {
    margin: 10px 0 8px;
    font-size: 28px;
    color: var(--sx-gold);
}

.article .blogroll {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ============================================================
   BLOG / NEWS POSTS
   ============================================================ */
.blog-post {
    position: relative;
    margin-bottom: 16px;
    padding: 20px 20px 18px;
    border-radius: var(--sx-radius);
    border: 1px solid rgba(212, 175, 125, 0.08);
    border-left: 3px solid rgba(212, 175, 125, 0.15);
    background: linear-gradient(135deg, rgba(18, 22, 30, 0.95), rgba(12, 16, 22, 0.98));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow:
        0 2px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.4s ease both;
}

.blog-post:nth-child(1) { animation-delay: 0.05s; }
.blog-post:nth-child(2) { animation-delay: 0.10s; }
.blog-post:nth-child(3) { animation-delay: 0.15s; }
.blog-post:nth-child(4) { animation-delay: 0.20s; }
.blog-post:nth-child(5) { animation-delay: 0.25s; }

.blog-post::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--sx-gold-soft), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}

.blog-post:hover {
    border-left-color: var(--sx-gold);
    border-color: rgba(212, 175, 125, 0.18);
    background: linear-gradient(135deg, rgba(22, 26, 36, 0.98), rgba(16, 20, 28, 0.99));
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.25),
        0 0 40px rgba(212, 175, 125, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform: translateX(3px);
}

.blog-post:hover::after { opacity: 0.5; }

.article .mt2cms2-c-l .blog-title { margin: 0 0 6px; }

.blog-title a {
    color: var(--sx-silver);
    transition: color 0.2s, text-shadow 0.2s;
    font-weight: 600;
}

.blog-title a:hover {
    color: var(--sx-gold);
    text-shadow: 0 0 20px rgba(212, 175, 125, 0.15);
}

.blog-attribution,
.blog-post small,
.blog-post .text-muted {
    color: var(--sx-muted) !important;
    font-size: 12px;
    letter-spacing: 0.3px;
}

.blog-post .btn {
    margin-top: 8px;
}

.blog-post img, .blog-post center img {
    max-width: 100%;
    height: auto;
    border-radius: var(--sx-radius);
    margin: 10px 0;
}

.blog-post .more a {
    color: var(--sx-gold);
    font-weight: 600;
    transition: color 0.2s;
}
.blog-post .more a:hover {
    color: var(--sx-gold-bright);
}

/* ============================================================
   FORMS
   ============================================================ */
.jumbotron {
    position: relative;
    margin: 0 0 14px;
    padding: 1.2rem !important;
    border: 1px solid rgba(212, 175, 125, 0.08);
    border-radius: var(--sx-radius);
    background: linear-gradient(135deg, rgba(18, 22, 30, 0.92), rgba(12, 16, 22, 0.95));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.form-group { margin-bottom: 12px; }

.form-control,
.input-group-text {
    border: 1px solid rgba(200, 200, 208, 0.10) !important;
    color: #fff !important;
    background: linear-gradient(180deg, rgba(10, 13, 18, 0.95), rgba(8, 10, 14, 0.98)) !important;
    border-radius: 8px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
}

.form-control {
    min-height: 46px;
    font-size: 14px;
}

.form-control::placeholder { color: #4a4e5a; }

.form-control:focus {
    border-color: rgba(212, 175, 125, 0.40) !important;
    box-shadow:
        0 0 0 3px rgba(212, 175, 125, 0.08),
        inset 0 2px 4px rgba(0, 0, 0, 0.1),
        0 0 20px rgba(212, 175, 125, 0.04) !important;
    background: linear-gradient(180deg, rgba(14, 17, 24, 0.98), rgba(10, 13, 18, 0.99)) !important;
}

.btn,
button,
input[type="submit"] {
    position: relative;
    border: 1px solid rgba(200, 200, 208, 0.20) !important;
    border-radius: 8px !important;
    background: linear-gradient(180deg, rgba(30, 34, 44, 0.9), rgba(18, 22, 30, 0.95)) !important;
    color: var(--sx-silver) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600 !important;
    font-size: 13px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn:hover,
button:hover,
input[type="submit"]:hover {
    border-color: var(--sx-gold) !important;
    background: linear-gradient(180deg, rgba(40, 44, 54, 0.95), rgba(24, 28, 36, 0.98)) !important;
    color: var(--sx-gold) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), 0 0 20px rgba(212, 175, 125, 0.06);
    transform: translateY(-1px);
}

.btn:active,
button:active,
input[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.btn.btn-block, input.btn-block { width: 100%; }

.btn-success,
input.btn-success {
    border-color: rgba(212, 175, 125, 0.35) !important;
    background: linear-gradient(135deg, rgba(212, 175, 125, 0.15), rgba(170, 140, 90, 0.08)) !important;
    color: var(--sx-gold) !important;
    box-shadow: 0 2px 12px rgba(212, 175, 125, 0.08);
}

.btn-success:hover,
input.btn-success:hover {
    background: linear-gradient(135deg, rgba(212, 175, 125, 0.25), rgba(170, 140, 90, 0.12)) !important;
    border-color: rgba(212, 175, 125, 0.5) !important;
    box-shadow: 0 4px 20px rgba(212, 175, 125, 0.15), 0 0 30px rgba(212, 175, 125, 0.05);
    color: var(--sx-gold-bright) !important;
}

.alert {
    border-radius: var(--sx-radius);
    border: 1px solid var(--sx-line-soft);
    background: rgba(10, 13, 18, 0.92);
    backdrop-filter: blur(6px);
    color: var(--sx-text);
}

/* ============================================================
   TABS
   ============================================================ */
.nav-tabs {
    border-bottom: 0;
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-bottom: 10px;
}

.nav-tabs .nav-item { margin: 0; }

.nav-tabs .nav-link {
    border: 1px solid rgba(200, 200, 208, 0.12);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(18, 22, 30, 0.9), rgba(12, 16, 22, 0.95));
    color: var(--sx-silver);
    transition: all 0.25s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.nav-tabs .nav-link.active {
    border-color: var(--sx-gold);
    color: var(--sx-gold);
    background: linear-gradient(180deg, rgba(212, 175, 125, 0.12), rgba(212, 175, 125, 0.04));
    box-shadow: 0 2px 12px rgba(212, 175, 125, 0.08), inset 0 1px 0 rgba(212, 175, 125, 0.1);
}

.nav-tabs .nav-link:hover {
    border-color: rgba(212, 175, 125, 0.3);
    color: var(--sx-gold);
    background: rgba(212, 175, 125, 0.06);
}

/* ============================================================
   TABLES
   ============================================================ */
.table {
    margin-bottom: 0;
    color: #fff;
    border-collapse: separate;
    border-spacing: 0;
}

.table > :not(caption) > * > * {
    border-width: 0 !important;
    padding: 10px 8px;
}

.table thead th,
.thead-inverse th {
    text-align: center;
    color: #ffeab4;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    background: linear-gradient(180deg, rgba(110, 95, 56, 0.9) 0%, rgba(75, 62, 38, 0.95) 100%);
    border-bottom: 2px solid rgba(212, 175, 125, 0.35) !important;
    position: relative;
}

.table thead th:first-child { border-radius: 6px 0 0 0; }
.table thead th:last-child { border-radius: 0 6px 0 0; }

.table tbody tr {
    text-align: center;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(200, 200, 208, 0.04);
}

.table tbody tr:nth-child(even) {
    background: rgba(212, 175, 125, 0.02);
}

.table-hover tbody tr:hover {
    background: rgba(212, 175, 125, 0.08);
    box-shadow: inset 3px 0 0 var(--sx-gold);
}

.table tbody td {
    vertical-align: middle;
}

/* Top 3 ranking rows */
.table tbody tr:nth-child(1) th strong,
.table tbody tr:nth-child(2) th strong,
.table tbody tr:nth-child(3) th strong {
    color: var(--sx-gold-bright);
    text-shadow: 0 0 10px rgba(212, 175, 125, 0.3);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.wp-pagenavi {
    margin: 14px 0 0;
    padding: 0;
    background: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.wp-pagenavi a,
.wp-pagenavi .current {
    margin: 0;
    height: auto;
    line-height: 1;
    padding: 8px 14px;
    border: 1px solid rgba(200, 200, 208, 0.12);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(18, 22, 30, 0.9), rgba(12, 16, 22, 0.95));
    color: var(--sx-silver);
    font-weight: 700;
    font-size: 13px;
    transition: all 0.25s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.wp-pagenavi .current {
    border-color: var(--sx-gold);
    color: var(--sx-gold);
    background: linear-gradient(180deg, rgba(212, 175, 125, 0.12), rgba(212, 175, 125, 0.05));
    box-shadow: 0 2px 12px rgba(212, 175, 125, 0.1);
}

.wp-pagenavi a:hover {
    border-color: var(--sx-gold-soft);
    color: var(--sx-gold);
    background: linear-gradient(180deg, rgba(212, 175, 125, 0.08), rgba(212, 175, 125, 0.03));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.widget-container {
    margin: 0 0 16px;
}

.widget-container .widget {
    border-radius: var(--sx-radius);
    overflow: hidden;
}

.mod-main { background: none; }

.widget .bd {
    position: relative;
    margin-bottom: 0;
    padding: 18px;
    border: 1px solid rgba(212, 175, 125, 0.10);
    border-top: 2px solid var(--sx-gold-dark);
    border-radius: var(--sx-radius);
    background: linear-gradient(180deg, rgba(18, 22, 30, 0.95), rgba(12, 16, 22, 0.98));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.2),
        0 0 60px rgba(212, 175, 125, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: all 0.3s;
}

.widget .bd::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--sx-gold), transparent);
    opacity: 0.3;
}

.widget .bd:hover {
    border-color: rgba(212, 175, 125, 0.15);
    box-shadow:
        0 6px 32px rgba(0, 0, 0, 0.25),
        0 0 80px rgba(212, 175, 125, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.top-sidebar {
    padding: 0 0 12px;
    text-align: left;
    color: #f0f0f4;
    border-bottom: 1px solid rgba(212, 175, 125, 0.18);
}

.top-sidebar h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--sx-gold);
    text-shadow: 0 0 20px rgba(212, 175, 125, 0.1);
}

hr {
    border: 0;
    height: 1px;
    margin: 11px 0;
    background: rgba(212, 175, 125, 0.16);
}

/* ============================================================
   LIST GROUP (User panel sidebar)
   ============================================================ */
.list-group {
    margin-bottom: 0;
    border-radius: var(--sx-radius);
    overflow: hidden;
}

.list-group-item {
    color: #d0d0d8;
    border-color: rgba(200, 200, 208, 0.06);
    background: rgba(14, 18, 26, 0.7);
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 2px solid transparent;
    font-size: 13.5px;
    letter-spacing: 0.2px;
}

.list-group-item:first-child { border-radius: 0; }
.list-group-item:last-child { border-radius: 0; }

.list-group-item:hover {
    color: var(--sx-gold);
    background: rgba(212, 175, 125, 0.06);
    border-left-color: var(--sx-gold);
    padding-left: 20px;
    box-shadow: inset 0 0 30px rgba(212, 175, 125, 0.02);
}

.list-group-item-danger {
    color: #f1bdbd;
}

.list-group-item-danger:hover {
    color: #ff9999;
    border-left-color: var(--sx-red);
    background: rgba(239, 68, 68, 0.05);
}

.list-group-item-warning {
    color: var(--sx-gold) !important;
    background: linear-gradient(90deg, rgba(212, 175, 125, 0.08), rgba(212, 175, 125, 0.02)) !important;
    border-left-color: var(--sx-gold);
    font-weight: 600;
}

.list-group-item-warning:hover {
    background: linear-gradient(90deg, rgba(212, 175, 125, 0.14), rgba(212, 175, 125, 0.04)) !important;
    box-shadow: inset 0 0 40px rgba(212, 175, 125, 0.03);
}

.list-group-item.disabled {
    color: #6a6e78;
    font-style: italic;
    font-size: 11px;
}

.list-group-item i.fa {
    width: 18px;
    text-align: center;
    margin-right: 6px;
    color: var(--sx-gold-soft);
    opacity: 0.7;
    transition: opacity 0.2s, color 0.2s;
}

.list-group-item:hover i.fa {
    opacity: 1;
    color: var(--sx-gold);
}

.list-group-item-danger i.fa { color: #f1bdbd; }
.list-group-item-danger:hover i.fa { color: #ff9999; }

/* Sidebar login form */
.sx-sidebar-login {
    padding-top: 14px;
}

.sx-sidebar-forgot {
    text-align: center;
    padding: 8px 0 4px;
    border-top: 1px solid rgba(212, 175, 125, 0.10);
    margin-top: 4px;
}

.sx-sidebar-forgot a {
    color: var(--sx-muted);
    font-size: 12px;
    transition: color 0.2s;
}

.sx-sidebar-forgot a:hover {
    color: var(--sx-gold);
}

/* ============================================================
   DOWNLOAD PAGE
   ============================================================ */
.sixora-download .sixora-page-hd { margin-bottom: 14px; }

.sixora-subtitle {
    margin: 0;
    font-size: 15px;
    color: var(--sx-muted);
}

.sixora-download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 14px;
}

.sixora-download-card {
    padding: 16px;
    border-radius: var(--sx-radius);
    border: 1px solid rgba(200, 200, 208, 0.12);
    background: rgba(14, 18, 24, 0.85);
    transition: all 0.25s;
}

.sixora-download-card:hover {
    border-color: rgba(212, 175, 125, 0.25);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.sixora-download-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.sixora-download-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 28px;
    color: #0a0d12;
    font-weight: 700;
    border-radius: 4px;
    background: linear-gradient(135deg, var(--sx-gold-bright), var(--sx-gold-dark));
}

.sixora-download-card h3 {
    margin: 0;
    font-size: 22px;
    color: var(--sx-silver);
}

.sixora-download-link {
    margin: 0 0 12px;
    color: var(--sx-muted);
    word-break: break-all;
    font-size: 13px;
}

.sixora-download-actions .btn { width: 100%; }

/* ---- Version Compare Cards ---- */
.sixora-version-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 8px;
}
@media (max-width: 700px) {
    .sixora-version-compare { grid-template-columns: 1fr; }
}
.sixora-version-card {
    padding: 22px;
    border-radius: var(--sx-radius);
    border: 1px solid rgba(200,200,208,0.10);
    background: rgba(14,18,24,0.85);
    position: relative;
    transition: border-color 0.25s, box-shadow 0.25s;
}
.sixora-version-card:hover {
    border-color: rgba(212,175,125,0.25);
    box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}
.sixora-version-new {
    border-color: rgba(212,175,125,0.25);
    background: linear-gradient(135deg, rgba(20,24,32,0.95), rgba(30,25,18,0.85));
}
.sixora-version-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--sx-gold-bright), var(--sx-gold-dark));
    color: #0a0d12;
    margin-bottom: 10px;
}
.sixora-badge-stable {
    background: linear-gradient(135deg, #6e7280, #4a4e58);
    color: #e0e0e8;
}
.sixora-version-card h3 {
    margin: 0 0 8px;
    font-size: 20px;
    color: var(--sx-silver);
    font-weight: 700;
}
.sixora-version-desc {
    margin: 0 0 14px;
    font-size: 13px;
    color: var(--sx-muted);
    line-height: 1.5;
}
.sixora-version-features {
    margin: 0 0 18px;
    padding-left: 18px;
    list-style: none;
}
.sixora-version-features li {
    position: relative;
    padding-left: 6px;
    margin-bottom: 5px;
    font-size: 13px;
    color: var(--sx-muted);
    line-height: 1.4;
}
.sixora-version-features li::before {
    content: "\f00c";
    font-family: FontAwesome;
    position: absolute;
    left: -16px;
    color: var(--sx-gold);
    font-size: 11px;
}
.sixora-version-stable .sixora-version-features li::before {
    color: var(--sx-muted);
}
.sixora-dl-btn {
    width: 100%;
    text-align: center;
}

/* ---- Install Guide ---- */
.sixora-install-guide {
    margin-top: 28px;
    padding: 24px;
    border-radius: var(--sx-radius);
    border: 1px solid rgba(200,200,208,0.10);
    background: rgba(14,18,24,0.85);
}
.sixora-guide-header h3 {
    margin: 0 0 18px;
    font-size: 20px;
    color: var(--sx-gold-bright);
    font-weight: 700;
}
.sixora-guide-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.sixora-guide-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px;
    border-radius: 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(200,200,208,0.06);
}
.sixora-step-num {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sx-gold-bright), var(--sx-gold-dark));
    color: #0a0d12;
    font-weight: 800;
    font-size: 15px;
}
.sixora-step-content h4 {
    margin: 0 0 4px;
    font-size: 15px;
    color: var(--sx-silver);
    font-weight: 600;
}
.sixora-step-content p {
    margin: 0;
    font-size: 13px;
    color: var(--sx-muted);
    line-height: 1.5;
}
.sixora-step-content code {
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(212,175,125,0.12);
    color: var(--sx-gold);
    font-size: 12px;
}
.sixora-guide-info {
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: 8px;
    border-left: 3px solid var(--sx-gold);
    background: rgba(212,175,125,0.06);
}
.sixora-guide-info h4 {
    margin: 0 0 8px;
    font-size: 14px;
    color: var(--sx-gold);
    font-weight: 600;
}
.sixora-guide-info ul {
    margin: 0;
    padding-left: 18px;
    list-style: disc;
}
.sixora-guide-info li {
    margin-bottom: 4px;
    font-size: 13px;
    color: var(--sx-muted);
    line-height: 1.5;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer-nav {
    position: relative;
    margin-top: 40px;
    border-top: none;
    background: linear-gradient(180deg, rgba(8, 10, 14, 0.98), rgba(4, 6, 10, 1));
}

.footer-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--sx-gold-dark) 20%,
        var(--sx-gold) 50%,
        var(--sx-gold-dark) 80%,
        transparent 100%);
}

.footer-nav::after {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 60px;
    background: radial-gradient(ellipse at 50% 0%, rgba(212, 175, 125, 0.06), transparent);
    pointer-events: none;
}

.footer-nav .page-padding {
    position: relative;
    min-height: 0;
    padding-top: 28px;
    padding-bottom: 24px;
}

.footer-nav .social {
    position: static;
    margin-bottom: 12px;
}

.footer-nav .social ul { width: auto; }

/* Nova Team Footer Branding */
.sx-footer-brand {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(212, 175, 125, 0.10);
}

.sx-nova-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    transition: all 0.3s;
}

.sx-nova-logo-link:hover {
    transform: translateY(-2px);
}

.sx-nova-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--sx-gold-bright), var(--sx-gold-dark));
    color: #0a0d12;
    font: 800 26px/1 EasonPro, "Times New Roman", serif;
    box-shadow: 0 4px 20px rgba(212, 175, 125, 0.25), 0 0 40px rgba(212, 175, 125, 0.08);
    transition: box-shadow 0.3s;
}

.sx-nova-logo-link:hover .sx-nova-mark {
    box-shadow: 0 6px 28px rgba(212, 175, 125, 0.35), 0 0 60px rgba(212, 175, 125, 0.12);
}

.sx-nova-text {
    font: 700 28px/1 EasonPro, "Times New Roman", serif;
    color: var(--sx-silver);
    letter-spacing: 4px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.sx-nova-dim {
    color: var(--sx-muted);
    font-weight: 400;
    margin-left: 2px;
}

.sx-nova-logo-link:hover .sx-nova-text { color: var(--sx-gold-bright); }
.sx-nova-logo-link:hover .sx-nova-dim { color: var(--sx-gold-soft); }

.sx-nova-tagline {
    margin: 10px 0 0;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--sx-muted);
}

.copyright,
.copyright * { color: #5a5e68; font-size: 12px; letter-spacing: 0.3px; }

.copyright {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid rgba(212, 175, 125, 0.06);
}

.copyright a {
    color: var(--sx-gold-soft);
    transition: color 0.2s;
}

.copyright a:hover {
    color: var(--sx-gold-bright);
}

/* ============================================================
   QUICK LINKS BAR (above footer or in sidebar)
   ============================================================ */
.sx-quick-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 0 0 22px;
}

.sx-quick-link {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 10px;
    border: 1px solid rgba(212, 175, 125, 0.12);
    border-radius: var(--sx-radius);
    background: linear-gradient(180deg, rgba(18, 22, 30, 0.95), rgba(12, 16, 22, 0.98));
    color: var(--sx-silver) !important;
    text-decoration: none !important;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.sx-quick-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 20%, rgba(212, 175, 125, 0.08), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.sx-quick-link:hover {
    border-color: rgba(212, 175, 125, 0.3);
    color: var(--sx-gold) !important;
    transform: translateY(-3px);
    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.25),
        0 0 40px rgba(212, 175, 125, 0.05);
}

.sx-quick-link:hover::before { opacity: 1; }

.sx-quick-link i {
    position: relative;
    font-size: 24px;
    color: var(--sx-gold);
    filter: drop-shadow(0 0 8px rgba(212, 175, 125, 0.2));
    transition: all 0.3s;
}

.sx-quick-link:hover i {
    transform: scale(1.15);
    filter: drop-shadow(0 0 16px rgba(212, 175, 125, 0.4));
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .main-hd .page-width {
        min-height: 0;
        padding-top: 16px;
    }

    .main-hd h1 {
        position: relative;
        left: auto;
        top: auto;
        margin: 0 auto 8px;
        width: 280px;
        height: 150px;
    }

    .main-hd .external,
    .main-hd .main {
        position: static;
        width: auto;
        justify-content: center;
    }

    .main-hd .main { font-size: 34px; }

    .main-hd .sub-menu {
        left: 50%;
        transform: translateX(-50%);
    }

    .sx-hero { margin: -16px -16px 20px; padding: 36px 20px 28px; }
    .sx-hero-title { font-size: 38px; }
}

@media (max-width: 900px) {
    .page-width { width: calc(100% - 16px); }

    .article .page-padding.mt2cms2-c.page-bd {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
    }

    .article .page-hd h2,
    .page-hd h2.pre-social,
    .pre-social {
        font-size: 40px;
    }

    .sx-stats-bar { grid-template-columns: repeat(2, 1fr); }
    .sx-quick-links { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
    .main-hd h1 {
        width: 220px;
        height: 120px;
    }

    .main-hd .main { font-size: 26px; }

    .main-hd .external { gap: 5px; }

    .main-hd .external a {
        padding: 5px 10px !important;
        font-size: 10px;
    }

    .article .page-hd h2,
    .page-hd h2.pre-social,
    .pre-social {
        font-size: 32px;
    }

    .copyright .col-md-4 p { text-align: left !important; }

    .sx-hero { padding: 28px 16px 24px; }
    .sx-hero-title { font-size: 30px; }
    .sx-hero-sub { font-size: 14px; }
    .sx-stats-bar { grid-template-columns: 1fr 1fr; gap: 8px; }
    .sx-stat { padding: 12px 8px; }
    .sx-stat-value { font-size: 22px; }
    .sx-quick-links { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
    .sx-quick-link { padding: 12px 6px; font-size: 10px; }
    .sx-quick-link i { font-size: 18px; }
}

/* ============================================================
   FORM PAGES (Register, Login, Lost, Password, Email)
   ============================================================ */
.container > .row > [class*="col-"] > form > .table,
.container > .row > [class*="col-"] > .table,
form > .table {
    background: transparent;
}

.container > .row > [class*="col-"] > form > .table td,
form > .table td {
    border: none !important;
    padding: 10px 8px;
    vertical-align: middle;
    color: var(--sx-silver-soft);
    font-weight: 500;
}

.container > .row > [class*="col-"] {
    max-width: 100%;
}

/* Big action buttons (Register, Login, etc.) */
.btn-lg {
    padding: 12px 20px !important;
    font-size: 15px !important;
}

.btn-danger {
    border-color: rgba(239, 68, 68, 0.4) !important;
    background: rgba(239, 68, 68, 0.08) !important;
    color: #f87171 !important;
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: rgba(239, 68, 68, 0.6) !important;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.1);
}

.btn-primary {
    border-color: rgba(212, 175, 125, 0.35) !important;
    background: rgba(212, 175, 125, 0.06) !important;
    color: var(--sx-gold) !important;
}

.btn-primary:hover {
    background: rgba(212, 175, 125, 0.12) !important;
    border-color: rgba(212, 175, 125, 0.5) !important;
    box-shadow: 0 0 12px rgba(212, 175, 125, 0.1);
}

.btn-info {
    border-color: rgba(96, 165, 250, 0.35) !important;
    background: rgba(96, 165, 250, 0.06) !important;
    color: #93c5fd !important;
}

.btn-info:hover {
    background: rgba(96, 165, 250, 0.12) !important;
    border-color: rgba(96, 165, 250, 0.5) !important;
}

.btn-warning {
    border-color: rgba(250, 204, 21, 0.35) !important;
    background: rgba(250, 204, 21, 0.06) !important;
    color: #fde047 !important;
}

.btn-warning:hover {
    background: rgba(250, 204, 21, 0.12) !important;
    border-color: rgba(250, 204, 21, 0.5) !important;
}

/* Alert variants */
.alert-success {
    background: rgba(74, 222, 128, 0.06) !important;
    border-color: rgba(74, 222, 128, 0.2) !important;
    color: #6ee7a0 !important;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.06) !important;
    border-color: rgba(239, 68, 68, 0.2) !important;
    color: #f87171 !important;
}

.alert-info {
    background: rgba(96, 165, 250, 0.06) !important;
    border-color: rgba(96, 165, 250, 0.2) !important;
    color: #93c5fd !important;
}

.alert-warning {
    background: rgba(250, 204, 21, 0.06) !important;
    border-color: rgba(250, 204, 21, 0.2) !important;
    color: #fde047 !important;
}

.alert .close,
.alert button.close {
    color: var(--sx-silver-soft) !important;
    opacity: 0.7;
    text-shadow: none;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    min-height: auto !important;
}

/* ============================================================
   ACCOUNT/USER PAGES (Administration, Characters, Redeem)
   ============================================================ */
.jumbotron h2 {
    color: var(--sx-gold);
    font-size: 22px;
    margin: 0 0 8px;
}

.jumbotron p {
    color: var(--sx-silver-soft);
    margin-bottom: 6px;
}

.jumbotron .row {
    margin-bottom: 6px;
}

.jumbotron .row .col-sm-4,
.jumbotron .row .col-sm-8 {
    display: flex;
    align-items: center;
}

/* Account info display */
.sx-account-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 4px;
}

.sx-account-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(200, 200, 208, 0.04);
}

.sx-account-label {
    flex-shrink: 0;
    min-width: 120px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--sx-muted);
}

.sx-account-value {
    color: var(--sx-silver);
    font-size: 14px;
}

/* Account actions spacing */
.sx-account-actions .row {
    margin-bottom: 10px;
    padding: 6px 0;
}

.sx-account-actions .row:last-child {
    margin-bottom: 0;
}

/* Table responsive wrapper */
.table-responsive-wrap {
    overflow-x: auto;
    border-radius: var(--sx-radius);
}

/* Captcha image styling */
form img[src*="captcha"] {
    border-radius: 6px;
    border: 1px solid var(--sx-line);
}

/* Ranking search bar (flex layout) */
.sx-search-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.sx-search-row .form-control {
    flex: 1;
}

.sx-search-row .btn {
    white-space: nowrap;
    min-width: 100px;
}

/* Input group for redeem codes */
.input-group {
    display: flex;
}

.input-group .form-control {
    border-radius: 8px 0 0 8px !important;
}

.input-group-btn .btn,
.input-group .btn {
    border-radius: 0 8px 8px 0 !important;
    height: 100%;
}

/* Ranking table enhancements */
.level-table, .exp-table {
    min-width: 60px;
}

/* Character job icons */
.table td img[src*="job/"],
.table td img[src*="empire/"] {
    vertical-align: middle;
    border-radius: 2px;
}

/* Nav tabs on ranking pages */
.nav-tabs .nav-link img {
    vertical-align: middle;
    margin-right: 4px;
    opacity: 0.8;
}

.nav-tabs .nav-link.active img,
.nav-tabs .nav-link:hover img {
    opacity: 1;
}

/* Blog/News read page */
.blog-attribution {
    color: var(--sx-muted);
    font-size: 13px;
    margin-bottom: 12px;
}

.text .copy {
    color: var(--sx-text);
    line-height: 1.8;
}

.text .copy img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 8px 0;
}

/* Padding container (Redeem page) */
.padding-container {
    padding: 16px 0;
}

/* Footer link columns responsive */
@media (max-width: 600px) {
    .footer-nav [style*="grid-template-columns: 1fr 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--sx-bg-0); }
::-webkit-scrollbar-thumb {
    background: var(--sx-bg-3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--sx-gold-dark); }

/* ============================================================
   HAMBURGER BUTTON
   ============================================================ */
.sx-burger {
    display: none;
    position: absolute;
    top: 16px;
    right: 10px;
    z-index: 20;
    width: 44px;
    height: 44px;
    padding: 10px 8px;
    border: 1px solid rgba(200, 200, 208, 0.20);
    border-radius: 8px;
    background: rgba(10, 12, 18, 0.70) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    align-items: center;
    transition: all 0.2s;
}

.sx-burger:hover {
    border-color: var(--sx-gold) !important;
    background: rgba(212, 175, 125, 0.08) !important;
}

.sx-burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--sx-silver);
    border-radius: 2px;
    transition: all 0.25s;
}

.sx-burger:hover span { background: var(--sx-gold); }

/* ============================================================
   MOBILE MENU OVERLAY & SLIDE-IN
   ============================================================ */
.sx-mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s;
}

.sx-mobile-overlay.open {
    display: block;
    opacity: 1;
}

.sx-mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    max-width: 85vw;
    height: 100%;
    z-index: 9999;
    background: rgba(12, 14, 20, 0.98);
    border-left: 1px solid var(--sx-line);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    transition: right 0.3s ease;
}

.sx-mobile-menu.open {
    right: 0;
}

.sx-mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--sx-line);
    font: 700 14px EasonProDisplayCaps, EasonPro, serif;
    color: var(--sx-gold);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.sx-mobile-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(200, 200, 208, 0.15) !important;
    border-radius: 8px !important;
    background: rgba(200, 200, 208, 0.04) !important;
    color: var(--sx-silver) !important;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0 !important;
    min-height: auto !important;
    line-height: 1;
}

.sx-mobile-close:hover {
    border-color: var(--sx-red) !important;
    color: var(--sx-red) !important;
}

.sx-mobile-nav {
    list-style: none;
    margin: 0;
    padding: 8px 12px;
}

.sx-mobile-nav li { margin: 0; }

.sx-mobile-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 12px;
    color: var(--sx-silver) !important;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s;
    text-decoration: none !important;
}

.sx-mobile-nav a i {
    width: 20px;
    text-align: center;
    color: var(--sx-muted);
    font-size: 16px;
    transition: color 0.2s;
}

.sx-mobile-nav a:hover,
.sx-mobile-nav a:active {
    background: rgba(212, 175, 125, 0.08);
    color: var(--sx-gold) !important;
}

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

.sx-mobile-logout {
    color: #f87171 !important;
}

.sx-mobile-logout i { color: #f87171 !important; }

.sx-mobile-divider {
    height: 1px;
    margin: 8px 12px;
    background: var(--sx-line);
}

.sx-mobile-online {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    margin: 8px 12px 12px;
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 8px;
    background: rgba(74, 222, 128, 0.04);
    color: var(--sx-green);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ============================================================
   MODERN FORM CARDS (Login, Register)
   ============================================================ */
.sx-form-card {
    max-width: 480px;
    margin: 0 auto;
    padding: 0;
    animation: fadeInUp 0.4s ease;
}

.sx-form-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 0 18px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(212, 175, 125, 0.15);
}

.sx-form-header h2 {
    margin: 0;
    font: 700 36px/1 EasonPro, "Times New Roman", serif;
    color: #d7d7df;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.sx-form-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(212, 175, 125, 0.12), rgba(212, 175, 125, 0.04));
    border: 1px solid rgba(212, 175, 125, 0.25);
    color: var(--sx-gold);
    font-size: 20px;
    box-shadow: 0 4px 16px rgba(212, 175, 125, 0.08);
}

.sx-form-group {
    margin-bottom: 16px;
}

.sx-form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--sx-silver-soft);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.sx-input-wrap {
    position: relative;
}

.sx-input-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--sx-muted);
    font-size: 15px;
    pointer-events: none;
    transition: color 0.2s;
}

.sx-input-wrap .form-control {
    padding-left: 42px !important;
}

.sx-input-wrap:focus-within i {
    color: var(--sx-gold);
}

.sx-form-group .text-danger {
    margin: 4px 0 0;
    font-size: 12px;
}

.sx-form-footer {
    display: flex;
    justify-content: space-between;
    padding: 16px 0 0;
    margin-top: 16px;
    border-top: 1px solid var(--sx-line);
}

.sx-form-footer a {
    color: var(--sx-silver-soft);
    font-size: 13px;
    transition: color 0.2s;
}

.sx-form-footer a:hover { color: var(--sx-gold); }

/* Captcha row */
.sx-captcha-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sx-captcha-row img {
    border-radius: 8px;
    border: 1px solid var(--sx-line);
    height: 50px;
}

.sx-captcha-row .form-control {
    flex: 1;
    font-size: 22px !important;
    text-align: center;
    letter-spacing: 4px;
}

/* ============================================================
   RESPONSIVE: SHOW HAMBURGER ON MOBILE
   ============================================================ */
@media (max-width: 900px) {
    .sx-burger { display: flex; }

    .main-hd .main,
    .main-hd .external {
        display: none !important;
    }

    .main-hd h1 {
        position: relative;
        left: auto;
        top: auto;
        margin: 0 auto 8px;
        width: 240px;
        height: 130px;
    }

    .main-hd .page-width {
        min-height: 0;
        padding: 12px 0;
    }

    /* Footer responsive */
    .footer-nav [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .footer-nav a {
        padding: 4px 0;
        font-size: 14px !important;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .copyright .row {
        flex-direction: column;
        text-align: center;
    }

    .copyright .col-md-4 p { text-align: center !important; }

    /* Ranking tables horizontal scroll */
    .table-responsive-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .container .table {
        min-width: 500px;
    }

    /* Better touch targets */
    .btn, button, input[type="submit"] {
        min-height: 44px;
    }

    .list-group-item {
        padding: 12px 16px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .nav-tabs .nav-link {
        padding: 10px 14px;
        min-height: 44px;
    }
}

@media (max-width: 600px) {
    .sx-form-card { max-width: 100%; }

    .sx-form-header h2 { font-size: 28px; }

    .sx-captcha-row {
        flex-direction: column;
        align-items: stretch;
    }

    .sx-captcha-row img {
        width: 100%;
        height: auto;
        max-height: 60px;
        object-fit: contain;
    }

    .sx-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .sx-hero-btn { justify-content: center; }
}

/* ============================================================
   GLOBAL ENHANCEMENTS
   ============================================================ */
html { scroll-behavior: smooth; }

*:focus-visible {
    outline: 2px solid var(--sx-gold);
    outline-offset: 2px;
}

::selection {
    background: rgba(212, 175, 125, 0.3);
    color: #fff;
}

/* ============================================================
   GATE PAGE (Login/Register Landing)
   ============================================================ */
.sx-gate-page {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse at 50% -20%, rgba(212, 175, 125, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 30% 80%, rgba(212, 175, 125, 0.03) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 0%, #1a2030 0%, #0a0d14 50%, #060810 100%);
    background-attachment: fixed;
    padding: 20px;
}

.sx-gate-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(212, 175, 125, 0.015) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(212, 175, 125, 0.015) 0%, transparent 50%);
    pointer-events: none;
    animation: subtlePulse 8s ease-in-out infinite;
}

.sx-gate-container {
    position: relative;
    width: 100%;
    max-width: 460px;
    text-align: center;
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.sx-gate-brand {
    margin-bottom: 36px;
}

.sx-gate-brand a {
    text-decoration: none !important;
}

.sx-gate-logo-img {
    display: block;
    max-width: 320px;
    width: 100%;
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5))
            drop-shadow(0 0 60px rgba(212, 175, 125, 0.12));
    transition: filter 0.4s;
}

.sx-gate-logo-img:hover {
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5))
            drop-shadow(0 0 80px rgba(212, 175, 125, 0.25));
}

.sx-gate-card {
    position: relative;
    background: linear-gradient(170deg, rgba(18, 22, 32, 0.95), rgba(10, 14, 20, 0.98));
    border: 1px solid rgba(212, 175, 125, 0.10);
    border-top: 2px solid rgba(212, 175, 125, 0.25);
    border-radius: var(--sx-radius-lg);
    padding: 36px 32px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.5),
        0 0 120px rgba(212, 175, 125, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.sx-gate-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--sx-gold-bright), transparent);
    opacity: 0.5;
}

.sx-gate-card .sx-form-card {
    max-width: 100%;
}

.sx-gate-online {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    padding: 10px 24px;
    border-radius: 20px;
    background: rgba(74, 222, 128, 0.05);
    border: 1px solid rgba(74, 222, 128, 0.15);
    color: var(--sx-green);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 16px rgba(74, 222, 128, 0.05);
}

.sx-gate-footer-text {
    margin-top: 32px;
    color: var(--sx-muted);
    font-size: 11px;
    opacity: 0.4;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ============================================================
   FOOTER GRID (Class-based, replaces inline styles)
   ============================================================ */
.sx-footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(212, 175, 125, 0.08);
}

.sx-footer-heading {
    margin: 0 0 16px;
    font-size: 11px;
    color: var(--sx-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(212, 175, 125, 0.1);
}

.sx-footer-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sx-footer-links a {
    color: var(--sx-muted) !important;
    font-size: 13px;
    text-decoration: none !important;
    transition: color 0.2s, padding-left 0.2s, text-shadow 0.2s;
    padding: 6px 0;
    line-height: 1.4;
}

.sx-footer-links a:hover {
    color: var(--sx-gold) !important;
    padding-left: 8px;
    text-shadow: 0 0 12px rgba(212, 175, 125, 0.1);
}

/* Mobile footer improvements */
@media (max-width: 900px) {
    .sx-footer-grid {
        grid-template-columns: 1fr;
        gap: 0;
        border-bottom: none;
        padding-bottom: 0;
    }

    .sx-footer-col {
        padding: 16px;
        border-bottom: 1px solid rgba(200, 200, 208, 0.06);
    }

    .sx-footer-col:last-child {
        border-bottom: none;
    }

    .sx-footer-heading {
        margin-bottom: 10px;
        font-size: 11px;
        letter-spacing: 2px;
    }

    .sx-footer-links {
        gap: 0;
    }

    .sx-footer-links a {
        font-size: 15px !important;
        padding: 10px 0 !important;
        min-height: 44px;
        display: flex !important;
        align-items: center;
        border-bottom: 1px solid rgba(200, 200, 208, 0.03);
    }

    .sx-footer-links a:last-child {
        border-bottom: none;
    }

    .mt2cms2-footer .social {
        justify-content: center;
    }

    .mt2cms2-footer .page-padding {
        padding: 20px 12px;
    }

    /* Copyright mobile fix */
    .copyright .row {
        flex-direction: column;
        text-align: center;
        gap: 4px;
    }

    .copyright .col-md-4 p {
        text-align: center !important;
    }
}

/* Gate page responsive */
@media (max-width: 600px) {
    .sx-gate-page {
        padding: 16px;
        align-items: flex-start;
        padding-top: 60px;
    }

    .sx-gate-card {
        padding: 24px 20px;
    }

    .sx-gate-logo-img {
        max-width: 240px;
    }

    .sx-gate-brand {
        margin-bottom: 24px;
    }
}

/* ============================================================
   SIDEBAR WIDGET POLISH
   ============================================================ */
/* Statistics table in sidebar */
.widget .table tbody tr th,
.widget .table tbody tr td {
    padding: 8px 10px;
    font-size: 13px;
}

.widget .table tbody tr th {
    color: var(--sx-silver-soft);
    font-weight: 500;
}

.widget .table tbody tr td {
    color: var(--sx-gold-bright);
    font-weight: 700;
    text-align: right;
}

/* Ranking sidebar center buttons */
.widget center {
    display: block;
    padding: 10px 0 6px;
}

/* Sidebar ranking tabs images */
.widget .nav-tabs .nav-link {
    padding: 8px 16px;
}

/* Mobile account info */
@media (max-width: 600px) {
    .sx-account-label { min-width: 90px; font-size: 11px; }
    .sx-account-value { font-size: 13px; }
    .sx-account-row { flex-direction: column; gap: 2px; }
}

/* ============================================================
   SIDEBAR POLISH
   ============================================================ */
.mt2cms2-c-s .list-group {
    border-radius: var(--sx-radius);
    overflow: hidden;
}

.mt2cms2-c-s .list-group-item {
    transition: all 0.15s ease;
    font-size: 13px;
}

.mt2cms2-c-s .list-group-item:hover {
    padding-left: 20px;
}

.mt2cms2-c-s .list-group-item-danger:hover {
    background: rgba(239, 68, 68, 0.06) !important;
}

/* ============================================================
   PREMIUM SUBMIT BUTTONS (Login/Register)
   ============================================================ */
.sx-form-card .btn-success.btn-lg.btn-block,
.sx-form-card input.btn-success.btn-lg.btn-block {
    margin-top: 12px;
    padding: 16px 20px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--sx-gold-bright), var(--sx-gold), var(--sx-gold-dark)) !important;
    color: #0a0d12 !important;
    border: 1px solid var(--sx-gold) !important;
    border-radius: 10px !important;
    box-shadow:
        0 4px 20px rgba(212, 175, 125, 0.25),
        0 0 40px rgba(212, 175, 125, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sx-form-card .btn-success.btn-lg.btn-block:hover,
.sx-form-card input.btn-success.btn-lg.btn-block:hover {
    background: linear-gradient(135deg, #fae4b0, var(--sx-gold-bright), var(--sx-gold)) !important;
    box-shadow:
        0 8px 32px rgba(212, 175, 125, 0.35),
        0 0 60px rgba(212, 175, 125, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* ============================================================
   TABLE RESPONSIVE WRAPPER
   ============================================================ */
.table-responsive-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--sx-radius);
    border: 1px solid rgba(200, 200, 208, 0.08);
}

.table-responsive-wrap .table {
    margin-bottom: 0;
}

/* ============================================================
   SIDEBAR STATISTICS TABLE POLISH
   ============================================================ */
.widget .bd .table.table-hover tbody tr th {
    color: var(--sx-silver-soft);
    font-weight: 500;
    font-size: 13px;
    text-align: left;
    padding: 10px 8px;
}

.widget .bd .table.table-hover tbody tr td {
    color: var(--sx-gold-bright);
    font-weight: 700;
    font-size: 14px;
    text-align: right;
    padding: 10px 8px;
}

/* ============================================================
   MOBILE: 480px BREAKPOINT (small phones)
   ============================================================ */
@media (max-width: 480px) {
    .page-width { width: calc(100% - 10px); }

    .article .page-padding.mt2cms2-c.page-bd {
        padding: 12px;
        gap: 12px;
    }

    .article .page-hd h2,
    .page-hd h2.pre-social,
    .pre-social {
        font-size: 26px;
    }

    .page-hd h6 {
        font-size: 12px;
        letter-spacing: 1px;
    }

    .main-hd h1 {
        width: 180px;
        height: 100px;
    }

    /* Search bar stacks on very small phones */
    .sx-search-row {
        flex-direction: column;
    }

    .sx-search-row .btn {
        min-width: auto;
        width: 100%;
    }

    /* Nav tabs scrollable */
    .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 4px;
        padding-bottom: 4px;
    }

    .nav-tabs .nav-link {
        white-space: nowrap;
        font-size: 12px;
        padding: 8px 12px;
    }

    /* Form card full width + tighter */
    .sx-form-card {
        max-width: 100%;
    }

    .sx-form-header {
        gap: 10px;
        padding: 14px 0 12px;
    }

    .sx-form-header h2 {
        font-size: 24px;
    }

    .sx-form-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .sx-form-group label {
        font-size: 11px;
    }

    .sx-form-footer {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    /* Stats bar */
    .sx-stat-value { font-size: 20px; }
    .sx-stat-label { font-size: 10px; letter-spacing: 1px; }
    .sx-stat-icon { font-size: 14px; }

    /* Section heading */
    .sx-section-hd h3 { font-size: 20px; }

    /* Blog posts tighter */
    .blog-post { padding: 12px; }
    .blog-title a { font-size: 15px; }

    /* Hero tighter */
    .sx-hero { padding: 22px 12px 20px; }
    .sx-hero-title { font-size: 26px; }
    .sx-hero-sub { font-size: 13px; margin-bottom: 20px; }
    .sx-hero-btn { padding: 10px 20px; font-size: 12px; }

    /* Sidebar widgets tighter */
    .widget .bd { padding: 12px; }
    .top-sidebar h4 { font-size: 17px; }

    /* Download grid single column */
    .sixora-download-grid {
        grid-template-columns: 1fr;
    }

    /* Pagination wrap */
    .wp-pagenavi {
        justify-content: center;
    }

    .wp-pagenavi a, .wp-pagenavi .current {
        padding: 6px 10px;
        font-size: 12px;
    }

    /* Quick links 2 columns on tiny phones */
    .sx-quick-links {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    /* Item Shop mobile fixes */
    .is-header h3 { font-size: 16px; }
    .is-cats { grid-template-columns: 1fr; gap: 4px; }
    .is-cats .cat-btn { padding: 10px; }

    .is-modal {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .is-modal-head { padding: 16px; }
    .is-modal-body { padding: 16px; }
    .is-modal-foot { padding: 12px 16px 16px; }

    .is-modal-head .modal-icon {
        width: 48px; height: 48px; min-width: 48px;
    }

    .is-modal-head .modal-title h4 { font-size: 16px; }

    .is-modal-body .detail-stats {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    /* Gate page (login/register standalone) */
    .sx-gate-page {
        padding: 12px;
        padding-top: 40px;
    }

    .sx-gate-card {
        padding: 20px 16px;
    }

    .sx-gate-logo-img {
        max-width: 200px;
    }

    .sx-gate-brand {
        margin-bottom: 20px;
    }
}

/* ============================================================
   MOBILE: 360px BREAKPOINT (very small phones)
   ============================================================ */
@media (max-width: 360px) {
    .article .page-padding.mt2cms2-c.page-bd {
        padding: 8px;
    }

    .sx-stats-bar {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .sx-stat {
        flex-direction: row;
        display: flex;
        align-items: center;
        gap: 10px;
        text-align: left;
        padding: 10px 12px;
    }

    .sx-stat-icon { margin-bottom: 0; }

    .sx-hero-title { font-size: 22px; }
    .sx-hero-btn { width: 100%; justify-content: center; }

    .is-header {
        padding: 10px 12px;
    }

    .is-header .coins-box {
        font-size: 13px;
        padding: 6px 12px;
    }
}

/* ============================================================
   RANKING TABLE MOBILE IMPROVEMENTS
   ============================================================ */
@media (max-width: 600px) {
    .table-responsive-wrap .table {
        min-width: 480px;
    }

    .table > :not(caption) > * > * {
        padding: 8px 4px;
        font-size: 13px;
    }

    .table thead th {
        font-size: 12px;
        padding: 8px 4px;
    }
}

/* ============================================================
   JUMBOTRON / SEARCH BAR MOBILE
   ============================================================ */
@media (max-width: 600px) {
    .jumbotron {
        padding: 12px !important;
    }
}

/* ============================================================
   MOBILE MENU IMPROVEMENTS (480px)
   ============================================================ */
@media (max-width: 480px) {
    .sx-mobile-menu {
        width: 100%;
        max-width: 100%;
        right: -100%;
    }

    .sx-mobile-nav a {
        padding: 16px 14px;
        font-size: 16px;
    }

    .sx-mobile-nav a i {
        font-size: 18px;
        width: 24px;
    }
}

/* ============================================================
   FORM INPUTS MOBILE POLISH
   ============================================================ */
@media (max-width: 600px) {
    .form-control {
        font-size: 16px !important;
    }

    .sx-input-wrap .form-control {
        padding-left: 40px !important;
    }

    .sx-captcha-row .form-control {
        font-size: 20px !important;
        letter-spacing: 3px;
    }
}

/* ============================================================
   SIDEBAR RANKING WIDGET MOBILE
   ============================================================ */
@media (max-width: 900px) {
    .widget .bd .table-sm {
        font-size: 12px;
    }

    .widget .bd .table-sm td,
    .widget .bd .table-sm th {
        padding: 6px 4px;
    }
}

/* ============================================================
   PREMIUM ENHANCEMENTS — DOWNLOAD CARDS
   ============================================================ */
.sixora-download-card {
    position: relative;
    padding: 20px;
    border-radius: var(--sx-radius);
    border: 1px solid rgba(212, 175, 125, 0.08);
    background: linear-gradient(135deg, rgba(18, 22, 30, 0.95), rgba(12, 16, 22, 0.98));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

.sixora-download-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--sx-gold-soft), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.sixora-download-card:hover {
    border-color: rgba(212, 175, 125, 0.20);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.25),
        0 0 40px rgba(212, 175, 125, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform: translateY(-3px);
}

.sixora-download-card:hover::before { opacity: 1; }

.sixora-download-card .btn {
    width: 100%;
    margin-top: 8px;
}

.sixora-download-index {
    background: linear-gradient(135deg, var(--sx-gold-bright), var(--sx-gold-dark));
    box-shadow: 0 2px 8px rgba(212, 175, 125, 0.15);
}

/* ============================================================
   PREMIUM ENHANCEMENTS — HEADER LOGO GLOW
   ============================================================ */
.main-hd h1 {
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5))
            drop-shadow(0 0 50px rgba(212, 175, 125, 0.10));
}

/* ============================================================
   PREMIUM ENHANCEMENTS — SIDEBAR LOGIN FORM
   ============================================================ */
.widget .bd .form .form-group .form-control {
    background: linear-gradient(180deg, rgba(8, 10, 14, 0.95), rgba(6, 8, 12, 0.98)) !important;
}

.widget .bd .form .btn-success.btn-block {
    background: linear-gradient(135deg, var(--sx-gold), var(--sx-gold-dark)) !important;
    color: #0a0d12 !important;
    border: 1px solid rgba(212, 175, 125, 0.5) !important;
    font-weight: 700 !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 16px rgba(212, 175, 125, 0.15);
}

.widget .bd .form .btn-success.btn-block:hover {
    background: linear-gradient(135deg, var(--sx-gold-bright), var(--sx-gold)) !important;
    box-shadow: 0 6px 24px rgba(212, 175, 125, 0.25);
}

/* ============================================================
   PREMIUM ENHANCEMENTS — ALERT REFINEMENTS
   ============================================================ */
.alert {
    position: relative;
    border-radius: var(--sx-radius);
    border: 1px solid var(--sx-line-soft);
    background: rgba(10, 13, 18, 0.92);
    backdrop-filter: blur(8px);
    color: var(--sx-text);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

/* ============================================================
   PREMIUM ENHANCEMENTS — ONLINE BADGE
   ============================================================ */
.sx-online-badge {
    box-shadow: 0 2px 12px rgba(74, 222, 128, 0.08);
    transition: all 0.25s !important;
}

.sx-online-badge:hover {
    box-shadow: 0 4px 20px rgba(74, 222, 128, 0.15) !important;
    background: rgba(74, 222, 128, 0.10) !important;
    border-color: rgba(74, 222, 128, 0.35) !important;
}

/* ============================================================
   PREMIUM ENHANCEMENTS — TEXT GLOW ON GOLD ELEMENTS
   ============================================================ */
.jumbotron h2 {
    color: var(--sx-gold);
    font-size: 22px;
    margin: 0 0 8px;
    text-shadow: 0 0 20px rgba(212, 175, 125, 0.1);
}

/* ============================================================
   PREMIUM ENHANCEMENTS — SIDEBAR STATISTICS GRID
   ============================================================ */
.widget .bd .table.table-hover tbody tr {
    transition: all 0.2s;
}

.widget .bd .table.table-hover tbody tr:hover {
    background: rgba(212, 175, 125, 0.06);
}

.widget .bd .table.table-hover tbody tr td {
    color: var(--sx-gold-bright);
    font-weight: 700;
    font-size: 15px;
    text-align: right;
    padding: 10px 8px;
    text-shadow: 0 0 10px rgba(212, 175, 125, 0.1);
}

/* ============================================================
   PREMIUM ENHANCEMENTS — RANKING PAGE SIDEBAR TAB BUTTONS
   ============================================================ */
.widget .bd .nav-tabs {
    margin-top: 12px;
}

.widget .bd .btn-primary.btn-sm {
    background: linear-gradient(135deg, rgba(212, 175, 125, 0.12), rgba(212, 175, 125, 0.04)) !important;
    border-color: rgba(212, 175, 125, 0.3) !important;
    color: var(--sx-gold) !important;
    box-shadow: 0 2px 8px rgba(212, 175, 125, 0.08);
}

.widget .bd .btn-primary.btn-sm:hover {
    background: linear-gradient(135deg, rgba(212, 175, 125, 0.20), rgba(212, 175, 125, 0.08)) !important;
    box-shadow: 0 4px 16px rgba(212, 175, 125, 0.12);
    transform: translateY(-1px);
}

/* ============================================================
   PREMIUM ENHANCEMENTS — PAGE HEADER BORDERS
   ============================================================ */
.article .page-hd {
    position: relative;
    overflow: hidden;
}

.article .page-hd::after {
    content: '' !important;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--sx-gold-soft), transparent 80%);
    opacity: 0.3;
}

/* ============================================================
   PREMIUM ENHANCEMENTS — SMOOTH BODY TRANSITIONS
   ============================================================ */
img {
    transition: opacity 0.3s;
}

.table td img {
    border-radius: 3px;
}

/* ============================================================
   PREMIUM ENHANCEMENTS — BTN-PRIMARY SHINE
   ============================================================ */
.btn-primary {
    border-color: rgba(212, 175, 125, 0.30) !important;
    background: linear-gradient(180deg, rgba(212, 175, 125, 0.10), rgba(212, 175, 125, 0.04)) !important;
    color: var(--sx-gold) !important;
    box-shadow: 0 2px 8px rgba(212, 175, 125, 0.06);
}

.btn-primary:hover {
    background: linear-gradient(180deg, rgba(212, 175, 125, 0.18), rgba(212, 175, 125, 0.08)) !important;
    border-color: rgba(212, 175, 125, 0.45) !important;
    box-shadow: 0 4px 16px rgba(212, 175, 125, 0.1);
    transform: translateY(-1px);
}

/* ============================================================
   ADMIN PANEL — PREMIUM LAYOUT
   ============================================================ */

/* Admin wrapper */
.sx-admin {
    animation: fadeInUp 0.4s ease-out;
}

/* Admin header bar */
.sx-admin-header {
    margin: -10px 0 24px;
    padding: 20px 0;
    border-bottom: 1px solid var(--sx-line);
    background: linear-gradient(135deg, rgba(212, 175, 125, 0.04), transparent 60%);
}

.sx-admin-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.sx-admin-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sx-admin-title > i {
    font-size: 28px;
    color: var(--sx-gold);
    opacity: 0.7;
}

.sx-admin-title h2 {
    margin: 0;
    font-size: 22px;
    color: var(--sx-silver);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.sx-admin-breadcrumb {
    font-size: 12px;
    color: var(--sx-muted);
    letter-spacing: 0.4px;
}

.sx-admin-actions {
    display: flex;
    gap: 8px;
}

.sx-admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid rgba(200, 200, 208, 0.12);
    border-radius: 8px;
    background: rgba(14, 18, 26, 0.7);
    color: var(--sx-silver-soft) !important;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 0.25s;
}

.sx-admin-btn:hover {
    border-color: var(--sx-gold);
    color: var(--sx-gold) !important;
    background: rgba(212, 175, 125, 0.06);
    box-shadow: 0 0 16px rgba(212, 175, 125, 0.08);
}

.sx-admin-body {
    min-height: 300px;
}

/* Admin stats row */
.sx-admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.sx-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border: 1px solid rgba(200, 200, 208, 0.08);
    border-radius: var(--sx-radius);
    background: linear-gradient(135deg, rgba(14, 18, 26, 0.85), rgba(10, 13, 18, 0.95));
    backdrop-filter: blur(6px);
    transition: all 0.3s;
}

.sx-stat-card:hover {
    border-color: rgba(212, 175, 125, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.sx-stat-card.sx-stat-alert {
    border-color: rgba(239, 68, 68, 0.25);
    animation: subtlePulse 2s infinite;
}

.sx-stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 20px;
    flex-shrink: 0;
}

.sx-stat-blue {
    background: rgba(96, 165, 250, 0.12);
    color: #93c5fd;
    border: 1px solid rgba(96, 165, 250, 0.2);
}

.sx-stat-gold {
    background: rgba(212, 175, 125, 0.12);
    color: var(--sx-gold);
    border: 1px solid rgba(212, 175, 125, 0.2);
}

.sx-stat-green {
    background: rgba(74, 222, 128, 0.12);
    color: var(--sx-green);
    border: 1px solid rgba(74, 222, 128, 0.2);
}

.sx-stat-red {
    background: rgba(239, 68, 68, 0.12);
    color: var(--sx-red);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.sx-stat-info {
    display: flex;
    flex-direction: column;
}

.sx-stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.sx-stat-label {
    font-size: 12px;
    color: var(--sx-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 500;
}

/* Admin sections */
.sx-admin-section {
    margin-bottom: 24px;
    animation: fadeInUp 0.5s ease-out backwards;
}

.sx-admin-section:nth-child(2) { animation-delay: 0.05s; }
.sx-admin-section:nth-child(3) { animation-delay: 0.10s; }
.sx-admin-section:nth-child(4) { animation-delay: 0.15s; }
.sx-admin-section:nth-child(5) { animation-delay: 0.20s; }
.sx-admin-section:nth-child(6) { animation-delay: 0.25s; }

.sx-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--sx-line-soft);
    color: var(--sx-gold);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.sx-section-header i {
    font-size: 16px;
    opacity: 0.7;
}

/* Admin card grid */
.sx-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.sx-admin-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid rgba(200, 200, 208, 0.06);
    border-radius: var(--sx-radius);
    background: linear-gradient(135deg, rgba(14, 18, 26, 0.7), rgba(10, 13, 18, 0.85));
    color: var(--sx-silver) !important;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.sx-admin-card:hover {
    border-color: rgba(212, 175, 125, 0.3);
    background: linear-gradient(135deg, rgba(212, 175, 125, 0.06), rgba(14, 18, 26, 0.85));
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 0 30px rgba(212, 175, 125, 0.04);
    color: var(--sx-gold) !important;
}

.sx-admin-card.sx-card-badge {
    border-color: rgba(239, 68, 68, 0.2);
}

.sx-card-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(212, 175, 125, 0.08);
    border: 1px solid rgba(212, 175, 125, 0.12);
    color: var(--sx-gold);
    font-size: 18px;
    flex-shrink: 0;
    transition: all 0.25s;
}

.sx-admin-card:hover .sx-card-icon {
    background: rgba(212, 175, 125, 0.15);
    border-color: rgba(212, 175, 125, 0.3);
    box-shadow: 0 0 16px rgba(212, 175, 125, 0.1);
}

.sx-card-text h5 {
    margin: 0 0 2px;
    font-size: 14px;
    font-weight: 600;
    color: inherit;
    transition: color 0.25s;
}

.sx-card-text p {
    margin: 0;
    font-size: 12px;
    color: var(--sx-muted);
    line-height: 1.4;
}

.sx-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: var(--sx-red);
    color: #fff !important;
    font-size: 11px;
    font-weight: 700;
    margin-left: 6px;
    animation: subtlePulse 2s infinite;
}

/* Admin form panels (for sub-pages like coins, players, etc.) */
.sx-admin-panel {
    border: 1px solid rgba(200, 200, 208, 0.08);
    border-radius: var(--sx-radius);
    background: linear-gradient(135deg, rgba(14, 18, 26, 0.85), rgba(10, 13, 18, 0.95));
    backdrop-filter: blur(6px);
    overflow: hidden;
}

.sx-admin-panel-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--sx-line-soft);
    background: linear-gradient(135deg, rgba(212, 175, 125, 0.06), transparent);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sx-admin-panel-header i {
    color: var(--sx-gold);
    font-size: 16px;
}

.sx-admin-panel-header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--sx-silver);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.sx-admin-panel-body {
    padding: 20px;
}

/* Admin form row styling */
.sx-form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    align-items: flex-end;
}

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

.sx-form-row .sx-form-btn {
    flex: 0 0 auto;
}

/* Admin table wrapper */
.sx-admin-panel .table {
    margin: 0;
}

.sx-admin-panel .table thead th {
    border-radius: 0 !important;
}

/* Toggle switches for admin functions page */
.sx-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(200, 200, 208, 0.04);
    transition: background 0.2s;
}

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

.sx-toggle-row:hover {
    background: rgba(212, 175, 125, 0.03);
}

.sx-toggle-label {
    color: var(--sx-silver);
    font-size: 14px;
    font-weight: 500;
}

/* Admin select as badge */
.sx-admin-panel select.form-control {
    max-width: 200px;
}

/* Bootstrap modal dark theme for admin */
.modal-content {
    background: var(--sx-bg-2) !important;
    border: 1px solid rgba(212, 175, 125, 0.15) !important;
    border-radius: var(--sx-radius-lg) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(212, 175, 125, 0.05);
}

.modal-header {
    border-bottom: 1px solid var(--sx-line-soft) !important;
    padding: 16px 20px !important;
    background: linear-gradient(135deg, rgba(212, 175, 125, 0.06), transparent);
}

.modal-title {
    color: var(--sx-gold) !important;
    font-weight: 600;
    font-size: 16px;
}

.modal-body {
    padding: 20px !important;
    color: var(--sx-text);
}

.modal-footer {
    border-top: 1px solid var(--sx-line-soft) !important;
    padding: 12px 20px !important;
    background: rgba(6, 8, 12, 0.3);
}

.modal-backdrop.in {
    opacity: 0.7;
}

/* Collapse sections in admin forms */
.collapse,
.collapsing {
    border-radius: var(--sx-radius);
}

.sx-admin-panel .collapse.in,
.sx-admin-panel .collapse.show {
    padding: 14px;
    margin-top: 10px;
    border: 1px solid var(--sx-line-soft);
    border-radius: var(--sx-radius);
    background: rgba(6, 8, 12, 0.4);
}

/* Card/accordion in admin */
.card {
    background: rgba(14, 18, 26, 0.7) !important;
    border: 1px solid rgba(200, 200, 208, 0.06) !important;
    border-radius: var(--sx-radius) !important;
    margin-bottom: 8px;
}

.card-header {
    background: linear-gradient(135deg, rgba(212, 175, 125, 0.06), transparent) !important;
    border-bottom: 1px solid var(--sx-line-soft) !important;
    padding: 12px 16px !important;
}

.card-header a {
    color: var(--sx-gold) !important;
    font-weight: 600;
    font-size: 14px;
}

.card-block {
    padding: 16px !important;
}

/* Admin responsive */
@media (max-width: 768px) {
    .sx-admin-header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .sx-admin-grid {
        grid-template-columns: 1fr;
    }

    .sx-admin-actions {
        width: 100%;
    }

    .sx-admin-actions .sx-admin-btn {
        flex: 1;
        justify-content: center;
    }

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

    .sx-admin-title h2 {
        font-size: 18px;
    }

    .sx-stat-card {
        padding: 14px 16px;
    }

    .sx-stat-number {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .sx-admin-stats {
        grid-template-columns: 1fr;
    }
}
