:root {
    --bg: #06030d;
    --bg-2: #0a0518;
    --surface: #0e081c;
    --surface-2: #130c25;
    --surface-3: #180f2e;
    --border: #271a45;
    --border-strong: #3a2865;
    --text: #f4f1fb;
    --muted: #a89ac9;
    --muted-2: #7c6b9f;
    --red: #8b5cf6;
    --red-soft: rgba(139, 92, 246, .14);
    --accent-2: #c9a6ff;
    --danger: #f43f5e;
    --danger-soft: rgba(244, 63, 94, .12);
    --green: #34d399;
    --amber: #fbbf24;
    --radius: 14px;
    --glow: 0 0 70px rgba(139, 92, 246, .25);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
}

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

button,
input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

::selection {
    background: var(--red);
    color: #fff;
}

/* ---------- Navigation ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(8, 8, 10, .88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 24px;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

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

.brand img {
    height: 34px;
    width: auto;
    max-width: 130px;
    object-fit: contain;
    display: block;
}

.brand-name {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -.01em;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    margin-right: 4px;
}

.nav-link {
    padding: 7px 13px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 500;
    transition: background .15s ease, color .15s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--text);
    background: var(--surface-2);
}

.nav-link.active {
    color: var(--text);
    background: var(--surface-2);
    border: 1px solid var(--border);
}

.nav-link.admin-link {
    color: #fca5b0;
    border: 1px solid rgba(239, 35, 60, .35);
    background: var(--red-soft);
}

.nav-link.admin-link:hover {
    color: #fff;
    background: rgba(239, 35, 60, .2);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
}

.pill strong {
    color: var(--text);
    font-weight: 600;
}

.pill .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
}

.avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--border);
    object-fit: cover;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
    white-space: nowrap;
}

.btn:hover {
    background: var(--surface-3);
    border-color: var(--border-strong);
}

.btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

.btn-primary:hover {
    background: #ff2f48;
    border-color: #ff2f48;
}

.btn-ghost {
    background: transparent;
}

.btn-danger {
    background: transparent;
    border-color: rgba(239, 35, 60, .4);
    color: #fca5b0;
}

.btn-danger:hover {
    background: var(--red-soft);
    border-color: rgba(239, 35, 60, .65);
    color: #fff;
}

.btn-sm {
    padding: 6px 11px;
    font-size: 12.5px;
    border-radius: 7px;
}

.btn-block {
    width: 100%;
}

/* ---------- Layout ---------- */
.page {
    max-width: 980px;
    margin: 0 auto;
    padding: 34px 24px 72px;
}

.center-col {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.center-head {
    text-align: center;
    padding: 4px 0 2px;
}

.center-head h1 {
    margin: 0;
    font-size: clamp(26px, 2.2vw, 32px);
    font-weight: 600;
    letter-spacing: -.02em;
}

.center-head p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14.5px;
}

/* ---------- Cards ---------- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.card-pad {
    padding: 18px;
}

.card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
}

.card-title {
    margin: 0;
    font-size: 16.5px;
    font-weight: 600;
    letter-spacing: -.01em;
}

.card-sub {
    margin: 3px 0 0;
    font-size: 13.5px;
    color: var(--muted);
}

.card-body {
    padding: 20px;
}

.price-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

/* ---------- Service switch (small rectangle) ---------- */
.service-switch {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    padding: 5px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
}

.service-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 8px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.service-btn svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-btn:hover {
    color: var(--text);
    background: var(--surface-2);
}

.service-btn.active {
    color: #fff;
    background: var(--surface-3);
    border-color: var(--border-strong);
}

.service-btn.active svg {
    color: var(--red);
}

/* ---------- Panels ---------- */
.bot-panel {
    display: block;
}

.hidden,
.bot-panel.hidden,
.vgroup.hidden {
    display: none !important;
}

/* ---------- Forms ---------- */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-grid.three {
    grid-template-columns: 1fr 1fr 1fr;
}

.premium-lock {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(239, 35, 60, .35);
    border-radius: 9px;
    background: rgba(239, 35, 60, .06);
}

.premium-lock strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
}

.premium-lock span {
    display: block;
    margin-top: 2px;
    font-size: 12.5px;
    color: var(--muted);
}

.form-grid.is-locked {
    opacity: .45;
    pointer-events: none;
}

.chip-lock {
    margin-left: 6px;
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(239, 35, 60, .18);
    color: var(--red);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    vertical-align: 1px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.field-label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
}

.label-max {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--muted-2);
    white-space: nowrap;
}

.input,
.textarea,
.select {
    width: 100%;
    padding: 11px 13px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    font-size: 14.5px;
    transition: border-color .15s ease, background .15s ease;
    outline: none;
}

.input::placeholder,
.textarea::placeholder {
    color: var(--muted-2);
}

.input:focus,
.textarea:focus,
.select:focus {
    border-color: rgba(239, 35, 60, .7);
    background: var(--surface-3);
}

.textarea {
    min-height: 84px;
    resize: vertical;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-2);
    color: var(--muted);
    font-size: 13px;
    cursor: pointer;
    user-select: none;
}

.check-row input {
    accent-color: var(--red);
    margin: 0;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}

.form-hint {
    margin: 10px 0 0;
    font-size: 12px;
    color: var(--muted-2);
}

/* ---------- Viewbot chips ---------- */
.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.chip {
    padding: 6px 12px;
    border-radius: 7px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.chip:hover {
    color: var(--text);
    border-color: var(--border-strong);
}

.chip.active {
    color: #fff;
    background: var(--red-soft);
    border-color: rgba(239, 35, 60, .5);
}

/* ---------- Earn coins ---------- */
.earn-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

#adHint {
    margin: 10px 0 0;
    font-size: 12.5px;
    color: var(--muted);
    min-height: 18px;
}

.ad-timer {
    margin-top: 16px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-2);
}

.ad-timer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 12.5px;
    color: var(--muted);
}

.ad-timer-head span:last-child {
    color: var(--text);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.ad-timer-track {
    height: 6px;
    border-radius: 999px;
    background: var(--surface-3);
    overflow: hidden;
}

.ad-timer-fill {
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: var(--red);
}

/* ---------- Premium ---------- */
.banner {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 15px;
    border-radius: var(--radius);
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--muted);
    font-size: 13.5px;
}

.banner strong {
    color: var(--text);
    font-weight: 600;
}

.banner code {
    padding: 1px 5px;
    border-radius: 4px;
    background: var(--surface-3);
    color: var(--text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
}

.banner-success {
    border-color: rgba(52, 211, 153, .4);
    background: rgba(52, 211, 153, .07);
}

.banner-success strong {
    color: #a7f3d0;
}

.banner-warn {
    border-color: rgba(251, 191, 36, .4);
    background: rgba(251, 191, 36, .07);
}

.banner-warn strong {
    color: #fde68a;
}

.premium-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.premium-status-value {
    margin-top: 4px;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -.01em;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}

.plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: var(--surface);
}

.plan-featured {
    border-color: rgba(239, 35, 60, .55);
}

.plan-badge {
    position: absolute;
    top: 0;
    right: 14px;
    transform: translateY(-50%);
    padding: 3px 9px;
    border-radius: 6px;
    background: var(--red);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.plan-name {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 12px;
}

.plan-amount {
    font-size: 34px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -.02em;
}

.plan-currency {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--muted);
}

.plan-meta {
    margin-top: 6px;
    font-size: 12.5px;
    color: var(--muted-2);
}

.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 16px 0;
    padding: 0;
}

.plan-features li {
    position: relative;
    padding-left: 20px;
    font-size: 13px;
    color: var(--muted);
}

.plan-features li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 6px;
    width: 9px;
    height: 5px;
    border-left: 2px solid var(--red);
    border-bottom: 2px solid var(--red);
    transform: rotate(-45deg);
}

.plan .btn {
    margin-top: auto;
}

.premium-note {
    margin: 0;
    padding: 0 20px;
    text-align: center;
    font-size: 12.5px;
    color: var(--muted-2);
}

/* ---------- Toasts ---------- */
.toast-wrap {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    min-width: 220px;
    max-width: 340px;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--border-strong);
    background: var(--surface-3);
    color: var(--text);
    font-size: 13px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
    animation: toast-in .18s ease;
}

.toast.error {
    border-color: rgba(239, 35, 60, .55);
    color: #fecdd3;
}

.toast.success {
    border-color: rgba(52, 211, 153, .4);
    color: #a7f3d0;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Landing ---------- */
.landing-nav {
    max-width: 1500px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.hero {
    max-width: 860px;
    margin: 0 auto;
    padding: 84px 24px 48px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 22px;
}

.hero-badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
}

.hero h1 {
    margin: 0;
    font-size: clamp(34px, 6vw, 54px);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -.03em;
}

.hero h1 em {
    font-style: normal;
    color: var(--red);
}

.hero p {
    margin: 20px auto 0;
    max-width: 580px;
    color: var(--muted);
    font-size: 16.5px;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.hero-actions .btn {
    padding: 11px 20px;
    font-size: 14px;
}

.features {
    max-width: 1120px;
    margin: 24px auto 0;
    padding: 0 24px 80px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.feature {
    padding: 22px;
}

.feature-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
    margin-bottom: 12px;
}

.feature-icon svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

.feature p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13.5px;
}

.alert-error {
    max-width: 460px;
    margin: 0 auto 18px;
    padding: 10px 14px;
    border: 1px solid rgba(239, 35, 60, .45);
    border-radius: 8px;
    background: var(--red-soft);
    color: #fecdd3;
    font-size: 13px;
}

/* ---------- Admin ---------- */
.admin-layout {
    max-width: 1500px;
    margin: 0 auto;
    padding: 28px 24px 72px;
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.admin-side {
    position: sticky;
    top: 82px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 11px;
    border-radius: 7px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: background .15s ease, color .15s ease;
}

.admin-nav-item svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}

.admin-nav-item:hover {
    color: var(--text);
    background: var(--surface-2);
}

.admin-nav-item.active {
    color: #fff;
    background: var(--surface-3);
    border-color: var(--border-strong);
}

.admin-nav-item.active svg {
    color: var(--red);
}

.admin-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.stat {
    padding: 15px 16px;
}

.stat-label {
    font-size: 11.5px;
    color: var(--muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.stat-value {
    margin-top: 6px;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -.02em;
}

.table-wrap {
    overflow-x: auto;
}

table.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.table th {
    text-align: left;
    padding: 10px 16px;
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    background: var(--surface-2);
}

.table td {
    padding: 11px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.table tr:last-child td {
    border-bottom: none;
}

.table tr:hover td {
    background: var(--surface-2);
}

.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    color: var(--muted);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 5px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 500;
    white-space: nowrap;
}

.badge.green {
    border-color: rgba(52, 211, 153, .35);
    color: #6ee7b7;
    background: rgba(52, 211, 153, .08);
}

.badge.red {
    border-color: rgba(239, 35, 60, .35);
    color: #fca5b0;
    background: var(--red-soft);
}

.badge.amber {
    border-color: rgba(251, 191, 36, .35);
    color: #fcd34d;
    background: rgba(251, 191, 36, .08);
}

.token-box {
    width: 100%;
    min-height: 170px;
    resize: vertical;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    line-height: 1.7;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.divider {
    height: 1px;
    background: var(--border);
    margin: 18px 0;
}

.empty {
    padding: 28px 18px;
    text-align: center;
    color: var(--muted-2);
    font-size: 13px;
}

.spin {
    width: 13px;
    height: 13px;
    border: 2px solid rgba(255, 255, 255, .25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .6s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ---------- Whitelist ---------- */
.whitelist-head {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.whitelist-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: contain;
    background: var(--surface-2);
    border: 1px solid var(--border);
    padding: 4px;
    flex: 0 0 auto;
}

.wl-result {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-2);
}

.wl-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.wl-stat {
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

.wl-stat-label {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 600;
}

.wl-stat-value {
    margin-top: 4px;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -.02em;
}

.wl-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    font-size: 12.5px;
    font-weight: 600;
}

.wl-status.protected {
    color: #6ee7b7;
}

.wl-status.unprotected {
    color: #fca5b0;
}

.wl-messages {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 180px;
    overflow: auto;
}

.wl-msg {
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: var(--surface);
    font-size: 12.5px;
    color: var(--muted);
}

.wl-msg strong {
    color: var(--text);
    font-weight: 600;
}

.wl-buy {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.wl-buy p {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
    max-width: 420px;
}

/* ---------- Whitelist view ---------- */
.whitelist-shell {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.whitelist-headbar {
    display: flex;
    align-items: center;
    gap: 14px;
}

.whitelist-headbar h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -.02em;
}

.whitelist-headbar p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.whitelist-card {
    overflow: hidden;
}

.wl-form {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
}

/* ---------- Responsive ---------- */
@media (min-width: 1600px) {
    .page {
        max-width: 1000px;
        padding-top: 40px;
    }

    .center-col {
        max-width: 960px;
    }

    .admin-layout {
        max-width: 1600px;
        grid-template-columns: 250px minmax(0, 1fr);
    }

    .nav-inner {
        max-width: 1600px;
    }
}

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

    .admin-side {
        position: static;
        flex-direction: row;
        overflow-x: auto;
    }

    .admin-nav-item {
        width: auto;
        white-space: nowrap;
    }

    .stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 720px) {
    .nav-inner {
        height: 58px;
        padding: 0 14px;
    }

    .nav-links .nav-link span {
        display: none;
    }

    .nav-links .nav-link {
        padding: 7px 10px;
    }

    .brand-name {
        display: none;
    }

    .hide-sm {
        display: none !important;
    }

    .page,
    .admin-layout {
        padding: 18px 14px 48px;
    }

    .form-grid,
    .form-grid.three,
    .settings-grid {
        grid-template-columns: 1fr;
    }

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

    .table th,
    .table td {
        padding: 9px 11px;
    }

    .card-head,
    .card-body,
    .card-pad {
        padding: 14px;
    }
}
