:root {
    --bg: #ecf4ff;
    --bg2: #fff4df;
    --text: #132136;
    --muted: #4a5e76;
    --accent: #ed6a3d;
    --accent-2: #1d8f8a;
    --card: rgba(255, 255, 255, 0.86);
    --card-border: rgba(20, 32, 51, 0.12);
    --nav-bg: linear-gradient(115deg, rgba(17, 38, 66, 0.92), rgba(20, 31, 50, 0.88));
    --table-head: rgba(14, 40, 71, 0.9);
    --hero-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(229, 245, 255, 0.9));
    --hero-panel-bg: rgba(212, 241, 238, 0.9);
    --hero-panel-text: #123f4b;
    --ok: #0d8156;
    --warn: #9d6700;
    --err: #a62b1f;
}

body[data-theme="dark"] {
    --bg: #0f1724;
    --bg2: #1b2432;
    --text: #edf2ff;
    --muted: #b8c7dc;
    --accent: #ff7f52;
    --accent-2: #38b8b0;
    --card: rgba(20, 34, 54, 0.92);
    --card-border: rgba(164, 193, 225, 0.16);
    --nav-bg: linear-gradient(115deg, rgba(9, 17, 28, 0.94), rgba(16, 25, 39, 0.94));
    --table-head: rgba(7, 14, 24, 0.96);
    --hero-bg: linear-gradient(135deg, rgba(7, 18, 33, 0.96), rgba(10, 26, 44, 0.96));
    --hero-panel-bg: rgba(167, 214, 212, 0.96);
    --hero-panel-text: #122631;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--text);
    font-family: "Outfit", "Segoe UI", sans-serif;
    line-height: 1.55;
    background: radial-gradient(circle at 10% -10%, #cde3ff 0%, transparent 38%),
        radial-gradient(circle at 95% 0%, #ffe0b5 0%, transparent 35%),
        linear-gradient(135deg, var(--bg), var(--bg2));
    min-height: 100vh;
}

.bg-shape {
    position: fixed;
    z-index: -1;
    width: 320px;
    height: 320px;
    filter: blur(14px);
    opacity: 0.32;
    border-radius: 50%;
}

.shape-a {
    background: #3ab7a4;
    top: 12%;
    right: -100px;
}

.shape-b {
    background: #f6a14e;
    bottom: 8%;
    left: -120px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 1rem;
}

.nav-shell {
    max-width: 1280px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    color: #fff;
    text-decoration: none;
    font-family: "Sora", sans-serif;
    font-weight: 800;
    letter-spacing: 0.04em;
    font-size: 1.15rem;
}

.main-menu {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    color: #fff;
    padding: 0.34rem 0.65rem;
    cursor: pointer;
}

.main-menu a {
    color: #eaf2ff;
    text-decoration: none;
    font-weight: 500;
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    transition: background 160ms ease;
}

.main-menu a:hover {
    background: rgba(255, 255, 255, 0.16);
}

/* Dropdown Menüs */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    color: #eaf2ff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    font-weight: 500;
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    cursor: pointer;
    transition: background 160ms ease;
    font-size: inherit;
    font-family: inherit;
}

.nav-dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.22);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.3rem;
    background: rgba(10, 20, 35, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    backdrop-filter: blur(12px);
    min-width: 160px;
    display: none;
    flex-direction: column;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
    z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    display: flex;
}

.nav-dropdown-menu a {
    color: #eaf2ff;
    padding: 0.6rem 1rem;
    text-decoration: none;
    border-radius: 0;
    transition: background 140ms ease;
}

.nav-dropdown-menu a:first-child {
    border-radius: 11px 11px 0 0;
}

.nav-dropdown-menu a:last-child {
    border-radius: 0 0 11px 11px;
}

.nav-dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.12);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: #fff;
    margin: 4px auto;
}

.container {
    max-width: 1280px;
    margin: 1.4rem auto 2.4rem;
    padding: 0 1.15rem;
}

.container > section {
    margin-bottom: 1.2rem;
}

h1,
h2,
h3 {
    margin-top: 0;
    font-family: "Sora", sans-serif;
}

h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    margin-bottom: 0.65rem;
}

h2 {
    font-size: clamp(1.35rem, 2vw, 1.9rem);
    line-height: 1.2;
}

.hero {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    border-radius: 24px;
    padding: 2.1rem;
    border: 1px solid var(--card-border);
    background: var(--hero-bg);
    box-shadow: 0 16px 42px rgba(19, 35, 58, 0.13);
}

.hero-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.hero-panel {
    border-radius: 18px;
    border: 1px dashed rgba(29, 143, 138, 0.45);
    background: var(--hero-panel-bg);
    color: var(--hero-panel-text);
    padding: 0.9rem;
}

.badge {
    display: inline-block;
    margin: 0 0 0.7rem;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #0f4c5a;
    padding: 0.34rem 0.62rem;
    border-radius: 999px;
    background: rgba(61, 173, 226, 0.21);
}

.page-header {
    margin-bottom: 0.7rem;
}

.grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.two-col {
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
}

.stack-lg {
    display: grid;
    gap: 1.2rem;
}

.card {
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 1.2rem;
    background: var(--card);
    backdrop-filter: blur(9px);
    box-shadow: 0 12px 24px rgba(20, 32, 51, 0.08);
}

.tilt {
    transition: transform 170ms ease;
}

.tilt:hover {
    transform: translateY(-3px) rotate(-0.2deg);
}

.catalog {
    margin-top: 1rem;
}

.catalog ul {
    padding: 0;
    margin: 0;
    list-style: none;
    display: grid;
    gap: 0.5rem;
}

.catalog li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.6rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px dashed rgba(33, 53, 85, 0.18);
}

.btn,
button {
    border: 0;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.3rem;
    border-radius: 12px;
    padding: 0.62rem 1rem;
    font-family: "Outfit", sans-serif;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(120deg, var(--accent), #ff855f);
    cursor: pointer;
    transition: transform 130ms ease, filter 130ms ease;
}

.btn:hover,
button:hover {
    transform: translateY(-1px);
    filter: saturate(1.1);
}

.btn.large {
    padding: 0.8rem 1.25rem;
}

.btn.secondary {
    background: linear-gradient(120deg, #287377, #40a0a4);
}

.btn.danger {
    background: linear-gradient(120deg, #9f2f2a, #ce4c42);
}

.btn.ghost {
    border: 1px solid rgba(20, 32, 51, 0.18);
    background: transparent;
    color: var(--text);
}

body[data-theme="dark"] .btn.ghost {
    border-color: rgba(186, 207, 235, 0.4);
    color: #eaf1ff;
}

.main-menu .theme-toggle {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    color: #fff;
    padding: 0.34rem 0.65rem;
    line-height: 1;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.selection-block {
    display: grid;
    gap: 0.55rem;
}

.selection-block h3 {
    margin: 0;
    font-size: 1rem;
}

.selection-grid,
.package-card-grid {
    display: grid;
    gap: 0.6rem;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.package-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.select-card,
.package-select-card {
    border: 1px solid rgba(20, 32, 51, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--text);
    padding: 0.7rem;
    text-align: left;
    display: grid;
    gap: 0.2rem;
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.select-card:hover,
.package-select-card:hover {
    transform: translateY(-1px);
    border-color: rgba(29, 143, 138, 0.5);
}

.select-card.is-selected,
.package-select-card.is-selected {
    border: 2px solid var(--accent-2);
    box-shadow: 0 0 0 3px rgba(29, 143, 138, 0.14);
}

.select-card.is-disabled,
.package-select-card.is-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.select-card-icon {
    font-size: 1.35rem;
}

.region-logo-stack {
    position: relative;
    width: 52px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.15rem;
}

.region-flag-main {
    width: 52px;
    height: 36px;
    border-radius: 9px;
    border: 1px solid rgba(20, 32, 51, 0.24);
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(20, 32, 51, 0.18);
}

.region-city-thumb {
    position: absolute;
    right: -4px;
    bottom: -3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.86);
    object-fit: cover;
    background: rgba(14, 25, 40, 0.85);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.32);
}

.game-logo-tiny,
.game-logo-small,
.game-logo-medium {
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(20, 32, 51, 0.2);
    vertical-align: middle;
    margin-right: 0.35rem;
}

.game-logo-tiny {
    width: 24px;
    height: 24px;
}

.game-logo-small {
    width: 38px;
    height: 38px;
}

.game-logo-medium {
    width: 52px;
    height: 52px;
    margin-right: 0;
}

.select-card-title {
    font-weight: 700;
}

.select-card-sub {
    font-size: 0.84rem;
    color: var(--muted);
}

.package-select-title {
    font-weight: 800;
}

.package-select-spec,
.package-select-desc {
    color: var(--muted);
    font-size: 0.88rem;
}

.package-select-price {
    font-weight: 700;
    color: var(--accent-2);
}

.visually-hidden-block {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.field-item {
    display: grid;
    gap: 0.3rem;
}

.field-item label {
    font-size: 0.83rem;
    color: var(--muted);
    font-weight: 700;
    letter-spacing: 0.01em;
}

.checkbox-list {
    display: grid;
    gap: 0.35rem;
    max-height: 160px;
    overflow: auto;
    border: 1px solid rgba(20, 32, 51, 0.2);
    border-radius: 10px;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.92);
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.checkbox-item input[type="checkbox"] {
    width: auto;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid rgba(20, 32, 51, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
    padding: 0.6rem;
    color: var(--text);
    font: inherit;
}

select[multiple] {
    min-height: 110px;
}

input[type="range"] {
    appearance: none;
    height: 8px;
    border-radius: 999px;
    border: 0;
    background: linear-gradient(90deg, var(--accent-2), #6ac7d5);
    padding: 0;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: var(--accent);
    cursor: pointer;
}

input[disabled] {
    opacity: 0.75;
}

body[data-theme="dark"] input,
body[data-theme="dark"] select,
body[data-theme="dark"] textarea {
    background: rgba(14, 25, 40, 0.95);
    border-color: rgba(172, 197, 228, 0.3);
}

body[data-theme="dark"] .select-card,
body[data-theme="dark"] .package-select-card {
    background: rgba(14, 25, 40, 0.95);
    border-color: rgba(172, 197, 228, 0.3);
}

body[data-theme="dark"] .checkbox-list {
    background: rgba(14, 25, 40, 0.95);
    border-color: rgba(172, 197, 228, 0.3);
}

.hint {
    color: var(--muted);
    margin: 0.1rem 0 0.4rem;
    font-size: 0.92rem;
}

#custom-estimate-hint {
    margin-top: 0.2rem;
    padding: 0.45rem 0.6rem;
    border-radius: 10px;
    border: 1px solid rgba(29, 143, 138, 0.28);
    background: rgba(29, 143, 138, 0.08);
    color: var(--hero-panel-text);
    font-weight: 700;
}

table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
}

th,
td {
    border-bottom: 1px solid rgba(20, 32, 51, 0.1);
    text-align: left;
    padding: 0.7rem;
    vertical-align: top;
}

th {
    background: var(--table-head);
    color: #eef5ff;
    font-weight: 600;
}

.admin-actions,
.admin-inline-form {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    align-items: center;
}

.package-form-grid {
    margin-bottom: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.region-form-grid {
    margin-bottom: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.form-grid-compact {
    margin-bottom: 1rem;
    grid-template-columns: 2fr 2fr 1fr auto;
}

.package-edit-grid {
    display: grid;
    gap: 0.45rem;
    grid-template-columns: 1.1fr 1fr 90px 125px 90px 1.2fr 110px 120px;
    align-items: center;
}

.table-wrap {
    overflow-x: auto;
    border-radius: 12px;
}

.accordion-list {
    display: grid;
    gap: 0.85rem;
}

.accordion-item {
    border: 1px solid var(--card-border);
    border-radius: 14px;
    background: color-mix(in srgb, var(--card) 92%, transparent);
    overflow: hidden;
}

.accordion-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1rem;
    font-weight: 700;
}

.accordion-item summary::-webkit-details-marker {
    display: none;
}

.accordion-title {
    font-size: 1.05rem;
}

.accordion-title-wrap {
    display: grid;
}

.accordion-sub {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.accordion-pills {
    display: flex;
    gap: 0.45rem;
    align-items: center;
}

.pill {
    border: 1px solid rgba(95, 121, 154, 0.34);
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--muted);
    background: rgba(130, 153, 183, 0.11);
}

.pill.ok {
    color: #1f8a65;
    border-color: rgba(31, 138, 101, 0.35);
    background: rgba(31, 138, 101, 0.1);
}

.pill.off {
    color: #9f6a00;
    border-color: rgba(159, 106, 0, 0.35);
    background: rgba(159, 106, 0, 0.12);
}

.accordion-meta {
    color: var(--muted);
    font-size: 0.93rem;
    font-weight: 600;
}

.accordion-content {
    border-top: 1px solid rgba(20, 32, 51, 0.12);
    padding: 1rem;
    display: grid;
    gap: 0.9rem;
}

.editor-panel {
    border: 1px solid rgba(129, 157, 192, 0.2);
    border-radius: 12px;
    background: rgba(118, 144, 176, 0.08);
    padding: 0.85rem;
}

.editor-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.editor-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.package-list {
    display: grid;
    gap: 0.75rem;
}

.package-card {
    border: 1px solid rgba(129, 157, 192, 0.22);
    border-radius: 12px;
    padding: 0.8rem;
    background: rgba(118, 144, 176, 0.06);
    display: grid;
    gap: 0.65rem;
}

.package-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.7rem;
}

.package-card-form {
    display: grid;
    gap: 0.65rem;
}

.field-grid {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.flash-list {
    display: grid;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
}

.flash {
    border-radius: 12px;
    padding: 0.65rem 0.8rem;
}

.flash.success {
    background: #def5e8;
    color: var(--ok);
}

.flash.warning,
.flash.info {
    background: #fff4de;
    color: var(--warn);
}

.flash.error {
    background: #fde5e0;
    color: var(--err);
}

.reveal {
    opacity: 1;
    transform: translateY(0);
    animation: rise 500ms ease forwards;
}

.delay-1 {
    animation-delay: 110ms;
}

.delay-2 {
    animation-delay: 200ms;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .delay-1,
    .delay-2 {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 980px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .package-edit-grid {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }
}

@media (max-width: 760px) {
    .menu-toggle {
        display: inline-block;
    }

    .main-menu {
        position: absolute;
        top: calc(100% + 0.5rem);
        left: 1rem;
        right: 1rem;
        border-radius: 14px;
        border: 1px solid rgba(255, 255, 255, 0.18);
        background: rgba(16, 29, 47, 0.97);
        padding: 0.7rem;
        flex-direction: column;
        align-items: stretch;
        display: none;
    }

    .main-menu.open {
        display: flex;
    }

    .main-menu a {
        border-radius: 10px;
    }

    .nav-shell {
        position: relative;
    }

    .admin-inline-form,
    .admin-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .accordion-item summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .accordion-pills {
        width: 100%;
    }

    .editor-actions {
        width: 100%;
    }

    .package-card-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .form-grid-compact {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   LANDING PAGE
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Section titles ─────────────────────────────────────────────────────── */
.lp-section-title {
    text-align: center;
    margin-bottom: 0.4rem;
}

.lp-section-sub {
    text-align: center;
    color: var(--muted);
    margin: 0 0 1.6rem;
}

/* ── Badge ────────────────────────────────────────────────────────────────── */
.lp-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    background: linear-gradient(120deg, rgba(237,106,61,0.22), rgba(56,184,176,0.18));
    border: 1px solid rgba(237,106,61,0.4);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.9rem;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.lp-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    border-radius: 28px;
    padding: 3rem 2.5rem;
    background: var(--hero-bg);
    border: 1px solid var(--card-border);
    box-shadow: 0 24px 60px rgba(19,35,58,0.14);
    min-height: 400px;
}

.lp-hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.55;
}

.lp-hero-body {
    position: relative;
    z-index: 1;
}

.lp-hero-title {
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    line-height: 1.08;
    margin-bottom: 0.9rem;
}

.lp-grad-text {
    background: linear-gradient(120deg, var(--accent) 20%, var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lp-hero-sub {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 38ch;
    margin-bottom: 1.4rem;
    line-height: 1.6;
}

.lp-hero-actions {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.lp-btn-glow {
    box-shadow: 0 4px 24px rgba(237,106,61,0.45);
}

.lp-btn-glow:hover {
    box-shadow: 0 6px 32px rgba(237,106,61,0.65);
}

/* ── Server Mockup ──────────────────────────────────────────────────────── */
.lp-hero-vis {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lp-server-mockup {
    background: rgba(9,17,30,0.88);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 16px;
    overflow: hidden;
    font-size: 0.88rem;
    min-width: 240px;
    max-width: 300px;
    width: 100%;
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

.lp-sm-header {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 0.85rem;
    background: rgba(0,0,0,0.25);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.lp-sm-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.lp-sm-dot.red    { background: #ff5f57; }
.lp-sm-dot.yellow { background: #febc2e; }
.lp-sm-dot.green  { background: #28c840; }

.lp-sm-title {
    font-size: 0.74rem;
    color: rgba(255,255,255,0.6);
    font-family: "Sora", sans-serif;
    margin-left: 0.2rem;
}

.lp-sm-body {
    padding: 0.8rem 0.85rem;
    display: grid;
    gap: 0.45rem;
    color: rgba(220,235,255,0.9);
}

.lp-sm-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lp-sm-label {
    color: rgba(180,200,230,0.65);
    font-size: 0.82rem;
}

.lp-sm-val { font-weight: 600; font-size: 0.88rem; }
.lp-sm-val.ok { color: #34d399; }

.lp-sm-bar-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lp-sm-bar {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 999px;
    overflow: hidden;
}

.lp-sm-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-2), #6ac7d5);
    border-radius: 999px;
    animation: lp-bar-slide 2.2s ease-in-out infinite alternate;
}

@keyframes lp-bar-slide {
    from { opacity: 0.7; }
    to   { opacity: 1; }
}

/* ── Floating emoji decorations ─────────────────────────────────────────── */
.lp-float {
    position: absolute;
    font-size: 1.8rem;
    animation: lp-float 3.5s ease-in-out infinite;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

.lp-float-1 { top: 10%; right: 4%; animation-delay: 0s; }
.lp-float-2 { top: 55%; right: -1%; animation-delay: 1.1s; }
.lp-float-3 { bottom: 8%; left: 4%; animation-delay: 2s; }

@keyframes lp-float {
    0%, 100% { transform: translateY(0) rotate(-4deg); }
    50%       { transform: translateY(-12px) rotate(4deg); }
}

/* ── Stats strip ─────────────────────────────────────────────────────────── */
.lp-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-radius: 20px;
    background: var(--card);
    border: 1px solid var(--card-border);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(20,32,51,0.09);
}

.lp-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.4rem 1rem;
    border-right: 1px solid var(--card-border);
    transition: background 160ms ease;
}

.lp-stat:last-child { border-right: none; }

.lp-stat:hover { background: rgba(255,255,255,0.06); }

.lp-stat-num {
    font-family: "Sora", sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.lp-stat-label {
    font-size: 0.8rem;
    color: var(--muted);
    text-align: center;
    margin-top: 0.25rem;
    font-weight: 600;
}

/* ── Features ─────────────────────────────────────────────────────────────── */
.lp-features {
    text-align: center;
}

.lp-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1.4rem;
}

.lp-feature-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 1.4rem 1rem;
    text-align: center;
    transition: transform 200ms ease, box-shadow 200ms ease;
    position: relative;
    overflow: hidden;
}

.lp-feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(237,106,61,0.06), rgba(56,184,176,0.06));
    opacity: 0;
    transition: opacity 200ms ease;
}

.lp-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(20,32,51,0.14);
}

.lp-feature-card:hover::before {
    opacity: 1;
}

.lp-feat-icon {
    font-size: 2.2rem;
    margin-bottom: 0.7rem;
    display: block;
}

.lp-feature-card h3 {
    font-size: 1rem;
    margin-bottom: 0.45rem;
}

.lp-feature-card p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 0;
}

/* ── Games marquee ──────────────────────────────────────────────────────── */
.lp-games {
    text-align: center;
}

.lp-games-scroll {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.lp-games-track {
    display: flex;
    gap: 0.85rem;
    width: max-content;
    animation: lp-marquee 28s linear infinite;
}

.lp-games-track:hover {
    animation-play-state: paused;
}

@keyframes lp-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.lp-game-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 0.9rem 1.1rem;
    min-width: 110px;
    transition: transform 160ms ease, border-color 160ms ease;
    flex-shrink: 0;
}

.lp-game-chip:hover {
    transform: translateY(-3px);
    border-color: rgba(56,184,176,0.5);
}

.lp-game-logo {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(20,32,51,0.15);
}

.lp-game-icon-fallback {
    font-size: 2rem;
    line-height: 44px;
    width: 44px;
    text-align: center;
}

.lp-game-name {
    font-weight: 700;
    font-size: 0.82rem;
    text-align: center;
}

.lp-game-count {
    font-size: 0.72rem;
    color: var(--muted);
}

/* ── World map ───────────────────────────────────────────────────────────── */
.lp-map-section {
    text-align: center;
}

.lp-map-wrap {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #09121e;
    border: 1px solid rgba(56,184,176,0.25);
    box-shadow: 0 16px 48px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.04);
}

.lp-world-map {
    display: block;
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
}

.lp-map-legend {
    position: absolute;
    bottom: 0.9rem;
    left: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.lp-legend-item {
    display: flex;
    align-items: center;
    gap: 0.38rem;
    background: rgba(9,18,30,0.82);
    border: 1px solid rgba(56,184,176,0.35);
    border-radius: 999px;
    padding: 0.24rem 0.65rem;
    font-size: 0.78rem;
    color: rgba(200,230,255,0.9);
    font-weight: 600;
    backdrop-filter: blur(8px);
}

.lp-legend-media {
    position: relative;
    width: 34px;
    height: 24px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lp-legend-flag {
    width: 32px;
    height: 22px;
    border-radius: 5px;
    border: 1px solid rgba(255,255,255,0.38);
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.lp-legend-flag-emoji {
    font-size: 1rem;
    line-height: 1;
}

.lp-legend-city {
    position: absolute;
    right: -5px;
    bottom: -6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.8);
    object-fit: cover;
    background: #12243a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.lp-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent);
    flex-shrink: 0;
}

/* ── Payment section ────────────────────────────────────────────────────── */
.lp-payment {
    border-radius: 20px;
    background: var(--card);
    border: 1px solid var(--card-border);
    box-shadow: 0 8px 24px rgba(20,32,51,0.08);
}

.lp-payment-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
    padding: 2rem;
}

.lp-payment-text h2 {
    margin-bottom: 0.6rem;
}

.lp-payment-text p {
    color: var(--muted);
    font-size: 0.95rem;
    max-width: 50ch;
    margin: 0;
    line-height: 1.65;
}

.lp-payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: flex-end;
    align-items: center;
}

.lp-pm-badge {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(130,153,183,0.3);
    border-radius: 10px;
    padding: 0.55rem 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    transition: border-color 160ms ease, transform 130ms ease;
}

.lp-pm-badge:hover {
    border-color: rgba(56,184,176,0.5);
    transform: translateY(-2px);
}

.lp-pm-stripe {
    min-width: 90px;
    padding: 0.55rem 1rem;
}

.lp-stripe-logo {
    width: 52px;
    height: auto;
    color: currentColor;
}

.lp-pm-card-brand {
    font-family: "Sora", sans-serif;
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}

.lp-pm-card-brand.visa { color: #1a1f71; }
body[data-theme="dark"] .lp-pm-card-brand.visa { color: #5474c2; }
.lp-pm-card-brand.mc   { color: #eb001b; }

.lp-pm-label {
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.lp-pm-credit {
    border-color: rgba(237,106,61,0.4);
    background: rgba(237,106,61,0.08);
}

/* ── Catalog ──────────────────────────────────────────────────────────────── */
.lp-catalog-card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.lp-catalog-head {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.lp-catalog-head h3 {
    margin: 0;
    font-size: 1.05rem;
}

.lp-pkg-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
    flex: 1;
}

.lp-pkg-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed rgba(33,53,85,0.14);
}

.lp-pkg-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.lp-pkg-desc {
    font-size: 0.82rem;
    color: var(--muted);
}

.lp-pkg-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
    flex-shrink: 0;
}

.lp-pkg-slots {
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 600;
}

.lp-pkg-price {
    font-weight: 800;
    color: var(--accent-2);
    font-size: 0.92rem;
}

.lp-pkg-price small {
    font-weight: 500;
    font-size: 0.75rem;
    color: var(--muted);
}

.lp-custom-cta {
    text-align: center;
    margin-top: 1.4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.lp-custom-cta p {
    color: var(--muted);
    margin: 0;
}

/* ── Legal pages ──────────────────────────────────────────────────────────── */
.legal-doc {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.75;
}

.legal-doc h2 {
    font-size: 1.2rem;
    margin-top: 1.8rem;
    margin-bottom: 0.4rem;
    color: var(--accent-2);
}

.legal-doc h3 {
    font-size: 1rem;
    margin-top: 1.2rem;
    margin-bottom: 0.3rem;
}

.legal-doc ul {
    padding-left: 1.4rem;
    margin: 0.4rem 0 0.8rem;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
    margin-top: 3rem;
    padding: 1.4rem 1.2rem;
    border-top: 1px solid var(--card-border);
    background: rgba(10,20,35,0.04);
}

body[data-theme="dark"] .site-footer {
    background: rgba(255,255,255,0.02);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.8rem;
    font-size: 0.88rem;
    color: var(--muted);
}

.footer-brand {
    font-weight: 700;
    font-family: "Sora", sans-serif;
    color: var(--text);
}

.footer-links {
    display: flex;
    gap: 1.2rem;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    transition: color 140ms ease;
}

.footer-links a:hover {
    color: var(--accent-2);
}

.footer-powered {
    font-size: 0.82rem;
}

/* ── Responsive overrides for landing ───────────────────────────────────── */
@media (max-width: 900px) {
    .lp-hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem 1.5rem;
    }

    .lp-hero-actions { justify-content: center; }
    .lp-hero-sub { max-width: 100%; }
    .lp-hero-vis { display: none; }
    .lp-stats { grid-template-columns: repeat(2, 1fr); }
    .lp-stat:nth-child(2) { border-right: none; }
    .lp-payment-inner { grid-template-columns: 1fr; }
    .lp-payment-methods { justify-content: flex-start; }
}

@media (max-width: 560px) {
    .lp-stats { grid-template-columns: repeat(2, 1fr); }
    .lp-feature-grid { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { flex-direction: column; gap: 0.5rem; align-items: center; }
}
/* ═══════════════════════════════════════════════════════════════════════════
   ADMIN PAGES
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Admin Page Header ─────────────────────────────────────────────────── */
.admin-header {
    border-radius: 22px;
    padding: 1.8rem 2rem;
    background: linear-gradient(130deg, #0d2240 0%, #142d54 55%, #0f2341 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(7, 15, 30, 0.3), inset 0 1px 0 rgba(255,255,255,0.08);
    color: #eaf2ff;
    display: grid;
    gap: 0.9rem;
    margin-bottom: 1.2rem;
    position: relative;
    overflow: hidden;
}

.admin-header::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -40px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(237,106,61,0.18) 0%, transparent 70%);
    pointer-events: none;
}

.admin-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.admin-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.73rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    background: rgba(237, 106, 61, 0.18);
    border: 1px solid rgba(237, 106, 61, 0.38);
    border-radius: 999px;
    padding: 0.28rem 0.7rem;
    margin-bottom: 0.45rem;
}

.admin-header h1 {
    color: #fff;
    margin-bottom: 0.25rem;
    font-size: clamp(1.4rem, 3vw, 2rem);
}

.admin-header p {
    color: rgba(180, 205, 240, 0.8);
    margin: 0;
    font-size: 0.93rem;
}

.admin-header-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

/* ── Admin Nav Pills ───────────────────────────────────────────────────── */
.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
    padding: 0.6rem 0.75rem;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    backdrop-filter: blur(8px);
    margin-bottom: 1.2rem;
    box-shadow: 0 4px 12px rgba(20, 32, 51, 0.06);
}

.admin-nav a {
    text-decoration: none;
    color: var(--muted);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.38rem 0.85rem;
    border-radius: 10px;
    transition: background 150ms ease, color 150ms ease;
}

.admin-nav a:hover {
    background: rgba(20, 32, 51, 0.08);
    color: var(--text);
}

.admin-nav a.active {
    background: linear-gradient(120deg, var(--accent), #ff855f);
    color: #fff;
    box-shadow: 0 2px 10px rgba(237, 106, 61, 0.38);
}

body[data-theme="dark"] .admin-nav a:hover {
    background: rgba(200, 220, 255, 0.1);
}

/* ── Admin Stats Grid ──────────────────────────────────────────────────── */
.admin-stats {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    margin-bottom: 1.2rem;
}

.admin-stat-card {
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    background: var(--card);
    backdrop-filter: blur(8px);
    display: grid;
    gap: 0.15rem;
    box-shadow: 0 4px 16px rgba(20, 32, 51, 0.07);
}

.admin-stat-card .stat-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.admin-stat-card .stat-value {
    font-family: "Sora", sans-serif;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text);
}

.admin-stat-card .stat-sub {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 0.1rem;
}

.admin-stat-card.accent-card {
    background: linear-gradient(135deg, rgba(237,106,61,0.1), rgba(255,133,95,0.05));
    border-color: rgba(237, 106, 61, 0.28);
}

.admin-stat-card.accent-card .stat-value { color: var(--accent); }

.admin-stat-card.teal-card {
    background: linear-gradient(135deg, rgba(29,143,138,0.1), rgba(56,184,176,0.05));
    border-color: rgba(29, 143, 138, 0.28);
}

.admin-stat-card.teal-card .stat-value { color: var(--accent-2); }

.admin-stat-card.blue-card {
    background: linear-gradient(135deg, rgba(26,106,171,0.1), rgba(56,130,204,0.05));
    border-color: rgba(26, 106, 171, 0.24);
}

.admin-stat-card.blue-card .stat-value { color: #3482c4; }

body[data-theme="dark"] .admin-stat-card.blue-card .stat-value { color: #6eb8f5; }

/* ── Status Badges ─────────────────────────────────────────────────────── */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.22rem 0.58rem;
    border-radius: 999px;
}

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.status-badge.ok,
.badge.success {
    color: var(--ok);
    background: rgba(13, 129, 86, 0.12);
    border: 1px solid rgba(13, 129, 86, 0.25);
}

.status-badge.warn {
    color: var(--warn);
    background: rgba(157, 103, 0, 0.12);
    border: 1px solid rgba(157, 103, 0, 0.25);
}

.status-badge.err {
    color: var(--err);
    background: rgba(166, 43, 31, 0.12);
    border: 1px solid rgba(166, 43, 31, 0.25);
}

.status-badge.neutral,
.badge.muted {
    color: var(--muted);
    background: rgba(74, 94, 118, 0.1);
    border: 1px solid rgba(74, 94, 118, 0.2);
}

.status-badge.info {
    color: #1a6aab;
    background: rgba(26, 106, 171, 0.1);
    border: 1px solid rgba(26, 106, 171, 0.22);
}

body[data-theme="dark"] .status-badge.info {
    color: #6eb8f5;
    background: rgba(110, 184, 245, 0.1);
    border-color: rgba(110, 184, 245, 0.22);
}

/* ── Admin Section Head ───────────────────────────────────────────────── */
.admin-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--card-border);
}

.admin-section-head h2 {
    margin: 0;
}

/* ── Admin Table ──────────────────────────────────────────────────────── */
.admin-table tbody tr {
    transition: background 120ms ease;
}

.admin-table tbody tr:hover td {
    background: rgba(20, 32, 51, 0.04);
}

body[data-theme="dark"] .admin-table tbody tr:hover td {
    background: rgba(200, 220, 255, 0.05);
}

.admin-table td small {
    display: block;
    color: var(--muted);
    font-size: 0.79rem;
    margin-top: 0.1rem;
}

/* ── Small Button ─────────────────────────────────────────────────────── */
.btn.small,
button.small {
    padding: 0.35rem 0.65rem;
    font-size: 0.82rem;
    border-radius: 9px;
}

/* ── Inline Form ──────────────────────────────────────────────────────── */
.inline-form {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* ── Capacity Bar ──────────────────────────────────────────────────────── */
.capacity-bars {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.7rem;
}

.capacity-bar-item {
    display: grid;
    gap: 0.2rem;
}

.capacity-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.79rem;
    color: var(--muted);
    font-weight: 600;
}

.capacity-bar-track {
    height: 5px;
    background: rgba(20, 32, 51, 0.12);
    border-radius: 999px;
    overflow: hidden;
}

body[data-theme="dark"] .capacity-bar-track {
    background: rgba(200, 220, 255, 0.12);
}

.capacity-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-2), #6ac7d5);
    transition: width 600ms ease;
}

.capacity-bar-fill.warn {
    background: linear-gradient(90deg, var(--warn), #e09530);
}

.capacity-bar-fill.err {
    background: linear-gradient(90deg, var(--err), #e05c4a);
}

/* ── Config Info Card ─────────────────────────────────────────────────── */
.config-info-card {
    border: 1px solid rgba(29, 143, 138, 0.28);
    background: rgba(29, 143, 138, 0.07);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    display: grid;
    gap: 0.4rem;
}

.config-info-row {
    display: flex;
    gap: 0.6rem;
    align-items: baseline;
    font-size: 0.92rem;
    flex-wrap: wrap;
}

.config-info-row .config-info-key {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    min-width: 80px;
    flex-shrink: 0;
}

/* ── Admin Form Section ────────────────────────────────────────────────── */
.admin-form-section {
    display: grid;
    gap: 0.6rem;
    padding: 1rem;
    border: 1px solid var(--card-border);
    border-radius: 14px;
    background: rgba(118, 144, 176, 0.05);
}

.admin-form-section h3 {
    margin: 0 0 0.3rem;
    font-size: 1rem;
    color: var(--muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.82rem;
}

/* ── Referral Settings Layout ─────────────────────────────────────────── */
.ref-settings-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 0.9rem;
    align-items: start;
}

.ref-settings-panel {
    gap: 0.75rem;
}

.ref-toggle-card {
    border: 1px solid var(--card-border);
    background: color-mix(in srgb, var(--card) 88%, transparent);
    border-radius: 12px;
    padding: 0.8rem 0.9rem;
    display: grid;
    gap: 0.45rem;
}

.ref-toggle-card .hint {
    margin: 0;
    font-size: 0.82rem;
}

.ref-toggle-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.ref-toggle-head label {
    margin: 0;
    font-size: 0.86rem;
    color: var(--text);
    font-weight: 700;
}

.yes-no-switch-wrap {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.switch-label {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    min-width: 26px;
    text-align: center;
}

.yes-no-switch {
    position: relative;
    width: 48px;
    height: 28px;
    display: inline-block;
    cursor: pointer;
}

.yes-no-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.yes-no-switch-track {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: rgba(74, 94, 118, 0.35);
    border: 1px solid rgba(74, 94, 118, 0.35);
    transition: all 160ms ease;
}

.yes-no-switch-thumb {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(20, 32, 51, 0.22);
    transition: transform 160ms ease;
}

.yes-no-switch input:checked + .yes-no-switch-track {
    background: rgba(13, 129, 86, 0.26);
    border-color: rgba(13, 129, 86, 0.42);
}

.yes-no-switch input:checked + .yes-no-switch-track + .yes-no-switch-thumb {
    transform: translateX(20px);
}

.yes-no-switch input:focus-visible + .yes-no-switch-track {
    outline: 2px solid rgba(29, 143, 138, 0.55);
    outline-offset: 2px;
}

.ref-input-grid {
    display: grid;
    gap: 0.7rem;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
}

.ref-field-item input {
    max-width: 240px;
}

body[data-theme="dark"] .ref-toggle-card {
    background: rgba(16, 28, 44, 0.9);
}

/* ── Region Card ──────────────────────────────────────────────────────── */
.region-admin-card {
    border: 1px solid rgba(129, 157, 192, 0.22);
    border-radius: 14px;
    padding: 0;
    background: var(--card);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(20,32,51,0.06);
}

.region-admin-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.7rem;
    padding: 0.85rem 1rem;
    background: rgba(20,32,51,0.04);
    border-bottom: 1px solid rgba(129,157,192,0.14);
    flex-wrap: wrap;
}

body[data-theme="dark"] .region-admin-head {
    background: rgba(200,220,255,0.04);
}

.region-admin-head strong {
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.region-admin-body {
    padding: 1rem;
    display: grid;
    gap: 0.75rem;
}

/* ── Admin responsive ─────────────────────────────────────────────────── */
@media (max-width: 760px) {
    .admin-header {
        padding: 1.3rem 1.2rem;
    }

    .admin-header-top {
        flex-direction: column;
        gap: 0.7rem;
    }

    .admin-header-actions {
        width: 100%;
    }

    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .config-info-row {
        flex-direction: column;
        gap: 0.1rem;
    }

    .ref-settings-layout {
        grid-template-columns: 1fr;
    }

    .ref-input-grid {
        grid-template-columns: 1fr;
    }

    .ref-field-item input {
        max-width: none;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   USER PAGES
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Page Header (user) ────────────────────────────────────────────────── */
.user-header {
    border-radius: 22px;
    padding: 1.8rem 2rem;
    background: var(--hero-bg);
    border: 1px solid var(--card-border);
    box-shadow: 0 12px 32px rgba(19, 35, 58, 0.1);
    display: grid;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
    position: relative;
    overflow: hidden;
}

.user-header::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -30px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(29,143,138,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.user-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.user-header h1 {
    margin-bottom: 0.25rem;
    font-size: clamp(1.4rem, 3vw, 2rem);
}

.user-header p {
    color: var(--muted);
    margin: 0;
    font-size: 0.93rem;
}

.user-header-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

/* ── User Nav Pills ─────────────────────────────────────────────────────── */
.user-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
    padding: 0.6rem 0.75rem;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    backdrop-filter: blur(8px);
    margin-bottom: 1.2rem;
    box-shadow: 0 4px 12px rgba(20, 32, 51, 0.06);
}

.user-nav a {
    text-decoration: none;
    color: var(--muted);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.38rem 0.85rem;
    border-radius: 10px;
    transition: background 150ms ease, color 150ms ease;
}

.user-nav a:hover {
    background: rgba(20, 32, 51, 0.08);
    color: var(--text);
}

.user-nav a.active {
    background: linear-gradient(120deg, var(--accent-2), #38b8b0);
    color: #fff;
    box-shadow: 0 2px 10px rgba(29, 143, 138, 0.38);
}

body[data-theme="dark"] .user-nav a:hover {
    background: rgba(200, 220, 255, 0.1);
}

/* ── Service Cards (my_services) ─────────────────────────────────────────── */
.service-card-grid {
    display: grid;
    gap: 0.85rem;
}

.service-card {
    border: 1px solid var(--card-border);
    border-radius: 16px;
    background: var(--card);
    backdrop-filter: blur(8px);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(20, 32, 51, 0.06);
    transition: box-shadow 150ms ease, transform 150ms ease;
}

.service-card:hover {
    box-shadow: 0 8px 28px rgba(20, 32, 51, 0.12);
    transform: translateY(-1px);
}

.service-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid var(--card-border);
    flex-wrap: wrap;
}

.service-card-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1rem;
}

.service-card-body {
    padding: 0.9rem 1.1rem;
    display: grid;
    gap: 0.6rem;
}

.service-spec-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.service-spec-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(29, 143, 138, 0.09);
    border: 1px solid rgba(29, 143, 138, 0.18);
    border-radius: 999px;
    padding: 0.22rem 0.65rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-2);
}

body[data-theme="dark"] .service-spec-pill {
    background: rgba(56, 184, 176, 0.1);
    border-color: rgba(56, 184, 176, 0.22);
}

.service-access-box {
    background: rgba(29, 143, 138, 0.06);
    border: 1px solid rgba(29, 143, 138, 0.18);
    border-radius: 10px;
    padding: 0.7rem 0.9rem;
    display: grid;
    gap: 0.3rem;
    font-size: 0.88rem;
}

.service-access-box a {
    color: var(--accent-2);
    text-decoration: none;
    font-weight: 600;
}

.service-access-box a:hover {
    text-decoration: underline;
}

.service-access-label {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── Referral Box ────────────────────────────────────────────────────────── */
.referral-box {
    border: 1px dashed rgba(29, 143, 138, 0.45);
    border-radius: 14px;
    padding: 1rem 1.2rem;
    background: rgba(29, 143, 138, 0.06);
    display: grid;
    gap: 0.5rem;
}

.referral-code-display {
    display: block;
    background: rgba(9, 18, 32, 0.08);
    border: 1px solid rgba(20, 32, 51, 0.16);
    border-radius: 10px;
    padding: 0.5rem 0.8rem;
    font-size: 0.88rem;
    font-family: monospace;
    word-break: break-all;
    color: var(--text);
}

body[data-theme="dark"] .referral-code-display {
    background: rgba(200, 220, 255, 0.06);
    border-color: rgba(200, 220, 255, 0.15);
    color: #edf2ff;
}

/* ── Cart Summary ────────────────────────────────────────────────────────── */
.cart-summary {
    border: 1px solid rgba(29, 143, 138, 0.28);
    border-radius: 16px;
    background: rgba(29, 143, 138, 0.06);
    padding: 1.3rem 1.5rem;
    display: grid;
    gap: 0.45rem;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    font-size: 0.93rem;
    flex-wrap: wrap;
}

.cart-summary-label {
    color: var(--muted);
    font-size: 0.83rem;
}

.cart-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(29, 143, 138, 0.2);
    flex-wrap: wrap;
}

.cart-summary-total-amount {
    font-family: "Sora", sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-2);
}

/* ── Duration Picker ─────────────────────────────────────────────────────── */
.duration-picker {
    border: 1px solid rgba(29, 143, 138, 0.28);
    border-radius: 16px;
    background: rgba(29, 143, 138, 0.06);
    padding: 1.1rem 1.4rem;
    display: grid;
    gap: 0.85rem;
}

.duration-picker-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.duration-picker-title {
    font-size: 0.79rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.duration-current-label {
    font-family: "Sora", sans-serif;
    font-weight: 800;
    font-size: 1rem;
    color: var(--accent-2);
}

.duration-slider-wrap {
    display: grid;
    gap: 0.35rem;
}

.duration-range {
    width: 100%;
    cursor: pointer;
}

.duration-ticks {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--muted);
    padding: 0 4px;
    user-select: none;
}

.abo-toggle-block {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding-top: 0.7rem;
    border-top: 1px solid rgba(29, 143, 138, 0.2);
}

.abo-toggle-label {
    font-size: 0.82rem;
    color: var(--muted);
    font-weight: 600;
}

.help-inline-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.help-icon-btn {
    width: 19px;
    height: 19px;
    border-radius: 50%;
    border: 1px solid rgba(29, 143, 138, 0.45);
    background: rgba(29, 143, 138, 0.14);
    color: var(--accent-2);
    font-size: 0.72rem;
    line-height: 1;
    font-weight: 800;
    font-family: "Sora", sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.help-icon-btn:hover,
.help-icon-btn:focus-visible {
    border-color: var(--accent-2);
    background: rgba(29, 143, 138, 0.2);
    outline: none;
}

.help-popover {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: min(360px, 82vw);
    padding: 0.6rem 0.7rem;
    border-radius: 12px;
    border: 1px solid rgba(29, 143, 138, 0.35);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 12px 28px rgba(8, 18, 36, 0.16);
    color: var(--text);
    font-size: 0.76rem;
    line-height: 1.45;
    z-index: 40;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.help-inline-wrap:hover .help-popover,
.help-inline-wrap:focus-within .help-popover,
.help-inline-wrap.help-open .help-popover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.abo-pills {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.abo-pill {
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    border: 1.5px solid rgba(29, 143, 138, 0.35);
    background: transparent;
    color: var(--muted);
    font-size: 0.82rem;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
    font-family: inherit;
    font-weight: 500;
    line-height: 1.5;
}

.abo-pill:hover {
    border-color: var(--accent-2);
    color: var(--accent-2);
}

.abo-pill-active {
    background: var(--accent-2);
    border-color: var(--accent-2);
    color: #fff;
    font-weight: 700;
}

body[data-theme="dark"] .duration-picker {
    background: rgba(29, 143, 138, 0.09);
    border-color: rgba(56, 184, 176, 0.25);
}

body[data-theme="dark"] .abo-pill {
    border-color: rgba(56, 184, 176, 0.3);
}

body[data-theme="dark"] .help-icon-btn {
    border-color: rgba(56, 184, 176, 0.5);
    background: rgba(56, 184, 176, 0.16);
    color: #9ee6df;
}

body[data-theme="dark"] .help-popover {
    background: rgba(14, 25, 40, 0.98);
    border-color: rgba(56, 184, 176, 0.35);
    color: var(--text);
}

/* ── Invoice Status Rows ─────────────────────────────────────────────────── */
.invoice-section-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 1.2rem 0 0.75rem;
}

.invoice-section-head h2 {
    margin: 0;
}

.invoice-unpaid-row td {
    background: rgba(166, 43, 31, 0.04);
}

body[data-theme="dark"] .invoice-unpaid-row td {
    background: rgba(166, 43, 31, 0.08);
}

/* ── Legal Doc ────────────────────────────────────────────────────────────── */
.legal-doc {
    max-width: 780px;
    margin: 0 auto;
    line-height: 1.7;
}

.legal-doc h2 {
    margin-top: 1.8rem;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 0.4rem;
}

.legal-doc h3 {
    margin-top: 1rem;
    font-size: 0.96rem;
    color: var(--muted);
}

.legal-doc p,
.legal-doc ul,
.legal-doc li {
    color: var(--muted);
}

.legal-doc ul {
    padding-left: 1.3rem;
}

.legal-doc li {
    margin-bottom: 0.35rem;
}

.legal-doc strong {
    color: var(--text);
}

.legal-doc a {
    color: var(--accent-2);
}

/* ── Credit/Stats Banner ─────────────────────────────────────────────────── */
.user-stats {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    margin-bottom: 1.2rem;
}

.user-stat-card {
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    background: var(--card);
    backdrop-filter: blur(8px);
    display: grid;
    gap: 0.15rem;
    box-shadow: 0 4px 16px rgba(20, 32, 51, 0.07);
}

.user-stat-card .stat-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.user-stat-card .stat-value {
    font-family: "Sora", sans-serif;
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text);
}

.user-stat-card.teal-card {
    background: linear-gradient(135deg, rgba(29,143,138,0.1), rgba(56,184,176,0.05));
    border-color: rgba(29, 143, 138, 0.28);
}

.user-stat-card.teal-card .stat-value { color: var(--accent-2); }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 760px) {
    .user-header { padding: 1.3rem 1.2rem; }
    .user-header-top { flex-direction: column; gap: 0.7rem; }
    .user-stats { grid-template-columns: repeat(2, 1fr); }
    .service-card-head { flex-direction: column; align-items: flex-start; }
    .cart-summary-total { flex-direction: column; align-items: flex-start; }
}