/* ===============================
   1. CSS Reset / Base
=============================== */

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

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    background-color: var(--bg-main);
    background-image:
        radial-gradient(circle at top right, rgb(var(--bg-glow-primary-rgb) / 0.05), transparent 40%),
        radial-gradient(circle at bottom left, rgb(var(--bg-glow-secondary-rgb) / 0.05), transparent 40%);
    background-attachment: fixed;
    color: var(--text-main);

}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)" opacity="0.03"/></svg>');
    pointer-events: none;
    z-index: -1;
}

/* ===============================
   2. CSS Variables Fallbacks
=============================== */

:root {
    --bg-main: #0a0a0a;
    --bg-card: #161515;
    --bg-muted: #121111;
    --bg-surface: #201f1f;
    --overlay-bg: rgba(0, 0, 0, 0.8);
    --glass-panel-bg: rgba(15, 23, 42, 0.7);
    --toast-bg: rgba(18, 17, 17, 0.96);
    --toast-border: rgba(255, 255, 255, 0.16);
    --row-hover-bg: rgba(255, 255, 255, 0.02);
    --stat-chip-bg: rgba(255, 255, 255, 0.03);
    --stat-chip-border: rgba(255, 255, 255, 0.05);
    --scrollbar-track: rgba(255, 255, 255, 0.02);
    --scrollbar-thumb: rgba(255, 255, 255, 0.1);
    --scrollbar-thumb-hover: rgba(255, 255, 255, 0.2);

    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --text-on-primary: #ffffff;

    --color-primary: #d2bbff;
    --color-secondary: #ffc640;
    --color-success: #34d399;
    --color-warning: #fbbf24;
    --color-danger: #ef4444;
    --color-info: #38bdf8;
    --color-vip-banner: #f05a30;

    --border-color: rgba(255, 255, 255, 0.1);
    --border-soft: rgba(255, 255, 255, 0.05);
    --border-strong: #4a4455;

    --shadow-card: 0 16px 40px -12px rgba(0, 0, 0, 0.75);
    --shadow-card-soft: 0 4px 15px -3px rgba(210, 187, 255, 0.08);
    --shadow-card-hover: 0 0 25px 0 rgba(210, 187, 255, 0.25);
    --shadow-danger: 0 16px 40px -12px rgba(127, 29, 29, 0.75);
    --shadow-success: 0 16px 40px -12px rgba(6, 78, 59, 0.75);
    --shadow-modal: 0 24px 60px -14px rgba(0, 0, 0, 0.85);

    --color-primary-rgb: 210 187 255;
    --color-secondary-rgb: 255 198 64;
    --bg-surface-rgb: 32 31 31;
    --border-strong-rgb: 74 68 85;
    --bg-glow-primary-rgb: 124 58 237;
    --bg-glow-secondary-rgb: 124 58 237;
    --premium-row-bg-start-rgb: 204 195 216;
    --premium-row-bg-end-rgb: 32 31 31;
    --premium-row-border-rgb: 204 195 216;
    --toast-error-border-rgb: 239 68 68;
    --toast-success-border-rgb: 52 211 153;
    --chart-accent-rgb: 250 204 21;
}

/* ===============================
   3. Typography
=============================== */

a {
    color: inherit;
    text-decoration: none;
}

/* ===============================
   4. Layout
=============================== */

#toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10060;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ===============================
   5. Header / Sidebar / Navigation
=============================== */

.nav-item {
    position: relative;
    cursor: pointer;
    transition: color 0.3s ease;
}

.nav-item:hover {
    color: var(--color-primary);
}

.nav-item-active {
    color: var(--color-primary);
}

.nav-community {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-community::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 0.85rem;
}

.nav-community-trigger {
    position: relative;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    transition: color 0.22s ease;
}

.nav-community-trigger:hover,
.nav-community:focus-within .nav-community-trigger,
.nav-community.nav-item-active .nav-community-trigger {
    color: var(--color-primary);
}

.nav-community-chevron {
    transition: transform 0.22s ease, color 0.22s ease;
}

.nav-community:hover .nav-community-chevron,
.nav-community:focus-within .nav-community-chevron {
    transform: rotate(180deg);
}

.nav-community-menu {
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 50%;
    min-width: 248px;
    transform: translateX(-50%) translateY(8px);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: linear-gradient(180deg, #18171b 0%, #0e0e11 100%);
    box-shadow:
        0 24px 54px -24px rgba(0, 0, 0, 0.88),
        0 0 0 1px rgba(88, 101, 242, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
    z-index: 120;
    overflow: hidden;
}

.nav-community-menu::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 28%);
}

.nav-community:hover .nav-community-menu,
.nav-community:focus-within .nav-community-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.nav-community-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    justify-content: flex-start;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 0.62rem 0.8rem;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: left;
    background: #151519;
    transition: color 0.22s ease, border-color 0.22s ease, background-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.nav-community-link:hover,
.nav-community-link:focus-visible,
.nav-community-link-active {
    color: #fff;
    border-color: rgba(88, 101, 242, 0.28);
    background: #1b1c22;
    box-shadow: none;
    transform: translateY(-1px);
}

.mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: var(--overlay-bg);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 95;
    width: min(88vw, 340px);
    padding: 1.25rem 1rem 1.5rem;
    background: color-mix(in srgb, var(--bg-card) 92%, transparent);
    border-right: 1px solid var(--border-color);
    box-shadow: var(--shadow-modal);
    backdrop-filter: blur(18px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}

.mobile-nav-drawer.is-open,
.mobile-nav-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-drawer.is-open {
    transform: translateX(0);
}

body.mobile-nav-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .mobile-hide-spot-preview-trigger {
        display: none !important;
    }
}

/* ===============================
   6. Components
   - Cards
   - Buttons
   - Forms
   - Tables
   - Modals
   - Alerts
   - Dropdowns
=============================== */

.glass-panel {
    background: var(--glass-panel-bg);
    backdrop-filter: blur(16px);
}

.vip-banner {
    background-color: var(--color-vip-banner);
    transition: transform 0.2s ease;
}

.vip-banner:hover {
    transform: scale(1.005);
}

.row-premium {
    background: linear-gradient(90deg, rgb(var(--premium-row-bg-start-rgb) / 0.08) 0%, rgb(var(--premium-row-bg-end-rgb) / 0.9) 100%);
    border: 1px solid rgb(var(--premium-row-border-rgb) / 0.2);
    min-height: 118px;
}

.row-default {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.015) 0%, rgba(255, 255, 255, 0.01) 100%);
    border-bottom: 1px solid rgb(var(--border-strong-rgb) / 0.12);
    opacity: 1;
    min-height: 78px;
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.row-default:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(210, 187, 255, 0.16);
    transform: translateY(-1px);
}

.stat-chip {
    display: inline-flex;
    align-items: center;
    background: var(--stat-chip-bg);
    border: 1px solid var(--stat-chip-border);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Keep listing badges aligned with their semantic Tailwind color tokens.
   style.css loads after app.min.css, so these selectors restore the badge
   colors specifically inside the server list. */
#server-list-container .stat-chip {
    line-height: 1;
    white-space: nowrap;
}

#server-list-container .stat-chip.text-amber-300 {
    color: rgb(252 211 77);
    background-color: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.2);
}

#server-list-container .stat-chip.text-pink-300 {
    color: rgb(249 168 212);
    background-color: rgba(244, 114, 182, 0.1);
    border-color: rgba(244, 114, 182, 0.2);
}

#server-list-container .stat-chip.text-cyan-300 {
    color: rgb(103 232 249);
    background-color: rgba(34, 211, 238, 0.1);
    border-color: rgba(34, 211, 238, 0.2);
}

#server-list-container .stat-chip.text-rose-300 {
    color: rgb(253 164 175);
    background-color: rgba(251, 113, 133, 0.1);
    border-color: rgba(251, 113, 133, 0.2);
}

#server-list-container .stat-chip.text-orange-300 {
    color: rgb(253 186 116);
    background-color: rgba(251, 146, 60, 0.1);
    border-color: rgba(251, 146, 60, 0.2);
}

#server-list-container .stat-chip.text-blue-300 {
    color: rgb(147 197 253);
    background-color: rgba(96, 165, 250, 0.1);
    border-color: rgba(96, 165, 250, 0.2);
}

#server-list-container .stat-chip.text-teal-300 {
    color: rgb(94 234 212);
    background-color: rgba(45, 212, 191, 0.1);
    border-color: rgba(45, 212, 191, 0.2);
}

#server-list-container .stat-chip.text-red-300 {
    color: rgb(252 165 165);
    background-color: rgba(248, 113, 113, 0.1);
    border-color: rgba(248, 113, 113, 0.2);
}

#server-list-container .stat-chip.text-violet-300 {
    color: rgb(196 181 253);
    background-color: rgba(167, 139, 250, 0.1);
    border-color: rgba(167, 139, 250, 0.2);
}

#server-list-container .stat-chip.text-fuchsia-300 {
    color: rgb(240 171 252);
    background-color: rgba(232, 121, 249, 0.1);
    border-color: rgba(232, 121, 249, 0.2);
}

#server-list-container .stat-chip.text-lime-300 {
    color: rgb(190 242 100);
    background-color: rgba(163, 230, 53, 0.1);
    border-color: rgba(163, 230, 53, 0.2);
}

#server-list-container .stat-chip.text-sky-300 {
    color: rgb(125 211 252);
    background-color: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.2);
}

#server-list-container .stat-chip.text-emerald-300 {
    color: rgb(110 231 183);
    background-color: rgba(52, 211, 153, 0.1);
    border-color: rgba(52, 211, 153, 0.2);
}

#server-list-container .stat-chip.text-\[\#d2bbff\] {
    color: rgb(210 187 255);
    background-color: rgba(210, 187, 255, 0.1);
    border-color: rgba(210, 187, 255, 0.2);
}

/* Keep promoted-spot badges aligned with their Tailwind color tokens.
   style.css loads after app.min.css, so these scoped rules restore the
   chronicle/platform badge colors only inside sponsored + featured spots. */
#sponsored-spotlight .stat-chip,
#vip-slots .stat-chip {
    line-height: 1;
    white-space: nowrap;
}

#sponsored-spotlight .stat-chip.text-amber-300,
#vip-slots .stat-chip.text-amber-300 {
    color: rgb(252 211 77);
    background-color: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.2);
}

#sponsored-spotlight .stat-chip.text-pink-300,
#vip-slots .stat-chip.text-pink-300 {
    color: rgb(249 168 212);
    background-color: rgba(244, 114, 182, 0.1);
    border-color: rgba(244, 114, 182, 0.2);
}

#sponsored-spotlight .stat-chip.text-cyan-300,
#vip-slots .stat-chip.text-cyan-300 {
    color: rgb(103 232 249);
    background-color: rgba(34, 211, 238, 0.1);
    border-color: rgba(34, 211, 238, 0.2);
}

#sponsored-spotlight .stat-chip.text-rose-300,
#vip-slots .stat-chip.text-rose-300 {
    color: rgb(253 164 175);
    background-color: rgba(251, 113, 133, 0.1);
    border-color: rgba(251, 113, 133, 0.2);
}

#sponsored-spotlight .stat-chip.text-orange-300,
#vip-slots .stat-chip.text-orange-300 {
    color: rgb(253 186 116);
    background-color: rgba(251, 146, 60, 0.1);
    border-color: rgba(251, 146, 60, 0.2);
}

#sponsored-spotlight .stat-chip.text-blue-300,
#vip-slots .stat-chip.text-blue-300 {
    color: rgb(147 197 253);
    background-color: rgba(96, 165, 250, 0.1);
    border-color: rgba(96, 165, 250, 0.2);
}

#sponsored-spotlight .stat-chip.text-teal-300,
#vip-slots .stat-chip.text-teal-300 {
    color: rgb(94 234 212);
    background-color: rgba(45, 212, 191, 0.1);
    border-color: rgba(45, 212, 191, 0.2);
}

#sponsored-spotlight .stat-chip.text-red-300,
#vip-slots .stat-chip.text-red-300 {
    color: rgb(252 165 165);
    background-color: rgba(248, 113, 113, 0.1);
    border-color: rgba(248, 113, 113, 0.2);
}

#sponsored-spotlight .stat-chip.text-violet-300,
#vip-slots .stat-chip.text-violet-300 {
    color: rgb(196 181 253);
    background-color: rgba(167, 139, 250, 0.1);
    border-color: rgba(167, 139, 250, 0.2);
}

#sponsored-spotlight .stat-chip.text-fuchsia-300,
#vip-slots .stat-chip.text-fuchsia-300 {
    color: rgb(240 171 252);
    background-color: rgba(232, 121, 249, 0.1);
    border-color: rgba(232, 121, 249, 0.2);
}

#sponsored-spotlight .stat-chip.text-lime-300,
#vip-slots .stat-chip.text-lime-300 {
    color: rgb(190 242 100);
    background-color: rgba(163, 230, 53, 0.1);
    border-color: rgba(163, 230, 53, 0.2);
}

#sponsored-spotlight .stat-chip.text-sky-300,
#vip-slots .stat-chip.text-sky-300 {
    color: rgb(125 211 252);
    background-color: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.2);
}

#sponsored-spotlight .stat-chip.text-emerald-300,
#vip-slots .stat-chip.text-emerald-300 {
    color: rgb(110 231 183);
    background-color: rgba(52, 211, 153, 0.1);
    border-color: rgba(52, 211, 153, 0.2);
}

#sponsored-spotlight .stat-chip.text-\[\#d2bbff\],
#vip-slots .stat-chip.text-\[\#d2bbff\] {
    color: rgb(210 187 255);
    background-color: rgba(210, 187, 255, 0.1);
    border-color: rgba(210, 187, 255, 0.2);
}

.filter-select {
    appearance: none;
    color: inherit;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
        linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
    background-repeat: no-repeat;
    background-position:
        calc(100% - 0.85rem) calc(50% - 0.15rem),
        calc(100% - 0.55rem) calc(50% - 0.15rem);
    background-size: 0.35rem 0.35rem, 0.35rem 0.35rem;
}

.premium-glow {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    box-shadow: var(--shadow-card-soft);
    border: 1px solid rgb(var(--color-primary-rgb) / 0.15);
}

.site-shell-ad > a.premium-glow {
    position: sticky;
}

.premium-glow:hover {
    box-shadow: var(--shadow-card-hover);
    border-color: rgb(var(--color-primary-rgb) / 0.4);
    transform: scale(1.015);
}

.premium-glow::after {
    content: "";
    position: absolute;
    inset: -1px auto -1px 0;
    width: 34%;
    min-width: 180px;
    height: calc(100% + 2px);
    background: linear-gradient(to right, rgb(255 255 255 / 0) 0%, rgb(var(--color-primary-rgb) / 0.1) 50%, rgb(255 255 255 / 0) 100%);
    transform: skewX(-45deg);
    animation: shimmer 5s infinite;
    pointer-events: none;
    z-index: 0;
}

.premium-glow > * {
    position: relative;
    z-index: 1;
}

.premium-theme-royal {
    background: linear-gradient(90deg, rgba(120, 92, 255, 0.13) 0%, rgba(34, 28, 48, 0.92) 56%, rgba(18, 18, 24, 0.98) 100%);
    border-color: rgba(173, 144, 255, 0.24);
}

.premium-theme-ember {
    background: linear-gradient(90deg, rgba(255, 178, 68, 0.13) 0%, rgba(47, 31, 18, 0.92) 56%, rgba(18, 18, 24, 0.98) 100%);
    border-color: rgba(255, 198, 99, 0.24);
}

.premium-theme-emerald {
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.13) 0%, rgba(18, 41, 28, 0.92) 56%, rgba(18, 18, 24, 0.98) 100%);
    border-color: rgba(74, 222, 128, 0.22);
}

.premium-theme-frost {
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.13) 0%, rgba(18, 33, 46, 0.92) 56%, rgba(18, 18, 24, 0.98) 100%);
    border-color: rgba(125, 211, 252, 0.22);
}

.premium-theme-chip-royal {
    color: #ddd6fe;
    border-color: rgba(196, 181, 253, 0.26);
    background: rgba(139, 92, 246, 0.14);
}

.premium-theme-chip-ember {
    color: #fde68a;
    border-color: rgba(253, 224, 71, 0.24);
    background: rgba(245, 158, 11, 0.14);
}

.premium-theme-chip-emerald {
    color: #bbf7d0;
    border-color: rgba(134, 239, 172, 0.24);
    background: rgba(34, 197, 94, 0.14);
}

.premium-theme-chip-frost {
    color: #bae6fd;
    border-color: rgba(125, 211, 252, 0.24);
    background: rgba(14, 165, 233, 0.14);
}

.premium-theme-swatch {
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.premium-theme-swatch-royal {
    background: linear-gradient(90deg, rgba(120, 92, 255, 0.9) 0%, rgba(63, 42, 126, 0.9) 100%);
}

.premium-theme-swatch-ember {
    background: linear-gradient(90deg, rgba(255, 178, 68, 0.9) 0%, rgba(140, 74, 12, 0.9) 100%);
}

.premium-theme-swatch-emerald {
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.9) 0%, rgba(17, 94, 89, 0.9) 100%);
}

.premium-theme-swatch-frost {
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.9) 0%, rgba(37, 99, 235, 0.9) 100%);
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    padding: 16px 24px;
    border-radius: 12px;
    background: var(--toast-bg);
    border: 1px solid var(--toast-border);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-card);
    animation: toast-in 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
}

.toast.toast-center {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 420px;
    max-width: min(94vw, 620px);
    padding: 20px 28px;
    border-radius: 16px;
    z-index: 10020;
    justify-content: center;
    text-align: center;
    gap: 14px;
    box-shadow: var(--shadow-modal);
    animation: toast-center-in 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
}

.toast.error {
    border-color: rgb(var(--toast-error-border-rgb) / 0.45);
    box-shadow: var(--shadow-danger);
}

.toast.success {
    border-color: rgb(var(--toast-success-border-rgb) / 0.45);
    box-shadow: var(--shadow-success);
}

#modal-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 10040;
    background: var(--overlay-bg);
    backdrop-filter: blur(4px);
}

#modal-overlay > div {
    width: 100%;
    max-width: 420px;
    animation: modal-pop-in 0.18s ease-out;
}

#modal-reason {
    min-height: 110px;
    resize: vertical;
}

/* ===============================
   7. Pages / Specific Sections
=============================== */

.homepage-table-header {
    padding-top: 1.4rem;
    padding-bottom: 0.875rem;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

.vote-point-label {
    opacity: 0;
    transition: opacity 120ms ease;
    pointer-events: none;
}

.vote-point:hover .vote-point-label {
    opacity: 1;
}

.vote-point:hover circle:nth-child(2) {
    filter: drop-shadow(0 0 10px rgb(var(--chart-accent-rgb) / 0.75));
}

/* ===============================
   8. Utilities
=============================== */

.live-tag {
    animation: blink 1.5s infinite;
}

/* ===============================
   9. Responsive
=============================== */

@media (max-width: 640px) {
    .toast.toast-center {
        min-width: auto;
        width: min(94vw, 620px);
    }
}

@media (min-width: 1400px) {
    .header-desktop-nav {
        display: flex !important;
    }

    .header-desktop-guest {
        display: inline-flex !important;
    }

    .header-mobile-nav-trigger,
    .header-mobile-nav-surface {
        display: none;
    }
}

/* ===============================
   10. Animations
=============================== */

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

@keyframes shimmer {
    0% { transform: translateX(-180%) skewX(-45deg); }
    100% { transform: translateX(420%) skewX(-45deg); }
}

@keyframes toast-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toast-center-in {
    from {
        transform: translate(-50%, calc(-50% + 24px));
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

@keyframes modal-pop-in {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.guide-article-shell--minimal-toc .guide-toc-panel {
    border-radius: 22px;
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    padding: 1rem 0.9rem;
    box-shadow: none;
}

.guide-article-shell--minimal-toc .guide-toc-heading,
.guide-article-shell--minimal-toc .guide-toc-summary {
    padding: 0 0.3rem;
    font-size: 9px;
    letter-spacing: 0.2em;
    color: #94a3b8;
}

.guide-article-shell--minimal-toc .guide-toc-links {
    margin-top: 0.75rem;
    gap: 0.2rem;
    padding-right: 0;
}

.guide-article-shell--minimal-toc .guide-toc-link {
    border: 0;
    background: transparent;
    padding: 0.55rem 0.75rem 0.55rem 1.2rem;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #cbd5e1;
}

.guide-article-shell--minimal-toc .guide-toc-link:hover {
    border-color: transparent;
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
}

.guide-article-shell--minimal-toc .guide-toc-link:before {
    left: 0.35rem;
    height: 0.35rem;
    width: 0.35rem;
    background-color: rgba(148, 163, 184, 0.4);
}

.guide-article-shell--minimal-toc .guide-toc-link.is-active {
    border-color: transparent;
    background: rgba(210, 187, 255, 0.08);
    color: #ffffff;
}

.guide-article-shell--minimal-toc .guide-toc-link.is-active:before {
    background-color: #d2bbff;
}

.guide-article-shell--minimal-toc .guide-toc-summary:after {
    color: #94a3b8;
}

.guide-article-shell--minimal-toc .guide-toc-link-h3 {
    font-size: 12px;
    color: #94a3b8;
}
