@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap");

:root {
  --field: #1c1743;
  --bg: #03050f;
  --surface: #090d1d;
  --surface-2: #121832;
  --line: #1c2342;
  --gold: #e8b931;
  --gold-ink: #1a1405;
  --text: #eef0f6;
  --muted: #8b95ad;
  --ok: #22c55e;
  --bad: #ef4444;
  --radius: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { color-scheme: dark; }

body {
  font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.7;
}

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

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.hidden { display: none !important; }

/* ---------- الشريط العلوي ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 5%;
  background: rgba(7, 9, 15, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.brand { font-weight: 700; font-size: 18px; color: var(--gold); letter-spacing: 0.02em; }

.who { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }

.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface-2); object-fit: cover;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--gold); font-size: 13px;
}

/* ---------- الأزرار ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line); border-radius: 8px;
  padding: 9px 18px; font: inherit; font-size: 14px; font-weight: 600;
  background: var(--surface-2); color: var(--text); cursor: pointer;
}
.btn:hover { border-color: var(--gold); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.btn-gold:hover { filter: brightness(1.08); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- الصفحة الرئيسية ---------- */
.home { max-width: 1100px; margin: 0 auto; padding: 56px 5% 90px; }

.hero { max-width: 640px; margin-bottom: 48px; }
.hero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.25; margin-bottom: 14px; }
.hero p { color: var(--muted); margin-bottom: 24px; }
.note { margin-top: 14px; font-size: 14px; color: var(--gold); min-height: 22px; }

.servers-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.servers-head h2 { font-size: 20px; }
.servers-head span { color: var(--muted); font-size: 14px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }

.srv {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px;
}
.srv .avatar { width: 46px; height: 46px; flex: none; font-size: 15px; }
.srv-info { min-width: 0; flex: 1; }
.srv-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srv-sub { font-size: 12px; color: var(--muted); }
.srv .btn { padding: 6px 12px; font-size: 13px; flex: none; }

.empty { color: var(--muted); padding: 30px 0; }

/* ---------- لوحة التحكم ---------- */
.layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: calc(100vh - 58px); }

.side {
  border-inline-end: 1px solid var(--line);
  padding: 18px 14px;
  display: flex; flex-direction: column; gap: 16px;
  background: var(--surface);
}

.guild-box { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; background: var(--surface-2); }
.guild-box .avatar { width: 38px; height: 38px; }
.guild-box b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
.guild-box a { font-size: 12px; color: var(--muted); }
.guild-box a:hover { color: var(--gold); }

.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a {
  padding: 9px 12px; border-radius: 8px; font-size: 14px; color: var(--muted);
  border-inline-start: 3px solid transparent;
}
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.active { background: var(--surface-2); color: var(--gold); border-inline-start-color: var(--gold); font-weight: 600; }

.main { padding: 32px 4% 120px; max-width: 900px; width: 100%; }
.main h1 { font-size: 26px; margin-bottom: 4px; }
.main .lead { color: var(--muted); margin-bottom: 26px; font-size: 14px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }

.field { margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }
.field > label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 5px; }

input[type="text"], input[type="url"], textarea, select {
  width: 100%; background: var(--surface-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font: inherit; font-size: 14px;
}
textarea { min-height: 96px; resize: vertical; }
input[type="color"] { width: 56px; height: 38px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); padding: 3px; cursor: pointer; }

.row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; padding-bottom: 0; }
.row:first-child { padding-top: 0; }
.row b { font-size: 14px; display: block; }
.row small { color: var(--muted); font-size: 12px; }
.row code { direction: ltr; unicode-bidi: embed; color: var(--gold); }

.switch { position: relative; width: 44px; height: 24px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; z-index: 1; }
.switch span { position: absolute; inset: 0; background: var(--line); border-radius: 999px; transition: background 0.15s; }
.switch span::after {
  content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; transition: transform 0.15s;
}
.switch input:checked + span { background: var(--gold); }
.switch input:checked + span::after { transform: translateX(-20px); }
.switch input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* معاينة رسالة الترحيب */
.preview-label { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.embed { background: #2b2d31; border-radius: 6px; border-inline-start: 4px solid var(--gold); padding: 12px 14px; display: flex; gap: 12px; align-items: flex-start; }
.embed .avatar { width: 60px; height: 60px; flex: none; order: 2; }
.embed-body { flex: 1; min-width: 0; font-size: 14px; color: #dbdee1; white-space: pre-wrap; word-break: break-word; }
.mention { color: #c9cdfb; background: rgba(88, 101, 242, 0.3); border-radius: 3px; padding: 0 3px; }
.embed-img { margin-top: 10px; max-width: 100%; max-height: 200px; border-radius: 6px; display: block; }

.vars { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.vars code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 8px; font-size: 12px; direction: ltr; }

/* شريط الحفظ */
.savebar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 30;
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  padding: 12px 16px; background: var(--surface-2); border-top: 1px solid var(--gold);
  font-size: 14px;
}

.toast {
  position: fixed; top: 70px; inset-inline-start: 50%; transform: translateX(50%);
  background: var(--surface-2); border: 1px solid var(--line); padding: 10px 18px; border-radius: 8px; z-index: 40; font-size: 14px;
}
.toast.ok { border-color: var(--ok); }
.toast.err { border-color: var(--bad); }

.msg-box { max-width: 480px; margin: 90px auto; text-align: center; padding: 0 20px; }
.msg-box p { color: var(--muted); margin: 10px 0 20px; }

@media (max-width: 820px) {
  .layout { grid-template-columns: 1fr; }
  .side { border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .nav { flex-direction: row; overflow-x: auto; }
  .nav a { white-space: nowrap; border-inline-start: 0; border-bottom: 3px solid transparent; }
  .nav a.active { border-bottom-color: var(--gold); }
  .two { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

.rule { display: grid; grid-template-columns: 1fr 2fr auto; gap: 10px; margin-bottom: 10px; }
.card-actions { margin-top: 14px; }
input[type="number"] { width: 100%; background: var(--surface-2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font: inherit; font-size: 14px; }
@media (max-width: 820px) { .rule { grid-template-columns: 1fr; } }

.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg-btn { border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); border-radius: 8px; padding: 6px 14px; font: inherit; font-size: 13px; cursor: pointer; min-width: 44px; }
.seg-btn:hover { border-color: var(--gold); color: var(--text); }
.seg-btn.active { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { border: 1px solid var(--line); background: var(--surface-2); color: var(--text); border-radius: 999px; padding: 3px 12px; font: inherit; font-size: 12px; cursor: pointer; }
.chip:hover { border-color: var(--bad); }
.section-title { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.section-sub { font-size: 12px; color: var(--muted); margin-bottom: 14px; }

/* ---------- تنسيق لوحة التحكم الجديد ---------- */
input[type="text"], input[type="url"], input[type="number"], textarea, select { background: var(--field); }
.layout { grid-template-columns: 260px minmax(0, 1fr); }
.main { max-width: 1200px; padding: 28px 3% 120px; }
.nav { gap: 14px; }
.nav-group { display: flex; flex-direction: column; gap: 3px; }
.nav-title { font-size: 12px; color: var(--gold); font-weight: 700; padding: 4px 12px; }
.card-head { margin-bottom: 16px; }
.card-head b { display: block; font-size: 16px; }
.card-head small { color: var(--muted); font-size: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.group-title { font-size: 16px; margin: 22px 0 10px; color: var(--gold); }
.cmd { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.cmd-text { min-width: 0; }
.cmd-text code { display: block; direction: ltr; text-align: start; color: var(--text); font-weight: 600; }
.cmd-text small { color: var(--muted); font-size: 12px; }
.log-card { margin-bottom: 0; }
.log-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.notice { margin-top: 16px; background: #1f1a0a; border: 1px solid #5c4a12; border-radius: 8px; padding: 12px 14px; font-size: 13px; color: #e8c766; }
.notice b { display: block; margin-bottom: 2px; }
@media (max-width: 1000px) { .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) { .grid3 { grid-template-columns: 1fr; } .nav-group { flex-direction: row; flex-wrap: nowrap; } .nav-title { display: none; } }

.img-input { display: flex; flex-direction: column; gap: 8px; }
.img-actions { display: flex; gap: 8px; align-items: center; }

/* رأس اللوحة (بدون خط) */
.dash-bar { position: relative; inset-inline: auto; padding: 14px 5%; background: transparent; border: 0; }
.dash-bar .avatar { width: 34px; height: 34px; }

/* قسم قابل للطي */
.acc { padding: 0; }
.acc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; }
.acc-title { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.acc-title small { color: var(--muted, #8b93a7); font-size: 12.5px; }
.acc-ctl { display: flex; align-items: center; gap: 10px; flex: none; }
.acc-arrow { background: transparent; border: 1px solid rgba(255,255,255,.12); color: inherit; border-radius: 8px; width: 34px; height: 34px; cursor: pointer; }
.acc-body { padding: 4px 18px 18px; border-top: 1px solid rgba(255,255,255,.07); }
.acc-body.hidden { display: none; }

/* قوائم البطاقات */
.card-list { display: grid; gap: 14px; margin-bottom: 14px; }
.item-card { position: relative; }
.item-actions { display: flex; justify-content: flex-start; margin-bottom: 8px; }
.hint.empty { text-align: center; padding: 22px; border: 1px dashed var(--line); border-radius: 10px; }
.q-opts { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.inline { display: flex; align-items: center; gap: 8px; }
.card .card { background: rgba(255,255,255,.02); }

/* ================= شكل لوحة التحكم (مثل ويكس) ================= */
body { background: #03050f; }
.dash-bar { position: relative !important; height: 64px; padding: 0 24px !important; border-bottom: 1px solid #141a33; background: #050818; }
.dash-bar .hbrand-logo { width: 34px; height: 34px; }
.dash-bar .hbrand-name { font-size: 20px; }
.dash-bar .avatar { width: 34px; height: 34px; }

.layout { grid-template-columns: 268px minmax(0, 1fr); min-height: calc(100vh - 64px); }
.side { background: #070b1d; border-inline-end: 1px solid #141a33; padding: 14px 12px; gap: 12px; overflow-y: auto; }

.guild-box { padding: 0; background: transparent; }
.gb-link {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 12px; border-radius: 10px; background: #0b1128; border: 1px solid #1a2244;
}
.gb-link:hover { border-color: #2c3768; }
.gb-link b { flex: 1; font-size: 14px; max-width: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gb-link .avatar { width: 24px; height: 24px; font-size: 11px; flex: none; }
.gb-link .chev { width: 16px; height: 16px; color: var(--muted); flex: none; }

.nav { gap: 2px; }
.nav-group { margin-bottom: 4px; }
.nav-title { font-size: 12px; color: #9aa3bd; padding: 12px 12px 6px; }
.nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 8px; font-size: 14.5px; color: #dfe3f0;
  border: 1px solid transparent; border-inline-start: 1px solid transparent;
}
.nav a .ni { width: 18px; height: 18px; flex: none; color: #cdd3e6; }
.nav a .chev { width: 14px; height: 14px; margin-inline-start: auto; color: #8f99b5; flex: none; }
.nav a:hover { background: rgba(255,255,255,.04); color: #fff; }
.nav a.active { background: transparent; border-color: #fff; color: var(--gold); font-weight: 600; }
.nav a.active .ni, .nav a.active .chev { color: var(--gold); }

.main { max-width: none; width: 100%; padding: 26px 28px 120px; }
.main h1 { font-size: 34px; font-weight: 700; margin-bottom: 2px; }
.main .lead { color: #9aa3bd; font-size: 13.5px; margin-bottom: 22px; }

.card { background: #080c1d; border: 1px solid #151c3a; border-radius: 14px; padding: 24px; }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.card-head > div { display: flex; flex-direction: column; }
.card-head b { font-size: 17px; }
.card-head small { color: #9aa3bd; font-size: 12.5px; }
.ci { width: 40px; height: 40px; border-radius: 10px; background: #14183a; color: #c7a443; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ci svg { width: 20px; height: 20px; }

.field > label { font-size: 13px; }
select, .field select {
  appearance: none; -webkit-appearance: none;
  background-color: #1a1546; border: 1px solid #2b2566; border-radius: 8px; height: 46px; padding: 0 14px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23cbd2ea' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: left 14px center; padding-inline-start: 40px;
  color: var(--text); cursor: pointer;
}
select option { background: #121033; }
input[type="text"], input[type="url"], textarea { background: #0e1330; border-color: #1c2446; border-radius: 8px; }

select.lang-select {
  background-position: left 14px center, right 12px center;
  background-repeat: no-repeat, no-repeat; background-size: 16px, 22px 15px;
  padding-inline: 14px 44px; padding-inline-start: 44px; padding-inline-end: 44px;
}
select.lang-select[data-lang="en"] {
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23cbd2ea' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>"),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20'><rect width='30' height='20' rx='3' fill='%23fff'/><g fill='%23c8102e'><rect width='30' height='1.6'/><rect y='3.2' width='30' height='1.6'/><rect y='6.4' width='30' height='1.6'/><rect y='9.6' width='30' height='1.6'/><rect y='12.8' width='30' height='1.6'/><rect y='16' width='30' height='1.6'/><rect y='18.4' width='30' height='1.6'/></g><rect width='13' height='10.8' rx='1.5' fill='%231a2a6c'/></svg>");
}
select.lang-select[data-lang="ar"] {
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23cbd2ea' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>"),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20'><rect width='30' height='20' rx='3' fill='%230a7a3d'/><rect x='7' y='13' width='16' height='1.2' rx='.6' fill='%23fff'/><rect x='8' y='7' width='14' height='2' rx='1' fill='%23fff'/></svg>");
}

/* معاينة رسالة ديسكورد */
.dmsg { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 8px; }
.dmsg-av { width: 40px; height: 40px; border-radius: 50%; flex: none; object-fit: cover; }
.dmsg-main { flex: 1; min-width: 0; }
.dmsg-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.dmsg-head b { font-size: 15px; }
.dmsg-head small { color: #949ba4; font-size: 11px; }
.bot-badge { background: #5865f2; color: #fff; font-size: 10px; font-weight: 700; padding: 0 5px; border-radius: 4px; line-height: 16px; }
.embed { background: #121426; border-radius: 6px; border-inline-start: 4px solid var(--gold); padding: 12px 14px; display: flex; gap: 12px; align-items: center; }
.embed .thumb { width: 36px; height: 36px; background: #9a9ca3; border-radius: 6px; flex: none; order: 2; }

.notice { background: #231b09; border: 1px solid #6a5316; border-radius: 10px; padding: 14px 18px; color: #e9c95a; }
.notice b { color: var(--gold); }

@media (max-width: 820px) {
  .layout { grid-template-columns: 1fr; }
  .nav-group { display: contents; }
  .nav-title { display: none; }
  .nav a .chev { display: none; }
}
input[type="url"] { direction: ltr; text-align: right; }
.card > .row:first-child + .field, .card > .row + .field { margin-top: 18px; }
.section-title { font-weight: 700; font-size: 16px; margin: 0 0 12px; }
.section-title:not(:first-child) { margin-top: 22px; }
.section-sub { color: #9aa3bd; font-size: 12.5px; margin: -6px 0 14px; }

/* ================= نسخة مضغوطة (قريبة من كثافة ويكس) ================= */
body { font-size: 13px; line-height: 1.55; }
.dash-bar { height: 52px; padding: 0 18px !important; }
.dash-bar .hbrand-logo { width: 28px; height: 28px; }
.dash-bar .hbrand-name { font-size: 17px; }
.dash-bar .avatar { width: 28px; height: 28px; font-size: 12px; }
.uname { font-size: 12.5px; }
.flag-btn { padding: 3px 5px; }
.flag-btn svg { width: 24px; height: 16px; }

.layout { grid-template-columns: 216px minmax(0, 1fr); min-height: calc(100vh - 52px); }
.side { padding: 10px 8px; gap: 8px; }
.gb-link { padding: 7px 10px; border-radius: 8px; gap: 8px; }
.gb-link b { font-size: 12.5px; }
.gb-link .avatar { width: 20px; height: 20px; font-size: 10px; }
.gb-link .chev { width: 13px; height: 13px; }

.nav { gap: 1px; }
.nav-group { margin-bottom: 2px; }
.nav-title { font-size: 10.5px; padding: 8px 10px 3px; }
.nav a { padding: 6px 10px; font-size: 12.5px; gap: 8px; border-radius: 7px; }
.nav a .ni { width: 15px; height: 15px; }
.nav a .chev { width: 11px; height: 11px; }

.main { padding: 16px 22px 100px; }
.main h1 { font-size: 24px; margin-bottom: 0; }
.main .lead { font-size: 11.5px; margin-bottom: 14px; }

.card { padding: 14px 16px; border-radius: 10px; margin-bottom: 10px; }
.card-head { gap: 9px; margin-bottom: 12px; }
.card-head b { font-size: 13.5px; }
.card-head small { font-size: 10.5px; }
.ci { width: 28px; height: 28px; border-radius: 7px; }
.ci svg { width: 14px; height: 14px; }

.field { margin-bottom: 11px; }
.field > label { font-size: 11.5px; margin-bottom: 4px; }
.hint { font-size: 10.5px; margin-top: 3px; }

input[type="text"], input[type="url"], textarea { padding: 6px 10px; font-size: 12.5px; border-radius: 6px; height: 32px; }
textarea { height: auto; min-height: 70px; }
input[type="number"] { padding: 6px 10px; font-size: 12.5px; height: 32px; border-radius: 6px; }
select, .field select { height: 32px; font-size: 12.5px; padding: 0 12px; padding-inline-start: 32px; border-radius: 6px; background-position: left 10px center; background-size: 13px; }
select.lang-select { padding-inline: 32px 40px; background-size: 13px, 20px 13px; background-position: left 10px center, right 10px center; }
input[type="color"] { width: 44px; height: 30px; border-radius: 6px; }

.row { padding: 8px 0; gap: 12px; }
.row b { font-size: 12.5px; }
.row small { font-size: 10.5px; }

.switch { width: 36px; height: 20px; }
.switch span::after { top: 3px; width: 14px; height: 14px; }
.switch input:checked + span::after { transform: translateX(-16px); }

.seg-btn { padding: 4px 10px; font-size: 11.5px; min-width: 36px; border-radius: 6px; }
.btn { padding: 5px 12px !important; font-size: 12px !important; border-radius: 6px; }
.chip { font-size: 11px; padding: 2px 8px; }

.section-title { font-size: 13px; margin-bottom: 8px; }
.section-title:not(:first-child) { margin-top: 14px; }
.section-sub { font-size: 11px; margin: -4px 0 10px; }

.acc-head { padding: 10px 14px; }
.acc-title b { font-size: 13px; }
.acc-title small { font-size: 10.5px; }
.acc-arrow { width: 26px; height: 26px; font-size: 11px; border-radius: 6px; }
.acc-body { padding: 4px 14px 12px; }

.dmsg-av { width: 32px; height: 32px; }
.dmsg-head b { font-size: 13px; }
.embed { padding: 9px 12px; font-size: 12px; }
.embed .thumb { width: 28px; height: 28px; }
.embed-body { font-size: 12px; }
.notice { padding: 9px 14px; font-size: 11.5px; border-radius: 8px; }

.rule { gap: 8px; margin-bottom: 8px; }
.card-list { gap: 10px; margin-bottom: 10px; }
.two { gap: 12px; }
.savebar { padding: 8px 14px; font-size: 12.5px; }
.grid3 { gap: 10px; }
.cmd { padding: 8px 10px; }
.dash-bar .logo-anim { width: 30px; height: 30px; animation: none; }
.dash-bar .logo-anim .hbrand-logo { width: 30px; height: 30px; animation: none; }

.rule .inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rule .inline input[type=number] { width: 80px; }
.rule .inline select { width: auto; min-width: 100px; }
.rule .inline input[type=text], .rule .inline input:not([type]) { flex: 1; min-width: 120px; }

.premium-status { padding: 12px 14px; border-radius: 10px; font-weight: 600; border: 1px solid var(--border, #2a2d3a); }
.premium-status.on { color: #57f287; border-color: #57f28766; }
.premium-status.off { color: var(--muted); }

.prem-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--gold); color: var(--gold-ink, #1a1500); font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 10px; text-decoration: none; margin-inline-end: 8px; }
.prem-btn:hover { filter: brightness(1.08); }
.prem-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: currentColor; fill-opacity: .25; }
.vip-badge { display: inline-flex; align-items: center; gap: 3px; margin-inline-start: auto; margin-inline-end: 6px; font-size: 10px; font-weight: 700; color: var(--gold); border: 1px solid #e8b93166; background: #e8b93114; padding: 1px 6px; border-radius: 6px; }
.vip-badge svg { width: 11px; height: 11px; stroke: currentColor; }

.chart-box { margin-bottom: 14px; }
.chart-title { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.chart { width: 100%; height: 130px; background: #0b0e1a; border-radius: 10px; }
