:root {
    color-scheme: dark;
    --bg: #120d0a;
    --bg-top: #2b1a11;
    --bg-bottom: #050505;
    --bg-elevated: #1b1614;
    --bg-soft: #27201d;
    --bg-glow-right: rgba(245, 158, 11, 0.12);
    --bg-glow-left: rgba(180, 83, 9, 0.1);
    --surface: rgba(28, 23, 20, 0.9);
    --surface-strong: #1b1614;
    --surface-muted: #241d1a;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --text: #f3f4f6;
    --text-soft: #c8cbd0;
    --text-muted: #9b9fa6;
    --accent: #9ca3af;
    --accent-strong: #d1d5db;
    --accent-soft: rgba(255, 255, 255, 0.05);
    --shadow-sm: 0 10px 28px rgba(0, 0, 0, 0.32);
    --shadow-md: 0 20px 56px rgba(0, 0, 0, 0.45);
    --radius-lg: 12px;
    --radius-md: 8px;
    --radius-sm: 4px;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --bg: #120d0a;
    --bg-top: #2b1a11;
    --bg-bottom: #050505;
    --bg-elevated: #1b1614;
    --bg-soft: #27201d;
    --bg-glow-right: rgba(245, 158, 11, 0.12);
    --bg-glow-left: rgba(180, 83, 9, 0.1);
    --surface: rgba(28, 23, 20, 0.9);
    --surface-strong: #1b1614;
    --surface-muted: #241d1a;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --text: #f3f4f6;
    --text-soft: #c8cbd0;
    --text-muted: #9b9fa6;
    --accent: #9ca3af;
    --accent-strong: #d1d5db;
    --accent-soft: rgba(255, 255, 255, 0.05);
    --shadow-sm: 0 10px 28px rgba(0, 0, 0, 0.32);
    --shadow-md: 0 20px 56px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    overflow-y: scroll;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', Arial, sans-serif;
    background:
        radial-gradient(circle at top right, var(--bg-glow-right), transparent 26%),
        radial-gradient(circle at top left, var(--bg-glow-left), transparent 30%),
        radial-gradient(circle at 50% -8%, rgba(251, 191, 36, 0.08), transparent 24%),
        linear-gradient(180deg, #312017 0%, #1f1511 18%, #130f0d 42%, #0b0a0a 72%, var(--bg-bottom) 100%);
    color: var(--text);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    transition: background-color 0.25s ease, color 0.25s ease;
}

body.modal-open {
    padding-right: 0 !important;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
}

.site-header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 2000;
    isolation: isolate;
    padding-top: 0;
}

.main-content,
.site-footer {
    position: relative;
    z-index: 1;
}

.navbar-custom {
    position: relative;
    z-index: 2001;
}

.ash-particle-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 2100;
}

.ash-particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    background: radial-gradient(circle, rgba(255, 199, 128, 0.96) 0%, rgba(255, 146, 43, 0.58) 38%, rgba(255, 255, 255, 0) 78%);
    box-shadow: 0 0 8px rgba(255, 140, 0, 0.22);
    will-change: transform, opacity;
    animation-name: ashDriftGlobal;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.ash-particle::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 75%);
}

@keyframes ashDriftGlobal {
    0% {
        opacity: 0;
        transform: translate3d(0, 0, 0) scale(var(--ash-scale, 1));
    }
    10% {
        opacity: var(--ash-opacity, 0.45);
    }
    65% {
        opacity: calc(var(--ash-opacity, 0.45) * 0.55);
    }
    100% {
        opacity: 0;
        transform: translate3d(var(--ash-drift, 24px), var(--ash-rise, -420px), 0) scale(var(--ash-scale, 1));
    }
}

.navbar-custom {
    margin: 0;
    width: 100%;
    border: none;
    border-top: 2px solid rgba(245, 158, 11, 0.15);
    border-bottom: 2px solid rgba(245, 158, 11, 0.15);
    border-radius: 0;
    background: linear-gradient(180deg, rgba(7, 7, 7, 0.98) 0%, rgba(10, 10, 10, 1) 100%);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
    transition: background 0.22s ease;
    backdrop-filter: blur(10px);
}

.navbar-custom .container {
    width: min(1280px, calc(100% - 24px));
    max-width: none;
    min-height: 60px;
}

.navbar-brand.brand-gradient {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    text-decoration: none;
    text-transform: uppercase;
    position: relative;
    padding-left: 0;
    background: linear-gradient(180deg, #fb7185 0%, #f43f5e 32%, #be123c 68%, #7f1d1d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 14px rgba(225, 29, 72, 0.28);
}

.navbar-nav {
    gap: 1.5rem;
}

.navbar-nav .nav-link {
    position: relative;
    color: #a1a1aa !important;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.6rem 0 !important;
    border-radius: 0;
    background: transparent;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #f59e0b !important;
    text-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
    background: transparent;
}

.navbar-nav .nav-link::after {
    content: none;
}

.btn-login,
.btn-hero-primary,
.btn-hero-secondary,
.modal-login-custom .btn-login-modal,
.btn-outline-primary,
.community-btn-discord,
.client-download-btn {
    border-radius: 4px;
    font-weight: 800;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
}

.btn-login,
.btn-hero-primary,
.modal-login-custom .btn-login-modal {
    background: transparent;
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.4);
    box-shadow: none;
}

.btn-login {
    padding: 0.55rem 1.25rem;
}

.btn-login:hover,
.btn-hero-primary:hover,
.modal-login-custom .btn-login-modal:hover,
.btn-login:focus,
.btn-hero-primary:focus,
.modal-login-custom .btn-login-modal:focus {
    color: #fff;
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.2);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.btn-hero-primary,
.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    padding: 0.95rem 1.5rem;
    text-decoration: none;
}

.btn-hero-secondary,
.btn-outline-primary,
.client-download-btn,
.theme-toggle,
.quick-step-premium,
.community-feature {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-soft);
    box-shadow: none;
}

.btn-hero-secondary:hover,
.btn-outline-primary:hover,
.client-download-btn:hover,
.theme-toggle:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    transform: translateY(-2px);
}

.navbar-toggler {
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 0;
    padding: 0.42rem 0.58rem;
    box-shadow: none !important;
    background: rgba(245, 158, 11, 0.05);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%230f172a' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

html[data-theme="dark"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23e5eefc' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.main-content {
    flex: 1 0 auto;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 110px 0 64px;
}

.main-content.main-content-home {
    margin-top: 0;
    padding-top: 0;
    z-index: auto;
}

.section-features-premium,
.section-quickstart-premium,
.section-ranking-premium,
.section-community-premium,
.container.py-5.main-content,
.dashboard-container {
    background: color-mix(in srgb, var(--surface) 100%, transparent);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.container.py-5.main-content.download-feature-shell {
    background: linear-gradient(180deg, rgba(7, 7, 7, 0.98) 0%, rgba(10, 10, 10, 1) 100%);
    border-top: 2px solid rgba(245, 158, 11, 0.15);
    border-bottom: 2px solid rgba(245, 158, 11, 0.15);
    border-left: none;
    border-right: none;
    border-radius: 0;
}

.download-link-wrap {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.download-system-wrap {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.download-link-table,
.download-system-table {
    width: 100%;
    font-size: 0.95rem;
}

.download-link-table td,
.download-system-table th,
.download-system-table td {
    padding: 0.8rem 1rem;
}

.download-link-cell-name,
.download-system-table td,
.download-system-table th {
    font-size: 0.95rem;
}

.download-link-table td.download-link-cell-size {
    width: 120px;
    text-align: center;
    color: #f3f4f6 !important;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
}

.download-link-btn {
    min-width: 132px;
    padding: 0.7rem 1.1rem;
    font-size: 0.78rem;
}

.download-system-table {
    margin: 0;
}

.download-system-table th {
    font-size: 0.82rem;
}

.container.py-5.main-content.ranking-feature-shell {
    background: linear-gradient(180deg, rgba(7, 7, 7, 0.98) 0%, rgba(10, 10, 10, 1) 100%);
    border-top: 2px solid rgba(245, 158, 11, 0.15);
    border-bottom: 2px solid rgba(245, 158, 11, 0.15);
    border-left: none;
    border-right: none;
    border-radius: 0;
}

.landing-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url('/img/mainbg.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transform: scale(1.08);
    filter: blur(4px) brightness(0.72) saturate(0.94);
    opacity: 0.9;
    pointer-events: none;
}

.landing-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    width: 100vw;
    max-width: 100vw;
    margin-top: 0;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 0;
    position: relative;
    overflow: hidden;
    min-height: auto;
    background: #060606;
    border-top: none;
    border-bottom: none;
    border-left: none;
    border-right: none;
    border-radius: 0;
    box-shadow: var(--shadow-md);
}

.hero-copy,
.hero-visual {
    position: relative;
    z-index: 1;
}

.hero-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: clamp(650px, 85vh, 900px);
    padding: 150px 1.5rem 5rem;
    overflow: hidden;
    isolation: isolate;
}

.hero-stage-art {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: hidden;
    z-index: 0;
}

.hero-stage-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(6, 6, 6, 0.28) 0%, rgba(6, 6, 6, 0.16) 24%, rgba(6, 6, 6, 0.5) 100%),
        radial-gradient(circle at 18% 50%, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.22) 25%, rgba(0, 0, 0, 0) 48%),
        radial-gradient(circle at 94% 14%, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.28) 17%, rgba(0, 0, 0, 0) 32%),
        radial-gradient(circle at 94% 78%, rgba(0, 0, 0, 0.52) 0%, rgba(0, 0, 0, 0.14) 18%, rgba(0, 0, 0, 0) 34%);
}

.landing-hero::before,
.landing-hero::after {
    content: none;
}

.landing-hero-centered {
    text-align: center;
}

.hero-copy-centered {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    padding-top: 0;
    z-index: 3;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.9rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: var(--accent-soft);
    color: color-mix(in srgb, var(--accent-strong) 55%, var(--text));
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-title {
    margin: 1rem 0 1rem;
    font-family: 'Cinzel', serif;
    font-size: clamp(2.3rem, 5vw, 4.35rem);
    line-height: 1.02;
    letter-spacing: -0.06em;
    max-width: none;
}

.hero-title-stack {
    position: relative;
    display: inline-block;
    overflow: visible;
    padding: clamp(1.2rem, 3vw, 2rem) clamp(1rem, 2vw, 1.4rem) 0;
}

.hero-vamp-bg {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: auto;
    height: 94%;
    max-width: min(760px, 48vw);
    opacity: 0.88;
    pointer-events: none;
    user-select: none;
    z-index: 2;
    object-fit: contain;
    object-position: center bottom;
    transform: translateX(-50%);
    filter: brightness(1.24) saturate(1.08) drop-shadow(0 24px 48px rgba(0, 0, 0, 0.35));
}

.hero-title-shadow {
    position: absolute;
    inset: 0;
    font-size: clamp(3.4rem, 12vw, 8.5rem);
    font-weight: 900;
    letter-spacing: -0.08em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(245, 158, 11, 0.15);
    transform: translate(8px, 8px);
    user-select: none;
    pointer-events: none;
    z-index: 2;
    filter: drop-shadow(0 0 16px rgba(245, 158, 11, 0.12));
    opacity: 0.6;
}

.hero-title-main {
    position: relative;
    z-index: 3;
    margin: 1.25rem 0 0;
    font-size: clamp(3.4rem, 12vw, 8.5rem);
    font-weight: 900;
    line-height: 0.92;
    letter-spacing: -0.08em;
    text-transform: uppercase;
    background: linear-gradient(180deg, #fb7185 0%, #f43f5e 26%, #e11d48 56%, #9f1239 84%, #4c0519 100%);
    background-size: 100% 160%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow:
        0 0 8px rgba(251, 113, 133, 0.14),
        0 0 16px rgba(225, 29, 72, 0.16),
        0 0 24px rgba(159, 18, 57, 0.12);
    animation: heroTitleFlow 12s ease-in-out infinite;
}

.register-page-shell {
    max-width: 680px;
    margin-top: 120px;
    margin-bottom: 80px;
}

.register-panel {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(7, 7, 7, 0.96) 0%, rgba(16, 12, 10, 0.98) 100%);
    border-top: 2px solid rgba(245, 158, 11, 0.18);
    border-bottom: 2px solid rgba(180, 83, 9, 0.18);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.register-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.08), transparent 26%),
        radial-gradient(circle at bottom left, rgba(180, 83, 9, 0.08), transparent 30%);
    pointer-events: none;
}

.register-form-themed {
    position: relative;
    z-index: 1;
}

.register-form-themed .floating-label-group input,
.register-form-themed .form-control {
    border-radius: 6px;
}

.register-floating > .register-input {
    height: calc(3.75rem + 2px);
    padding: 1.35rem 1rem 0.65rem;
    border-radius: 0;
    border: 1px solid rgba(245, 158, 11, 0.2);
    background: rgba(255, 255, 255, 0.03);
    color: #f3f4f6;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.01);
    transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.register-floating > .register-input::placeholder {
    color: transparent;
}

.register-floating > .register-input:focus,
.register-floating > .register-input:focus-visible {
    border-color: rgba(245, 158, 11, 0.55);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    box-shadow: 0 0 0 0.18rem rgba(245, 158, 11, 0.14);
}

.register-floating > label {
    color: #9b9fa6;
    padding: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.74rem;
    font-weight: 700;
}

.register-floating > .register-input:-webkit-autofill,
.register-floating > .register-input:-webkit-autofill:hover,
.register-floating > .register-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #f3f4f6;
    -webkit-box-shadow: 0 0 0 1000px rgba(21, 18, 16, 0.98) inset;
    transition: background-color 9999s ease-out 0s;
}

.register-submit {
    min-height: 54px;
    margin-top: 0.5rem;
}

.dashboard-shell {
    display: grid;
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
    gap: 1.5rem;
    margin-top: 1.75rem;
}

.dashboard-sidebar-panel,
.dashboard-main-panel,
.dashboard-password-panel,
.character-card {
    background: linear-gradient(180deg, rgba(7, 7, 7, 0.98) 0%, rgba(10, 10, 10, 1) 100%);
    border-top: 2px solid rgba(245, 158, 11, 0.15);
    border-bottom: 2px solid rgba(245, 158, 11, 0.15);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.dashboard-sidebar-panel,
.dashboard-main-panel {
    padding: 1.6rem;
}

.dashboard-sidebar-panel {
    position: sticky;
    top: 104px;
    align-self: start;
}

.dashboard-sidebar-title,
.dashboard-title {
    font-family: 'Cinzel', serif;
    color: #f59e0b;
}

.dashboard-sidebar-title {
    margin: 1rem 0 0.5rem;
    font-size: 1.8rem;
}

.dashboard-sidebar-copy,
.dashboard-subtitle {
    color: var(--text-soft);
    line-height: 1.7;
}

.dashboard-nav-list {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.dashboard-nav-btn {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-soft);
    font-family: 'Cinzel', serif;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: left;
    transition: all 0.25s ease;
}

.dashboard-nav-btn:hover,
.dashboard-nav-btn.active {
    color: #fff;
    border-color: rgba(245, 158, 11, 0.35);
    background: rgba(245, 158, 11, 0.12);
}

.dashboard-hero-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dashboard-eyebrow {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.dashboard-title {
    margin: 0.45rem 0 0.35rem;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.dashboard-tab-content {
    display: block;
}

.dashboard-tab-panel {
    display: none;
}

.dashboard-tab-panel.active {
    display: block;
}

.dashboard-section-header {
    margin-bottom: 1.1rem;
}

.dashboard-character-grid {
    display: grid;
    gap: 1rem;
}

.character-card {
    padding: 1rem 1rem 0.95rem;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

.character-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.38);
}

.character-card-header {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.85rem;
}

.character-avatar {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(245, 158, 11, 0.2);
    background: rgba(255, 255, 255, 0.04);
}

.character-title {
    font-family: 'Cinzel', serif;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
}

.char-status,
.character-level {
    white-space: nowrap;
}

.char-status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    display: inline-block;
}

.status-dot.online {
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.45);
}

.status-dot.offline {
    background: #94a3b8;
}

.status-label {
    color: #d1fae5;
    font-size: 0.85rem;
    font-weight: 700;
}

.status-label.offline {
    color: #cbd5e1;
}

.character-level {
    color: #fbbf24;
    font-weight: 700;
}

.character-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease, padding-top 0.28s ease;
}

.character-card.active .character-details {
    max-height: 560px;
    padding-top: 1rem;
}

.char-detail-card-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: 0.75rem;
}

.char-detail-card {
    padding: 0.85rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
}

.char-detail-label {
    color: var(--text-muted);
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
}

.char-detail-value {
    color: #fff;
    font-weight: 700;
    line-height: 1.45;
    word-break: break-word;
}

.dashboard-password-panel {
    padding: 1.35rem;
}

.dashboard-shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.dashboard-shop-card,
.dashboard-topup-result {
    background: linear-gradient(180deg, rgba(7, 7, 7, 0.98) 0%, rgba(10, 10, 10, 1) 100%);
    border-top: 2px solid rgba(245, 158, 11, 0.15);
    border-bottom: 2px solid rgba(245, 158, 11, 0.15);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.dashboard-shop-card {
    display: grid;
    gap: 1rem;
    padding: 1.25rem;
}

.dashboard-shop-card-top,
.dashboard-topup-result-header,
.dashboard-shop-meta,
.dashboard-topup-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.dashboard-shop-card-top {
    align-items: flex-start;
    flex-wrap: nowrap;
}

.dashboard-shop-card-top > div:first-child {
    min-width: 0;
}

.dashboard-shop-title {
    margin: 0;
    font-family: 'Cinzel', serif;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
}

.dashboard-shop-copy {
    color: var(--text-soft);
    line-height: 1.65;
}

.dashboard-shop-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0.5rem 0.85rem;
    border: 1px solid rgba(245, 158, 11, 0.35);
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    flex: 0 0 auto;
    white-space: nowrap;
}

.dashboard-shop-badge,
.dashboard-shop-badge span,
.dashboard-shop-badge-original {
    color: #ffffff !important;
}

.dashboard-shop-badge-discount {
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}

.dashboard-shop-badge-original {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
    text-decoration: line-through;
}

.dashboard-shop-meta {
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 700;
    justify-content: flex-start;
}

.dashboard-shop-btn,
.dashboard-shop-btn-secondary {
    width: 100%;
}

.dashboard-shop-card .dashboard-shop-btn {
    min-width: 0;
}

.dashboard-topup-links .dashboard-shop-btn,
.dashboard-topup-links .dashboard-shop-btn-secondary {
    flex: 1 1 220px;
    width: auto;
}

.dashboard-topup-result {
    display: grid;
    gap: 1rem;
    margin-top: 1.25rem;
    padding: 1.25rem;
}

.dashboard-password-form {
    max-width: 560px;
}

.dashboard-password-submit {
    min-width: 220px;
}

.dashboard-empty-state {
    margin: 0;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: #f59e0b;
}

.character-card-skeleton {
    cursor: default;
}

.character-card-skeleton:hover {
    transform: none;
}

.skeleton-box,
.dashboard-skeleton-line,
.dashboard-skeleton-pill,
.dashboard-skeleton-level {
    display: inline-block;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0%, rgba(245, 158, 11, 0.18) 50%, rgba(255, 255, 255, 0.06) 100%);
    background-size: 220% 100%;
    animation: rankingLoadingPulse 1.35s ease-in-out infinite;
}

.skeleton-box {
    width: 56px;
    height: 56px;
    border-radius: 8px;
}

.dashboard-skeleton-line {
    width: 100%;
    height: 0.85rem;
}

.dashboard-skeleton-name {
    max-width: 180px;
}

.dashboard-skeleton-pill {
    width: 84px;
    height: 1.9rem;
}

.dashboard-skeleton-level {
    width: 76px;
    height: 1.1rem;
}

.dashboard-skeleton-short {
    max-width: 60%;
}

@media (max-width: 991.98px) {
    .dashboard-shell {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar-panel {
        position: static;
    }

    .dashboard-hero-card,
    .character-card-header {
        grid-template-columns: 1fr;
        display: grid;
    }

    .dashboard-hero-card {
        justify-items: start;
    }
}

.home-ranking-grid {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.home-ranking-card {
    flex: 1 1 320px;
    padding: 0;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: rgba(15, 15, 15, 0.6);
}

.home-ranking-card:hover {
    transform: translateY(-4px);
}

.rank-theme-player {
    border-top: 1px solid rgba(245, 158, 11, 0.3);
    border-bottom: 1px solid rgba(245, 158, 11, 0.3);
}

.rank-theme-player:hover {
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.15);
}

.rank-theme-legion {
    border-top: 1px solid rgba(217, 119, 6, 0.3);
    border-bottom: 1px solid rgba(217, 119, 6, 0.3);
}

.rank-theme-legion:hover {
    box-shadow: 0 12px 28px rgba(217, 119, 6, 0.15);
}

.rank-theme-family {
    border-top: 1px solid rgba(180, 83, 9, 0.3);
    border-bottom: 1px solid rgba(180, 83, 9, 0.3);
}

.rank-theme-family:hover {
    box-shadow: 0 12px 28px rgba(180, 83, 9, 0.15);
}

.home-ranking-card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.25rem 1rem;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.home-ranking-card-title {
    margin: 0;
    font-family: 'Cinzel', serif;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.rank-theme-player .home-ranking-card-title {
    color: #f59e0b;
}

.rank-theme-legion .home-ranking-card-title {
    color: #d97706;
}

.rank-theme-family .home-ranking-card-title {
    color: #b45309;
}

.home-ranking-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.home-ranking-table thead tr {
    background: rgba(255, 255, 255, 0.02);
    text-transform: uppercase;
    font-size: 0.75rem;
    color: #888;
    font-weight: 600;
}

.home-ranking-table th {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.home-ranking-table .rank-col-rank,
.home-ranking-table .rank-col-value {
    padding: 0.75rem 1rem;
}

.home-ranking-table .rank-col-rank {
    width: 50px;
    text-align: center;
}

.home-ranking-table .rank-col-value {
    text-align: right;
}

.home-ranking-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background 0.2s ease;
}

.home-ranking-row:hover {
    background: rgba(255, 255, 255, 0.06) !important;
}

.home-ranking-cell {
    padding: 0.65rem 0.5rem;
    color: #e2e8f0;
    font-size: 0.95rem;
}

.rank-cell-rank {
    width: 50px;
    padding: 0.65rem 1rem;
    text-align: center;
    font-family: 'Cinzel', serif;
    font-weight: 800;
    font-size: 1.1rem;
}

.rank-cell-name {
    font-weight: 500;
}

.rank-name-top {
    color: #fff;
    font-weight: 600;
}

.rank-cell-value {
    padding: 0.65rem 1rem;
    text-align: right;
    color: #d6a24a;
    font-weight: 700;
}

.rank-empty-state {
    padding: 1.4rem 1rem;
    text-align: center;
    color: #9b9fa6;
}

.rank-loading-bar {
    display: inline-block;
    width: 100%;
    height: 0.85rem;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0%, rgba(245, 158, 11, 0.18) 50%, rgba(255, 255, 255, 0.06) 100%);
    background-size: 220% 100%;
    animation: rankingLoadingPulse 1.35s ease-in-out infinite;
}

.rank-loading-rank {
    width: 28px;
}

.rank-loading-value {
    width: 72px;
}

@keyframes rankingLoadingPulse {
    0% {
        background-position: 200% 0;
        opacity: 0.65;
    }
    50% {
        opacity: 1;
    }
    100% {
        background-position: -200% 0;
        opacity: 0.65;
    }
}

@media (max-width: 768px) {
    .hero-title-stack {
        min-height: auto;
        padding: 1rem 0.5rem;
    }

    .hero-vamp-bg {
        width: min(600px, 120vw);
        max-width: none;
        height: 75%;
        opacity: 0.5;
        transform: translateX(-50%);
        bottom: 0;
    }
}

.hero-title-main::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    color: rgba(245, 158, 11, 0.12);
}

@keyframes heroTitleFlow {
    0% {
        background-position: 50% 92%;
    }
    50% {
        background-position: 50% 48%;
    }
    100% {
        background-position: 50% 8%;
    }
}

.hero-title-sub {
    margin-top: 0.9rem;
    font-size: clamp(1rem, 2vw, 1.22rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #fb7185;
    text-shadow: 0 0 12px rgba(225, 29, 72, 0.18);
}

.hero-subtitle-centered {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle,
.section-subtitle,
.footer-copy-text {
    color: var(--text-soft);
    line-height: 1.75;
    font-size: 1.02rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin: 1.75rem 0 1.5rem;
}

.hero-actions-centered {
    justify-content: center;
}

.hero-detail-bar {
    width: 100%;
    padding: 0;
    position: relative;
    z-index: 4;
    background: linear-gradient(180deg, rgba(7, 7, 7, 0.98) 0%, rgba(10, 10, 10, 1) 100%);
    border-top: 2px solid rgba(225, 29, 72, 0.16);
    border-bottom: 2px solid rgba(225, 29, 72, 0.16);
}

.hero-detail-inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
}

.hero-detail-item {
    display: grid;
    gap: 0.85rem;
    place-items: center;
    padding: 2.8rem 1rem;
    text-align: center;
}

.hero-detail-value {
    color: #e11d48;
    font-family: 'Cinzel', serif;
    font-size: clamp(2.4rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 4px 20px rgba(225, 29, 72, 0.34);
}

.hero-detail-label {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.hero-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.hero-meta-card {
    padding: 1rem 1.1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface-strong) 82%, transparent);
}

.hero-meta-label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.hero-visual,
.hero-image-card,
.hero-orb,
.hero-banner-img {
    display: none;
}

.strip-item,
.community-feature {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: auto;
    padding: 0.4rem 0.5rem;
    font-weight: 700;
    color: var(--text-soft);
    text-align: center;
    background: transparent;
    border: none;
    box-shadow: none;
    letter-spacing: 0.04em;
}

.section-features-premium,
.section-quickstart-premium,
.section-ranking-premium,
.section-community-premium,
.container.py-5.main-content {
    margin-top: 1.75rem;
    padding: clamp(1.5rem, 3vw, 2.6rem);
}

.section-title-blend {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.65rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    color: var(--text);
    text-align: center;
}

.section-title-blend::after {
    content: "";
    display: block;
    width: 82px;
    height: 4px;
    margin: 0.85rem auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--accent-strong));
}

.download-page-title {
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.section-subtitle {
    max-width: 760px;
    margin: 0.9rem auto 0;
    text-align: center;
}

.section-heading-row {
    margin-bottom: 1.5rem;
}

.feature-card-list,
.ranking-card-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 1.75rem;
}

.feature-card,
.ranking-card,
.news-card,
.character-card,
.dashboard-sidebar,
.dashboard-content,
.system-req-table,
.eudemon-ranking-table,
.player-ranking-table,
.legion-ranking-table,
.family-ranking-table {
    background: color-mix(in srgb, var(--surface-strong) 94%, transparent);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.feature-card,
.ranking-card,
.news-card,
.character-card {
    border-radius: 10px;
}

.feature-card {
    padding: 1.4rem;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.download-link-list {
    margin-top: 1.4rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.download-link-list-single {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.download-link-btn {
    min-height: 44px;
    min-width: 0;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-align: center;
    padding: 0.6rem 0.9rem;
}

.download-link-wrap {
    margin-top: 1rem;
    border-top: 2px solid rgba(245, 158, 11, 0.15);
    border-bottom: 2px solid rgba(245, 158, 11, 0.15);
    border-left: none;
    border-right: none;
}

.download-link-table {
    margin: 0;
    border-collapse: collapse;
}

.download-link-table td {
    background: rgba(15, 15, 15, 0.92) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    padding: 0.85rem 0.9rem;
    vertical-align: middle;
}

.download-link-cell-btn {
    width: 170px;
    text-align: right;
}

.download-link-cell-btn .download-link-btn {
    width: 100%;
}

.download-link-cell-name {
    color: #f3f4f6 !important;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-align: left;
}

.feature-card:hover,
.ranking-card:hover,
.character-card:hover,
.quick-step-premium:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--accent-strong) 45%, var(--border-strong));
    box-shadow: var(--shadow-md);
}

.feature-icon span {
    display: inline-flex;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: 8px;
    background: var(--accent-soft);
    font-size: 1.7rem;
}

.feature-title,
.ranking-title,
.dashboard-sidebar h5,
.welcome-title {
    color: var(--text);
    font-weight: 800;
}

.feature-title {
    margin-bottom: 0.45rem;
    font-size: 1.1rem;
}

.feature-desc,
.news-desc {
    color: var(--text-soft);
    line-height: 1.7;
}

/* Feature Showcase Zig-Zag Panel */
.feature-showcase-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.section-features-premium {
    background: linear-gradient(180deg, rgba(7, 7, 7, 0.98) 0%, rgba(10, 10, 10, 1) 100%);
    border-top: 2px solid rgba(245, 158, 11, 0.15);
    border-bottom: 2px solid rgba(245, 158, 11, 0.15);
    border-left: none;
    border-right: none;
    border-radius: 0;
}

.section-quickstart-premium {
    background: linear-gradient(180deg, rgba(7, 7, 7, 0.98) 0%, rgba(10, 10, 10, 1) 100%);
    border-top: 2px solid rgba(245, 158, 11, 0.15);
    border-bottom: 2px solid rgba(245, 158, 11, 0.15);
    border-left: none;
    border-right: none;
    border-radius: 0;
}

.section-ranking-premium {
    background: linear-gradient(180deg, rgba(7, 7, 7, 0.98) 0%, rgba(10, 10, 10, 1) 100%);
    border-top: 2px solid rgba(245, 158, 11, 0.15);
    border-bottom: 2px solid rgba(245, 158, 11, 0.15);
    border-left: none;
    border-right: none;
    border-radius: 0;
}

.feature-split-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: center;
}

.feature-split-panel.reverse .feature-split-content {
    order: -1;
}

.feature-split-image {
    position: relative;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease;
}

.feature-split-image img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    opacity: 0.9;
    transition: transform 0.6s ease, opacity 0.6s ease, filter 0.4s ease;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

.feature-placeholder-icon {
    display: none;
}

.feature-split-panel:hover .feature-split-image img {
    transform: scale(1.04);
    opacity: 1;
    filter: drop-shadow(0 15px 30px rgba(245, 158, 11, 0.2));
}

.feature-image-modal {
    --bs-modal-bg: transparent;
}

.feature-image-modal-dialog {
    width: fit-content;
    max-width: 95vw;
    margin-left: auto;
    margin-right: auto;
}

.feature-image-modal-content {
    position: relative;
    display: inline-flex;
    width: auto;
    overflow: visible;
}

.feature-image-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1060;
    min-width: auto;
    padding: 0.65rem 1.15rem;
}

.feature-image-modal-close:hover,
.feature-image-modal-close:focus {
    transform: none;
}

.feature-image-modal-image {
    display: block;
    max-width: min(95vw, 1200px);
    max-height: 90vh;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.45);
}

.feature-split-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.feature-split-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 900;
    color: #f59e0b;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 14px rgba(245, 158, 11, 0.2);
}

.feature-split-desc {
    font-size: 1.05rem;
    color: var(--text-soft);
    line-height: 1.6;
    margin-bottom: 0;
}

.feature-split-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.feature-split-list li {
    position: relative;
    padding-left: 1.6rem;
    color: #e2e8f0;
    font-weight: 700;
    font-size: 1.05rem;
}

.feature-split-list li::before {
    content: "?";
    position: absolute;
    left: 0;
    color: #f59e0b;
    font-size: 1.1rem;
    line-height: 1.35;
}

@media (max-width: 991.98px) {
    .feature-split-panel,
    .feature-split-panel.reverse {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .feature-split-panel.reverse .feature-split-content {
        order: 0;
    }
}

.quick-steps-premium {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr) 48px minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    margin-top: 1.75rem;
}

.quick-step-premium {
    min-height: 170px;
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    text-decoration: none;
    gap: 0.75rem;
    cursor: pointer;
}

button.quick-step-premium {
    width: 100%;
}

.step-number-premium {
    width: 54px;
    height: 54px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 800;
}

.step-desc-premium {
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--text);
}

.quick-arrow {
    width: 100%;
    height: 18px;
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='46' height='18' viewBox='0 0 46 18' fill='none'%3e%3cpath d='M1 9h42M43 9l-7-7M43 9l-7 7' stroke='%2331c48d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e") center/contain no-repeat;
}

.server-update-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1.75rem;
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}

.server-update-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 78px;
    padding: 0.95rem 1.1rem;
    border-radius: 10px;
    border: 1px solid rgba(245, 158, 11, 0.16);
    background:
        linear-gradient(180deg, rgba(7, 7, 7, 0.98) 0%, rgba(10, 10, 10, 1) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02), 0 10px 24px rgba(0, 0, 0, 0.22);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}

.server-update-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(245, 158, 11, 0.08), rgba(245, 158, 11, 0) 26%),
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.06), transparent 34%);
    pointer-events: none;
    opacity: 0.9;
}

.server-update-card::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.65), rgba(245, 158, 11, 0.08) 40%, transparent 80%);
    pointer-events: none;
}

.server-update-card-featured {
    grid-column: 1 / -1;
    min-height: 92px;
    padding: 1rem 1.35rem;
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.18), transparent 24%),
        linear-gradient(135deg, rgba(33, 24, 16, 0.98) 0%, rgba(24, 20, 18, 0.98) 100%);
    border-color: rgba(245, 158, 11, 0.24);
}

.server-update-card-standard {
    min-height: 76px;
}

.server-update-card-expansion {
    min-height: 84px;
}

.server-update-card-highlight {
    background:
        radial-gradient(circle at top right, rgba(251, 191, 36, 0.12), transparent 30%),
        linear-gradient(180deg, rgba(7, 7, 7, 0.98) 0%, rgba(10, 10, 10, 1) 100%);
}

.server-update-card:hover {
    transform: translateY(-3px);
    border-color: rgba(245, 158, 11, 0.24);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28), 0 0 12px rgba(245, 158, 11, 0.06);
}

.server-update-title {
    position: relative;
    z-index: 1;
    margin: 0;
    font-family: 'Cinzel', serif;
    width: 100%;
    text-align: center;
    max-width: none;
    font-size: clamp(1rem, 1.5vw, 1.16rem);
    font-weight: 800;
    color: var(--text);
    letter-spacing: 0.015em;
    text-shadow: 0 2px 14px rgba(245, 158, 11, 0.08);
}

.server-update-card-featured .server-update-title {
    font-size: clamp(1.12rem, 1.9vw, 1.32rem);
}

.server-update-card-expansion .server-update-title,
.server-update-card-highlight .server-update-title {
    color: #f8fafc;
}

.ranking-card {
    padding: 1.4rem;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ranking-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1rem;
    font-size: 1.16rem;
}

.ranking-icon {
    font-size: 1.2rem;
}

.ranking-table {
    width: 100%;
}

.ranking-header,
.ranking-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.9rem 0.85rem;
    border-radius: 8px;
}

.ranking-header {
    margin-bottom: 0.55rem;
    background: var(--bg-soft);
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ranking-row {
    margin-bottom: 0.45rem;
    color: var(--text);
    background: color-mix(in srgb, var(--surface-strong) 90%, transparent);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.ranking-row:hover {
    background: var(--bg-soft);
    transform: translateX(3px);
}

.col-rank {
    width: 46px;
    min-width: 46px;
    text-align: center;
    font-weight: 700;
}

.col-name {
    flex: 1 1 auto;
    font-weight: 700;
}

.col-lv,
.col-funds,
.col-members {
    min-width: 74px;
    text-align: right;
    font-weight: 800;
    color: color-mix(in srgb, var(--accent-strong) 45%, var(--text));
}

.rank-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.community-showcase {
    position: relative;
    display: grid;
    grid-template-columns: minmax(320px, 560px) minmax(340px, 390px);
    justify-content: center;
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    padding: clamp(2rem, 4vw, 3.5rem) clamp(2.5rem, 6vw, 5rem);
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.06), transparent 16%),
        radial-gradient(circle at 82% 20%, rgba(245, 158, 11, 0.14), transparent 24%),
        radial-gradient(circle at 78% 78%, rgba(124, 58, 237, 0.18), transparent 28%),
        linear-gradient(135deg, rgba(19, 14, 35, 0.98) 0%, rgba(31, 23, 64, 0.96) 52%, rgba(52, 33, 88, 0.96) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

.community-showcase::before,
.community-showcase::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    z-index: 0;
}

.community-showcase::before {
    width: 360px;
    height: 360px;
    top: -160px;
    right: -120px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.28) 0%, rgba(99, 102, 241, 0) 72%);
}

.community-showcase::after {
    width: 300px;
    height: 300px;
    bottom: -160px;
    left: -110px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.18) 0%, rgba(245, 158, 11, 0) 70%);
}

.community-panel,
.community-copy {
    position: relative;
    z-index: 1;
}

.community-copy {
    order: 1;
}

.community-widget-panel {
    order: 2;
}

.community-copy-premium {
    width: 100%;
    max-width: 560px;
}

.community-copy .section-title-blend {
    text-align: left;
}

.community-copy .section-title-blend::after {
    margin-left: 0;
    margin-right: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(192, 132, 252, 0.7));
}

.community-badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.82);
}

.community-title {
    color: #fff;
    text-shadow: 0 6px 20px rgba(0, 0, 0, 0.24);
}

.community-lead,
.community-subcopy {
    text-align: left;
    color: rgba(255, 255, 255, 0.82);
}

.community-lead {
    margin: 1rem 0 0;
    font-size: 1.12rem;
    font-weight: 600;
    line-height: 1.8;
}

.community-subcopy {
    margin: 1rem 0 0;
    max-width: 580px;
    line-height: 1.85;
}

.community-widget-panel {
    display: flex;
    justify-content: center;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.community-widget-frame {
    width: min(100%, 380px);
    padding: 0.65rem;
    border-radius: 16px;
    background: rgba(12, 12, 18, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.36);
}

.discord-frame {
    width: 100%;
    max-width: 380px;
    height: 500px;
    border: none;
    border-radius: 14px;
    display: block;
    background: #111827;
}

.community-invite-btn {
    margin-top: 1.4rem;
    min-width: 210px;
    background: rgba(255, 255, 255, 0.96);
    color: #312e81;
    border-color: rgba(255, 255, 255, 0.9);
    font-weight: 800;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.community-invite-btn:hover,
.community-invite-btn:focus {
    color: #1e1b4b;
    background: #fff;
    border-color: #fff;
}

.site-footer {
    margin-top: auto;
    border-top: 1px solid rgba(245, 158, 11, 0.2);
    background: linear-gradient(180deg, rgba(15, 15, 15, 0.95) 0%, rgba(7, 7, 7, 0.98) 100%);
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(245, 158, 11, 0.4) 50%, transparent 100%);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2.5rem 0 2rem;
    text-align: center;
}

@media (min-width: 992px) {
    .footer-inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        text-align: left;
        align-items: center;
    }
}

.footer-brand {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #f59e0b;
    letter-spacing: 0.05em;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
    margin-bottom: 0.25rem;
}

.footer-copy-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin: 0;
}

.footer-copy a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.footer-copy a:hover {
    color: #f59e0b;
    text-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.footer-copy {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    white-space: nowrap;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.footer-visitor-copy {
    color: rgba(255, 255, 255, 0.5);
}

@media (min-width: 992px) {
    .footer-copy {
        text-align: right;
    }
}

.modal-login-custom {
    --bs-modal-bg: transparent;
    --bs-modal-border-color: transparent;
}

.login-modal-dialog {
    max-width: 520px;
}

.modal-login-custom .modal-content {
    position: relative;
    border-radius: 0;
    border-top: 2px solid rgba(245, 158, 11, 0.18);
    border-bottom: 2px solid rgba(180, 83, 9, 0.18);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, rgba(7, 7, 7, 0.96) 0%, rgba(16, 12, 10, 0.98) 100%);
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.modal-login-custom .modal-content::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.08), transparent 26%), radial-gradient(circle at bottom left, rgba(180, 83, 9, 0.08), transparent 30%);
    pointer-events: none;
}

.modal-login-custom .modal-header,
.modal-login-custom .modal-body {
    position: relative;
    z-index: 1;
    padding-left: 1.75rem;
    padding-right: 1.75rem;
}

.modal-login-custom .modal-header {
    align-items: center;
    justify-content: flex-end;
    padding-top: 1.1rem;
    padding-bottom: 0;
}

.modal-login-custom .modal-body {
    padding-bottom: 2.2rem;
}

.login-modal-title {
    font-family: 'Cinzel', serif;
    color: #fff7d6;
}

.login-modal-copy {
    color: var(--text-soft);
    line-height: 1.75;
}

.modal-theme-close {
    opacity: 1;
    filter: brightness(0) invert(1);
    box-shadow: none !important;
    width: 2.15rem;
    height: 2.15rem;
    padding: 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.08);
    background-size: 0.75rem;
}

.modal-theme-close:hover,
.modal-theme-close:focus {
    opacity: 1;
    transform: none;
    filter: brightness(0) invert(1);
    border-color: rgba(255, 255, 255, 0.95);
    background-color: rgba(255, 255, 255, 0.14);
}

.modal-login-custom .nav-tabs {
    gap: 0.5rem;
}

.modal-login-custom .nav-link {
    border: 1px solid transparent !important;
    border-radius: 6px !important;
    color: var(--text-soft) !important;
    font-weight: 700;
    background: transparent !important;
}

.modal-login-custom .nav-link.active {
    color: var(--text) !important;
    border-color: var(--border) !important;
    background: var(--bg-soft) !important;
}

.floating-label-group {
    position: relative;
    margin-bottom: 1rem;
}

.floating-label-group input,
#change-password-form input,
.modal-login-custom .form-control {
    width: 100%;
    border-radius: 6px;
    border: 1px solid var(--border-strong);
    background: var(--surface-muted);
    color: var(--text);
    padding: 1rem 1rem 0.95rem;
    font-size: 1rem;
    box-shadow: none;
}

.floating-label-group input:focus,
#change-password-form input:focus,
.modal-login-custom .form-control:focus {
    border-color: rgba(255, 255, 255, 0.22);
    background: var(--surface-strong);
    color: var(--text);
    box-shadow: 0 0 0 0.18rem rgba(255, 255, 255, 0.05);
}

.floating-label-group label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 0.25rem;
    background: transparent;
    color: var(--text-muted);
    pointer-events: none;
    transition: all 0.18s ease;
}

.modal-login-custom .floating-label-group label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.74rem;
    font-weight: 700;
}

.modal-login-custom .btn-login-modal {
    min-height: 56px;
    font-size: 0.92rem;
}

.login-modal-secondary-action {
    display: flex;
    justify-content: center;
}

.btn-login-modal-secondary {
    min-height: 42px;
    padding: 0.72rem 1.2rem;
    margin-bottom: 0.4rem;
    font-size: 0.76rem;
    letter-spacing: 0.1em;
}

.floating-label-group input:focus + label,
.floating-label-group input:not(:placeholder-shown) + label {
    top: 0;
    transform: translateY(-50%);
    background: color-mix(in srgb, var(--surface-strong) 96%, transparent);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.82rem;
    font-weight: 700;
}

.captcha-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.captcha-row img {
    height: 48px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--surface-strong);
}

.btn-outline-secondary {
    border-radius: 6px;
    border-color: var(--border-strong);
    color: var(--text-soft);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    background: var(--bg-soft);
    border-color: var(--border-strong);
    color: var(--text);
}

.status-floating-box {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: grid;
    gap: 0.65rem;
    min-width: 190px;
    padding: 1rem 1.05rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface-strong) 92%, transparent);
    box-shadow: var(--shadow-md);
    z-index: 1030;
}

.status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.9rem;
}

.status-label {
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.status-value {
    font-weight: 800;
}

.status-online {
    color: #16a34a;
}

.status-offline {
    color: #dc2626;
}

.system-req-table,
.eudemon-ranking-table,
.player-ranking-table,
.legion-ranking-table,
.family-ranking-table {
    width: 100%;
    overflow: hidden;
    border-radius: 24px;
    border-collapse: separate;
    border-spacing: 0;
}

.system-req-table th,
.eudemon-ranking-table th,
.player-ranking-table th,
.legion-ranking-table th,
.family-ranking-table th {
    background: var(--bg-soft) !important;
    color: var(--text) !important;
    border: none !important;
    padding: 1rem 0.85rem;
    font-weight: 800;
}

.system-req-table td,
.eudemon-ranking-table td,
.player-ranking-table td,
.legion-ranking-table td,
.family-ranking-table td {
    background: color-mix(in srgb, var(--surface-strong) 96%, transparent) !important;
    color: var(--text-soft) !important;
    border-color: var(--border) !important;
    padding: 0.95rem 0.85rem;
    vertical-align: middle;
}

.system-req-table tbody tr:hover td,
.eudemon-ranking-table tbody tr:hover td,
.player-ranking-table tbody tr:hover td,
.legion-ranking-table tbody tr:hover td,
.family-ranking-table tbody tr:hover td {
    background: var(--bg-soft) !important;
}

.download-system-wrap {
    margin-top: 1.4rem;
    border-top: 2px solid rgba(245, 158, 11, 0.15);
    border-bottom: 2px solid rgba(245, 158, 11, 0.15);
    border-left: none;
    border-right: none;
    border-radius: 0;
    background: linear-gradient(180deg, rgba(7, 7, 7, 0.98) 0%, rgba(10, 10, 10, 1) 100%);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.download-system-table {
    margin-bottom: 0;
    border-radius: 0;
    border-left: none !important;
    border-right: none !important;
}

.download-system-table th {
    background: rgba(20, 20, 20, 0.98) !important;
    color: var(--text) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.download-system-table td {
    background: rgba(15, 15, 15, 0.92) !important;
    color: #d4d4d8 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.download-system-table td:first-child {
    color: var(--text) !important;
    font-weight: 700;
    text-align: center;
}

.download-system-table th:first-child,
.download-system-table td:first-child {
    border-left: none !important;
}

.download-system-table th:last-child,
.download-system-table td:last-child {
    border-right: none !important;
}

.download-system-table tbody tr:hover td {
    background: rgba(28, 28, 28, 0.95) !important;
}

.rank-icon-crown {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.dashboard-container {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 1.4rem;
    margin-top: 1.75rem;
    padding: 1.5rem;
}

.dashboard-sidebar,
.dashboard-content {
    border-radius: 24px;
    padding: 1.35rem;
}

.dashboard-sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.dashboard-sidebar a {
    display: block;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    color: var(--text-soft);
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
}

.dashboard-sidebar a:hover,
.dashboard-sidebar a.active {
    background: var(--accent-soft);
    color: var(--text);
}

.dashboard-content .tab-content > div {
    display: none;
}

.dashboard-content .tab-content > div.active {
    display: block;
}

.welcome-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.welcome-title {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.vip-level-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    font-weight: 800;
}

.vip0 { color: var(--text-soft); }
.vip1 { color: #2563eb; }
.vip2 { color: #16a34a; }
.vip3 { color: #7c3aed; }
.vip4 { color: #d97706; }
.vip5 { color: #dc2626; }
.vip6 { color: #0891b2; }
.vip7 { color: #ca8a04; }

.character-card-list {
    display: grid;
    gap: 1rem;
}

.character-card {
    padding: 1.15rem;
    cursor: pointer;
}

.character-card-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.character-avatar {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    object-fit: cover;
}

.character-title {
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--text);
}

.char-status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--text-soft);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #94a3b8;
}

.status-dot.online {
    background: #22c55e;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.4);
}

.status-dot.offline {
    background: #cbd5e1;
}

.character-level {
    margin-left: auto;
    font-weight: 800;
    color: color-mix(in srgb, var(--accent-strong) 45%, var(--text));
}

.character-details {
    display: none;
    margin-top: 1rem;
}

.character-card.active .character-details {
    display: block;
}

.char-detail-card-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.char-detail-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
}

.char-detail-label {
    color: var(--text-muted);
    font-weight: 700;
}

.char-detail-value {
    color: var(--text);
    font-weight: 700;
    text-align: right;
}

.alert {
    border-radius: 18px;
    border: 1px solid var(--border);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
}

@media (max-width: 1100px) {
    .feature-card-list,
    .ranking-card-list,
    .server-update-grid,
    .section-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .server-update-card-featured {
        grid-column: 1 / -1;
    }

    .community-showcase,
    .landing-hero,
    .footer-inner,
    .dashboard-container {
        grid-template-columns: 1fr;
    }

    .footer-links {
        justify-content: flex-start;
    }

    .community-widget-panel {
        justify-content: flex-end;
    }
}

@media (max-width: 991.98px) {
    .navbar-nav {
        padding-top: 1rem;
        align-items: stretch !important;
    }

    .nav-cta-item {
        margin-top: 0.5rem;
    }

    .navbar-custom .container {
        width: calc(100% - 18px);
    }

    .status-floating-box {
        right: 14px;
        bottom: 14px;
    }
}

@media (max-width: 768px) {
    .main-content {
        width: min(100%, calc(100% - 20px));
        padding-top: 100px;
        padding-bottom: 40px;
    }

    .main-content.main-content-home {
        margin-top: 0;
        padding-top: 0;
    }

    .hero-title {
        max-width: none;
    }

    .hero-meta-grid,
    .feature-card-list,
    .ranking-card-list,
    .server-update-grid,
    .char-detail-card-list {
        grid-template-columns: 1fr;
    }

    .server-update-card,
    .server-update-card-featured,
    .server-update-card-standard,
    .server-update-card-expansion,
    .server-update-card-highlight {
        grid-column: auto;
        min-height: 90px;
        padding: 1rem 1.1rem;
    }

    .quick-steps-premium {
        grid-template-columns: 1fr;
    }

    .quick-arrow {
        width: 18px;
        height: 40px;
        justify-self: center;
        transform: rotate(90deg);
    }

    .quick-step-premium {
        min-height: auto;
    }

    .footer-copy {
        white-space: normal;
    }

    .community-showcase {
        padding: 1.5rem;
    }

    .community-widget-panel {
        justify-content: center;
    }

    .community-copy-premium {
        max-width: none;
    }
}

@media (max-width: 576px) {
    .section-features-premium,
    .section-quickstart-premium,
    .section-ranking-premium,
    .section-community-premium,
    .container.py-5.main-content,
    .dashboard-container {
        border-radius: 22px;
    }

    .landing-hero {
        border-radius: 0;
    }

    .landing-hero-bg {
        transform: scale(1.02);
    }

    .landing-hero {
        max-width: 100vw;
    }

    .floating-site-tools,
    .hero-actions,
    .captcha-row,
    .community-feature-list {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-title-shadow {
        transform: translate(6px, 6px);
    }

    .btn-hero-primary,
    .btn-hero-secondary,
    .btn-login,
    .modal-login-custom .btn-login-modal {
        width: 100%;
    }

    .character-card-header {
        align-items: flex-start;
    }

    .character-level {
        margin-left: 0;
    }

    .hero-detail-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-detail-item {
        padding: 2.2rem 0.85rem;
    }
}

:root,
html[data-theme="dark"] {
    --bg: #0f0506;
    --bg-top: #1d0709;
    --bg-bottom: #040205;
    --bg-elevated: #160709;
    --bg-soft: #210b0e;
    --bg-glow-right: rgba(220, 38, 38, 0.12);
    --bg-glow-left: rgba(185, 28, 28, 0.09);
    --surface: rgba(22, 9, 11, 0.94);
    --surface-strong: #17080a;
    --surface-muted: #201012;
    --accent: #b91c1c;
    --accent-strong: #dc2626;
}

body {
    background:
        radial-gradient(circle at top right, rgba(220, 38, 38, 0.12), transparent 26%),
        radial-gradient(circle at top left, rgba(185, 28, 28, 0.09), transparent 30%),
        radial-gradient(circle at 50% -8%, rgba(248, 113, 113, 0.07), transparent 24%),
        linear-gradient(180deg, #1b0809 0%, #150709 18%, #0f0607 42%, #080405 72%, #040205 100%);
}

.ash-particle {
    background: radial-gradient(circle, rgba(248, 113, 113, 0.96) 0%, rgba(220, 38, 38, 0.6) 38%, rgba(255, 255, 255, 0) 78%);
    box-shadow: 0 0 8px rgba(220, 38, 38, 0.24);
}

.navbar-custom,
.section-features-premium,
.section-quickstart-premium,
.section-ranking-premium,
.container.py-5.main-content.download-feature-shell,
.container.py-5.main-content.ranking-feature-shell,
.register-panel,
.dashboard-sidebar-panel,
.dashboard-main-panel,
.dashboard-password-panel,
.dashboard-shop-card,
.dashboard-topup-result,
.download-link-wrap,
.download-system-wrap,
.site-footer,
.modal-login-custom .modal-content,
.premium-ranking-container {
    border-top-color: rgba(220, 38, 38, 0.24) !important;
    border-bottom-color: rgba(185, 28, 28, 0.16) !important;
}

.navbar-brand.brand-gradient {
    background: linear-gradient(180deg, #7f1d1d 0%, #b91c1c 38%, #dc2626 68%, #f87171 100%);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 0 14px rgba(220, 38, 38, 0.3);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active,
.footer-copy a:hover,
.btn-login,
.btn-hero-primary,
.modal-login-custom .btn-login-modal,
.footer-brand,
.hero-detail-value,
.dashboard-sidebar-title,
.dashboard-title,
.dashboard-shop-badge,
.rank-theme-player .home-ranking-card-title,
.rank-theme-family .home-ranking-card-title,
.community-copy .section-title-blend,
.rank-cell-value {
    color: #dc2626 !important;
}

.footer-copy .footer-visitor-copy {
    color: inherit !important;
}

.btn-login,
.btn-hero-primary,
.modal-login-custom .btn-login-modal,
.dashboard-shop-badge,
.navbar-toggler {
    border-color: rgba(220, 38, 38, 0.44) !important;
    background: rgba(220, 38, 38, 0.1) !important;
}

.btn-login:hover,
.btn-hero-primary:hover,
.modal-login-custom .btn-login-modal:hover,
.btn-login:focus,
.btn-hero-primary:focus,
.modal-login-custom .btn-login-modal:focus,
.dashboard-nav-btn:hover,
.dashboard-nav-btn.active,
.community-invite-btn:hover,
.community-invite-btn:focus {
    border-color: #dc2626 !important;
    background: rgba(220, 38, 38, 0.16) !important;
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.24) !important;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.28);
}

.hero-title-shadow {
    -webkit-text-stroke: 1px rgba(220, 38, 38, 0.2);
    filter: drop-shadow(0 0 16px rgba(220, 38, 38, 0.18));
}

.hero-title-main {
    background: linear-gradient(180deg, #7f1d1d 0%, #991b1b 22%, #b91c1c 48%, #dc2626 74%, #f87171 100%);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow:
        0 0 8px rgba(248, 113, 113, 0.18),
        0 0 16px rgba(239, 68, 68, 0.2),
        0 0 24px rgba(185, 28, 28, 0.16);
}

.hero-title-main::after {
    color: rgba(220, 38, 38, 0.14);
}

.hero-title-sub,
.character-level,
.dashboard-shop-badge-original,
.server-update-card-featured .server-update-title,
.server-update-card-expansion .server-update-title,
.server-update-card-highlight .server-update-title,
.rank-theme-legion .home-ranking-card-title {
    color: #f87171 !important;
}

.hero-badge,
.community-badge,
.char-status,
.char-detail-card,
.server-update-card,
.home-ranking-card,
.home-ranking-card-header,
.hero-detail-bar,
.footer-copy-text,
.community-widget-frame {
    border-color: rgba(220, 38, 38, 0.16) !important;
}

.hero-badge,
.community-badge,
.dashboard-shop-badge,
.server-update-card,
.home-ranking-row:hover,
.hero-detail-bar,
.home-ranking-card-header,
.quick-step-premium:hover {
    background-color: rgba(220, 38, 38, 0.08) !important;
}

.footer-copy,
.footer-visitor-copy {
    background: transparent !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.45) !important;
    box-shadow: none !important;
}

.footer-copy a,
.footer-copy a:hover {
    color: rgba(255, 255, 255, 0.6) !important;
    text-shadow: none !important;
}

.modal-login-custom .form-control:focus,
.modal-login-custom .floating-label-group input:focus {
    border-color: rgba(255, 255, 255, 0.22) !important;
    box-shadow: 0 0 0 0.18rem rgba(255, 255, 255, 0.05) !important;
}

.modal-login-custom .floating-label-group input:focus + label,
.modal-login-custom .floating-label-group input:not(:placeholder-shown) + label {
    color: rgba(255, 255, 255, 0.82) !important;
}

.rank-theme-player,
.rank-theme-legion,
.rank-theme-family {
    border-top-color: rgba(220, 38, 38, 0.24) !important;
    border-bottom-color: rgba(185, 28, 28, 0.16) !important;
}

.rank-theme-player:hover,
.rank-theme-legion:hover,
.rank-theme-family:hover {
    box-shadow: 0 12px 28px rgba(220, 38, 38, 0.18) !important;
}

.section-title-blend::after,
.community-copy .section-title-blend::after,
.site-footer::before {
    background: linear-gradient(90deg, rgba(248, 113, 113, 0.95), rgba(220, 38, 38, 0.8)) !important;
}

.feature-split-panel:hover .feature-split-image img {
    filter: drop-shadow(0 15px 30px rgba(220, 38, 38, 0.22));
}

.community-showcase {
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.05), transparent 16%),
        radial-gradient(circle at 82% 20%, rgba(220, 38, 38, 0.14), transparent 24%),
        radial-gradient(circle at 78% 78%, rgba(185, 28, 28, 0.16), transparent 28%),
        linear-gradient(135deg, rgba(22, 8, 10, 0.98) 0%, rgba(33, 10, 12, 0.96) 52%, rgba(48, 12, 15, 0.96) 100%);
}

.community-invite-btn {
    color: #fdf2f8;
    background: rgba(220, 38, 38, 0.2);
    border-color: rgba(248, 113, 113, 0.38);
    box-shadow: 0 18px 36px rgba(220, 38, 38, 0.18);
}

.quick-arrow {
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='46' height='18' viewBox='0 0 46 18' fill='none'%3e%3cpath d='M1 9h42M43 9l-7-7M43 9l-7 7' stroke='%23dc2626' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e") center/contain no-repeat;
}

.dashboard-main-panel .dashboard-title {
    color: #ffffff !important;
}

.dashboard-sidebar-title {
    color: #ffffff !important;
}

.custom-updates-container .feature-split-title,
.custom-updates-container .feature-split-title.mb-2,
.custom-updates-container h3.feature-split-title {
    color: #ffffff !important;
}

.section-features-premium .feature-split-title,
.hero-copy .hero-badge {
    color: #ffffff !important;
}

.hero-badge,
.btn-hero-secondary {
    border-color: rgba(255, 255, 255, 0.42) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
}

.btn-hero-secondary:hover,
.btn-hero-secondary:focus {
    border-color: rgba(255, 255, 255, 0.68) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

.rank-theme-player .home-ranking-card-title,
.rank-theme-legion .home-ranking-card-title,
.rank-theme-family .home-ranking-card-title {
    color: #ffffff !important;
}

.alert-warning,
.dashboard-empty-state {
    background: rgba(220, 38, 38, 0.12) !important;
    border-color: rgba(220, 38, 38, 0.24) !important;
    color: #fca5a5 !important;
}

.vip4,
.vip7 {
    color: #dc2626;
}

.feature-split-title {
    color: #f87171;
    text-shadow: 0 0 14px rgba(220, 38, 38, 0.18);
}

.feature-split-list li::before {
    color: #dc2626;
}

.skeleton-box,
.dashboard-skeleton-line,
.dashboard-skeleton-pill,
.dashboard-skeleton-level,
.rank-loading-bar {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0%, rgba(220, 38, 38, 0.22) 45%, rgba(248, 113, 113, 0.18) 60%, rgba(255, 255, 255, 0.06) 100%) !important;
}



