/* ZoP-WORLD redesign from GIMP mockups (то что тебе нужно) */
@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/manrope-cyrillic-400.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/manrope-latin-400.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("/fonts/manrope-cyrillic-500.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("/fonts/manrope-latin-500.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/fonts/manrope-cyrillic-600.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/fonts/manrope-latin-600.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/fonts/manrope-cyrillic-700.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/fonts/manrope-latin-700.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url("/fonts/manrope-cyrillic-800.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url("/fonts/manrope-latin-800.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Unbounded";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("/fonts/unbounded-cyrillic-500.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "Unbounded";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("/fonts/unbounded-latin-500.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Unbounded";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/fonts/unbounded-cyrillic-700.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "Unbounded";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/fonts/unbounded-latin-700.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Unbounded";
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url("/fonts/unbounded-cyrillic-800.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "Unbounded";
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url("/fonts/unbounded-latin-800.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --bg-primary: #08080f;
    --bg-secondary: #0c0c16;
    --bg-card: #14141f;
    --bg-input: #101018;
    --bg-hover: #1c1c2a;
    --bg-active: #242436;
    --accent-primary: #4d6dff;
    --accent-hover: #3a56e8;
    --accent-light: #8ea0ff;
    --accent-dark: #2a3db8;
    --accent-glow: rgba(77, 109, 255, 0.28);
    --text-primary: #c9c5ef;
    --text-secondary: #9b97c4;
    --text-muted: #6a668c;
    --zop-lavender: #c9c5ef;
    --zop-ink: #08080f;
    --zop-panel: #12121c;
    --zop-blue: #3d5bff;
    --zop-orange: #f37a1f;
    --zop-purple: #6b4dff;
    --zop-red: #c62828;
    --header-height: 72px;
    --font-primary: "Manrope", "Segoe UI", sans-serif;
    --font-display: "Unbounded", "Manrope", sans-serif;
}

html, body {
    background: var(--zop-ink);
    color: var(--zop-lavender);
    font-family: var(--font-primary);
}

body {
    background: #08080f;
    padding-bottom: 0;
}

.demo-banner { display: none !important; }

/* ─── NAV ─── */
.navbar.zop-nav,
.navbar {
    position: sticky;
    top: 0 !important;
    z-index: 200;
    height: var(--header-height);
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    background: rgba(10, 10, 18, 0.94);
    border-bottom: 1px solid rgba(201, 197, 239, 0.08);
    border-radius: 0 !important;
    backdrop-filter: blur(16px);
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr) max-content;
    align-items: center;
    column-gap: 12px;
    padding: 0 28px;
    box-shadow: none;
}

.navbar-left {
    display: flex;
    align-items: center;
    justify-self: start;
    min-width: 0;
}

.navbar-center {
    position: static;
    left: auto;
    transform: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: nowrap !important;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    z-index: 2;
    pointer-events: none;
}
.navbar-center .pixbtn {
    pointer-events: auto;
    flex: 0 0 auto;
}

.navbar.nav-compact {
    grid-template-columns: max-content max-content;
    justify-content: space-between;
}
.navbar.nav-compact .navbar-center {
    display: none !important;
}
.navbar.nav-compact .mobile-menu-btn {
    display: flex !important;
}

.navbar.nav-measuring {
    grid-template-columns: max-content minmax(0, 1fr) max-content;
}
.navbar.nav-measuring .navbar-center {
    display: flex !important;
    visibility: hidden;
    pointer-events: none;
}
.navbar.nav-measuring .navbar-links,
.navbar.nav-measuring .navbar-links.zop-nav-links {
    display: flex !important;
    visibility: hidden;
}
.navbar.nav-measuring .mobile-menu-btn {
    display: none !important;
}

.navbar-right {
    display: flex;
    align-items: center;
    justify-self: end;
    gap: 8px;
    min-width: 0;
}

.zop-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--zop-lavender);
    flex-shrink: 0;
    cursor: pointer;
}

.zop-brand-text {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
    color: #ece9ff;
    white-space: nowrap;
}

.zop-brand-pixel { display: none; }

.navbar-logo,
.navbar-brand {
    color: #ece9ff !important;
}

.zop-nav-links.navbar-links,
.navbar-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    justify-content: flex-end;
    background: none;
    box-shadow: none;
}

.navbar-links .nav-btn {
    background: transparent;
    border: 0;
    color: var(--zop-lavender);
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 8px 14px;
    border-radius: 999px;
    box-shadow: none;
}

.navbar-links .nav-btn:hover,
.navbar-links .nav-btn.active {
    background: rgba(201, 197, 239, 0.08);
    color: #fff;
}

.navbar-links .nav-btn.zop-login-btn,
.zop-login-btn {
    background: #1a1a28 !important;
    border: 1px solid rgba(201, 197, 239, 0.12) !important;
    color: #fff !important;
    padding: 8px 22px !important;
    margin-left: 10px;
    min-width: 96px;
    border-radius: 999px !important;
}

.navbar-links .nav-btn.admin-btn {
    color: #ffb74d;
}

.navbar-server-status { display: none; }

.mobile-menu-btn {
    background: #1a1a28;
    border: 1px solid rgba(201, 197, 239, 0.12);
    color: #fff;
    border-radius: 999px;
}

.mobile-menu-overlay {
    background: rgba(8, 8, 15, 0.97);
}

/* ─── LAYOUT ─── */
.main-content {
    width: 100%;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.page {
    display: none;
    padding: 0 0 64px;
}

.page.active { display: block; }

.zop-wrap {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.zop-back {
    display: inline-flex;
    margin: 22px 0 8px;
    color: var(--zop-lavender);
    font-weight: 700;
    font-size: 0.95rem;
    background: none;
    border: 0;
    cursor: pointer;
    font-family: inherit;
}
.zop-back:hover { color: #fff; }

.zop-h1 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    font-weight: 800;
    color: #f0edff;
    margin: 0 0 18px;
    letter-spacing: -0.02em;
}

.zop-h2 {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    font-weight: 800;
    color: #f0edff;
    margin: 36px 0 16px;
}

.zop-lead {
    color: var(--zop-lavender);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 920px;
}

/* ─── HERO ─── */
.zop-hero {
    position: relative;
    width: 100%;
    min-height: clamp(260px, 34vw, 500px);
    max-height: 500px;
    overflow: hidden;
    isolation: isolate;
}

.zop-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: #08080f;
    background-image:
        linear-gradient(180deg, rgba(8, 8, 15, 0.18) 0%, rgba(8, 8, 15, 0.38) 55%, #08080f 100%),
        url("/assets/banner-night.webp");
    background-repeat: no-repeat;
    background-size: auto, 100% auto;
    background-position: 0 0, center 18%;
    z-index: -1;
}

.zop-hero-inner {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 54px 0 42px;
}

.zop-hero-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.55rem, 4.2vw, 2.85rem);
    line-height: 1.12;
    color: #f4f1ff;
    text-transform: uppercase;
    max-width: 920px;
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.55);
}

.zop-hero-sub {
    margin-top: 10px;
    color: #5c5878;
    font-weight: 800;
    font-size: clamp(0.95rem, 1.6vw, 1.15rem);
}

/* ─── HOME GRID ─── */
.zop-home-grid {
    display: grid;
    grid-template-columns: minmax(0, 560px) minmax(0, 520px);
    gap: 28px;
    margin-top: 8px;
    align-items: start;
    justify-content: start;
}

.zop-important-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.zop-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 64px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
    cursor: pointer;
    text-decoration: none;
    font-family: var(--font-primary);
    transition: transform 0.15s ease, filter 0.15s ease;
}
.zop-action:hover { filter: brightness(1.08); color: #fff; }
.zop-action img { height: 28px; width: auto; }

.zop-sprite {
    display: block;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    line-height: 0;
}
.zop-sprite img {
    width: 100%;
    height: auto;
    display: block;
}

.zop-action.blue { background: #2f57f2; }
.zop-action.orange { background: #f37a1f; }
.zop-action.purple { background: #6b4dff; }
.zop-action.red { background: #c62828; }
.zop-action.dark { background: #1c1c28; border: 1px solid rgba(201, 197, 239, 0.16); }

.zop-reviews {
    background: #12121c;
    border: 1px solid rgba(201, 197, 239, 0.08);
    width: 100%;
    max-width: 520px;
    height: 278px;
    min-height: 278px;
    max-height: 278px;
    display: flex;
    flex-direction: column;
    padding: 14px 16px 12px;
    overflow: hidden;
    box-sizing: border-box;
}

.zop-reviews-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    color: #ece9ff;
    font-weight: 800;
    margin-bottom: 8px;
}

.zop-reviews-head span { color: var(--text-muted); font-weight: 600; font-size: 0.9rem; }

.zop-reviews-body {
    flex: 1;
    background: #0d0d16;
    min-height: 0;
    overflow: hidden;
}

.zop-reviews-body .review-card {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 12px;
}

.zop-reviews-foot {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.zop-linkish {
    background: none;
    border: 0;
    color: var(--zop-lavender);
    font-size: 0.82rem;
    cursor: pointer;
    font-family: inherit;
}
.zop-linkish:hover { color: #fff; }

.zop-servers-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 280px));
    gap: 18px;
    margin-top: 8px;
}

.zop-hint {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: -8px 0 14px;
}

.zop-server-card {
    background: #151522;
    border: 1px solid rgba(201, 197, 239, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 360px;
}

.zop-server-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 14px 10px;
    background:
        linear-gradient(180deg, rgba(20, 16, 12, 0.2), rgba(21, 21, 34, 0.92)),
        url("/assets/hero.webp") center / cover;
}

.zop-server-head.kvazar {
    background:
        linear-gradient(180deg, rgba(18, 12, 28, 0.15), rgba(21, 21, 34, 0.92)),
        url("/assets/hero-alt.webp") center / cover;
}

.zop-server-head img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.zop-server-head h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: #fff;
    margin: 0;
}

.zop-server-card p {
    padding: 12px 14px 8px;
    color: #e8e5ff;
    font-size: 0.92rem;
    line-height: 1.45;
    flex: 1;
}

.zop-server-card .zop-more {
    display: block;
    margin: 8px 14px 14px;
    background: #3d5bff;
    color: #fff;
    text-align: center;
    font-weight: 800;
    padding: 10px 12px;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    border-radius: 999px;
}
.zop-server-card .zop-more:hover { background: #2f4af0; color: #fff; }

/* ─── HOW TO PLAY ─── */
.zop-steps { margin: 8px 0 24px; }
.zop-step { margin: 0 0 22px; }
.zop-step h3 {
    color: #f0edff;
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0 0 6px;
}
.zop-step p {
    color: var(--zop-lavender);
    margin: 0;
    line-height: 1.55;
    max-width: 720px;
}
.zop-video-note {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: -8px 0 18px;
}

.zop-video-slot {
    width: min(640px, 100%);
    aspect-ratio: 16 / 9;
    background: #101018;
    border: 1px dashed rgba(201, 197, 239, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    margin: 0 0 28px;
    font-size: 0.9rem;
}

/* ─── SUPPORT / OTHER ─── */
.zop-other-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-width: 620px;
    margin: 16px 0 10px;
}

.zop-other-btn {
    background: #161622;
    border: 1px solid rgba(201, 197, 239, 0.12);
    color: #ddd9ff;
    font-weight: 800;
    padding: 16px 12px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
}
.zop-other-btn:hover { background: #1d1d2c; color: #fff; }
.zop-other-btn.wide { grid-column: 1 / -1; }

.zop-help h3 {
    color: #f0edff;
    font-size: 1.15rem;
    margin: 18px 0 8px;
}
.zop-help p, .zop-help li {
    color: var(--zop-lavender);
    line-height: 1.55;
}
.zop-help ul { padding-left: 18px; list-style: disc; margin: 0 0 10px; }
.zop-help a { color: #4d6dff; font-weight: 700; }

/* ─── AUTH ─── */
#page-auth {
    min-height: calc(100vh - var(--header-height) - 180px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px 16px 80px;
}
#page-auth.active { display: flex; }

.zop-auth-shell {
    display: grid;
    grid-template-columns: minmax(240px, 320px) minmax(300px, 420px);
    gap: 32px;
    align-items: stretch;
    width: min(820px, 100%);
}

.zop-auth-card {
    background: #141422;
    border: 1px solid rgba(201, 197, 239, 0.12);
    border-radius: 22px;
    padding: 26px 24px 22px;
    max-width: none !important;
    margin: 0 !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.zop-auth-card .card-header { border: 0; padding: 0 0 10px; }
.zop-auth-card .card-title {
    font-family: var(--font-display);
    font-size: 1.28rem;
    color: #f0edff;
}

.zop-auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}
.zop-auth-tabs button {
    border: 0;
    padding: 11px 8px;
    font-weight: 800;
    color: #ddd9ff;
    background: #1a1730;
    cursor: pointer;
    font-family: inherit;
    border-radius: 14px;
}
.zop-auth-tabs button.active { background: #5b5fc7; color: #fff; }

#page-auth .form-group { margin-bottom: 10px; }
#page-auth .form-label {
    color: var(--zop-lavender);
    font-size: 0.78rem;
    letter-spacing: 0.02em;
}
#page-auth .form-input,
#page-auth .form-textarea {
    background: #0c0c14;
    border: 1px solid rgba(201, 197, 239, 0.14);
    color: #c9c5ef;
    border-radius: 12px;
    padding: 11px 14px;
}
#page-auth .search-input-wrapper .form-input { border-radius: 12px; }
#page-auth .form-checkbox span { font-size: 0.82rem !important; line-height: 1.45 !important; }
#page-auth #auth-form .form-label { display: none; }
#page-auth #auth-nick-hint { display: none; }
#page-auth .captcha-box .form-input {
    max-width: 64px;
    width: 64px;
    height: 34px;
    padding: 0 8px;
    border-radius: 10px;
    box-sizing: border-box;
}
.zop-auth-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}
#page-auth .btn-primary,
#page-auth #auth-btn {
    background: #9aa3ff;
    border: 0;
    color: #fff;
    box-shadow: 0 10px 22px rgba(90, 100, 200, 0.28);
    font-weight: 800;
    border-radius: 14px;
    min-width: 168px;
    padding: 12px 22px;
}
#page-auth #auth-btn:hover { background: #adb4ff; }
#page-auth #auth-switch { display: none; }

.zop-why {
    background: linear-gradient(180deg, #161624 0%, #101018 100%);
    border: 1px solid rgba(201, 197, 239, 0.1);
    border-radius: 22px;
    padding: 28px 22px;
    display: none;
}
.zop-why.visible { display: flex; flex-direction: column; justify-content: center; }
.zop-why-brand {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: 0.04em;
    color: #ece9ff;
    margin-bottom: 18px;
}
.zop-why h3 { color: #9a9a9a; font-size: 1.05rem; margin: 0 0 10px; font-weight: 600; }
.zop-why p { color: var(--zop-lavender); font-size: 0.94rem; line-height: 1.55; margin: 0 0 14px; }
.zop-why ul {
    margin: 0;
    padding-left: 18px;
    color: #c9c5ef;
    font-size: 0.9rem;
    line-height: 1.55;
}
.zop-why li { margin-bottom: 6px; }

.captcha-box {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px 10px;
    margin: 0;
    background: rgba(18, 18, 28, 0.7);
    border: 1px solid rgba(201, 197, 239, 0.12);
    border-radius: 12px;
}
.captcha-inline-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #8d89b0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.captcha-row { display: contents; }
.captcha-q { font-weight: 600; color: var(--accent-light); font-size: 0.88rem; }
.captcha-box .form-input {
    max-width: 72px;
    width: 72px;
    padding: 6px 8px;
    border-radius: 10px;
}
.captcha-refresh {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 10px;
    background: #1a1730;
    color: #ddd9ff;
    cursor: pointer;
    font-size: 0.95rem;
}
.captcha-refresh:hover { background: #2a2650; }
.captcha-box .form-error {
    flex-basis: 100%;
    margin: 0;
    font-size: 0.78rem;
}

/* ─── SERVER MODAL ─── */
.zop-modal .modal {
    background: #12121c;
    border: 1px solid rgba(201, 197, 239, 0.12);
    max-width: 920px;
}
.zop-server-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 1.25fr);
    gap: 22px;
    align-items: stretch;
}
.zop-server-detail .stack { display: flex; flex-direction: column; gap: 8px; }
.zop-server-detail img.shot {
    width: 100%;
    height: 100%;
    min-height: 320px;
    max-height: 420px;
    object-fit: cover;
    background: #0b0b12;
}

/* ─── FOOTER ─── */
.footer.zop-footer,
.footer {
    background: #101018;
    border-top: 1px solid rgba(201, 197, 239, 0.08);
    margin-top: 0;
    padding: 28px 0 18px;
}

.zop-footer .footer-content,
.footer-content {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr;
    gap: 24px;
}

.footer-section h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 8px;
}
.footer-section a,
.footer-section p {
    color: #6a668c;
    font-size: 0.88rem;
}
.footer-section a:hover { color: #c9c5ef; }
.footer-bottom {
    width: min(1180px, calc(100% - 40px));
    margin: 18px auto 0;
    color: #454545;
    border-top: 0;
    font-size: 0.8rem;
}

/* ─── CARDS / FORMS restyle so cabinet still works ─── */
.card {
    background: #12121c;
    border: 1px solid rgba(201, 197, 239, 0.08);
    box-shadow: none;
}
.btn-primary {
    background: var(--zop-blue);
    border: 0;
}
.btn-primary:hover { background: var(--accent-hover); }
.form-input, .form-select, .form-textarea {
    background: #0c0c14;
    border-color: rgba(201, 197, 239, 0.12);
    color: var(--zop-lavender);
}

.hidden-stub { display: none !important; }

/* dashboard / admin keep usable padding */
#page-dashboard.active,
#page-admin.active,
#page-news.active,
#page-about.active {
    width: min(1180px, calc(100% - 40px));
    margin: 24px auto 40px;
    padding: 0;
}

.navbar.nav-compact .navbar-links,
.navbar.nav-compact .navbar-links.zop-nav-links {
    display: none !important;
}

.navbar-right {
    flex-wrap: nowrap;
}

.navbar-notifications {
    flex-shrink: 0;
    position: relative;
}

.app-card-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.app-card-meta {
    gap: 10px;
}

.app-admin-comment {
    background: rgba(255, 217, 120, 0.08);
    border: 1px solid rgba(255, 217, 120, 0.28);
    padding: 14px;
    border-radius: 10px;
    margin-top: 8px;
}
.app-admin-comment strong {
    display: block;
    color: #ffd978;
    margin-bottom: 8px;
}
.app-admin-comment p {
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0;
}

@media (max-width: 1280px) {
    .navbar.zop-nav {
        display: grid;
        grid-template-columns: max-content max-content;
        justify-content: space-between;
        padding: 8px 14px;
    }
    .navbar-center { display: none !important; }
    .mobile-menu-btn { display: flex !important; }
    .navbar-links,
    .navbar-links.zop-nav-links { display: none !important; }
}

@media (max-width: 1199px) {
    .zop-home-grid { grid-template-columns: 1fr; }
    .zop-reviews { max-width: 520px; }
}
@media (max-width: 560px) {
    .zop-reviews { max-width: 100%; }
}

@media (max-width: 960px) {
    .zop-important-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .zop-auth-shell,
    .zop-server-detail,
    .footer-content,
    .zop-footer .footer-content {
        grid-template-columns: 1fr;
    }
    .navbar { padding: 0 14px; }
    .zop-brand-text { font-size: 1rem; }
    .zop-hero { min-height: 220px; max-height: 280px; }
    .zop-other-grid { max-width: none; }
}

@media (max-width: 420px) {
    .zop-brand-text { display: none; }
    #notification-dropdown {
        min-width: calc(100vw - 20px) !important;
        max-width: calc(100vw - 20px) !important;
        right: 0;
        left: auto;
    }
}
