/* ============================================================
   PvPList - Ana Stil Dosyası
   Koyu tema, altın/bronz tonlu MMORPG tasarımı
   ============================================================ */

/* --- Değişkenler --- */
:root {
    --gold:        #c9a84c;
    --gold-light:  #e8c56d;
    --gold-dark:   #8b6914;
    --bronze:      #a0714f;
    --bg-darkest:  #0a0a0f;
    --bg-dark:     #0f0f1a;
    --bg-card:     #141420;
    --bg-card2:    #1a1a2e;
    --bg-sidebar:  #111118;
    --border:      #2a2a40;
    --border-gold: #c9a84c44;
    --text-main:   #e8e8f0;
    --text-muted:  #888899;
    --text-light:  #c0c0d0;
    --vip-color:   #c9a84c;
    --premium-color: #a78bfa;
    --normal-color: #64748b;
    --success:     #22c55e;
    --danger:      #ef4444;
    --warning:     #f59e0b;
    --info:        #3b82f6;
    --shadow:      0 4px 24px rgba(0,0,0,0.5);
    --shadow-gold: 0 0 20px rgba(201,168,76,0.15);
    --radius:      10px;
    --radius-sm:   6px;
    --transition:  all 0.25s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    --floating-left-space: 0px;
    --floating-right-space: 0px;
    --floating-ad-width: 160px;
    --floating-ad-gap: 0px;
    font-family: 'Segoe UI', 'Inter', system-ui, sans-serif;
    background: var(--bg-darkest);
    color: var(--text-main);
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}
body.has-floating-left {
    --floating-left-space: calc(var(--floating-ad-width) + var(--floating-ad-gap));
}
body.has-floating-right {
    --floating-right-space: calc(var(--floating-ad-width) + var(--floating-ad-gap));
}
body.mobile-menu-open {
    position: fixed;
    width: 100%;
    left: 0;
    right: 0;
    overflow: hidden;
    overscroll-behavior: none;
}
body.mobile-menu-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(7, 8, 14, 0.72);
    backdrop-filter: blur(3px);
    z-index: 1290;
}
body.mobile-menu-open .site-header {
    z-index: 1302;
}
body.mobile-menu-open .announcement-stack,
body.mobile-menu-open .header-ad-band,
body.mobile-menu-open .site-main,
body.mobile-menu-open .footer-ad-band,
body.mobile-menu-open .site-footer,
body.mobile-menu-open .floating-ad,
body.mobile-menu-open .site-logo,
body.mobile-menu-open .header-actions {
    pointer-events: none;
}
body.mobile-menu-open .mobile-menu-btn {
    position: fixed;
    top: 14px;
    right: 12px;
    z-index: 1305;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    min-height: 42px;
    padding: 0;
    border: 1px solid rgba(201,168,76,0.32);
    border-radius: 12px;
    background: rgba(12, 12, 20, 0.96);
    color: var(--gold-light);
    box-shadow: 0 10px 24px rgba(0,0,0,0.34);
    pointer-events: auto;
}
body.mobile-menu-open .mobile-menu-btn i {
    font-size: 18px;
    color: inherit;
}
a { color: var(--gold); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-light); }
img { max-width: 100%; height: auto; }
ul { list-style: none; }
input, textarea, select, button { font-family: inherit; }

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

/* ============================================================
   HEADER & NAV
   ============================================================ */
.site-header {
    background: linear-gradient(180deg, #080810 0%, #0f0f1a 100%);
    border-bottom: 1px solid var(--border-gold);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.6);
}
.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    height: 65px;
}
.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
    min-width: 0;
}
.site-logo-textmark {
    display: inline-block;
    font-family: "Arial Black", "Segoe UI", sans-serif;
    font-size: 21px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.8px;
    white-space: nowrap;
    background: linear-gradient(180deg, #fff6d6 0%, #f0cf74 36%, #c8922d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.28), 0 0 12px rgba(201, 168, 76, 0.18);
}
.site-logo-wordmark {
    display: block;
    width: 138px;
    max-width: 138px;
    height: auto;
    object-fit: contain;
    object-position: left center;
}
.site-logo-upload {
    display: block;
    width: 144px;
    max-width: 144px;
    height: 38px;
    object-fit: contain;
    object-position: left center;
    flex-shrink: 0;
}
.site-logo .logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--gold), var(--bronze));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    font-weight: 900;
    box-shadow: 0 0 15px rgba(201,168,76,0.4);
}
.site-logo .logo-text {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}
.site-logo .logo-sub {
    font-size: 10px;
    color: var(--text-muted);
    display: block;
    letter-spacing: 2px;
    text-transform: uppercase;
    -webkit-text-fill-color: var(--text-muted);
}
.main-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    min-width: 0;
    overflow: visible;
}
.main-nav a {
    color: var(--text-light);
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: var(--transition);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 40px;
}
.main-nav a:hover, .main-nav a.active {
    color: var(--gold);
    background: rgba(201,168,76,0.1);
}
.nav-dropdown {
    position: relative;
    padding-bottom: 0;
    margin-bottom: 0;
}
.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
}
.nav-dropdown-caret {
    font-size: 10px;
    opacity: 0.75;
    transition: transform 0.2s ease;
}
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% - 1px);
    left: 0;
    min-width: 260px;
    padding: 10px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(12, 12, 22, 0.98);
    box-shadow: var(--shadow);
    display: none;
    grid-template-columns: 1fr;
    gap: 4px;
    z-index: 1100;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
    display: grid;
}
.nav-dropdown.is-open .nav-dropdown-caret {
    transform: rotate(180deg);
}
.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    padding: 9px 12px;
    border-radius: 10px;
    color: var(--text-light);
    font-size: 12px;
}
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
    background: rgba(201,168,76,0.12);
    color: var(--gold);
}
.main-nav a.nav-add-server {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #0a0a0f;
    font-weight: 700;
    padding: 8px 12px;
    margin-left: auto;
    margin-right: 0;
    flex-shrink: 0;
    font-size: 12px;
}
.main-nav a.nav-add-server:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: #0a0a0f;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(201,168,76,0.4);
}
.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-shrink: 0;
    margin-right: 0;
    margin-left: 8px;
    padding-left: 0;
    position: relative;
    z-index: 3;
    background: transparent;
}
.header-add-server {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #0a0a0f;
    font-weight: 700;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    white-space: nowrap;
    flex-shrink: 0;
}
.header-add-server:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: #0a0a0f;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(201,168,76,0.4);
}
.btn-login {
    background: transparent;
    border: 1px solid var(--border-gold);
    color: var(--gold);
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    white-space: nowrap;
    flex-shrink: 0;
}
.btn-login:hover {
    background: rgba(201,168,76,0.1);
    border-color: var(--gold);
}
.btn-register {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border: none;
    color: #0a0a0f;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    white-space: nowrap;
    flex-shrink: 0;
}
.btn-register:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    transform: translateY(-1px);
}
.user-menu {
    position: relative;
}
.user-avatar-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    cursor: pointer;
    color: var(--text-main);
    font-size: 11px;
    transition: var(--transition);
}
.user-avatar-btn span {
    display: inline-block;
    max-width: 78px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.user-avatar-btn:hover { border-color: var(--gold); }
.user-avatar-btn img {
    width: 28px; height: 28px;
    border-radius: 50%;
    object-fit: cover;
}
.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-card2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    min-width: 180px;
    box-shadow: var(--shadow);
    display: none;
    z-index: 100;
}
.user-dropdown.open { display: block; }
.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--text-light);
    font-size: 13px;
    border-bottom: 1px solid var(--border);
}
.user-dropdown a:last-child { border-bottom: none; }
.user-dropdown a:hover { background: rgba(201,168,76,0.08); color: var(--gold); }
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 22px;
    cursor: pointer;
    padding: 5px;
}

/* ============================================================
   HERO / BANNER
   ============================================================ */
.hero-section {
    background: linear-gradient(135deg, #0a0a15 0%, #0f0f20 40%, #0a0a15 100%);
    border-bottom: 1px solid var(--border-gold);
    padding: 50px 20px;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(201,168,76,0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(160,113,79,0.06) 0%, transparent 60%);
}
.hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    text-align: center;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(201,168,76,0.1);
    border: 1px solid var(--border-gold);
    color: var(--gold);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.hero-title {
    font-size: clamp(28px, 5vw, 52px);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff 0%, var(--gold-light) 50%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 30px;
}
.hero-search {
    display: flex;
    max-width: 560px;
    margin: 0 auto 30px;
    background: var(--bg-card2);
    border: 1px solid var(--border-gold);
    border-radius: 50px;
    overflow: hidden;
    box-shadow: var(--shadow-gold);
}
.hero-search input {
    flex: 1;
    background: none;
    border: none;
    padding: 14px 20px;
    color: var(--text-main);
    font-size: 14px;
    outline: none;
}
.hero-search input::placeholder { color: var(--text-muted); }
.hero-search button {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border: none;
    color: #0a0a0f;
    padding: 14px 24px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 0 50px 50px 0;
}
.hero-search button:hover { background: linear-gradient(135deg, var(--gold-light), var(--gold)); }
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}
.hero-stat {
    text-align: center;
}
.hero-stat .num {
    font-size: 24px;
    font-weight: 800;
    color: var(--gold);
    display: block;
}
.hero-stat .lbl {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.main-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 30px 20px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    align-items: start;
}
.main-content { min-width: 0; }
.sidebar { min-width: 0; }
.page-hero {
    background: linear-gradient(135deg, #0a0a15, #0f0f20);
    border-bottom: 1px solid var(--border-gold);
    padding: 24px 20px;
}
.page-hero-inner {
    max-width: 1280px;
    margin: 0 auto;
}
.page-hero-inner.is-narrow {
    max-width: 1000px;
}
.page-hero-inner.is-form {
    max-width: 920px;
}
.page-hero-title {
    margin: 0;
    color: var(--text-main);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
}
.page-hero-title i {
    color: var(--gold);
}
.page-hero-subtitle {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
}
.page-shell {
    max-width: 1280px;
    margin: 24px auto;
    padding: 0 20px 36px;
}
.page-shell.is-narrow {
    max-width: 1000px;
}
.page-shell.is-form {
    max-width: 920px;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-main);
}
.section-title .icon {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #0a0a0f;
}
.section-link {
    font-size: 12px;
    color: var(--gold);
    font-weight: 500;
}
.section-link:hover { color: var(--gold-light); }

/* ============================================================
   SERVER CARDS
   ============================================================ */
.server-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.server-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    position: relative;
}
.server-card:hover {
    border-color: var(--border-gold);
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
}
.server-card.card-vip {
    border-color: rgba(201,168,76,0.4);
    background: linear-gradient(135deg, #141420 0%, #1a1620 100%);
}
.server-card.card-premium {
    border-color: rgba(167,139,250,0.3);
}
.server-card-banner {
    width: 180px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}
.server-card-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.server-card:hover .server-card-banner img { transform: scale(1.05); }
.server-card-banner .no-banner {
    width: 100%;
    height: 100%;
    min-height: 120px;
    background: linear-gradient(135deg, var(--bg-card2), var(--bg-sidebar));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 12px;
}
.server-card-banner .no-banner i { font-size: 28px; color: var(--gold-dark); }
.server-card-body {
    flex: 1;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.server-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}
.server-card-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
}
.server-card-name a { color: inherit; }
.server-card-name a:hover { color: var(--gold); }
.server-card-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.server-card-keywords {
    margin: 10px 0 2px;
}
.server-card-keywords .keyword-chip {
    max-width: 148px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.server-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 11px;
    color: var(--text-muted);
}
.server-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}
.server-card-meta i { color: var(--gold-dark); font-size: 10px; }
.server-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}
.server-card-stats {
    display: flex;
    gap: 12px;
}
.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-muted);
}
.stat-item i { font-size: 11px; }
.stat-item.votes i { color: var(--gold); }
.stat-item.views i { color: var(--info); }
.stat-item.comments i { color: var(--success); }
.btn-detail {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #0a0a0f;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    transition: var(--transition);
    white-space: nowrap;
}
.btn-detail:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: #0a0a0f;
    transform: translateY(-1px);
}
.server-rank {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #0a0a0f;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    z-index: 1;
}

/* --- Badges --- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.badge-vip {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #0a0a0f;
    box-shadow: 0 0 8px rgba(201,168,76,0.4);
}
.badge-premium {
    background: linear-gradient(135deg, #a78bfa, #7c3aed);
    color: #fff;
}
.badge-normal {
    background: var(--bg-card2);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 16px;
}
.widget-header {
    background: linear-gradient(135deg, var(--bg-card2), var(--bg-sidebar));
    border-bottom: 1px solid var(--border-gold);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.widget-header i { font-size: 14px; }
.widget-body { padding: 16px; }
.stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}
.stat-row:last-child { border-bottom: none; }
.stat-row .label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}
.stat-row .label i { color: var(--gold-dark); width: 14px; text-align: center; }
.stat-row .value {
    font-weight: 700;
    color: var(--gold);
}
.sidebar-ad {
    background: var(--bg-card2);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    margin-bottom: 16px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 12px;
}
.sidebar-ad img { max-width: 100%; border-radius: var(--radius-sm); }
.recent-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
}
.recent-item:last-child { border-bottom: none; }
.recent-item .ri-icon {
    width: 32px; height: 32px;
    background: var(--bg-card2);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--gold-dark);
    font-size: 13px;
}
.recent-item .ri-text { flex: 1; min-width: 0; }
.recent-item .ri-title {
    color: var(--text-light);
    font-weight: 500;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.recent-item .ri-title:hover { color: var(--gold); }
.recent-item .ri-meta { color: var(--text-muted); font-size: 11px; }

/* ============================================================
   FILTER BAR
   ============================================================ */
.filter-bar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
    margin-bottom: 16px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: stretch;
}
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.filter-tab {
    background: var(--bg-card2);
    border: 1px solid var(--border);
    color: var(--text-muted);
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}
.filter-tab:hover, .filter-tab.active {
    background: linear-gradient(135deg, rgba(201,168,76,0.14), rgba(139,105,20,0.1));
    border-color: var(--gold);
    color: var(--gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.22);
}
.filter-search {
    display: grid;
    grid-template-columns: minmax(200px, 1.3fr) minmax(180px, 0.9fr) minmax(180px, 0.9fr) 52px;
    gap: 10px;
    align-items: stretch;
    width: 100%;
}
.filter-search input {
    background: var(--bg-card2);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 11px 14px;
    border-radius: 12px;
    font-size: 13px;
    outline: none;
    transition: var(--transition);
    width: 100%;
}
.filter-search input:focus { border-color: var(--gold); }
.filter-search input::placeholder { color: var(--text-muted); }
.filter-search select {
    background: var(--bg-card2);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 11px 12px;
    border-radius: 12px;
    font-size: 13px;
    outline: none;
    cursor: pointer;
    min-width: 0;
}
.filter-search select:focus { border-color: var(--gold); }
.filter-control {
    width: 100%;
}
.filter-search-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #0a0a0f;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
}
.filter-search-button:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    transform: translateY(-1px);
}

.catalog-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 18px;
    margin-bottom: 14px;
    background: linear-gradient(180deg, rgba(20,20,32,0.95) 0%, rgba(14,14,24,0.95) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.catalog-filter-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(201,168,76,0.18);
    background: rgba(201,168,76,0.05);
    color: var(--text-light);
    font-size: 13px;
    font-weight: 700;
    transition: var(--transition);
    white-space: nowrap;
}
.catalog-filter-tab:hover,
.catalog-filter-tab.active {
    background: linear-gradient(135deg, rgba(201,168,76,0.2), rgba(139,105,20,0.18));
    border-color: var(--gold);
    color: var(--gold-light);
}

/* ============================================================
   FORMS
   ============================================================ */
.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}
.form-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}
.form-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}
.form-group {
    margin-bottom: 18px;
}
.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 6px;
}
.form-label .required { color: var(--danger); margin-left: 2px; }
.form-control {
    width: 100%;
    background: var(--bg-card2);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}
.form-control:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,0.1); }
.form-control::placeholder { color: var(--text-muted); }
.form-control.is-invalid { border-color: var(--danger); }
.form-error { font-size: 12px; color: var(--danger); margin-top: 4px; }
textarea.form-control {
    resize: vertical;
    min-height: 120px;
    padding: 16px 18px;
    line-height: 1.9;
}
.form-rich-editor-textarea.is-editor-hidden {
    display: none;
}
.form-rich-editor {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(17, 19, 30, 0.98), rgba(11, 14, 22, 0.98));
    overflow: hidden;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.2);
}
.form-rich-editor.is-focused {
    border-color: rgba(201, 168, 76, 0.72);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.12), 0 20px 44px rgba(0, 0, 0, 0.2);
}
.form-rich-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at top left, rgba(201, 168, 76, 0.15), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}
.form-rich-toolbar-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding-right: 8px;
    margin-right: 4px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.form-rich-toolbar-group:last-child {
    border-right: 0;
    margin-right: 0;
    padding-right: 0;
}
.form-rich-toolbar select,
.form-rich-toolbar button,
.form-rich-toolbar input[type="color"] {
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(12, 16, 24, 0.92);
    color: var(--text-main);
    font-size: 12px;
    transition: var(--transition);
}
.form-rich-toolbar select {
    min-width: 118px;
    padding: 0 12px;
}
.form-rich-toolbar button {
    min-width: 36px;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.form-rich-toolbar input[type="color"] {
    width: 36px;
    padding: 4px;
    cursor: pointer;
}
.form-rich-toolbar select:hover,
.form-rich-toolbar button:hover,
.form-rich-toolbar input[type="color"]:hover,
.form-rich-toolbar select:focus,
.form-rich-toolbar button:focus,
.form-rich-toolbar input[type="color"]:focus {
    border-color: rgba(201, 168, 76, 0.62);
    color: var(--gold-light);
    outline: none;
}
.form-rich-editor-stage {
    position: relative;
}
.form-rich-dialog-open {
    overflow: hidden;
}
.form-rich-dialog-backdrop {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(3, 5, 12, 0.74);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease;
    z-index: 1400;
}
.form-rich-dialog-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.form-rich-dialog {
    width: min(100%, 520px);
    border: 1px solid rgba(201, 168, 76, 0.24);
    border-radius: 18px;
    background:
        radial-gradient(circle at top left, rgba(201, 168, 76, 0.14), transparent 34%),
        linear-gradient(180deg, rgba(16, 19, 29, 0.98), rgba(10, 12, 20, 0.98));
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.46);
    transform: translateY(12px) scale(0.98);
    transition: transform 0.2s ease;
}
.form-rich-dialog-backdrop.is-open .form-rich-dialog {
    transform: translateY(0) scale(1);
}
.form-rich-dialog-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 22px 12px;
}
.form-rich-dialog-title {
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
    color: #f8fafc;
}
.form-rich-dialog-copy {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-muted);
}
.form-rich-dialog-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}
.form-rich-dialog-close:hover {
    border-color: rgba(201, 168, 76, 0.52);
    color: var(--gold-light);
}
.form-rich-dialog-form {
    padding: 0 22px 22px;
}
.form-rich-dialog-fields {
    display: grid;
    gap: 14px;
}
.form-rich-dialog-field {
    display: grid;
    gap: 7px;
}
.form-rich-dialog-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text-light);
}
.form-rich-dialog-input {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(9, 12, 19, 0.94);
    color: var(--text-main);
    padding: 0 14px;
    font-size: 14px;
    transition: var(--transition);
}
.form-rich-dialog-input:focus {
    outline: none;
    border-color: rgba(201, 168, 76, 0.72);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.12);
}
.form-rich-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}
.form-rich-dialog-cancel,
.form-rich-dialog-confirm {
    min-height: 42px;
    border-radius: 12px;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}
.form-rich-dialog-cancel {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-light);
}
.form-rich-dialog-cancel:hover {
    border-color: rgba(201, 168, 76, 0.38);
    color: var(--gold-light);
}
.form-rich-dialog-confirm {
    border: 0;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #0a0a0f;
    box-shadow: 0 12px 28px rgba(201, 168, 76, 0.22);
}
.form-rich-dialog-confirm:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    transform: translateY(-1px);
}
.form-rich-editor-area {
    min-height: 420px;
    padding: 24px 28px 30px;
    color: var(--text-main);
    font-size: 15px;
    line-height: 2;
    outline: none;
    overflow-wrap: anywhere;
    white-space: normal;
}
.form-rich-editor-area.is-empty::before {
    content: attr(data-placeholder);
    color: rgba(148, 163, 184, 0.82);
    pointer-events: none;
}
.form-rich-editor-area p,
.form-rich-editor-area ul,
.form-rich-editor-area ol,
.form-rich-editor-area blockquote,
.form-rich-editor-area table,
.form-rich-editor-area h1,
.form-rich-editor-area h2,
.form-rich-editor-area h3 {
    margin: 0 0 18px;
}
.form-rich-editor-area p:last-child,
.form-rich-editor-area ul:last-child,
.form-rich-editor-area ol:last-child,
.form-rich-editor-area blockquote:last-child,
.form-rich-editor-area table:last-child {
    margin-bottom: 0;
}
.form-rich-editor-area ul,
.form-rich-editor-area ol {
    padding-left: 24px;
}

.form-rich-editor-area ul {
    list-style: disc outside;
}

.form-rich-editor-area ol {
    list-style: decimal outside;
}

.form-rich-editor-area li {
    margin-bottom: 8px;
}
.form-rich-editor-area blockquote {
    border-left: 3px solid rgba(201, 168, 76, 0.72);
    padding: 12px 16px;
    border-radius: 0 12px 12px 0;
    background: rgba(201, 168, 76, 0.08);
    color: #f8fafc;
}
.form-rich-editor-area a {
    color: #8bc8ff;
    text-decoration: underline;
}
.form-rich-editor-area img {
    max-width: 100%;
    border-radius: 14px;
    display: block;
    margin: 16px auto;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}
.form-rich-editor-area table {
    width: 100%;
    border-collapse: collapse;
}
.form-rich-editor-area td,
.form-rich-editor-area th {
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 10px 12px;
}
.form-rich-emoji-panel {
    position: absolute;
    right: 16px;
    top: 14px;
    width: 268px;
    max-height: 220px;
    overflow-y: auto;
    display: none;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(201, 168, 76, 0.26);
    background: rgba(11, 14, 22, 0.98);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.34);
    z-index: 4;
}
.form-rich-emoji-panel.is-open {
    display: grid;
}
.form-rich-emoji {
    border: 0;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 8px 0;
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
}
.form-rich-emoji:hover {
    background: rgba(201, 168, 76, 0.16);
    transform: translateY(-1px);
}
@media (max-width: 768px) {
    .form-rich-toolbar-group {
        border-right: 0;
        padding-right: 0;
        margin-right: 0;
    }
    .form-rich-editor-area {
        min-height: 320px;
        padding: 18px 18px 24px;
        font-size: 14px;
        line-height: 1.9;
    }
    .form-rich-dialog-backdrop {
        padding: 16px;
    }
    .form-rich-dialog {
        width: 100%;
        border-radius: 16px;
    }
    .form-rich-dialog-head {
        padding: 18px 18px 10px;
    }
    .form-rich-dialog-form {
        padding: 0 18px 18px;
    }
    .form-rich-dialog-actions {
        flex-direction: column-reverse;
    }
    .form-rich-dialog-cancel,
    .form-rich-dialog-confirm {
        width: 100%;
    }
    .form-rich-emoji-panel {
        left: 12px;
        right: 12px;
        width: auto;
        top: auto;
        bottom: 12px;
    }
}
select.form-control { cursor: pointer; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-light);
    cursor: pointer;
}
.form-check input[type="checkbox"] { accent-color: var(--gold); width: 16px; height: 16px; }
.form-hint { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #0a0a0f;
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: #0a0a0f;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(201,168,76,0.3);
}
.btn-secondary {
    background: var(--bg-card2);
    border: 1px solid var(--border);
    color: var(--text-light);
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }
.btn-danger {
    background: var(--danger);
    color: #fff;
}
.btn-danger:hover { background: #dc2626; transform: translateY(-1px); }
.btn-success {
    background: var(--success);
    color: #fff;
}
.btn-success:hover { background: #16a34a; }
.btn-outline {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
}
.btn-outline:hover { background: rgba(201,168,76,0.1); }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-lg { padding: 13px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-left: 3px solid;
}
.alert-success { background: rgba(34,197,94,0.1); border-color: var(--success); color: #86efac; }
.alert-error, .alert-danger { background: rgba(239,68,68,0.1); border-color: var(--danger); color: #fca5a5; }
.alert-warning { background: rgba(245,158,11,0.1); border-color: var(--warning); color: #fcd34d; }
.alert-info { background: rgba(59,130,246,0.1); border-color: var(--info); color: #93c5fd; }

/* ============================================================
   SERVER DETAIL PAGE
   ============================================================ */
.server-detail-layout {
    grid-template-columns: 1fr 300px;
}
.server-detail-header {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 20px;
}
.server-banner-large {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}
.server-banner-placeholder {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, var(--bg-card2), var(--bg-sidebar));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 48px;
}
.server-detail-info {
    padding: 20px;
}
.server-detail-top {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}
.server-detail-top-main {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex: 1;
    min-width: 0;
}
.server-detail-top-main > div:last-child {
    min-width: 0;
}
.server-detail-rating-summary {
    text-align: right;
    flex-shrink: 0;
}
.server-logo-large {
    width: 72px;
    height: 72px;
    border-radius: var(--radius);
    object-fit: cover;
    border: 2px solid var(--border-gold);
    flex-shrink: 0;
}
.server-detail-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 6px;
}
.server-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
}
.server-detail-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}
.server-detail-meta i { color: var(--gold-dark); }
.server-detail-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}
.btn-vote {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #0a0a0f;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-vote:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(201,168,76,0.4);
}
.btn-vote.voted {
    background: var(--bg-card2);
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: not-allowed;
}
.btn-vote-login {
    text-decoration: none;
}
.server-stats-bar {
    display: flex;
    gap: 20px;
    padding: 14px 20px;
    background: var(--bg-card2);
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}
.server-stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}
.server-stat-item .num {
    font-size: 18px;
    font-weight: 800;
    color: var(--gold);
}
.server-stat-item .lbl { color: var(--text-muted); font-size: 11px; }
.content-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}
.content-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}
.server-description { font-size: 14px; color: var(--text-light); line-height: 1.8; }
.server-description h3 { color: var(--gold-light); margin: 16px 0 8px; font-size: 16px; }
.server-description ul { list-style: disc; padding-left: 22px; margin: 8px 0; }
.server-description ul li { list-style: disc; margin-bottom: 8px; color: var(--text-muted); }
.server-links { display: flex; flex-direction: column; gap: 8px; }
.server-link-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-card2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-light);
    min-width: 0;
    transition: var(--transition);
}
.server-link-item:hover { border-color: var(--gold); color: var(--gold); }
.server-link-item i { color: var(--gold-dark); width: 16px; text-align: center; }
.countdown-box {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.countdown-unit {
    text-align: center;
    background: var(--bg-card2);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius);
    padding: 12px 16px;
    min-width: 70px;
}
.countdown-unit .num {
    font-size: 28px;
    font-weight: 800;
    color: var(--gold);
    display: block;
    line-height: 1;
}
.countdown-unit .lbl {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
    display: block;
}

/* ============================================================
   COMMENTS
   ============================================================ */
.comment-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.comment-item:last-child { border-bottom: none; }
.comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
}
.comment-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-dark), var(--bronze));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}
.comment-name { font-size: 13px; font-weight: 600; color: var(--text-main); }
.comment-date { font-size: 11px; color: var(--text-muted); }
.comment-text { font-size: 13px; color: var(--text-light); line-height: 1.6; }
.comment-form textarea {
    width: 100%;
    background: var(--bg-card2);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    resize: vertical;
    min-height: 90px;
    outline: none;
    transition: var(--transition);
    margin-bottom: 10px;
}
.comment-form textarea:focus { border-color: var(--gold); }
.star-rating-input { display: flex; gap: 4px; margin-bottom: 10px; }
.star-rating-input label {
    font-size: 22px;
    color: var(--border);
    cursor: pointer;
    transition: var(--transition);
}
.star-rating-input input { display: none; }
.star-rating-input label:hover,
.star-rating-input label.active { color: var(--gold); }

/* ============================================================
   STAR RATING DISPLAY
   ============================================================ */
.star-rating { display: inline-flex; gap: 2px; }
.star-full { color: var(--gold); font-size: 12px; }
.star-half { color: var(--gold); font-size: 12px; }
.star-empty { color: var(--border); font-size: 12px; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination-nav { margin-top: 24px; }
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}
.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 13px;
    transition: var(--transition);
}
.page-link:hover { border-color: var(--gold); color: var(--gold); }
.page-link.active {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-color: var(--gold);
    color: #0a0a0f;
    font-weight: 700;
}
.page-dots { color: var(--text-muted); display: flex; align-items: center; padding: 0 4px; }

/* ============================================================
   BLOG
   ============================================================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}
.blog-card:hover { border-color: var(--border-gold); transform: translateY(-2px); box-shadow: var(--shadow-gold); }
.blog-card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}
.blog-card-img-placeholder {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, var(--bg-card2), var(--bg-sidebar));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 32px;
}
.blog-card-body { padding: 14px; }
.blog-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
    line-height: 1.4;
}
.blog-card-title a { color: inherit; }
.blog-card-title a:hover { color: var(--gold); }
.blog-card-excerpt { font-size: 12px; color: var(--text-muted); line-height: 1.5; margin-bottom: 10px; }
.blog-card-meta { font-size: 11px; color: var(--text-muted); display: flex; gap: 10px; }
.blog-detail-shell {
    max-width: 860px;
    margin: 24px auto;
    padding: 0 20px;
}
.blog-detail-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
}
.blog-detail-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-main);
}
.blog-detail-meta-block {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.blog-detail-content {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.95;
}
.blog-detail-content > * {
    margin-top: 0;
    margin-bottom: 20px;
}
.blog-detail-content > *:last-child {
    margin-bottom: 0;
}
.blog-detail-content p {
    max-width: 74ch;
}
.blog-detail-content ul,
.blog-detail-content ol {
    padding-left: 24px;
}
.blog-detail-content ul {
    list-style: disc outside;
}
.blog-detail-content ol {
    list-style: decimal outside;
}
.blog-detail-content li {
    display: list-item;
    margin-bottom: 8px;
}
.blog-detail-content ul li {
    list-style: disc;
}
.blog-detail-content ol li {
    list-style: decimal;
}
.blog-detail-content ul ul {
    list-style: circle outside;
}
.blog-detail-content ul ul li {
    list-style: circle;
}
.blog-detail-content blockquote {
    padding: 16px 18px;
    border-left: 3px solid rgba(201, 168, 76, 0.72);
    background: rgba(201, 168, 76, 0.08);
    border-radius: 0 14px 14px 0;
}
.blog-detail-content img {
    max-width: 100%;
    display: block;
    border-radius: 16px;
    margin: 22px auto;
}
.blog-detail-content table {
    width: 100%;
    border-collapse: collapse;
}
.blog-detail-content td,
.blog-detail-content th {
    border: 1px solid var(--border);
    padding: 10px 12px;
}
.blog-detail-related {
    margin-top: 24px;
}
.blog-detail-related-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--gold);
}
.discovery-hub-card {
    position: relative;
    overflow: hidden;
    padding: 18px 18px 16px;
    border-radius: 20px;
    background:
        radial-gradient(circle at top right, rgba(201,168,76,0.18), transparent 28%),
        linear-gradient(135deg, rgba(25,25,38,0.98), rgba(18,18,29,0.98) 58%, rgba(14,14,24,0.98));
    border: 1px solid rgba(201,168,76,0.14);
    box-shadow: 0 24px 60px rgba(0,0,0,0.28);
}
.discovery-hub-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.03), transparent 20%),
        radial-gradient(circle at bottom left, rgba(255,255,255,0.03), transparent 28%);
    pointer-events: none;
}
.content-bridge-card {
    background:
        radial-gradient(circle at top right, rgba(201,168,76,0.12), transparent 34%),
        linear-gradient(180deg, rgba(255,255,255,0.02), transparent 30%),
        var(--bg-card);
}
.discovery-hub-head,
.content-bridge-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.discovery-hub-head {
    position: relative;
    z-index: 1;
    margin-bottom: 16px;
}
.content-bridge-head {
    margin-bottom: 18px;
}
.discovery-hub-kicker,
.content-bridge-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(201,168,76,0.28);
    background: rgba(201,168,76,0.1);
    color: var(--gold-light);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.discovery-hub-title,
.content-bridge-title {
    margin: 0 0 8px;
    color: var(--text-main);
    line-height: 1.14;
}
.discovery-hub-title {
    font-size: clamp(22px, 2.2vw, 28px);
    max-width: 18ch;
}
.content-bridge-title {
    font-size: 22px;
}
.discovery-hub-copy,
.content-bridge-copy {
    max-width: 62ch;
    font-size: 12px;
    line-height: 1.65;
    color: var(--text-muted);
    margin: 0;
}
.discovery-hub-links,
.content-bridge-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.discovery-hub-links {
    justify-content: flex-end;
}
.discovery-hub-link,
.content-bridge-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 13px;
    border-radius: 999px;
    border: 1px solid rgba(201,168,76,0.18);
    background: rgba(255,255,255,0.035);
    color: var(--text-light);
    font-size: 11px;
    font-weight: 700;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}
.discovery-hub-link:hover,
.content-bridge-link:hover {
    color: #0a0a0f;
    border-color: var(--gold);
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    transform: translateY(-1px);
}
.discovery-link-panels,
.content-bridge-columns {
    display: grid;
    gap: 12px;
}
.discovery-link-panels {
    position: relative;
    z-index: 1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.content-bridge-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.discovery-link-panel,
.content-bridge-list {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    padding: 14px;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 14px 28px rgba(0,0,0,0.18);
}
.discovery-link-panel.tone-new {
    border-color: rgba(201,168,76,0.22);
    background:
        radial-gradient(circle at top right, rgba(201,168,76,0.12), transparent 34%),
        linear-gradient(180deg, rgba(201,168,76,0.05), rgba(255,255,255,0.012));
}
.discovery-link-panel.tone-top {
    border-color: rgba(96,165,250,0.18);
    background:
        radial-gradient(circle at top right, rgba(96,165,250,0.12), transparent 34%),
        linear-gradient(180deg, rgba(96,165,250,0.05), rgba(255,255,255,0.012));
}
.discovery-link-panel.tone-blog {
    border-color: rgba(52,211,153,0.18);
    background:
        radial-gradient(circle at top right, rgba(52,211,153,0.12), transparent 34%),
        linear-gradient(180deg, rgba(52,211,153,0.05), rgba(255,255,255,0.012));
}
.discovery-link-panel::before,
.content-bridge-list::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent 18%);
    pointer-events: none;
}
.discovery-link-panel.is-featured {
    background:
        radial-gradient(circle at top right, rgba(201,168,76,0.12), transparent 34%),
        linear-gradient(180deg, rgba(201,168,76,0.06), rgba(255,255,255,0.015) 24%, rgba(255,255,255,0.01));
    border-color: rgba(201,168,76,0.2);
}
.discovery-link-panel-head,
.content-bridge-list-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}
.discovery-link-panel-head h3,
.content-bridge-list-head h3 {
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
}
.discovery-panel-more,
.content-bridge-list-more {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(201,168,76,0.08);
    border: 1px solid rgba(201,168,76,0.18);
    color: var(--gold-light);
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}
.discovery-panel-more:hover,
.content-bridge-list-more:hover {
    color: var(--gold);
    border-color: rgba(201,168,76,0.34);
}
.discovery-link-list,
.content-bridge-list ul {
    position: relative;
    z-index: 1;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.discovery-link-item,
.content-bridge-list li {
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.discovery-link-item {
    padding: 10px 10px 9px;
    border-top: 0;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    background: rgba(10,11,18,0.42);
    transition: var(--transition);
}
.discovery-link-item:hover {
    border-color: rgba(201,168,76,0.28);
    background: rgba(14,16,24,0.62);
    transform: translateY(-1px);
}
.discovery-link-panel.tone-top .discovery-link-item:hover {
    border-color: rgba(96,165,250,0.34);
}
.discovery-link-panel.tone-blog .discovery-link-item:hover {
    border-color: rgba(52,211,153,0.34);
}
.discovery-link-item:first-child,
.content-bridge-list li:first-child {
    padding-top: 0;
    border-top: 0;
}
.discovery-link-item:first-child {
    padding-top: 10px;
}
.discovery-link-title,
.content-bridge-item-title {
    display: inline-block;
    color: var(--text-main);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.38;
}
.discovery-link-title:hover,
.content-bridge-item-title:hover {
    color: var(--gold-light);
}
.discovery-link-meta,
.content-bridge-item-meta {
    margin-top: 4px;
    color: var(--gold-light);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.01em;
}
.discovery-link-summary,
.content-bridge-item-summary {
    margin-top: 5px;
    font-size: 11px;
    line-height: 1.55;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.discovery-hub-footer {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.discovery-footer-label {
    color: var(--gold-light);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.discovery-category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.discovery-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    color: var(--text-light);
    font-size: 11px;
    transition: var(--transition);
}
.discovery-chip strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(201,168,76,0.12);
    color: var(--gold);
    font-size: 9px;
    font-weight: 800;
}
.discovery-chip:hover {
    border-color: rgba(201,168,76,0.34);
    color: var(--gold-light);
}

.keyword-card {
    margin-top: 20px;
}
.keyword-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.keyword-tags-wide {
    margin-bottom: 18px;
}
.keyword-tags.compact {
    gap: 6px;
}
.keyword-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(201,168,76,0.3);
    background: rgba(201,168,76,0.1);
    color: var(--gold-light);
    font-size: 12px;
    line-height: 1.2;
    max-width: 100%;
}
.keyword-chip.keyword-chip-summary {
    font-weight: 700;
    background: rgba(99, 102, 241, 0.16);
    border-color: rgba(129, 140, 248, 0.4);
    color: #dbeafe;
}
.keyword-tags.compact .keyword-chip {
    min-height: 24px;
    padding: 4px 10px;
    font-size: 11px;
}
.keyword-pool-data {
    display: none !important;
}

/* ============================================================
   ANNOUNCEMENT BANNER
   ============================================================ */
.announcement-bar {
    padding: 10px 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid;
}
.announcement-bar.info { background: rgba(59,130,246,0.1); border-color: rgba(59,130,246,0.3); color: #93c5fd; }
.announcement-bar.success { background: rgba(34,197,94,0.1); border-color: rgba(34,197,94,0.3); color: #86efac; }
.announcement-bar.warning { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.3); color: #fcd34d; }
.announcement-bar.danger { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.3); color: #fca5a5; }

/* ============================================================
   FEATURED SHOWCASE
   ============================================================ */
.featured-showcase {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}
.featured-spotlight {
    position: relative;
    display: grid;
    grid-template-columns: 74px 156px minmax(0, 1fr) 120px;
    background:
        linear-gradient(180deg, rgba(103, 73, 42, 0.14), transparent 18%),
        linear-gradient(90deg, rgba(255,255,255,0.03), transparent 35%, rgba(255,255,255,0.02) 70%, transparent),
        linear-gradient(135deg, #4a331f, #271b13 56%, #1a1411);
    border: 1px solid rgba(184,132,62,0.42);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(0,0,0,0.26);
    min-height: 164px;
}
.featured-spotlight::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(255,183,77,0.12), transparent 28%),
        linear-gradient(180deg, rgba(255,255,255,0.03), transparent 44%);
    pointer-events: none;
}
.featured-tone-vip {
    border-color: rgba(214, 129, 44, 0.46);
}
.featured-tone-premium {
    border-color: rgba(208, 170, 79, 0.46);
}
.featured-ribbon,
.featured-side-info,
.featured-content,
.featured-stats {
    position: relative;
    z-index: 1;
    min-width: 0;
}
.featured-ribbon {
    padding: 12px 8px 10px;
    background: linear-gradient(180deg, rgba(42, 27, 15, 0.92), rgba(27, 18, 13, 0.95));
    border-right: 1px solid rgba(198,149,73,0.24);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}
.featured-rank {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.7px;
    color: #ff965a;
    text-transform: uppercase;
    line-height: 1.1;
}
.featured-rank i {
    font-size: 12px;
}
.featured-ribbon-badge {
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
    color: #ff7c1f;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0,0,0,0.28);
}
.featured-ribbon-type {
    display: -webkit-box;
    font-size: 8px;
    font-weight: 700;
    color: rgba(255,255,255,0.82);
    letter-spacing: 0.35px;
    text-transform: uppercase;
    line-height: 1.16;
    overflow: hidden;
    overflow-wrap: anywhere;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}
.featured-more {
    margin-top: auto;
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
    font-size: 9px;
    font-weight: 700;
    color: #d65f3a;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}
.featured-more i {
    font-size: 12px;
    color: rgba(255,255,255,0.74);
}
.featured-side-info {
    padding: 14px 12px 12px;
    border-right: 1px solid rgba(198,149,73,0.18);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    text-align: center;
}
.featured-side-stat {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}
.featured-side-label {
    font-size: 10px;
    color: rgba(255,255,255,0.76);
}
.featured-side-value {
    font-size: 10px;
    color: #ffb36c;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.featured-side-stars {
    display: flex;
    justify-content: center;
    padding-top: 2px;
}
.featured-side-comments {
    font-size: 10px;
    color: rgba(255,255,255,0.76);
}
.featured-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px 10px;
}
.featured-content-title {
    text-align: center;
    font-size: 15px;
    font-weight: 800;
    color: #f1d7a0;
    line-height: 1.15;
    text-shadow: 0 3px 12px rgba(0,0,0,0.45);
    min-width: 0;
}
.featured-content-title a,
.featured-content-caption a {
    color: inherit;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.featured-banner-frame {
    display: block;
    position: relative;
    height: 90px;
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid rgba(214,173,98,0.34);
    background: linear-gradient(135deg, rgba(64,46,29,0.96), rgba(26,21,16,0.98));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}
.featured-banner-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.featured-banner-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.06), rgba(0,0,0,0.24));
}
.featured-banner-empty {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    color: rgba(255,255,255,0.82);
    text-align: center;
    background:
        radial-gradient(circle at top left, rgba(224,173,87,0.18), transparent 42%),
        linear-gradient(135deg, rgba(76,55,34,0.94), rgba(24,19,17,0.98));
}
.featured-banner-empty img {
    max-width: 58px;
    max-height: 58px;
    object-fit: contain;
}
.featured-banner-empty i {
    font-size: 24px;
    color: #e0b56a;
}
.featured-banner-empty span {
    font-size: 12px;
    color: rgba(255,255,255,0.9);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.featured-content-caption {
    text-align: center;
    font-size: 11px;
    color: rgba(236,193,113,0.92);
}
.featured-keywords {
    justify-content: center;
    margin-top: 10px;
}
.featured-keywords .keyword-chip {
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.featured-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    padding: 12px 12px 12px 0;
}
.featured-stat-box {
    min-height: 46px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.featured-stat-button,
.featured-stat-link {
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease, opacity 0.2s ease;
}
.featured-stat-button {
    width: 100%;
    appearance: none;
    padding: 0;
}
.featured-stat-button:hover,
.featured-stat-link:hover {
    color: #fff;
    transform: translateY(-1px);
    filter: brightness(1.04);
}
.featured-stat-button.is-loading {
    opacity: 0.78;
}
.featured-stat-button.voted {
    cursor: not-allowed;
    filter: saturate(0.7);
}
.featured-stat-box i {
    font-size: 15px;
}
.featured-stat-box span {
    font-size: 15px;
    line-height: 1;
}
.featured-stat-box.votes {
    background: linear-gradient(135deg, #4f9f3b, #2f7a30);
}
.featured-stat-box.views {
    background: linear-gradient(135deg, #d0a44a, #a77a27);
}

/* ============================================================
   AD SYSTEM
   ============================================================ */
.site-main {
    position: relative;
}
body.has-floating-left .announcement-stack,
body.has-floating-left .site-header,
body.has-floating-left .header-ad-band,
body.has-floating-left .site-main,
body.has-floating-left .footer-ad-band,
body.has-floating-left .site-footer {
    padding-left: var(--floating-left-space);
}
body.has-floating-right .announcement-stack,
body.has-floating-right .site-header,
body.has-floating-right .header-ad-band,
body.has-floating-right .site-main,
body.has-floating-right .footer-ad-band,
body.has-floating-right .site-footer {
    padding-right: var(--floating-right-space);
}
.layout-ad {
    max-width: 1280px;
    margin: 18px auto;
    padding: 0 20px;
}
.header-ad-band {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}
.header-ad-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
}
.header-ad-grid.is-single {
    grid-template-columns: minmax(0, 1fr);
    max-width: 420px;
}
.header-ad-grid.is-single-left {
    margin: 0 auto 0 0;
}
.header-ad-grid.is-single-right {
    margin: 0 0 0 auto;
}
.layout-ad-header-split,
.layout-ad-header-legacy {
    max-width: none;
    margin: 0;
    padding: 0;
}
.layout-ad-header-legacy {
    max-width: 720px;
    margin: 0 auto;
}
.layout-ad-header-split .ad-link img,
.layout-ad-header-split .ad-link.is-static img,
.layout-ad-header-split .ad-code,
.layout-ad-header-legacy .ad-link img,
.layout-ad-header-legacy .ad-link.is-static img,
.layout-ad-header-legacy .ad-code {
    border-radius: 0 0 14px 14px;
}
.layout-ad-header-split .ad-link img,
.layout-ad-header-split .ad-link.is-static img {
    object-fit: cover;
}
.footer-ad-band {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0;
    position: relative;
    z-index: 1110;
}
.footer-ad-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    align-items: start;
    width: 100%;
}
.footer-ad-grid > * {
    width: 100%;
    min-width: 0;
}
.footer-ad-grid.is-single {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
}
.footer-ad-grid.is-single-left {
    margin: 0;
}
.footer-ad-grid.is-single-right {
    margin: 0;
}
.footer-ad-grid.is-single-left > * {
    grid-column: 1;
}
.footer-ad-grid.is-single-right > * {
    grid-column: 2;
}
.layout-ad-footer-split,
.layout-ad-footer {
    max-width: none;
    margin: 0;
    padding: 0;
}
.layout-ad-footer-split {
    width: 100%;
}
.layout-ad-footer {
    max-width: 720px;
    margin: 0 auto;
}
.ad-slot {
    position: relative;
}
.ad-link,
.ad-link.is-static {
    display: block;
    width: 100%;
}
.ad-link,
.ad-link.is-static,
.ad-code {
    overflow: hidden;
}
.ad-link img,
.ad-link.is-static img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
}
.ad-code {
    border-radius: 16px;
    overflow: hidden;
}
.ad-code > * {
    max-width: 100% !important;
}
.ad-slot-sidebar_top,
.ad-slot-sidebar_bottom,
.ad-slot-header_left,
.ad-slot-header_right,
.ad-slot-header,
.ad-slot-footer_left,
.ad-slot-footer_right,
.ad-slot-footer,
.ad-slot-content_top,
.ad-slot-content_bottom,
.ad-slot-floating_left,
.ad-slot-floating_right {
    overflow: hidden;
}
.ad-slot-header_left .ad-link,
.ad-slot-header_left .ad-link.is-static,
.ad-slot-header_left .ad-code,
.ad-slot-header_right .ad-link,
.ad-slot-header_right .ad-link.is-static,
.ad-slot-header_right .ad-code,
.ad-slot-header .ad-link,
.ad-slot-header .ad-link.is-static,
.ad-slot-header .ad-code,
.ad-slot-content_top .ad-link,
.ad-slot-content_top .ad-link.is-static,
.ad-slot-content_top .ad-code,
.ad-slot-content_bottom .ad-link,
.ad-slot-content_bottom .ad-link.is-static,
.ad-slot-content_bottom .ad-code,
.ad-slot-footer_left .ad-link,
.ad-slot-footer_left .ad-link.is-static,
.ad-slot-footer_left .ad-code,
.ad-slot-footer_right .ad-link,
.ad-slot-footer_right .ad-link.is-static,
.ad-slot-footer_right .ad-code,
.ad-slot-footer .ad-link,
.ad-slot-footer .ad-link.is-static,
.ad-slot-footer .ad-code {
    background: linear-gradient(135deg, rgba(10,10,16,0.96), rgba(20,20,32,0.96));
}
.ad-slot-header_left .ad-link,
.ad-slot-header_left .ad-link.is-static,
.ad-slot-header_left .ad-code,
.ad-slot-header_right .ad-link,
.ad-slot-header_right .ad-link.is-static,
.ad-slot-header_right .ad-code {
    height: auto;
    aspect-ratio: 1408 / 700;
}
.ad-slot-header .ad-link,
.ad-slot-header .ad-link.is-static,
.ad-slot-header .ad-code {
    height: clamp(102px, 13vw, 154px);
}
.ad-slot-content_top .ad-link,
.ad-slot-content_top .ad-link.is-static,
.ad-slot-content_top .ad-code,
.ad-slot-content_bottom .ad-link,
.ad-slot-content_bottom .ad-link.is-static,
.ad-slot-content_bottom .ad-code {
    height: clamp(130px, 16vw, 210px);
}
.ad-slot-footer_left .ad-link,
.ad-slot-footer_left .ad-link.is-static,
.ad-slot-footer_left .ad-code,
.ad-slot-footer_right .ad-link,
.ad-slot-footer_right .ad-link.is-static,
.ad-slot-footer_right .ad-code {
    height: auto;
    aspect-ratio: 1400 / 768;
}
.ad-slot-footer .ad-link,
.ad-slot-footer .ad-link.is-static,
.ad-slot-footer .ad-code {
    height: clamp(96px, 13vw, 150px);
}
.ad-slot-sidebar_top .ad-link,
.ad-slot-sidebar_top .ad-link.is-static,
.ad-slot-sidebar_top .ad-code,
.ad-slot-sidebar_bottom .ad-link,
.ad-slot-sidebar_bottom .ad-link.is-static,
.ad-slot-sidebar_bottom .ad-code {
    min-height: 0;
    height: 100%;
    aspect-ratio: 1 / 1;
    max-height: none;
    background: linear-gradient(135deg, rgba(10,10,16,0.96), rgba(20,20,32,0.96));
}
.ad-slot-floating_left .ad-link,
.ad-slot-floating_left .ad-link.is-static,
.ad-slot-floating_left .ad-code,
.ad-slot-floating_right .ad-link,
.ad-slot-floating_right .ad-link.is-static,
.ad-slot-floating_right .ad-code {
    height: 100%;
    min-height: 0;
    background: #0b0c14;
}
.ad-slot-header_left img,
.ad-slot-header_right img,
.ad-slot-header img,
.ad-slot-content_top img,
.ad-slot-content_bottom img,
.ad-slot-footer_left img,
.ad-slot-footer_right img,
.ad-slot-footer img,
.ad-slot-floating_left img,
.ad-slot-floating_right img,
.ad-slot-sidebar_top img,
.ad-slot-sidebar_bottom img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(10,10,16,0.96), rgba(20,20,32,0.96));
}
.ad-slot-floating_left img,
.ad-slot-floating_right img {
    object-fit: cover;
    object-position: center top;
    background: transparent;
}
.ad-slot-header_left .ad-code,
.ad-slot-header_right .ad-code,
.ad-slot-header .ad-code,
.ad-slot-content_top .ad-code,
.ad-slot-content_bottom .ad-code,
.ad-slot-footer_left .ad-code,
.ad-slot-footer_right .ad-code,
.ad-slot-footer .ad-code,
.ad-slot-sidebar_top .ad-code,
.ad-slot-sidebar_bottom .ad-code,
.ad-slot-floating_left .ad-code,
.ad-slot-floating_right .ad-code {
    display: flex;
    align-items: center;
    justify-content: center;
}
.ad-slot-header_left .ad-code > *,
.ad-slot-header_right .ad-code > *,
.ad-slot-header .ad-code > *,
.ad-slot-content_top .ad-code > *,
.ad-slot-content_bottom .ad-code > *,
.ad-slot-footer_left .ad-code > *,
.ad-slot-footer_right .ad-code > *,
.ad-slot-footer .ad-code > *,
.ad-slot-sidebar_top .ad-code > *,
.ad-slot-sidebar_bottom .ad-code > *,
.ad-slot-floating_left .ad-code > *,
.ad-slot-floating_right .ad-code > * {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
}
.layout-ad .ad-link img,
.layout-ad .ad-link.is-static img,
.layout-ad .ad-code {
    border: 1px solid rgba(201,168,76,0.18);
    box-shadow: 0 16px 32px rgba(0,0,0,0.2);
}
.layout-ad-footer-split .ad-link img,
.layout-ad-footer-split .ad-link.is-static img,
.layout-ad-footer-split .ad-code,
.layout-ad-footer .ad-link img,
.layout-ad-footer .ad-link.is-static img,
.layout-ad-footer .ad-code {
    border-radius: 8px;
}
.layout-ad-footer-split .ad-link img,
.layout-ad-footer-split .ad-link.is-static img {
    object-fit: cover;
}
.layout-ad-footer-split .ad-link img,
.layout-ad-footer-split .ad-link.is-static img {
    object-fit: cover;
}
.layout-ad-footer-split .ad-link img,
.layout-ad-footer-split .ad-link.is-static img {
    object-fit: cover;
}
.floating-ad {
    position: fixed;
    top: 0;
    bottom: auto;
    width: var(--floating-ad-width);
    height: 650px;
    z-index: 1105;
    pointer-events: none;
}
.floating-ad .ad-slot {
    width: 100%;
    height: 100%;
}
.floating-ad-left {
    left: 0;
}
.floating-ad-right {
    right: 0;
}
.floating-ad .ad-link,
.floating-ad .ad-link.is-static,
.floating-ad .ad-code {
    width: 100%;
    height: 100%;
    border-radius: 0;
    border: none;
    box-shadow: none;
}
.floating-ad .ad-link img,
.floating-ad .ad-link.is-static img,
.floating-ad .ad-code {
    border-radius: 0;
}
.floating-ad .ad-link img,
.floating-ad .ad-link.is-static img {
    width: 100%;
    height: 100%;
}
.floating-ad .ad-slot,
.floating-ad .ad-link,
.floating-ad .ad-link.is-static,
.floating-ad .ad-code {
    pointer-events: auto;
}
body.has-floating-left .announcement-stack {
    padding-left: var(--floating-ad-width);
}
body.has-floating-right .announcement-stack {
    padding-right: var(--floating-ad-width);
}
body.has-floating-left.has-floating-right .footer-ad-band {
    width: auto;
    max-width: none;
    margin-left: calc(var(--floating-left-space) - 12px);
    margin-right: calc(var(--floating-right-space) - 12px);
    padding-left: 0 !important;
    padding-right: 0 !important;
}
body.has-floating-left.has-floating-right .header-inner {
    gap: 12px;
    padding: 0 14px;
}
body.has-floating-left.has-floating-right .site-logo .logo-text {
    font-size: 18px;
}
body.has-floating-left.has-floating-right .site-logo .logo-sub {
    font-size: 9px;
    letter-spacing: 1.6px;
}
body.has-floating-left.has-floating-right .site-logo-textmark {
    font-size: 20px;
}
body.has-floating-left.has-floating-right .site-logo-wordmark {
    width: 128px;
    max-width: 128px;
    height: auto;
}
body.has-floating-left.has-floating-right .site-logo-upload {
    width: 132px;
    max-width: 132px;
    height: 34px;
}
body.has-floating-left.has-floating-right .main-nav {
    gap: 2px;
    min-width: 0;
    overflow: visible;
}
body.has-floating-left.has-floating-right .main-nav a {
    padding: 8px 8px;
    font-size: 11px;
}
body.has-floating-left.has-floating-right .main-nav a.nav-add-server {
    padding: 8px 11px;
    margin-left: auto;
    margin-right: 0;
    font-size: 11px;
}
body.has-floating-left.has-floating-right .header-actions {
    gap: 6px;
    margin-left: 8px;
    padding-left: 0;
}
body.has-floating-left.has-floating-right .user-avatar-btn,
body.has-floating-left.has-floating-right .btn-login,
body.has-floating-left.has-floating-right .btn-register {
    padding-left: 9px;
    padding-right: 9px;
    font-size: 11px;
}
body.has-floating-left.has-floating-right .header-ad-band,
body.has-floating-left.has-floating-right .layout-ad,
body.has-floating-left.has-floating-right .hero-section,
body.has-floating-left.has-floating-right .main-wrapper,
body.has-floating-left.has-floating-right .footer-main {
    padding-left: 14px;
    padding-right: 14px;
}
body.has-floating-left.has-floating-right .footer-ad-grid {
    gap: 0 !important;
}
body.has-floating-left.has-floating-right .footer-ad-grid > .layout-ad-footer-split:first-child .ad-link img,
body.has-floating-left.has-floating-right .footer-ad-grid > .layout-ad-footer-split:first-child .ad-link.is-static img,
body.has-floating-left.has-floating-right .footer-ad-grid > .layout-ad-footer-split:first-child .ad-code {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
body.has-floating-left.has-floating-right .footer-ad-grid > .layout-ad-footer-split:last-child .ad-link img,
body.has-floating-left.has-floating-right .footer-ad-grid > .layout-ad-footer-split:last-child .ad-link.is-static img,
body.has-floating-left.has-floating-right .footer-ad-grid > .layout-ad-footer-split:last-child .ad-code {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
body.has-floating-left.has-floating-right .hero-section {
    padding-top: 42px;
    padding-bottom: 42px;
}
body.has-floating-left.has-floating-right .main-wrapper {
    gap: 18px;
}
body.has-floating-left.has-floating-right .footer-main {
    gap: 22px;
}
.popup-ad-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 6, 10, 0.76);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 1200;
    backdrop-filter: blur(6px);
}
.popup-ad-overlay.is-visible {
    display: flex;
}
.popup-ad-dialog {
    position: relative;
    width: min(760px, 90vw);
}
.popup-ad-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.32);
    background: rgba(10,10,15,0.92);
    color: #fff;
    cursor: pointer;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}
.popup-ad-close.is-locked,
.popup-ad-close:disabled {
    cursor: not-allowed;
    background: rgba(15,16,26,0.98);
    opacity: 0.92;
}
.popup-ad-close:not(:disabled):hover {
    transform: scale(1.05);
}
.popup-ad-frame .ad-link img,
.popup-ad-frame .ad-link.is-static img,
.popup-ad-frame .ad-code {
    border-radius: 18px;
    border: 4px solid rgba(255,255,255,0.88);
    box-shadow: 0 30px 90px rgba(0,0,0,0.52);
    background: #05060a;
}

/* ============================================================
   ANNOUNCEMENT OVERRIDE
   ============================================================ */
.announcement-stack {
    position: relative;
    z-index: 1002;
    margin-bottom: 0;
}
.announcement-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    overflow: hidden;
    justify-content: center;
    padding: 10px 20px;
    font-size: 13px;
    border-bottom: 0;
}
.announcement-stack + .header-ad-band,
.announcement-stack + .layout-ad-header-legacy {
    margin-top: -2px;
}
.announcement-pill {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    background: rgba(0,0,0,0.22);
    border: 1px solid rgba(255,255,255,0.12);
}
.announcement-marquee {
    flex: 1;
    overflow: hidden;
}
.announcement-marquee-track {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    width: max-content;
    min-width: 100%;
    white-space: nowrap;
    animation: announcement-scroll 22s linear infinite;
}
.announcement-bar:hover .announcement-marquee-track {
    animation-play-state: paused;
}
.announcement-text {
    font-weight: 700;
    letter-spacing: 0.2px;
}
.announcement-sep {
    opacity: 0.55;
}
.announcement-info {
    background: linear-gradient(90deg, rgba(20,46,79,0.95), rgba(11,26,46,0.92));
    color: #cfe5ff;
}
.announcement-warning {
    background: linear-gradient(90deg, rgba(73,45,8,0.95), rgba(39,23,4,0.92));
    color: #ffe3a3;
}
.announcement-success {
    background: linear-gradient(90deg, rgba(13,58,34,0.95), rgba(8,31,19,0.92));
    color: #c6ffd5;
}
.announcement-danger {
    background: linear-gradient(90deg, rgba(76,17,21,0.95), rgba(36,8,9,0.92));
    color: #ffc3c7;
}
@keyframes announcement-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: #080810;
    border-top: 1px solid var(--border-gold);
    margin-top: 40px;
    position: relative;
    z-index: 1110;
    overflow: hidden;
}
.footer-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 20px 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
}
.footer-brand .logo-text {
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 10px;
}
.footer-brand p { font-size: 13px; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }
.social-links { display: flex; gap: 8px; }
.social-link {
    width: 34px; height: 34px;
    background: var(--bg-card2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 14px;
    transition: var(--transition);
}
.social-link:hover { border-color: var(--gold); color: var(--gold); }
.footer-col h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 13px; color: var(--text-muted); }
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 16px 20px;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-page {
    min-height: calc(100vh - 65px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: radial-gradient(ellipse at center, rgba(201,168,76,0.04) 0%, transparent 70%);
}
.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow);
}
.auth-logo {
    text-align: center;
    margin-bottom: 24px;
}
.auth-logo .logo-icon {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--gold), var(--bronze));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #fff;
    margin: 0 auto 12px;
    box-shadow: 0 0 20px rgba(201,168,76,0.3);
}
.auth-title { font-size: 22px; font-weight: 800; text-align: center; margin-bottom: 4px; }
.auth-subtitle { font-size: 13px; color: var(--text-muted); text-align: center; margin-bottom: 24px; }
.auth-divider {
    text-align: center;
    margin: 16px 0;
    position: relative;
    font-size: 12px;
    color: var(--text-muted);
}
.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}
.auth-divider span {
    background: var(--bg-card);
    padding: 0 12px;
    position: relative;
}
.auth-footer { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 20px; }
.auth-footer a { color: var(--gold); font-weight: 600; }

/* ============================================================
   PROFILE PAGE
   ============================================================ */
.profile-page {
    padding: 28px 20px 40px;
}
.profile-page-inner {
    max-width: 1280px;
    margin: 0 auto;
}
.profile-hero-card,
.profile-section-card,
.profile-side-card,
.profile-server-card,
.profile-comment-card {
    background: linear-gradient(135deg, rgba(20,20,32,0.98), rgba(14,14,22,0.98));
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.24);
}
.profile-hero-card {
    padding: 26px;
    margin-bottom: 24px;
    background:
        radial-gradient(circle at top left, rgba(201,168,76,0.18), transparent 28%),
        linear-gradient(135deg, rgba(20,20,32,0.98), rgba(14,14,22,0.98));
}
.profile-hero-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}
.profile-hero-identity {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}
.profile-hero-avatar {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    border: 3px solid rgba(201,168,76,0.36);
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.22);
}
.profile-hero-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--gold-dark), var(--bronze));
}
.profile-hero-copy {
    min-width: 0;
}
.profile-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
.profile-role-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.profile-role-chip.is-verified {
    color: #98f5b0;
    border-color: rgba(34,197,94,0.25);
    background: rgba(34,197,94,0.08);
}
.profile-hero-title {
    font-size: 30px;
    line-height: 1.1;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.profile-hero-subtitle {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    max-width: 760px;
    margin-bottom: 12px;
}
.profile-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    font-size: 12px;
    color: var(--text-muted);
}
.profile-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.profile-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.profile-stat-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}
.profile-stat-card {
    padding: 16px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
}
.profile-stat-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin-bottom: 8px;
}
.profile-stat-card strong {
    font-size: 24px;
    line-height: 1;
    color: var(--gold-light);
}
.profile-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 22px;
    align-items: start;
}
.profile-main-column,
.profile-side-column {
    min-width: 0;
}
.profile-side-column {
    position: sticky;
    top: 88px;
}
.profile-tabbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}
.profile-tab-button {
    border: 1px solid var(--border);
    background: rgba(17,17,28,0.94);
    color: var(--text-muted);
    border-radius: 999px;
    padding: 11px 16px;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
}
.profile-tab-button:hover,
.profile-tab-button.is-active {
    color: var(--gold-light);
    border-color: rgba(201,168,76,0.32);
    background: rgba(201,168,76,0.08);
}
.profile-tab-panel {
    display: none;
}
.profile-tab-panel.is-active {
    display: block;
}
.profile-section-card,
.profile-side-card {
    padding: 22px;
}
.profile-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}
.profile-section-head h2,
.profile-side-card h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 6px;
}
.profile-section-head p,
.profile-side-card p {
    font-size: 13px;
    color: var(--text-muted);
}
.profile-server-list,
.profile-comment-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.profile-server-card {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    overflow: hidden;
}
.profile-server-card-banner {
    min-height: 168px;
    background: linear-gradient(135deg, #181826, #10101a);
}
.profile-server-card-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.profile-server-card-placeholder {
    width: 100%;
    height: 100%;
    min-height: 168px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    color: var(--text-muted);
    text-align: center;
}
.profile-server-card-placeholder i {
    font-size: 30px;
    color: var(--gold);
}
.profile-server-card-body {
    padding: 18px 20px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.profile-server-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.profile-server-card-head-main {
    min-width: 0;
}
.profile-server-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}
.profile-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}
.profile-status-active {
    color: #93f0aa;
    background: rgba(34,197,94,0.12);
}
.profile-status-pending {
    color: #ffd989;
    background: rgba(245,158,11,0.12);
}
.profile-status-inactive {
    color: #b4bdd0;
    background: rgba(100,116,139,0.14);
}
.profile-status-rejected {
    color: #ffb0b0;
    background: rgba(239,68,68,0.12);
}
.profile-server-card-title {
    font-size: 20px;
    line-height: 1.2;
    font-weight: 800;
    color: var(--text-main);
}
.profile-server-card-title a {
    color: inherit;
}
.profile-server-card-title a:hover {
    color: var(--gold-light);
}
.profile-server-card-rating {
    flex-shrink: 0;
}
.profile-server-card-desc {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.profile-server-card-meta,
.profile-server-card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    font-size: 12px;
    color: var(--text-muted);
}
.profile-server-card-meta span,
.profile-server-card-stats span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.profile-server-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}
.profile-server-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.profile-comment-card {
    padding: 18px 20px;
}
.profile-comment-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}
.profile-comment-headline {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.profile-comment-meta-line {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.profile-comment-server {
    color: var(--gold-light);
    font-size: 14px;
    font-weight: 700;
}
.profile-comment-status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
}
.profile-comment-status-approved {
    background: rgba(34,197,94,0.12);
    border: 1px solid rgba(34,197,94,0.28);
    color: #86efac;
}
.profile-comment-status-pending {
    background: rgba(245,158,11,0.12);
    border: 1px solid rgba(245,158,11,0.28);
    color: #fcd34d;
}
.profile-comment-status-rejected {
    background: rgba(239,68,68,0.12);
    border: 1px solid rgba(239,68,68,0.28);
    color: #fca5a5;
}
.profile-comment-time {
    font-size: 12px;
    color: var(--text-muted);
}
.profile-comment-rating {
    margin-bottom: 10px;
}
.profile-comment-text {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.7;
}
.profile-comment-delete-form {
    flex-shrink: 0;
}
.notify-optin-card {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1600;
    width: min(340px, calc(100vw - 24px));
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(201,168,76,0.3);
    background: linear-gradient(145deg, rgba(14,14,24,0.98), rgba(20,16,10,0.96));
    box-shadow: 0 20px 50px rgba(0,0,0,0.45);
    backdrop-filter: blur(12px);
}
.notify-optin-copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.notify-optin-copy strong {
    color: var(--gold-light);
    font-size: 15px;
}
.notify-optin-copy span {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
}
.notify-optin-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.notify-optin-btn {
    border: 1px solid rgba(201,168,76,0.24);
    background: rgba(17,17,28,0.92);
    color: var(--text-light);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}
.notify-optin-btn:hover {
    border-color: rgba(201,168,76,0.45);
    color: var(--gold-light);
}
.notify-optin-btn.primary {
    background: linear-gradient(135deg, #c9a84c, #8b6914);
    color: #0f0f12;
    border-color: transparent;
}
.notify-optin-btn.primary:hover {
    color: #0f0f12;
    filter: brightness(1.04);
}
.pricing-hero {
    position: relative;
    overflow: hidden;
    padding: 48px 20px 34px;
    border-bottom: 1px solid var(--border-gold);
    background:
        radial-gradient(circle at top left, rgba(201,168,76,0.18), transparent 32%),
        radial-gradient(circle at top right, rgba(59,130,246,0.12), transparent 24%),
        linear-gradient(135deg, #0a0a15 0%, #111124 55%, #0b0b16 100%);
}
.pricing-hero-inner {
    max-width: 1280px;
    margin: 0 auto;
}
.pricing-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 8px 14px;
    border: 1px solid rgba(201,168,76,0.3);
    border-radius: 999px;
    background: rgba(201,168,76,0.08);
    color: var(--gold-light);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.pricing-hero h1 {
    max-width: 820px;
    margin: 0 0 14px;
    color: #f5e0a1;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
}
.pricing-hero p {
    max-width: 680px;
    margin: 0;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.75;
}
.pricing-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.pricing-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 100%;
    padding: 22px;
    border: 1px solid rgba(201,168,76,0.14);
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0)),
        linear-gradient(135deg, rgba(18,18,30,0.98), rgba(11,11,20,0.94));
    box-shadow: 0 18px 40px rgba(0,0,0,0.24);
}
.pricing-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(201,168,76,0.16), transparent 32%);
    pointer-events: none;
}
.pricing-card.is-launch {
    border-color: rgba(255,166,0,0.45);
    background:
        radial-gradient(circle at top left, rgba(255,190,92,0.16), transparent 34%),
        linear-gradient(135deg, rgba(24,14,10,0.98), rgba(15,10,18,0.95));
}
.pricing-card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}
.pricing-card-slot {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(201,168,76,0.1);
    color: var(--gold-light);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.pricing-card-title {
    margin: 0;
    color: var(--text-light);
    font-size: clamp(28px, 2.2vw, 36px);
    line-height: 1.12;
    letter-spacing: -0.02em;
}
.pricing-card-note {
    flex-shrink: 0;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(59,130,246,0.12);
    color: #93c5fd;
    font-size: 11px;
    font-weight: 700;
    max-width: 100%;
}
.pricing-card-copy {
    min-height: 72px;
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 14px;
}
.pricing-card-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.pricing-card-price-wrap {
    display: flex;
    align-items: baseline;
}
.pricing-card-price {
    color: #f8e6ab;
    font-size: clamp(42px, 4vw, 54px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    white-space: nowrap;
}
.pricing-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.pricing-card-actions .btn {
    flex: 1 1 180px;
    justify-content: center;
}
.pricing-side-panel {
    display: grid;
    gap: 18px;
}
.pricing-side-card p {
    color: var(--text-muted);
    line-height: 1.75;
}
.pricing-feature-list {
    margin: 0;
    padding-left: 20px;
    list-style: disc;
}
.pricing-feature-list li {
    list-style: disc;
    margin-bottom: 10px;
    color: var(--text-muted);
    line-height: 1.65;
}
.launch-celebration-overlay {
    position: fixed;
    inset: 0;
    z-index: 2200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: radial-gradient(circle at center, rgba(18,14,10,0.52), rgba(4,4,8,0.9));
}
.launch-celebration-overlay.is-visible {
    display: flex;
}
.launch-fireworks-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.launch-celebration-modal {
    position: relative;
    z-index: 2;
    width: min(940px, 92vw);
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(255,194,94,0.32);
    background:
        linear-gradient(120deg, rgba(15,12,18,0.96), rgba(24,13,10,0.94)),
        #0b0c14;
    box-shadow: 0 30px 120px rgba(0,0,0,0.6);
}
.launch-celebration-shell {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    min-height: 440px;
}
.launch-celebration-media {
    position: relative;
    min-height: 440px;
    background:
        linear-gradient(180deg, rgba(8,8,15,0.12), rgba(8,8,15,0.78)),
        linear-gradient(135deg, rgba(201,168,76,0.18), rgba(80,30,12,0.1));
    background-size: cover;
    background-position: center;
}
.launch-celebration-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 24% 20%, rgba(255,194,94,0.25), transparent 24%),
        radial-gradient(circle at 74% 18%, rgba(255,84,84,0.16), transparent 18%),
        linear-gradient(180deg, rgba(0,0,0,0.1), rgba(0,0,0,0.76));
}
.launch-celebration-chip {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(8,8,14,0.72);
    border: 1px solid rgba(255,194,94,0.34);
    color: #ffd57c;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.launch-celebration-chip.is-vip {
    border-color: rgba(255,132,132,0.34);
    color: #ffb0b0;
}
.launch-celebration-burst-text {
    position: absolute;
    right: 28px;
    bottom: 30px;
    z-index: 2;
    max-width: 280px;
    color: rgba(255,244,222,0.88);
    font-size: 13px;
    line-height: 1.7;
    text-align: right;
}
.launch-celebration-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    padding: 36px 34px;
}
.launch-celebration-kicker {
    color: #ffcb6b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.launch-celebration-title {
    margin: 0;
    color: #fff4d9;
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.08;
}
.launch-celebration-message {
    margin: 0;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.8;
}
.launch-celebration-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.launch-celebration-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.05);
    color: var(--text-light);
    font-size: 12px;
}
.launch-celebration-cta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.launch-celebration-cta .btn {
    min-width: 150px;
    justify-content: center;
}
.launch-celebration-timer {
    color: #b8bdd3;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.launch-celebration-skip {
    border: none;
    background: transparent;
    color: #9297ad;
    font-weight: 600;
    cursor: pointer;
}
.launch-celebration-skip.is-locked,
.launch-celebration-skip:disabled {
    color: #666b82;
    cursor: not-allowed;
    opacity: 0.8;
}
.launch-celebration-skip:not(:disabled):hover {
    color: #fff4d9;
}
.launch-celebration-modal::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255,255,255,0.06);
    pointer-events: none;
}
.profile-settings-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.profile-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.profile-avatar-preview-wrap {
    margin-top: 12px;
}
.profile-avatar-preview {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(201,168,76,0.28);
}
.profile-settings-actions {
    display: flex;
    justify-content: flex-end;
}
.profile-side-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.profile-side-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    color: var(--text-muted);
}
.profile-side-row strong {
    color: var(--text-main);
}
.profile-side-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.profile-side-link {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.03);
    color: var(--text-light);
    padding: 12px 14px;
    border-radius: 12px;
    text-decoration: none;
    transition: var(--transition);
}
.profile-side-link:hover {
    color: var(--gold-light);
    border-color: rgba(201,168,76,0.24);
    background: rgba(201,168,76,0.08);
}
.profile-side-link.is-button {
    appearance: none;
    cursor: pointer;
    font: inherit;
    text-align: left;
}
.profile-public-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
    gap: 20px;
}
.profile-hero-card-public .profile-hero-main {
    margin-bottom: 0;
}
.profile-bio-card,
.profile-public-note {
    padding: 24px;
}
.profile-bio-copy {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.9;
    white-space: pre-wrap;
}
.profile-public-note {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 100%;
}
.profile-public-note-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(201,168,76,0.12);
    border: 1px solid rgba(201,168,76,0.24);
    color: var(--gold-light);
    font-size: 22px;
    flex-shrink: 0;
}
.profile-public-note-copy h3 {
    color: var(--text-main);
    font-size: 18px;
    margin-bottom: 8px;
}
.profile-public-note-copy p {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.7;
}
.profile-link-inline,
.comment-name-link,
.recent-comment-author-link {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}
.profile-link-inline:hover,
.comment-name-link:hover,
.recent-comment-author-link:hover {
    color: var(--gold-light);
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-muted);
}
.empty-state i { font-size: 48px; color: var(--border); margin-bottom: 16px; display: block; }
.empty-state h3 { font-size: 16px; color: var(--text-light); margin-bottom: 8px; }
.empty-state p { font-size: 13px; }

/* ============================================================
   LOADING
   ============================================================ */
.spinner {
    width: 32px; height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 20px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .main-wrapper { grid-template-columns: 1fr; }
    .sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    .footer-main { grid-template-columns: 1fr 1fr; }
    .featured-spotlight { grid-template-columns: 70px 144px minmax(0, 1fr) 108px; }
    .profile-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .profile-layout-grid { grid-template-columns: 1fr; }
    .filter-search {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .filter-search-button {
        width: 100%;
    }
    .announcement-stack,
    .site-header,
    .header-ad-band,
    .site-main,
    .footer-ad-band,
    .site-footer { padding-left: 0 !important; padding-right: 0 !important; }
    .floating-ad { display: none !important; }
}
@media (max-width: 1440px) {
    body {
        --floating-ad-width: 160px;
        --floating-ad-gap: 0px;
    }
    body.has-floating-left.has-floating-right .header-inner {
        gap: 10px;
        padding: 0 12px;
    }
    body.has-floating-left.has-floating-right .main-nav a {
        padding: 8px 8px;
        font-size: 11px;
    }
    body.has-floating-left.has-floating-right .main-nav a.nav-add-server {
        padding: 8px 10px;
        margin-left: auto;
        margin-right: 0;
    }
    body.has-floating-left.has-floating-right .header-actions {
        gap: 4px;
        margin-left: 8px;
    }
    body.has-floating-left.has-floating-right .site-logo .logo-text {
        font-size: 17px;
    }
    body.has-floating-left.has-floating-right .site-logo .logo-sub {
        font-size: 8px;
    }
    body.has-floating-left.has-floating-right .user-avatar-btn span {
        max-width: 84px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    body.has-floating-left.has-floating-right .header-ad-grid.is-single {
        max-width: 340px;
    }
}
@media (max-width: 1200px) {
    .header-inner {
        gap: 10px;
        padding: 0 12px;
    }
    .site-logo-textmark {
        font-size: 19px;
    }
    .site-logo-wordmark {
        width: 128px;
        max-width: 128px;
        height: auto;
    }
    .site-logo-upload {
        width: 132px;
        max-width: 132px;
        height: 34px;
    }
    .main-nav {
        gap: 0;
        min-width: 0;
    }
    .main-nav > a > i,
    .main-nav .nav-dropdown-toggle > i:first-child {
        display: none;
    }
    .main-nav a {
        padding: 8px 6px;
        font-size: 11px;
        gap: 4px;
    }
    .main-nav a.nav-add-server {
        padding: 8px 9px;
        margin-left: auto;
        margin-right: 0;
        font-size: 11px;
    }
    .header-actions {
        gap: 5px;
        margin-left: 6px;
        padding-left: 0;
    }
    .header-add-server {
        min-height: 38px;
        padding-left: 9px;
        padding-right: 9px;
        font-size: 11px;
    }
    .btn-login,
    .btn-register,
    .user-avatar-btn {
        min-height: 38px;
        padding-left: 8px;
        padding-right: 8px;
        font-size: 10px;
    }
}
@media (max-width: 1100px) {
    .header-inner {
        gap: 8px;
        padding: 0 10px;
    }
    .site-logo-textmark {
        font-size: 18px;
    }
    .site-logo-wordmark {
        width: 120px;
        max-width: 120px;
        height: auto;
    }
    .site-logo-upload {
        width: 124px;
        max-width: 124px;
        height: 32px;
    }
    .main-nav a {
        padding: 7px 5px;
        font-size: 10px;
        gap: 4px;
    }
    .main-nav a.nav-add-server {
        padding: 7px 9px;
        margin-left: auto;
        margin-right: 0;
        font-size: 10px;
    }
    .header-actions {
        gap: 4px;
        margin-left: 5px;
    }
    .header-add-server {
        min-height: 36px;
        padding-left: 8px;
        padding-right: 8px;
        font-size: 10px;
    }
    .btn-login,
    .btn-register,
    .user-avatar-btn {
        min-height: 36px;
        padding-left: 7px;
        padding-right: 7px;
        font-size: 9px;
    }
    .user-avatar-btn span {
        max-width: 72px;
    }
}
@media (max-width: 768px) {
    .main-nav { display: none; }
    .main-nav.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 65px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-darkest);
        padding: 20px;
        gap: 8px;
        overflow-y: auto;
        z-index: 1304;
    }
    .main-nav.open .nav-dropdown {
        width: 100%;
        padding-bottom: 0;
        margin-bottom: 0;
    }
    .main-nav.open .nav-dropdown-toggle {
        width: 100%;
        justify-content: space-between;
    }
    .main-nav.open .nav-dropdown::after {
        display: none;
    }
    .main-nav.open .nav-dropdown-menu {
        position: static;
        display: none;
        min-width: 100%;
        margin-top: 8px;
        box-shadow: none;
    }
    .main-nav.open .nav-dropdown.is-open .nav-dropdown-menu {
        display: grid;
    }
    .main-nav.open .nav-dropdown.is-open .nav-dropdown-caret {
        transform: rotate(180deg);
    }
    .mobile-menu-btn { display: block; }
    .server-card { flex-direction: column; }
    .server-card-banner { width: 100%; height: 160px; }
    .sidebar { grid-template-columns: 1fr; }
    .footer-main { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .profile-page { padding: 22px 12px 36px; }
    .profile-hero-card { padding: 18px; }
    .profile-hero-main,
    .profile-hero-identity { flex-direction: column; align-items: flex-start; }
    .profile-hero-actions { width: 100%; justify-content: flex-start; }
    .profile-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .profile-public-grid { grid-template-columns: 1fr; }
    .profile-server-card { grid-template-columns: 1fr; }
    .profile-server-card-banner,
    .profile-server-card-placeholder { min-height: 180px; }
    .profile-form-grid { grid-template-columns: 1fr; }
    .hero-stats { gap: 20px; }
    .filter-search {
        grid-template-columns: 1fr;
    }
    .filter-tabs {
        gap: 8px;
    }
    .filter-tab,
    .catalog-filter-tab {
        flex: 1 1 calc(50% - 8px);
    }
    .catalog-filter-bar { padding: 12px; }
    .layout-ad { padding: 0 12px; }
    .header-ad-band { padding: 0 12px; }
    .header-ad-grid { grid-template-columns: 1fr; }
    .footer-ad-band { padding: 0 12px; }
    .footer-ad-grid { grid-template-columns: 1fr; }
    .footer-ad-grid.is-single { grid-template-columns: 1fr; }
    .footer-ad-grid.is-single-left > *,
    .footer-ad-grid.is-single-right > * { grid-column: 1; }
    .announcement-bar { flex-direction: column; align-items: stretch; gap: 10px; }
    .announcement-pill { align-self: center; }
    .announcement-marquee-track { animation-duration: 16s; }
    .featured-spotlight { grid-template-columns: 1fr; }
    .featured-ribbon {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px 14px;
        padding: 12px 14px;
        border-right: none;
        border-bottom: 1px solid rgba(198,149,73,0.24);
    }
    .featured-ribbon-type { max-width: 180px; }
    .featured-more {
        margin-top: 0;
        margin-left: auto;
        align-items: flex-end;
    }
    .featured-side-info {
        border-right: none;
        border-bottom: 1px solid rgba(198,149,73,0.18);
        padding: 12px 14px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px 14px;
        text-align: left;
    }
    .featured-side-stars { justify-content: flex-start; }
    .featured-content {
        padding: 12px 14px 10px;
    }
    .featured-content-title { font-size: 16px; }
    .featured-banner-frame {
        height: auto;
        aspect-ratio: 3.3 / 1;
    }
    .featured-stats {
        flex-direction: row;
        padding: 0 14px 14px;
    }
    .featured-stat-box {
        flex: 1;
        min-height: 44px;
    }
    .popup-ad-overlay { padding: 14px; }
    .popup-ad-close { top: -10px; right: -6px; }
    .pricing-layout,
    .launch-celebration-shell { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .launch-celebration-media { min-height: 240px; }
    .launch-celebration-copy { padding: 24px 22px 28px; }
}
@media (max-width: 768px) {
    .discovery-link-panels,
    .content-bridge-columns {
        grid-template-columns: 1fr;
    }
    .discovery-hub-card {
        padding: 18px;
    }
    .discovery-hub-links,
    .content-bridge-links {
        width: 100%;
    }
    .discovery-hub-footer {
        align-items: flex-start;
    }
    .discovery-category-chips {
        width: 100%;
    }
    .discovery-hub-link,
    .content-bridge-link {
        width: 100%;
        justify-content: center;
    }
    .discovery-link-panel,
    .content-bridge-list {
        padding: 14px;
    }
    .discovery-hub-title,
    .content-bridge-title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .header-inner { padding: 0 12px; }
    .hero-section { padding: 30px 12px; }
    .main-wrapper { padding: 16px 12px; }
    .auth-card { padding: 24px 16px; }
    .server-detail-actions { flex-direction: column; }
    .profile-hero-title { font-size: 24px; white-space: normal; }
    .profile-stat-grid { grid-template-columns: 1fr; }
    .profile-section-card,
    .profile-side-card,
    .profile-comment-card { padding: 18px 16px; }
    .profile-tabbar { gap: 8px; }
    .profile-tab-button { width: 100%; justify-content: center; }
    .profile-server-card-body { padding: 16px; }
    .profile-server-card-title { font-size: 17px; }
    .profile-comment-top,
    .profile-server-card-head,
    .profile-server-card-footer { flex-direction: column; align-items: flex-start; }
    .featured-ribbon { gap: 8px 10px; }
    .featured-rank { width: 100%; }
    .featured-ribbon-badge { font-size: 16px; }
    .featured-ribbon-type { max-width: 100px; font-size: 9px; }
    .featured-side-info { grid-template-columns: 1fr; }
    .featured-content-title { font-size: 14px; }
    .featured-banner-frame { aspect-ratio: 2.8 / 1; }
    .featured-stat-box span { font-size: 13px; }
    .pricing-card { padding: 18px; }
    .pricing-card-title { font-size: 22px; }
    .pricing-card-price { font-size: 26px; }
    .launch-celebration-overlay { padding: 16px; }
    .launch-celebration-chip { top: 16px; left: 16px; }
    .launch-celebration-burst-text { right: 18px; bottom: 18px; max-width: 200px; }
    .featured-stat-box i { font-size: 13px; }
}

@media (max-width: 1024px) {
    .server-detail-layout {
        grid-template-columns: 1fr;
    }
    .pricing-layout {
        grid-template-columns: 1fr;
    }
    .pricing-side-panel,
    .profile-side-column {
        position: static;
    }
    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}

@media (max-width: 768px) {
    .header-inner {
        height: auto;
        min-height: 65px;
        padding: 10px 12px 8px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "logo menu"
            "actions actions";
        align-items: center;
        column-gap: 10px;
        row-gap: 6px;
    }
    .site-logo {
        grid-area: logo;
        min-width: 0;
    }
    .site-logo-textmark {
        font-size: 17px;
    }
    .site-logo-wordmark {
        width: 116px;
        max-width: 116px;
        height: auto;
    }
    .site-logo-upload {
        width: 120px;
        max-width: 120px;
        height: 30px;
    }
    .header-actions {
        grid-area: actions;
        margin-left: 0;
        gap: 6px;
        justify-self: stretch;
        min-width: 0;
        width: 100%;
        display: flex;
        flex-wrap: nowrap;
        justify-content: stretch;
    }
    .header-actions > a,
    .header-actions > .user-menu {
        flex: 1 1 0;
        min-width: 0;
    }
    .header-actions .user-menu {
        display: block;
    }
    .header-actions .user-avatar-btn {
        width: 100%;
    }
    .header-add-server {
        min-height: 36px;
        padding-left: 10px;
        padding-right: 10px;
        font-size: 11px;
    }
    .btn-login,
    .btn-register,
    .user-avatar-btn {
        min-height: 36px;
        padding-left: 10px;
        padding-right: 10px;
        font-size: 11px;
    }
    .user-avatar-btn span {
        max-width: 76px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .mobile-menu-btn {
        grid-area: menu;
        margin-left: 0;
        margin-top: 0;
        min-height: 38px;
        width: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        justify-self: end;
    }
    .main-nav.open {
        top: 112px;
        left: 12px;
        right: 12px;
        bottom: 12px;
        max-height: none;
        padding: 14px;
        border: 1px solid var(--border);
        border-radius: 16px;
        box-shadow: var(--shadow);
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        gap: 10px;
        background: rgba(10, 10, 15, 0.98);
    }
    .main-nav.open > a,
    .main-nav.open .nav-dropdown-toggle {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
        min-height: 48px;
        padding: 12px 14px;
        border: 1px solid rgba(255,255,255,0.06);
        border-radius: 14px;
        background: rgba(255,255,255,0.03);
        text-align: left;
    }
    .main-nav.open a,
    .main-nav.open .nav-dropdown-toggle {
        width: 100%;
        justify-content: flex-start;
    }
    .main-nav.open > a i,
    .main-nav.open .nav-dropdown-toggle > i:first-child {
        width: 16px;
        min-width: 16px;
        text-align: center;
        color: var(--text-light);
        flex-shrink: 0;
    }
    .main-nav.open .nav-dropdown {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .main-nav.open .nav-dropdown-toggle {
        padding-right: 14px;
    }
    .main-nav.open .nav-dropdown-caret {
        margin-left: auto;
        width: auto;
        min-width: 0;
        text-align: right;
    }
    .main-nav.open a.nav-add-server {
        margin-right: 0;
        border-color: rgba(201,168,76,0.42);
        background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
        color: #0a0a0f;
        justify-content: center;
        gap: 10px;
        text-align: center;
        font-weight: 800;
        box-shadow: 0 12px 24px rgba(201,168,76,0.22);
    }
    .main-nav.open a.nav-add-server i {
        color: #0a0a0f;
    }
    .main-nav.open .nav-dropdown-menu {
        padding: 8px;
        background: rgba(255,255,255,0.02);
        border: 1px solid rgba(255,255,255,0.06);
        border-radius: 14px;
    }
    .main-nav.open .nav-dropdown-menu a {
        min-height: 44px;
        padding: 10px 12px;
        border-radius: 10px;
        font-size: 13px;
        color: var(--text-light);
    }
    .main-nav.open .nav-dropdown-menu a.active,
    .main-nav.open .nav-dropdown-menu a:hover {
        color: var(--gold-light);
        background: rgba(201,168,76,0.12);
    }
    .main-nav.open,
    .main-nav.open *,
    .mobile-menu-btn,
    .mobile-menu-btn * {
        pointer-events: auto;
    }
    .page-hero {
        padding: 20px 14px;
    }
    .page-hero-title {
        font-size: 20px;
    }
    .page-shell,
    .page-shell.is-narrow,
    .page-shell.is-form {
        margin: 20px auto;
        padding: 0 14px 28px;
    }
    .hero-section {
        padding: 34px 14px;
    }
    .hero-title {
        font-size: clamp(26px, 10vw, 40px);
        line-height: 1.1;
    }
    .hero-subtitle {
        font-size: 14px;
        line-height: 1.7;
        margin-bottom: 20px;
    }
    .hero-search {
        flex-direction: column;
        max-width: none;
        margin-bottom: 22px;
        border-radius: 18px;
        overflow: hidden;
    }
    .hero-search input,
    .hero-search button {
        width: 100%;
        padding: 14px 16px;
        border-radius: 0;
    }
    .hero-search button {
        justify-content: center;
    }
    .hero-stats {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        width: 100%;
    }
    .hero-stat {
        width: 100%;
    }
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .main-wrapper {
        padding: 20px 14px;
        gap: 18px;
    }
    .sidebar {
        display: flex;
        flex-direction: column;
        gap: 14px;
        align-items: start;
    }
    .sidebar > .ad-slot-sidebar_top,
    .sidebar > .ad-slot-sidebar_bottom {
        width: 100%;
        min-width: 0;
        margin-bottom: 0;
        align-self: stretch;
        padding: 0;
        min-height: 0;
        overflow: hidden;
    }
    .sidebar > .ad-slot-sidebar_top .ad-link,
    .sidebar > .ad-slot-sidebar_top .ad-link.is-static,
    .sidebar > .ad-slot-sidebar_top .ad-code,
    .sidebar > .ad-slot-sidebar_bottom .ad-link,
    .sidebar > .ad-slot-sidebar_bottom .ad-link.is-static,
    .sidebar > .ad-slot-sidebar_bottom .ad-code {
        width: 100%;
        height: auto;
        min-height: 150px;
        aspect-ratio: 16 / 7;
    }
    .sidebar > .ad-slot-sidebar_top img,
    .sidebar > .ad-slot-sidebar_bottom img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    .filter-bar {
        padding: 14px;
    }
    .filter-tabs,
    .catalog-filter-bar,
    .profile-tabbar {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .filter-tabs::-webkit-scrollbar,
    .catalog-filter-bar::-webkit-scrollbar,
    .profile-tabbar::-webkit-scrollbar {
        display: none;
    }
    .filter-tab,
    .catalog-filter-tab,
    .profile-tab-button {
        flex: 0 0 auto;
        width: auto;
        white-space: nowrap;
    }
    .filter-search {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .filter-search-button {
        width: 100%;
    }
    .server-card-top,
    .server-card-footer,
    .profile-server-card-head,
    .profile-server-card-footer,
    .profile-comment-top {
        flex-direction: column;
        align-items: flex-start;
    }
    .server-card-stats {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    .btn-detail,
    .profile-server-card-actions .btn-detail,
    .profile-hero-actions .btn,
    .profile-settings-actions .btn,
    .pricing-card-actions .btn,
    .comment-form .btn,
    .server-detail-actions .btn,
    .server-detail-actions .btn-vote {
        width: 100%;
        justify-content: center;
    }
    .content-card {
        padding: 16px;
        margin-bottom: 16px;
    }
    .server-banner-large,
    .server-banner-placeholder {
        height: 200px;
    }
    .server-detail-top {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }
    .server-detail-top-main {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 12px;
    }
    .server-detail-rating-summary {
        width: 100%;
        text-align: left;
    }
    .server-stats-bar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        padding: 14px 16px;
    }
    .server-link-item {
        flex-wrap: wrap;
        align-items: flex-start;
        word-break: break-word;
    }
    .server-link-item span:last-child {
        width: 100%;
        margin-left: 0 !important;
    }
    .server-description,
    .blog-detail-content {
        overflow-wrap: anywhere;
        line-height: 1.75;
    }
    .countdown-box {
        gap: 10px;
    }
    .star-rating-input {
        flex-wrap: wrap;
    }
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .blog-card-img,
    .blog-card-img-placeholder {
        height: 180px;
    }
    .blog-card .btn {
        width: 100%;
        justify-content: center;
    }
    .blog-detail-shell {
        margin: 20px auto;
        padding: 0 14px;
    }
    .pricing-hero {
        padding: 28px 14px 22px;
    }
    .pricing-hero p {
        font-size: 14px;
        line-height: 1.7;
    }
    .pricing-card {
        padding: 18px;
    }
    .pricing-card-topline {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .pricing-card-copy {
        min-height: 0;
    }
    .pricing-card-price-wrap {
        flex-wrap: wrap;
    }
    .auth-page {
        padding: 24px 14px;
    }
    .auth-card {
        padding: 24px 18px;
    }
    .profile-page {
        padding: 20px 14px 32px;
    }
    .profile-hero-card,
    .profile-section-card,
    .profile-side-card,
    .profile-comment-card {
        padding: 18px;
    }
    .profile-hero-avatar {
        width: 76px;
        height: 76px;
    }
    .profile-hero-title {
        font-size: 24px;
        white-space: normal;
    }
    .profile-layout-grid,
    .profile-public-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .profile-side-column {
        position: static;
    }
    .profile-form-grid {
        grid-template-columns: 1fr;
    }
    .profile-side-row {
        flex-wrap: wrap;
    }
    .profile-settings-actions,
    .profile-hero-actions,
    .profile-server-card-actions,
    .form-actions {
        width: 100%;
    }
    .form-card {
        padding: 20px 16px;
    }
    .form-actions {
        flex-direction: column-reverse;
    }
    .notify-optin-card {
        right: 12px;
        bottom: 12px;
        width: min(320px, calc(100vw - 24px));
    }
}

@media (max-width: 480px) {
    .header-inner {
        padding: 10px 10px 8px;
        column-gap: 8px;
        row-gap: 6px;
    }
    .site-logo-textmark {
        font-size: 15px;
    }
    .site-logo-wordmark {
        width: 102px;
        max-width: 102px;
        height: auto;
    }
    .site-logo-upload {
        width: 106px;
        max-width: 106px;
        height: 28px;
    }
    .header-actions {
        gap: 4px;
    }
    .header-add-server {
        min-height: 34px;
        padding-left: 8px;
        padding-right: 8px;
        font-size: 10px;
    }
    .btn-login,
    .btn-register {
        min-height: 34px;
        padding-left: 8px;
        padding-right: 8px;
        font-size: 10px;
    }
    .user-avatar-btn {
        min-height: 34px;
        padding-left: 8px;
        padding-right: 8px;
    }
    .user-avatar-btn span {
        display: none;
    }
    .mobile-menu-btn {
        width: 36px;
        min-height: 36px;
        font-size: 20px;
        margin-top: 0;
    }
    .main-nav.open {
        left: 10px;
        right: 10px;
        top: 108px;
        bottom: 10px;
        padding: 12px;
    }
    .sidebar {
        gap: 10px;
    }
    .sidebar > .ad-slot-sidebar_top .ad-link,
    .sidebar > .ad-slot-sidebar_top .ad-link.is-static,
    .sidebar > .ad-slot-sidebar_top .ad-code,
    .sidebar > .ad-slot-sidebar_bottom .ad-link,
    .sidebar > .ad-slot-sidebar_bottom .ad-link.is-static,
    .sidebar > .ad-slot-sidebar_bottom .ad-code {
        min-height: 132px;
    }
    .main-nav.open > a,
    .main-nav.open .nav-dropdown-toggle {
        min-height: 46px;
        padding: 11px 12px;
        gap: 10px;
    }
    .main-nav.open .nav-dropdown-menu {
        padding: 6px;
    }
    .main-nav.open .nav-dropdown-menu a {
        min-height: 42px;
        font-size: 12px;
    }
    .hero-stats,
    .server-stats-bar,
    .profile-stat-grid,
    .countdown-box {
        grid-template-columns: 1fr 1fr;
    }
    .countdown-box {
        display: grid;
    }
    .filter-tab,
    .catalog-filter-tab,
    .profile-tab-button {
        min-height: 40px;
        padding: 10px 14px;
        font-size: 12px;
    }
    .page-hero,
    .page-shell,
    .page-shell.is-narrow,
    .page-shell.is-form,
    .blog-detail-shell,
    .auth-page,
    .main-wrapper {
        padding-left: 12px;
        padding-right: 12px;
    }
    .server-banner-large,
    .server-banner-placeholder,
    .blog-card-img,
    .blog-card-img-placeholder {
        height: 170px;
    }
    .server-link-item {
        padding: 10px 12px;
    }
}

@media (max-width: 768px) {
    .site-header .header-inner {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        grid-template-areas:
            "logo menu"
            "actions actions" !important;
        align-items: center !important;
        row-gap: 6px !important;
    }
    .site-header .site-logo {
        grid-area: logo !important;
    }
    .site-header .mobile-menu-btn {
        grid-area: menu !important;
        justify-self: end !important;
        align-self: center !important;
        margin: 0 !important;
        display: inline-flex !important;
    }
    .site-header .header-actions {
        grid-area: actions !important;
        width: 100% !important;
        display: flex !important;
        justify-self: stretch !important;
        gap: 6px !important;
        margin: 0 !important;
    }
    .site-header .header-actions > a,
    .site-header .header-actions > .user-menu {
        flex: 1 1 0 !important;
        min-width: 0 !important;
    }
    .site-header .header-actions .user-avatar-btn {
        width: 100% !important;
    }
    .sidebar {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .sidebar .sidebar-ad {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
        min-height: 0 !important;
        background: transparent !important;
        border: none !important;
        margin-bottom: 12px !important;
    }
    .sidebar .ad-slot-sidebar_top,
    .sidebar .ad-slot-sidebar_bottom,
    .footer-ad-band .ad-slot-footer_left,
    .footer-ad-band .ad-slot-footer_right,
    .footer-ad-band .ad-slot-footer {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
    }
    .sidebar .ad-slot-sidebar_top .ad-link,
    .sidebar .ad-slot-sidebar_top .ad-link.is-static,
    .sidebar .ad-slot-sidebar_top .ad-code,
    .sidebar .ad-slot-sidebar_bottom .ad-link,
    .sidebar .ad-slot-sidebar_bottom .ad-link.is-static,
    .sidebar .ad-slot-sidebar_bottom .ad-code,
    .footer-ad-band .ad-slot-footer_left .ad-link,
    .footer-ad-band .ad-slot-footer_left .ad-link.is-static,
    .footer-ad-band .ad-slot-footer_left .ad-code,
    .footer-ad-band .ad-slot-footer_right .ad-link,
    .footer-ad-band .ad-slot-footer_right .ad-link.is-static,
    .footer-ad-band .ad-slot-footer_right .ad-code,
    .footer-ad-band .ad-slot-footer .ad-link,
    .footer-ad-band .ad-slot-footer .ad-link.is-static,
    .footer-ad-band .ad-slot-footer .ad-code {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: 150px !important;
        aspect-ratio: 1408 / 700 !important;
    }
    .sidebar .ad-slot-sidebar_top img,
    .sidebar .ad-slot-sidebar_bottom img,
    .footer-ad-band .ad-slot-footer_left img,
    .footer-ad-band .ad-slot-footer_right img,
    .footer-ad-band .ad-slot-footer img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }
    .footer-ad-band {
        padding: 0 12px !important;
    }
    .footer-ad-band .layout-ad-footer-split {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }
    .footer-ad-grid,
    .footer-ad-grid.is-single {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .footer-ad-grid > *,
    .footer-ad-grid.is-single-left > *,
    .footer-ad-grid.is-single-right > * {
        grid-column: 1 !important;
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .footer-ad-band {
        padding: 0 10px !important;
    }
    .sidebar .ad-slot-sidebar_top .ad-link,
    .sidebar .ad-slot-sidebar_top .ad-link.is-static,
    .sidebar .ad-slot-sidebar_top .ad-code,
    .sidebar .ad-slot-sidebar_bottom .ad-link,
    .sidebar .ad-slot-sidebar_bottom .ad-link.is-static,
    .sidebar .ad-slot-sidebar_bottom .ad-code,
    .footer-ad-band .ad-slot-footer_left .ad-link,
    .footer-ad-band .ad-slot-footer_left .ad-link.is-static,
    .footer-ad-band .ad-slot-footer_left .ad-code,
    .footer-ad-band .ad-slot-footer_right .ad-link,
    .footer-ad-band .ad-slot-footer_right .ad-link.is-static,
    .footer-ad-band .ad-slot-footer_right .ad-code,
    .footer-ad-band .ad-slot-footer .ad-link,
    .footer-ad-band .ad-slot-footer .ad-link.is-static,
    .footer-ad-band .ad-slot-footer .ad-code {
        min-height: 132px !important;
    }
}

@media (max-width: 768px) {
    .footer-ad-band,
    .footer-ad-band .footer-ad-grid,
    .footer-ad-band .layout-ad-footer-split,
    .footer-ad-band .ad-slot,
    .footer-ad-band .ad-link,
    .footer-ad-band .ad-link.is-static,
    .footer-ad-band .ad-code,
    .footer-ad-band .ad-code > * {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
    }
    .footer-ad-band .footer-ad-grid,
    .footer-ad-band .footer-ad-grid.is-single {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }
    .footer-ad-band .layout-ad-footer-split,
    .footer-ad-band .layout-ad-footer,
    .footer-ad-band .ad-slot-footer_left,
    .footer-ad-band .ad-slot-footer_right,
    .footer-ad-band .ad-slot-footer {
        flex: 0 0 auto !important;
        align-self: stretch !important;
        justify-self: stretch !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .footer-ad-band .footer-ad-grid > *,
    .footer-ad-band .layout-ad-footer-split,
    .footer-ad-band .layout-ad-footer {
        margin-left: -18px !important;
        width: calc(100% + 18px) !important;
    }
    .footer-ad-band .layout-ad-footer-split .ad-link,
    .footer-ad-band .layout-ad-footer-split .ad-link.is-static,
    .footer-ad-band .layout-ad-footer-split .ad-code,
    .footer-ad-band .layout-ad-footer .ad-link,
    .footer-ad-band .layout-ad-footer .ad-link.is-static,
    .footer-ad-band .layout-ad-footer .ad-code {
        min-height: 150px !important;
        height: auto !important;
        aspect-ratio: 1408 / 700 !important;
        overflow: hidden !important;
    }
    .footer-ad-band .layout-ad-footer-split img,
    .footer-ad-band .layout-ad-footer img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        object-fit: cover !important;
        object-position: left center !important;
    }
    .sidebar,
    .footer-ad-band {
        overflow: visible !important;
    }
    .sidebar .ad-slot-sidebar_top,
    .sidebar .ad-slot-sidebar_bottom {
        margin-left: -18px !important;
        width: calc(100% + 18px) !important;
        align-self: stretch !important;
    }
    .sidebar .ad-slot-sidebar_top .ad-link,
    .sidebar .ad-slot-sidebar_top .ad-link.is-static,
    .sidebar .ad-slot-sidebar_top .ad-code,
    .sidebar .ad-slot-sidebar_bottom .ad-link,
    .sidebar .ad-slot-sidebar_bottom .ad-link.is-static,
    .sidebar .ad-slot-sidebar_bottom .ad-code {
        min-height: 150px !important;
        aspect-ratio: 1408 / 700 !important;
    }
    .sidebar .ad-slot-sidebar_top img,
    .sidebar .ad-slot-sidebar_bottom img {
        object-position: left center !important;
    }
}

@media (max-width: 480px) {
    .sidebar .ad-slot-sidebar_top,
    .sidebar .ad-slot-sidebar_bottom {
        margin-left: -14px !important;
        width: calc(100% + 14px) !important;
    }
    .footer-ad-band .footer-ad-grid > *,
    .footer-ad-band .layout-ad-footer-split,
    .footer-ad-band .layout-ad-footer {
        margin-left: -14px !important;
        width: calc(100% + 14px) !important;
    }
    .footer-ad-band .layout-ad-footer-split .ad-link,
    .footer-ad-band .layout-ad-footer-split .ad-link.is-static,
    .footer-ad-band .layout-ad-footer-split .ad-code,
    .footer-ad-band .layout-ad-footer .ad-link,
    .footer-ad-band .layout-ad-footer .ad-link.is-static,
    .footer-ad-band .layout-ad-footer .ad-code {
        min-height: 132px !important;
    }
}

.legal-checklist {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid rgba(201, 168, 76, 0.18);
    border-radius: 12px;
    background: rgba(201, 168, 76, 0.05);
}

.legal-check {
    align-items: flex-start;
    line-height: 1.6;
}

.legal-check a,
.legal-meta-row a,
.legal-nav-link,
.cookie-banner a {
    color: var(--gold);
}

.legal-hero {
    margin-bottom: 18px;
}

.legal-hero-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.legal-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(201, 168, 76, 0.12);
    border: 1px solid rgba(201, 168, 76, 0.22);
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.legal-title {
    margin: 0;
}

.legal-subtitle {
    max-width: 760px;
}

.legal-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 22px;
    color: var(--text-muted);
    font-size: 13px;
}

.legal-card {
    padding: 28px;
    font-size: 16px;
}

.legal-section + .legal-section {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.legal-section h2 {
    margin: 0 0 12px;
    font-size: 20px;
    color: var(--text-light);
}

.legal-section p {
    margin: 0 0 14px;
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 16px;
}

.legal-list {
    margin: 0;
    padding-left: 20px;
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 16px;
}

.legal-list li + li {
    margin-top: 8px;
}

.legal-check span {
    font-size: 15px;
    line-height: 1.7;
}

.legal-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legal-nav-link {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    text-decoration: none;
    transition: 0.2s ease;
}

.legal-nav-link:hover,
.legal-nav-link.active {
    background: rgba(201, 168, 76, 0.09);
    border-color: rgba(201, 168, 76, 0.2);
}

.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 1200;
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.cookie-banner.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cookie-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    max-width: 1080px;
    margin: 0 auto;
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(12, 16, 26, 0.96);
    border: 1px solid rgba(201, 168, 76, 0.2);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35);
}

.cookie-banner-text strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text-light);
}

.cookie-banner-text p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 13px;
}

.cookie-banner-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .legal-card {
        padding: 22px 18px;
    }

    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner-actions {
        width: 100%;
        justify-content: stretch;
    }

    .cookie-banner-actions .btn {
        flex: 1 1 0;
    }
}

/* ============================================================
   SEO Okunabilirlik ve Kart Link Sadeleştirme
   ============================================================ */
body {
    font-size: 16px;
}

[style*="font-size:8px"],
[style*="font-size:9px"],
[style*="font-size:10px"],
[style*="font-size:11px"],
[style*="font-size:12px"],
[style*="font-size:13px"] {
    font-size: 14px !important;
}

.announcement-pill,
.announcement-text,
.main-nav a,
.nav-dropdown-menu a,
.header-add-server,
.btn-login,
.btn-register,
.user-avatar-btn span,
.user-dropdown a,
.hero-badge,
.hero-subtitle,
.hero-search input,
.hero-search button,
.hero-stat .lbl,
.section-link,
.discovery-hub-kicker,
.discovery-hub-copy,
.discovery-hub-link,
.discovery-footer-label,
.discovery-chip,
.discovery-panel-more,
.discovery-link-meta,
.discovery-link-summary,
.featured-side-label,
.featured-side-value,
.featured-side-comments,
.featured-rank,
.featured-ribbon-badge,
.featured-ribbon-type,
.badge,
.server-card-desc,
.server-card-meta,
.stat-item,
.server-rank,
.server-stat-item .lbl,
.widget-header,
.stat-row .label,
.stat-row .value,
.recent-item .ri-meta,
.filter-tab,
.filter-control,
.filter-search input,
.blog-card-excerpt,
.blog-card-meta,
.blog-detail-meta-block,
.content-bridge-copy,
.content-bridge-link,
.content-bridge-list-more,
.content-bridge-item-meta,
.content-bridge-item-summary,
.server-detail-meta,
.server-detail-score-text,
.server-sidebar-small,
.server-owner-cta-copy,
.comment-form-title,
.comment-date,
.comment-text,
.footer-brand p,
.footer-col ul li a,
.footer-bottom,
.auth-subtitle,
.auth-footer,
.form-label,
.form-hint,
.form-error,
.profile-hero-subtitle,
.profile-hero-meta,
.profile-section-head p,
.profile-server-card-desc,
.profile-server-card-meta,
.profile-server-card-stats,
.profile-role-chip,
.profile-status-badge,
.profile-comment-time,
.profile-comment-status,
.profile-comment-text,
.profile-side-row span,
.profile-stat-label,
.nav-badge,
.cookie-banner-text p,
.empty-state p {
    font-size: 14px !important;
}

.hero-search input,
.hero-search button,
.filter-control,
.filter-search input,
.form-control,
.btn,
.btn-detail {
    font-size: 16px !important;
}

.btn-sm {
    font-size: 14px !important;
}

.featured-more-static,
.card-detail-static {
    cursor: default;
    pointer-events: none;
}

.server-detail-score-text {
    color: var(--text-muted);
    margin-top: 4px;
}

.server-link-url {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: min(360px, 45vw);
}

.comment-form-title {
    color: var(--text-light);
    margin-bottom: 12px;
    font-size: 15px !important;
}

.server-owner-cta-copy {
    color: var(--text-muted);
    margin-bottom: 14px;
}

.server-editorial-card h2,
.content-card > h2,
.blog-detail-related-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.server-editorial-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.server-editorial-box {
    padding: 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
}

.server-editorial-box h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: var(--gold-light);
    margin-bottom: 12px;
}

.server-editorial-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding-left: 18px;
    list-style: disc;
}

.server-editorial-list li {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .server-editorial-grid {
        grid-template-columns: 1fr;
    }

    .server-link-url {
        max-width: 100%;
        white-space: normal;
    }
}

.listing-seo-intro,
.listing-seo-guide {
    margin-bottom: 24px;
}

.listing-seo-title {
    font-size: 22px;
    color: var(--text-main);
    margin-bottom: 14px;
    font-weight: 700;
}

.listing-seo-copy {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
    margin: 0 0 12px;
}

.listing-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.listing-faq-item {
    padding: 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
}

.listing-faq-item h3,
.blog-detail-link-group h3 {
    font-size: 16px;
    line-height: 1.45;
    color: var(--gold-light);
    margin-bottom: 10px;
}

.listing-faq-item p,
.blog-detail-editorial-box p,
.blog-detail-content-footer p {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-light);
    margin: 0;
}

.blog-detail-editorial-box {
    padding: 16px 18px;
    border-radius: 14px;
    background: rgba(201, 168, 76, 0.06);
    border: 1px solid rgba(201, 168, 76, 0.22);
    margin-bottom: 20px;
}

.blog-detail-content-footer {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.blog-detail-content-footer h2 {
    font-size: 20px;
    color: var(--text-main);
    margin-bottom: 12px;
    font-weight: 700;
}

.blog-detail-internal-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 18px;
}

.blog-detail-link-group .content-bridge-links {
    justify-content: flex-start;
}

@media (max-width: 768px) {
    .listing-faq-grid,
    .blog-detail-internal-links {
        grid-template-columns: 1fr;
    }
}
