:root {
    --bg: #03070f;
    --bg-soft: #081120;
    --surface: rgba(7, 13, 28, 0.72);
    --surface-strong: rgba(8, 15, 31, 0.88);
    --line: rgba(120, 180, 255, 0.16);
    --line-strong: rgba(130, 210, 255, 0.34);
    --text: #edf7ff;
    --muted: #96a9c3;
    --accent: #72deff;
    --accent-2: #3b78ff;
    --shadow: 0 40px 120px rgba(0, 0, 0, 0.45);
    --radius: 28px;
    --radius-sm: 20px;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(26px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeRight {
    from {
        opacity: 0;
        transform: translateX(-28px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes floatGlow {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(0, -10px, 0) scale(1.015);
    }
}

@keyframes sheen {
    0% {
        transform: translateX(-135%) skewX(-20deg);
    }
    100% {
        transform: translateX(185%) skewX(-20deg);
    }
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Outfit", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 0%, rgba(41, 112, 255, 0.18), transparent 28%),
        radial-gradient(circle at 82% 10%, rgba(67, 214, 255, 0.14), transparent 24%),
        linear-gradient(180deg, #02050b 0%, #07101d 45%, #03070f 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

body.terms-required {
    overflow: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(99, 151, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 151, 255, 0.055) 1px, transparent 1px);
    background-size: 140px 140px;
    mask-image: linear-gradient(180deg, rgba(255, 255, 255, 0.6), transparent 82%);
    animation: floatGlow 14s ease-in-out infinite;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(1, 4, 10, 0.06), rgba(1, 4, 10, 0.24));
}

main::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 74%, rgba(55, 157, 255, 0.1), transparent 22%),
        radial-gradient(circle at 82% 56%, rgba(61, 203, 255, 0.08), transparent 20%);
    opacity: 0.9;
}

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

img {
    max-width: 100%;
    display: block;
}

main {
    display: grid;
    gap: 56px;
    padding: 20px 0 72px;
}

.site-shell {
    width: min(1400px, calc(100% - 48px));
    margin: 0 auto;
}

.topbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 10px 0 8px;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding-left: max(24px, calc((100vw - 1400px) / 2 + 24px));
    padding-right: max(24px, calc((100vw - 1400px) / 2 + 24px));
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background:
        linear-gradient(180deg, rgba(4, 10, 20, 0.92), rgba(4, 10, 20, 0.62)),
        linear-gradient(90deg, rgba(44, 112, 255, 0.06), rgba(93, 223, 255, 0.04), rgba(44, 112, 255, 0.06));
    border-bottom: 1px solid rgba(115, 180, 255, 0.12);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
    animation: fadeUp 0.6s ease-out both;
}

.brand {
    display: inline-flex;
    align-items: center;
}

.brand-logo {
    width: min(280px, 22vw);
    min-width: 150px;
    object-fit: contain;
    filter: drop-shadow(0 0 24px rgba(108, 223, 255, 0.24));
    transition: transform 0.25s ease, filter 0.25s ease;
}

.brand:hover .brand-logo {
    transform: translateY(-1px) scale(1.015);
    filter: drop-shadow(0 0 30px rgba(108, 223, 255, 0.32));
}

.nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
}

.nav-toggle {
    display: none;
}

.nav-toggle svg {
    width: 20px;
    height: 20px;
    stroke: #e7f5ff;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav a:not(.button) {
    position: relative;
    color: #d7e7ff;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    font-size: 0.95rem;
    padding: 10px 2px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav a:not(.button)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(114, 222, 255, 0.95), transparent);
    transform: scaleX(0.2);
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav a:not(.button):hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.nav a:not(.button):hover::after {
    transform: scaleX(1);
    opacity: 1;
}

.brand strong,
h1,
h2,
h3 {
    font-family: "Orbitron", sans-serif;
    letter-spacing: 0.03em;
}

.profile-link,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.button:hover,
.profile-link:hover {
    transform: translateY(-2px);
}

.button,
.profile-link {
    cursor: pointer;
}

.button-primary {
    color: #02111d;
    background: linear-gradient(135deg, #69d7ff, #9ef2ff 55%, #c7fbff);
    box-shadow: 0 14px 34px rgba(92, 225, 255, 0.22);
    border-color: rgba(180, 245, 255, 0.35);
}

.button-success {
    color: #02111d;
    background: linear-gradient(135deg, #4affd0, #64ffd8 55%, #a8ffeb);
    box-shadow: 0 14px 34px rgba(74, 255, 208, 0.22);
    border-color: rgba(74, 255, 208, 0.35);
}

.button-danger {
    color: #fff;
    background: linear-gradient(135deg, #ff5c5c, #ff7676 55%, #ff9e9e);
    box-shadow: 0 14px 34px rgba(255, 92, 92, 0.22);
    border-color: rgba(255, 92, 92, 0.35);
}

.button-secondary {
    background: linear-gradient(135deg, rgba(31, 79, 188, 0.34), rgba(53, 209, 255, 0.14));
    border-color: rgba(114, 191, 255, 0.34);
}

.button-ghost,
.button-login,
.profile-link {
    background: rgba(8, 15, 31, 0.62);
    border-color: rgba(109, 162, 255, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
    color: #fff;
}

.button-ghost:hover {
    background: rgba(114, 222, 255, 0.1);
    color: var(--accent);
    border-color: var(--accent);
}

.card-actions .button,
.store-card .button {
    min-height: 44px;
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.card-actions .button-primary,
.store-card .button-primary {
    position: relative;
    overflow: hidden;
}

.card-actions .button-primary::after,
.store-card .button-primary::after,
.hero-actions .button-primary::after {
    content: "";
    position: absolute;
    top: -20%;
    bottom: -20%;
    width: 36%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    animation: sheen 3.6s ease-in-out infinite;
    pointer-events: none;
}

.card-actions .button-primary::before,
.store-card .button-primary::before {
    content: "";
    position: absolute;
    inset: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 42%);
    clip-path: inherit;
    pointer-events: none;
}

.card-actions .button-ghost,
.store-card .button-ghost {
    background: linear-gradient(180deg, rgba(8, 15, 31, 0.88), rgba(7, 14, 30, 0.74));
    border-color: rgba(112, 178, 255, 0.18);
}

.button-login {
    min-width: 154px;
}

.profile-chip {
    display: flex;
    justify-content: flex-end;
    min-width: 170px;
}

.profile-link img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.button-small {
    min-height: 36px;
    padding: 0 14px;
    font-size: 0.84rem;
}

.button-block {
    width: 100%;
}

.hero,
.section-grid,
.queue-layout,
.support-layout,
.account-layout {
    display: grid;
    gap: 24px;
}

.hero {
    position: relative;
    grid-template-columns: 1fr;
    min-height: 560px;
    padding: 42px 46px;
    border-radius: 0;
    overflow: hidden;
    border: 1px solid rgba(116, 182, 255, 0.16);
    background:
        linear-gradient(120deg, rgba(6, 13, 28, 0.9) 0%, rgba(6, 13, 28, 0.5) 34%, rgba(6, 13, 28, 0.2) 52%, rgba(6, 13, 28, 0.8) 100%);
    box-shadow: var(--shadow);
    clip-path: polygon(0 0, calc(100% - 78px) 0, 100% 84px, 100% 100%, 72px 100%, 0 calc(100% - 78px));
    animation: fadeUp 0.8s ease-out both;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 16px;
    border-radius: 0;
    border: 1px solid rgba(115, 194, 255, 0.12);
    pointer-events: none;
    clip-path: polygon(0 0, calc(100% - 54px) 0, 100% 58px, 100% 100%, 58px 100%, 0 calc(100% - 54px));
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 68% 28%, rgba(118, 228, 255, 0.16), transparent 16%),
        radial-gradient(circle at 26% 18%, rgba(91, 135, 255, 0.18), transparent 24%);
    pointer-events: none;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 13, 0.92) 0%, rgba(2, 6, 13, 0.62) 35%, rgba(2, 6, 13, 0.24) 58%, rgba(2, 6, 13, 0.86) 100%),
        url("https://images.unsplash.com/photo-1512453979798-5ea266f8880c?auto=format&fit=crop&w=1800&q=80") center right/cover;
    transform: scale(1.02);
    animation: floatGlow 16s ease-in-out infinite;
}

.hero-copy,
.hero-visual {
    position: relative;
    z-index: 1;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 760px;
    gap: 14px;
    animation: fadeRight 0.9s ease-out both;
}

.hero-wordmark {
    width: min(500px, 100%);
    margin: 0;
    filter: drop-shadow(0 0 38px rgba(92, 223, 255, 0.2));
    transition: transform 0.35s ease, filter 0.35s ease;
}

.hero:hover .hero-wordmark {
    transform: translateY(-2px) scale(1.01);
    filter: drop-shadow(0 0 46px rgba(92, 223, 255, 0.28));
}

.eyebrow {
    display: inline-block;
    color: var(--accent);
    font-size: 0.75rem;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

h1 {
    margin: 0;
    font-size: clamp(2.2rem, 3.8vw, 3.8rem);
    line-height: 1.06;
    max-width: 720px;
    text-transform: uppercase;
}

.page-head h1 {
    font-size: clamp(2rem, 3.8vw, 3.2rem);
}

p {
    color: var(--muted);
    font-size: 1.03rem;
    line-height: 1.78;
}

.hero-copy > p {
    max-width: 640px;
    margin: 0;
}

.hero-actions,
.card-actions,
.badges {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 2px;
}

.hero-points span,
.tag {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(9, 18, 35, 0.6);
    border: 1px solid rgba(116, 189, 255, 0.18);
    color: #d8ecff;
    font-size: 0.88rem;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.hero-points span:hover,
.tag:hover {
    transform: translateY(-2px);
    border-color: rgba(126, 221, 255, 0.34);
    background: rgba(12, 24, 44, 0.82);
}

.metric-card span,
.store-topline span,
.journey-step {
    display: block;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.73rem;
    margin-bottom: 8px;
}

.hero-copy .eyebrow,
.metric-card span,
.store-topline span {
    display: block;
}

.glow-card,
.store-card,
.info-card,
.metric-card {
    background: linear-gradient(180deg, rgba(10, 18, 37, 0.82), rgba(7, 13, 28, 0.76));
    border: 1px solid var(--line);
    border-radius: 0;
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
    clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px));
}

.glow-card,
.store-card,
.info-card,
.metric-card {
    padding: 26px;
}

.section-intro {
    max-width: 760px;
}

.card-grid,
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 340px));
    gap: 20px;
}

.store-card {
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
    border: 0;
    box-shadow:
        inset 0 0 0 1px rgba(111, 185, 255, 0.2),
        inset 0 1px 0 rgba(166, 226, 255, 0.12),
        var(--shadow);
    background:
        linear-gradient(180deg, rgba(10, 18, 37, 0.92), rgba(6, 12, 24, 0.94)),
        linear-gradient(180deg, rgba(77, 219, 255, 0.03), transparent 28%);
    transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.store-card:hover {
    transform: translateY(-8px);
    box-shadow:
        inset 0 0 0 1px rgba(128, 210, 255, 0.32),
        inset 0 1px 0 rgba(201, 241, 255, 0.16),
        0 50px 130px rgba(0, 0, 0, 0.48);
}

.store-media {
    height: 210px;
    margin: -26px -26px 20px;
    background:
        linear-gradient(180deg, rgba(7, 15, 32, 0.14), rgba(7, 15, 32, 0.56)),
        url("https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=1200&q=80") center/cover;
    box-shadow:
        inset 0 0 0 1px rgba(124, 210, 255, 0.18),
        inset 0 -1px 0 rgba(164, 224, 255, 0.18);
    clip-path: polygon(0 0, calc(100% - 42px) 0, 100% 42px, 100% 100%, 42px 100%, 0 calc(100% - 42px));
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.store-card:hover .store-media {
    transform: scale(1.025);
    filter: saturate(1.08);
    box-shadow:
        inset 0 0 0 1px rgba(145, 225, 255, 0.28),
        inset 0 -1px 0 rgba(184, 236, 255, 0.24);
}

.store-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 4px;
}

.store-topline strong {
    color: var(--package-accent, var(--accent));
    font-size: 1.52rem;
    text-shadow: 0 0 18px color-mix(in srgb, var(--package-accent, var(--accent)) 32%, transparent);
}

.store-card ul {
    margin-bottom: 22px;
}

.store-card li::marker {
    color: rgba(123, 223, 255, 0.9);
}

.store-card .card-actions {
    margin-top: auto;
}

ul {
    margin: 18px 0 0;
    padding-left: 18px;
    color: #dce8ff;
}

li {
    margin-bottom: 10px;
}

.metric-card strong {
    display: block;
    font-size: 2.1rem;
    margin-bottom: 10px;
}

.clickable-card {
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.clickable-card:hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
}

.page-head {
    padding-top: 14px;
}

.section-band {
    position: relative;
    padding: 78px 34px;
    border-top: 1px solid rgba(113, 196, 255, 0.18);
    border-bottom: 1px solid rgba(113, 196, 255, 0.18);
    overflow: hidden;
}

.section-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(20, 97, 255, 0.08), transparent 22%, transparent 78%, rgba(74, 216, 255, 0.06)),
        linear-gradient(rgba(112, 171, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(112, 171, 255, 0.045) 1px, transparent 1px);
    background-size: auto, 120px 120px, 120px 120px;
    opacity: 0.9;
}

.section-band > * {
    position: relative;
    z-index: 1;
}

.intro-band {
    display: grid;
    gap: 28px;
}

.journey-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.journey-card {
    padding: 28px;
    background: linear-gradient(180deg, rgba(8, 15, 30, 0.74), rgba(8, 15, 30, 0.5));
    border: 1px solid rgba(114, 181, 255, 0.16);
    box-shadow: var(--shadow);
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 26px 100%, 0 calc(100% - 26px));
    transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.journey-card:hover,
.metric-card:hover,
.glow-card:hover {
    transform: translateY(-6px);
    border-color: rgba(126, 216, 255, 0.28);
    background: linear-gradient(180deg, rgba(10, 20, 38, 0.9), rgba(8, 15, 31, 0.72));
}

.journey-step {
    display: inline-flex;
    margin-bottom: 18px;
    color: var(--accent);
    font-family: "Orbitron", sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.18em;
}

.journey-card h3,
.mission-panel h2 {
    margin: 0 0 12px;
    text-transform: uppercase;
}

.mission-band {
    min-height: 420px;
    display: grid;
    place-items: center;
}

.mission-panel {
    max-width: 1080px;
    text-align: center;
}

.mission-panel h2 {
    font-size: clamp(2rem, 4.5vw, 4.4rem);
    line-height: 1.22;
}

.mission-panel h2 span {
    color: var(--accent);
}

.mission-panel p {
    max-width: 760px;
    margin: 18px auto 0;
}

.utility-grid {
    align-items: stretch;
}

.utility-card {
    display: flex;
    flex-direction: column;
}

.utility-card .button {
    margin-top: auto;
    width: fit-content;
}

.section-grid > *,
.section-band > * {
    animation: fadeUp 0.8s ease-out both;
}

.card-grid > *:nth-child(1),
.stats-grid > *:nth-child(1),
.journey-grid > *:nth-child(1) {
    animation: fadeUp 0.7s ease-out both;
}

.card-grid > *:nth-child(2),
.stats-grid > *:nth-child(2),
.journey-grid > *:nth-child(2) {
    animation: fadeUp 0.85s ease-out both;
}

.card-grid > *:nth-child(3),
.stats-grid > *:nth-child(3),
.journey-grid > *:nth-child(3) {
    animation: fadeUp 1s ease-out both;
}

.card-grid > *:nth-child(4),
.card-grid > *:nth-child(5) {
    animation: fadeUp 1.15s ease-out both;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

.queue-layout,
.support-layout,
.account-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.server-stack,
.service-list,
.detail-list,
.stack-form {
    display: grid;
    gap: 16px;
}

.server-item,
.service-item,
.detail-list div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 16px 18px;
    border-radius: var(--radius-sm);
    background: rgba(7, 14, 30, 0.78);
    border: 1px solid rgba(103, 167, 255, 0.12);
}

.server-item.active {
    border-color: rgba(104, 223, 255, 0.32);
    box-shadow: inset 0 0 0 1px rgba(104, 223, 255, 0.16);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 20px;
}

.data-table th,
.data-table td {
    padding: 16px 18px;
    text-align: left;
    border-bottom: 1px solid rgba(102, 141, 215, 0.12);
}

.data-table th {
    color: #b5d9ff;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.stack-form label {
    display: grid;
    gap: 8px;
    color: #e5eeff;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid rgba(126, 175, 255, 0.12);
    border-radius: 14px;
    padding: 10px 18px;
    color: var(--text);
    background: rgba(4, 10, 20, 0.6);
    font: inherit;
    transition: all 0.3s ease;
    outline: none;
    line-height: 1.2;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2372deff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
    padding-right: 45px;
    cursor: pointer;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent);
    background: rgba(114, 222, 255, 0.04);
    box-shadow: 0 0 20px rgba(114, 222, 255, 0.08);
}

option {
    background: #020b16;
    color: #fff;
    padding: 10px;
}

.profile-panel {
    display: flex;
    gap: 22px;
    align-items: center;
}

.profile-avatar {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(112, 211, 255, 0.5);
}

.tag-alt {
    background: rgba(51, 209, 255, 0.12);
}

.tag-error {
    background: rgba(255, 92, 92, 0.12);
    border-color: rgba(255, 118, 118, 0.24);
    color: #ffc6c6;
}

.center-panel {
    min-height: 70vh;
    display: grid;
    place-items: center;
}

.narrow-card {
    width: min(520px, 100%);
}

.muted,
small {
    color: var(--muted);
}

.status-banner {
    margin: 6px 0 8px;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(249, 184, 62, 0.09);
    border: 1px solid rgba(249, 184, 62, 0.18);
    color: #f6dba9;
}

.status-banner-success {
    background: rgba(74, 216, 255, 0.09);
    border-color: rgba(74, 216, 255, 0.18);
    color: #b8f4ff;
}

.status-banner-error {
    background: rgba(255, 92, 92, 0.08);
    border-color: rgba(255, 118, 118, 0.18);
    color: #ffc6c6;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    padding: 20px 0 28px;
    color: var(--muted);
    font-size: 0.92rem;
}

.site-footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.site-footer a {
    color: #d8ecff;
    font-weight: 600;
}

.terms-modal-content {
    max-width: 920px;
    width: min(920px, calc(100vw - 32px));
    max-height: min(86vh, 980px);
    overflow: hidden;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    gap: 16px;
}

.terms-modal-body {
    min-height: 0;
    overflow-y: auto;
    padding-right: 8px;
    display: grid;
    gap: 14px;
    scrollbar-width: thin;
    scrollbar-color: rgba(114, 222, 255, 0.7) rgba(255, 255, 255, 0.06);
    overscroll-behavior: contain;
}

.terms-modal-body p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.78;
}

.terms-modal-body::-webkit-scrollbar {
    width: 10px;
}

.terms-modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 999px;
}

.terms-modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(114, 222, 255, 0.9), rgba(59, 120, 255, 0.9));
    border-radius: 999px;
}

.terms-actions {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.terms-actions .button-primary {
    color: #e8f6ff;
    background: linear-gradient(135deg, rgba(69, 128, 190, 0.42), rgba(84, 167, 215, 0.28));
    border-color: rgba(132, 198, 236, 0.24);
    box-shadow: 0 10px 24px rgba(15, 32, 54, 0.22);
}

.terms-actions .button-danger {
    color: #ffd8d8;
    background: linear-gradient(135deg, rgba(112, 53, 53, 0.42), rgba(136, 70, 70, 0.26));
    border-color: rgba(220, 140, 140, 0.22);
    box-shadow: 0 10px 24px rgba(33, 16, 16, 0.22);
}

@media (max-width: 1180px) {
    .topbar {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .brand-logo {
        width: min(260px, 56vw);
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 34px;
    }

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

@media (max-width: 980px) {
    .nav-toggle {
        display: inline-flex;
        width: 48px;
        height: 48px;
        padding: 0;
        border: 1px solid rgba(109, 162, 255, 0.22);
        background: rgba(8, 15, 31, 0.7);
        border-radius: 14px;
        align-items: center;
        justify-content: center;
        gap: 5px;
        flex-direction: column;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    }

    .topbar {
        grid-template-columns: auto auto;
        align-items: center;
        justify-items: stretch;
        gap: 14px;
        width: 100%;
        margin-left: 0;
        padding-left: 16px;
        padding-right: 16px;
    }

    .brand {
        grid-column: 1 / 2;
    }
    .nav-toggle {
        justify-self: end;
    }

    .profile-chip {
        grid-column: 1 / -1;
        min-width: 0;
        width: 100%;
        justify-content: stretch;
    }

    .profile-chip .profile-link,
    .profile-chip .button-login {
        width: 100%;
    }

    .nav {
        grid-column: 1 / -1;
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 10px;
        padding: 18px;
        border: 1px solid rgba(114, 191, 255, 0.18);
        background: linear-gradient(180deg, rgba(7, 14, 30, 0.96), rgba(5, 10, 20, 0.94));
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
        border-radius: 20px;
    }

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

    .nav a:not(.button) {
        padding: 12px 8px;
    }

    .nav .button {
        width: 100%;
    }

    .queue-layout,
    .support-layout,
    .account-layout {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 981px) {
    .nav-toggle {
        display: none !important;
    }
}

@media (max-width: 720px) {
    .site-shell {
        width: min(100% - 24px, 1400px);
    }

    .topbar {
        padding-left: 12px;
        padding-right: 12px;
    }

    .hero {
        padding: 24px;
        border-radius: 0;
        clip-path: none;
    }

    .hero::before {
        inset: 10px;
        border-radius: 0;
        clip-path: none;
    }

    h1 {
        font-size: 2rem;
    }

    p,
    .page-head p,
    .hero-copy > p {
        font-size: 0.95rem;
        line-height: 1.65;
    }

    .nav,
    .hero-actions,
    .card-actions,
    .badges {
        flex-direction: column;
        width: 100%;
    }

    .button,
    .button-login,
    .profile-link {
        width: 100%;
    }

    .profile-panel,
    .service-item,
    .server-item,
    .detail-list div {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-footer {
        align-items: flex-start;
    }

    .glow-card,
    .store-card,
    .info-card,
    .metric-card,
    .journey-card {
        clip-path: none;
        border-radius: 0;
    }

    .store-media {
        clip-path: none;
    }

    .section-band {
        padding: 46px 0;
    }

    .data-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

@media (max-width: 560px) {
    main {
        gap: 36px;
        padding: 12px 0 48px;
    }

    .topbar {
        gap: 12px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .brand-logo {
        min-width: 128px;
        width: min(220px, 52vw);
    }

    .hero {
        padding: 20px;
    }

    .glow-card,
    .store-card,
    .info-card,
    .metric-card,
    .journey-card {
        padding: 20px;
    }

    .terms-actions {
        flex-direction: column;
    }
}

/* Admin Dashboard Overhaul */
.admin-shell {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
}

.admin-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: fadeRight 0.6s ease-out both;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    border-radius: 18px;
    color: var(--muted);
    font-weight: 500;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

.admin-nav-item svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.25;
}

.admin-nav-item:hover {
    color: var(--text);
    background: rgba(114, 222, 255, 0.05);
    border-color: rgba(114, 222, 255, 0.1);
    transform: translateX(4px);
}

.admin-nav-item.active {
    color: var(--accent);
    background: rgba(112, 222, 255, 0.08);
    border-color: rgba(112, 222, 255, 0.24);
    box-shadow: inset 0 0 20px rgba(114, 222, 255, 0.04);
}

.admin-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
    animation: fadeUp 0.6s 0.2s ease-out both;
}

.tab-btn {
    background: transparent;
    border: 0;
    color: var(--muted);
    padding: 10px 18px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 99px;
    font-size: 0.88rem;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

.tab-btn.active {
    color: var(--accent);
    background: rgba(114, 222, 255, 0.12);
    box-shadow: 0 0 16px rgba(114, 222, 255, 0.08);
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(10, 20, 40, 0.6);
    border: 1px solid rgba(112, 180, 255, 0.16);
    color: var(--muted);
    transition: all 0.24s ease;
    cursor: pointer;
}

.btn-icon svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.25;
}

.btn-icon:hover {
    transform: translateY(-3px);
    color: var(--text);
    border-color: var(--accent);
    background: rgba(114, 222, 255, 0.14);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
}

.btn-icon-success:hover {
    color: #4affff;
    border-color: rgba(74, 255, 255, 0.4);
    background: rgba(74, 255, 255, 0.08);
}

.btn-icon-danger:hover {
    color: #ff5c5c;
    border-color: rgba(255, 92, 92, 0.4);
    background: rgba(255, 92, 92, 0.08);
}

.admin-main {
    animation: fadeUp 0.7s 0.1s ease-out both;
}

/* --- Recruitment Management UI --- */
.mgmt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.mgmt-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.mgmt-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    background: rgba(114, 222, 255, 0.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.mgmt-card h4 {
    margin: 0;
    font-size: 1.2rem;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
}

.mgmt-card .tag {
    align-self: flex-start;
}

.mgmt-actions {
    margin-top: auto;
    display: flex;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid var(--line);
}

/* --- Premium Modal System --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 5, 12, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
}

.modal-overlay:target {
    opacity: 1;
    pointer-events: auto;
}

.modal-overlay-forced {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #020b16;
    border: 1px solid var(--line);
    border-radius: 24px;
    width: 100%;
    max-width: 500px;
    padding: 40px;
    position: relative;
    transform: scale(0.9);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.modal-overlay:target .modal-content {
    transform: scale(1);
    border-color: var(--accent);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--muted);
    text-decoration: none;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #fff;
}

@media (max-width: 980px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 8px;
    }

    .admin-nav-item {
        flex-shrink: 0;
        white-space: nowrap;
    }
}
