/* =========================================================
   TITANS PRODUCTIONS · GTA VI — accounts, posts, staff pages
   user icon menu · login window · profile · admin · editor · news/updates · facts · maintenance
   ========================================================= */

/* ---------- header: language + user icon on the right ---------- */
.topbar > .topbar-tools { grid-column: 3; grid-row: 1; justify-self: end; margin-right: 5vw; display: flex; align-items: center; gap: 30px; }
.topbar-tools > .lang-select { position: relative; margin: 0; }
.user-menu { position: relative; }
.user-btn {
    width: 40px; height: 40px; padding: 0; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; cursor: pointer; position: relative;
    background: radial-gradient(circle at 50% 30%, #2a1442 0%, #140a22 100%);
    border: 0;
    box-shadow: 0 0 0 2px rgba(255, 61, 139, 0.55), 0 0 18px rgba(255, 61, 139, 0.25);
    transition: box-shadow 0.2s, transform 0.2s;
}
.user-btn::after { /* sunset ring */
    content: ""; position: absolute; inset: -3px; border-radius: 50%; padding: 2px;
    background: conic-gradient(from 200deg, #ff3d8b, #ff8a3d, #ffd36b, #3fe0d0, #7b3fe4, #ff3d8b);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity 0.2s;
}
.user-btn:hover::after, .user-menu.open .user-btn::after { opacity: 1; }
.user-btn:hover { transform: translateY(-1px); }
.user-btn-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.user-drop {
    position: absolute; top: calc(100% + 12px); right: 0; min-width: 230px; padding: 6px;
    background: linear-gradient(170deg, #1d0f30 0%, #110820 100%);
    border: 1px solid rgba(255, 61, 139, 0.25); border-radius: 10px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(0, 0, 0, 0.4);
    display: none; z-index: 70;
}
.user-drop::before { content: ""; position: absolute; top: 0; left: 10px; right: 10px; height: 2px; background: var(--sunset); border-radius: 2px; }
.user-menu.open .user-drop { display: block; animation: dropIn 0.16s ease-out; }
@keyframes dropIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.user-drop-head { padding: 12px 12px 10px; font-size: 10px; font-weight: 800; letter-spacing: 0.2em; color: var(--gold); border-bottom: 1px solid rgba(255, 255, 255, 0.07); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-drop-head b { color: #fff; letter-spacing: 0.06em; }
.user-drop a, .user-drop button {
    display: block; width: 100%; text-align: left; padding: 11px 12px; border: 0; border-radius: 6px; background: none;
    font: inherit; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; color: var(--muted); cursor: pointer;
}
.user-drop a:hover, .user-drop button:hover { background: rgba(255, 61, 139, 0.14); color: #fff; }
.user-drop [data-act="logout"] { color: #ff8fa8; }

/* NEWS and UPDATES links */
.nav a.nav-link { position: relative; }
.nav a.nav-link.is-current { color: #fff; }
.nav a.nav-link.is-current::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--sunset); }

/* ---------- windows (login, verify, staff password) ---------- */
body.modal-open { overflow: hidden; }
.modal-backdrop {
    position: fixed; inset: 0; z-index: 10000; display: none; align-items: center; justify-content: center; padding: 20px;
    background: rgba(6, 3, 12, 0.72); backdrop-filter: blur(6px); overflow-y: auto;
}
.modal-backdrop.open { display: flex; }
.modal {
    position: relative; width: min(440px, 100%); margin: auto; padding: 30px 28px 26px; border-radius: 16px;
    background:
        radial-gradient(ellipse at 100% 0%, rgba(255, 61, 139, 0.16) 0%, transparent 55%),
        radial-gradient(ellipse at 0% 100%, rgba(63, 224, 208, 0.1) 0%, transparent 55%),
        linear-gradient(170deg, #1c0e2f 0%, #0f0719 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
    animation: modalIn 0.22s ease-out;
}
.modal.small { width: min(400px, 100%); }
.modal.wide { width: min(620px, 100%); }
.modal::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; border-radius: 16px 16px 0 0; background: var(--sunset); }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal-corner { position: absolute; left: 50%; top: -34px; width: 68px; height: 68px; transform: translateX(-50%); pointer-events: none; border-radius: 50%;
    background: #140a22 url("/assets/images/logo.webp") center / 74% no-repeat; box-shadow: 0 0 0 3px #ff3d8b, 0 0 26px rgba(255, 61, 139, 0.5); }
.auth-modal .modal { padding-top: 44px; margin-top: 50px; }
.modal-close { position: absolute; top: 12px; right: 14px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.05); color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
.modal-close:hover { background: rgba(255, 61, 139, 0.2); color: #fff; }
.modal-title { font-size: 26px; font-weight: 900; font-style: italic; letter-spacing: 0.02em; margin: 0 0 8px; color: #fff; }
.modal-text { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.modal-text.small { font-size: 12px; margin-bottom: 8px; }
.modal-text b { color: #fff; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }

.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; margin: 6px 0 22px; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 10px; }
.auth-tabs[hidden] { display: none; }
.auth-tabs button { padding: 11px; border: 0; border-radius: 7px; background: none; color: var(--muted); font: inherit; font-size: 12px; font-weight: 800; letter-spacing: 0.18em; cursor: pointer; transition: background 0.2s, color 0.2s; }
.auth-tabs button.active { background: linear-gradient(90deg, #ff3d8b 0%, #ff6a4a 60%, #ff9a3d 100%); color: #fff; box-shadow: 0 6px 18px rgba(255, 61, 139, 0.35); }

/* form fields */
.field { display: block; margin-bottom: 14px; }
.field > span:first-child { display: block; margin-bottom: 7px; font-size: 10px; font-weight: 800; letter-spacing: 0.18em; color: #d9cbe8; }
.field > span b { color: var(--pink); }
.field > span i { font-style: normal; color: var(--muted); letter-spacing: 0.1em; }
.field input, .field select, .field textarea, .input {
    width: 100%; padding: 12px 14px; border-radius: 8px; font: inherit; font-size: 14px; color: #fff;
    background: rgba(0, 0, 0, 0.32); border: 1px solid rgba(255, 255, 255, 0.12); outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field select option { background: #160c26; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { border-color: rgba(255, 61, 139, 0.7); box-shadow: 0 0 0 3px rgba(255, 61, 139, 0.15); }
.field input::placeholder, .field textarea::placeholder { color: #75688a; }
.field input.bad, .input.bad { border-color: #ff5d7a; }
.field-hint { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.field-row { display: flex; justify-content: flex-end; margin: -4px 0 12px; }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 46px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 15px; filter: grayscale(1); opacity: 0.7; }
.pw-eye:hover { opacity: 1; }
.pw-rules { list-style: none; margin: -6px 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 11px; color: var(--muted); }
.pw-rules li::before { content: "○ "; color: #75688a; }
.pw-rules li.ok { color: var(--teal); }
.pw-rules li.ok::before { content: "● "; color: var(--teal); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.ts-box { min-height: 65px; margin: 6px 0 4px; display: flex; justify-content: center; }
.ts-box:empty { min-height: 0; }
.ts-hint { margin: 0 0 10px; text-align: center; font-size: 10px; letter-spacing: 0.08em; color: #75688a; }
.ts-note { margin: 0; padding: 12px; width: 100%; text-align: center; font-size: 12px; color: var(--gold); background: rgba(255, 211, 107, 0.06); border: 1px dashed rgba(255, 211, 107, 0.3); border-radius: 8px; }
.form-error { min-height: 0; margin: 0 0 12px; font-size: 13px; color: #ff8fa8; }
.form-error:empty { display: none; }
.btn-block { width: 100%; }
.btn { border: 0; cursor: pointer; font-family: inherit; }
.btn[disabled] { opacity: 0.6; cursor: wait; transform: none !important; }
.btn.loading { position: relative; color: transparent !important; }
.btn.loading::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-small { padding: 10px 16px; font-size: 11px; }
.btn-danger { background: linear-gradient(90deg, #d7264d, #ff3d5f); color: #fff; box-shadow: 0 8px 24px rgba(215, 38, 77, 0.3); }
.btn-danger:hover { filter: brightness(1.08); transform: translateY(-2px); }
.btn-teal { background: linear-gradient(90deg, #22b8a8, #3fe0d0); color: #0b0613; }
.btn-teal:hover { filter: brightness(1.05); transform: translateY(-2px); }
.link-btn { padding: 0; border: 0; background: none; color: var(--gold); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.back-btn { display: block; margin: 16px auto 0; color: var(--muted); }

.code-boxes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 4px 0 16px; }
.code-boxes input {
    width: 100%; aspect-ratio: 1 / 1.15; text-align: center; font-family: var(--display); font-size: 28px; font-weight: 800; color: #fff;
    background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 10px; outline: none;
}
.code-boxes input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255, 61, 139, 0.18); }
.resend-box { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.07); text-align: center; }
.resend-box .ts-box { margin-bottom: 8px; }

/* ---------- toasts ---------- */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 10002; display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); pointer-events: none; }
.toast { padding: 13px 18px; border-radius: 10px; font-size: 14px; color: #fff; background: #1d0f30; border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55); opacity: 0; transform: translateY(10px); transition: opacity 0.25s, transform 0.25s; border-left: 4px solid var(--gold); }
.toast.show { opacity: 1; transform: none; }
.toast-success { border-left-color: var(--teal); }
.toast-error { border-left-color: #ff4d6d; }

/* ---------- maintenance ---------- */
body.maintenance-mode main, body.maintenance-mode .footer, body.maintenance-mode .nav, body.maintenance-mode .menu-toggle, body.maintenance-mode .ark-popup { display: none !important; }
.maintenance-screen { position: relative; z-index: 2; min-height: calc(100vh - 68px); min-height: calc(100svh - 68px); display: flex; align-items: center; justify-content: center; padding: 40px 20px; overflow: hidden;
    background: linear-gradient(180deg, #140823 0%, #2a0f3d 45%, #5a1a4a 75%, #8a2c3a 100%); }
.maintenance-screen::after { content: ""; position: absolute; inset: auto 0 0 0; height: 24%; background: linear-gradient(180deg, #2a0f3d 0%, rgba(11, 6, 19, 0.55) 40%, rgba(11, 6, 19, 0.2) 100%), url("/assets/images/city/poster.png") 50% 100% / cover no-repeat; image-rendering: pixelated; opacity: 0.6; }
.maintenance-card { position: relative; z-index: 2; text-align: center; max-width: 620px; margin-bottom: 12vh; }
.maintenance-sun { width: 160px; height: 160px; margin: 0 auto 20px; border-radius: 50%; background: linear-gradient(180deg, #ffd36b 0%, #ff8a3d 50%, #ff3d8b 100%);
    -webkit-mask: repeating-linear-gradient(180deg, #000 0 12px, transparent 12px 16px); mask: repeating-linear-gradient(180deg, #000 0 12px, transparent 12px 16px);
    box-shadow: 0 0 80px rgba(255, 61, 139, 0.6); }
.maintenance-card h1 { font-size: clamp(44px, 8vw, 86px); }
.maintenance-text { color: #f1e4f7; font-size: 16px; margin: 16px auto 28px; max-width: 480px; }
.maint-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9997; padding: 8px 16px; text-align: center; font-size: 11px; font-weight: 800; letter-spacing: 0.16em; color: #0b0613; background: repeating-linear-gradient(-45deg, #ffd36b 0 18px, #ffbf3d 18px 36px); }

/* ---------- page shell for account / staff / posts ---------- */
.page-hero { position: relative; padding: 70px 0 26px; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse at 80% 0%, rgba(255, 61, 139, 0.22) 0%, transparent 55%), radial-gradient(ellipse at 10% 100%, rgba(63, 224, 208, 0.12) 0%, transparent 50%); }
.page-hero .wrap { position: relative; }
.page-title { font-size: clamp(40px, 7vw, 72px); font-weight: 900; font-style: italic; line-height: 1; margin: 6px 0 0; color: #fff; }
.page-title em { color: #fff; -webkit-text-fill-color: #fff; background: none; }
.page-body { position: relative; z-index: 2; padding: 10px 0 100px; }
.panel {
    position: relative; padding: 26px 26px 24px; border-radius: 14px;
    background: linear-gradient(160deg, rgba(42, 16, 66, 0.6), rgba(16, 7, 30, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.09);
}
.panel + .panel { margin-top: 18px; }
.panel-title { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-family: var(--display); font-size: 22px; font-weight: 800; font-style: italic; letter-spacing: 0.03em; text-transform: uppercase; color: #fff; }
.panel-title::before { content: ""; width: 4px; height: 20px; border-radius: 2px; background: var(--sunset); }
.panel-lead { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.panel-danger { border-color: rgba(255, 77, 109, 0.35); background: linear-gradient(160deg, rgba(70, 14, 34, 0.55), rgba(16, 7, 30, 0.92)); }
.panel-danger .panel-title::before { background: #ff4d6d; }
.need-login { text-align: center; padding: 60px 24px; }
.need-login h2 { font-size: 34px; margin-bottom: 10px; }
.need-login p { color: var(--muted); margin: 0 0 22px; }
.loading-box { padding: 60px 0; text-align: center; color: var(--muted); }
.loading-box::before { content: ""; display: block; width: 30px; height: 30px; margin: 0 auto 14px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.12); border-top-color: var(--pink); animation: spin 0.8s linear infinite; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 20px; font-size: 10px; font-weight: 800; letter-spacing: 0.14em; color: #fff; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12); white-space: nowrap; }
.badge-admin { background: linear-gradient(90deg, #ff3d8b, #ff8a3d); border-color: transparent; }
.badge-moderator { background: linear-gradient(90deg, #7b3fe4, #3fe0d0); border-color: transparent; }
.badge-ok { color: var(--teal); border-color: rgba(63, 224, 208, 0.4); background: rgba(63, 224, 208, 0.08); }
.badge-off { color: #ff8fa8; border-color: rgba(255, 77, 109, 0.4); background: rgba(255, 77, 109, 0.08); }
.row-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0 0 18px; font-size: 14px; }
.kv dt { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding-top: 2px; }
.kv dd { margin: 0; color: #fff; word-break: break-word; }

/* ---------- profile ---------- */
.profile-grid { display: grid; grid-template-columns: 290px 1fr; gap: 24px; align-items: start; }
.profile-side { position: sticky; top: 92px; }
.profile-card { text-align: center; padding: 28px 22px 22px; }
.avatar-wrap { position: relative; width: 116px; height: 116px; margin: 0 auto 14px; }
.avatar-wrap::before { content: ""; position: absolute; inset: -5px; border-radius: 50%; background: conic-gradient(from 200deg, #ff3d8b, #ff8a3d, #ffd36b, #3fe0d0, #7b3fe4, #ff3d8b); }
.avatar-img { position: relative; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #140a22; border: 4px solid #140a22; }
.avatar-img.is-logo { object-fit: contain; padding: 14px; }
.avatar-edit { position: absolute; right: 0; bottom: 2px; width: 34px; height: 34px; border-radius: 50%; border: 3px solid #140a22; background: var(--pink); color: #fff; font-size: 15px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.profile-name { font-family: var(--display); font-size: 26px; font-weight: 800; font-style: italic; text-transform: uppercase; margin: 0 0 6px; word-break: break-word; }
.profile-since { margin: 10px 0 0; font-size: 11px; letter-spacing: 0.14em; color: var(--muted); }
.avatar-actions { display: flex; gap: 8px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.side-nav { margin-top: 14px; padding: 8px; display: grid; gap: 3px; }
.side-nav button, .side-nav a {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; border: 0; border-radius: 8px; background: none; text-align: left;
    font: inherit; font-size: 11px; font-weight: 800; letter-spacing: 0.16em; color: var(--muted); cursor: pointer; transition: background 0.2s, color 0.2s;
}
.side-nav .ico { width: 18px; text-align: center; font-size: 14px; filter: saturate(0.6); }
.side-nav button:hover, .side-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.04); }
.side-nav button.active { color: #fff; background: linear-gradient(90deg, rgba(255, 61, 139, 0.22), rgba(255, 138, 61, 0.06)); box-shadow: inset 3px 0 0 var(--pink); }
.side-nav .danger { color: #ff8fa8; }
.tab-panel[hidden] { display: none; }
.setting { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.setting:first-of-type { border-top: 0; padding-top: 6px; }
.setting-label { font-size: 11px; font-weight: 800; letter-spacing: 0.16em; color: var(--muted); text-transform: uppercase; }
.setting-value { margin-top: 4px; font-size: 16px; color: #fff; word-break: break-word; }
.setting-note { margin-top: 4px; font-size: 12px; color: var(--muted); }
.ref-box { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 12px; border: 1px dashed rgba(255, 211, 107, 0.4); background: rgba(255, 211, 107, 0.05); }
.ref-code { font-family: var(--display); font-size: 30px; font-weight: 800; font-style: italic; letter-spacing: 0.06em; color: var(--gold); }
.ref-form { display: flex; gap: 10px; flex-wrap: wrap; }
.ref-form .input { flex: 1; min-width: 200px; text-transform: uppercase; }
.dc-card { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 12px; background: rgba(88, 101, 242, 0.1); border: 1px solid rgba(88, 101, 242, 0.35); margin-bottom: 18px; flex-wrap: wrap; }
.dc-logo { width: 46px; height: 46px; border-radius: 12px; background: #5865f2; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dc-who { flex: 1; min-width: 160px; }
.dc-who b { display: block; font-size: 16px; }
.dc-who span { font-size: 12px; color: var(--muted); }
.check { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 10px; background: rgba(0, 0, 0, 0.22); border: 1px solid rgba(255, 255, 255, 0.07); cursor: pointer; }
.check + .check { margin-top: 8px; }
.check input { appearance: none; flex-shrink: 0; width: 20px; height: 20px; margin: 1px 0 0; border-radius: 5px; border: 2px solid rgba(255, 255, 255, 0.3); background: transparent; cursor: pointer; display: grid; place-items: center; }
.check input:checked { background: var(--sunset); border-color: transparent; }
.check input:checked::after { content: "✓"; color: #0b0613; font-size: 13px; font-weight: 900; line-height: 1; }
.check b { display: block; font-size: 14px; color: #fff; }
.check small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.warn-note { margin: 12px 0 0; padding: 10px 14px; border-radius: 8px; font-size: 12px; color: var(--gold); background: rgba(255, 211, 107, 0.07); border: 1px solid rgba(255, 211, 107, 0.25); }
.switch { position: relative; display: inline-flex; width: 50px; height: 28px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 30px; background: rgba(255, 255, 255, 0.12); cursor: pointer; transition: background 0.2s; }
.switch span::before { content: ""; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: transform 0.2s; }
.switch input:checked + span { background: linear-gradient(90deg, #ff3d8b, #ff8a3d); }
.switch input:checked + span::before { transform: translateX(22px); }
.switch input:disabled + span { opacity: 0.55; cursor: not-allowed; }
.purchase-list { display: grid; gap: 10px; }
.purchase { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 10px; background: rgba(0, 0, 0, 0.22); border: 1px solid rgba(255, 255, 255, 0.07); }
.purchase img, .purchase .thumb { width: 64px; height: 44px; border-radius: 6px; object-fit: cover; background: linear-gradient(135deg, #2a1442, #5a1a4a); flex-shrink: 0; }
.purchase b { display: block; }
.purchase small { color: var(--muted); }
.purchase .grow { flex: 1; min-width: 0; }
.empty-note { padding: 26px; text-align: center; color: var(--muted); border: 1px dashed rgba(255, 255, 255, 0.14); border-radius: 10px; }

/* ---------- admin ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { padding: 18px; border-radius: 12px; background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(255, 255, 255, 0.07); }
.stat b { display: block; font-family: var(--display); font-size: 34px; font-weight: 800; font-style: italic; line-height: 1; background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; margin-top: 6px; font-size: 10px; font-weight: 800; letter-spacing: 0.16em; color: var(--muted); }
.table-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.07); }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; padding: 11px 14px; font-size: 10px; letter-spacing: 0.16em; color: var(--muted); background: rgba(0, 0, 0, 0.3); white-space: nowrap; }
.table td { padding: 11px 14px; border-top: 1px solid rgba(255, 255, 255, 0.06); vertical-align: middle; }
.table tr.clickable { cursor: pointer; }
.table tr.clickable:hover td { background: rgba(255, 61, 139, 0.06); }
.mini-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: #140a22; vertical-align: middle; margin-right: 8px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.toolbar .input { flex: 1; min-width: 200px; }
.pager { display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: 18px; font-size: 12px; color: var(--muted); }
.pager button { min-width: 38px; height: 38px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(0, 0, 0, 0.25); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.pager button:disabled { opacity: 0.35; cursor: default; }
.log-list { display: grid; gap: 6px; font-size: 13px; }
.log-item { display: grid; grid-template-columns: 150px 140px 1fr; gap: 12px; padding: 10px 14px; border-radius: 8px; background: rgba(0, 0, 0, 0.22); }
.log-item time { color: var(--muted); font-size: 12px; }
.log-item b { color: var(--gold); }
.maint-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border-radius: 12px; background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(255, 255, 255, 0.07); flex-wrap: wrap; }
.maint-row.on { border-color: rgba(255, 211, 107, 0.5); background: rgba(255, 211, 107, 0.07); }

/* ---------- editor ---------- */
.kind-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.kind-pick button { padding: 16px 10px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(0, 0, 0, 0.25); color: var(--muted); font: inherit; font-size: 12px; font-weight: 800; letter-spacing: 0.16em; cursor: pointer; }
.kind-pick button span { display: block; font-size: 22px; margin-bottom: 4px; }
.kind-pick button.active { color: #fff; border-color: transparent; background: linear-gradient(135deg, rgba(255, 61, 139, 0.35), rgba(255, 138, 61, 0.2)); box-shadow: inset 0 0 0 1px rgba(255, 61, 139, 0.6); }
.lang-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.lang-tabs button { padding: 8px 14px; border-radius: 7px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(0, 0, 0, 0.25); color: var(--muted); font: inherit; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; cursor: pointer; }
.lang-tabs button.active { color: #fff; border-color: var(--pink); background: rgba(255, 61, 139, 0.16); }
.lang-tabs button.filled::after { content: " ●"; color: var(--teal); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
.img-list { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.img-item { position: relative; width: 120px; height: 80px; border-radius: 8px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.12); }
.img-item img { width: 100%; height: 100%; object-fit: cover; }
.img-item button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, 0.75); color: #fff; cursor: pointer; }
.img-item .first { position: absolute; left: 4px; bottom: 4px; padding: 2px 6px; border-radius: 4px; font-size: 9px; font-weight: 800; letter-spacing: 0.1em; background: var(--pink); }
.img-add { width: 120px; height: 80px; border-radius: 8px; border: 1px dashed rgba(255, 255, 255, 0.25); background: rgba(0, 0, 0, 0.2); color: var(--muted); font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-align: center; }
.format-help { font-size: 12px; color: var(--muted); margin: -6px 0 14px; }
.format-help code { color: var(--gold); }
.post-admin-list { display: grid; gap: 8px; }
.post-admin { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; background: rgba(0, 0, 0, 0.22); border: 1px solid rgba(255, 255, 255, 0.07); }
.post-admin .grow { flex: 1; min-width: 0; }
.post-admin b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-admin small { color: var(--muted); }

/* ---------- news / updates / script pages ---------- */
.post-list { display: grid; gap: 22px; }
.post-card { position: relative; display: grid; grid-template-columns: 300px 1fr; border-radius: 14px; overflow: hidden; background: linear-gradient(160deg, rgba(42, 16, 66, 0.7), rgba(16, 7, 30, 0.92)); border: 1px solid rgba(255, 61, 139, 0.18); }
.post-card.no-image { grid-template-columns: 1fr; }
.post-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--sunset); z-index: 1; }
.post-cover { position: relative; min-height: 200px; background: #140a22; }
.post-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-main { padding: 24px 26px; min-width: 0; }
.post-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal); }
.post-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, 0.3); }
.post-meta a { color: var(--gold); }
.post-main h2 { font-size: clamp(24px, 3vw, 32px); margin: 8px 0 10px; font-style: italic; }
.post-main h2 a:hover { color: var(--gold); }
.post-summary { color: var(--muted); margin: 0 0 14px; }
.post-text { color: #e4d7ef; line-height: 1.75; }
.post-text p { margin: 0 0 12px; }
.post-text h4 { font-family: var(--display); font-size: 20px; font-style: italic; text-transform: uppercase; margin: 18px 0 8px; color: #fff; }
.post-text ul { margin: 0 0 12px; padding-left: 20px; }
.post-text li { margin-bottom: 4px; }
.post-text li::marker { color: var(--pink); }
.post-text code { padding: 1px 6px; border-radius: 4px; background: rgba(0, 0, 0, 0.35); color: var(--gold); font-size: 0.92em; }
.post-text a { color: var(--gold); text-decoration: underline; }
.post-text.clamped { max-height: 9.5em; overflow: hidden; -webkit-mask: linear-gradient(180deg, #000 60%, transparent); mask: linear-gradient(180deg, #000 60%, transparent); }
.read-more { margin-top: 10px; }
.version-tag { display: inline-flex; padding: 3px 10px; border-radius: 4px; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; color: #0b0613; background: var(--gold); }
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 22px; }
.filter-bar .field { margin: 0; min-width: 240px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin: 18px 0; }
.gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; cursor: zoom-in; border: 1px solid rgba(255, 255, 255, 0.1); }
.lightbox { position: fixed; inset: 0; z-index: 10001; display: flex; align-items: center; justify-content: center; padding: 30px; background: rgba(0, 0, 0, 0.9); cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; }

/* script page */
.script-hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 26px; align-items: start; }
.script-cover { border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #2a1442, #5a1a4a); border: 1px solid rgba(255, 255, 255, 0.1); }
.script-cover img { width: 100%; height: 100%; object-fit: cover; }
.buy-box { position: sticky; top: 92px; }
.price-big { font-family: var(--display); font-size: 46px; font-weight: 900; font-style: italic; line-height: 1; margin: 6px 0 16px; background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tag-list { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0 18px; }
.tag-list span { padding: 4px 10px; border-radius: 20px; font-size: 11px; color: #e4d7ef; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; margin: 18px 0; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.owned-note { margin: 0 0 12px; padding: 10px 14px; border-radius: 8px; font-size: 13px; color: var(--teal); background: rgba(63, 224, 208, 0.08); border: 1px solid rgba(63, 224, 208, 0.3); }

/* script cards on the home page */
.script-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; margin-top: 34px; }
.script-card { position: relative; display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; background: linear-gradient(160deg, #1a0d2b 0%, #0e0718 100%); border: 1px solid var(--line); transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; }
.script-card:hover { transform: translateY(-4px); border-color: rgba(255, 61, 139, 0.45); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); }
.script-card-img { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #2a1442, #5a1a4a); overflow: hidden; }
.script-card-img img { width: 100%; height: 100%; object-fit: cover; }
.script-card-img .letter { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 60px; font-weight: 900; font-style: italic; color: rgba(255, 255, 255, 0.2); }
.script-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.script-card-body h3 { font-size: 22px; font-style: italic; }
.script-card-body p { margin: 0; color: var(--muted); font-size: 13px; flex: 1; }
.script-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 6px; }
.script-price { font-family: var(--display); font-size: 24px; font-weight: 800; font-style: italic; color: var(--gold); }
.cat-tag { position: absolute; top: 10px; left: 10px; z-index: 1; padding: 4px 10px; border-radius: 4px; font-size: 9px; font-weight: 800; letter-spacing: 0.16em; color: #fff; background: rgba(11, 6, 19, 0.8); border: 1px solid rgba(255, 255, 255, 0.15); }
.spotlight-card.has-script { display: block; min-height: 0; }
.spotlight-card.has-script .script-card { border: 0; border-radius: 0; height: 100%; }
.spotlight-card.has-script .spotlight-tag { z-index: 2; }

/* ---------- GTA VI facts & tips ticker (above Dependencies) ---------- */
.facts { position: relative; z-index: 2; padding: 38px 0 0; }
.facts-card {
    position: relative; overflow: hidden; border-radius: 16px; padding: 26px 30px 26px 100px; min-height: 128px;
    background:
        linear-gradient(90deg, rgba(11, 6, 19, 0.94) 0%, rgba(26, 10, 44, 0.86) 45%, rgba(60, 14, 52, 0.6) 100%),
        url("/assets/images/city/poster.png") 70% 70% / cover no-repeat;
    border: 1px solid rgba(255, 61, 139, 0.28);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    image-rendering: auto;
}
.facts-card::before { /* hibiscus flowers + palm leaves */
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.16;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg transform='translate%2840 42%29'%3E%3Cg fill='%23ff3d8b'%3E%3Cellipse rx='9' ry='17' cy='-14'/%3E%3Cellipse rx='9' ry='17' cy='-14' transform='rotate%2872%29'/%3E%3Cellipse rx='9' ry='17' cy='-14' transform='rotate%28144%29'/%3E%3Cellipse rx='9' ry='17' cy='-14' transform='rotate%28216%29'/%3E%3Cellipse rx='9' ry='17' cy='-14' transform='rotate%28288%29'/%3E%3C/g%3E%3Ccircle r='5' fill='%23ffd36b'/%3E%3C/g%3E%3Cg transform='translate%28104 102%29 rotate%28-35%29' fill='none' stroke='%233fe0d0' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M0 -30 Q4 0 0 30'/%3E%3Cpath d='M0 -20 L-14 -12 M0 -10 L-16 -2 M0 0 L-16 8 M0 10 L-14 18 M0 -20 L14 -12 M0 -10 L16 -2 M0 0 L16 8 M0 10 L14 18'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 140px 140px repeat;
    -webkit-mask: linear-gradient(90deg, transparent 35%, #000 100%); mask: linear-gradient(90deg, transparent 35%, #000 100%);
}
.facts-card::after { /* sunset stripes on the left */
    content: ""; position: absolute; left: 22px; top: 50%; width: 56px; height: 56px; transform: translateY(-50%); border-radius: 50%;
    background: linear-gradient(180deg, #ffd36b 0%, #ff8a3d 50%, #ff3d8b 100%);
    -webkit-mask: repeating-linear-gradient(180deg, #000 0 6px, transparent 6px 9px); mask: repeating-linear-gradient(180deg, #000 0 6px, transparent 6px 9px);
    box-shadow: 0 0 30px rgba(255, 61, 139, 0.6);
}
.facts-head { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.facts-label { font-size: 10px; font-weight: 800; letter-spacing: 0.26em; color: var(--gold); }
.facts-kind { padding: 3px 9px; border-radius: 4px; font-size: 9px; font-weight: 800; letter-spacing: 0.18em; color: #0b0613; background: var(--teal); }
.facts-kind.tip { background: var(--gold); }
.facts-nav { margin-left: auto; display: flex; gap: 6px; }
.facts-nav button { position: relative; z-index: 2; width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(0, 0, 0, 0.3); color: #fff; cursor: pointer; font-size: 13px; }
.facts-nav button:hover { border-color: var(--pink); }
.facts-text {
    position: relative; z-index: 1; margin: 0; max-width: 880px; min-height: 2.8em;
    font-family: var(--display); font-size: clamp(19px, 2.3vw, 26px); font-weight: 700; font-style: italic; line-height: 1.3; letter-spacing: 0.01em; color: #fff;
    text-shadow: 0 2px 0 rgba(20, 6, 32, 0.9), 0 0 22px rgba(255, 61, 139, 0.35);
    transition: opacity 0.45s, transform 0.45s;
}
.facts-text.out { opacity: 0; transform: translateY(8px); }
.facts-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: rgba(255, 255, 255, 0.06); }
.facts-bar i { display: block; height: 100%; width: 0; background: var(--sunset); }
.facts-card.paused .facts-label::after { content: " · II"; color: var(--muted); }

/* ---------- small screens ---------- */
@media (max-width: 980px) {
    .profile-grid { grid-template-columns: 1fr; }
    .profile-side { position: static; }
    .side-nav { grid-template-columns: repeat(3, 1fr); }
    .side-nav button { justify-content: center; text-align: center; padding: 11px 6px; font-size: 10px; letter-spacing: 0.1em; flex-direction: column; gap: 4px; }
    .script-hero { grid-template-columns: 1fr; }
    .buy-box { position: static; }
    .post-card { grid-template-columns: 1fr; }
    .post-cover { min-height: 0; aspect-ratio: 16 / 8; }
}
@media (max-width: 880px) {
    .topbar > .topbar-tools { margin-right: 0; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); gap: 8px; }
    .topbar > .topbar-tools .lang-btn { padding: 6px 8px; }
    .topbar > .topbar-tools .lang-name { display: none; }
    .user-btn { width: 36px; height: 36px; }
}
@media (max-width: 640px) {
    .form-grid { grid-template-columns: 1fr; }
    .kind-pick { grid-template-columns: 1fr; }
    .panel { padding: 20px 16px; }
    .setting { flex-direction: column; align-items: flex-start; }
    .log-item { grid-template-columns: 1fr; gap: 2px; }
    .facts-card { padding: 84px 20px 22px; }
    .facts-card::after { left: 20px; top: 20px; transform: none; width: 48px; height: 48px; }
    .facts-head { position: absolute; top: 26px; left: 82px; right: 20px; margin: 0; }
    .modal { padding: 26px 18px 22px; }
    .code-boxes { gap: 6px; }
    .code-boxes input { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
    .facts-text { transition: none; }
    .modal, .user-menu.open .user-drop { animation: none; }
}

/* small fixes */
.panel .btn-ghost, .modal .btn-ghost { border-color: rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.04); }
.panel .btn-ghost:hover, .modal .btn-ghost:hover { border-color: var(--pink); }
.spotlight-card .cat-tag { left: auto; right: 10px; }
.script-cover .letter { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; font-family: var(--display); font-size: 120px; font-weight: 900; font-style: italic; color: rgba(255, 255, 255, 0.16); }
body.has-maint-banner { padding-bottom: 34px; }

/* "Verify you are human" button before the Cloudflare check */
.ts-start { display: inline-flex; align-items: center; gap: 12px; width: 300px; max-width: 100%; height: 65px; padding: 0 18px; border-radius: 6px; cursor: pointer;
    font: inherit; font-size: 14px; font-weight: 600; color: #fff; background: #232323; border: 1px solid #3a3a3a; transition: border-color 0.2s, background 0.2s; }
.ts-start:hover { border-color: var(--pink); background: #2a2230; }
.ts-check { width: 24px; height: 24px; border-radius: 4px; border: 2px solid #8a8a8a; background: #111; flex-shrink: 0; }
.ts-start:hover .ts-check { border-color: var(--pink); }
.ts-loading { margin: 0; height: 65px; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--muted); }

/* ---------- header: bigger language button on computers ---------- */
@media (min-width: 881px) {
    .topbar-tools .lang-btn { height: 35px; padding: 0 13px; gap: 9px; font-size: 12px; border-radius: 7px; }
    .topbar-tools .lang-btn .lang-flag { width: 22px; height: 15px; }
    .topbar-tools .lang-arrow { font-size: 9px; }
    .topbar-tools .lang-menu li { padding: 10px 13px; font-size: 11.5px; }
    .topbar-tools .lang-menu li .lang-flag { width: 22px; height: 15px; }
    .user-btn { width: 36px; height: 36px; }
    .user-btn svg { width: 19px; height: 19px; }
}

/* HOME is highlighted on the home page, like NEWS and UPDATES on theirs */
.nav .home-dropdown-btn.is-current { color: #fff; position: relative; }
.nav .home-dropdown-btn.is-current::after { content: ""; position: absolute; left: 0; right: 13px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--sunset); }

.avatar-hint { margin: 10px 0 0; font-size: 11px; color: var(--muted); }

/* ---------- admin: usage & limits ---------- */
.usage-title { margin: 26px 0 6px; font-family: var(--display); font-size: 18px; font-style: normal; letter-spacing: 0.08em; color: #fff; }
.usage-note { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.stat small { display: block; margin-top: 6px; font-size: 11px; color: var(--muted); }
.usage-mail .stat b { margin: 6px 0 10px; font-size: 28px; }
.meter { position: relative; height: 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.07); overflow: hidden; margin: 12px 0 4px; }
.meter i { position: absolute; inset: 0 auto 0 0; border-radius: 8px; background: linear-gradient(90deg, #3fe0d0, #22b8a8); min-width: 2px; }
.meter i.warn { background: linear-gradient(90deg, #ffd36b, #ff8a3d); }
.meter i.bad { background: linear-gradient(90deg, #ff3d8b, #ff4d6d); }
.spark { display: flex; align-items: flex-end; gap: 4px; height: 34px; margin: 4px 0 6px; }
.spark i { flex: 1; border-radius: 2px 2px 0 0; background: rgba(255, 61, 139, 0.55); }
.spark i:last-child { background: var(--pink); }
.admin-view .stat b { font-size: clamp(22px, 2.1vw, 30px); white-space: nowrap; }
.admin-view .stat span { letter-spacing: 0.12em; }

/* ---------- News / Updates search ---------- */
.filters { margin-bottom: 22px; }
.filters .filter-bar { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin: 0; padding: 18px; border-radius: 12px;
    background: linear-gradient(160deg, rgba(42, 16, 66, 0.55), rgba(16, 7, 30, 0.9)); border: 1px solid rgba(255, 255, 255, 0.08); }
.filters .field { margin: 0; min-width: 160px; flex: 0 1 190px; }
.filters .field.grow { flex: 1 1 260px; }
.filters .field.small { flex: 0 1 120px; min-width: 110px; }
.search-wrap { position: relative; display: block; }
.search-wrap input { padding-left: 38px; }
.search-ico { position: absolute; left: 13px; top: 50%; transform: translateY(-52%); font-size: 18px; color: var(--muted); pointer-events: none; }
.filter-status { display: flex; justify-content: space-between; align-items: center; min-height: 20px; margin-top: 10px; font-size: 12px; letter-spacing: 0.08em; color: var(--muted); }
.list-area { transition: opacity 0.15s; }
.list-area.is-loading { opacity: 0.5; }
@media (max-width: 640px) { .filters .filter-bar { padding: 14px; gap: 10px; } .filters .field, .filters .field.small { flex: 1 1 calc(50% - 5px); min-width: 0; } .filters .field.grow { flex: 1 1 100%; } }

/* =========================================================
   NEWS / UPDATES header: retro sun setting behind Vice City
   ========================================================= */
.sunset-hero { padding: 84px 0 92px; min-height: 360px; border-bottom: 1px solid rgba(255, 61, 139, 0.22);
    background: linear-gradient(180deg, #0b0613 0%, #1a0a2c 38%, #3a1240 72%, #5a1a40 100%); }
.sunset-hero::before { background:
    radial-gradient(ellipse at 74% 78%, rgba(255, 138, 61, 0.35) 0%, transparent 42%),
    radial-gradient(ellipse at 20% 0%, rgba(123, 63, 228, 0.25) 0%, transparent 55%); }
.sh-scene { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.sh-sun { position: absolute; right: max(7vw, 60px); bottom: 44px; width: min(300px, 34vw); aspect-ratio: 1; border-radius: 50%;
    background: linear-gradient(180deg, #ffe08a 0%, #ffb347 35%, #ff7a45 62%, #ff3d8b 100%);
    -webkit-mask: linear-gradient(180deg, #000 0 48%, transparent 48% 52%, #000 52% 60%, transparent 60% 65%, #000 65% 72%, transparent 72% 78%, #000 78% 84%, transparent 84% 91%, #000 91%);
    mask: linear-gradient(180deg, #000 0 48%, transparent 48% 52%, #000 52% 60%, transparent 60% 65%, #000 65% 72%, transparent 72% 78%, #000 78% 84%, transparent 84% 91%, #000 91%);
    filter: drop-shadow(0 0 40px rgba(255, 90, 120, 0.55)); }
.sh-skyline { position: absolute; right: 0; bottom: 44px; height: 190px; width: auto; max-width: 70vw; }
/* the moving floor is drawn by js/sunset-grid.js on a canvas (sharp and smooth on every screen) */
.sh-grid { position: absolute; left: 0; right: 0; bottom: 0; height: 46px; overflow: hidden; background: linear-gradient(180deg, #2a0c30, #0b0613); }
.sh-grid canvas { display: block; width: 100%; height: 100%; }
.sunset-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 44px; height: 2px; background: linear-gradient(90deg, transparent, rgba(255, 61, 139, 0.9) 30%, rgba(255, 211, 107, 0.9) 70%, transparent); box-shadow: 0 0 18px rgba(255, 61, 139, 0.8); }
.sunset-hero .wrap { position: relative; z-index: 2; }
.sh-eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 12px; border-radius: 30px; margin-bottom: 16px;
    background: rgba(11, 6, 19, 0.55); border: 1px solid rgba(255, 211, 107, 0.35); backdrop-filter: blur(6px); }
.sh-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); animation: shPulse 1.8s ease-in-out infinite; }
@keyframes shPulse { 50% { opacity: 0.35; } }
.sunset-hero .page-title { font-size: clamp(46px, 8vw, 96px); text-shadow: 0 4px 0 rgba(20, 6, 32, 0.9), 0 10px 40px rgba(11, 6, 19, 0.8); }
.sunset-hero .page-title em { background: linear-gradient(180deg, #ffffff 0%, #ffe9a8 40%, #ff9a4d 75%, #ff3d8b 100%); -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent; text-shadow: none; filter: drop-shadow(0 3px 0 rgba(20, 6, 32, 0.95)) drop-shadow(0 0 22px rgba(255, 61, 139, 0.55)); padding-right: 0.08em; }
.sunset-hero .section-lead { color: #eadff2; font-size: 17px; max-width: 520px; text-shadow: 0 2px 12px rgba(11, 6, 19, 0.9); }
.sh-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; min-height: 34px; }
.sh-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 8px; font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #fff;
    background: rgba(11, 6, 19, 0.6); border: 1px solid rgba(255, 255, 255, 0.14); backdrop-filter: blur(6px); animation: shChip 0.4s ease-out both; }
.sh-chip b { color: var(--gold); font-weight: 800; }
.sh-chip i { font-style: normal; font-size: 13px; }
@keyframes shChip { from { opacity: 0; transform: translateY(6px); } }
@media (max-width: 880px) {
    .sunset-hero { padding: 60px 0 96px; min-height: 0; }
    .sh-sun { width: 170px; right: 18px; bottom: 44px; opacity: 0.75; }
    .sh-skyline { height: 120px; max-width: 100vw; opacity: 0.95; }
}
@media (prefers-reduced-motion: reduce) { .sh-dot, .sh-chip { animation: none; } }

/* "Created by Arkhyron" line at the bottom of every page */
.footer-credit { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.06); font-size: 11px; letter-spacing: 0.08em; color: var(--muted); text-align: center; }
.footer-credit a { color: var(--gold); font-weight: 700; }
.footer-credit a:hover { text-decoration: underline; }

/* purchases & requests */
.purchase code, .req-card code { padding: 1px 6px; border-radius: 4px; background: rgba(0, 0, 0, 0.35); color: var(--gold); font-size: 0.92em; word-break: break-all; }
.purchase small { display: block; }
.req-reason { color: #ff8fa8 !important; margin-top: 3px; }
.req-hint { margin: -6px 0 12px; }
.btn.cooling { opacity: 0.7; cursor: not-allowed; }

/* =========================================================
   Admin: phone width fix, purchase requests, log search, Discord webhook builder
   ========================================================= */
/* grid children may shrink below their content, so wide tables scroll inside their box instead of stretching the page */
.profile-grid > *, .profile-main, .admin-view, .admin-view .panel { min-width: 0; }
.modal.wide { max-width: min(760px, calc(100vw - 24px)); }
.modal { overflow-wrap: anywhere; }
.stat-alert { border-color: rgba(255, 61, 139, 0.55); box-shadow: 0 0 0 1px rgba(255, 61, 139, 0.25) inset; }

.add-purchase { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr 1.3fr auto; gap: 10px; margin-top: 12px; align-items: center; }
.add-purchase .input { width: 100%; min-width: 0; }
.wh-add .add-purchase { grid-template-columns: 1fr 2fr auto; }
.purchase-row code, .req-card code, .wh-hook code { font-size: 12px; padding: 1px 6px; border-radius: 4px; background: rgba(0, 0, 0, 0.35); color: var(--teal); word-break: break-all; }

.req-list { display: grid; gap: 14px; }
.req-card { padding: 18px; border-radius: 12px; background: rgba(0, 0, 0, 0.24); border: 1px solid rgba(255, 255, 255, 0.08); }
.req-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 15px; }
.req-card .kv { margin-bottom: 12px; }
.req-checks { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chk { padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; border: 1px solid; }
.chk.ok { color: var(--teal); border-color: rgba(63, 224, 208, 0.4); background: rgba(63, 224, 208, 0.08); }
.chk.no { color: #ff8fa8; border-color: rgba(255, 77, 109, 0.4); background: rgba(255, 77, 109, 0.08); }
.req-card .warn-note { margin: 0 0 12px; }

.log-view .filters { margin-bottom: 16px; }
.log-view .filter-bar { padding: 14px; }
.log-item em { font-style: normal; color: #fff; font-weight: 600; }

.wh-saved { display: grid; gap: 8px; margin-bottom: 12px; }
.wh-hook { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 8px; background: rgba(0, 0, 0, 0.24); }
.wh-hook b { flex: 0 0 auto; }
.wh-hook code { flex: 1; min-width: 0; }
.wh-add summary, .wh-embed summary { cursor: pointer; font-size: 11px; font-weight: 800; letter-spacing: 0.14em; color: var(--gold); padding: 6px 0; }
.icon-btn { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 7px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(0, 0, 0, 0.25); color: #fff; cursor: pointer; font: inherit; line-height: 1; }
.icon-btn:hover:not(:disabled) { border-color: var(--pink); }
.icon-btn:disabled { opacity: 0.3; cursor: default; }
.icon-btn.danger { color: #ff8fa8; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.two-col .field { margin-bottom: 12px; }
.check-row { display: flex; align-items: center; gap: 9px; margin: 8px 0 14px; font-size: 13px; color: var(--muted); cursor: pointer; }
.check-row input { width: 17px; height: 17px; accent-color: var(--pink); }
.color-row { display: flex !important; gap: 8px; margin: 0 !important; }
.color-row input[type="color"] { width: 46px; height: 42px; padding: 3px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(0, 0, 0, 0.3); cursor: pointer; flex: 0 0 auto; }
.wh-embeds { display: grid; gap: 10px; margin-bottom: 12px; }
.wh-embed { padding: 8px 14px 4px; border-radius: 10px; background: rgba(0, 0, 0, 0.22); border: 1px solid rgba(255, 255, 255, 0.07); border-left: 4px solid var(--bar, #202225); }
.wh-embed summary { display: flex; align-items: center; gap: 10px; list-style: none; }
.wh-embed summary::-webkit-details-marker { display: none; }
.wh-embed summary small { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-weight: 400; letter-spacing: 0; font-size: 12px; }
.wh-embed-tools { display: flex; gap: 6px; }
.wh-embed[open] summary { margin-bottom: 10px; }
.wh-fields { display: grid; gap: 8px; margin-bottom: 8px; }
.wh-field { display: grid; grid-template-columns: 1fr 1.4fr auto auto; gap: 8px; align-items: start; padding: 8px; border-radius: 8px; background: rgba(0, 0, 0, 0.2); }
.wh-field textarea { min-height: 42px; }
.wh-field .check-row { margin: 10px 0 0; font-size: 12px; }
.wh-embed .f-add { margin-bottom: 14px; }

/* Discord-like preview */
.dc-preview { margin-top: 10px; padding: 16px; border-radius: 10px; background: #313338; color: #dbdee1; font-family: "gg sans", "Noto Sans", "Helvetica Neue", Arial, sans-serif; font-size: 15px; line-height: 1.375; overflow-wrap: anywhere; }
.dc-msg { display: flex; gap: 14px; }
.dc-avatar { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; background: #5865f2; display: grid; place-items: center; font-size: 20px; overflow: hidden; }
.dc-main { flex: 1; min-width: 0; }
.dc-name { color: #f2f3f5; font-weight: 600; margin-bottom: 2px; }
.dc-name small { color: #949ba4; font-size: 12px; font-weight: 400; margin-left: 4px; white-space: nowrap; }
.dc-bot { display: inline-block; padding: 0 5px; border-radius: 4px; background: #5865f2; color: #fff; font-size: 10px; font-weight: 700; vertical-align: 2px; }
.dc-content { margin-bottom: 4px; }
.dc-preview code { padding: 1px 4px; border-radius: 4px; background: #2b2d31; font-size: 13px; }
.dc-preview a { color: #00a8fc; }
.dc-embed { display: flex; gap: 16px; max-width: 520px; margin-top: 6px; padding: 10px 16px 14px 12px; border-radius: 4px; background: #2b2d31; border-left: 4px solid #202225; }
.dc-body { flex: 1; min-width: 0; display: grid; gap: 8px; }
.dc-author { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #f2f3f5; }
.dc-title { font-weight: 600; color: #f2f3f5; }
.dc-desc { font-size: 14px; }
.dc-fields { display: flex; flex-wrap: wrap; gap: 8px 0; }
.dc-field { flex: 1 0 100%; font-size: 14px; padding-right: 10px; }
.dc-field.inline { flex: 1 0 30%; }
.dc-fn { font-weight: 600; color: #f2f3f5; margin-bottom: 2px; }
.dc-footer { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #b5bac1; }
.dc-empty { color: #949ba4; font-style: italic; font-size: 13px; }
.dc-ph { display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 4px; background: repeating-linear-gradient(45deg, #3a3c42 0 8px, #34363c 8px 16px); color: #949ba4; font-size: 14px; }
.dc-ph.icon { width: 22px; height: 22px; border-radius: 50%; font-size: 10px; }
.dc-ph.avatar { width: 100%; height: 100%; border-radius: 50%; }
.dc-ph.thumb { width: 80px; height: 80px; }
.dc-ph.big { width: 100%; height: 160px; font-size: 26px; }

@media (max-width: 1100px) {
        .add-purchase { grid-template-columns: 1fr 1fr; }
    .add-purchase .btn { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    /* users list as cards on phones */
    .users-table thead { display: none; }
    .users-table, .users-table tbody, .users-table tr, .users-table td { display: block; width: 100%; }
    .users-table tr { padding: 12px 14px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
    .users-table td { padding: 3px 0; border: 0; font-size: 12px; overflow-wrap: anywhere; }
    .users-table td.u-name { font-size: 14px; font-weight: 700; padding-bottom: 6px; }
    .users-table td[data-label]::before { content: attr(data-label) " · "; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: 0.12em; }
    .users-table tr.clickable:hover td { background: none; }
    .users-table tr.clickable:active { background: rgba(255, 61, 139, 0.06); }
    .toolbar .input { min-width: 0; width: 100%; }
    .add-purchase, .wh-add .add-purchase, .two-col { grid-template-columns: 1fr; }
    .wh-field { grid-template-columns: 1fr auto; }
    .wh-field textarea { grid-column: 1 / -1; grid-row: 2; }
    .wh-hook { flex-wrap: wrap; }
    .kv { grid-template-columns: 1fr; gap: 2px; }
    .kv dd { margin-bottom: 8px; }
    .req-head { flex-direction: column; align-items: flex-start; }
    .dc-preview { padding: 12px; font-size: 14px; }
    .dc-msg { gap: 10px; }
    .dc-embed { padding: 8px 10px 10px 10px; gap: 10px; }
    .dc-ph.thumb { width: 56px; height: 56px; }
}
.cart-checkout-btn.is-busy, .cart-checkout-btn:disabled { opacity: 0.6; cursor: progress; transform: none; }
/* the Arkhyron pop-up never covers the cart or an open window */
body:has(.cart-drawer-wrapper.active) #arkhyron-promo-popup, body:has(.modal-backdrop.open) #arkhyron-promo-popup { visibility: hidden; pointer-events: none; }
.users-table td.u-name { display: flex; align-items: center; }

/* ---------- script reviews ---------- */
.stars { color: #ffb13d; letter-spacing: 2px; font-size: 15px; white-space: nowrap; }
.stars i { font-style: normal; color: rgba(255, 255, 255, 0.16); }
.stars.big { font-size: 22px; }
.rating-link { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 12px; color: #fff; text-decoration: none; font-size: 14px; }
.rating-link span { color: var(--muted); }
.rating-link:hover b { text-decoration: underline; }
.rv-top { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: center; padding: 18px; border-radius: 12px; background: rgba(0, 0, 0, 0.22); margin-bottom: 18px; }
.rv-summary { text-align: center; display: grid; gap: 4px; justify-items: center; }
.rv-avg { font-family: var(--display); font-size: 52px; font-weight: 800; font-style: italic; line-height: 1; background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rv-summary small { color: var(--muted); font-size: 12px; letter-spacing: 0.06em; }
.rv-bars { display: grid; gap: 7px; }
.rv-bar { display: grid; grid-template-columns: 34px 1fr 34px; gap: 10px; align-items: center; font-size: 12px; color: var(--muted); }
.rv-bar i { display: block; height: 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.rv-bar b { display: block; height: 100%; background: linear-gradient(90deg, #ffb13d, #ff3d8b); border-radius: 6px; }
.rv-mine, .rv-note { margin-bottom: 18px; padding: 16px 18px; border-radius: 12px; border: 1px dashed rgba(255, 177, 61, 0.35); background: rgba(255, 177, 61, 0.04); }
.rv-note p { margin: 0 0 10px; color: var(--muted); }
.rv-note p:last-child { margin: 0; }
.rv-mine .rv-card { background: none; padding: 0; margin-bottom: 12px; }
.star-pick { display: inline-flex; flex-direction: row-reverse; gap: 4px; margin: 4px 0 12px; }
.star-pick label { cursor: pointer; font-size: 30px; line-height: 1; color: rgba(255, 255, 255, 0.18); transition: color 0.15s, transform 0.15s; }
.star-pick input { position: absolute; opacity: 0; pointer-events: none; }
.star-pick label:hover, .star-pick label:hover ~ label, .star-pick label:has(input:checked), .star-pick label:has(input:checked) ~ label { color: #ffb13d; }
.star-pick label:hover { transform: scale(1.12); }
.star-pick label:has(input:focus-visible) { outline: 2px solid var(--pink); outline-offset: 2px; border-radius: 4px; }
.rv-form textarea { min-height: 96px; }
.rv-toolbar { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.rv-toolbar .field { margin: 0; min-width: 180px; }
.rv-list { display: grid; gap: 10px; }
.rv-card { display: flex; gap: 12px; padding: 14px 16px; border-radius: 10px; background: rgba(0, 0, 0, 0.22); }
.rv-card .mini-avatar { width: 38px; height: 38px; margin: 0; flex: 0 0 38px; }
.rv-body { flex: 1; min-width: 0; }
.rv-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 6px; }
.rv-head time, .rv-edited { color: var(--muted); font-size: 12px; }
.rv-head .rv-mod { margin-left: auto; }
.rv-text { margin: 0; line-height: 1.55; overflow-wrap: anywhere; }
.rv-own { box-shadow: inset 3px 0 0 #ffb13d; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.card-rating { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-top: 6px; }
.card-rating .stars { font-size: 12px; letter-spacing: 1px; }
@media (max-width: 640px) {
    .rv-top { grid-template-columns: 1fr; gap: 14px; }
    .rv-toolbar { justify-content: stretch; }
    .rv-toolbar .field { flex: 1; }
}

/* ---------- cookie choice (blocks the page until the visitor chooses) ---------- */
/* a full-width bar at the bottom of the screen: text on the left, the 3 buttons on the right */
html.cookie-open:not(:has(.cookie-wall.reading)) { overflow: hidden; }
.cookie-wall { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: flex-end;
    background: rgba(6, 3, 12, 0.62); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: cookie-fade 0.25s ease; }
.cookie-wall.reading { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; pointer-events: none; }
.cookie-wall.reading .cookie-box { pointer-events: auto; }
.cookie-box { position: relative; width: 100%; max-height: 80vh; overflow: auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 36px; row-gap: 8px; align-items: center;
    padding: 14px max(24px, calc((100vw - 1320px) / 2)); background: linear-gradient(90deg, #10081d 0%, #1c0b30 60%, #2a0d34 100%);
    border-top: 1px solid rgba(255, 61, 139, 0.35); box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.6); animation: cookie-up 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
.cookie-box::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--sunset); }
.cookie-box > :not(.cookie-actions) { grid-column: 1; }
.cookie-actions { grid-column: 2; grid-row: 1 / span 3; display: flex; gap: 10px; }
.cookie-head { display: flex; align-items: center; gap: 10px; }
.cookie-ico { font-size: 20px; }
.cookie-head h2 { margin: 0; font-family: var(--display); font-style: italic; font-weight: 800; font-size: 17px; letter-spacing: 0.02em; }
.cookie-box > p { margin: 0; color: #d9d1e6; font-size: 13px; line-height: 1.5; }
/* category names in one line (what each one does is in the text above and in the privacy policy) */
.cookie-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; }
.cookie-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.cookie-list li { display: flex; align-items: center; }
.cookie-list li:not(:last-child)::after { content: "·"; color: var(--muted); margin-left: 12px; }
.cookie-list b { color: var(--gold); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; }
.cookie-list span { display: none; }
.cookie-actions .btn { white-space: nowrap; justify-content: center; }
.cookie-foot { margin: 0 !important; font-size: 12px !important; color: var(--muted) !important; }
.cookie-foot a { color: var(--gold); }
@keyframes cookie-fade { from { opacity: 0; } }
@keyframes cookie-up { from { opacity: 0; transform: translateY(24px); } }
@media (max-width: 1100px) {
    .cookie-box { grid-template-columns: 1fr; padding: 16px 20px; }
    .cookie-actions { grid-column: 1; grid-row: auto; margin-top: 4px; }
    .cookie-actions .btn { flex: 1; }
}
@media (max-width: 640px) {
    .cookie-box { padding: 14px 14px 12px; row-gap: 6px; }
    .cookie-box > p { font-size: 12px; }
    .cookie-meta { gap: 4px 12px; }
    .cookie-actions { flex-wrap: wrap; gap: 8px; }
    .cookie-actions .btn { flex: 1 1 calc(50% - 4px); padding-left: 8px; padding-right: 8px; font-size: 10px; }
    .cookie-actions [data-c="all"] { order: -1; flex-basis: 100%; }
}
body:has(.cookie-wall) #arkhyron-promo-popup { visibility: hidden; }
.video-blocked { display: grid; place-items: center; text-align: center; padding: 24px; background: repeating-linear-gradient(45deg, #120a1f 0 14px, #160c26 14px 28px); }
.video-blocked p { max-width: 440px; margin: 0 auto 14px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.video-blocked .btn { margin: 4px; }
@media (prefers-reduced-motion: reduce) { .cookie-wall, .cookie-box { animation: none; } }

/* Barlow Condensed has no Greek or Cyrillic letters: Greek and Russian use Fira Sans Condensed
   (same narrow, bold, italic style) for every heading, so a heading never mixes two fonts */
html:lang(el), html:lang(ru) { --display: 'Fira Sans Condensed', 'Barlow Condensed', Impact, sans-serif; }
/* admin panel: the left menu scrolls with the page (it doesn't follow you down) */
#admin-root .profile-side { position: static; }
/* webhook builder: our colours as one-click swatches; our own logo shows for real in the preview */
.swatches { display: flex; gap: 6px; margin-top: 8px; }
.swatch { width: 24px; height: 24px; border-radius: 6px; border: 2px solid rgba(255, 255, 255, 0.18); background: var(--c); cursor: pointer; padding: 0; }
.swatch:hover { transform: scale(1.1); border-color: #fff; }
.dc-img { flex: 0 0 auto; object-fit: cover; border-radius: 4px; }
.dc-img.icon { width: 22px; height: 22px; border-radius: 50%; }
.dc-img.avatar { width: 100%; height: 100%; border-radius: 50%; }
.dc-img.thumb { width: 80px; height: 80px; }
.dc-img.big { width: 100%; max-height: 300px; }
.wh-custom[hidden] { display: none !important; }
.ed-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ed-cancel-top { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; color: var(--muted); }
.ed-cancel-top:hover { color: #fff; }

/* webhook builder: full width, with an EDIT / PREVIEW switch */
.wh-build { margin-top: 18px; }
.wh-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 4px; }
.wh-target-field { flex: 1 1 320px; max-width: 520px; margin-bottom: 12px; }
.wh-tabs { display: inline-flex; padding: 4px; gap: 4px; border-radius: 10px; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.08); margin-bottom: 12px; }
.wh-tabs button { padding: 9px 18px; border: 0; border-radius: 7px; background: none; color: var(--muted); font: inherit; font-size: 11px; font-weight: 800; letter-spacing: 0.14em; cursor: pointer; }
.wh-tabs button:hover { color: #fff; }
.wh-tabs button.active { background: linear-gradient(90deg, rgba(255, 61, 139, 0.3), rgba(255, 138, 61, 0.22)); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 61, 139, 0.45); }
.wh-pane[hidden] { display: none !important; }
.wh-preview-pane { padding: 6px 0 4px; }
.wh-preview-pane .dc-preview { margin: 0; padding: 22px; min-height: 160px; }
.wh-preview-pane .dc-embed { max-width: 640px; }
.wh-send-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.wh-send-row .check-row { margin: 0; }
@media (min-width: 1101px) { .wh-embed .two-col { column-gap: 18px; } }
@media (max-width: 640px) {
    .wh-tabs { width: 100%; }
    .wh-tabs button { flex: 1; }
    .wh-send-row .btn { width: 100%; }
}

/* ---------- usernames: always lowercase, in a heavy GTA VI-style game font, white with a dark drop shadow ---------- */
.uname { font-family: 'Russo One', 'Barlow Condensed', Impact, sans-serif !important; font-weight: 400 !important; font-style: normal !important;
    text-transform: lowercase !important; letter-spacing: 0.03em; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.6), 0 0 10px rgba(0, 0, 0, 0.25); }
.profile-name.uname { font-size: 26px; }
.modal-title.uname { font-size: 24px; }

/* the HOME underline only covers the word, not the dropdown arrow (set above with right: 13px) */

/* ---------- footer on phones: centred, links in a tidy 2 × 2 grid ---------- */
@media (max-width: 640px) {
    .footer-row { align-items: center !important; text-align: center; }
    .footer-copy { width: 100%; text-align: center; line-height: 1.6; }
    .footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; width: 100%; max-width: 360px; margin: 0 auto; }
    .footer-links a { display: block; padding: 12px 6px; text-align: center; white-space: nowrap; border-radius: 8px; }
    .footer-links a:active { background: rgba(255, 255, 255, 0.05); }
    .footer-note { text-align: center; margin-left: auto; margin-right: auto; }
}

/* =========================================================
   Forum (/forum)
   ========================================================= */
.fo-top { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 22px; }
.fo-crumbs { flex: 1 1 auto; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 0; }
.fo-crumbs a { color: var(--gold); }
.fo-crumbs a:hover { color: #fff; }
.fo-search { display: flex; gap: 8px; flex: 0 1 420px; }
.fo-search .input { flex: 1; min-width: 0; }
.fo-head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 26px 0 12px; }
.fo-head-row .panel-title { margin: 0; }
.fo-list { display: grid; gap: 8px; }
.fo-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 12px; background: rgba(0, 0, 0, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.06); transition: border-color 0.2s, background 0.2s; }
.fo-row:hover { border-color: rgba(255, 61, 139, 0.4); background: rgba(255, 61, 139, 0.05); }
.fo-row.pinned { border-color: rgba(255, 211, 107, 0.35); }
.fo-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255, 255, 255, 0.12); background: #120822; }
.fo-row-title { display: flex; align-items: center; gap: 6px; font-size: 15px; color: #fff; }
.fo-row-title b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fo-flag { font-size: 13px; }
.fo-row-snip { margin: 3px 0 6px; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fo-match { color: var(--gold); font-weight: 700; }
.fo-row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 12px; color: #9d90b2; }
.fo-row-stats { display: grid; justify-items: end; gap: 2px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.fo-row-stats b { color: #fff; }
.fo-row-stats small { font-size: 11px; }
.fo-who { display: inline-flex; align-items: center; gap: 6px; }
.fo-who .uname { font-size: 14px; }
.fo-title { margin: 0; font-family: var(--display); font-style: italic; font-weight: 800; font-size: clamp(24px, 3.4vw, 34px); line-height: 1.1; color: #fff; overflow-wrap: anywhere; }
.fo-sub { margin: 6px 0 0; color: var(--muted); }
.fo-note { margin: 8px 0 0; color: #d9c9ea; font-size: 13px; }
.fo-sort { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.fo-sort .field { margin: 0; min-width: 200px; }
.fo-thread { padding: 24px 26px; }
.fo-post-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.fo-post-who { display: grid; gap: 2px; flex: 1; min-width: 0; }
.fo-post-who .uname { font-size: 17px; }
.fo-date { font-size: 12px; color: var(--muted); }
.fo-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.fo-thread .fo-title { margin-bottom: 14px; }
.fo-body { overflow-wrap: anywhere; }
.fo-body a { color: var(--gold); text-decoration: underline; }
.fo-code { margin: 10px 0; padding: 14px 16px; border-radius: 10px; background: #0a0612; border: 1px solid rgba(255, 255, 255, 0.08); overflow: auto; max-height: 480px;
    font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #e8def5; white-space: pre; }
.fo-gallery { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.fo-files { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.fo-files li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 14px; border-radius: 10px; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.06); }
.fo-file-name { font-weight: 700; color: #fff; overflow-wrap: anywhere; flex: 1 1 160px; }
.fo-files small { color: var(--muted); }
.fo-viewer { flex-basis: 100%; }
.fo-viewer .fo-code { margin: 6px 0 0; }
.fo-post-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.fo-tools { display: flex; gap: 14px; margin-left: auto; }
.link-btn.danger { color: #ff8fa8; }
.fo-heart { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 20px; border: 1px solid rgba(255, 61, 139, 0.35); background: rgba(255, 61, 139, 0.06);
    color: #ffb3cf; font: inherit; font-size: 14px; cursor: pointer; transition: background 0.2s, transform 0.15s; }
.fo-heart span { font-size: 16px; line-height: 1; }
.fo-heart:hover:not(:disabled) { background: rgba(255, 61, 139, 0.16); }
.fo-heart.on { background: linear-gradient(90deg, rgba(255, 61, 139, 0.35), rgba(255, 138, 61, 0.25)); color: #fff; border-color: rgba(255, 61, 139, 0.7); }
.fo-heart:disabled { cursor: default; opacity: 0.7; }
.fo-heart.pop span { animation: heartPop 0.4s ease; }
@keyframes heartPop { 40% { transform: scale(1.45); } }
.fo-comments-title { margin: 28px 0 12px; font-size: 13px; font-weight: 800; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; }
.fo-comments { display: grid; gap: 10px; }
.fo-comment { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 16px 18px; border-radius: 12px; background: rgba(0, 0, 0, 0.24); border: 1px solid rgba(255, 255, 255, 0.06); }
.fo-comment header { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 8px; }
.fo-comment .fo-post-foot { margin-top: 10px; padding-top: 10px; }
.fo-comment.flash { animation: foFlash 2.4s ease; }
@keyframes foFlash { 0%, 40% { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 211, 107, 0.25); } }
.fo-reply { margin-top: 22px; }
.fo-attach { margin: 4px 0 10px; }
.fo-pick { cursor: pointer; }
.fo-up-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fo-up-list li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px 6px 12px; border-radius: 20px; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.1); font-size: 13px; }
.fo-up-list small { color: var(--muted); }
.fo-up-list .icon-btn { width: 24px; height: 24px; font-size: 11px; }
.fo-icon-field input { text-align: center; font-size: 20px; }
.pager a { display: inline-grid; place-items: center; min-width: 38px; height: 38px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(0, 0, 0, 0.3); color: #fff; }
.pager a.disabled { opacity: 0.35; pointer-events: none; }
@media (max-width: 760px) {
    .fo-search { flex: 1 1 100%; order: 3; }
    .fo-top .fo-new { margin-left: auto; }
    .fo-row { grid-template-columns: 36px minmax(0, 1fr); padding: 12px; gap: 10px; }
    .fo-avatar { width: 36px; height: 36px; }
    .fo-row-stats { grid-column: 2; display: flex; justify-items: start; gap: 12px; }
    .fo-thread { padding: 18px 16px; }
    .fo-comment { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 12px; }
    .fo-sort-field { grid-column: 1 / -1; }
    .fo-tools { margin-left: 0; }
}

/* ---------- forum categories: colour accents, cards, category header, editor ---------- */
.cc-pink { --cc: #ff3d8b; --cc-rgb: 255, 61, 139; }
.cc-orange { --cc: #ff8a3d; --cc-rgb: 255, 138, 61; }
.cc-sun { --cc: #ffd36b; --cc-rgb: 255, 211, 107; }
.cc-teal { --cc: #2ee6c5; --cc-rgb: 46, 230, 197; }
.cc-cyan { --cc: #3dd6ff; --cc-rgb: 61, 214, 255; }
.cc-purple { --cc: #a970ff; --cc-rgb: 169, 112, 255; }
.cc-blue { --cc: #5b8cff; --cc-rgb: 91, 140, 255; }
.cc-green { --cc: #5ee06b; --cc-rgb: 94, 224, 107; }
.cc-red { --cc: #ff4d5e; --cc-rgb: 255, 77, 94; }
.fo-totals { margin-right: auto; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: var(--muted); }
.fo-cats { display: grid; gap: 12px; }
.fo-cat { position: relative; overflow: hidden; display: grid; grid-template-columns: 60px minmax(0, 1fr) auto minmax(0, 270px);
    gap: 18px; align-items: center; padding: 18px 22px 18px 26px; border-radius: 16px; color: inherit;
    background: linear-gradient(100deg, rgba(var(--cc-rgb), 0.13), rgba(18, 8, 34, 0.55) 42%, rgba(0, 0, 0, 0.3));
    border: 1px solid rgba(var(--cc-rgb), 0.18); transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s; }
.fo-cat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--cc), rgba(var(--cc-rgb), 0.25)); }
a.fo-cat:hover { border-color: rgba(var(--cc-rgb), 0.6); transform: translateY(-2px); box-shadow: 0 10px 30px -12px rgba(var(--cc-rgb), 0.55); }
.fo-cat-ico { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; font-size: 28px;
    background: radial-gradient(circle at 30% 25%, rgba(var(--cc-rgb), 0.5), rgba(var(--cc-rgb), 0.1) 70%); border: 1px solid rgba(var(--cc-rgb), 0.45);
    box-shadow: 0 0 24px -6px rgba(var(--cc-rgb), 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15); }
.fo-cat-ico.big { width: 84px; height: 84px; font-size: 40px; border-radius: 22px; flex: 0 0 84px; }
.fo-cat-main { min-width: 0; }
.fo-cat-name { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.fo-cat-name b { font-size: 18px; color: #fff; overflow-wrap: anywhere; }
.fo-team { display: inline-flex; gap: 4px; align-items: center; border-color: rgba(var(--cc-rgb), 0.5); }
.fo-cat-desc { margin: 6px 0 0; color: #cbbedf; font-size: 13.5px; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fo-cat-stats { display: flex; gap: 8px; }
.fo-cat-stats > span { display: grid; justify-items: center; min-width: 78px; padding: 8px 10px; border-radius: 12px; background: rgba(0, 0, 0, 0.32); border: 1px solid rgba(255, 255, 255, 0.06); }
.fo-cat-stats b { font-family: var(--display); font-style: italic; font-size: 22px; line-height: 1.1; color: #fff; }
.fo-cat-stats small { font-size: 9px; letter-spacing: 0.14em; color: rgba(var(--cc-rgb), 0.95); font-weight: 800; }
.fo-cat-last { display: flex; align-items: center; gap: 10px; min-width: 0; padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, 0.07); }
.fo-cat-last .fo-avatar { width: 36px; height: 36px; flex: 0 0 36px; }
.fo-cat-last > div { display: grid; gap: 1px; min-width: 0; }
.fo-cat-last small { font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.fo-cat-last-title { color: #fff; font-weight: 700; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fo-cat-last-meta { font-size: 12px; color: #9d90b2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fo-cat-last-meta .uname { font-size: 12px; }
.fo-cat-empty { font-size: 12px; color: var(--muted); font-style: italic; }
.fo-cat-chip { padding: 1px 9px; border-radius: 20px; background: rgba(var(--cc-rgb, 255, 255, 255), 0.13); border: 1px solid rgba(var(--cc-rgb, 255, 255, 255), 0.3); color: #eee3fa; }
/* one category: header */
.fo-cat-hero { position: relative; overflow: hidden; display: flex; align-items: center; gap: 22px; margin-bottom: 18px; padding: 24px 26px; border-radius: 18px;
    background: radial-gradient(120% 140% at 0% 0%, rgba(var(--cc-rgb), 0.28), rgba(18, 8, 34, 0.7) 55%), rgba(0, 0, 0, 0.3); border: 1px solid rgba(var(--cc-rgb), 0.3); }
.fo-cat-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--cc), transparent); }
.fo-cat-hero-main { flex: 1; min-width: 0; }
.fo-cat-hero .fo-cat-desc { -webkit-line-clamp: unset; display: block; font-size: 15px; margin-top: 8px; }
.fo-cat-hero-side { display: grid; gap: 10px; justify-items: end; }
/* staff editor */
.modal.fo-cat-modal { width: min(980px, 100%); }
.fo-cat-edit { margin-top: 10px; padding: 12px 16px; border-radius: 12px; background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(255, 255, 255, 0.07); }
.fo-cat-edit[class*="cc-"] { border-left: 3px solid var(--cc); }
.fo-cat-edit summary { cursor: pointer; font-weight: 800; color: #fff; }
.fo-cat-edit summary small { color: var(--muted); font-weight: 400; margin-left: 6px; }
.fo-cat-form { margin-top: 14px; }
.fo-cat-form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.fo-cat-form-row { display: grid; grid-template-columns: 80px minmax(0, 1fr) 100px; gap: 10px; }
.fo-cat-form textarea { resize: vertical; min-height: 78px; }
.fo-counter { display: block; text-align: right; }
.fo-swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.fo-sw { cursor: pointer; }
.fo-sw input { position: absolute; opacity: 0; pointer-events: none; }
.fo-sw span { display: block; width: 26px; height: 26px; border-radius: 50%; background: var(--cc); border: 2px solid transparent;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15); transition: transform 0.15s, box-shadow 0.15s; }
.fo-sw:hover span { transform: scale(1.1); }
.fo-sw input:checked + span { border-color: #fff; box-shadow: 0 0 0 3px rgba(var(--cc-rgb), 0.55), 0 0 18px rgba(var(--cc-rgb), 0.7); }
.fo-sw input:focus-visible + span { outline: 2px solid #fff; outline-offset: 3px; }
.fo-cat-form-preview { position: sticky; top: 0; }
.fo-cat-form-preview .fo-cat { grid-template-columns: 60px minmax(0, 1fr); }
.fo-cat-form-preview .fo-cat-stats, .fo-cat-form-preview .fo-cat-last { grid-column: 2; }
.fo-cat-form-preview .fo-cat-last { padding-left: 0; border-left: 0; }
@media (max-width: 1060px) {
    .fo-cat { grid-template-columns: 60px minmax(0, 1fr) auto; }
    .fo-cat-last { grid-column: 2 / -1; padding: 10px 0 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.07); }
}
@media (max-width: 760px) {
    .fo-totals { display: none; }
    .fo-cat { grid-template-columns: 46px minmax(0, 1fr); gap: 10px 12px; padding: 14px 14px 14px 18px; }
    .fo-cat-ico { width: 46px; height: 46px; font-size: 22px; border-radius: 13px; }
    .fo-cat-name b { font-size: 16px; }
    .fo-cat-stats, .fo-cat-last { grid-column: 2; }
    .fo-cat-stats > span { display: flex; align-items: baseline; gap: 5px; min-width: 0; padding: 4px 10px; }
    .fo-cat-stats b { font-size: 16px; }
    .fo-cat-hero { flex-wrap: wrap; padding: 18px; gap: 14px; }
    .fo-cat-ico.big { width: 60px; height: 60px; font-size: 30px; flex-basis: 60px; border-radius: 16px; }
    .fo-cat-hero-main { flex-basis: calc(100% - 80px); }
    .fo-cat-hero-side { width: 100%; justify-items: start; }
    .fo-cat-hero .fo-cat-stats { flex-wrap: wrap; }
    .fo-cat-form-grid { grid-template-columns: minmax(0, 1fr); }
    .fo-cat-form-preview { position: static; order: -1; }
    .fo-cat-form-row { grid-template-columns: 70px minmax(0, 1fr); }
}

/* ---------- forum: solved, unread, replies, reports, mutes, member profiles ---------- */
.fo-solved-badge { background: rgba(94, 224, 107, 0.14); border-color: rgba(94, 224, 107, 0.55); color: #a8f5b0; }
.fo-new-badge { background: linear-gradient(90deg, #ff3d8b, #ff8a3d); border-color: transparent; color: #fff; }
.fo-muted-badge { background: rgba(232, 32, 58, 0.15); border-color: rgba(232, 32, 58, 0.55); color: #ffb3bd; }
.fo-row-title .badge { flex: 0 0 auto; font-size: 9px; padding: 2px 7px; }
.fo-row.unread { border-color: rgba(255, 61, 139, 0.35); background: linear-gradient(90deg, rgba(255, 61, 139, 0.09), rgba(0, 0, 0, 0.24) 40%); }
.fo-row.unread .fo-row-title b { color: #fff; font-weight: 800; }
.fo-script-chip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 9px; border-radius: 20px; background: rgba(255, 211, 107, 0.1);
    border: 1px solid rgba(255, 211, 107, 0.35); color: #ffe3a3; font-size: 12px; }
a.fo-script-chip:hover { background: rgba(255, 211, 107, 0.2); }
.fo-thread-script { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: -4px 0 14px; }
.fo-thread-script .fo-script-chip { font-size: 13px; padding: 4px 12px; }
a.fo-who:hover .uname { color: var(--gold); }
.fo-avatar-link { display: block; border-radius: 50%; }
.fo-avatar-link:hover .fo-avatar { border-color: var(--pink, #ff3d8b); }
a.fo-date:hover { color: #fff; text-decoration: underline; }
.fo-thread.is-solved { border-color: rgba(94, 224, 107, 0.35); }
/* the accepted answer at the top */
.fo-solution { margin-top: 16px; padding: 18px 22px; border-radius: 16px; background: linear-gradient(135deg, rgba(94, 224, 107, 0.12), rgba(0, 0, 0, 0.3) 60%);
    border: 1px solid rgba(94, 224, 107, 0.45); box-shadow: 0 10px 30px -18px rgba(94, 224, 107, 0.6); }
.fo-solution-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 10px; }
.fo-solution-tag { font-family: var(--display); font-style: italic; font-weight: 800; letter-spacing: 0.06em; color: #a8f5b0; font-size: 15px; }
.fo-solution-by { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.fo-solution-head .link-btn { margin-left: auto; }
.fo-comment.is-solution { border-color: rgba(94, 224, 107, 0.5); background: linear-gradient(135deg, rgba(94, 224, 107, 0.08), rgba(0, 0, 0, 0.24) 50%); }
.fo-comment.is-new { border-left: 3px solid #ff3d8b; }
.link-btn.good { color: #a8f5b0; }
/* replies */
.fo-quote { display: grid; gap: 2px; margin: 0 0 10px; padding: 8px 12px; border-left: 3px solid rgba(255, 61, 139, 0.6); border-radius: 0 10px 10px 0;
    background: rgba(255, 255, 255, 0.04); font-size: 13px; color: #cbbedf; }
a.fo-quote:hover { background: rgba(255, 61, 139, 0.08); }
.fo-quote.gone { color: var(--muted); font-style: italic; display: block; }
.fo-quote-who { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: #fff; font-size: 12px; }
.fo-quote-who .uname { font-size: 12px; }
.fo-quote-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fo-replying { position: relative; display: grid; gap: 2px; margin-bottom: 10px; padding: 8px 40px 8px 12px; border-left: 3px solid var(--gold); border-radius: 0 10px 10px 0;
    background: rgba(255, 211, 107, 0.07); font-size: 13px; color: #d9c9ea; min-width: 0; }
.fo-replying[hidden] { display: none; }
.fo-replying .icon-btn { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; font-size: 11px; }
/* muted notice */
.fo-muted { display: flex; gap: 12px; align-items: flex-start; margin: -8px 0 18px; padding: 12px 16px; border-radius: 12px; background: rgba(232, 32, 58, 0.1);
    border: 1px solid rgba(232, 32, 58, 0.4); color: #ffd6dc; }
.fo-muted > span { font-size: 20px; line-height: 1.2; }
.fo-muted div { display: grid; gap: 3px; }
.fo-muted small { color: #e9b9c1; }
.fo-reply .fo-muted { margin: 0; }
/* report dialog + staff reports */
.fo-reasons { display: grid; gap: 4px; margin-bottom: 10px; }
.fo-staff-btns { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.fo-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #e8203a; color: #fff; font-size: 11px; }
.fo-tabs { display: flex; gap: 6px; margin: 6px 0 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.fo-tabs a { padding: 10px 16px; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.fo-tabs a b { margin-left: 4px; color: #fff; }
.fo-tabs a.active, .fo-tabs a:hover { color: #fff; border-bottom-color: #ff3d8b; }
.fo-reports { display: grid; gap: 12px; }
.fo-rep { padding: 16px 18px; }
.fo-rep-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.fo-rep-head .fo-date { margin-left: auto; }
.fo-reason { padding: 2px 9px; border-radius: 20px; background: rgba(232, 32, 58, 0.14); border: 1px solid rgba(232, 32, 58, 0.4); color: #ffc2ca; font-size: 12px; }
.fo-rep-thread { margin: 10px 0 0; color: #fff; font-size: 14px; }
.fo-rep-thread small, .fo-row-title small { color: var(--muted); font-weight: 400; }
.fo-rep-text { margin: 8px 0; padding: 10px 14px; border-left: 3px solid rgba(232, 32, 58, 0.6); border-radius: 0 10px 10px 0; background: rgba(0, 0, 0, 0.3); color: #e8def5; overflow-wrap: anywhere; }
.fo-rep-author { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.fo-rep-notes { margin: 0 0 10px; padding-left: 18px; font-size: 13px; color: #cbbedf; }
.fo-rep .row-actions { flex-wrap: wrap; }
/* member forum profile */
.fo-member { display: flex; align-items: center; gap: 20px; padding: 22px 24px; margin-bottom: 14px; }
.fo-member > .fo-avatar { width: 96px; height: 96px; flex: 0 0 96px; border-width: 3px; }
.fo-member-main { flex: 1; min-width: 0; }
.fo-member-name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 4px; }
.fo-member-name .uname { font-size: 26px; }
.fo-member .fo-cat-stats { --cc-rgb: 255, 211, 107; margin-top: 12px; flex-wrap: wrap; }
.fo-member-tools { align-self: flex-start; }
.fo-crow { grid-template-columns: 44px minmax(0, 1fr) auto; }
.fo-crow-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.05); font-size: 18px; }
.eyebrow-small { margin: 0 0 4px; font-size: 11px; font-weight: 800; letter-spacing: 0.16em; color: var(--gold); }
@media (max-width: 760px) {
    .fo-member { flex-wrap: wrap; padding: 18px; gap: 14px; }
    .fo-member > .fo-avatar { width: 70px; height: 70px; flex-basis: 70px; }
    .fo-member-main { flex-basis: calc(100% - 90px); }
    .fo-member-name .uname { font-size: 21px; }
    .fo-member-tools { width: 100%; }
    .fo-solution { padding: 14px; }
    .fo-solution-head .link-btn { margin-left: 0; }
    .fo-rep-head .fo-date { margin-left: 0; width: 100%; }
    .fo-crow { grid-template-columns: 36px minmax(0, 1fr); }
    .fo-crow-ico { width: 36px; height: 36px; font-size: 15px; }
    .fo-tabs a { padding: 10px 12px; }
}
/* profile: forum tab */
.pf-forum-stats { --cc-rgb: 255, 211, 107; flex-wrap: wrap; margin-bottom: 18px; }
.pf-forum-label { margin: 16px 0 8px; }
.pf-forum-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pf-forum-list li { display: grid; gap: 2px; padding: 10px 14px; border-radius: 10px; background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(255, 255, 255, 0.06); min-width: 0; }
.pf-forum-list a { color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-forum-list a:hover { color: var(--gold); }
.pf-forum-list small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-forum-more { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
/* script page: link to the forum */
.script-forum-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.script-forum-row > div:nth-child(2) { flex: 1 1 260px; min-width: 0; }
.script-forum-row .panel-title { margin-bottom: 4px; }
.script-forum-row .panel-lead { margin: 0; }
.script-forum-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; font-size: 24px; background: rgba(255, 61, 139, 0.15); border: 1px solid rgba(255, 61, 139, 0.4); }
.script-forum-actions { display: flex; flex-wrap: wrap; gap: 8px; }
/* forum: home without the thread list, sort row, phone category header */
.fo-readall-row { display: flex; justify-content: flex-end; margin-top: 14px; }
.fo-sort { align-items: center; }
.fo-sort .result-count { font-size: 13px; color: var(--muted); white-space: nowrap; }
@media (max-width: 760px) {
    .fo-cat-hero { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px 14px; align-items: center; padding: 18px 16px; }
    .fo-cat-hero .fo-cat-ico.big { width: 52px; height: 52px; font-size: 26px; border-radius: 14px; }
    .fo-cat-hero-main { display: contents; }
    .fo-cat-hero .fo-title { grid-column: 2; margin: 0; font-size: 22px; line-height: 1.1; overflow-wrap: anywhere; }
    .fo-cat-hero .eyebrow-small { display: none; }
    .fo-cat-hero .fo-cat-desc, .fo-cat-hero .fo-note { grid-column: 1 / -1; margin: 0; font-size: 14px; line-height: 1.55; }
    .fo-cat-hero .fo-note { font-size: 13px; padding: 8px 12px; border-radius: 10px; background: rgba(0, 0, 0, 0.25); }
    .fo-cat-hero-side { grid-column: 1 / -1; width: auto; display: grid; gap: 10px; justify-items: stretch; }
    .fo-cat-hero .fo-cat-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
    .fo-cat-hero .fo-cat-stats > span { display: grid; justify-items: center; gap: 2px; padding: 8px 4px; }
    .fo-cat-hero .fo-cat-stats b { font-size: 20px; }
    .fo-cat-hero .fo-cat-stats small { font-size: 9px; letter-spacing: 0.1em; }
    .fo-cat-hero-side .btn { width: 100%; justify-content: center; }
    .fo-sort { gap: 10px; }
    .fo-sort .field { min-width: 0; flex: 1 1 auto; max-width: 240px; }
    .fo-sort .field > span { display: none; }
    .fo-readall-row .btn { width: 100%; justify-content: center; }
}
@media (max-width: 760px) {
    .fo-cat-hero .fo-cat-stats { grid-column: 1 / -1; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); grid-template-columns: none; }
    .fo-head-row { flex-wrap: wrap; row-gap: 10px; }
    .fo-staff-btns { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .fo-staff-btns .btn { justify-content: center; text-align: center; padding-left: 8px; padding-right: 8px; }
}
@media (max-width: 760px) {
    .footer-links a:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
/* forum breadcrumb: the open thread (not a link) */
.fo-crumb-current { color: #fff; max-width: min(420px, 60vw); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: bottom; }
@media (max-width: 760px) { .fo-crumb-current { max-width: 100%; } }

/* =======================================================
   SUPPORT TICKETS (support.html, profile SUPPORT tab, admin TICKETS tab)
   ======================================================= */
.user-dot { position: absolute; top: 1px; right: 1px; width: 11px; height: 11px; border-radius: 50%; background: #ff3d8b; box-shadow: 0 0 0 2px #140a22, 0 0 10px rgba(255, 61, 139, 0.8); animation: tkPulse 2s ease-in-out infinite; }
@keyframes tkPulse { 50% { box-shadow: 0 0 0 2px #140a22, 0 0 2px rgba(255, 61, 139, 0.4); } }
.menu-count, .tk-count { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 6px; margin-left: 6px; border-radius: 10px; font-size: 10px; font-weight: 800; letter-spacing: 0; color: #fff; background: linear-gradient(90deg, #ff3d8b, #ff8a3d); vertical-align: 1px; }
.tk-top .btn.disabled { opacity: 0.45; cursor: not-allowed; filter: grayscale(0.4); }
.tk-num { flex: 0 0 auto; font-family: var(--display); font-weight: 800; font-style: italic; color: var(--gold); letter-spacing: 0.02em; }

/* status / priority pills */
.tk-status, .tk-prio { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 20px; font-size: 10px; font-weight: 800; letter-spacing: 0.12em; white-space: nowrap; border: 1px solid; }
.tk-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-open { color: #ffb36b; border-color: rgba(255, 138, 61, 0.45); background: rgba(255, 138, 61, 0.09); }
.st-answered { color: #6ee7f7; border-color: rgba(61, 214, 255, 0.45); background: rgba(61, 214, 255, 0.08); }
.st-hold { color: #c9b2ff; border-color: rgba(123, 63, 228, 0.55); background: rgba(123, 63, 228, 0.12); }
.st-closed { color: #9d90b2; border-color: rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.04); }
.st-closed::before { background: #6c6080; }
.tk-prio { color: var(--muted); border-color: rgba(255, 255, 255, 0.14); background: rgba(0, 0, 0, 0.2); }
.pr-high { color: #ffd36b; border-color: rgba(255, 211, 107, 0.45); }
.pr-urgent { color: #fff; border-color: transparent; background: linear-gradient(90deg, #d7264d, #ff3d5f); animation: tkPulse 2s ease-in-out infinite; }
.pr-low { opacity: 0.7; }

/* my tickets */
.tk-hero { display: flex; align-items: center; gap: 16px; margin: 0 0 16px; padding: 16px 18px; border-radius: 14px; background: linear-gradient(120deg, rgba(255, 61, 139, 0.1), rgba(123, 63, 228, 0.08) 60%, rgba(0, 0, 0, 0.2)); border: 1px solid rgba(255, 255, 255, 0.08); }
.tk-hero > div:last-child { display: grid; gap: 3px; }
.tk-hero b { color: #fff; font-size: 15px; }
.tk-hero small { color: var(--muted); font-size: 12px; }
.tk-meter { display: flex; gap: 5px; flex: 0 0 auto; }
.tk-meter i { width: 12px; height: 32px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.1); }
.tk-meter i.on { background: var(--sunset); border-color: transparent; box-shadow: 0 0 12px rgba(255, 61, 139, 0.35); }
.tk-row { grid-template-columns: 44px minmax(0, 1fr) auto; }
.tk-row-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; font-size: 22px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); }
.tk-row.is-closed { opacity: 0.72; }
.tk-row-who { display: inline-flex; align-items: center; gap: 6px; }
.tk-row-who .fo-avatar { width: 20px; height: 20px; border-width: 1px; }
.tk-row-who .badge { font-size: 8px; padding: 1px 6px; }
.tk-empty { display: grid; gap: 14px; justify-items: center; }
.tk-empty p { margin: 0; }
.tk-foot-note { margin-top: 22px; font-size: 12px; color: var(--muted); text-align: center; }
.tk-foot-note a { color: var(--gold); font-weight: 700; }

/* new ticket */
.tk-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.tk-cat { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; gap: 2px 12px; align-items: start; padding: 16px; border-radius: 12px; background: rgba(0, 0, 0, 0.26); border: 1px solid rgba(255, 255, 255, 0.08); color: inherit; transition: border-color 0.15s, transform 0.15s, background 0.15s; }
.tk-cat:hover { border-color: rgba(255, 61, 139, 0.5); background: rgba(255, 61, 139, 0.06); transform: translateY(-2px); }
.tk-cat-ico { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; font-size: 22px; background: rgba(255, 255, 255, 0.06); }
.tk-cat b { color: #fff; font-size: 15px; }
.tk-cat small { color: var(--muted); font-size: 12px; line-height: 1.45; }
.tk-tip { margin: 18px 0 0; font-size: 13px; color: var(--muted); }
.tk-tip a { color: var(--gold); font-weight: 700; }
.tk-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.tk-rules { margin: 6px 0 16px; padding: 12px 16px 12px 32px; border-radius: 10px; background: rgba(0, 0, 0, 0.22); border: 1px solid rgba(255, 255, 255, 0.06); color: var(--muted); font-size: 12px; display: grid; gap: 4px; }
.tk-rules li::marker { color: var(--pink); }
.tk-form.tk-drop { outline: 2px dashed rgba(255, 61, 139, 0.7); outline-offset: 4px; }
.tk-full p { color: var(--muted); }

/* one ticket */
.tk-layout { display: grid; gap: 18px; }
.tk-layout.with-side { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
.tk-main { display: grid; gap: 14px; min-width: 0; }
.tk-main > .panel + .panel { margin-top: 0; }
.tk-head-row { display: flex; gap: 14px; align-items: flex-start; }
.tk-head-ico { display: grid; place-items: center; flex: 0 0 auto; width: 52px; height: 52px; border-radius: 14px; font-size: 26px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.08); }
.tk-head-main { flex: 1; min-width: 0; display: grid; gap: 8px; }
.tk-title { margin: 0; font-family: var(--display); font-size: 26px; font-weight: 800; font-style: italic; line-height: 1.15; color: #fff; overflow-wrap: anywhere; }
.tk-head-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: 0 0 auto; }
.tk-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; }
.tk-facts small { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; margin-right: 4px; }
.tk-facts code { color: var(--gold); }
.tk-closed-note, .tk-wait-note { margin: 14px 0 0; padding: 10px 14px; border-radius: 10px; font-size: 13px; color: var(--muted); background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(255, 255, 255, 0.07); }
.tk-wait-note { color: #bdf2fb; border-color: rgba(61, 214, 255, 0.25); background: rgba(61, 214, 255, 0.06); }
.tk-thread { display: grid; gap: 10px; }
.tk-msg { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 16px 18px; border-radius: 14px; background: rgba(0, 0, 0, 0.26); border: 1px solid rgba(255, 255, 255, 0.07); }
.tk-msg.from-team { background: linear-gradient(135deg, rgba(123, 63, 228, 0.14), rgba(0, 0, 0, 0.26) 55%); border-color: rgba(123, 63, 228, 0.35); }
.tk-msg.internal { background: repeating-linear-gradient(135deg, rgba(255, 211, 107, 0.06) 0 12px, rgba(0, 0, 0, 0.26) 12px 24px); border: 1px dashed rgba(255, 211, 107, 0.5); }
.tk-msg.is-new { box-shadow: inset 3px 0 0 #ff3d8b; }
.tk-msg.removed .tk-body { opacity: 0.45; text-decoration: line-through; }
.tk-msg header { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 8px; }
.tk-msg header time { font-size: 12px; color: #9d90b2; }
.tk-msg-main { min-width: 0; }
.tk-edited { font-size: 11px; color: #9d90b2; font-style: italic; }
.tk-edited .link-btn { font-size: 11px; font-style: normal; }
.tk-internal-badge { color: #ffd36b; border-color: rgba(255, 211, 107, 0.5); background: rgba(255, 211, 107, 0.08); }
.tk-body { overflow-wrap: anywhere; }
.tk-body > :first-child { margin-top: 0; }
.tk-body > :last-child { margin-bottom: 0; }
.tk-removed { margin: 0; font-size: 13px; color: #ff8fa8; }
.tk-msg-tools { display: flex; gap: 14px; margin-top: 10px; }
.tk-msg-tools:empty { display: none; }
.tk-gallery { margin: 12px 0 0; }
.tk-sys { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 4px 0; font-size: 12px; color: #9d90b2; text-align: center; }
.tk-sys::before, .tk-sys::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, 0.08); }
.tk-sys.internal { color: #d9c48e; }
.tk-sys time { opacity: 0.7; }
.tk-edit-form { display: grid; gap: 8px; margin-top: 4px; }
.tk-edit-form textarea { min-height: 110px; resize: vertical; }
.tk-reply .setting-label { margin: 0 0 10px; }
.tk-reply.is-internal { border-color: rgba(255, 211, 107, 0.5); background: linear-gradient(160deg, rgba(255, 211, 107, 0.07), rgba(16, 7, 30, 0.92)); }
.tk-team-opts { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: flex-end; justify-content: space-between; }
.tk-team-opts .check-row { margin: 0 0 14px; }
.tk-after { min-width: 220px; margin-bottom: 14px; }
.tk-canned { max-width: 360px; }
.tk-new-banner { justify-self: center; padding: 9px 18px; border-radius: 20px; border: 1px solid rgba(255, 61, 139, 0.5); background: rgba(255, 61, 139, 0.14); color: #fff; font: inherit; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; cursor: pointer; }
.tk-rate .tk-stars { margin-top: 8px; }
.tk-rated { margin: 0; font-size: 18px; color: #ffb13d; letter-spacing: 2px; }
.tk-rated span { font-size: 12px; letter-spacing: 0.06em; color: var(--muted); margin-left: 8px; }
.tk-hist { display: grid; gap: 10px; max-height: 60vh; overflow: auto; }
.tk-hist-item { padding: 12px 14px; border-radius: 10px; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.07); }
.tk-hist-item small { color: var(--muted); }

/* team side column */
.tk-side { display: grid; gap: 14px; position: sticky; top: 96px; }
.tk-side .panel + .panel { margin-top: 0; }
.tk-side-box { padding: 18px; }
.tk-side-box .setting-label { margin: 0 0 12px; }
.tk-side-box .field { margin-bottom: 10px; }
.tk-side-box .input { width: 100%; }
.tk-sub { margin-top: 16px !important; margin-bottom: 8px !important; }
.tk-member-head { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.tk-member-head > div { display: grid; gap: 2px; min-width: 0; }
.tk-member-head a.uname { color: #fff; font-weight: 800; }
.tk-member-head small { color: var(--muted); font-size: 11px; }
.tk-kv { margin: 4px 0; font-size: 13px; overflow-wrap: anywhere; }
.tk-kv small { display: block; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.tk-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.tk-mini li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; background: rgba(0, 0, 0, 0.25); }
.tk-mini li > :first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tk-mini a { color: #fff; }
.tk-mini a:hover { color: var(--gold); }
.tk-mini small { color: var(--muted); flex: 0 0 auto; }
.tk-mini .tk-status { font-size: 8px; padding: 2px 6px; }
.tk-member-tools { margin-top: 14px; }

/* desk */
.tk-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 0 0 16px; }
.tk-kpi { display: grid; gap: 4px; padding: 14px 16px; border-radius: 12px; background: rgba(0, 0, 0, 0.26); border: 1px solid rgba(255, 255, 255, 0.08); color: inherit; }
a.tk-kpi:hover, .tk-kpi.active { border-color: rgba(255, 61, 139, 0.55); background: rgba(255, 61, 139, 0.07); }
.tk-kpi b { font-family: var(--display); font-size: 30px; font-weight: 800; font-style: italic; line-height: 1; color: #fff; }
.tk-kpi small { font-size: 10px; font-weight: 800; letter-spacing: 0.13em; color: var(--muted); }
.tk-kpi.k-open b { color: #ffb36b; }
.tk-kpi.k-answered b { color: #6ee7f7; }
.tk-kpi.k-hold b { color: #c9b2ff; }
.tk-kpi.k-unassigned b { color: #ff8fa8; }
.tk-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.tk-filters .input { flex: 1 1 160px; min-width: 0; padding: 10px 12px; }
.tk-filters input.input { flex: 3 1 240px; }
.tk-desk-tabs { flex-wrap: wrap; }
.tk-replies { display: grid; gap: 8px; margin: 0 0 18px; }
.tk-reply-item { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 10px; background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(255, 255, 255, 0.07); }
.tk-reply-item > div:first-child { min-width: 0; }
.tk-reply-item b { color: #fff; }
.tk-reply-item p { margin: 3px 0; font-size: 13px; color: var(--muted); white-space: pre-line; }
.tk-reply-item small { color: #9d90b2; font-size: 11px; }
.tk-r-form { padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.tk-r-label { margin: 0 0 12px; }
.tk-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.tk-stats-grid .panel + .panel { margin-top: 0; }
.tk-stats-grid .setting-label { margin: 0 0 14px; }
.tk-bars { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; height: 140px; align-items: end; }
.tk-bars span { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.tk-bars i { width: 100%; height: max(3px, var(--h)); border-radius: 4px 4px 2px 2px; background: var(--sunset); }
.tk-bars b { position: absolute; top: -2px; font-size: 10px; color: var(--muted); }
.tk-catbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13px; }
.tk-catbars li { display: grid; grid-template-columns: minmax(0, 1.3fr) 1fr auto; gap: 10px; align-items: center; }
.tk-catbars span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-catbars i { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.06); position: relative; overflow: hidden; }
.tk-catbars i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--sunset); border-radius: 4px; }
.tk-catbars b { color: #fff; }
.tk-pf-list li.unread { border-color: rgba(255, 61, 139, 0.45); }
.tk-pf-list .tk-status { font-size: 8px; padding: 1px 6px; vertical-align: 1px; }
.tk-embed .tk-layout.with-side { grid-template-columns: minmax(0, 1fr) 270px; }

@media (max-width: 1100px) {
  .tk-layout.with-side, .tk-embed .tk-layout.with-side { grid-template-columns: 1fr; }
  .tk-side { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (max-width: 760px) {
  .tk-hero { padding: 14px; gap: 12px; }
  .tk-meter i { width: 9px; height: 26px; }
  .tk-row { grid-template-columns: 36px minmax(0, 1fr); }
  .tk-row-ico { width: 36px; height: 36px; font-size: 18px; border-radius: 10px; }
  .tk-row .fo-row-stats { grid-column: 2; justify-items: start; grid-auto-flow: column; gap: 10px; }
  .tk-two { grid-template-columns: 1fr; }
  .tk-head-row { flex-wrap: wrap; }
  .tk-head-ico { width: 42px; height: 42px; font-size: 21px; }
  .tk-head-main { flex-basis: calc(100% - 60px); }
  .tk-head-actions { flex-direction: row; flex-wrap: wrap; align-items: center; width: 100%; justify-content: flex-start; }
  .tk-title { font-size: 21px; }
  .tk-msg { grid-template-columns: 1fr; gap: 8px; padding: 14px; }
  .tk-msg > .fo-avatar { width: 34px; height: 34px; position: absolute; }
  .tk-msg { position: relative; }
  .tk-msg header { padding-left: 44px; min-height: 34px; }
  .tk-cats { grid-template-columns: 1fr; }
  .tk-kpis { grid-template-columns: repeat(2, 1fr); }
  .tk-kpi b { font-size: 24px; }
  .tk-filters .input, .tk-filters input.input { flex: 1 1 100%; }
  .tk-filters button { width: 100%; }
  .tk-reply-item { flex-direction: column; align-items: stretch; }
  .tk-after { min-width: 0; width: 100%; }
}
.tk-filters select.input, .tk-side select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.tk-filters select.input option, .tk-side select.input option { background: #160c26; }
