/* ZoP World - visual layer over the existing SPA */

:root {
    --zop-gold: #f0b429;
    --zop-gold-deep: #c47a12;
    --zop-panel: rgba(12, 12, 20, 0.78);
    --zop-stroke: rgba(240, 180, 41, 0.22);
    --pix-ink: #0c0c12;
    --pix-blue: #3d78ea;
    --pix-blue-shade: #1f4db8;
    --pix-purple: #7b61ff;
    --pix-purple-shade: #4d35c4;
    --pix-dark: #1a1a22;
    --pix-orange: #f07820;
    --pix-orange-shade: #b84e0c;
    --pix-yt: #d62828;
    --pix-yt-shade: #8e1212;
    --pix-boosty: #f37a3d;
    --pix-boosty-shade: #c44e14;
}

.pixbtn {
    --fill: var(--pix-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: var(--fill);
    color: #fff;
    font-family: "Unbounded", "Manrope", sans-serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.02em;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
    transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.pixbtn:hover {
    filter: brightness(1.08);
    color: #fff;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.34);
}
.pixbtn:active {
    filter: brightness(0.96);
}
.pixbtn:disabled,
.pixbtn[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    filter: grayscale(0.25);
    box-shadow: none;
}
.pixbtn.blue { --fill: var(--pix-blue); }
.pixbtn.purple { --fill: var(--pix-purple); }
.pixbtn.orange { --fill: var(--pix-orange); }
.pixbtn.youtube { --fill: var(--pix-yt); }
.pixbtn.boosty { --fill: var(--pix-boosty); }
.pixbtn.red { --fill: #e23d3d; }
.pixbtn.dark {
    --fill: #1c1c28;
    border-color: rgba(201, 197, 239, 0.16);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}
.pixbtn.sm {
    height: 34px;
    padding: 0 14px;
    font-size: 13px;
    gap: 6px;
}
.pixbtn.sm .pixico {
    width: 14px;
    height: 14px;
}
.pixbtn.ico {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    border-radius: 999px;
    gap: 0;
    box-shadow: none;
}
.pixbtn.ico .pixico {
    width: 16px;
    height: 16px;
}
.navbar-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.navbar-tools .navbar-notifications {
    margin-left: 0;
    display: flex;
    align-items: center;
    position: relative;
}
.navbar-tools .pixbtn.ico,
.navbar-tools #notification-bell {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    font-size: 0;
    line-height: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #16161f !important;
    border: 1px solid rgba(201, 197, 239, 0.2) !important;
    color: #e8e6ff !important;
    cursor: pointer;
    position: relative;
    box-shadow: none !important;
}
.navbar-tools .pixbtn.ico .pixico,
.navbar-tools #notification-bell .pixico {
    width: 16px;
    height: 16px;
    display: block;
}
.pixbtn.is-on {
    filter: none;
    box-shadow: 0 0 0 2px #ffd978, 0 8px 22px rgba(0, 0, 0, 0.28);
}
.pixbtn.lg {
    height: 54px;
    width: 100%;
    font-size: 17px;
    gap: 10px;
    border-radius: 18px;
}
.pixbtn.goto-servers {
    height: 46px;
    padding: 0 20px;
    margin: 0 0 18px;
    font-size: 16px;
}
.pixico {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    display: block;
}
.pixbtn.lg .pixico,
.pixbtn.goto-servers .pixico {
    width: 18px;
    height: 18px;
}
.pixbtn.tile-ico {
    width: 40px;
    height: 40px;
    padding: 0;
    flex-shrink: 0;
    border-radius: 50%;
}

.zop-brand {
    gap: 12px !important;
}

.zop-brand-mark {
    width: 42px;
    height: 42px;
    object-fit: contain;
    image-rendering: auto;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
}

.zop-hero {
    min-height: clamp(260px, 34vw, 500px);
    max-height: 500px;
}

.zop-hero::before {
    background-color: #08080f;
    background-image:
        linear-gradient(180deg, rgba(8, 8, 15, 0.18) 0%, rgba(8, 8, 15, 0.38) 58%, #08080f 100%),
        url("/assets/banner-night.webp");
    background-repeat: no-repeat !important;
    background-size: auto, 100% auto !important;
    background-position: 0 0, center 18% !important;
}

.zop-hero-inner {
    padding: 42px 0 36px;
}

.zop-servers-goto {
    display: none;
}

.navbar.zop-nav {
    height: auto;
    min-height: 78px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    flex-wrap: nowrap;
    padding-top: 10px;
    padding-bottom: 10px;
}
.navbar.zop-nav.nav-compact {
    grid-template-columns: max-content max-content;
    justify-content: space-between;
}
.navbar.zop-nav.nav-measuring {
    grid-template-columns: 1fr auto 1fr;
}

.navbar-center .pixbtn {
    white-space: nowrap;
    flex: 0 0 auto;
}

.navbar-links.zop-nav-links {
    gap: 8px !important;
    flex-wrap: nowrap;
}

.mobile-menu-overlay .pixbtn {
    width: 100%;
    height: 52px;
    font-size: 18px;
}

.zop-action {
    border: 0 !important;
    border-radius: 999px !important;
    font-family: "Unbounded", "Manrope", sans-serif !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28) !important;
}

.zop-servers-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    max-width: 920px;
    gap: 22px !important;
}

.zop-server-card {
    min-height: 0 !important;
    border-radius: 18px;
    background: #10101a;
    overflow: hidden;
    border: 1px solid rgba(201, 197, 239, 0.12) !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.zop-server-card:hover {
    border-color: rgba(240, 180, 41, 0.35) !important;
}

.zop-server-cover {
    height: 168px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.zop-server-cover::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 56px;
    background: linear-gradient(180deg, transparent, #10101a);
}

.zop-server-cover.zop {
    background-image: url("/assets/gallery/02.webp");
}

.zop-server-cover.kvazar {
    background-image: url("/assets/brand/kvazar-art.png");
    background-position: center 40%;
}

.zop-server-head {
    background: transparent !important;
    padding-top: 4px !important;
}

.zop-server-card .zop-more {
    border-radius: 999px;
    letter-spacing: 0.02em;
}

.zop-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 14px;
}

.zop-tag {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #ece9ff;
    background: rgba(77, 109, 255, 0.18);
    border: 1px solid rgba(77, 109, 255, 0.28);
    padding: 4px 8px;
    border-radius: 999px;
}

.zop-tag.gold {
    background: rgba(240, 180, 41, 0.14);
    border-color: rgba(240, 180, 41, 0.3);
    color: #ffd978;
}

.zop-tag.purple {
    background: rgba(107, 77, 255, 0.2);
    border-color: rgba(107, 77, 255, 0.35);
}

/* ── How to play ── */
.play-hero {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    min-height: 220px;
    margin: 8px 0 28px;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
}

.play-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 8, 15, 0.15), rgba(8, 8, 15, 0.82)),
        url("/assets/banner-season.webp") center 45% / cover no-repeat;
    z-index: -1;
}

.play-hero-inner {
    padding: 28px 28px 24px;
    width: 100%;
}

.play-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffd978;
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.play-kicker img {
    width: 22px;
    height: 22px;
}

.play-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 22px;
    align-items: start;
}

.play-video {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #0b0b14;
    border: 1px solid rgba(201, 197, 239, 0.12);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.play-video iframe,
.play-video .play-video-fallback {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    display: block;
}

.play-video-caption {
    padding: 12px 16px 14px;
    color: var(--zop-lavender);
    font-size: 0.9rem;
}

.play-steps {
    display: grid;
    gap: 12px;
}

.play-step {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 12px;
    padding: 14px 14px 14px 12px;
    background: var(--zop-panel);
    border: 1px solid rgba(201, 197, 239, 0.1);
    border-radius: 16px;
}

.play-step-num {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 800;
    color: #1a1204;
    background: linear-gradient(180deg, #ffd978, #c47a12);
    box-shadow: 0 8px 18px rgba(196, 122, 18, 0.28);
}

.play-step h3 {
    margin: 0 0 4px;
    color: #f6f3ff;
    font-size: 1.02rem;
}

.play-step p {
    margin: 0;
    color: #bdb8e6;
    font-size: 0.92rem;
    line-height: 1.5;
}

.crash-card {
    margin-top: 22px;
    padding: 18px 18px 16px;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(198, 40, 40, 0.16), rgba(16, 12, 14, 0.92));
    border: 1px solid rgba(255, 138, 128, 0.28);
}

.crash-card h3 {
    margin: 0 0 14px;
    color: #ffd0cb;
    font-size: 1.08rem;
}

.crash-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}
.crash-steps li {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 0;
}
.crash-step-num {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(255, 138, 128, 0.18);
    border: 1px solid rgba(255, 180, 170, 0.35);
    color: #ffe3df;
    font-family: "Unbounded", "Manrope", sans-serif;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1;
}
.crash-steps strong {
    display: block;
    color: #ffe3df;
    font-size: 0.98rem;
    margin-bottom: 4px;
}
.crash-steps p {
    margin: 0;
    color: #f0e6e8;
    line-height: 1.55;
}
.crash-side {
    margin: 14px 0 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.28);
    font-size: 0.88rem;
    color: #cbb8ba !important;
    line-height: 1.5;
}

.crash-card p,
.crash-card li {
    color: #f0e6e8;
    line-height: 1.55;
}

.crash-card code {
    font-family: var(--font-mono);
    color: #ffd978;
    background: rgba(0, 0, 0, 0.35);
    padding: 1px 6px;
    border-radius: 6px;
}

.play-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 18px;
    max-width: none !important;
}

/* ── Servers page ── */
.servers-hero {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    min-height: 230px;
    margin: 6px 0 26px;
    isolation: isolate;
}

.servers-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(100deg, rgba(8, 8, 15, 0.2) 10%, rgba(8, 8, 15, 0.78) 70%),
        url("/assets/shot-community.webp") center / cover no-repeat;
    z-index: -1;
}

.servers-hero-inner {
    padding: 36px 28px;
    max-width: 640px;
}

.servers-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-top: 28px;
}

.servers-gallery img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(201, 197, 239, 0.1);
}

/* ── Support page ── */
.support-hero {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    min-height: 200px;
    margin: 6px 0 24px;
    isolation: isolate;
}

.support-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 8, 15, 0.25), rgba(8, 8, 15, 0.86)),
        url("/assets/gallery/04.webp") center / cover no-repeat;
    z-index: -1;
}

.help-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 8px;
}

.help-card {
    background: #12121c;
    border: 1px solid rgba(201, 197, 239, 0.1);
    border-radius: 16px;
    padding: 18px 16px;
}

.help-card h3 {
    margin: 0 0 8px;
    color: #f0edff;
}

/* ── News / about visual headers ── */
#page-news.active,
#page-about.active,
#page-dashboard.active,
#page-admin.active {
    position: relative;
}

#page-news .section-header,
#page-about .info-tabs {
    background: linear-gradient(90deg, rgba(16, 16, 28, 0.92), rgba(16, 16, 28, 0.7));
    border: 1px solid rgba(201, 197, 239, 0.1);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
}

#page-about .info-tab-content {
    background: #101018;
    border: 1px solid rgba(201, 197, 239, 0.08);
    border-radius: 16px;
    padding: 18px;
}

/* ── Others modal ── */
.others-modal .others-sheet {
    width: min(720px, calc(100% - 28px));
    background:
        linear-gradient(180deg, rgba(22, 18, 32, 0.96), rgba(10, 10, 16, 0.98));
    border: 1px solid rgba(240, 180, 41, 0.22);
    border-radius: 22px;
    padding: 22px 22px 20px;
    position: relative;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}

.others-modal .others-sheet::before {
    content: "";
    position: absolute;
    right: -20px;
    top: -30px;
    width: 220px;
    height: 220px;
    background: url("/assets/brand/crafting.png") center / contain no-repeat;
    opacity: 0.18;
    pointer-events: none;
}

.others-head {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 18px;
    position: relative;
}

.others-head img {
    width: 64px;
    height: 64px;
    image-rendering: pixelated;
}

.others-head h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.7rem;
    color: #f6f3ff;
}

.others-head p {
    margin: 4px 0 0;
    color: #9b97c4;
    font-size: 0.95rem;
}

.others-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 2;
}

.others-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    position: relative;
}

.others-tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    text-align: left;
    padding: 16px 14px;
    border-radius: 18px;
    border: 1px solid rgba(201, 197, 239, 0.14);
    background: rgba(18, 18, 30, 0.88);
    color: #ece9ff;
    cursor: pointer;
    font-family: inherit;
    min-height: 108px;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.others-tile:hover {
    border-color: var(--pix-purple);
    background: rgba(36, 40, 80, 0.55);
}

.others-tile.wide {
    grid-column: 1 / -1;
    min-height: 86px;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.others-tile strong {
    font-family: "Unbounded", "Manrope", sans-serif;
    font-size: 1rem;
    color: #fff;
}

.others-tile > span:last-child {
    color: #9b97c4;
    font-size: 0.84rem;
    line-height: 1.4;
}

.auth-gate-note {
    max-width: 520px;
    margin: 0 auto 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(77, 109, 255, 0.12);
    border: 1px solid rgba(77, 109, 255, 0.28);
    color: #d7d4ff;
    font-size: 0.92rem;
}

.page-visual-banner {
    height: 120px;
    border-radius: 18px;
    margin: 0 0 18px;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(201, 197, 239, 0.1);
}

#page-news .news-card,
#page-about .card {
    background: #12121c !important;
    border: 1px solid rgba(201, 197, 239, 0.1) !important;
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

#page-news .news-card-header {
    background: linear-gradient(90deg, rgba(61, 91, 255, 0.16), transparent);
}

#page-about .info-tab-btn {
    border-radius: 999px !important;
    border: 1px solid rgba(201, 197, 239, 0.12);
}

#page-about .info-tab-btn.active {
    background: #3d5bff !important;
    color: #fff !important;
}

.legal-doc {
    line-height: 1.65;
    color: #c9c5ef;
}
.legal-doc h1 {
    font-size: 1.35rem;
    color: #f6f3ff;
    margin: 0 0 10px;
}
.legal-doc > h1:first-child {
    display: none;
}
.legal-doc h2 {
    font-size: 1.12rem;
    color: #e8e4ff;
    margin: 22px 0 10px;
    padding-top: 4px;
}
.legal-doc h3 {
    font-size: 1rem;
    color: #ffd978;
    margin: 16px 0 8px;
}
.legal-doc p {
    margin: 0 0 10px;
}
.legal-doc ul,
.legal-doc ol,
.accordion-content-inner ul,
.accordion-content-inner ol {
    margin: 6px 0 12px;
    padding-left: 1.35em;
}
.legal-doc ul,
.accordion-content-inner ul {
    list-style: disc;
}
.legal-doc ol,
.accordion-content-inner ol {
    list-style: decimal;
}
.legal-doc li,
.accordion-content-inner li {
    margin: 4px 0;
    word-break: break-word;
}
.legal-doc li.is-nested,
.accordion-content-inner li.is-nested {
    margin-left: 1em;
    list-style: circle;
}
.legal-doc a,
.accordion-content-inner a {
    color: #9db7ff;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.legal-doc hr {
    border: 0;
    border-top: 1px solid rgba(201, 197, 239, 0.14);
    margin: 16px 0;
}
.accordion-content-inner {
    white-space: normal;
}
.accordion-content-inner h3 {
    font-size: 0.98rem;
    color: #ffd978;
    margin: 14px 0 8px;
}
.accordion-content-inner p {
    margin: 0 0 10px;
}

@media (max-width: 900px) {
    .play-layout,
    .help-grid,
    .zop-servers-row,
    .others-grid {
        grid-template-columns: 1fr !important;
    }
    .servers-gallery {
        grid-template-columns: 1fr 1fr;
    }
    .play-actions,
    .others-tile.wide {
        grid-column: auto;
        grid-template-columns: 1fr;
    }
    .zop-hero { min-height: 220px; max-height: 280px; }
}

@media (max-width: 720px) {
    .play-hero-inner,
    .servers-hero-inner { padding: 22px 16px; }
    .play-step { grid-template-columns: 40px 1fr; }
    .zop-server-detail {
        grid-template-columns: 1fr;
    }
    .zop-server-detail img.shot {
        height: 240px !important;
        min-height: 240px;
        max-height: 280px;
    }
}

/* Server avatars - fill the rounded square, don't "slip" inside */
.server-avatar {
    display: block;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 10px;
    background: #0b0b12;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.server-avatar img,
.zop-server-head img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 0 !important;
}

.zop-server-head {
    align-items: center !important;
}

.zop-server-head h3 {
    line-height: 1;
    display: flex;
    align-items: center;
}

.server-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.server-modal-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.server-modal-brand img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    flex-shrink: 0;
    background: #0b0b12;
}

.zop-server-detail img.shot {
    height: auto !important;
    min-height: 320px;
    max-height: 420px;
    border-radius: 18px;
    object-fit: cover;
    object-position: center 40%;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.server-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 22px;
}
.server-modal-actions .pixbtn {
    width: 100%;
    height: 46px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.03em;
    border: 0 !important;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
}
.server-modal-actions .pixbtn .pixico {
    width: 15px;
    height: 15px;
}

/* ── Cabinet ── */
.dash-wrap {
    padding-top: 8px;
}
.dash-hero {
    min-height: 180px;
    margin-bottom: 16px;
}
.dash-hero-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.dash-profile {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin-top: 16px;
}
.dash-profile .server-info-item {
    background: rgba(8, 8, 15, 0.55);
    border: 1px solid rgba(201, 197, 239, 0.1);
    border-radius: 12px;
    padding: 10px 12px;
    margin: 0;
    min-height: 64px;
    overflow: hidden;
    align-content: start;
}
.dash-comment-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
}
#dash-review-info[hidden] {
    display: none !important;
}
.dash-comment-open {
    background: none;
    border: 0;
    padding: 0;
    color: var(--zop-gold, #f0b429);
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}
.dash-comment-open:hover { color: #fff; }
.dash-panel {
    background: #101018;
    border: 1px solid rgba(201, 197, 239, 0.1);
    border-radius: 18px;
    padding: 16px;
}
.dash-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
#page-dashboard .tab-content > .card {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}
#play-content .play-layout {
    margin-top: 4px;
}
.connect-card {
    margin-top: 18px;
    padding: 16px;
    border-radius: 16px;
    background: var(--zop-panel);
    border: 1px solid var(--zop-stroke);
}
.connect-card h3 {
    margin: 0 0 10px;
    color: #ffd978;
    font-size: 1.02rem;
}
.connect-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(201, 197, 239, 0.1);
    font-size: 0.92rem;
}
.connect-row:last-child { border-bottom: 0; }
.connect-row code,
.connect-row .mono {
    font-family: var(--font-mono);
    color: #ffd978;
    word-break: break-all;
}
.connect-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}
.play-lock {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(240, 180, 41, 0.1);
    border: 1px solid rgba(240, 180, 41, 0.28);
    color: #f0edff;
}

/* ── Admin ── */
.admin-wrap { padding-top: 8px; }
.admin-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.admin-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}
.admin-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(8, 8, 15, 0.55);
    border: 1px solid rgba(201, 197, 239, 0.12);
    font-size: 0.82rem;
    color: #c9c5ef;
}
.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
    position: sticky;
    top: 8px;
    z-index: 6;
    background: rgba(10, 10, 16, 0.92);
    padding: 10px;
    border-radius: 14px;
    border: 1px solid rgba(201, 197, 239, 0.1);
    backdrop-filter: blur(8px);
}
.stat-card.is-click {
    cursor: pointer;
    transition: transform 0.12s ease, border-color 0.12s ease;
}
.stat-card.is-click:hover {
    border-color: #ffd978;
}
.reply-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 12px;
}
.reply-chip {
    border: 1px solid rgba(201, 197, 239, 0.18);
    background: #171722;
    color: #f0edff;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.78rem;
    cursor: pointer;
}
.reply-chip:hover { border-color: #ffd978; color: #ffd978; }
.shift-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 14px;
}
.template-row {
    display: grid;
    grid-template-columns: 140px 1fr auto;
    gap: 8px;
    margin-bottom: 8px;
    align-items: start;
}
.admin-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.admin-pane-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}
.admin-pane-head h3 {
    margin: 0 0 4px;
    font-size: 1.15rem;
}
.admin-pane-head .text-muted {
    margin: 0;
    max-width: 52ch;
    font-size: 0.85rem;
}
.admin-subh {
    margin: 18px 0 8px;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    color: #ffd978;
}
.admin-split {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
    gap: 18px;
    align-items: start;
}
.admin-preview {
    position: sticky;
    top: 86px;
    padding: 16px;
    border-radius: 14px;
    background: rgba(8, 8, 16, 0.7);
    border: 1px solid rgba(201, 197, 239, 0.12);
}
.admin-preview-feats {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}
.admin-preview-feat {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(201, 197, 239, 0.08);
}
.admin-preview-feat img {
    width: 72px;
    height: 52px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}
.admin-shot-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.admin-shot-preview {
    width: 160px;
    height: 108px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid rgba(201, 197, 239, 0.14);
    background: #101018;
}
.admin-preview-feat p {
    margin: 4px 0 0;
    font-size: 0.82rem;
    color: #c9c5ef;
}
.admin-status-box {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(61, 120, 234, 0.1);
    border: 1px solid rgba(61, 120, 234, 0.28);
    font-size: 0.9rem;
}
.admin-news-list {
    display: grid;
    gap: 8px;
}
.admin-news-item {
    display: grid;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(8, 8, 16, 0.55);
    border: 1px solid rgba(201, 197, 239, 0.1);
}
.feature-editor-card,
.rule-editor-card {
    margin-bottom: 12px;
    padding: 14px;
    border-radius: 14px;
    background: rgba(8, 8, 16, 0.45);
    border: 1px solid rgba(201, 197, 239, 0.1);
}
.admin-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.admin-empty-editor {
    padding: 16px;
    border-radius: 12px;
    border: 1px dashed rgba(201, 197, 239, 0.2);
    text-align: center;
}
#admin-editor-nav {
    position: sticky;
    top: 62px;
    z-index: 5;
    margin-bottom: 14px;
}

@media (max-width: 900px) {
    .dash-profile,
    .shift-grid,
    .admin-split {
        grid-template-columns: 1fr 1fr;
    }
    .template-row {
        grid-template-columns: 1fr;
    }
    .admin-preview { position: static; }
}
@media (max-width: 720px) {
    .dash-profile,
    .shift-grid,
    .admin-split {
        grid-template-columns: 1fr;
    }
}

/* Staff nicks: Alikpuzo (creator) / entiti937 (tech) */
.nick-badge {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
    vertical-align: baseline;
    max-width: 100%;
}
.nick-shimmer {
    display: inline-block;
    font-weight: 800;
    letter-spacing: 0.01em;
    background-size: 220% 100%;
    background-position: 40% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    animation: none;
}
.nick-shimmer.creator {
    background-image: linear-gradient(
        90deg,
        #163a9e 0%,
        #2f7bff 18%,
        #7ee8ff 36%,
        #d7f7ff 50%,
        #3db4ff 68%,
        #1d5ed8 84%,
        #163a9e 100%
    );
    filter: drop-shadow(0 0 3px rgba(70, 180, 255, 0.22));
}
.nick-shimmer.tech {
    background-image: linear-gradient(
        90deg,
        #6b4308 0%,
        #c47a12 16%,
        #ffd978 34%,
        #fff4c8 50%,
        #e8b84a 66%,
        #a86a10 84%,
        #6b4308 100%
    );
    filter: drop-shadow(0 0 3px rgba(255, 196, 80, 0.22));
}
.nick-role {
    font-weight: 600;
    font-size: 0.78em;
    letter-spacing: 0.01em;
    white-space: nowrap;
}
.nick-role.creator { color: #7ec8ff; }
.nick-role.tech { color: #e8c36a; }
.nick-role.web { color: #c4a7ff; }
.nick-link {
    text-decoration: none;
    color: inherit;
}
.nick-link:hover .nick-role { text-decoration: underline; }
.news-meta .nick-badge,
.review-user .nick-badge,
.admin-chip .nick-badge {
    gap: 5px;
}
.review-user {
    color: inherit;
}
@keyframes nick-shimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 220% 50%; }
}
@media (prefers-reduced-motion: reduce) {
    .nick-shimmer { animation: none; background-position: 40% 50%; }
}

.zop-reviews {
    min-height: 278px;
    max-width: 520px;
    height: 278px;
    padding: 10px 12px 8px;
}
.zop-reviews-head {
    margin-bottom: 6px;
    font-size: 0.82rem;
    flex-shrink: 0;
}
.zop-reviews-avg {
    color: #ffd978 !important;
    font-weight: 800 !important;
    font-size: 0.88rem !important;
}
.zop-reviews-body {
    flex: 1;
    min-height: 0;
    height: auto;
    position: relative;
    overflow: hidden;
}
.zop-reviews-track {
    position: relative;
    height: 100%;
    min-height: 0;
}
.zop-reviews-track .review-slide {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.zop-reviews-track .review-slide.is-on {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.zop-reviews-body .review-card {
    height: 100%;
    min-width: 0;
    max-width: none;
    padding: 8px 10px;
    cursor: pointer;
    border-radius: 12px;
    transition: background 0.16s ease;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}
.zop-reviews-body .review-card:hover {
    background: rgba(201, 197, 239, 0.06);
}
.zop-reviews-body .review-header {
    flex-shrink: 0;
    flex-wrap: nowrap;
    margin-bottom: 6px;
    align-items: flex-start;
    min-height: 0;
}
.zop-reviews-body .review-user {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.82rem;
    line-height: 1.25;
    max-width: 72%;
}
.zop-reviews-body .review-comment {
    font-size: 0.82rem;
    line-height: 1.35;
    margin: 4px 0 0;
    flex: 1;
    min-height: 0;
    max-height: 4.05em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.zop-reviews-more {
    background: none;
    border: 0;
    color: var(--zop-gold, #f0b429);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    margin-top: auto;
    display: inline-block;
    flex-shrink: 0;
}
.zop-reviews-body .review-footer {
    flex-shrink: 0;
    padding-top: 6px;
    margin-top: 4px;
}
.zop-reviews-foot {
    flex-shrink: 0;
}
.zop-reviews-body > .review-card {
    height: 100%;
    min-width: 0;
    max-width: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.review-full-modal {
    max-width: 560px;
}
.review-full-modal .review-full-text {
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.65;
    color: var(--text-secondary);
    font-size: 0.98rem;
    margin: 12px 0 0;
}
.ticket-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: rgba(201, 197, 239, 0.12);
    color: #d8d4ff;
    margin-right: 6px;
    white-space: nowrap;
}
.ticket-tag.minecraft { background: rgba(61, 120, 234, 0.22); color: #c9dbff; }
.ticket-tag.launcher { background: rgba(123, 97, 255, 0.22); color: #d4ccff; }
.ticket-tag.bug { background: rgba(226, 61, 61, 0.2); color: #ffc4c4; }
.ticket-tag.crash { background: rgba(240, 120, 32, 0.22); color: #ffd0b0; }
.ticket-tag.account { background: rgba(240, 180, 41, 0.18); color: #ffe7a8; }
.ticket-tag.other { background: rgba(201, 197, 239, 0.12); color: #d8d4ff; }
.navbar-tools #notification-badge {
    display: none;
    position: absolute;
    top: -3px;
    right: -3px;
    background: var(--color-danger);
    color: white;
    border-radius: 50%;
    font-size: 0.62rem;
    padding: 2px 5px;
    min-width: 16px;
    text-align: center;
    font-weight: 700;
    line-height: 1.2;
}
.zop-reviews-nav {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 6px;
    min-height: 28px;
    flex-shrink: 0;
}
.zop-reviews-nav[hidden] {
    display: flex !important;
    visibility: hidden;
    pointer-events: none;
}
.zop-reviews-nav button {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid rgba(201, 197, 239, 0.16);
    background: #1c1c28;
    color: #fff;
    cursor: pointer;
}
.rules-server-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
}
.rules-server-switch .pixbtn.is-on {
    box-shadow: 0 0 0 2px #ffd978;
}
.app-view-card {
    background: rgba(8, 8, 15, 0.55);
    border: 1px solid rgba(201, 197, 239, 0.12);
    border-radius: 14px;
    padding: 14px 16px;
    margin-top: 12px;
}
.app-view-card h4 {
    margin: 0 0 10px;
    color: #ece9ff;
}
.app-view-card dt {
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-top: 10px;
}
.app-view-card dd {
    margin: 4px 0 0;
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--text-secondary);
    line-height: 1.5;
}
.app-view-comment {
    margin-top: 14px;
    padding: 12px;
    border-radius: 10px;
    background: rgba(240, 180, 41, 0.08);
    border: 1px solid rgba(240, 180, 41, 0.22);
    overflow: hidden;
}
.app-view-comment-preview {
    margin: 8px 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    line-height: 1.45;
    color: var(--text-secondary);
}
.launcher-phone-note {
    display: none;
    margin: 10px 0 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.4;
}
body.is-phone .launcher-pc-only {
    display: none !important;
}
body.is-phone .launcher-phone-note {
    display: block;
}
.news-tag.server {
    background: rgba(123, 97, 255, 0.22);
    color: #d4ccff;
}

.navbar.zop-nav.nav-compact .navbar-links,
.navbar.zop-nav.nav-compact .navbar-links.zop-nav-links {
    display: flex !important;
}
.navbar.zop-nav.nav-compact .navbar-links .pixbtn:not(.ico) {
    height: 34px;
    padding: 0 12px;
    font-size: 13px;
}
@media (max-width: 1280px) {
    .navbar.zop-nav .navbar-links,
    .navbar.zop-nav .navbar-links.zop-nav-links {
        display: flex !important;
    }
}
@media (max-width: 768px) {
    .navbar.zop-nav .navbar-links,
    .navbar.zop-nav .navbar-links.zop-nav-links {
        display: flex !important;
    }
}
