* {
    box-sizing: border-box;
}

:root {
    --ab-primary: #16d7ff;
    --ab-accent: #7ee7ff;
    --ab-heading-font: "Orbitron";
    --ab-body-font: "Inter";
    --ab-background-image: none;
    --player-fill: 0%;
    --page-width: 1180px;
    --panel-bg: rgba(7, 18, 38, 0.78);
    --panel-bg-heavy: rgba(5, 14, 30, 0.92);
    --line: rgba(22, 215, 255, 0.25);
    --line-bright: rgba(72, 219, 255, 0.58);
    --text: #ecfbff;
    --muted: #a9cad8;
}

html {
    min-height: 100%;
    background: #020813;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text);
    background: #020813;
    font-family: var(--ab-body-font), "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
a {
    font: inherit;
}

button:disabled {
    cursor: default;
}

.ab-bg,
.ab-grid-glow,
#atomicParticles {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.ab-bg {
    z-index: 0;
    background-image:
        linear-gradient(rgba(1, 10, 26, 0.18), rgba(1, 6, 16, 0.58)),
        var(--ab-background-image),
        radial-gradient(circle at 50% 18%, #0d2d59 0%, #07101f 48%, #020813 100%);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: brightness(0.58) saturate(1.1);
    transform: scale(1.01);
}

.ab-grid-glow {
    z-index: 1;
    background:
        radial-gradient(circle at 50% 32%, rgba(28, 212, 255, 0.16), rgba(0, 0, 0, 0) 34%),
        linear-gradient(to bottom, rgba(10, 30, 64, 0.1), rgba(0, 0, 0, 0.28)),
        repeating-linear-gradient(
            to right,
            rgba(120, 220, 255, 0.035) 0,
            rgba(120, 220, 255, 0.035) 1px,
            transparent 1px,
            transparent 78px
        ),
        repeating-linear-gradient(
            to bottom,
            rgba(120, 220, 255, 0.035) 0,
            rgba(120, 220, 255, 0.035) 1px,
            transparent 1px,
            transparent 78px
        );
    opacity: 0.82;
}

#atomicParticles {
    z-index: 2;
    width: 100%;
    height: 100%;
}

.page-shell {
    position: relative;
    z-index: 3;
    width: min(var(--page-width), calc(100% - 32px));
    margin: 0 auto;
    padding-bottom: 52px;
}

.panel {
    border: 1px solid var(--line);
    background:
        linear-gradient(145deg, rgba(6, 22, 46, 0.83), rgba(4, 14, 31, 0.9));
    box-shadow:
        0 26px 70px rgba(0, 0, 0, 0.42),
        0 0 0 1px rgba(90, 225, 255, 0.02) inset,
        inset 0 0 26px rgba(14, 198, 255, 0.05);
    backdrop-filter: blur(13px);
    -webkit-backdrop-filter: blur(13px);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 24px;
    border-top: 0;
    border-radius: 0 0 18px 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
    color: var(--text);
    text-decoration: none;
}

.brand-logo {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    object-fit: contain;
    filter: drop-shadow(0 0 14px rgba(22, 215, 255, 0.46));
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(22, 215, 255, 0.3);
    border-radius: 50%;
    color: #b4f5ff;
    background:
        radial-gradient(circle, rgba(22, 215, 255, 0.16), rgba(6, 32, 59, 0.28));
    font-size: 23px;
    box-shadow: 0 0 18px rgba(22, 215, 255, 0.18);
}

.brand-title {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: var(--ab-heading-font), "Orbitron", sans-serif;
    font-size: clamp(18px, 2.4vw, 26px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: 0.02em;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 0 12px rgba(22, 215, 255, 0.42);
}

.brand-title em {
    margin-top: 4px;
    color: #caefff;
    font-family: var(--ab-body-font), sans-serif;
    font-size: 0.55em;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.ghost-button,
.btn-atomic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 12px;
    padding: 10px 16px;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease,
        background 0.2s ease;
}

.ghost-button {
    border: 1px solid rgba(22, 215, 255, 0.24);
    color: #ebfbff;
    background: rgba(5, 16, 31, 0.76);
    text-decoration: none;
}

.btn-atomic {
    border: 1px solid rgba(115, 235, 255, 0.24);
    color: #04101f;
    background:
        linear-gradient(95deg, var(--ab-primary), #4ae6ff 56%, var(--ab-accent));
    box-shadow: 0 0 18px rgba(22, 215, 255, 0.34);
    font-weight: 900;
    text-decoration: none;
}

.ghost-button:hover,
.btn-atomic:not(:disabled):hover {
    transform: translateY(-1px);
}

.ghost-button:hover {
    background: rgba(7, 24, 44, 0.92);
}

.btn-atomic:not(:disabled):hover {
    filter: brightness(1.08);
    box-shadow: 0 0 25px rgba(45, 218, 255, 0.56);
}

.notice-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: 14px;
    color: var(--muted);
}

.notice-banner strong {
    color: var(--ab-accent);
}

.sale-banner strong {
    color: #b8f3ff;
}

.hero {
    margin: 36px 14px 28px;
    padding: clamp(30px, 5vw, 54px) 28px;
    border-radius: 22px;
    text-align: center;
}

.hero-eyebrow,
.server-kicker,
.label-mini {
    display: block;
    margin-bottom: 8px;
    color: var(--ab-accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    font-family: var(--ab-heading-font), "Orbitron", sans-serif;
    font-size: clamp(32px, 5.5vw, 56px);
    line-height: 1.03;
    letter-spacing: 0.02em;
}

.hero p {
    max-width: 820px;
    margin: 15px auto 0;
    color: #c5e8f4;
    font-size: clamp(14px, 2vw, 17px);
    line-height: 1.7;
}

.glow-text {
    text-shadow:
        0 0 8px rgba(22, 215, 255, 0.62),
        0 0 28px rgba(22, 215, 255, 0.2);
}

.status-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin: 0 14px 36px;
}

.countdown-card {
    padding: 24px;
    border-radius: 22px;
}

.countdown-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.countdown-head h2 {
    margin: 0;
    font-family: var(--ab-heading-font), "Orbitron", sans-serif;
    font-size: clamp(24px, 3.8vw, 40px);
    line-height: 1.1;
}

.wipe-type {
    text-align: right;
}

.wipe-type strong {
    display: block;
    color: #effcff;
    font-family: var(--ab-heading-font), "Orbitron", sans-serif;
    font-size: clamp(18px, 2.8vw, 28px);
    line-height: 1.1;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.count-ring {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    border: 6px solid rgba(22, 215, 255, 0.48);
    background:
        radial-gradient(circle, rgba(6, 16, 28, 0.95) 38%, rgba(2, 10, 20, 0.92) 100%);
    box-shadow:
        0 0 0 8px rgba(5, 24, 46, 0.55) inset,
        0 0 22px rgba(22, 215, 255, 0.28);
    text-align: center;
}

.count-value {
    color: var(--ab-primary);
    font-family: var(--ab-heading-font), "Orbitron", sans-serif;
    font-size: clamp(28px, 5vw, 56px);
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 0 14px rgba(22, 215, 255, 0.32);
}

.count-label {
    margin-top: 8px;
    color: #d3eff8;
    font-size: clamp(12px, 1.5vw, 16px);
    font-weight: 700;
}

.last-wipe-line {
    margin: 26px 0 0;
    color: #c2e3f0;
    text-align: center;
    font-size: 15px;
}

.last-wipe-line strong {
    color: #ecfbff;
}

.server-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
    gap: 24px;
    padding: 24px;
    border-radius: 20px;
}

.server-main {
    min-width: 0;
}

.server-heading-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.server-heading-row h2 {
    margin: 0;
    font-family: var(--ab-heading-font), "Orbitron", sans-serif;
    font-size: clamp(23px, 3vw, 36px);
    line-height: 1.08;
}

.server-heading-row p {
    margin: 7px 0 0;
    color: var(--muted);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    padding: 7px 11px;
    border: 1px solid rgba(22, 215, 255, 0.28);
    border-radius: 999px;
    color: #d7f8ff;
    background: rgba(22, 215, 255, 0.07);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.status-pill::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ab-primary);
    box-shadow: 0 0 11px rgba(22, 215, 255, 0.9);
}

.status-pill.offline {
    border-color: rgba(255, 109, 109, 0.28);
    color: #ffd0d0;
    background: rgba(255, 70, 70, 0.07);
}

.status-pill.offline::before {
    background: #ff6565;
    box-shadow: 0 0 10px rgba(255, 75, 75, 0.72);
}

.player-summary {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-top: 28px;
}

.player-count {
    display: flex;
    align-items: baseline;
    gap: 7px;
}

.player-count strong {
    color: #fff;
    font-size: 38px;
    line-height: 1;
}

.player-count span,
.heartbeat {
    color: var(--muted);
    font-size: 13px;
}

.capacity-track {
    height: 10px;
    margin-top: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.36);
}

.capacity-track span {
    display: block;
    width: var(--player-fill);
    height: 100%;
    border-radius: inherit;
    background:
        linear-gradient(90deg, #0aa7ff, var(--ab-primary), var(--ab-accent));
    box-shadow: 0 0 18px rgba(22, 215, 255, 0.48);
}

.server-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.server-stat {
    min-width: 0;
    padding: 12px 13px;
    border: 1px solid rgba(22, 215, 255, 0.13);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.18);
}

.server-stat span {
    display: block;
    margin-bottom: 5px;
    color: #8cc9dc;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.server-stat strong {
    display: block;
    overflow: hidden;
    color: #effcff;
    font-size: 14px;
    text-overflow: ellipsis;
}

.ab-section {
    margin: 0 14px 38px;
}

.section-title {
    margin: 0 0 17px;
    font-family: var(--ab-heading-font), "Orbitron", sans-serif;
    font-size: clamp(24px, 3.6vw, 36px);
    line-height: 1.08;
    letter-spacing: 0.02em;
    text-align: center;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.product-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(22, 215, 255, 0.42);
    border-radius: 16px;
    background:
        linear-gradient(155deg, rgba(7, 23, 46, 0.92), rgba(3, 12, 26, 0.88));
    box-shadow: 0 0 18px rgba(22, 215, 255, 0.09);
    transition:
        transform 0.24s ease,
        box-shadow 0.24s ease,
        border-color 0.24s ease;
}

.product-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 0 28px rgba(22, 215, 255, 0.05);
}

.product-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    border-radius: inherit;
    background:
        linear-gradient(120deg, rgba(60, 225, 255, 0.05), transparent 42%, rgba(120, 235, 255, 0.035));
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(72, 219, 255, 0.82);
    box-shadow:
        0 0 30px rgba(22, 215, 255, 0.18),
        0 24px 60px rgba(0, 0, 0, 0.34);
}

.product-card.is-featured {
    border-color: rgba(126, 231, 255, 0.9);
    box-shadow:
        0 0 0 1px rgba(126, 231, 255, 0.08),
        0 0 30px rgba(22, 215, 255, 0.2);
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 4;
    padding: 5px 8px;
    border: 1px solid rgba(202, 244, 255, 0.38);
    border-radius: 999px;
    color: #051220;
    background:
        linear-gradient(90deg, #6de8ff, #b5f4ff);
    box-shadow: 0 0 13px rgba(60, 230, 255, 0.25);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.product-image-wrap {
    position: relative;
    z-index: 1;
    height: 190px;
    overflow: hidden;
    border-bottom: 1px solid rgba(22, 215, 255, 0.17);
    background:
        radial-gradient(circle at center, rgba(18, 91, 125, 0.14), rgba(0, 0, 0, 0.24));
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    filter: drop-shadow(0 14px 16px rgba(0, 0, 0, 0.42));
    transition: transform 0.28s ease;
}

.product-card:hover .product-image {
    transform: scale(1.035);
}

.product-copy {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    padding: 18px 18px 8px;
    text-align: center;
}

.product-copy h3 {
    margin: 0 0 7px;
    color: #f6fdff;
    font-family: var(--ab-heading-font), "Orbitron", sans-serif;
    font-size: 20px;
    line-height: 1.18;
}

.product-copy p {
    margin: 0;
    color: #c5e2eb;
    font-size: 13px;
    line-height: 1.56;
}

.product-contents {
    position: relative;
    z-index: 1;
    margin: 6px 18px 2px;
    padding: 9px 11px;
    border: 1px solid rgba(22, 215, 255, 0.12);
    border-radius: 10px;
    color: #d7eef4;
    background: rgba(0, 0, 0, 0.16);
    font-size: 12px;
}

.product-contents summary {
    cursor: pointer;
    color: #97ecff;
    font-weight: 800;
}

.product-contents ul {
    margin: 9px 0 0;
    padding-left: 18px;
}

.product-price {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
    min-height: 31px;
    padding: 6px 18px;
    text-align: center;
}

.product-price del {
    color: #86aab6;
    font-size: 12px;
}

.product-price strong {
    color: #f2fdff;
    font-size: 18px;
}

.product-card > form {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: auto;
    padding: 8px 18px 18px;
}

.purchase-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 122px;
    margin: 0;
    text-align: center;
    cursor: pointer;
}

.purchase-button:disabled,
.cart-button:disabled,
.ghost-button:disabled {
    opacity: 0.78;
}

.empty-shop {
    margin: 0 14px 36px;
    padding: 46px 24px;
    border-radius: 20px;
    text-align: center;
}

.empty-shop > span {
    font-size: 44px;
}

.empty-shop h2 {
    margin: 12px 0 7px;
    font-family: var(--ab-heading-font), "Orbitron", sans-serif;
    font-size: 28px;
    line-height: 1.15;
}

.empty-shop p {
    margin: 0;
    color: var(--muted);
}

footer {
    display: flex;
    justify-content: center;
    gap: 9px;
    padding: 24px 12px 8px;
    color: rgba(220, 245, 255, 0.8);
    font-size: 12px;
}

footer a {
    color: inherit;
}

.footer-dot {
    opacity: 0.5;
}

@media (max-width: 1000px) {
    .countdown-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .server-panel {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .page-shell {
        width: min(var(--page-width), calc(100% - 18px));
    }

    .topbar {
        position: relative;
        align-items: flex-start;
        flex-direction: column;
        padding: 15px;
    }

    .brand {
        width: 100%;
    }

    .brand-title {
        white-space: normal;
    }

    .top-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .top-actions > * {
        flex: 1 1 180px;
        text-align: center;
    }

    .hero,
    .empty-shop {
        margin-left: 0;
        margin-right: 0;
    }

    .status-layout,
    .ab-section {
        margin-left: 0;
        margin-right: 0;
    }

    .countdown-head,
    .server-heading-row,
    .player-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .countdown-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .server-stat-grid {
        grid-template-columns: 1fr 1fr;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-image-wrap {
        height: 215px;
    }

    .product-card > form {
        padding: 8px 16px 18px;
    }

    .purchase-button {
        min-width: 132px;
    }
}

@media (max-width: 420px) {
    .countdown-grid,
    .server-stat-grid {
        grid-template-columns: 1fr;
    }

    footer {
        align-items: center;
        flex-direction: column;
        gap: 4px;
    }

    .footer-dot {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}