/* System fonts are supplied by the SH theme; no remote font request required. */

:root {
    --bg-primary: #111214;
    --bg-secondary: #18191d;
    --bg-card: #202127;
    --bg-card-hover: #2b2d34;
    --bg-elevated: #343741;
    --border: #42454f;
    --border-strong: rgba(134, 189, 105, 0.22);
    --text-primary: #f4f1f2;
    --text-secondary: #b9b2b5;
    --text-muted: #a0a4a6;
    --accent: #6aa24f;
    --accent-light: #86bd69;
    --accent-glow: rgba(134, 189, 105, 0.24);
    --cyan: #a0a4a6;
    --cyan-glow: rgba(143, 149, 159, 0.18);
    --green: #6b7073;
    --red: #ff4060;
    --gold: #d8b15a;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-soft: 0 12px 34px rgba(0, 0, 0, 0.22);
    --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.38);
    --nav-surface: rgba(23, 23, 28, 0.9);
    --accent-soft: rgba(134, 189, 105, 0.12);
    --accent-soft-strong: rgba(134, 189, 105, 0.22);
    --mobile-dropdown-bg: rgba(134, 189, 105, 0.08);
    --text-on-media: #f2f3f1;
    --text-on-media-muted: rgba(247, 243, 244, 0.84);
    --surface-on-media: rgba(255, 255, 255, 0.06);
    --surface-on-media-border: rgba(134, 189, 105, 0.14);
    --section-glow: radial-gradient(circle at top, rgba(134, 189, 105, 0.16), transparent 54%);
}

:root[data-theme="light"] {
    --bg-primary: #f7f4f5;
    --bg-secondary: #fcfafb;
    --bg-card: #ffffff;
    --bg-card-hover: #f3edef;
    --bg-elevated: #ece5e8;
    --border: #ddd3d7;
    --border-strong: rgba(182, 61, 78, 0.18);
    --text-primary: #31282b;
    --text-secondary: #75686d;
    --text-muted: #9a8f94;
    --accent: #a83c4c;
    --accent-light: #d98a96;
    --accent-glow: rgba(163, 209, 140, 0.22);
    --cyan: #98949a;
    --cyan-glow: rgba(152, 148, 154, 0.14);
    --green: #b0838a;
    --red: #e44a63;
    --gold: #b78d34;
    --shadow: 0 12px 36px rgba(28, 44, 79, 0.12);
    --shadow-soft: 0 16px 40px rgba(28, 44, 79, 0.08);
    --shadow-lg: 0 28px 64px rgba(28, 44, 79, 0.12);
    --nav-surface: rgba(252, 249, 250, 0.92);
    --accent-soft: rgba(163, 209, 140, 0.12);
    --accent-soft-strong: rgba(163, 209, 140, 0.18);
    --mobile-dropdown-bg: rgba(163, 209, 140, 0.08);
    --text-on-media: #fffafb;
    --text-on-media-muted: rgba(255, 250, 251, 0.92);
    --surface-on-media: rgba(255, 255, 255, 0.12);
    --surface-on-media-border: rgba(182, 61, 78, 0.18);
    --section-glow: radial-gradient(circle at top, rgba(163, 209, 140, 0.12), transparent 58%);
}

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

body {
    font-family: 'Inter', sans-serif;
    background:
        radial-gradient(circle at top, rgba(134, 189, 105, 0.1), transparent 28%),
        radial-gradient(circle at right top, rgba(143, 149, 159, 0.07), transparent 24%),
        var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background 0.25s ease, color 0.25s ease;
    position: relative;
    isolation: isolate;
}

.site-main {
    flex: 1 0 auto;
    position: relative;
    z-index: 1;
}

::selection {
    background: rgba(134, 189, 105, 0.32);
    color: #2a1217;
}

html {
    scrollbar-width: thin;
    scrollbar-color: rgba(134, 189, 105, 0.72) rgba(255, 255, 255, 0.04);
}

body::-webkit-scrollbar {
    width: 12px;
}

body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
}

body::-webkit-scrollbar-thumb {
    background: rgba(134, 189, 105, 0.64);
    border-radius: 999px;
    border: 3px solid rgba(17, 18, 20, 0.92);
}

body::-webkit-scrollbar-thumb:hover {
    background: rgba(134, 189, 105, 0.86);
}

:root[data-theme="light"] html {
    scrollbar-color: rgba(168, 60, 76, 0.62) rgba(106, 162, 79, 0.08);
}

:root[data-theme="light"] body::-webkit-scrollbar-track {
    background: rgba(106, 162, 79, 0.08);
}

:root[data-theme="light"] body::-webkit-scrollbar-thumb {
    background: rgba(168, 60, 76, 0.58);
    border-color: rgba(247, 244, 245, 0.96);
}

:root[data-theme="light"] body::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 60, 76, 0.76);
}

body::before {
    content: "";
    position: fixed;
    inset: 64px 0 0;
    z-index: -2;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(16, 17, 18, 0.72) 0%, rgba(16, 17, 18, 0.48) 26%, rgba(16, 17, 18, 0.82) 100%),
        url('../img/body.jpg') center top / cover no-repeat;
    opacity: 0.9;
    filter: saturate(0.98) blur(0.5px);
    transform: scale(1.03);
}

body::after {
    content: "";
    position: fixed;
    inset: 64px 0 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at top center, rgba(134, 189, 105, 0.08), transparent 38%),
        linear-gradient(180deg, rgba(16, 17, 18, 0) 0%, rgba(16, 17, 18, 0.24) 48%, rgba(16, 17, 18, 0.5) 100%);
}

:root[data-theme="light"] body::before {
    background:
        linear-gradient(180deg, rgba(242, 243, 241, 0.34) 0%, rgba(242, 243, 241, 0.18) 26%, rgba(242, 243, 241, 0.46) 100%),
        url('../img/body.jpg') center top / cover no-repeat;
    opacity: 0.9;
    filter: saturate(0.96) blur(0.35px);
}

:root[data-theme="light"] body::after {
    background:
        radial-gradient(circle at top center, rgba(216, 177, 90, 0.05), transparent 38%),
        linear-gradient(180deg, rgba(242, 243, 241, 0) 0%, rgba(242, 243, 241, 0.08) 48%, rgba(242, 243, 241, 0.18) 100%);
}

a { color: var(--accent-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--cyan); }

img { max-width: 100%; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    width: 100%;
    margin: 0;
    background: rgba(27, 22, 25, 0.95);
    backdrop-filter: blur(16px) saturate(120%);
    border: none;
    border-bottom: 1px solid rgba(134, 189, 105, 0.18);
    border-radius: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0 18px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
    overflow: visible;
}

.navbar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: rgba(134, 189, 105, 0.18);
    pointer-events: none;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    max-width: none;
    padding: 0;
}

.navbar-brand {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    flex-shrink: 0;
    padding-right: 24px;
    margin-right: 8px;
    border-right: 1px solid rgba(134, 189, 105, 0.16);
    text-shadow: 0 1px 10px rgba(134, 189, 105, 0.08);
}

.navbar-brand span {
    color: var(--accent-light);
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
    margin-left: auto;
}

.navbar-nav > li {
    position: relative;
}

.navbar-nav a {
    color: rgba(242, 238, 230, 0.84);
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 600;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
    border: 1px solid transparent;
    position: relative;
}

.navbar-nav a:hover,
.navbar-nav a.active {
    color: var(--text-primary);
    background: rgba(134, 189, 105, 0.09);
    border-color: rgba(134, 189, 105, 0.22);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 10px 24px rgba(0, 0, 0, 0.14);
    transform: translateY(-1px);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-dropdown-toggle svg {
    transition: transform 0.2s;
    flex-shrink: 0;
    opacity: 0.7;
}

.nav-dropdown:hover .nav-dropdown-toggle svg,
.nav-dropdown.open .nav-dropdown-toggle svg {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    min-width: 210px;
    background: rgba(31, 25, 29, 0.98);
    border: 1px solid rgba(134, 189, 105, 0.16);
    border-radius: 18px;
    padding: 8px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.98);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    z-index: 200;
    box-shadow:
        0 20px 44px rgba(0, 0, 0, 0.34),
        0 0 0 1px rgba(255, 255, 255, 0.02) inset;
    backdrop-filter: blur(18px);
}

.nav-dropdown-menu::before {
    content: "";
    position: absolute;
    top: -7px;
    left: 24px;
    width: 14px;
    height: 14px;
    background: rgba(38, 30, 36, 0.98);
    border-top: 1px solid rgba(134, 189, 105, 0.16);
    border-left: 1px solid rgba(134, 189, 105, 0.16);
    transform: rotate(45deg);
}

.nav-dropdown-menu-right {
    left: auto;
    right: 0;
}

.nav-dropdown-menu-right::before {
    left: auto;
    right: 24px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.nav-dropdown-menu li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 13px;
    border-radius: 12px;
    font-size: 0.86rem;
    white-space: nowrap;
    color: var(--text-secondary);
    border: 1px solid transparent;
}

.nav-dropdown-menu li a:hover,
.nav-dropdown-menu li a.active {
    background: rgba(134, 189, 105, 0.1);
    border-color: rgba(134, 189, 105, 0.16);
    color: var(--text-primary);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.nav-dropdown-menu li + li {
    margin-top: 4px;
}

.nav-user-nameplate {
    display: inline-flex;
    align-items: center;
    height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(160, 164, 166, 0.16);
    background: rgba(160, 164, 166, 0.08);
    color: var(--text-primary);
    font-size: 0.84rem;
    font-weight: 600;
    white-space: nowrap;
}

.nav-admin-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(216, 177, 90, 0.26);
    background: rgba(216, 177, 90, 0.1);
    color: var(--gold) !important;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    transition: all 0.2s;
}

.nav-admin-link:hover {
    border-color: var(--gold);
    background: rgba(216, 177, 90, 0.16);
    color: var(--gold) !important;
}

.nav-user {
    position: relative;
}

.nav-user-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(160, 164, 166, 0.16);
    background: rgba(160, 164, 166, 0.06);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.nav-user-btn svg {
    width: 18px;
    height: 18px;
}

.nav-user-btn:hover {
    color: var(--text-primary);
    border-color: var(--accent);
    background: var(--accent-soft);
}

.nav-user.open .nav-user-btn {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-soft-strong);
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    width: 42px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(160, 164, 166, 0.16);
    background: rgba(160, 164, 166, 0.06);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
}

.theme-toggle:hover {
    color: var(--text-primary);
    border-color: var(--accent);
    background: var(--accent-soft);
}

.theme-toggle svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.theme-toggle-icon--moon,
:root[data-theme="light"] .theme-toggle-icon--sun {
    display: none;
}

:root[data-theme="light"] .theme-toggle-icon--moon {
    display: block;
}

.theme-toggle-label {
    display: none;
}

.nav-user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s;
    z-index: 200;
    box-shadow: var(--shadow);
}

.nav-user.open .nav-user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-user-header {
    padding: 8px 12px;
}

.nav-user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

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

.nav-user-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.15s;
    cursor: pointer;
}

.nav-user-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.nav-user-item:hover {
    color: var(--text-primary);
    background: var(--bg-card);
}

.nav-user-admin {
    color: var(--gold) !important;
}

.nav-user-admin:hover {
    background: rgba(245, 158, 11, 0.1) !important;
}

.nav-user-logout:hover {
    color: var(--danger) !important;
    background: rgba(239, 68, 68, 0.1) !important;
}

.nav-discord-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #5865F2;
    color: #fff !important;
    transition: all 0.2s;
    flex-shrink: 0;
}

.nav-discord-btn svg {
    width: 20px;
    height: 20px;
}

.nav-discord-btn:hover {
    background: #4752c4;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4);
}

:root[data-theme="light"] .navbar {
    background: rgba(248, 243, 245, 0.97);
    border-bottom-color: rgba(106, 162, 79, 0.14);
    box-shadow: 0 10px 24px rgba(34, 36, 38, 0.08);
}

:root[data-theme="light"] .navbar-brand {
    border-right-color: rgba(106, 162, 79, 0.12);
}

:root[data-theme="light"] .navbar-nav a {
    color: var(--text-secondary);
}

:root[data-theme="light"] .navbar-nav a:hover,
:root[data-theme="light"] .navbar-nav a.active {
    color: var(--text-primary);
    background: rgba(106, 162, 79, 0.08);
    border-color: rgba(106, 162, 79, 0.14);
    box-shadow: 0 10px 20px rgba(34, 36, 38, 0.06);
}

:root[data-theme="light"] .nav-dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(106, 162, 79, 0.12);
    box-shadow: 0 16px 36px rgba(34, 36, 38, 0.1);
}

:root[data-theme="light"] .nav-dropdown-menu::before {
    background: rgba(255, 255, 255, 0.98);
    border-top-color: rgba(106, 162, 79, 0.12);
    border-left-color: rgba(106, 162, 79, 0.12);
}

:root[data-theme="light"] .nav-user-nameplate,
:root[data-theme="light"] .nav-user-btn,
:root[data-theme="light"] .theme-toggle {
    border-color: rgba(106, 162, 79, 0.12);
    background: rgba(106, 162, 79, 0.05);
}

:root[data-theme="light"] .nav-user-btn:hover,
:root[data-theme="light"] .theme-toggle:hover {
    border-color: var(--accent);
    background: rgba(106, 162, 79, 0.1);
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    order: -1;
}

.navbar-toggle-icon {
    line-height: 1;
}

.navbar-toggle-label {
    display: none;
}

.dl-hero {
    text-align: center;
    padding: 40px 20px 48px;
}

.dl-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.dl-hero h1 span {
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dl-hero p {
    color: var(--text-secondary);
    max-width: 460px;
    margin: 0 auto;
    font-size: 1.05rem;
}

.dl-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(160, 164, 166, 0.12);
    color: var(--accent-light);
    border: 1px solid rgba(160, 164, 166, 0.28);
    margin-bottom: 20px;
}

.dl-hero-badge svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dl-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 820px;
    margin: 0 auto 48px;
}

.dl-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px 28px;
    text-align: center;
    transition: all 0.25s;
    position: relative;
}

.dl-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.dl-card-primary {
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

.dl-card-primary:hover {
    border-color: var(--accent-light);
    box-shadow: 0 8px 40px var(--accent-glow);
}

.dl-card-badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    color: #fff;
    padding: 3px 16px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.dl-card-icon {
    margin-bottom: 20px;
    color: var(--accent-light);
}

.dl-card-icon svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dl-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.dl-card-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.dl-card-specs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.dl-spec {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    justify-content: center;
}

.dl-spec svg {
    color: var(--green);
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

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

.dl-guide {
    max-width: 700px;
    margin: 0 auto 48px;
}

.dl-guide-header {
    margin-bottom: 32px;
}

.dl-guide-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.dl-guide-header h2 svg {
    color: var(--accent-light);
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.dl-guide-header p {
    font-size: 0.9rem;
    padding-left: 34px;
}

.dl-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dl-step {
    display: flex;
    gap: 20px;
    position: relative;
    padding-bottom: 32px;
}

.dl-step:last-child { padding-bottom: 0; }

.dl-step-line {
    position: absolute;
    left: 17px;
    top: 40px;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.dl-step:last-child .dl-step-line { display: none; }

.dl-step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--accent);
    color: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.dl-step:last-child .dl-step-number {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.dl-step:last-child .dl-step-number svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dl-step-content {
    flex: 1;
    padding-top: 4px;
}

.dl-step-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.dl-step-content p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
}

.dl-step-content code {
    background: var(--bg-secondary);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.82rem;
    color: var(--cyan);
}

.dl-faq {
    margin-bottom: 20px;
}

.dl-faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.dl-faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: all 0.25s;
}

.dl-faq-item:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.dl-faq-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(160, 164, 166, 0.12);
    color: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.dl-faq-icon svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dl-faq-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.dl-faq-item p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
}

.dl-faq-item code {
    background: var(--bg-secondary);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.82rem;
    color: var(--cyan);
}

@media (max-width: 768px) {
    .dl-cards { grid-template-columns: 1fr; }
    .dl-faq-grid { grid-template-columns: 1fr; }
    .dl-hero h1 { font-size: 2rem; }
}

@media (max-width: 480px) {
    .dl-hero h1 { font-size: 1.7rem; }
    .dl-card { padding: 28px 20px 24px; }
}

.hero {
    text-align: left;
    position: relative;
    overflow: hidden;
    min-height: min(860px, calc(100vh - 24px));
    padding: 124px 20px 88px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: var(--text-on-media);
}

.hero::before {
    content: "";
    position: absolute;
    inset: auto auto 3% 50%;
    width: min(980px, 88vw);
    height: min(980px, 88vw);
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(134, 189, 105, 0.14) 0%, rgba(44, 25, 31, 0.08) 44%, transparent 72%);
    filter: blur(26px);
    z-index: 1;
    pointer-events: none;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(21, 17, 20, 0.32) 0%, rgba(21, 17, 20, 0.62) 55%, rgba(17, 14, 16, 0.88) 100%),
        linear-gradient(90deg, rgba(21, 17, 20, 0.5) 0%, rgba(21, 17, 20, 0.18) 35%, rgba(21, 17, 20, 0.72) 100%);
}

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image:
        radial-gradient(1px 1px at 10% 20%, rgba(143, 167, 205, 0.42), transparent),
        radial-gradient(1px 1px at 30% 70%, rgba(111, 143, 185, 0.28), transparent),
        radial-gradient(1px 1px at 60% 30%, rgba(216, 177, 90, 0.28), transparent),
        radial-gradient(1px 1px at 80% 60%, rgba(160, 164, 166, 0.32), transparent),
        radial-gradient(1px 1px at 50% 90%, rgba(111, 143, 185, 0.2), transparent);
    animation: heroParticlesDrift 20s ease-in-out infinite alternate;
}

@keyframes heroParticlesDrift {
    0% { transform: translateY(0) translateX(0); }
    100% { transform: translateY(-20px) translateX(10px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(760px, 100%);
    max-width: 760px;
    margin: 0 auto;
    padding: 26px 8px 24px 8px;
    border: none;
    border-radius: 0;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
    overflow: visible;
}

.hero-content::before {
    content: none;
}

.hero-content > * {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(3.7rem, 7vw, 6.4rem);
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 0 0 18px rgba(160, 164, 166, 0.08), 0 10px 38px rgba(0, 0, 0, 0.34);
    letter-spacing: -0.05em;
    line-height: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero h1 span {
    color: var(--accent-light);
}

.hero-logo-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: min(100%, 720px);
    margin: 0 auto 24px;
    animation: heroLogoSway 6s ease-in-out infinite;
    will-change: transform;
}

.hero-logo-wrap::before {
    content: "";
    position: absolute;
    inset: 12% 10%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(134, 189, 105, 0.34) 0%, rgba(134, 189, 105, 0.08) 45%, transparent 72%);
    filter: blur(28px);
    opacity: 0.85;
    animation: heroLogoGlow 4.2s ease-in-out infinite;
    pointer-events: none;
}

.hero-logo {
    position: relative;
    z-index: 1;
    display: block;
    width: min(100%, 560px);
    height: auto;
    object-fit: contain;
    cursor: pointer;
    filter: drop-shadow(0 14px 32px rgba(0, 0, 0, 0.4));
    transform-origin: center;
    animation: heroLogoFloat 3.2s ease-in-out infinite;
    will-change: transform, filter;
}

@keyframes heroLogoSway {
    0% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-1deg);
    }
    50% {
        transform: rotate(0.8deg);
    }
    75% {
        transform: rotate(-0.6deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

@keyframes heroLogoFloat {
    0% {
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 14px 32px rgba(0, 0, 0, 0.4));
    }
    50% {
        transform: translateY(-16px) scale(1.045);
        filter: drop-shadow(0 22px 38px rgba(134, 189, 105, 0.28));
    }
    100% {
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 14px 32px rgba(0, 0, 0, 0.4));
    }
}

@keyframes heroLogoGlow {
    0% {
        transform: scale(0.96);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.04);
        opacity: 1;
    }
    100% {
        transform: scale(0.96);
        opacity: 0.7;
    }
}

@keyframes heroLogoShine {
    0% {
        left: -22%;
        opacity: 0;
    }
    12% {
        opacity: 0.75;
    }
    45% {
        left: 104%;
        opacity: 0.45;
    }
    100% {
        left: 104%;
        opacity: 0;
    }
}

.hero p {
    font-size: 1.12rem;
    color: rgba(242, 238, 230, 0.82);
    max-width: 620px;
    margin: 0 auto 34px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.38);
    line-height: 1.55;
    text-align: center;
}

.btn-glow {
    box-shadow: 0 0 20px var(--accent-glow), 0 4px 20px var(--accent-glow);
}

.btn-glow:hover {
    box-shadow: 0 0 30px var(--accent-glow), 0 6px 30px var(--accent-glow);
}

.hero-stats-strip {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 22px;
    flex-wrap: wrap;
}

.hero-stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(134, 189, 105, 0.16);
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-on-media);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
}

.hero-stat-chip svg {
    opacity: 0.7;
}

.page-video-wrapper {
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 64px);
}

.page-video-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(18, 14, 15, 0.12) 0%, rgba(18, 14, 15, 0.48) 42%, var(--bg-primary) 100%);
}

.page-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 75vh;
    max-height: 700px;
    min-height: 480px;
    z-index: 0;
    overflow: hidden;
}

.page-video-bg video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
}


:root[data-theme="light"] .hero-overlay {
    background:
        linear-gradient(180deg, rgba(34, 36, 38, 0.14) 0%, rgba(34, 36, 38, 0.34) 55%, rgba(34, 36, 38, 0.52) 100%),
        linear-gradient(90deg, rgba(34, 36, 38, 0.18) 0%, rgba(34, 36, 38, 0.06) 35%, rgba(34, 36, 38, 0.24) 100%);
}


:root[data-theme="light"] .hero {
    color: var(--text-primary);
}

:root[data-theme="light"] .hero h1 {
    text-shadow: none;
}

:root[data-theme="light"] .hero p {
    color: var(--text-secondary);
    text-shadow: none;
}

:root[data-theme="light"] .hero-stat-chip {
    background: rgba(106, 162, 79, 0.06);
    border-color: rgba(106, 162, 79, 0.12);
    color: var(--text-primary);
    box-shadow: 0 8px 18px rgba(34, 36, 38, 0.06);
}

:root[data-theme="light"] .hero-content {
    background: none;
    border-color: transparent;
    box-shadow: none;
}

.page-content {
    position: relative;
    z-index: 2;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 54px;
    padding: 12px 28px;
    border-radius: 999px;
    font-size: 0.98rem;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s, background 0.25s, color 0.25s;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent);
    color: #222426;
    box-shadow: 0 10px 24px rgba(182, 61, 78, 0.24);
    border-color: rgba(134, 189, 105, 0.34);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(182, 61, 78, 0.3);
    color: #222426;
}

.btn-secondary {
    background: rgba(134, 189, 105, 0.06);
    color: var(--text-primary);
    border: 1px solid rgba(134, 189, 105, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.btn-secondary:hover {
    background: rgba(134, 189, 105, 0.12);
    border-color: rgba(134, 189, 105, 0.24);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.btn-admin {
    position: relative;
    background: #3a3e41;
    color: #fff;
    padding: 12px 24px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    overflow: hidden;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;

    /*box-shadow: 0 4px 20px var(--accent-glow);*/
}

.btn-admin::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.4),
        transparent
    );
    transform: skewX(-25deg);
    transition: 0.6s;
}

.btn-admin:hover {
    transform: translateY(-3px) scale(1.03);
    color: white;
    box-shadow: 0 8px 30px rgba(255, 70, 70, 0.1);
}

.btn-admin:hover::before {
    left: 125%;
}

.btn-admin:active {
    transform: scale(0.97);
    box-shadow: 0 3px 10px var(--accent-glow);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

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

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent-light);
    background: rgba(160, 164, 166, 0.08);
    transform: translateY(-2px);
}

:root[data-theme="light"] .btn-secondary {
    background: rgba(106, 162, 79, 0.08);
    border-color: rgba(106, 162, 79, 0.16);
    color: var(--text-primary);
    box-shadow: 0 6px 16px rgba(34, 36, 38, 0.05);
}

:root[data-theme="light"] .btn-secondary:hover {
    background: rgba(106, 162, 79, 0.14);
    border-color: rgba(106, 162, 79, 0.24);
    box-shadow: 0 10px 22px rgba(34, 36, 38, 0.08);
}

:root[data-theme="light"] .btn-outline {
    background: rgba(106, 162, 79, 0.06);
    border-color: rgba(106, 162, 79, 0.14);
    color: var(--text-primary);
}

:root[data-theme="light"] .btn-outline:hover {
    background: rgba(106, 162, 79, 0.12);
    border-color: rgba(106, 162, 79, 0.22);
    color: var(--text-primary);
}

.dl-alt-link {
    margin-top: 8px;
    font-size: 0.8rem;
    opacity: 0.8;
}

.dl-alt-link:hover {
    opacity: 1;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 8px;
    margin-bottom: 18px;
}

.hero-buttons--centered {
    justify-content: center;
}

.home-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.home-feature {
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: 18px;
    padding: 28px 24px;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.home-feature::before,
.card::before,
.home-cta::after,
.dl-card::before,
.stat-card::before {
    content: none;
}

.home-feature:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.home-feature:has(.home-feature-icon--accent):hover { border-color: var(--accent); }
.home-feature:has(.home-feature-icon--green):hover { border-color: var(--green); }
.home-feature:has(.home-feature-icon--cyan):hover { border-color: var(--cyan); }
.home-feature:has(.home-feature-icon--gold):hover { border-color: var(--gold); }

.home-feature-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    background: rgba(134, 189, 105, 0.1);
    color: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.home-feature-icon svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-feature-icon--accent {
    background: rgba(134, 189, 105, 0.14);
    color: var(--accent-light);
}

.home-feature-icon--green {
    background: rgba(155, 107, 114, 0.14);
    color: var(--green);
}

.home-feature-icon--cyan {
    background: rgba(143, 149, 159, 0.14);
    color: var(--cyan);
}

.home-feature-icon--gold {
    background: rgba(255, 215, 64, 0.12);
    color: var(--gold);
}

.home-feature h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.home-feature p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
}

.home-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 32px;
    align-items: start;
}

.home-news-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.home-news-item {
    padding: 24px;
}

.home-news-item:hover {
    border-color: rgba(134, 189, 105, 0.24);
    transform: translateY(-4px);
}

.home-news-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.home-news-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.home-news-type svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-news-date {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.home-news-item h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.home-news-excerpt {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

.home-news-author {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.home-top-list {
    display: flex;
    flex-direction: column;
}

.home-top-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s, transform 0.15s;
    border-radius: 12px;
}

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

.home-top-row:hover {
    background: rgba(255, 255, 255, 0.03);
    transform: translateX(4px);
}

.home-top-rank {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.home-rank-1 .home-top-rank { background: rgba(255, 215, 64, 0.15); color: var(--gold); }
.home-rank-2 .home-top-rank { background: rgba(192, 192, 192, 0.15); color: #c0c0c0; }
.home-rank-3 .home-top-rank { background: rgba(205, 127, 50, 0.15); color: #cd7f32; }

.home-top-info { flex: 1; }

.home-top-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.home-top-class {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.home-top-level {
    font-weight: 700;
    color: var(--accent-light);
    font-size: 1rem;
}

.home-cta {
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: 24px;
    padding: 48px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.home-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
}

.home-cta-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.home-cta-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.home-cta-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .home-features { grid-template-columns: repeat(2, 1fr); }
    .home-grid { grid-template-columns: 1fr; }
    .home-grid .section-title { text-align: center !important; }
    .hero h1 { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    .home-cta { flex-direction: column; text-align: center; padding: 36px 24px; }
    .home-cta-actions { flex-direction: column; width: 100%; }
    .home-cta-actions .btn { width: 100%; justify-content: center; }
    .hero { min-height: 450px; }
    .hero-logo-wrap { margin-bottom: 20px; }
    .hero-logo { width: min(100%, 420px); }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
    .hero-stats-strip { gap: 8px; }
    .hero-stat-chip { font-size: 0.75rem; padding: 5px 10px; }
}

@media (max-width: 480px) {
    .home-features { grid-template-columns: 1fr; }
    .hero-logo { width: min(100%, 300px); }
    .hero h1 { font-size: 1.8rem; }
    .hero-stats-strip { flex-direction: column; align-items: center; }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 40px 0;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    transition: all 0.25s;
}

.stat-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-light);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.status-badge.online {
    background: rgba(134, 189, 105, 0.08);
    color: var(--accent-light);
    border: 1px solid rgba(134, 189, 105, 0.18);
}

.status-badge.offline {
    background: rgba(255, 64, 96, 0.1);
    color: var(--red);
    border: 1px solid rgba(255, 64, 96, 0.3);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.online .status-dot { background: var(--green); }
.offline .status-dot { background: var(--red); }

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

.section {
    padding: 72px 0;
    position: relative;
}

.section-title {
    font-size: clamp(1.85rem, 2.8vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 36px;
    text-align: center;
    letter-spacing: -0.03em;
}

.section-title span {
    color: var(--accent-light);
    background: none;
    -webkit-text-fill-color: initial;
    animation: none;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.card-header {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.form-page {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.form-card {
    width: 100%;
    max-width: 440px;
}

.form-title {
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.form-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 0.9rem;
}

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

.form-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.form-row-between {
    justify-content: space-between;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
    cursor: pointer;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: var(--bg-secondary);
}

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

.btn-block {
    width: 100%;
    justify-content: center;
}

.form-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.9rem;
    border: 1px solid;
}

.alert-error {
    background: rgba(255, 64, 96, 0.1);
    border-color: rgba(255, 64, 96, 0.3);
    color: var(--red);
}

.alert-success {
    background: rgba(0, 230, 118, 0.1);
    border-color: rgba(0, 230, 118, 0.3);
    color: var(--green);
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    box-shadow: var(--shadow-soft);
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead th {
    text-align: left;
    padding: 14px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(35, 35, 51, 0.5);
    font-size: 0.9rem;
}

tbody tr {
    transition: background 0.15s;
}

tbody tr:hover {
    background: var(--bg-card-hover);
}

.rank-number {
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.rank-number.top-1 { color: var(--gold); font-size: 1.1rem; }
.rank-number.top-2 { color: #c0c0c0; font-size: 1rem; }
.rank-number.top-3 { color: #cd7f32; font-size: 1rem; }

.player-class {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.level-badge {
    background: var(--bg-secondary);
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--accent-light);
}

.prestige-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(255, 215, 64, 0.15), rgba(255, 152, 0, 0.1));
    border: 1px solid rgba(255, 215, 64, 0.3);
    color: var(--gold);
    padding: 3px 10px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    background: var(--bg-secondary);
    padding: 4px;
    border-radius: var(--radius-sm);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.tab {
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    background: none;
    text-decoration: none;
}

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

.tab.active {
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.dashboard-full {
    grid-column: 1 / -1;
}

.account-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.info-item {
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.info-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.info-value {
    font-weight: 600;
    font-size: 1.05rem;
}

.char-list {
    display: grid;
    gap: 12px;
}

.char-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: border-color 0.2s;
}

.char-card:hover {
    border-color: var(--accent);
}

.char-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-light);
    flex-shrink: 0;
}

.char-details { flex: 1; }

.char-name {
    font-weight: 600;
    font-size: 1rem;
}

.char-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.char-level {
    font-weight: 700;
    color: var(--accent-light);
    font-size: 1.1rem;
}

.dash-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
}

.dash-welcome-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.dash-welcome h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.dash-welcome h2 span {
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dash-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.dash-vip-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(255, 215, 64, 0.1);
    color: var(--gold);
    border: 1px solid rgba(255, 215, 64, 0.3);
}

.dash-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.dash-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.25s;
}

.dash-stat-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.dash-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dash-stat-value {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.2;
}

.dash-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dash-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 4px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
}

.dash-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    background: none;
    white-space: nowrap;
    font-family: inherit;
}

.dash-tab:hover { color: var(--text-primary); background: var(--bg-secondary); }

.dash-tab.active {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 2px 12px var(--accent-glow);
}

.dash-tab.active svg { stroke: #fff; }

.dash-tab svg {
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dash-tab-badge {
    background: var(--bg-secondary);
    padding: 1px 8px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.dash-tab.active .dash-tab-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.dash-panel {
    display: none;
}

.dash-panel.active {
    display: block;
}

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

.dash-action-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: all 0.2s;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.dash-action-btn:hover {
    border-color: var(--accent);
    background: var(--bg-card-hover);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.dash-action-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dash-game-preview {
    display: grid;
    gap: 2px;
}

.dash-game-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

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

.dash-game-row-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dash-game-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-light);
    flex-shrink: 0;
}

.dash-game-avatar.online { border-color: var(--green); }

.dash-game-card {
    margin-bottom: 20px;
}

.dash-game-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.dash-game-head-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.dash-game-avatar-lg {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--accent-light);
    flex-shrink: 0;
    text-transform: uppercase;
}

.dash-game-avatar-lg.online { border-color: var(--green); }

.dash-game-name {
    font-size: 1.1rem;
    font-weight: 700;
}

.dash-game-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.dash-game-points {
    text-align: right;
    line-height: 1.2;
}

.dash-game-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.dash-game-action-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dash-action-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dash-action-label svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

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

.dash-inline-form .form-control {
    padding: 8px 12px;
    font-size: 0.85rem;
    flex: 1;
    min-width: 0;
}

.dash-inline-form .btn {
    white-space: nowrap;
    flex-shrink: 0;
}

.dash-chars-section {
    padding-top: 16px;
}

.dash-chars-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.dash-chars-title svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dash-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.dash-form-grid .form-group {
    margin-bottom: 0;
}

.dash-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.dash-empty p {
    font-size: 1rem;
    margin-bottom: 4px;
}

.dash-info-list {
    display: grid;
    gap: 0;
}

.dash-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

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

.dash-info-key {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.dash-info-val {
    font-weight: 600;
    font-size: 0.95rem;
    text-align: right;
}

@media (max-width: 768px) {
    .dash-stats { grid-template-columns: repeat(2, 1fr); }
    .dash-tabs { flex-wrap: wrap; }
    .dash-game-actions { grid-template-columns: 1fr; }
    .dash-form-grid { grid-template-columns: 1fr; }
    .dash-quick-actions { grid-template-columns: 1fr; }
    .dash-game-head { flex-direction: column; align-items: flex-start; }
    .dash-game-points { text-align: left; }
    .dash-welcome { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .dash-stats { grid-template-columns: 1fr; }
    .dash-stat-card { padding: 16px; }
    .dash-inline-form { flex-direction: column; }
    .dash-inline-form .btn { width: 100%; }
}

.vote-hero {
    text-align: center;
    padding: 24px 20px 0;
    margin-bottom: 32px;
}

.vote-hero-icon {
    color: var(--gold);
    margin-bottom: 16px;
}

.vote-hero-icon svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.vote-hero h1 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.vote-hero h1 span {
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vote-hero p {
    color: var(--text-secondary);
    max-width: 460px;
    margin: 0 auto 16px;
    font-size: 1.05rem;
}

.vote-reward-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(255, 215, 64, 0.1);
    color: var(--gold);
    border: 1px solid rgba(255, 215, 64, 0.25);
}

.vote-reward-badge svg {
    flex-shrink: 0;
}

.vote-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.vote-stat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 16px;
    text-align: center;
    transition: all 0.25s;
}

.vote-stat:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.vote-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.vote-stat-icon svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.vote-stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.2;
}

.vote-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.vote-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
    align-items: start;
}

.vote-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.vote-section-title svg {
    color: var(--accent-light);
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.vote-login-prompt {
    text-align: center;
    padding: 24px 0 8px;
}

.vote-login-icon {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.vote-login-icon svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.vote-login-prompt h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.vote-login-prompt p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.vote-login-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.vote-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.vote-step {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.vote-step:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.vote-step:first-child {
    padding-top: 0;
}

.vote-step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.vote-step-num-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.vote-step-content {
    flex: 1;
}

.vote-step-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.vote-step-content p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 14px;
}

.vote-step-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.vote-cooldown {
    text-align: center;
    padding: 16px 0 8px;
}

.vote-timer-ring {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
}

.vote-timer-ring svg {
    display: block;
}

.vote-timer-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.vote-timer-value {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-light);
    line-height: 1.2;
}

.vote-timer-label {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.vote-cooldown-msg {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.vote-top-list {
    display: flex;
    flex-direction: column;
}

.vote-top-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

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

.vote-top-rank {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.vote-rank-1 .vote-top-rank { background: rgba(255, 215, 64, 0.15); color: var(--gold); }
.vote-rank-2 .vote-top-rank { background: rgba(192, 192, 192, 0.15); color: #c0c0c0; }
.vote-rank-3 .vote-top-rank { background: rgba(205, 127, 50, 0.15); color: #cd7f32; }

.vote-top-info { flex: 1; }

.vote-top-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.vote-top-count {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-light);
}

.vote-see-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    padding: 10px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-light);
    transition: all 0.2s;
}

.vote-see-all:hover {
    background: rgba(160, 164, 166, 0.12);
    color: var(--accent-light);
}

.vote-see-all svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.vote-empty {
    text-align: center;
    padding: 24px 0;
}

.vote-empty p {
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.vote-info-card {
    margin-top: 20px;
}

.vote-info-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.vote-info-title svg {
    color: var(--cyan);
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.vote-info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vote-info-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.vote-info-list li svg {
    color: var(--green);
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 992px) {
    .vote-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .vote-stats { grid-template-columns: repeat(2, 1fr); }
    .vote-hero h1 { font-size: 1.8rem; }
    .vote-login-actions { flex-direction: column; }
}

@media (max-width: 480px) {
    .vote-stats { grid-template-columns: 1fr 1fr; }
    .vote-hero h1 { font-size: 1.5rem; }
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.news-card {
    padding: 24px;
    transition: all 0.25s;
}

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

.news-type {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.news-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.news-excerpt {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 12px;
    line-height: 1.5;
}

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

.news-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.news-card-footer .news-meta {
    margin: 0;
}

.news-detail {
    padding: 32px;
}

.news-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.news-reactions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
    justify-content: flex-end;
}

.reaction-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.reaction-btn:hover {
    border-color: var(--accent);
    color: var(--text-primary);
    background: var(--accent-soft);
}

.reaction-btn.is-active {
    border-color: var(--accent);
    background: var(--accent-soft-strong);
    color: var(--accent-light);
}

.news-comments {
    margin-top: 24px;
    display: grid;
    gap: 16px;
}

.comments-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-primary);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.comments-toggle:hover {
    border-color: var(--accent);
    background: var(--bg-card-hover);
}

.comments-toggle-meta {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.comments-toggle-icon {
    color: var(--accent-light);
    transition: transform 0.2s;
}

.comments-panel {
    display: none;
}

.comments-panel.is-open {
    display: grid;
    gap: 16px;
}

[hidden] {
    display: none !important;
}

.comments-panel.is-open + .comments-toggle .comments-toggle-icon {
    transform: rotate(180deg);
}

.comment-form {
    display: grid;
    gap: 12px;
}

.comment-form-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 12px;
}

.comment-input,
.comment-textarea {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 12px 14px;
    font: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.comment-textarea {
    min-height: 120px;
    resize: vertical;
}

.comment-input:focus,
.comment-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.comment-list {
    display: grid;
    gap: 14px;
}

.comment-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
}

.comment-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 8px;
}

.comment-author {
    font-weight: 700;
    color: var(--text-primary);
}

.comment-date {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.comment-head-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.comment-delete-form {
    margin: 0;
}

.comment-delete-btn {
    border: none;
    background: transparent;
    color: var(--red);
    font: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

.comment-delete-btn:hover {
    text-decoration: underline;
}

.comment-body {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.news-open-content {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.8;
}

.news-open-content > *:first-child {
    margin-top: 0;
}

.news-open-content > *:last-child {
    margin-bottom: 0;
}

.news-open-content h1,
.news-open-content h2,
.news-open-content h3,
.news-open-content h4,
.news-open-content h5,
.news-open-content h6 {
    color: var(--text-primary);
    line-height: 1.25;
    margin: 1.4em 0 0.65em;
}

.news-open-content p,
.news-open-content ul,
.news-open-content ol,
.news-open-content blockquote,
.news-open-content pre,
.news-open-content table {
    margin: 0 0 1.15em;
}

.news-open-content ul,
.news-open-content ol {
    padding-left: 1.3rem;
}

.news-open-content li + li {
    margin-top: 0.35em;
}

.news-open-content a {
    color: var(--accent-light);
    text-decoration: underline;
    text-underline-offset: 2px;
    overflow-wrap: anywhere;
}

.news-open-content strong,
.news-open-content b {
    color: var(--text-primary);
}

.news-open-content img,
.news-open-content video,
.news-open-content iframe {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.2em auto;
    border-radius: var(--radius);
}

.news-open-content iframe {
    width: 100%;
    min-height: 320px;
    border: 0;
}

.news-open-content blockquote {
    padding: 14px 18px;
    border-left: 3px solid var(--accent);
    background: var(--accent-soft);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--text-primary);
}

.news-open-content pre {
    overflow-x: auto;
    padding: 16px;
    border-radius: var(--radius);
    background: rgba(0, 0, 0, 0.22);
    color: var(--text-primary);
}

.news-open-content code,
.news-open-content pre {
    font-family: Consolas, Monaco, 'Courier New', monospace;
}

.news-open-content table {
    width: 100%;
    display: block;
    overflow-x: auto;
    border-collapse: collapse;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-secondary);
}

.news-open-content th,
.news-open-content td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .news-detail {
        padding: 22px;
    }

    .news-card-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .news-actions,
    .news-reactions {
        justify-content: flex-start;
    }

    .comment-form-row {
        grid-template-columns: 1fr;
    }

    .news-open-content {
        font-size: 0.95rem;
        line-height: 1.75;
    }

    .news-open-content iframe {
        min-height: 220px;
    }
}



.shop-hero {
    text-align: center;
    padding: 32px 20px 0;
    margin-bottom: 36px;
    position: relative;
}

.shop-hero-glow {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(160, 164, 166, 0.16), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.shop-hero-icon {
    color: var(--accent-light);
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
    animation: shopHeroFloat 3s ease-in-out infinite;
}

@keyframes shopHeroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.shop-hero h1 {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.shop-hero h1 span {
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shop-hero p {
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto;
    font-size: 1.05rem;
    position: relative;
    z-index: 1;
}


.shop-balance {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 24px;
    margin-bottom: 40px;
}

.shop-balance-card {
    display: flex;
    align-items: center;
    gap: 14px;
}

.shop-balance-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.shop-balance-icon--gold {
    background: rgba(255, 215, 64, 0.1);
    color: var(--gold);
}

.shop-balance-icon--accent {
    background: rgba(160, 164, 166, 0.12);
    color: var(--accent-light);
}

.shop-balance-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.shop-balance-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.shop-balance-amount {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.shop-balance-amount small {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
}

.shop-balance-divider {
    width: 1px;
    height: 38px;
    background: var(--border);
    flex-shrink: 0;
}

.shop-balance-vote {
    margin-left: auto;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(160, 164, 166, 0.12);
    color: var(--accent-light);
    border: 1px solid rgba(160, 164, 166, 0.28);
}

.shop-balance-vote:hover {
    background: rgba(160, 164, 166, 0.2);
    color: var(--accent-light);
}


.shop-section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.shop-section-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.shop-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}


.shop-offers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.shop-offer {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.shop-offer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.3s;
}

.shop-offer:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.shop-offer:hover::before {
    opacity: 1;
}


.shop-offer--basic:hover { border-color: var(--accent); }
.shop-offer--basic::before { background: var(--accent); }
.shop-offer--basic .shop-offer-icon { background: rgba(160, 164, 166, 0.12); color: var(--accent-light); }

.shop-offer--popular { border-color: rgba(255, 215, 64, 0.25); }
.shop-offer--popular:hover { border-color: var(--gold); box-shadow: 0 20px 60px rgba(255, 215, 64, 0.1); }
.shop-offer--popular::before { background: var(--gold); opacity: 1; }
.shop-offer--popular .shop-offer-icon { background: rgba(255, 215, 64, 0.1); color: var(--gold); }
.shop-offer--popular .shop-offer-points { background: linear-gradient(135deg, var(--gold), #f0a800); -webkit-background-clip: text; background-clip: text; }

.shop-offer--premium:hover { border-color: var(--cyan); }
.shop-offer--premium::before { background: var(--cyan); }
.shop-offer--premium .shop-offer-icon { background: rgba(0, 212, 255, 0.1); color: var(--cyan); }
.shop-offer--premium .shop-offer-points { background: linear-gradient(135deg, var(--cyan), #a0a4a6); -webkit-background-clip: text; background-clip: text; }

.shop-offer--vip:hover { border-color: #a3d18c; }
.shop-offer--vip::before { background: linear-gradient(90deg, #a3d18c, #a3d18c); }
.shop-offer--vip .shop-offer-icon { background: rgba(244, 114, 182, 0.1); color: #a3d18c; }
.shop-offer--vip .shop-offer-points { background: linear-gradient(135deg, #a3d18c, #a3d18c); -webkit-background-clip: text; background-clip: text; }

.shop-offer--elite:hover { border-color: var(--green); }
.shop-offer--elite::before { background: var(--green); }
.shop-offer--elite .shop-offer-icon { background: rgba(0, 230, 118, 0.1); color: var(--green); }
.shop-offer--elite .shop-offer-points { background: linear-gradient(135deg, var(--green), #00c853); -webkit-background-clip: text; background-clip: text; }

.shop-offer--ultimate { border-color: rgba(255, 215, 64, 0.3); background: linear-gradient(180deg, rgba(255, 215, 64, 0.04), var(--bg-card)); }
.shop-offer--ultimate:hover { border-color: var(--gold); box-shadow: 0 20px 60px rgba(255, 215, 64, 0.12), 0 0 30px rgba(255, 215, 64, 0.06); }
.shop-offer--ultimate::before { background: linear-gradient(90deg, var(--gold), #ff9800, var(--gold)); opacity: 1; height: 3px; }
.shop-offer--ultimate .shop-offer-icon { background: linear-gradient(135deg, rgba(255, 215, 64, 0.15), rgba(255, 152, 0, 0.1)); color: var(--gold); }
.shop-offer--ultimate .shop-offer-points { background: linear-gradient(135deg, var(--gold), #ff9800); -webkit-background-clip: text; background-clip: text; }


.shop-offer-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.shop-offer-badge--gold {
    background: var(--gold);
    color: #000;
}

.shop-offer-badge--green {
    background: var(--green);
    color: #000;
}

.shop-offer-badge--legendary {
    background: linear-gradient(135deg, var(--gold), #ff9800);
    color: #000;
    animation: shopBadgePulse 2s ease-in-out infinite;
}

@keyframes shopBadgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 215, 64, 0.3); }
    50% { box-shadow: 0 0 12px 4px rgba(255, 215, 64, 0.15); }
}


.shop-offer-inner {
    padding: 32px 22px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.shop-offer-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: transform 0.3s;
}

.shop-offer:hover .shop-offer-icon {
    transform: scale(1.1);
}

.shop-offer-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
}

.shop-offer-points {
    font-size: 2.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-light), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.shop-offer-unit {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
    margin-bottom: 10px;
}

.shop-offer-bonus {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--green);
    background: rgba(0, 230, 118, 0.1);
    padding: 3px 12px;
    border-radius: 50px;
    margin-bottom: 12px;
}

.shop-offer-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.2;
}

.shop-offer-price small {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.shop-offer-ratio {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}


.shop-offer-action {
    padding: 0 22px 22px;
    width: 100%;
}

.btn-shop-buy {
    background: linear-gradient(135deg, var(--accent), #34373a);
    color: #fff;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-shop-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(160, 164, 166, 0.32);
    color: #fff;
}

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


.tebex-buy-btn {
    background: linear-gradient(135deg, #a0a4a6, #6b7073) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.25s;
    cursor: pointer;
}

.tebex-buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 180, 216, 0.35);
    background: linear-gradient(135deg, #a0a4a6, #6b7073) !important;
    color: #fff !important;
}

.shop-dedipass {
    margin-bottom: 48px;
}

.shop-dedipass-inner {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.shop-dedipass-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f59e0b, #d97706, #f59e0b);
}

.shop-dedipass-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.shop-dedipass-header p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0 0 24px 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.shop-dedipass-widget {
    display: flex;
    justify-content: center;
}


.shop-trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.shop-trust-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.25s;
}

.shop-trust-item:hover {
    border-color: rgba(160, 164, 166, 0.3);
}

.shop-trust-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(160, 164, 166, 0.12);
    color: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.shop-trust-item strong {
    font-size: 0.92rem;
    display: block;
    margin-bottom: 4px;
}

.shop-trust-item p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.shop-trust-item a {
    color: var(--accent-light);
    text-decoration: underline;
}

.paypal-button-container {
    min-height: 40px;
}

.shop-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 14px 24px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 9999;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    animation: shopFadeIn 0.3s ease-out;
}

.shop-toast--success {
    background: rgba(52, 211, 153, 0.15);
    border: 1px solid rgba(52, 211, 153, 0.3);
    color: var(--green);
}

.shop-toast--error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.shop-toast--info {
    background: rgba(160, 164, 166, 0.15);
    border: 1px solid rgba(160, 164, 166, 0.3);
    color: var(--accent-light);
}

.fade-in {
    opacity: 0;
    transform: translateY(16px);
    animation: shopFadeIn 0.5s ease-out forwards;
}

.fade-in:nth-child(2) { animation-delay: 0.08s; }
.fade-in:nth-child(3) { animation-delay: 0.16s; }
.fade-in:nth-child(4) { animation-delay: 0.24s; }
.fade-in:nth-child(5) { animation-delay: 0.32s; }
.fade-in:nth-child(6) { animation-delay: 0.4s; }

@keyframes shopFadeIn {
    to { opacity: 1; transform: translateY(0); }
}


@media (max-width: 992px) {
    .shop-offers { grid-template-columns: repeat(2, 1fr); }
    .shop-trust { grid-template-columns: 1fr; }
    .shop-balance { flex-wrap: wrap; gap: 16px; }
    .shop-balance-divider { display: none; }
    .shop-balance-vote { margin-left: 0; width: 100%; justify-content: center; }
}

@media (max-width: 768px) {
    .shop-hero h1 { font-size: 1.9rem; }
    .shop-offer-points { font-size: 2rem; }
}

@media (max-width: 480px) {
    .shop-offers { grid-template-columns: 1fr; }
    .shop-offer-points { font-size: 2.2rem; }
    .shop-balance-amount { font-size: 1.1rem; }
    .shop-section-title { font-size: 0.72rem; }
}

.shop-balance-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 24px;
    margin-bottom: 28px;
}

.shop-balance-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.shop-balance-item .shop-balance-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.shop-balance-item .shop-balance-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.shop-balance-item .shop-balance-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.shop-balance-item .shop-balance-value small {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.shop-balance-sep {
    width: 1px;
    height: 36px;
    background: var(--border);
    flex-shrink: 0;
}

.shop-balance-vote-btn {
    margin-left: auto;
    flex-shrink: 0;
}

.shop-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.shop-modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: shopFadeIn 0.2s ease-out;
}

.shop-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.shop-modal-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.shop-modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.15s;
}

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

.shop-modal-body {
    padding: 24px;
}

@media (max-width: 768px) {
    .shop-balance-bar { flex-wrap: wrap; gap: 14px; }
    .shop-balance-sep { display: none; }
    .shop-balance-vote-btn { margin-left: 0; width: 100%; justify-content: center; }
}

.igshop-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 64, 96, 0.08);
    border: 1px solid rgba(255, 64, 96, 0.25);
    border-radius: var(--radius);
    padding: 14px 20px;
    margin-bottom: 28px;
    color: var(--red);
    font-size: 0.9rem;
}

.igshop-notice svg { flex-shrink: 0; }

.igshop-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 40px;
}

.igshop-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 18px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.igshop-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.igshop-card--accent:hover { border-color: var(--accent); }
.igshop-card--gold:hover { border-color: var(--gold); }
.igshop-card--cyan:hover { border-color: var(--cyan); }
.igshop-card--green:hover { border-color: var(--green); }

.igshop-card--disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.igshop-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.igshop-card--accent .igshop-card-icon { background: rgba(160, 164, 166, 0.12); color: var(--accent-light); }
.igshop-card--gold .igshop-card-icon { background: rgba(255, 215, 64, 0.1); color: var(--gold); }
.igshop-card--cyan .igshop-card-icon { background: rgba(0, 212, 255, 0.1); color: var(--cyan); }
.igshop-card--green .igshop-card-icon { background: rgba(0, 230, 118, 0.1); color: var(--green); }

.igshop-card-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.igshop-card-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.igshop-card-price {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold);
    background: rgba(255, 215, 64, 0.08);
    padding: 4px 12px;
    border-radius: 50px;
}

.igshop-card-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 50px;
}

.igshop-card-tag--warn {
    background: rgba(255, 64, 96, 0.12);
    color: var(--red);
}

.igshop-modal-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin: 16px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.igshop-modal-price strong {
    color: var(--gold);
    font-size: 1.05rem;
}

.igshop-char-single {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    margin-bottom: 14px;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.igshop-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: igSpin 0.6s linear infinite;
    vertical-align: middle;
}

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

#igshop-toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 500;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.igshop-toast {
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    animation: igToastIn 0.3s ease-out;
    max-width: 340px;
}

.igshop-toast.out {
    animation: igToastOut 0.3s ease-in forwards;
}

.igshop-toast--ok { background: var(--green); }
.igshop-toast--err { background: var(--red); }
.igshop-toast--info { background: var(--accent); }

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

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

@media (max-width: 992px) {
    .igshop-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .igshop-grid { grid-template-columns: repeat(2, 1fr); }
}

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

.wiki-hero {
    background: linear-gradient(135deg, rgb(166 93 123 / 16%), rgb(185 111 136 / 8%));
    border-bottom: 1px solid var(--border);
    padding: 80px 20px 40px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.wiki-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.wiki-hero h1 span {
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wiki-hero p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.wiki-search-wrap {
    position: relative;
    max-width: 500px;
    margin: 0 auto 20px;
}

.wiki-search-wrap svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
}

.wiki-search {
    width: 100%;
    padding: 12px 16px 12px 42px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.wiki-search:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.wiki-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.wiki-filter {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

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

.wiki-filter.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.wiki-stats-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

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

.wiki-stat strong {
    display: block;
    font-size: 1.3rem;
    color: var(--accent-light);
    font-weight: 700;
}

.wiki-stat span {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wiki-group {
    margin-bottom: 32px;
}

.wiki-group-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.wiki-group-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    border-radius: 6px;
    flex-shrink: 0;
}

.wiki-group-icon svg {
    width: 16px;
    height: 16px;
    stroke: #fff;
}

.wiki-group-count {
    margin-left: auto;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-secondary);
    padding: 3px 10px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.wiki-group-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    padding: 0 0 12px 0;
}

.wiki-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wiki-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color 0.2s;
}

.wiki-item:hover {
    border-color: rgba(160, 164, 166, 0.32);
}

.wiki-item-simple .wiki-item-header {
    cursor: default;
}

.wiki-item-simple .wiki-item-info h3 {
    font-size: 0.85rem;
    font-weight: 500;
}

.wiki-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    user-select: none;
}

.wiki-item-img {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wiki-item-img img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    image-rendering: pixelated;
    border-radius: 4px;
}

.wiki-item-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}

.wiki-item-icon svg {
    width: 18px;
    height: 18px;
}

.wiki-item-icon.dofus { background: rgba(255, 64, 96, 0.12); color: var(--red); }
.wiki-item-icon.familier { background: rgba(0, 230, 118, 0.12); color: var(--green); }
.wiki-item-icon.bouclier { background: rgba(0, 212, 255, 0.12); color: var(--cyan); }
.wiki-item-icon.anneau { background: rgba(255, 215, 64, 0.12); color: var(--gold); }
.wiki-item-icon.amulette { background: rgba(160, 164, 166, 0.14); color: var(--accent-light); }
.wiki-item-icon.coiffe { background: rgba(255, 152, 0, 0.12); color: #ff9800; }
.wiki-item-icon.cape { background: rgba(156, 39, 176, 0.12); color: #a3d18c; }
.wiki-item-icon.arme { background: rgba(244, 67, 54, 0.12); color: #ef5350; }
.wiki-item-icon.bottes { background: rgba(121, 85, 72, 0.12); color: #a1887f; }
.wiki-item-icon.ceinture { background: rgba(96, 125, 139, 0.12); color: #90a4ae; }
.wiki-item-icon.panoplie { background: rgba(0, 150, 136, 0.12); color: #4db6ac; }
.wiki-item-icon.dragodinde { background: rgba(33, 150, 243, 0.12); color: #a0a4a6; }
.wiki-item-icon.donjon { background: rgba(255, 183, 77, 0.12); color: #ffb74d; }
.wiki-item-icon.loterie { background: rgba(186, 104, 200, 0.12); color: #a3d18c; }
.wiki-item-icon.craft { background: rgba(129, 199, 132, 0.12); color: #81c784; }

.wiki-item-info {
    flex: 1;
    min-width: 0;
}

.wiki-item-info h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wiki-item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.wiki-tag {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}

.wiki-tag.type {
    background: rgba(160, 164, 166, 0.15);
    color: var(--accent-light);
}

.wiki-tag.lieu {
    background: rgba(0, 212, 255, 0.12);
    color: var(--cyan);
}

.wiki-tag.niveau {
    background: rgba(255, 215, 64, 0.12);
    color: var(--gold);
}

.wiki-item-toggle {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.wiki-item-toggle svg {
    width: 16px;
    height: 16px;
    transition: transform 0.25s;
}

.wiki-item-toggle:hover {
    border-color: var(--accent);
    color: var(--accent-light);
}

.wiki-item.open .wiki-item-toggle svg {
    transform: rotate(180deg);
}

.wiki-item-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.wiki-item.open .wiki-item-body {
    max-height: 600px;
}

.wiki-item-section {
    padding: 12px 16px;
    border-top: 1px solid var(--border);
}

.wiki-item-section h4 {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.wiki-item-section h4 svg {
    width: 14px;
    height: 14px;
}

.wiki-item-section p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.wiki-stats {
    color: var(--accent-light) !important;
    font-weight: 500;
}

.wiki-no-result {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.wiki-no-result svg {
    margin-bottom: 16px;
    opacity: 0.4;
}

.wiki-no-result p {
    font-size: 1rem;
}

/* Prestige */
.wiki-prestige-rang {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #101112;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1rem;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.35);
}

.wiki-prestige-item .wiki-item-header {
    border-left: 3px solid rgba(255, 215, 0, 0.4);
}

.wiki-prestige-item.open .wiki-item-header {
    border-left-color: #ffd700;
}

.wiki-tag.prestige-rang {
    background: rgba(255, 215, 0, 0.12);
    color: #ffd700;
}

/* === BATTLEPASS === */
.wiki-battlepass-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wiki-battlepass-palier {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 52px;
}

.wiki-bp-rank {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6e40, #ff3d00);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1rem;
    box-shadow: 0 0 12px rgba(255, 110, 64, 0.35);
}

.wiki-bp-points {
    font-size: 0.65rem;
    color: #ff6e40;
    font-weight: 700;
    white-space: nowrap;
}

.wiki-battlepass-item .wiki-item-header {
    border-left: 3px solid rgba(255, 110, 64, 0.4);
}

.wiki-battlepass-item.open .wiki-item-header {
    border-left-color: #ff6e40;
}

.wiki-tag.bp-points {
    background: rgba(255, 110, 64, 0.12);
    color: #ff6e40;
}

.wiki-item-icon.pvm { background: rgba(66, 165, 245, 0.12); color: #a0a4a6; }

/* === WIKI LAYOUT === */
.wiki-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.wiki-main {
    flex: 1;
    min-width: 0;
}

/* === SIDEBAR === */
.wiki-sidebar {
    width: 220px;
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    flex-shrink: 0;
}

.wiki-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px;
}

.wiki-sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.wiki-sidebar-item:hover {
    background: rgba(160, 164, 166, 0.08);
    color: var(--text-primary);
}

.wiki-sidebar-item.active {
    background: rgba(160, 164, 166, 0.12);
    color: var(--accent-light);
    border-left-color: var(--sec-color, var(--accent));
    font-weight: 600;
}

.wiki-sidebar-icon {
    font-size: 1.1rem;
    line-height: 1;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.wiki-sidebar-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.wiki-sidebar-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* === SECTIONS === */
.wiki-section {
    margin-bottom: 48px;
    scroll-margin-top: 80px;
}

.wiki-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--sec-color, var(--accent));
}

.wiki-section-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.wiki-section-icon svg {
    width: 28px;
    height: 28px;
    display: block;
}

.wiki-section-header h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
}

.wiki-section-header h2 small {
    display: block;
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 2px;
}

/* === RESPONSIVE === */
@media (max-width: 992px) {
    .wiki-sidebar {
        display: none;
    }
    .wiki-layout {
        display: block;
    }
}

@media (max-width: 768px) {
    .wiki-hero { padding: 70px 16px 30px; }
    .wiki-hero h1 { font-size: 2rem; }
    .wiki-stats-bar { gap: 20px; flex-wrap: wrap; }
    .wiki-item-info h3 { font-size: 0.88rem; }
    .wiki-filters { gap: 6px; }
    .wiki-filter { padding: 5px 10px; font-size: 0.75rem; }
    .wiki-section-header h2 { font-size: 1.15rem; }
    .wiki-section-icon { font-size: 1.2rem; }
}

@media (max-width: 480px) {
    .wiki-hero h1 { font-size: 1.6rem; }
    .wiki-item-header { padding: 10px 12px; gap: 10px; }
    .wiki-item-icon { width: 30px; height: 30px; }
    .wiki-item-icon svg { width: 15px; height: 15px; }
    .wiki-stats-bar { gap: 16px; padding: 16px; }
}

.footer {
    background:
        radial-gradient(circle at top center, rgba(143, 167, 205, 0.06), transparent 42%),
        var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 30px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: auto;
    position: relative;
    z-index: 1;
}

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

.back-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(14, 18, 20, 0.9);
    color: var(--text-primary);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
    z-index: 110;
    transition: transform 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s, color 0.2s;
}

.back-top:hover {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

:root[data-theme="light"] .back-top {
    border-color: rgba(79, 109, 153, 0.16);
    background: rgba(255, 255, 255, 0.92);
    color: var(--accent);
    box-shadow: 0 10px 24px rgba(28, 44, 79, 0.12);
}

:root[data-theme="light"] .ladder-search-input {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(106, 162, 79, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

:root[data-theme="light"] .back-top:hover {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 14px 28px rgba(79, 109, 153, 0.2);
}

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

@media (max-width: 768px) {
    .back-top {
        right: 16px;
        bottom: 16px;
        width: 42px;
        height: 42px;
    }

    .ladder-toolbar {
        align-items: stretch;
    }

    .ladder-search-form {
        width: 100%;
        margin-left: 0;
    }

    .ladder-search-input {
        min-width: 0;
        width: 100%;
    }
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
}

.ladder-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 18px 0 20px;
    flex-wrap: wrap;
}

.ladder-toolbar--after-stats {
    margin-top: 16px;
    justify-content: flex-end;
}

.ladder-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-left: auto;
}

.ladder-search-input {
    min-width: 280px;
    height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font: inherit;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.ladder-search-input::placeholder {
    color: var(--text-muted);
}

.ladder-search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(134, 189, 105, 0.12);
}

.ladder-toolbar-meta {
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.ladder-search-submit {
    min-width: 116px;
}

.pagination a,
.pagination span {
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}

.pagination a {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.pagination a:hover {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--accent);
}

.pagination .current {
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
}

@media (max-width: 768px) {
    .navbar .container {
        gap: 10px;
        height: 68px;
    }

    .navbar-toggle {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        height: 42px;
        padding: 0 14px;
        border: 1px solid rgba(134, 189, 105, 0.16);
        border-radius: 12px;
        background: rgba(134, 189, 105, 0.08);
        color: var(--text-primary);
        font-size: 1rem;
        font-weight: 700;
        flex-shrink: 0;
        order: 0;
    }

    .navbar-toggle-label {
        display: inline;
        font-size: 0.84rem;
        letter-spacing: 0.02em;
    }

    .navbar-brand {
        padding-right: 0;
        margin-right: auto;
        border-right: none;
        font-size: 1.05rem;
    }

    .navbar {
        width: 100%;
        margin-top: 0;
        top: 0;
        padding: 0 14px;
        border-radius: 0;
    }

    .navbar-nav {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        left: 14px;
        right: 14px;
        background: rgba(27, 22, 25, 0.98);
        border: 1px solid rgba(134, 189, 105, 0.12);
        border-radius: 18px;
        flex-direction: column;
        padding: 12px;
        z-index: 150;
        backdrop-filter: blur(18px);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
    }

    .navbar-nav.open { display: flex; }

    .navbar-nav > li {
        width: 100%;
    }

    .navbar-nav a {
        width: 100%;
    }

    .nav-user-nameplate { display: none; }
    .nav-admin-link { display: none; }

    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(134, 189, 105, 0.08);
        box-shadow: none;
        padding: 6px;
        margin-top: 8px;
        display: none;
        min-width: 0;
        border-radius: 14px;
    }

    .nav-dropdown-menu::before {
        content: none;
    }

    .nav-dropdown-menu-right {
        right: auto;
    }

    .nav-dropdown.open .nav-dropdown-menu {
        display: block;
    }

    .navbar-right { gap: 6px; margin-left: auto; }
    .theme-toggle { width: 38px; padding: 0; }
    .nav-discord-btn { width: 38px; height: 38px; }

    .hero {
        min-height: auto;
        padding: 108px 16px 52px;
    }
    .hero-content {
        width: 100%;
        margin: 0 auto;
        padding: 18px 4px 20px;
    }
    .hero h1 {
        font-size: 3rem;
        line-height: 0.96;
    }
    .hero p {
        font-size: 1rem;
        max-width: 100%;
        margin-bottom: 24px;
    }
    .hero-buttons {
        gap: 10px;
    }
    .hero-buttons .btn {
        width: auto;
        justify-content: center;
    }
    .hero-stat-chip {
        font-size: 0.8rem;
        padding: 8px 14px;
    }

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

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

    .account-info-grid { grid-template-columns: 1fr; }

    .tabs { flex-wrap: wrap; justify-content: center; }
    .comment-form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.4rem; }
    .hero-buttons .btn { width: 100%; }
}

.password-wrapper {
    position: relative;
}

.password-wrapper .form-control {
    padding-right: 40px;
}

.password-toggle {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    line-height: 0;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: var(--accent-light);
}

.password-toggle svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.password-strength {
    height: 4px;
    background: var(--bg-secondary);
    border-radius: 2px;
    margin-top: 6px;
    overflow: hidden;
}

.password-strength-fill {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: width 0.3s, background 0.3s;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.error-page {
    min-height: calc(100vh - 64px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.error-code {
    font-size: 8rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.error-page h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.error-page p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 400px;
}

.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }
.text-muted { color: var(--text-secondary); }
.text-accent { color: var(--accent-light); }
.text-gold { color: var(--gold); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }

.vote-badge-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(160, 164, 166, 0.14);
    border: 1px solid rgba(160, 164, 166, 0.28);
    color: var(--accent-light);
    font-size: 0.82rem;
    font-weight: 700;
}

.table-wrapper table tr.is-current-tier {
    background: rgba(255, 215, 64, 0.08);
}
