/* IRANSans — فونت داخلی پروژه */
@font-face {
  font-family: 'IRANSans';
  src: url('../fonts/IRANSansWeb_UltraLight.woff2') format('woff2'),
       url('../fonts/IRANSansWeb_UltraLight.woff') format('woff');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IRANSans';
  src: url('../fonts/IRANSansWeb_Light.woff2') format('woff2'),
       url('../fonts/IRANSansWeb_Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IRANSans';
  src: url('../fonts/IRANSansWeb.woff2') format('woff2'),
       url('../fonts/IRANSansWeb.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IRANSans';
  src: url('../fonts/IRANSansWeb_Medium.woff2') format('woff2'),
       url('../fonts/IRANSansWeb_Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IRANSans';
  src: url('../fonts/IRANSansWeb_Bold.woff2') format('woff2'),
       url('../fonts/IRANSansWeb_Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IRANSans';
  src: url('../fonts/IRANSansWeb_Black.woff2') format('woff2'),
       url('../fonts/IRANSansWeb_Black.woff') format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #0b5fff;
  --blue-deep: #063f95;
  --text: #0f274f;
  --muted: #7b8fad;
  --bg: #eef4ff;
  --card: #ffffff;
  --line: #e4eefb;
  --radius: 1.5rem;
  --shadow: 0 12px 40px rgba(11, 95, 255, .08);
  --font: 'IRANSans', 'Tahoma', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { direction: rtl; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: linear-gradient(180deg, #f7faff 0%, #eaf1ff 100%);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: none; background: none; }
button:disabled { cursor: not-allowed; opacity: .55; }
.app { min-height: 100vh; display: flex; flex-direction: column; }

.header { position: sticky; top: 0; z-index: 40; padding: .85rem 1rem 0; }
.header-inner {
  max-width: 72rem; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  background: #fff; border: 1px solid rgba(11,95,255,.06);
  border-radius: 1.35rem; padding: .65rem .9rem; box-shadow: var(--shadow);
}
.brand { display: flex; align-items: center; gap: .65rem; }
.brand img, .logo {
  width: 2.6rem; height: 2.6rem; border-radius: .85rem;
  object-fit: contain; background: #0b5fff;
}
.brand b { display: block; font-size: .95rem; font-weight: 900; }
.brand span { display: block; font-size: 10px; color: var(--muted); font-weight: 600; }
.nav { display: none; align-items: center; gap: .25rem; flex: 1; justify-content: center; }
@media (min-width: 900px) { .nav { display: flex; } }
.nav-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  min-height: 2.55rem; padding: 0 .95rem; border-radius: 999px;
  font-size: .82rem; font-weight: 700; color: #5b7294; transition: .2s ease;
}
.nav-btn:hover { background: #f3f7ff; color: var(--blue); }
.nav-btn.active { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(11,95,255,.28); }
.nav-btn svg { width: 1.05rem; height: 1.05rem; }
.header-actions { display: flex; align-items: center; gap: .4rem; }
.icon-btn {
  width: 2.55rem; height: 2.55rem; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: #f3f7ff; color: var(--blue); position: relative;
}
.icon-btn svg { width: 1.15rem; height: 1.15rem; }
.badge-dot {
  position: absolute; top: .45rem; left: .45rem;
  width: .45rem; height: .45rem; border-radius: 999px; background: #ef4444;
}

.main { flex: 1; max-width: 72rem; width: 100%; margin: 0 auto; padding: 1.25rem 1rem 5.5rem; }
.footer {
  text-align: center; padding: 1rem; font-size: .72rem; color: var(--muted);
  border-top: 1px solid rgba(11,95,255,.06); background: rgba(255,255,255,.65);
}

.page-eyebrow { display: inline-flex; align-items: center; gap: .35rem; color: var(--blue); font-size: .82rem; font-weight: 800; margin: 0; }
.page-title { margin: .35rem 0 0; font-size: 1.75rem; font-weight: 900; letter-spacing: -.02em; }
.page-desc { margin: .45rem 0 0; font-size: .88rem; color: var(--muted); line-height: 1.8; }
.section-title { margin: 0; font-size: 1.05rem; font-weight: 900; display: flex; align-items: center; gap: .4rem; }

.card {
  background: var(--card); border: 1px solid rgba(11,95,255,.06);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.15rem 1.2rem;
}
.glass { background: var(--card); border: 1px solid rgba(11,95,255,.06); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.15rem; }

.hero {
  border-radius: 1.75rem; padding: 1.6rem 1.5rem; color: #fff;
  background: linear-gradient(135deg, #0b5fff 0%, #0747c2 45%, #05358f 100%);
  box-shadow: 0 20px 48px rgba(7,71,194,.28);
}
.hero h1 { margin: .4rem 0 0; font-size: clamp(1.35rem, 3vw, 1.85rem); font-weight: 900; line-height: 1.45; }
.hero p { margin: .55rem 0 0; opacity: .92; font-size: .9rem; line-height: 1.85; max-width: 36rem; }
.hero-actions { margin-top: 1.15rem; display: flex; flex-wrap: wrap; gap: .6rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 2.7rem; padding: 0 1.15rem; border-radius: 999px;
  font-size: .85rem; font-weight: 800; transition: .18s ease;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 22px rgba(11,95,255,.25); }
.btn-white { background: #fff; color: var(--blue); }
.btn-outline-white { border: 1px solid rgba(255,255,255,.35); color: #fff; }
.btn-ghost { background: #f3f7ff; color: var(--blue); }
.btn-dark { background: #0f274f; color: #fff; }
.btn-block { width: 100%; border-radius: 1rem; }

.kind-tabs { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1.15rem 0 1rem; }
.kind-tabs button {
  display: inline-flex; align-items: center; gap: .4rem;
  min-height: 2.7rem; padding: 0 1.1rem; border-radius: 999px;
  font-size: .82rem; font-weight: 800; color: #5b7294;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(11,95,255,.04);
}
.kind-tabs button.active {
  background: var(--blue); color: #fff; border-color: var(--blue);
  box-shadow: 0 10px 24px rgba(11,95,255,.25);
}
.kind-tabs button svg { width: 1rem; height: 1rem; }

.signals-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .signals-grid { grid-template-columns: 1fr 1fr; } }
.signal-card {
  background: #fff; border: 1px solid rgba(11,95,255,.06);
  border-radius: 1.5rem; padding: 1.1rem 1.15rem; box-shadow: var(--shadow);
}
.signal-card.featured { grid-column: 1 / -1; }
.signal-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; width: 100%; }
.pair-badge {
  width: 2.6rem; height: 2.6rem; border-radius: 999px; background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: .75rem; flex-shrink: 0;
}
.pair-name { font-weight: 900; font-size: 1.05rem; }
.pair-meta { font-size: .75rem; color: var(--muted); margin-top: .2rem; display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: .25rem;
  border-radius: 999px; padding: .28rem .7rem; font-size: .72rem; font-weight: 800;
}
.chip-blue { background: #eef4ff; color: var(--blue); }
.chip-green { background: #ecfdf5; color: #059669; }
.chip-red { background: #fff1f2; color: #e11d48; }
.chip-amber { background: #fffbeb; color: #d97706; }
.signal-body { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem 1rem; margin-top: 1rem; font-size: .82rem; }
.signal-body .lbl { color: var(--muted); font-size: .75rem; margin-bottom: .15rem; }
.signal-body .val { font-weight: 800; }
.signal-body .val.danger { color: #e11d48; }
.signal-body .val.blue { color: #1472e8; }
.signal-foot {
  margin-top: .9rem; padding: .55rem .8rem; border-radius: 999px;
  background: #f5f9ff; color: var(--muted); font-size: .75rem; font-weight: 600;
  display: flex; align-items: center; gap: .35rem;
}
.signal-tip { margin-top: .55rem; font-size: .72rem; color: #94a3b8; }

.journal-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .journal-grid { grid-template-columns: .85fr 1.35fr; } }
.journal-side {
  border-radius: 1.6rem; padding: 1.5rem;
  background: linear-gradient(160deg, #0b5fff, #05358f); color: #fff;
  box-shadow: 0 18px 40px rgba(7,71,194,.25);
  display: flex; flex-direction: column; justify-content: center; min-height: 16rem;
}
.journal-side .label { opacity: .85; font-size: .85rem; font-weight: 700; }
.journal-side .amount { font-size: 2.4rem; font-weight: 900; margin: .6rem 0 .35rem; }
.journal-side .hint { opacity: .8; font-size: .8rem; }
.form-grid { display: grid; gap: .85rem; }
@media (min-width: 640px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }
.label { display: block; }
.label span { display: block; margin-bottom: .4rem; font-size: .78rem; font-weight: 800; color: #5b7294; }
.input, .select, .textarea {
  display: block; width: 100%; border: 1px solid #dce8f8; border-radius: 1rem;
  background: #fbfcff; padding: .8rem 1rem; color: var(--text); font-size: .875rem;
}
.textarea { min-height: 6rem; resize: vertical; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(11,95,255,.12); background: #fff;
}
.input::placeholder, .textarea::placeholder { color: #a8bbd6; }

.stats-row { display: grid; gap: .75rem; grid-template-columns: 1fr; margin-top: 1rem; }
@media (min-width: 640px) { .stats-row { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .stats-row.four { grid-template-columns: repeat(4, 1fr); } }
.stat-card {
  background: #fff; border: 1px solid rgba(11,95,255,.06);
  border-radius: 1.25rem; padding: 1rem 1.1rem; box-shadow: var(--shadow);
}
.stat-card .k { display: flex; align-items: center; justify-content: space-between; font-size: .75rem; font-weight: 700; color: var(--muted); }
.stat-card .v { margin-top: .45rem; font-size: 1.15rem; font-weight: 900; }
.stat-card .v.blue { color: var(--blue); }
.stat-card .v.green { color: #059669; }
.stat-card .v.red { color: #e11d48; }
.stat-card .v.amber { color: #d97706; }

.best-banner {
  margin-top: 1rem; padding: .85rem 1rem; border-radius: 1rem;
  background: linear-gradient(90deg, #ecfdf5, #f0fdf4); border: 1px solid #bbf7d0;
  color: #047857; font-size: .85rem; font-weight: 700;
}
.chart-box {
  margin-top: 1rem; padding: 1.15rem; background: #fff; border-radius: 1.5rem;
  border: 1px solid rgba(11,95,255,.06); box-shadow: var(--shadow);
}
.chart-svg { width: 100%; height: 180px; display: block; }
.result-card {
  background: #fff; border-radius: 1.35rem; padding: 1rem 1.1rem;
  border: 1px solid rgba(11,95,255,.06); box-shadow: var(--shadow);
}
.result-card .bar {
  margin-top: .75rem; height: 2.2rem; border-radius: .85rem;
  background: #ecfdf5; color: #059669;
  display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 800;
}
.result-card .bar.stop { background: #fff1f2; color: #e11d48; }

.exchange-box {
  margin-top: 1.25rem; border-radius: 1.75rem; padding: 1.5rem;
  background: linear-gradient(145deg, #0b5fff, #05358f); color: #fff;
  box-shadow: 0 20px 48px rgba(7,71,194,.28);
}
.exchange-grid { display: grid; gap: .65rem; margin-top: 1.15rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .exchange-grid { grid-template-columns: 1fr 1fr; } }
.exchange-item {
  background: rgba(255,255,255,.12); border-radius: 1rem;
  padding: .85rem 1rem; font-size: .88rem; font-weight: 700;
  display: flex; align-items: center; gap: .5rem;
}

.profile-hero {
  border-radius: 1.75rem; padding: 1.35rem 1.4rem; color: #fff;
  background: linear-gradient(135deg, #0b5fff, #05358f);
  box-shadow: 0 18px 40px rgba(7,71,194,.25);
}
.profile-hero .avatar {
  width: 3.25rem; height: 3.25rem; border-radius: 1rem;
  background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center;
}
.profile-hero .avatar svg { width: 1.5rem; height: 1.5rem; color: #fff; }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; margin-top: 1rem; width: 100%; }
@media (max-width: 560px) { .profile-stats { grid-template-columns: 1fr; } }
.profile-stat {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.16);
  border-radius: 1rem; padding: .85rem 1rem;
}
.profile-stat .k { font-size: .7rem; opacity: .85; }
.profile-stat .v { margin-top: .3rem; font-weight: 900; font-size: .95rem; display: flex; align-items: center; gap: .35rem; }
.profile-grid { display: grid; gap: 1rem; margin-top: 1.15rem; }
@media (min-width: 900px) { .profile-grid { grid-template-columns: 1.05fr .95fr; } }
.profile-block {
  background: #fff; border: 1px solid rgba(11,95,255,.06);
  border-radius: 1.5rem; padding: 1.2rem 1.25rem; box-shadow: var(--shadow);
}
.profile-block h2 { margin: 0; font-size: 1.05rem; font-weight: 900; display: flex; align-items: center; gap: .45rem; }
.profile-block h2 svg { width: 1.15rem; height: 1.15rem; color: var(--blue); }
.profile-block .desc { margin: .4rem 0 0; font-size: .78rem; color: var(--muted); line-height: 1.75; }

.auth-shell { max-width: 26rem; margin: 1.5rem auto 0; }
.auth-card {
  background: #fff; border-radius: 1.6rem; overflow: hidden;
  border: 1px solid rgba(11,95,255,.06); box-shadow: 0 18px 48px rgba(11,95,255,.1);
}
.auth-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: .35rem;
  margin: 1rem 1rem 0; padding: .35rem; background: #eef4ff; border-radius: 1rem;
}
.auth-tabs button {
  min-height: 2.65rem; border-radius: .85rem; font-weight: 800; font-size: .875rem; color: #5b7294;
  transition: .35s cubic-bezier(.22,1,.36,1);
}
.auth-tabs button.active { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(11,95,255,.28); }
.auth-panels { position: relative; overflow: hidden; min-height: 22rem; }
.auth-panel { padding: 1.2rem 1.3rem 1.5rem; transition: opacity .4s ease, transform .45s cubic-bezier(.22,1,.36,1); }
.auth-panel.is-hidden { position: absolute; inset: 0; opacity: 0; pointer-events: none; transform: translateX(1.25rem) scale(.98); }
.auth-panel.is-hidden.slide-left { transform: translateX(-1.25rem) scale(.98); }
.auth-panel.is-visible { position: relative; opacity: 1; transform: none; }
.auth-title { margin: 0; font-size: 1.15rem; font-weight: 900; display: flex; align-items: center; gap: .4rem; }
.auth-sub { margin: .4rem 0 0; font-size: .78rem; color: var(--muted); line-height: 1.7; }

.plan-grid { display: grid; gap: .65rem; margin-top: 1rem; }
.plan-btn {
  width: 100%; text-align: right; padding: 1rem 1.1rem; border-radius: 1.15rem;
  background: #fbfcff; border: 1px solid var(--line); transition: .2s ease;
}
.plan-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(11,95,255,.1); }
.plan-btn.hot { background: #fffbeb; border-color: #fde68a; }
.plan-btn .price { display: block; margin-top: .35rem; font-weight: 900; color: var(--blue); font-size: 1.05rem; }

.plan-btn-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .85rem 1rem;
  flex-wrap: nowrap;
}
.plan-btn-inline .plan-inline-main {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex: 1;
  min-width: 0;
  flex-wrap: nowrap;
}
.plan-btn-inline .plan-inline-main .font-black {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.plan-btn-inline .plan-inline-chip {
  flex-shrink: 0;
  font-size: 10px;
  padding: .15rem .4rem;
}
.plan-btn-inline .price {
  display: inline-block;
  margin-top: 0;
  flex-shrink: 0;
  font-size: .95rem;
  white-space: nowrap;
}
.sub-banner { border-radius: 1.15rem; padding: 1rem 1.1rem; margin-top: 1rem; font-size: .88rem; }
.sub-banner.active { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.sub-banner.off { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.progress { height: .45rem; border-radius: 999px; background: #d1fae5; overflow: hidden; margin-top: .7rem; }
.progress > i { display: block; height: 100%; background: #10b981; border-radius: 999px; }

.modal-bg {
  position: fixed; inset: 0; z-index: 60; background: rgba(7,27,62,.55);
  display: flex; align-items: flex-end; justify-content: center;
}
@media (min-width: 640px) { .modal-bg { align-items: center; padding: 1rem; } }
.modal {
  width: 100%; max-width: 26rem; max-height: 90vh; overflow: auto;
  background: #fff; border-radius: 1.75rem 1.75rem 0 0; padding: 1.25rem;
}
@media (min-width: 640px) { .modal { border-radius: 1.75rem; } }

.mobile-nav {
  position: fixed; bottom: 0; inset-inline: 0; z-index: 30;
  display: flex; gap: .2rem; padding: .45rem .55rem calc(.45rem + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96); border-top: 1px solid var(--line); backdrop-filter: blur(12px);
}
@media (min-width: 900px) { .mobile-nav { display: none; } }
.mobile-nav button {
  flex: 1; min-height: 3.35rem; border-radius: 1rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem;
  font-size: .65rem; font-weight: 800; color: #7b8fad;
}
.mobile-nav button.active { background: #eef4ff; color: var(--blue); }
.mobile-nav button svg { width: 1.15rem; height: 1.15rem; margin: 0; }

.hidden { display: none !important; }
.mt-1 { margin-top: .25rem; } .mt-2 { margin-top: .5rem; } .mt-3 { margin-top: .75rem; }
.mt-4 { margin-top: 1rem; } .mt-5 { margin-top: 1.25rem; }
.flex { display: flex; } .gap-2 { gap: .5rem; } .gap-3 { gap: .75rem; }
.items-center { align-items: center; } .justify-between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.text-xs { font-size: .75rem; } .text-sm { font-size: .875rem; }
.font-bold { font-weight: 700; } .font-black { font-weight: 900; }
.text-muted { color: var(--muted); } .text-blue { color: var(--blue); }
.text-center { text-align: center; } .w-full { width: 100%; }
.empty {
  text-align: center; padding: 2rem 1rem; color: var(--muted); font-size: .875rem;
  border: 1.5px dashed #d5e4f7; border-radius: 1.25rem; background: #fafcff;
}
.notice { padding: .85rem 1rem; border-radius: 1rem; font-size: .82rem; line-height: 1.7; }
.notice-ok { background: #ecfdf5; color: #065f46; }
.notice-err { background: #fff1f2; color: #9f1239; }
.notice-warn { background: #fffbeb; color: #92400e; }

.admin-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; margin-bottom: 1rem; }
@media (min-width: 640px) { .admin-nav { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .admin-nav { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1200px) { .admin-nav { grid-template-columns: repeat(9, 1fr); } }
.admin-nav button {
  min-height: 3.25rem; border-radius: 1rem; font-size: .75rem; font-weight: 800;
  background: #fff; border: 1px solid var(--line); color: #5b7294;
}
.admin-nav button.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .8rem; }
th, td { padding: .65rem; border-bottom: 1px solid #eef2f7; text-align: right; }
th { font-weight: 800; color: var(--muted); }
i[data-lucide], svg.lucide {
  width: 1.15rem; height: 1.15rem;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  vertical-align: middle;
}

html.dark body {
  color: #e7f0ff;
  background: linear-gradient(180deg, #071222 0%, #0a172a 100%);
}
html.dark .header-inner,
html.dark .card,
html.dark .glass,
html.dark .signal-card,
html.dark .stat-card,
html.dark .result-card,
html.dark .chart-box,
html.dark .profile-block,
html.dark .auth-card,
html.dark .modal,
html.dark .form-card {
  background: #0d1b2e;
  border-color: rgba(54, 135, 255, .18);
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
  color: #e7f0ff;
}
html.dark .brand b,
html.dark .page-title,
html.dark .pair-name,
html.dark .section-title,
html.dark .auth-title,
html.dark .profile-block h2 { color: #e7f0ff; }
html.dark .brand span,
html.dark .page-desc,
html.dark .pair-meta,
html.dark .text-muted,
html.dark .label span,
html.dark .auth-sub,
html.dark .profile-block .desc,
html.dark .footer { color: #8aa0c0; }
html.dark .nav-btn { color: #8aa0c0; }
html.dark .nav-btn:hover { background: #12253f; color: #7eb6ff; }
html.dark .nav-btn.active { background: var(--blue); color: #fff; }
html.dark .icon-btn { background: #12253f; color: #7eb6ff; }
html.dark .kind-tabs button {
  background: #0d1b2e; border-color: rgba(54,135,255,.2); color: #8aa0c0;
}
html.dark .kind-tabs button.active { background: var(--blue); color: #fff; }
html.dark .input, html.dark .select, html.dark .textarea {
  background: #0a1526; border-color: #1a3965; color: #e7f0ff;
}
html.dark .input:focus, html.dark .select:focus, html.dark .textarea:focus {
  background: #0d1b2e; border-color: var(--blue);
}
html.dark .chip-blue { background: #12253f; color: #7eb6ff; }
html.dark .chip-green { background: #0a2e22; color: #34d399; }
html.dark .chip-red { background: #2e1218; color: #fb7185; }
html.dark .chip-amber { background: #2e220a; color: #fbbf24; }
html.dark .signal-foot { background: #12253f; color: #8aa0c0; }
html.dark .empty { background: #0a1526; border-color: #1a3965; color: #8aa0c0; }
html.dark .plan-btn { background: #0a1526; border-color: #1a3965; color: #e7f0ff; }
html.dark .plan-btn.hot { background: #2e220a; border-color: #5c4a12; }
html.dark .auth-tabs { background: #12253f; }
html.dark .mobile-nav {
  background: rgba(10,23,42,.96); border-color: rgba(54,135,255,.15);
}
html.dark .mobile-nav button.active { background: #12253f; color: #7eb6ff; }
html.dark .best-banner { background: #0a2e22; border-color: #14532d; color: #34d399; }
html.dark .result-card .bar { background: #0a2e22; color: #34d399; }
html.dark .result-card .bar.stop { background: #2e1218; color: #fb7185; }
html.dark .notice-ok { background: #0a2e22; color: #34d399; }
html.dark .notice-err { background: #2e1218; color: #fb7185; }
html.dark .notice-warn { background: #2e220a; color: #fbbf24; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(.94); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes slidePanel {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slidePanelLeft {
  from { opacity: 0; transform: translateX(-24px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes popIn {
  0% { opacity: 0; transform: translateY(24px) scale(.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes backdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.anim-page > * {
  animation: fadeUp .45s cubic-bezier(.22,1,.36,1) both;
}
.anim-page > *:nth-child(1) { animation-delay: .02s; }
.anim-page > *:nth-child(2) { animation-delay: .08s; }
.anim-page > *:nth-child(3) { animation-delay: .14s; }
.anim-page > *:nth-child(4) { animation-delay: .2s; }
.anim-page > *:nth-child(5) { animation-delay: .26s; }
.anim-page > *:nth-child(6) { animation-delay: .32s; }

.signals-grid > *,
.stats-row > *,
.profile-grid > *,
.exchange-grid > * {
  animation: fadeUp .5s cubic-bezier(.22,1,.36,1) both;
}
.signals-grid > *:nth-child(1), .stats-row > *:nth-child(1) { animation-delay: .05s; }
.signals-grid > *:nth-child(2), .stats-row > *:nth-child(2) { animation-delay: .1s; }
.signals-grid > *:nth-child(3), .stats-row > *:nth-child(3) { animation-delay: .15s; }
.signals-grid > *:nth-child(4), .stats-row > *:nth-child(4) { animation-delay: .2s; }

.nav-btn, .kind-tabs button, .btn, .plan-btn, .icon-btn {
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.nav-btn:active, .btn:active, .plan-btn:active, .icon-btn:active {
  transform: scale(.96);
}
.signal-card, .stat-card, .result-card, .profile-block, .card {
  transition: transform .25s ease, box-shadow .25s ease;
}
.signal-card:hover, .stat-card:hover, .result-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(11,95,255,.12);
}
html.dark .signal-card:hover, html.dark .stat-card:hover {
  box-shadow: 0 16px 40px rgba(0,0,0,.4);
}

.auth-panel.is-visible {
  animation: slidePanel .42s cubic-bezier(.22,1,.36,1) both;
}
.auth-panel.is-visible.from-left {
  animation: slidePanelLeft .42s cubic-bezier(.22,1,.36,1) both;
}
.auth-tabs button {
  transition: all .35s cubic-bezier(.22,1,.36,1);
}

.popup-bg {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(7,27,62,.45);
  animation: backdropIn .25s ease both;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 4.5rem 1rem 1rem;
}
.popup-panel {
  width: 100%; max-width: 24rem;
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 24px 60px rgba(11,95,255,.18);
  border: 1px solid rgba(11,95,255,.08);
  overflow: hidden;
  animation: popIn .35s cubic-bezier(.22,1,.36,1) both;
}
html.dark .popup-panel {
  background: #0d1b2e;
  border-color: rgba(54,135,255,.2);
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.popup-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.15rem; border-bottom: 1px solid var(--line);
}
html.dark .popup-head { border-color: rgba(54,135,255,.15); }
.popup-head h3 {
  margin: 0; font-size: 1rem; font-weight: 900;
  display: flex; align-items: center; gap: .4rem;
}
.popup-body { max-height: 22rem; overflow-y: auto; padding: .75rem; }
.notice-item {
  padding: .9rem 1rem; border-radius: 1rem; margin-bottom: .5rem;
  background: #f5f9ff; border: 1px solid #e4eefb;
  animation: fadeUp .35s ease both;
}
html.dark .notice-item {
  background: #12253f; border-color: rgba(54,135,255,.15);
}
.notice-item .t { font-weight: 800; font-size: .88rem; }
.notice-item .m { margin-top: .3rem; font-size: .78rem; color: var(--muted); line-height: 1.7; }
.notice-item.unread { border-color: #0b5fff; background: #eef4ff; }
html.dark .notice-item.unread { background: #0f2744; border-color: #0b5fff; }

.modal-bg { animation: backdropIn .25s ease both; }
.modal { animation: popIn .38s cubic-bezier(.22,1,.36,1) both; }

.link-btn {
  background: none; border: none; color: var(--blue);
  font-weight: 800; font-size: .8rem; cursor: pointer; padding: 0;
}
.link-btn:hover { text-decoration: underline; }

.theme-transition,
.theme-transition * {
  transition: background-color .35s ease, color .25s ease, border-color .35s ease !important;
}

.kind-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem;
  margin: 1.15rem 0 1rem;
  width: 100%;
}
@media (min-width: 640px) {
  .kind-tabs { grid-template-columns: repeat(4, 1fr); }
}
.kind-tabs button {
  width: 100%;
  justify-content: center;
  min-height: 2.85rem;
}

.lock-section {
  position: relative;
  margin: 1.25rem 0;
  border-radius: 1.75rem;
  padding: 2rem 1.5rem;
  overflow: hidden;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #0b5fff 0%, #5b21b6 50%, #05358f 100%);
  box-shadow: 0 20px 50px rgba(91, 33, 182, .3);
  animation: lockPulse 4s ease-in-out infinite;
}
@keyframes lockPulse {
  0%, 100% { box-shadow: 0 20px 50px rgba(91, 33, 182, .28); }
  50% { box-shadow: 0 24px 60px rgba(11, 95, 255, .4); }
}
.lock-section::before {
  content: '';
  position: absolute; inset: -40%;
  background: conic-gradient(from 0deg, transparent, rgba(255,255,255,.12), transparent 30%);
  animation: spinGlow 8s linear infinite;
}
@keyframes spinGlow {
  to { transform: rotate(360deg); }
}
.lock-inner { position: relative; z-index: 1; }
.lock-icon-wrap {
  width: 4.5rem; height: 4.5rem; margin: 0 auto 1rem;
  border-radius: 1.35rem;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
  animation: floatLock 2.8s ease-in-out infinite;
}
@keyframes floatLock {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.lock-icon-wrap svg { width: 2rem; height: 2rem; color: #fff; }
.lock-section h3 {
  margin: 0; font-size: 1.35rem; font-weight: 900;
}
.lock-section p {
  margin: .65rem auto 0; max-width: 26rem;
  font-size: .9rem; line-height: 1.85; opacity: .92;
}
.lock-features {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem;
  margin-top: 1.15rem;
}
.lock-features span {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px; padding: .4rem .9rem;
  font-size: .78rem; font-weight: 700;
  animation: fadeUp .5s ease both;
}
.lock-section .btn {
  margin-top: 1.25rem;
  animation: fadeUp .6s ease .15s both;
}

body {
  background:
    radial-gradient(ellipse 80% 50% at 100% -10%, rgba(11,95,255,.12), transparent 50%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(91,33,182,.08), transparent 45%),
    linear-gradient(180deg, #f7faff 0%, #eaf1ff 55%, #f5f8ff 100%);
  -webkit-font-smoothing: antialiased;
}

html.dark body {
  background:
    radial-gradient(ellipse 80% 50% at 100% -10%, rgba(11,95,255,.18), transparent 50%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(91,33,182,.12), transparent 45%),
    linear-gradient(180deg, #060d18 0%, #0a172a 55%, #071222 100%);
}

.header-inner {
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow:
    0 4px 24px rgba(11,95,255,.07),
    0 1px 0 rgba(255,255,255,.8) inset;
}
html.dark .header-inner {
  background: rgba(13,27,46,.85);
  border-color: rgba(54,135,255,.15);
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
}

.nav-btn {
  letter-spacing: -.01em;
}
.nav-btn.active {
  box-shadow:
    0 8px 24px rgba(11,95,255,.32),
    0 0 0 1px rgba(255,255,255,.12) inset;
}

.icon-btn {
  background: linear-gradient(145deg, #f5f9ff, #e8f0ff);
  box-shadow: 0 2px 8px rgba(11,95,255,.06);
}
.icon-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(11,95,255,.12);
}
html.dark .icon-btn {
  background: linear-gradient(145deg, #152a44, #0f2038);
}

.card, .glass, .signal-card, .stat-card, .result-card,
.chart-box, .profile-block, .auth-card, .form-card {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(11,95,255,.07);
  box-shadow:
    0 4px 6px rgba(11,95,255,.03),
    0 12px 32px rgba(11,95,255,.07),
    0 1px 0 rgba(255,255,255,.9) inset;
}
html.dark .card,
html.dark .glass,
html.dark .signal-card,
html.dark .stat-card,
html.dark .result-card,
html.dark .chart-box,
html.dark .profile-block,
html.dark .auth-card,
html.dark .form-card {
  background: rgba(13,27,46,.92);
  border-color: rgba(54,135,255,.14);
  box-shadow: 0 12px 36px rgba(0,0,0,.35), 0 1px 0 rgba(255,255,255,.04) inset;
}

.signal-card:hover, .stat-card:hover, .result-card:hover, .plan-btn:hover {
  transform: translateY(-4px);
  box-shadow:
    0 8px 16px rgba(11,95,255,.06),
    0 20px 48px rgba(11,95,255,.12);
}

.hero {
  background:
    radial-gradient(circle at 90% 20%, rgba(255,255,255,.18), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(91,33,182,.35), transparent 45%),
    linear-gradient(135deg, #1a6bff 0%, #0b5fff 35%, #0747c2 70%, #05358f 100%);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow:
    0 20px 50px rgba(7,71,194,.32),
    0 0 0 1px rgba(255,255,255,.06) inset;
}
.hero h1 {
  text-shadow: 0 2px 20px rgba(0,0,0,.15);
  letter-spacing: -.03em;
}

.journal-side, .exchange-box, .profile-hero {
  background:
    radial-gradient(circle at 85% 15%, rgba(255,255,255,.16), transparent 40%),
    linear-gradient(145deg, #1a6bff 0%, #0b5fff 40%, #5b21b6 100%);
  border: 1px solid rgba(255,255,255,.1);
}

.btn-primary {
  background: linear-gradient(135deg, #2b7fff, #0b5fff 50%, #0747c2);
  box-shadow:
    0 8px 24px rgba(11,95,255,.3),
    0 1px 0 rgba(255,255,255,.2) inset;
}
.btn-primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 12px 28px rgba(11,95,255,.38);
}
.btn-white {
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
}
.btn-ghost {
  background: linear-gradient(145deg, #f5f9ff, #eaf1ff);
}

.kind-tabs button {
  background: rgba(255,255,255,.9);
  box-shadow: 0 2px 10px rgba(11,95,255,.05);
}
.kind-tabs button.active {
  background: linear-gradient(135deg, #2b7fff, #0b5fff);
  box-shadow: 0 10px 28px rgba(11,95,255,.3);
}
html.dark .kind-tabs button {
  background: rgba(13,27,46,.9);
}

.input, .select, .textarea {
  background: rgba(251,252,255,.95);
  border: 1.5px solid #dce8f8;
  box-shadow: 0 1px 2px rgba(11,95,255,.03) inset;
  transition: border-color .2s, box-shadow .2s, background .2s, transform .15s;
}
.input:hover, .select:hover, .textarea:hover {
  border-color: #b8d0f0;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: #0b5fff;
  box-shadow:
    0 0 0 4px rgba(11,95,255,.14),
    0 2px 8px rgba(11,95,255,.06);
  transform: translateY(-1px);
}

.pair-badge {
  background: linear-gradient(145deg, #2b7fff, #0b5fff);
  box-shadow: 0 6px 16px rgba(11,95,255,.28);
}

.page-title {
  letter-spacing: -.035em;
  background: linear-gradient(135deg, #0f274f 0%, #0b5fff 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html.dark .page-title {
  background: linear-gradient(135deg, #e7f0ff 0%, #7eb6ff 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-eyebrow {
  letter-spacing: .02em;
}

.stat-card .v {
  letter-spacing: -.02em;
}

.chart-box {
  position: relative;
}
.chart-box::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 40%;
  background: linear-gradient(to top, rgba(11,95,255,.04), transparent);
  pointer-events: none; border-radius: 0 0 1.5rem 1.5rem;
}

.signal-foot {
  background: linear-gradient(90deg, #f0f6ff, #f5f9ff);
  border: 1px solid rgba(11,95,255,.06);
}
html.dark .signal-foot {
  background: linear-gradient(90deg, #12253f, #0f2038);
}

.auth-card {
  box-shadow:
    0 8px 16px rgba(11,95,255,.05),
    0 24px 56px rgba(11,95,255,.12);
}
.auth-tabs {
  background: linear-gradient(145deg, #eef4ff, #e4edff);
}
html.dark .auth-tabs {
  background: linear-gradient(145deg, #12253f, #0f2038);
}

.lock-section {
  background:
    radial-gradient(circle at 70% 30%, rgba(255,255,255,.2), transparent 35%),
    linear-gradient(135deg, #1a6bff 0%, #5b21b6 45%, #05358f 100%);
  border: 1px solid rgba(255,255,255,.15);
}

.popup-panel, .modal {
  box-shadow:
    0 8px 16px rgba(0,0,0,.08),
    0 28px 64px rgba(11,95,255,.18);
  border: 1px solid rgba(255,255,255,.5);
}
html.dark .popup-panel, html.dark .modal {
  border-color: rgba(54,135,255,.2);
}

.footer {
  background: rgba(255,255,255,.5);
  backdrop-filter: blur(8px);
}
html.dark .footer {
  background: rgba(7,18,34,.6);
}

.mobile-nav {
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: 0 -8px 32px rgba(11,95,255,.08);
}
html.dark .mobile-nav {
  background: rgba(10,23,42,.9);
  box-shadow: 0 -8px 32px rgba(0,0,0,.4);
}

.best-banner {
  background: linear-gradient(105deg, #ecfdf5, #f0fdf4 40%, #eff6ff);
  box-shadow: 0 2px 12px rgba(16,185,129,.08);
}
html.dark .best-banner {
  background: linear-gradient(105deg, #0a2e22, #0f2744);
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(11,95,255,.25);
  border-radius: 999px;
}
html.dark ::-webkit-scrollbar-thumb {
  background: rgba(126,182,255,.25);
}

::selection {
  background: rgba(11,95,255,.2);
  color: #0f274f;
}

.lock-section {
  position: relative;
  margin: 1.25rem 0;
  border-radius: 1.75rem;
  padding: 2rem 1.5rem;
  overflow: hidden;
  text-align: center;
  color: var(--text);
  background: #ffffff;
  border: 1.5px solid rgba(11,95,255,.14);
  box-shadow: 0 16px 40px rgba(11,95,255,.08);
  animation: none;
}
.lock-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(11,95,255,.06), transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(91,33,182,.05), transparent 40%);
  animation: none;
  pointer-events: none;
}
html.dark .lock-section {
  background: #0a0f18;
  color: #e7f0ff;
  border-color: rgba(54,135,255,.22);
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
}
html.dark .lock-section::before {
  background:
    radial-gradient(circle at 80% 20%, rgba(11,95,255,.12), transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(91,33,182,.1), transparent 40%);
}
.lock-inner { position: relative; z-index: 1; }
.lock-icon-wrap {
  width: 4.5rem; height: 4.5rem; margin: 0 auto 1rem;
  border-radius: 1.35rem;
  background: linear-gradient(145deg, #eef4ff, #e0ebff);
  border: 1px solid rgba(11,95,255,.15);
  display: flex; align-items: center; justify-content: center;
  animation: floatLock 2.8s ease-in-out infinite;
  box-shadow: 0 8px 24px rgba(11,95,255,.1);
}
html.dark .lock-icon-wrap {
  background: linear-gradient(145deg, #152a44, #0f2038);
  border-color: rgba(54,135,255,.25);
}
.lock-icon-wrap svg { width: 2rem; height: 2rem; color: #0b5fff; }
html.dark .lock-icon-wrap svg { color: #7eb6ff; }
.lock-section h3 {
  margin: 0; font-size: 1.35rem; font-weight: 900; color: inherit;
}
.lock-section p {
  margin: .65rem auto 0; max-width: 26rem;
  font-size: .9rem; line-height: 1.85; color: var(--muted);
}
html.dark .lock-section p { color: #8aa0c0; }
.lock-features {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem;
  margin-top: 1.15rem;
}
.lock-features span {
  background: #f5f9ff;
  border: 1px solid rgba(11,95,255,.12);
  border-radius: 999px; padding: .4rem .9rem;
  font-size: .78rem; font-weight: 700; color: #0b5fff;
}
html.dark .lock-features span {
  background: #12253f;
  border-color: rgba(54,135,255,.2);
  color: #7eb6ff;
}
.lock-section .btn-white,
.lock-section .btn-primary {
  margin-top: 1.25rem;
  background: linear-gradient(135deg, #2b7fff, #0b5fff);
  color: #fff;
  box-shadow: 0 8px 24px rgba(11,95,255,.28);
}

.dash-grid {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .dash-grid.cols-2 { grid-template-columns: 1fr 1fr; }
  .dash-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .dash-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
}
.dash-kpi {
  position: relative; overflow: hidden;
  border-radius: 1.35rem; padding: 1.15rem 1.2rem;
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(11,95,255,.08);
  box-shadow: 0 10px 28px rgba(11,95,255,.07);
}
html.dark .dash-kpi {
  background: rgba(13,27,46,.95);
  border-color: rgba(54,135,255,.16);
}
.dash-kpi .ico {
  width: 2.6rem; height: 2.6rem; border-radius: .9rem;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #eef4ff, #e0ebff);
  color: #0b5fff; margin-bottom: .75rem;
}
html.dark .dash-kpi .ico {
  background: #12253f; color: #7eb6ff;
}
.dash-kpi .lbl { font-size: .75rem; font-weight: 700; color: var(--muted); }
.dash-kpi .num { margin-top: .25rem; font-size: 1.35rem; font-weight: 900; letter-spacing: -.02em; }
.dash-kpi .sub { margin-top: .35rem; font-size: .72rem; color: var(--muted); }

.timeline { display: grid; gap: .65rem; }
.timeline-item {
  display: flex; gap: .85rem; padding: .85rem 1rem;
  border-radius: 1rem; background: #f8faff;
  border: 1px solid rgba(11,95,255,.06);
}
html.dark .timeline-item {
  background: #0f1c2e; border-color: rgba(54,135,255,.12);
}
.timeline-dot {
  width: .65rem; height: .65rem; margin-top: .35rem;
  border-radius: 999px; background: #0b5fff; flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(11,95,255,.15);
}

.admin-shell { max-width: 72rem; margin: 0 auto; }
.admin-top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.25rem;
}
.admin-top h1 { margin: 0; font-size: 1.4rem; font-weight: 900; }

.udash {
  display: grid;
  gap: .85rem;
  margin-top: .85rem;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 900px) {
  .udash {
    grid-template-columns: 13.5rem minmax(0, 1fr);
    gap: 1.1rem;
  }
}

.udash-side {
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(11,95,255,.08);
  border-radius: 1.35rem;
  padding: .55rem;
  box-shadow: 0 10px 28px rgba(11,95,255,.07);
  position: sticky;
  top: 4.75rem;
  z-index: 5;
}
html.dark .udash-side {
  background: rgba(13,27,46,.95);
  border-color: rgba(54,135,255,.16);
}
.udash-side-nav {
  display: flex;
  flex-direction: row;
  gap: .3rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: .1rem;
}
.udash-side-nav::-webkit-scrollbar { display: none; }
@media (min-width: 900px) {
  .udash-side-nav {
    flex-direction: column;
    overflow: visible;
  }
}
.udash-nav-btn {
  display: flex;
  align-items: center;
  gap: .45rem;
  min-height: 2.55rem;
  padding: 0 .85rem;
  border-radius: 1rem;
  font-size: .78rem;
  font-weight: 800;
  color: #5b7294;
  white-space: nowrap;
  flex-shrink: 0;
  transition: .2s ease;
}
.udash-nav-btn:hover { background: #f3f7ff; color: #0b5fff; }
.udash-nav-btn.active {
  background: linear-gradient(135deg, #2b7fff, #0b5fff);
  color: #fff;
  box-shadow: 0 8px 20px rgba(11,95,255,.28);
}
html.dark .udash-nav-btn { color: #8aa0c0; }
html.dark .udash-nav-btn:hover { background: #12253f; color: #7eb6ff; }
html.dark .udash-nav-btn.active { color: #fff; }
.udash-nav-btn svg { width: 1.05rem; height: 1.05rem; flex-shrink: 0; }

.udash-main {
  min-width: 0;
  animation: fadeUp .35s cubic-bezier(.22,1,.36,1) both;
}
.udash-panel { min-width: 0; }
.udash-section-head { margin-bottom: .9rem; }

.udash-welcome {
  border-radius: 1.55rem;
  padding: 1.15rem 1.2rem;
  color: #fff;
  background: linear-gradient(135deg, #0b5fff 0%, #0747c2 48%, #05358f 100%);
  box-shadow: 0 16px 40px rgba(7,71,194,.28);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .85rem;
  flex-wrap: wrap;
}
.udash-welcome h1 {
  margin: .15rem 0 0;
  font-size: clamp(1.1rem, 3.5vw, 1.3rem);
  font-weight: 900;
  word-break: break-word;
}
.udash-welcome .avatar {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 1rem;
  background: rgba(255,255,255,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.udash-welcome .avatar svg { width: 1.45rem; height: 1.45rem; color: #fff; }
.udash-welcome .btn {
  background: rgba(255,255,255,.16);
  color: #fff;
  border: 1px solid rgba(255,255,255,.22);
  min-height: 2.5rem;
  flex-shrink: 0;
}
.udash-welcome .btn:hover { background: rgba(255,255,255,.24); }

.udash-kpi-row {
  display: grid;
  gap: .65rem;
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 700px) {
  .udash-kpi-row { grid-template-columns: repeat(3, 1fr); gap: .75rem; }
}

.dash-kpi {
  position: relative;
  overflow: hidden;
  border-radius: 1.35rem;
  padding: 1rem .9rem;
  background: rgba(255,255,255,.97);
  border: 1px solid rgba(11,95,255,.08);
  box-shadow: 0 10px 28px rgba(11,95,255,.07);
  min-width: 0;
}
html.dark .dash-kpi {
  background: rgba(13,27,46,.95);
  border-color: rgba(54,135,255,.14);
}
.dash-kpi .ico {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: .8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .55rem;
  background: #eef4ff;
  color: #0b5fff;
}
.dash-kpi .ico.blue { background: #eef4ff; color: #0b5fff; }
.dash-kpi .ico.green { background: #ecfdf5; color: #059669; }
.dash-kpi .ico.amber { background: #fffbeb; color: #d97706; }
.dash-kpi .ico.purple { background: #f5f3ff; color: #7c3aed; }
html.dark .dash-kpi .ico.blue { background: #12253f; color: #7eb6ff; }
html.dark .dash-kpi .ico.green { background: #0a2e22; color: #34d399; }
html.dark .dash-kpi .ico.amber { background: #2e220a; color: #fbbf24; }
html.dark .dash-kpi .ico.purple { background: #1e1535; color: #a78bfa; }
.dash-kpi .lbl {
  font-size: .68rem;
  font-weight: 700;
  color: var(--muted);
}
.dash-kpi .num {
  margin-top: .2rem;
  font-size: clamp(1.05rem, 3.8vw, 1.35rem);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.25;
  word-break: break-word;
}
.dash-kpi .sub {
  margin-top: .3rem;
  font-size: .7rem;
  color: var(--muted);
  line-height: 1.5;
}

.udash-sub-card { border-radius: 1.4rem; }
.udash-sub-info { min-width: 0; flex: 1; }
.ring-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.ring {
  width: 5.25rem;
  height: 5.25rem;
  border-radius: 50%;
  background: conic-gradient(#0b5fff var(--p, 0%), #e8eef8 0);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
html.dark .ring { background: conic-gradient(#2b7fff var(--p, 0%), #1a2d45 0); }
.ring-inner {
  width: 3.95rem;
  height: 3.95rem;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: .92rem;
  color: #0b5fff;
}
html.dark .ring-inner { background: #0d1b2e; color: #7eb6ff; }

.quick-actions {
  display: grid;
  gap: .55rem;
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 560px) {
  .quick-actions { grid-template-columns: repeat(4, 1fr); }
}
.quick-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 4.75rem;
  padding: .75rem .5rem;
  border-radius: 1.15rem;
  background: #f8faff;
  border: 1px solid rgba(11,95,255,.08);
  font-size: .72rem;
  font-weight: 800;
  color: #0f274f;
  transition: .2s ease;
}
.quick-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(11,95,255,.2);
  box-shadow: 0 10px 24px rgba(11,95,255,.1);
}
html.dark .quick-btn {
  background: #0f1c2e;
  color: #e7f0ff;
  border-color: rgba(54,135,255,.14);
}
.quick-btn .qi {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: .75rem;
  background: linear-gradient(145deg, #eef4ff, #e0ebff);
  color: #0b5fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
html.dark .quick-btn .qi { background: #12253f; color: #7eb6ff; }
.quick-btn .qi svg { width: 1.1rem; height: 1.1rem; }

.udash-empty-hint {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: 1.25rem;
  border: 1.5px dashed #d5e4f7;
  color: var(--muted);
  font-size: .875rem;
}
html.dark .udash-empty-hint { border-color: #1a3965; }

.profile-page {
  padding-bottom: .5rem;
  max-width: 100%;
  min-width: 0;
}
.profile-page .udash-panel .label,
.profile-page .profile-block .label {
  width: 100%;
}
.profile-page .input,
.profile-page .textarea,
.profile-page select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-size: 16px;
}
.profile-page .plan-btn,
.profile-page .plan-btn-inline {
  width: 100%;
  max-width: 100%;
}
.profile-page .ticket-card,
.profile-page .card,
.profile-page .glass,
.profile-page .profile-block {
  max-width: 100%;
  box-sizing: border-box;
}
.profile-page .flex { flex-wrap: wrap; }
.auth-shell {
  width: 100%;
  max-width: 26rem;
  margin: 1rem auto 0;
}
.auth-card {
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 560px) {
  .udash-welcome {
    padding: 1rem 1.05rem;
    border-radius: 1.35rem;
  }
  .udash-welcome .btn { width: 100%; }
  .ring-wrap { gap: .85rem; }
  .udash-sub-info .btn { width: 100%; }
  .profile-page .btn-block { width: 100%; }
}

.signal-card {
  display: flex;
  flex-direction: column;
  padding: 1.15rem 1.2rem 1rem;
}
.signal-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid rgba(11,95,255,.07);
}
html.dark .signal-top { border-color: rgba(54,135,255,.12); }
.signal-top-right {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-align: right;
}
.signal-pair-block { text-align: right; }
.signal-pair-name {
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: -.02em;
  color: var(--text);
}
html.dark .signal-pair-name { color: #e7f0ff; }
.signal-pub {
  margin-top: .25rem;
  font-size: .72rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .3rem;
  justify-content: flex-end;
}
.signal-side-chip {
  border-radius: 999px;
  padding: .28rem .75rem;
  font-size: .72rem;
  font-weight: 800;
  background: #eef4ff;
  color: #0b5fff;
  border: 1px solid rgba(11,95,255,.12);
}
html.dark .signal-side-chip {
  background: #12253f;
  color: #7eb6ff;
  border-color: rgba(54,135,255,.2);
}
.signal-details-link {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .3rem;
  margin-top: .85rem;
  font-size: .8rem;
  font-weight: 800;
  color: #0b5fff;
}
html.dark .signal-details-link { color: #7eb6ff; }
.signal-grid-4 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
  margin-top: .85rem;
}
.signal-cell { text-align: right; }
.signal-cell .lbl {
  font-size: .72rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: .3rem;
}
.signal-cell .val {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -.02em;
  direction: ltr;
  unicode-bidi: plaintext;
}
html.dark .signal-cell .val { color: #e7f0ff; }
.signal-cell .val.stop {
  color: #e11d48;
}
.signal-cell .val.risk {
  font-size: .95rem;
  direction: rtl;
}
.signal-duration {
  margin-top: 1rem;
  padding: .65rem 1rem;
  border-radius: 999px;
  background: #f3f7ff;
  color: #5b7294;
  font-size: .78rem;
  font-weight: 700;
  text-align: center;
}
html.dark .signal-duration {
  background: #12253f;
  color: #8aa0c0;
}
.signal-tip-row {
  margin-top: .55rem;
  font-size: .72rem;
  color: #94a3b8;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .3rem;
}
.section-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1.25rem 0 .85rem;
}

.auth-panels {
  position: relative;
  overflow: hidden;
  min-height: 24rem;
}
.auth-panel {
  padding: 1.2rem 1.3rem 1.5rem;
  transition: opacity .38s ease, transform .42s cubic-bezier(.22,1,.36,1);
}
.auth-panel.is-visible {
  position: relative;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  animation: authFadeIn .4s cubic-bezier(.22,1,.36,1) both;
}
.auth-panel.is-hidden {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(.98);
  animation: authFadeOut .28s ease both;
}
@keyframes authFadeIn {
  from { opacity: 0; transform: translateY(14px) scale(.97); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes authFadeOut {
  from { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
  to { opacity: 0; transform: translateY(-10px) scale(.98); filter: blur(3px); }
}

.adm-body-page { min-height: 100%; }
.adm-app { min-height: 100vh; display: flex; flex-direction: column; }
.adm-logo-mark {
  width: 2.5rem; height: 2.5rem; border-radius: .9rem;
  background: linear-gradient(135deg, #2b7fff, #0b5fff);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(11,95,255,.3); flex-shrink: 0;
}
.adm-logo-mark svg { width: 1.15rem; height: 1.15rem; }
.adm-login-wrap {
  width: min(100%, 26rem);
  margin: 1rem auto 2rem;
  padding: 0 1rem;
}
.adm-login-hero h1 { font-size: 1.35rem; }
.adm-login-card { border-radius: 1.5rem; }
.adm-main {
  width: min(100%, 80rem);
  margin: 0 auto;
  padding: .5rem 1rem calc(5.5rem + env(safe-area-inset-bottom));
  animation: fadeUp .35s cubic-bezier(.22,1,.36,1) both;
}
@media (min-width: 900px) {
  .adm-main { padding-bottom: 2rem; }
}
.adm-desktop-tabs {
  display: none;
  width: min(100%, 80rem);
  margin: .35rem auto 0;
  padding: 0 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  flex-wrap: nowrap;
}
@media (min-width: 900px) {
  .adm-desktop-tabs { display: flex; }
}
.adm-desktop-tabs button {
  flex-shrink: 0;
}
.adm-mobile-nav { z-index: 35; }
@media (min-width: 900px) {
  .adm-mobile-nav { display: none !important; }
}
.adm-more-sheet {
  max-width: 28rem;
  border-radius: 1.75rem 1.75rem 0 0;
  padding: 1.15rem 1.15rem calc(1.15rem + env(safe-area-inset-bottom));
}
@media (min-width: 640px) {
  .adm-more-sheet { border-radius: 1.75rem; }
}
.adm-more-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
}
@media (min-width: 480px) {
  .adm-more-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.adm-more-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .45rem; min-height: 5.2rem; padding: .75rem .5rem;
  border-radius: 1.15rem; font-size: .78rem; font-weight: 800; color: #5b7294;
  background: #f3f7ff; border: 1px solid transparent;
}
.adm-more-item.active {
  background: #eef4ff; color: var(--blue); border-color: rgba(11,95,255,.2);
}
html.dark .adm-more-item { background: #12253f; color: #8aa0c0; }
html.dark .adm-more-item.active { background: #0f274f; color: #7eb6ff; }
.adm-more-ico {
  width: 2.4rem; height: 2.4rem; border-radius: .85rem;
  display: flex; align-items: center; justify-content: center;
  background: #fff; color: var(--blue);
  box-shadow: 0 4px 12px rgba(11,95,255,.1);
}
html.dark .adm-more-ico { background: #0a172a; }
.adm-more-ico svg { width: 1.1rem; height: 1.1rem; }

.adm-kpi-grid {
  display: grid; gap: .75rem;
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 700px) {
  .adm-kpi-grid { grid-template-columns: repeat(4, 1fr); }
}
.adm-kpi {
  position: relative; overflow: hidden;
  border-radius: 1.35rem; padding: 1rem;
  background: var(--card);
  border: 1px solid rgba(11,95,255,.08);
  box-shadow: var(--shadow);
}
.adm-kpi .ico {
  width: 2.35rem; height: 2.35rem; border-radius: .8rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .55rem;
}
.adm-kpi .ico.blue { background: #eef4ff; color: #0b5fff; }
.adm-kpi .ico.green { background: #ecfdf5; color: #059669; }
.adm-kpi .ico.amber { background: #fffbeb; color: #d97706; }
.adm-kpi .ico.purple { background: #f5f3ff; color: #7c3aed; }
html.dark .adm-kpi .ico.blue { background: #12253f; color: #7eb6ff; }
html.dark .adm-kpi .ico.green { background: #0a2e22; color: #34d399; }
html.dark .adm-kpi .ico.amber { background: #2e220a; color: #fbbf24; }
html.dark .adm-kpi .ico.purple { background: #1e1535; color: #a78bfa; }
.adm-kpi .lbl { font-size: .7rem; font-weight: 700; color: var(--muted); }
.adm-kpi .num { margin-top: .15rem; font-size: 1.3rem; font-weight: 900; letter-spacing: -.02em; }

.adm-panel-title {
  margin: 0 0 .85rem;
  font-size: 1.15rem; font-weight: 900;
  display: flex; align-items: center; gap: .4rem;
}

.adm-footer { padding-bottom: calc(.75rem + env(safe-area-inset-bottom)); }
@media (max-width: 899px) {
  .adm-app .footer { margin-bottom: 4.25rem; }
}

#btnAdmNotices, #btnLogoutAdmin, #btnAdmTheme { position: relative; }
#admNoticeDot.badge-dot {
  position: absolute; top: .35rem; left: .35rem;
  width: .55rem; height: .55rem; border-radius: 999px;
  background: #ef4444; border: 2px solid #fff;
}
html.dark #admNoticeDot.badge-dot { border-color: #0d1b2e; }

.adm-notif-drawer {
  position: fixed; top: 0; bottom: 0; z-index: 55;
  width: min(100%, 22rem); max-width: 100%;
  background: var(--card);
  box-shadow: -12px 0 40px rgba(7,27,62,.18);
  transform: translateX(110%);
  transition: transform .28s cubic-bezier(.22,1,.36,1);
  display: flex; flex-direction: column;
  inset-inline-start: auto; inset-inline-end: 0;
}
.adm-notif-drawer.open { transform: translateX(0); }
.adm-notif-backdrop {
  position: fixed; inset: 0; z-index: 54;
  background: rgba(7,27,62,.45);
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.adm-notif-backdrop.open { opacity: 1; pointer-events: auto; }
.adm-notif-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1rem .75rem;
  border-bottom: 1px solid var(--line);
}
.adm-notif-drawer-body {
  flex: 1; overflow: auto; padding: .85rem 1rem 1.25rem;
  -webkit-overflow-scrolling: touch;
}
.adm-notif-section { margin-bottom: 1.1rem; }
.adm-notif-sec-title {
  display: flex; align-items: center; gap: .4rem;
  font-size: .78rem; font-weight: 900; margin-bottom: .5rem;
}
.adm-notif-item {
  width: 100%; text-align: right;
  padding: .7rem .8rem; border-radius: 1rem; margin-bottom: .4rem;
  background: #f3f7ff; border: 1px solid transparent;
}
.adm-notif-item:hover { border-color: rgba(11,95,255,.15); }
html.dark .adm-notif-item { background: #12253f; }

@media (max-width: 640px) {
  .adm-app .header-inner { padding: .55rem .7rem; border-radius: 1.15rem; }
  .adm-app .brand b { font-size: .88rem; }
  .adm-app .brand span { font-size: 9px; }
  .adm-kpi .num { font-size: 1.15rem; }
  .adm-app .table-wrap {
    margin-inline: 0;
    border-radius: 1.15rem;
    border: 1px solid rgba(11,95,255,.08);
    background: var(--card);
    -webkit-overflow-scrolling: touch;
  }
  .adm-app .table-wrap table { min-width: 560px; }
  .adm-app .grid-2 { grid-template-columns: 1fr; }
  .adm-app .flex.gap-2.wrap, .adm-app .flex.gap-2 {
    flex-wrap: wrap;
  }
  .adm-app .btn-block { width: 100%; }
  .set-layout { grid-template-columns: 1fr !important; }
  .set-nav { display: flex; flex-direction: row; overflow-x: auto; gap: .35rem; }
  .set-nav-btn { flex-shrink: 0; white-space: nowrap; }
}

.adm-app .input, .adm-app .textarea, .adm-app .select-modern {
  font-size: 16px;
}
.adm-app .btn { min-height: 2.75rem; }
.adm-app .btn-sm { min-height: 2.35rem; padding: 0 .85rem; font-size: .78rem; }

.grid-2 {
  display: grid;
  gap: .75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}
.grid-signals {
  display: grid;
  gap: .85rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .grid-signals { grid-template-columns: 1fr 1fr; }
}

.sig-form-rows { display: flex; flex-direction: column; gap: .85rem; }
.sig-row {
  display: grid;
  gap: .65rem;
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 900px) {
  .sig-row { grid-template-columns: repeat(6, 1fr); }
}
@media (min-width: 640px) and (max-width: 899px) {
  .sig-row { grid-template-columns: repeat(3, 1fr); }
}

.ticket-grid {
  display: grid;
  gap: .75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .ticket-grid { grid-template-columns: 1fr 1fr; }
}
.ticket-card {
  display: block; width: 100%; text-align: right;
  background: var(--card);
  border: 1px solid rgba(11,95,255,.1);
  border-radius: 1.15rem;
  padding: 1rem;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  box-shadow: 0 8px 22px rgba(11,95,255,.06);
  color: inherit; font: inherit;
}
.ticket-card:hover {
  transform: translateY(-2px);
  border-color: rgba(11,95,255,.28);
  box-shadow: 0 14px 32px rgba(11,95,255,.12);
}
html.dark .ticket-card {
  background: rgba(13,27,46,.95);
  border-color: rgba(54,135,255,.16);
}
.ticket-card-top {
  display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap;
}
.ticket-preview {
  margin: .65rem 0 0;
  font-size: .82rem;
  line-height: 1.7;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ticket-card-foot {
  margin-top: .75rem;
  display: flex; justify-content: space-between; align-items: center; gap: .5rem;
}

.chat-modal {
  max-width: 28rem !important;
  padding: 0 !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: min(86vh, 560px);
}
.chat-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid rgba(11,95,255,.08);
  background: linear-gradient(135deg, #eef4ff, #f8fbff);
}
html.dark .chat-head {
  background: linear-gradient(135deg, #12253f, #0d1b2e);
  border-color: rgba(54,135,255,.14);
}
.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  background: #f4f7fb;
}
html.dark .chat-body { background: #0a1524; }
.chat-bubble {
  max-width: 88%;
  padding: .75rem .9rem;
  border-radius: 1rem;
  font-size: .86rem;
  line-height: 1.7;
  animation: popIn .28s ease both;
}
.chat-bubble.user {
  align-self: flex-start;
  background: #fff;
  border: 1px solid rgba(11,95,255,.1);
  border-bottom-right-radius: .3rem;
}
.chat-bubble.admin {
  align-self: flex-end;
  background: #0b5fff;
  color: #fff;
  border-bottom-left-radius: .3rem;
}
html.dark .chat-bubble.user {
  background: #12253f;
  border-color: rgba(54,135,255,.16);
}
.chat-meta {
  font-size: 10px;
  font-weight: 700;
  opacity: .7;
  margin-bottom: .25rem;
}
.chat-empty {
  text-align: center;
  font-size: .8rem;
  color: var(--muted);
  padding: 1.5rem .5rem;
}
.chat-compose {
  padding: .85rem 1rem 1rem;
  border-top: 1px solid rgba(11,95,255,.08);
  background: var(--card);
}
html.dark .chat-compose { border-color: rgba(54,135,255,.14); }

.notice-item.notice-broadcast {
  border-color: #f59e0b;
  background: linear-gradient(135deg, #fffbeb, #fff7ed);
}
html.dark .notice-item.notice-broadcast {
  background: linear-gradient(135deg, #2e220a, #1f1808);
  border-color: #d97706;
}

.report-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .report-grid { grid-template-columns: 1fr 1fr; }
}
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: .45rem;
  min-height: 140px;
  padding: .5rem .15rem 0;
}
.chart-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  height: 140px;
}
.chart-bar-fill {
  width: 100%;
  max-width: 2.4rem;
  border-radius: .55rem .55rem .2rem .2rem;
  transition: height .35s ease;
}
.chart-bar-val {
  font-size: 11px;
  font-weight: 800;
  margin-top: .3rem;
}
.chart-bar-lbl {
  font-size: 10px;
  color: var(--muted);
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.chart-line {
  width: 100%;
  height: 160px;
  background: linear-gradient(180deg, rgba(11,95,255,.04), transparent);
  border-radius: .75rem;
}
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: .65rem;
  font-size: .75rem;
  font-weight: 700;
  color: var(--muted);
}
.chart-legend i {
  display: inline-block;
  width: .65rem;
  height: .65rem;
  border-radius: 50%;
  margin-left: .3rem;
  vertical-align: middle;
}

#adminOverlayRoot {
  position: relative;
  z-index: 9999;
}
.adm-modal-bg.modal-bg {
  position: fixed !important;
  inset: 0 !important;
  z-index: 10000 !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 1rem !important;
  background: rgba(7, 27, 62, 0.65) !important;
}
.adm-modal-bg .chat-modal,
.adm-modal-bg .modal {
  max-width: min(28rem, 100%) !important;
  max-height: min(88vh, 640px) !important;
  width: 100%;
  margin: 0 auto;
  border-radius: 1.35rem !important;
  display: flex;
  flex-direction: column;
}

.chip-red {
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
}
html.dark .chip-red {
  background: #2e1218;
  color: #fb7185;
  border-color: #7f1d1d;
}
.ticket-closed {
  opacity: 0.72;
}

html, body {
  direction: rtl;
  text-align: right;
}
[dir="ltr"] { direction: ltr; text-align: left; }
input[dir="ltr"], .input[dir="ltr"], [dir="ltr"].input {
  direction: ltr;
  text-align: left;
}

select.input,
.select-modern,
select {
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--card);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230b5fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left .85rem center;
  padding-left: 2.4rem !important;
  padding-right: .9rem !important;
  border-radius: 1rem;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color .25s ease, box-shadow .25s ease, transform .2s ease, background .25s ease;
}
select.input:hover,
.select-modern:hover {
  border-color: rgba(11,95,255,.35);
  box-shadow: 0 4px 16px rgba(11,95,255,.08);
}
select.input:focus,
.select-modern:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(11,95,255,.15);
}
html.dark select.input,
html.dark .select-modern {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237eb6ff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

.modal-close {
  float: none !important;
  position: absolute;
  top: .85rem;
  left: .85rem;
  z-index: 2;
}
.modal { position: relative; }

.popup-bg {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(7, 27, 62, .5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 4.5rem 1rem 1rem;
  animation: backdropIn .28s ease both;
}
@media (min-width: 640px) {
  .popup-bg {
    justify-content: flex-start;
    padding: 4.75rem 1.25rem 1rem;
  }
  .popup-panel {
    margin-right: auto;
    margin-left: 1rem;
  }
}
.popup-panel {
  width: 100%;
  max-width: 22rem;
  background: rgba(255,255,255,.97);
  border-radius: 1.4rem;
  border: 1px solid rgba(11,95,255,.1);
  box-shadow: 0 24px 60px rgba(11,95,255,.18), 0 8px 24px rgba(0,0,0,.08);
  overflow: hidden;
  animation: popSlideDown .4s cubic-bezier(.22,1,.36,1) both;
}
html.dark .popup-panel {
  background: rgba(13,27,46,.97);
  border-color: rgba(54,135,255,.18);
}
@keyframes popSlideDown {
  from { opacity: 0; transform: translateY(-12px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-bg {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn {
  transition: transform .2s cubic-bezier(.22,1,.36,1), box-shadow .25s ease, background .25s ease, opacity .2s ease;
}
.btn:hover:not(:disabled) {
  transform: translateY(-2px);
}
.btn:active:not(:disabled) {
  transform: translateY(0) scale(.98);
}
.btn-primary {
  box-shadow: 0 8px 22px rgba(11,95,255,.25);
}
.btn-primary:hover:not(:disabled) {
  box-shadow: 0 12px 28px rgba(11,95,255,.35);
}

.card, .glass, .signal-card, .result-card, .plan-btn, .dash-kpi, .adm-kpi, .ticket-card {
  transition: transform .28s cubic-bezier(.22,1,.36,1), box-shadow .28s ease, border-color .25s ease, background .25s ease;
}
.card:hover, .glass:hover, .signal-card:hover, .result-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(11,95,255,.12);
}

.icon-btn {
  transition: transform .22s ease, background .22s ease, color .22s ease, box-shadow .22s ease;
}
.icon-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(11,95,255,.15);
}
.icon-btn:active { transform: scale(.95); }

.nav-btn, .adm-nav-btn, .udash-nav-btn, .quick-btn, .auth-tabs button {
  transition: transform .2s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
}
.nav-btn:active, .adm-nav-btn:active, .udash-nav-btn:active {
  transform: scale(.96);
}

.notice-item {
  transition: transform .2s ease, background .25s ease, border-color .25s ease;
}
.notice-item:hover {
  transform: translateX(-3px);
}

@keyframes softFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes softScale {
  from { opacity: 0; transform: scale(.94); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes slideInRtl {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes pulseSoft {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
.badge-dot:not(.hidden) {
  animation: pulseSoft 1.6s ease-in-out infinite;
}

.anim-page {
  animation: softFadeUp .4s cubic-bezier(.22,1,.36,1) both;
}
.udash-panel, .adm-content > .glass, .adm-content > .card {
  animation: softFadeUp .42s cubic-bezier(.22,1,.36,1) both;
}
.ticket-grid .ticket-card {
  animation: softScale .38s cubic-bezier(.22,1,.36,1) both;
}
.ticket-grid .ticket-card:nth-child(1) { animation-delay: .03s; }
.ticket-grid .ticket-card:nth-child(2) { animation-delay: .07s; }
.ticket-grid .ticket-card:nth-child(3) { animation-delay: .11s; }
.ticket-grid .ticket-card:nth-child(4) { animation-delay: .15s; }
.ticket-grid .ticket-card:nth-child(5) { animation-delay: .19s; }

.adm-kpi, .dash-kpi {
  animation: softFadeUp .4s cubic-bezier(.22,1,.36,1) both;
}
.adm-kpi-grid .adm-kpi:nth-child(1), .udash-kpi-row .dash-kpi:nth-child(1) { animation-delay: .04s; }
.adm-kpi-grid .adm-kpi:nth-child(2), .udash-kpi-row .dash-kpi:nth-child(2) { animation-delay: .09s; }
.adm-kpi-grid .adm-kpi:nth-child(3), .udash-kpi-row .dash-kpi:nth-child(3) { animation-delay: .14s; }
.adm-kpi-grid .adm-kpi:nth-child(4) { animation-delay: .19s; }

.chat-bubble {
  animation: slideInRtl .32s cubic-bezier(.22,1,.36,1) both;
}
.chat-bubble.admin {
  animation-name: softScale;
}

.table-wrap tbody tr {
  transition: background .2s ease;
}
.table-wrap tbody tr:hover {
  background: rgba(11,95,255,.04);
}
html.dark .table-wrap tbody tr:hover {
  background: rgba(54,135,255,.08);
}

html.theme-transition,
html.theme-transition * {
  transition: background-color .35s ease, color .35s ease, border-color .35s ease, box-shadow .35s ease !important;
}

.mobile-nav button {
  transition: transform .18s ease, background .2s ease, color .2s ease;
}
.mobile-nav button:active {
  transform: scale(.94);
}

.header-inner {
  transition: box-shadow .3s ease, background .3s ease;
}

.adm-content {
  animation: softFadeUp .45s cubic-bezier(.22,1,.36,1) both;
}

.label {
  display: block;
  text-align: right;
}
.label span {
  display: block;
  margin-bottom: .35rem;
  font-size: .8rem;
  font-weight: 700;
  color: var(--muted);
}

details {
  transition: box-shadow .25s ease, border-color .25s ease;
}
details[open] {
  box-shadow: 0 8px 24px rgba(11,95,255,.08);
}
details summary {
  transition: background .2s ease;
}

@media (min-width: 640px) {
  .popup-bg {
    justify-content: flex-end !important;
    padding-left: 1.25rem !important;
    padding-right: 1rem !important;
  }
  .popup-panel {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

.side-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .35rem;
  padding: .3rem;
  background: #eef4ff;
  border-radius: 1rem;
  border: 1px solid rgba(11,95,255,.1);
}
html.dark .side-toggle {
  background: #12253f;
  border-color: rgba(54,135,255,.16);
}
.side-toggle-btn {
  min-height: 2.5rem;
  border-radius: .75rem;
  font-size: .85rem;
  font-weight: 800;
  color: #5b7294;
  transition: transform .2s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
}
.side-toggle-btn:hover { color: var(--blue); }
.side-toggle-btn.active {
  background: linear-gradient(135deg, #2b7fff, #0b5fff);
  color: #fff;
  box-shadow: 0 6px 16px rgba(11,95,255,.28);
}
.side-toggle-btn[data-side="شورت"].active {
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  box-shadow: 0 6px 16px rgba(225,29,72,.28);
}
html.dark .side-toggle-btn { color: #8aa0c0; }

.confirm-modal {
  max-width: 22rem !important;
  text-align: center;
  padding: 1.5rem 1.35rem 1.25rem !important;
  animation: softScale .35s cubic-bezier(.22,1,.36,1) both;
}
.confirm-ico {
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto .85rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef4ff;
  color: #0b5fff;
}
.confirm-ico.danger {
  background: #fff1f2;
  color: #e11d48;
}
html.dark .confirm-ico { background: #12253f; color: #7eb6ff; }
html.dark .confirm-ico.danger { background: #2e1218; color: #fb7185; }
.confirm-ico svg { width: 1.45rem; height: 1.45rem; }
.confirm-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 900;
}
.confirm-msg {
  margin: .65rem 0 0;
  font-size: .88rem;
  line-height: 1.75;
  color: var(--muted);
}
.confirm-actions {
  display: flex;
  gap: .55rem;
  margin-top: 1.25rem;
}
.confirm-actions .btn {
  flex: 1;
  justify-content: center;
}
.btn-danger {
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  color: #fff;
  box-shadow: 0 8px 22px rgba(225,29,72,.28);
}
.btn-danger:hover:not(:disabled) {
  box-shadow: 0 12px 28px rgba(225,29,72,.38);
}

.proof-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  align-items: center;
}
.btn-sm {
  min-height: 2.15rem;
  padding: 0 .75rem;
  font-size: .78rem;
  border-radius: .75rem;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}
.btn-sm svg { width: .95rem; height: .95rem; }

.set-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .set-layout {
    grid-template-columns: 15rem minmax(0, 1fr);
    align-items: start;
  }
}
.set-nav {
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(11,95,255,.08);
  border-radius: 1.35rem;
  padding: 1rem .85rem;
  box-shadow: 0 10px 28px rgba(11,95,255,.06);
  position: sticky;
  top: 5.25rem;
}
html.dark .set-nav {
  background: rgba(13,27,46,.95);
  border-color: rgba(54,135,255,.16);
}
.set-nav-btn {
  display: flex;
  align-items: center;
  gap: .5rem;
  width: 100%;
  min-height: 2.65rem;
  padding: 0 .85rem;
  border-radius: .9rem;
  font-size: .82rem;
  font-weight: 800;
  color: #5b7294;
  text-align: right;
  transition: .2s ease;
}
.set-nav-btn svg { width: 1.05rem; height: 1.05rem; }
.set-nav-btn:hover { background: #f3f7ff; color: #0b5fff; }
.set-nav-btn.active {
  background: linear-gradient(135deg, #2b7fff, #0b5fff);
  color: #fff;
  box-shadow: 0 8px 20px rgba(11,95,255,.28);
}
html.dark .set-nav-btn { color: #8aa0c0; }
html.dark .set-nav-btn:hover { background: #12253f; color: #7eb6ff; }

.set-main { min-width: 0; }
.set-panel { animation: softFadeUp .4s cubic-bezier(.22,1,.36,1) both; }
.set-panel-title {
  margin: 0 0 .35rem;
  font-size: 1.05rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: .4rem;
}

.set-logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
.set-logo-preview {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 1.15rem;
  background: #eef4ff;
  border: 1px dashed rgba(11,95,255,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.set-logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
html.dark .set-logo-preview { background: #12253f; }

.set-switch-list { display: grid; gap: .15rem; }
.set-switch {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: .75rem;
  padding: .85rem .35rem;
  border-bottom: 1px solid rgba(11,95,255,.06);
  cursor: pointer;
  position: relative;
}
.set-switch:last-child { border-bottom: none; }
.set-switch-title { font-size: .88rem; font-weight: 800; }
.set-switch-desc { font-size: .75rem; color: var(--muted); margin-top: .15rem; line-height: 1.5; }
.set-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.set-switch-track {
  width: 2.75rem;
  height: 1.55rem;
  border-radius: 999px;
  background: #dbe7fb;
  position: relative;
  transition: background .25s ease;
  flex-shrink: 0;
}
.set-switch-track::after {
  content: '';
  position: absolute;
  top: .18rem;
  right: .18rem;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  transition: transform .25s cubic-bezier(.22,1,.36,1);
}
.set-switch input:checked + .set-switch-track {
  background: linear-gradient(135deg, #2b7fff, #0b5fff);
}
.set-switch input:checked + .set-switch-track::after {
  transform: translateX(-1.15rem);
}
html.dark .set-switch { border-color: rgba(54,135,255,.12); }
html.dark .set-switch-track { background: #1a2f4d; }

.set-preview-card {
  padding: 1rem 1.1rem;
  box-shadow: 0 10px 28px rgba(11,95,255,.1);
  transition: .25s ease;
}

.adm-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 12000;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 800;
  color: #fff;
  background: #0b5fff;
  box-shadow: 0 12px 32px rgba(11,95,255,.35);
  opacity: 0;
  transition: transform .35s cubic-bezier(.22,1,.36,1), opacity .3s ease;
  pointer-events: none;
  max-width: 90vw;
  text-align: center;
}
.adm-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.adm-toast.ok { background: linear-gradient(135deg, #10b981, #059669); }
.adm-toast.err { background: linear-gradient(135deg, #f43f5e, #e11d48); }

.brand img.logo, .brand .logo, img#logoImg {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: .85rem;
  object-fit: contain;
  background: #eef4ff;
  border: 1px solid rgba(11,95,255,.12);
}
html.dark img#logoImg {
  background: #12253f;
  border-color: rgba(54,135,255,.2);
}

.logo-uploader {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .logo-uploader {
    grid-template-columns: 7.5rem minmax(0, 1fr);
    align-items: stretch;
  }
}
.logo-uploader-preview {
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 1.35rem;
  background: linear-gradient(145deg, #eef4ff, #f8fbff);
  border: 1px solid rgba(11,95,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(11,95,255,.08);
}
.logo-uploader-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: .5rem;
}
.logo-uploader-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  color: #8aa0c0;
  font-size: .75rem;
  font-weight: 700;
}
.logo-uploader-empty svg { width: 1.6rem; height: 1.6rem; opacity: .7; }

.logo-dropzone {
  border: 1.5px dashed rgba(11,95,255,.28);
  border-radius: 1.35rem;
  padding: 1.15rem 1.1rem;
  background: rgba(11,95,255,.03);
  text-align: center;
  cursor: pointer;
  transition: border-color .25s ease, background .25s ease, transform .2s ease, box-shadow .25s ease;
}
.logo-dropzone:hover, .logo-dropzone.dragover {
  border-color: #0b5fff;
  background: rgba(11,95,255,.07);
  box-shadow: 0 12px 32px rgba(11,95,255,.12);
}
.logo-dropzone.dragover { transform: scale(1.01); }
.logo-drop-ico {
  width: 2.75rem;
  height: 2.75rem;
  margin: 0 auto .55rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #2b7fff, #0b5fff);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(11,95,255,.3);
}
.logo-drop-ico svg { width: 1.25rem; height: 1.25rem; }
.logo-drop-title { font-weight: 900; font-size: .95rem; }
.logo-drop-sub { font-size: .78rem; color: var(--muted); margin-top: .25rem; line-height: 1.6; }
.logo-drop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  justify-content: center;
  margin-top: .85rem;
}
.logo-progress {
  margin-top: .85rem;
  height: .35rem;
  border-radius: 999px;
  background: #dbe7fb;
  overflow: hidden;
}
.logo-progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #2b7fff, #0b5fff);
  transition: width .35s ease;
}
html.dark .logo-dropzone {
  background: rgba(54,135,255,.06);
  border-color: rgba(54,135,255,.28);
}
html.dark .logo-uploader-preview {
  background: #12253f;
  border-color: rgba(54,135,255,.18);
}
html.dark .logo-progress { background: #1a2f4d; }

.logo-live-hint { }
.logo-live-card {
  border-radius: 1.15rem;
  padding: .9rem 1rem;
  background: #fff;
  border: 1px solid rgba(11,95,255,.08);
  box-shadow: 0 8px 24px rgba(11,95,255,.06);
}
html.dark .logo-live-card {
  background: rgba(13,27,46,.95);
  border-color: rgba(54,135,255,.16);
}
.logo-live-header {
  display: flex;
  align-items: center;
  gap: .65rem;
}
.logo-live-header img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .75rem;
  object-fit: contain;
  background: #eef4ff;
}
.logo-live-header b { display: block; font-size: .9rem; font-weight: 900; }
.logo-live-header span { display: block; font-size: 10px; color: var(--muted); font-weight: 600; }

.footer {
  text-align: center;
  line-height: 1.7;
}
.footer-copy {
  margin-top: .35rem;
  font-size: .75rem;
  opacity: .85;
}
.footer-copy a {
  color: var(--blue, #0b5fff);
  font-weight: 800;
  text-decoration: none;
}
.footer-copy a:hover {
  text-decoration: underline;
}

.adm-notif-badge {
  position: absolute;
  top: -4px;
  left: -4px;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 .3rem;
  border-radius: 999px;
  background: #f43f5e;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.adm-notif-badge.hidden { display: none !important; }
.adm-notif-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 16, 32, .35);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.adm-notif-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.adm-notif-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: min(22rem, 92vw);
  height: 100%;
  background: var(--card, #fff);
  box-shadow: 8px 0 32px rgba(0,0,0,.12);
  z-index: 95;
  transform: translateX(-105%);
  transition: transform .28s cubic-bezier(.22,1,.36,1);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border, #e5eaf3);
}
html.dark .adm-notif-drawer {
  background: #0f1a2b;
  border-left-color: #1e2f4a;
}
.adm-notif-drawer.open { transform: translateX(0); }
.adm-notif-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--border, #e5eaf3);
  font-size: .95rem;
}
.adm-notif-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: .75rem 1rem 1.5rem;
}
.adm-notif-section { margin-bottom: 1.25rem; }
.adm-notif-sec-title {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-weight: 800;
  font-size: .8rem;
  margin-bottom: .5rem;
  color: var(--muted, #64748b);
}
.adm-notif-item {
  display: block;
  width: 100%;
  text-align: right;
  background: var(--bg, #f5f8fc);
  border: 1px solid var(--border, #e5eaf3);
  border-radius: .75rem;
  padding: .65rem .8rem;
  margin-bottom: .4rem;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.adm-notif-item:hover {
  background: #eef4ff;
  border-color: #c7d8f5;
}
html.dark .adm-notif-item {
  background: #12253f;
  border-color: #1e2f4a;
}
html.dark .adm-notif-item:hover {
  background: #183056;
  border-color: #2a4570;
}

.adm-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 16, 32, .45);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.adm-modal {
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: fadeUp .3s cubic-bezier(.22,1,.36,1) both;
}
.opacity-60 { opacity: .6; }
.text-red { color: #e11d48; }

@media (max-width: 959px) {
  .adm-header-inner {
    padding: .65rem .75rem;
    gap: .5rem;
  }
  .adm-brand span { display: none; }
  .adm-brand b { font-size: .9rem; }
  .adm-brand-ico { width: 2.2rem; height: 2.2rem; }
  .adm-header-actions .btn { padding: .45rem .7rem; font-size: .78rem; }
  .adm-body {
    padding: .75rem .65rem 5rem;
    gap: .75rem;
  }
  .adm-sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    border-radius: 1rem;
    padding: .45rem;
    margin: 0 -.15rem;
  }
  .adm-nav {
    display: flex;
    flex-direction: row;
    gap: .25rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: .15rem;
  }
  .adm-nav::-webkit-scrollbar { display: none; }
  .adm-nav-btn {
    min-height: 2.4rem;
    padding: 0 .7rem;
    font-size: .72rem;
    border-radius: .85rem;
  }
  .adm-nav-btn svg { width: .95rem; height: .95rem; }
  .adm-content { min-width: 0; overflow-x: hidden; }
  .adm-kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: .55rem;
  }
  .adm-kpi .num { font-size: 1.15rem; }
  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .table-wrap table { min-width: 520px; }
  .sig-form-rows .sig-row {
    grid-template-columns: 1fr 1fr !important;
  }
  .grid-2 { grid-template-columns: 1fr !important; }
  .adm-modal {
    max-width: 100% !important;
    margin: .5rem;
    max-height: 88vh;
  }
  .adm-notif-drawer {
    width: min(100vw, 22rem);
  }
  .adm-login-card {
    margin: 1rem .75rem;
    padding: 1.25rem 1rem;
  }
  .dash-grid.cols-2 { grid-template-columns: 1fr !important; }
  .proof-actions { display: flex; flex-wrap: wrap; gap: .25rem; }
  .grid-signals { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
  .adm-kpi-grid { grid-template-columns: 1fr 1fr !important; }
  .adm-header-actions a.btn-primary { display: none; }
  .sig-form-rows .sig-row { grid-template-columns: 1fr !important; }
}

.adm-body-page {
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.adm-header {
  padding-top: env(safe-area-inset-top, 0);
}

.adm-kpi-grid-3 { grid-template-columns: 1fr 1fr; }
@media (min-width: 700px) {
  .adm-kpi-grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.adm-form-card { width: 100%; max-width: 36rem; }
.adm-search-input { flex: 1 1 12rem; min-width: 0; width: 100%; }
.adm-modal-sm { max-width: 26rem; }
.adm-modal-md { max-width: 32rem; }

.adm-app .card,
.adm-app .glass {
  max-width: 100%;
  box-sizing: border-box;
}
.adm-app .label { display: block; width: 100%; }
.adm-app .input,
.adm-app .textarea,
.adm-app select,
.adm-app .select-modern {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.adm-app .flex { flex-wrap: wrap; }
.adm-app .flex.nowrap { flex-wrap: nowrap; }
.adm-app .toolbar,
.adm-app .adm-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  width: 100%;
}
.adm-app .toolbar .input,
.adm-app .adm-toolbar .input {
  flex: 1 1 10rem;
  min-width: 0;
}

.report-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .report-grid { grid-template-columns: 1fr 1fr; }
}

.set-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 800px) {
  .set-layout { grid-template-columns: 14rem minmax(0, 1fr); }
}
.set-nav {
  display: flex;
  flex-direction: row;
  gap: .35rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: .25rem;
}
@media (min-width: 800px) {
  .set-nav { flex-direction: column; overflow: visible; }
}

.sig-form-rows .sig-row,
.adm-app .sig-row {
  display: grid;
  gap: .65rem;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .sig-form-rows .sig-row,
  .adm-app .sig-row { grid-template-columns: 1fr 1fr; }
}

.grid-signals {
  display: grid;
  gap: .85rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .grid-signals { grid-template-columns: 1fr 1fr; }
}

.adm-modal-backdrop {
  align-items: flex-end;
  padding: 0;
}
@media (min-width: 640px) {
  .adm-modal-backdrop {
    align-items: center;
    padding: 1rem;
  }
}
.adm-modal {
  width: 100%;
  max-width: 100%;
  border-radius: 1.5rem 1.5rem 0 0;
  padding: 1.15rem 1.1rem calc(1.15rem + env(safe-area-inset-bottom));
  max-height: min(92vh, 100%);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 640px) {
  .adm-modal {
    border-radius: 1.5rem;
    max-width: 32rem;
    padding: 1.25rem;
  }
  .adm-modal.adm-modal-sm { max-width: 26rem; }
  .adm-modal.adm-modal-md { max-width: 32rem; }
}

.adm-app .table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 1rem;
}
.adm-app .table-wrap table {
  min-width: 520px;
  width: 100%;
}
.adm-app .table-wrap th,
.adm-app .table-wrap td {
  white-space: nowrap;
  vertical-align: middle;
}
.adm-app .table-wrap td .btn,
.adm-app .table-wrap td .flex {
  white-space: normal;
  flex-wrap: wrap;
}

.adm-app .proof-actions,
.adm-app .row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  align-items: center;
}

.chart-bars {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.chart-bar-lbl { font-size: 9px; }

@media (max-width: 640px) {
  .adm-app .adm-panel-title { font-size: 1.05rem; }
  .adm-app .card,
  .adm-app .glass { padding: 1rem .9rem; border-radius: 1.25rem; }
  .adm-app .btn { min-height: 2.65rem; }
  .adm-app .btn-sm { min-height: 2.3rem; }
  .adm-app .hero { padding: 1.25rem 1.1rem; border-radius: 1.35rem; }
  .adm-kpi-grid { gap: .55rem; }
  .adm-form-card { max-width: 100%; }
  .adm-app .flex.gap-2 > .btn { flex: 1 1 auto; }
  .report-grid > .card { min-width: 0; }
  .chart-line { height: 130px; }
  .adm-desktop-tabs {
    margin-top: 0;
    padding-bottom: .25rem;
  }
}

@media (max-width: 400px) {
  .adm-kpi-grid,
  .adm-kpi-grid-3 {
    grid-template-columns: 1fr 1fr !important;
  }
  .adm-more-grid { grid-template-columns: 1fr 1fr; }
  .mobile-nav button span { font-size: .6rem; }
}

.app-splash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #020617;
  display: flex;
  align-items: stretch;
  justify-content: center;
  opacity: 0;
  animation: splashIn .7s cubic-bezier(.22,1,.36,1) forwards;
}
.app-splash.is-hide {
  animation: splashOut .85s cubic-bezier(.22,1,.36,1) forwards;
  pointer-events: none;
}
@keyframes splashIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes splashOut {
  from { opacity: 1; transform: scale(1); filter: blur(0); }
  to { opacity: 0; transform: scale(1.04); filter: blur(8px); }
}
.app-splash-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.app-splash-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.06);
  animation: splashImg 4.2s cubic-bezier(.22,1,.36,1) forwards;
}
@keyframes splashImg {
  from { transform: scale(1.08); opacity: .85; }
  to { transform: scale(1); opacity: 1; }
}
.app-splash-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2,6,23,.15) 0%, transparent 35%, rgba(2,6,23,.55) 100%);
  pointer-events: none;
}
.app-splash-ui {
  position: absolute;
  inset-inline: 1.25rem;
  bottom: calc(1.75rem + env(safe-area-inset-bottom, 0px));
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .65rem;
}
.app-splash-progress {
  width: min(100%, 14rem);
  height: .28rem;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  overflow: hidden;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset;
}
.app-splash-progress-bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3b82f6, #60a5fa, #93c5fd);
  box-shadow: 0 0 16px rgba(59,130,246,.55);
  transition: width .08s linear;
}
.app-splash-caption {
  margin: 0;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: rgba(226,232,240,.82);
}
@media (min-width: 900px) {
  .app-splash { display: none !important; }
}

.trades-slider {
  position: relative;
  border-radius: 1.65rem;
  padding: 1.15rem 1.2rem 1.2rem;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(145deg, rgba(255,255,255,.97) 0%, rgba(238,244,255,.95) 100%);
  border: 1px solid rgba(11,95,255,.1);
  box-shadow:
    0 18px 40px rgba(11,95,255,.1),
    0 2px 0 rgba(255,255,255,.7) inset;
}
html.dark .trades-slider {
  background: linear-gradient(145deg, rgba(13,27,46,.96), rgba(10,23,42,.98));
  border-color: rgba(54,135,255,.18);
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.trades-slider-glow {
  position: absolute;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  top: -4rem;
  inset-inline-end: -3rem;
  background: radial-gradient(circle, rgba(43,127,255,.28), transparent 68%);
  filter: blur(2px);
  pointer-events: none;
  z-index: 0;
  animation: tradeGlow 4s ease-in-out infinite alternate;
}
html.dark .trades-slider-glow {
  background: radial-gradient(circle, rgba(59,130,246,.22), transparent 68%);
}
@keyframes tradeGlow {
  from { transform: translate(0,0) scale(1); opacity: .85; }
  to { transform: translate(-.6rem,.5rem) scale(1.12); opacity: 1; }
}
.trades-slider-track {
  position: relative;
  z-index: 1;
  min-height: 11.5rem;
}
.trade-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(.6rem) scale(.98);
  filter: blur(4px);
  pointer-events: none;
  transition:
    opacity .55s cubic-bezier(.22,1,.36,1),
    transform .55s cubic-bezier(.22,1,.36,1),
    filter .55s ease,
    visibility 0s linear .55s;
  z-index: 1;
}
.trade-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  filter: none;
  pointer-events: auto;
  transition:
    opacity .55s cubic-bezier(.22,1,.36,1),
    transform .55s cubic-bezier(.22,1,.36,1),
    filter .55s ease,
    visibility 0s linear 0s;
  z-index: 2;
}
.trade-slide-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}
.trade-slide-pair {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
}
.trade-slide-avatar {
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: .88rem;
  letter-spacing: .02em;
  color: #fff;
  background: linear-gradient(145deg, #4f8cff 0%, #0b5fff 55%, #0747c2 100%);
  box-shadow:
    0 10px 22px rgba(11,95,255,.32),
    0 1px 0 rgba(255,255,255,.25) inset;
  flex-shrink: 0;
}
.trade-slide.is-loss .trade-slide-avatar {
  background: linear-gradient(145deg, #fb7185, #e11d48 60%, #be123c);
  box-shadow: 0 10px 22px rgba(225,29,72,.28);
}
.trade-slide-id { min-width: 0; }
.trade-slide-asset {
  font-weight: 900;
  font-size: 1.08rem;
  letter-spacing: .03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.trade-slide-meta {
  font-size: .74rem;
  color: var(--muted);
  font-weight: 700;
  margin-top: .2rem;
}
.trade-slide-badge {
  flex-shrink: 0;
  font-size: .72rem;
  font-weight: 800;
  padding: .35rem .7rem;
  border-radius: 999px;
}
.trade-slide-badge.win {
  color: #047857;
  background: linear-gradient(180deg, #d1fae5, #a7f3d0);
}
.trade-slide-badge.loss {
  color: #be123c;
  background: linear-gradient(180deg, #ffe4e6, #fecdd3);
}
html.dark .trade-slide-badge.win {
  color: #6ee7b7;
  background: rgba(5,150,105,.22);
}
html.dark .trade-slide-badge.loss {
  color: #fda4af;
  background: rgba(225,29,72,.22);
}
.trade-slide-badge.live {
  color: #1d4ed8;
  background: linear-gradient(180deg, #dbeafe, #bfdbfe);
}
html.dark .trade-slide-badge.live {
  color: #93c5fd;
  background: rgba(59,130,246,.2);
}
.trade-slide.is-live .trade-slide-avatar {
  background: linear-gradient(145deg, #60a5fa, #0b5fff 55%, #1e40af);
}
.trade-slide-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
  margin-top: .95rem;
}
.trade-metric {
  border-radius: .95rem;
  padding: .55rem .5rem;
  background: rgba(11,95,255,.05);
  border: 1px solid rgba(11,95,255,.07);
  text-align: center;
  min-width: 0;
}
html.dark .trade-metric {
  background: rgba(59,130,246,.08);
  border-color: rgba(54,135,255,.12);
}
.trade-metric span {
  display: block;
  font-size: .65rem;
  font-weight: 800;
  color: var(--muted);
  margin-bottom: .2rem;
}
.trade-metric b {
  display: block;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.trade-metric b.stop { color: #e11d48; }
.trade-slide-profit {
  margin-top: .95rem;
  font-size: clamp(1.45rem, 4.5vw, 1.75rem);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.1;
}
.trade-slide-profit.up {
  color: #059669;
  text-shadow: 0 8px 24px rgba(5,150,105,.18);
}
.trade-slide-profit.down {
  color: #e11d48;
  text-shadow: 0 8px 24px rgba(225,29,72,.16);
}
.trade-slide-note {
  margin: .55rem 0 0;
  font-size: .84rem;
  color: var(--muted);
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.trade-slide-foot {
  margin-top: .85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding-top: .7rem;
  border-top: 1px solid rgba(11,95,255,.08);
}
html.dark .trade-slide-foot {
  border-top-color: rgba(54,135,255,.14);
}
.trade-slide-time {
  font-size: .72rem;
  font-weight: 700;
  color: #7b8fad;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}
.trade-slide-time svg { width: .9rem; height: .9rem; }
.empty-slider {
  min-height: auto;
}
.empty-slider .empty {
  margin: 0;
  padding: .35rem 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.profile-page .adm-panel-title {
  font-size: 1.1rem;
}
@media (max-width: 640px) {
  .profile-page .udash-kpi-row .num {
    font-size: 1.05rem;
  }
}

.push-prompt-banner {
  position: fixed;
  inset-inline: .75rem;
  bottom: calc(4.6rem + env(safe-area-inset-bottom, 0px));
  z-index: 55;
  animation: fadeUp .35s cubic-bezier(.22,1,.36,1) both;
}
@media (min-width: 900px) {
  .push-prompt-banner { display: none !important; }
}
.push-prompt-inner {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  padding: .9rem 1rem;
  border-radius: 1.25rem;
  background: rgba(255,255,255,.97);
  border: 1px solid rgba(11,95,255,.12);
  box-shadow: 0 16px 40px rgba(11,95,255,.18);
}
html.dark .push-prompt-inner {
  background: rgba(13,27,46,.97);
  border-color: rgba(54,135,255,.2);
}
.push-prompt-ico {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .85rem;
  background: linear-gradient(135deg, #2b7fff, #0b5fff);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.push-prompt-ico svg { width: 1.15rem; height: 1.15rem; }
.push-prompt-text {
  flex: 1;
  min-width: 8rem;
}
.push-prompt-text b {
  display: block;
  font-size: .88rem;
  font-weight: 900;
}
.push-prompt-text span {
  display: block;
  margin-top: .2rem;
  font-size: .72rem;
  color: var(--muted);
  line-height: 1.5;
}
.push-prompt-actions {
  display: flex;
  gap: .4rem;
  flex-shrink: 0;
}
.push-settings-card {
  border-radius: 1.25rem;
  padding: 1rem 1.05rem;
  background: linear-gradient(145deg, #f4f8ff, #eef4ff);
  border: 1px solid rgba(11,95,255,.1);
}
html.dark .push-settings-card {
  background: linear-gradient(145deg, #0f1c2e, #12253f);
  border-color: rgba(54,135,255,.16);
}
.push-settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
}
.push-status-on { color: #059669; }
.push-status-off { color: #d97706; }


body.is-desktop-client .app-splash { display: none !important; }
body.is-desktop-client:not(.adm-body-page) .mobile-nav { display: none !important; }
body.is-desktop-client.adm-body-page .mobile-nav.adm-mobile-nav { display: none !important; }
body.is-desktop-client .push-prompt-banner { display: none !important; }
body.is-desktop-client .footer { display: block; }
body.is-mobile-client .nav { display: none !important; }
body.is-mobile-client .footer { display: none; }
body.is-mobile-client .header-inner { padding-inline: .75rem; }
body.is-standalone .header {
  padding-top: env(safe-area-inset-top, 0px);
}
body.is-standalone .mobile-nav {
  padding-bottom: calc(.35rem + env(safe-area-inset-bottom, 0px));
}


body.is-desktop-client.adm-body-page .adm-mobile-nav {
  display: none !important;
}
body.is-mobile-client.adm-body-page .adm-mobile-nav:not(.hidden) {
  display: flex !important;
}
body.is-desktop-client.adm-body-page .adm-desktop-tabs {
  display: flex !important;
  flex-wrap: wrap;
  gap: .35rem;
  padding-bottom: .5rem;
}
body.is-mobile-client.adm-body-page .adm-desktop-tabs {
  display: none !important;
}
body.adm-body-page.is-desktop-client .adm-main {
  padding-bottom: 2rem;
}
body.adm-body-page .adm-desktop-tabs button {
  min-height: 2.5rem;
  padding: 0 .9rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 800;
  background: #eef4ff;
  color: #5b7294;
  border: 1px solid transparent;
}
body.adm-body-page .adm-desktop-tabs button.active {
  background: linear-gradient(135deg, #2b7fff, #0b5fff);
  color: #fff;
  box-shadow: 0 8px 20px rgba(11,95,255,.25);
}
html.dark body.adm-body-page .adm-desktop-tabs button {
  background: #12253f;
  color: #8aa0c0;
}
html.dark body.adm-body-page .adm-desktop-tabs button.active {
  background: linear-gradient(135deg, #2b7fff, #0b5fff);
  color: #fff;
}
@media (max-width: 899px) {
  body.adm-body-page .adm-desktop-tabs { display: none !important; }
  body.adm-body-page .adm-mobile-nav:not(.hidden) {
    display: flex !important;
  }
}

/* ========== User Dashboard PWA / Mobile (مثل پنل ادمین) ========== */
body.is-mobile-client .main {
  padding: .85rem .75rem calc(5.75rem + env(safe-area-inset-bottom, 0px));
}
body.is-standalone .main {
  padding-top: .65rem;
}
body.is-mobile-client .profile-page {
  padding-bottom: .25rem;
}

/* Welcome hero — فشرده روی موبایل */
body.is-mobile-client .udash-welcome {
  border-radius: 1.35rem;
  padding: 1rem 1rem;
  gap: .65rem;
}
body.is-mobile-client .udash-welcome .avatar {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: .85rem;
}
body.is-mobile-client .udash-welcome .avatar svg {
  width: 1.2rem;
  height: 1.2rem;
}
body.is-mobile-client .udash-welcome h1 {
  font-size: 1.1rem;
}
body.is-mobile-client .udash-welcome .btn {
  min-height: 2.35rem;
  padding: 0 .85rem;
  font-size: .78rem;
  border-radius: .9rem;
}

/* تب‌های پروفایل — شبیه تب ادمین، اسکرول افقی چسبان */
body.is-mobile-client .udash {
  gap: .7rem;
  margin-top: .7rem;
}
body.is-mobile-client .udash-side {
  position: sticky;
  top: calc(3.6rem + env(safe-area-inset-top, 0px));
  z-index: 12;
  border-radius: 1.15rem;
  padding: .4rem;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(11,95,255,.08);
}
html.dark body.is-mobile-client .udash-side {
  background: rgba(13,27,46,.92);
}
body.is-mobile-client .udash-side-nav {
  gap: .25rem;
  padding: .05rem;
}
body.is-mobile-client .udash-nav-btn {
  min-height: 2.45rem;
  padding: 0 .7rem;
  border-radius: .9rem;
  font-size: .72rem;
  gap: .35rem;
}
body.is-mobile-client .udash-nav-btn svg {
  width: .95rem;
  height: .95rem;
}

/* KPI مثل ادمین */
body.is-mobile-client .udash-kpi-row {
  grid-template-columns: 1fr 1fr;
  gap: .55rem;
}
body.is-mobile-client .dash-kpi {
  border-radius: 1.2rem;
  padding: .85rem .75rem;
}
body.is-mobile-client .dash-kpi .ico {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: .7rem;
  margin-bottom: .4rem;
}
body.is-mobile-client .dash-kpi .ico svg {
  width: 1rem;
  height: 1rem;
}
body.is-mobile-client .dash-kpi .lbl {
  font-size: .65rem;
}
body.is-mobile-client .dash-kpi .num {
  font-size: 1.05rem;
}

/* کارت اشتراک و دسترسی سریع */
body.is-mobile-client .udash-sub-card {
  border-radius: 1.25rem;
}
body.is-mobile-client .ring {
  width: 4.5rem;
  height: 4.5rem;
}
body.is-mobile-client .ring-inner {
  width: 3.4rem;
  height: 3.4rem;
  font-size: .82rem;
}
body.is-mobile-client .quick-actions {
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
}
body.is-mobile-client .quick-btn {
  min-height: 4.25rem;
  border-radius: 1rem;
  font-size: .7rem;
}
body.is-mobile-client .quick-btn .qi {
  width: 2.05rem;
  height: 2.05rem;
}

/* پنل‌های داخلی پروفایل */
body.is-mobile-client .profile-block,
body.is-mobile-client .udash-panel .card {
  border-radius: 1.25rem;
}
body.is-mobile-client .profile-block h2 {
  font-size: 1.05rem;
  margin: 0 0 .35rem;
  display: flex;
  align-items: center;
  gap: .35rem;
}
body.is-mobile-client .profile-block .desc {
  font-size: .78rem;
  margin: 0 0 .85rem;
  color: var(--muted);
  line-height: 1.65;
}
body.is-mobile-client .plan-grid,
body.is-mobile-client .plan-grid-inline {
  grid-template-columns: 1fr;
  gap: .55rem;
}
body.is-mobile-client .plan-btn,
body.is-mobile-client .plan-btn-inline {
  width: 100%;
  border-radius: 1.1rem;
  padding: .9rem 1rem;
}
body.is-mobile-client .ticket-grid {
  display: grid;
  gap: .55rem;
  grid-template-columns: 1fr;
}

/* فرم ورود/ثبت‌نام — تمام‌عرض موبایل */
body.is-mobile-client .auth-shell {
  max-width: 100%;
  margin: 1rem 0 0;
  padding: 0;
}
body.is-mobile-client .auth-card {
  border-radius: 1.35rem;
  padding: 1rem .95rem 1.15rem;
  box-shadow: 0 12px 32px rgba(11,95,255,.1);
}
body.is-mobile-client .auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .3rem;
  margin-bottom: 1rem;
  background: #f0f5ff;
  border-radius: 1rem;
  padding: .3rem;
}
html.dark body.is-mobile-client .auth-tabs {
  background: #12253f;
}
body.is-mobile-client .auth-tabs button {
  min-height: 2.5rem;
  border-radius: .85rem;
  font-size: .85rem;
  font-weight: 800;
}
body.is-mobile-client .auth-title {
  font-size: 1.05rem;
  margin: 0 0 .35rem;
}
body.is-mobile-client .auth-sub {
  font-size: .78rem;
  margin: 0 0 .9rem;
  color: var(--muted);
}
body.is-mobile-client .profile-hero {
  border-radius: 1.35rem;
  padding: 1rem 1.05rem;
  background: linear-gradient(135deg, #0b5fff 0%, #0747c2 100%);
  color: #fff;
  margin-bottom: .15rem;
}
body.is-mobile-client .profile-hero .avatar {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: .85rem;
  background: rgba(255,255,255,.18);
  display: flex;
  align-items: center;
  justify-content: center;
}
body.is-mobile-client .profile-hero .avatar svg {
  width: 1.2rem;
  height: 1.2rem;
  color: #fff;
}

/* جلوگیری از زوم ناخواسته iOS روی input */
body.is-mobile-client .profile-page input,
body.is-mobile-client .profile-page textarea,
body.is-mobile-client .profile-page select {
  font-size: 16px !important;
}

/* هدر چسبان در حالت standalone */
body.is-standalone.is-mobile-client .header {
  padding-top: env(safe-area-inset-top, 0px);
}
body.is-standalone.is-mobile-client .udash-side {
  top: calc(3.6rem + env(safe-area-inset-top, 0px));
}

/* تیره شدن تب فعال مثل ادمین */
body.is-mobile-client .mobile-nav button.active {
  background: linear-gradient(145deg, #eef4ff, #e4edff);
  color: #0b5fff;
  box-shadow: 0 4px 12px rgba(11,95,255,.12);
}
html.dark body.is-mobile-client .mobile-nav button.active {
  background: #12253f;
  color: #7eb6ff;
}

@media (max-width: 380px) {
  body.is-mobile-client .udash-nav-btn {
    padding: 0 .55rem;
    font-size: .68rem;
  }
  body.is-mobile-client .dash-kpi .num {
    font-size: .95rem;
  }
  body.is-mobile-client .udash-welcome h1 {
    font-size: 1rem;
  }
}

/* ========== User Account — layout جدا از پنل ادمین ========== */
.uacc {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  max-width: 32rem;
  margin: 0 auto;
  min-width: 0;
}

.uacc-id {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .85rem 1rem;
  border-radius: 1.35rem;
  background: #fff;
  border: 1px solid rgba(11,95,255,.08);
  box-shadow: 0 8px 24px rgba(11,95,255,.06);
}
html.dark .uacc-id {
  background: #0d1b2e;
  border-color: rgba(54,135,255,.14);
}
.uacc-id-main {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
}
.uacc-avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #2b7fff, #0b5fff);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.uacc-avatar svg { width: 1.25rem; height: 1.25rem; }
.uacc-id-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.uacc-id-meta b {
  font-size: 1rem;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.uacc-id-meta span {
  font-size: .75rem;
  color: var(--muted);
}
.uacc-logout {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b91c1c;
  background: #fef2f2;
  flex-shrink: 0;
}
html.dark .uacc-logout {
  background: #2a1212;
  color: #fca5a5;
}
.uacc-logout svg { width: 1.1rem; height: 1.1rem; }

.uacc-chips {
  display: flex;
  gap: .4rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: .1rem 0;
}
.uacc-chips::-webkit-scrollbar { display: none; }
.uacc-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  flex-shrink: 0;
  min-height: 2.35rem;
  padding: 0 .85rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 800;
  color: #5b7294;
  background: #f3f7ff;
  border: 1px solid transparent;
  transition: .2s ease;
}
html.dark .uacc-chip {
  background: #12253f;
  color: #8aa0c0;
}
.uacc-chip svg { width: .95rem; height: .95rem; }
.uacc-chip.active {
  background: #0b5fff;
  color: #fff;
  box-shadow: 0 6px 16px rgba(11,95,255,.28);
}

.uacc-body { min-width: 0; }
.uacc-stack {
  display: flex;
  flex-direction: column;
  gap: .85rem;
}

.uacc-status {
  border-radius: 1.4rem;
  padding: 1.15rem 1.15rem 1.2rem;
  color: #fff;
  background: linear-gradient(145deg, #0b5fff 0%, #0747c2 55%, #05358f 100%);
  box-shadow: 0 14px 36px rgba(7,71,194,.25);
}
.uacc-status.is-off {
  background: linear-gradient(145deg, #64748b 0%, #475569 100%);
  box-shadow: 0 12px 28px rgba(71,85,105,.2);
}
.uacc-status.compact {
  padding: 1rem 1.05rem;
}
.uacc-status-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .55rem;
}
.uacc-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .7rem;
  font-weight: 800;
  padding: .25rem .55rem;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
}
.uacc-badge svg { width: .85rem; height: .85rem; }
.uacc-days {
  font-size: .72rem;
  font-weight: 700;
  opacity: .9;
}
.uacc-status-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1.35;
}
.uacc-status-desc {
  margin: .4rem 0 0;
  font-size: .8rem;
  line-height: 1.7;
  opacity: .9;
}
.uacc-bar {
  margin-top: .9rem;
  height: .4rem;
  border-radius: 999px;
  background: rgba(255,255,255,.22);
  overflow: hidden;
}
.uacc-bar > i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #fff;
}
.uacc-status .btn-ghost {
  background: rgba(255,255,255,.16);
  color: #fff;
  border: 1px solid rgba(255,255,255,.28);
}
.uacc-status .btn-primary {
  background: #fff;
  color: #0b5fff;
}

.uacc-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
}
.uacc-mini-item {
  text-align: center;
  padding: .75rem .4rem;
  border-radius: 1.1rem;
  background: #fff;
  border: 1px solid rgba(11,95,255,.08);
  box-shadow: 0 6px 18px rgba(11,95,255,.05);
}
html.dark .uacc-mini-item {
  background: #0d1b2e;
  border-color: rgba(54,135,255,.14);
}
.uacc-mini-item b {
  display: block;
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text);
}
.uacc-mini-item span {
  display: block;
  margin-top: .2rem;
  font-size: .65rem;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.4;
}

.uacc-list {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  background: #fff;
  border: 1px solid rgba(11,95,255,.08);
  border-radius: 1.35rem;
  padding: .4rem;
  box-shadow: 0 8px 24px rgba(11,95,255,.05);
}
html.dark .uacc-list {
  background: #0d1b2e;
  border-color: rgba(54,135,255,.14);
}
.uacc-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  width: 100%;
  text-align: right;
  padding: .7rem .65rem;
  border-radius: 1rem;
  transition: .15s ease;
}
.uacc-row:hover,
.uacc-row:active {
  background: #f3f7ff;
}
html.dark .uacc-row:hover,
html.dark .uacc-row:active {
  background: #12253f;
}
.uacc-row-ico {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: .8rem;
  background: #eef4ff;
  color: #0b5fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
html.dark .uacc-row-ico {
  background: #12253f;
  color: #7eb6ff;
}
.uacc-row-ico svg { width: 1.1rem; height: 1.1rem; }
.uacc-row-txt {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .1rem;
}
.uacc-row-txt b {
  font-size: .88rem;
  font-weight: 800;
}
.uacc-row-txt small {
  font-size: .7rem;
  color: var(--muted);
}
.uacc-row-go {
  color: #94a3b8;
  flex-shrink: 0;
}
.uacc-row-go svg { width: 1.1rem; height: 1.1rem; }

.uacc-section-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.uacc-section-head h2 svg {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--blue);
}
.uacc-section-head p {
  margin: .3rem 0 0;
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.6;
}

.uacc-plans {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.uacc-plan {
  width: 100%;
  text-align: right;
  padding: 1rem 1.05rem;
  border-radius: 1.25rem;
  background: #fff;
  border: 1px solid rgba(11,95,255,.1);
  box-shadow: 0 8px 22px rgba(11,95,255,.06);
  transition: .2s ease;
}
html.dark .uacc-plan {
  background: #0d1b2e;
  border-color: rgba(54,135,255,.16);
}
.uacc-plan.hot {
  border-color: rgba(245,158,11,.45);
  background: linear-gradient(180deg, #fffbeb 0%, #fff 60%);
}
html.dark .uacc-plan.hot {
  background: linear-gradient(180deg, #2e220a 0%, #0d1b2e 60%);
}
.uacc-plan:active { transform: scale(.98); }
.uacc-plan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  flex-wrap: wrap;
}
.uacc-plan-top b { font-size: .95rem; font-weight: 900; }
.uacc-plan-price {
  margin-top: .45rem;
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--blue);
}
.uacc-plan-cta {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-top: .55rem;
  font-size: .75rem;
  font-weight: 800;
  color: #5b7294;
}
.uacc-plan-cta svg { width: .9rem; height: .9rem; }

.uacc-form {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: 1rem;
  border-radius: 1.25rem;
  background: #fff;
  border: 1px solid rgba(11,95,255,.08);
}
html.dark .uacc-form {
  background: #0d1b2e;
  border-color: rgba(54,135,255,.14);
}
.uacc-form .input,
.uacc-form .textarea {
  width: 100%;
  font-size: 16px;
}

.uacc-faq {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.uacc-faq-item {
  border-radius: 1rem;
  border: 1px solid rgba(11,95,255,.1);
  background: #fff;
  overflow: hidden;
}
html.dark .uacc-faq-item {
  background: #0d1b2e;
  border-color: rgba(54,135,255,.14);
}
.uacc-faq-item summary {
  padding: .85rem 1rem;
  font-weight: 800;
  font-size: .85rem;
  cursor: pointer;
  list-style: none;
}
.uacc-faq-item summary::-webkit-details-marker { display: none; }
.uacc-faq-item p {
  margin: 0;
  padding: 0 1rem 1rem;
  font-size: .8rem;
  line-height: 1.85;
  color: var(--muted);
}

/* موبایل / PWA */
body.is-mobile-client .uacc {
  max-width: 100%;
  gap: .7rem;
}
body.is-mobile-client .uacc-id {
  border-radius: 1.2rem;
  padding: .75rem .85rem;
}
body.is-mobile-client .uacc-status {
  border-radius: 1.25rem;
  padding: 1rem;
}
body.is-mobile-client .uacc-status-title {
  font-size: 1.08rem;
}
body.is-mobile-client .uacc-chip {
  min-height: 2.25rem;
  padding: 0 .75rem;
  font-size: .72rem;
}

@media (min-width: 900px) {
  .uacc {
    max-width: 28rem;
  }
}

/* =========================================================
   Dark theme — هماهنگ برای ادمین + داشبورد کاربر
   ========================================================= */
html.dark {
  --text: #e8eef8;
  --muted: #93a4bd;
  --bg: #0b1220;
  --card: #141e2e;
  --line: rgba(120, 160, 220, .14);
  --shadow: 0 12px 36px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

html.dark body,
html.dark body.adm-body-page {
  color: var(--text);
  background:
    radial-gradient(ellipse 70% 45% at 90% 0%, rgba(43, 127, 255, .14), transparent 55%),
    radial-gradient(ellipse 55% 40% at 0% 100%, rgba(99, 102, 241, .1), transparent 50%),
    linear-gradient(180deg, #0a101c 0%, #0d1524 50%, #0b1220 100%) !important;
}

/* سطوح / کارت‌ها */
html.dark .card,
html.dark .glass,
html.dark .signal-card,
html.dark .stat-card,
html.dark .result-card,
html.dark .chart-box,
html.dark .profile-block,
html.dark .auth-card,
html.dark .form-card,
html.dark .modal,
html.dark .popup-panel,
html.dark .ticket-card,
html.dark .plan-btn,
html.dark .adm-kpi,
html.dark .dash-kpi,
html.dark .adm-more-sheet,
html.dark .adm-more-item,
html.dark .uacc-id,
html.dark .uacc-list,
html.dark .uacc-mini-item,
html.dark .uacc-plan,
html.dark .uacc-form,
html.dark .uacc-faq-item,
html.dark .udash-side,
html.dark .header-inner {
  background: #141e2e !important;
  border-color: rgba(120, 160, 220, .14) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .28), 0 1px 0 rgba(255, 255, 255, .03) inset !important;
  color: var(--text);
}

html.dark .header-inner {
  background: rgba(20, 30, 46, .92) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* متن‌ها */
html.dark .brand b,
html.dark .page-title,
html.dark .pair-name,
html.dark .section-title,
html.dark .auth-title,
html.dark .profile-block h2,
html.dark .adm-panel-title,
html.dark .confirm-title,
html.dark .uacc-section-head h2,
html.dark .uacc-id-meta b,
html.dark .uacc-row-txt b,
html.dark .uacc-plan-top b,
html.dark .uacc-mini-item b {
  color: #eef3fb !important;
}

html.dark .brand span,
html.dark .page-desc,
html.dark .pair-meta,
html.dark .text-muted,
html.dark .label span,
html.dark .auth-sub,
html.dark .profile-block .desc,
html.dark .footer,
html.dark .uacc-id-meta span,
html.dark .uacc-row-txt small,
html.dark .uacc-mini-item span,
html.dark .uacc-section-head p,
html.dark .adm-kpi .lbl,
html.dark .dash-kpi .lbl {
  color: #93a4bd !important;
}

html.dark .adm-kpi .num,
html.dark .dash-kpi .num {
  color: #eef3fb !important;
}

/* ناوبری */
html.dark .nav-btn,
html.dark .mobile-nav button,
html.dark .udash-nav-btn,
html.dark .uacc-chip,
html.dark body.adm-body-page .adm-desktop-tabs button {
  background: #1a2740 !important;
  color: #a7b8d0 !important;
  border-color: transparent !important;
}
html.dark .nav-btn:hover,
html.dark .udash-nav-btn:hover,
html.dark .uacc-chip:hover,
html.dark body.adm-body-page .adm-desktop-tabs button:hover {
  background: #223352 !important;
  color: #9ec5ff !important;
}
html.dark .nav-btn.active,
html.dark .mobile-nav button.active,
html.dark .udash-nav-btn.active,
html.dark .uacc-chip.active,
html.dark body.adm-body-page .adm-desktop-tabs button.active,
html.dark .adm-more-item.active {
  background: linear-gradient(135deg, #2b7fff, #0b5fff) !important;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(11, 95, 255, .3) !important;
}

html.dark .mobile-nav,
html.dark .adm-mobile-nav {
  background: rgba(16, 24, 38, .96) !important;
  border-top-color: rgba(120, 160, 220, .12) !important;
  backdrop-filter: blur(14px);
}

html.dark .icon-btn {
  background: #1a2740 !important;
  color: #9ec5ff !important;
  box-shadow: none !important;
}
html.dark .icon-btn:hover {
  background: #223352 !important;
}

/* فرم‌ها */
html.dark .input,
html.dark .select,
html.dark .textarea {
  background: #0f1726 !important;
  border-color: rgba(120, 160, 220, .18) !important;
  color: #e8eef8 !important;
}
html.dark .input:focus,
html.dark .select:focus,
html.dark .textarea:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .2) !important;
}
html.dark .input::placeholder,
html.dark .textarea::placeholder {
  color: #6b7c96 !important;
}

/* آیکون‌باکس KPI / میانبر */
html.dark .adm-kpi .ico.blue,
html.dark .dash-kpi .ico.blue,
html.dark .uacc-row-ico,
html.dark .adm-more-ico,
html.dark .quick-btn .qi {
  background: #1a2d4d !important;
  color: #7eb6ff !important;
}
html.dark .adm-kpi .ico.green,
html.dark .dash-kpi .ico.green {
  background: #123528 !important;
  color: #34d399 !important;
}
html.dark .adm-kpi .ico.amber,
html.dark .dash-kpi .ico.amber {
  background: #33280f !important;
  color: #fbbf24 !important;
}
html.dark .adm-kpi .ico.purple,
html.dark .dash-kpi .ico.purple {
  background: #241a3d !important;
  color: #c4b5fd !important;
}

/* ادمین — منوی بیشتر و نوتیف */
html.dark .adm-more-bg,
html.dark .modal-bg {
  background: rgba(4, 10, 20, .72) !important;
}
html.dark .adm-more-item {
  background: #1a2740 !important;
  color: #b6c5dc !important;
}
html.dark .adm-notif-drawer {
  background: #141e2e !important;
  border-color: rgba(120, 160, 220, .14) !important;
}
html.dark .adm-notif-item {
  background: #1a2740 !important;
  border-color: transparent !important;
}
html.dark .adm-notif-item:hover {
  background: #223352 !important;
}

/* حساب کاربری */
html.dark .uacc-logout {
  background: #3a1a1f !important;
  color: #fca5a5 !important;
}
html.dark .uacc-status.is-on {
  background: linear-gradient(145deg, #1d4ed8 0%, #1e3a8a 55%, #172554 100%) !important;
  box-shadow: 0 14px 36px rgba(29, 78, 216, .28) !important;
}
html.dark .uacc-status.is-off {
  background: linear-gradient(145deg, #475569 0%, #334155 100%) !important;
}
html.dark .uacc-plan.hot {
  background: linear-gradient(180deg, #2a2110 0%, #141e2e 65%) !important;
  border-color: rgba(251, 191, 36, .35) !important;
}
html.dark .uacc-plan-price {
  color: #7eb6ff !important;
}
html.dark .uacc-row:hover,
html.dark .uacc-row:active {
  background: #1a2740 !important;
}
html.dark .uacc-faq-item summary {
  color: #e8eef8;
}
html.dark .uacc-faq-item p {
  color: #93a4bd;
}

/* چیپ‌ها و بنرها */
html.dark .chip-blue { background: #1a2d4d !important; color: #7eb6ff !important; }
html.dark .chip-green { background: #123528 !important; color: #34d399 !important; }
html.dark .chip-red { background: #3a1a1f !important; color: #fb7185 !important; }
html.dark .chip-amber { background: #33280f !important; color: #fbbf24 !important; }

html.dark .empty,
html.dark .udash-empty-hint {
  background: #101927 !important;
  border-color: rgba(120, 160, 220, .16) !important;
  color: #93a4bd !important;
}

html.dark .sub-banner.active {
  background: #123528 !important;
  border-color: #1f6b4a !important;
  color: #6ee7b7 !important;
}
html.dark .sub-banner.off {
  background: #33280f !important;
  border-color: #6b5420 !important;
  color: #fcd34d !important;
}

html.dark .signal-foot {
  background: #1a2740 !important;
  color: #93a4bd !important;
}

html.dark .best-banner {
  background: #123528 !important;
  border-color: #1f6b4a !important;
  color: #6ee7b7 !important;
}

html.dark .notice-ok { background: #123528 !important; color: #6ee7b7 !important; }
html.dark .notice-err { background: #3a1a1f !important; color: #fb7185 !important; }
html.dark .notice-warn { background: #33280f !important; color: #fbbf24 !important; }

html.dark .notice-item {
  background: #1a2740 !important;
  border-color: rgba(120, 160, 220, .1) !important;
}
html.dark .notice-item.unread {
  background: #1a2d4d !important;
  border-color: rgba(59, 130, 246, .45) !important;
}

html.dark .timeline-item {
  background: #1a2740 !important;
  border-color: rgba(120, 160, 220, .1) !important;
}

html.dark .btn-ghost {
  background: #1a2740 !important;
  color: #9ec5ff !important;
}
html.dark .btn-ghost:hover {
  background: #223352 !important;
}

html.dark .auth-tabs {
  background: #1a2740 !important;
}
html.dark .auth-tabs button {
  color: #a7b8d0;
}
html.dark .auth-tabs button.active {
  background: #0b5fff !important;
  color: #fff !important;
}

html.dark .kind-tabs button {
  background: #1a2740 !important;
  color: #a7b8d0 !important;
}
html.dark .kind-tabs button.active {
  background: #0b5fff !important;
  color: #fff !important;
}

html.dark .progress {
  background: #1a2740 !important;
}
html.dark .progress > i {
  background: #34d399 !important;
}

/* اسکرول‌بار */
html.dark ::-webkit-scrollbar-thumb {
  background: #2a3a55 !important;
}
html.dark ::-webkit-scrollbar-track {
  background: #0b1220 !important;
}

/* قفل سیگنال */
html.dark .lock-section {
  background: rgba(20, 30, 46, .95) !important;
  border-color: rgba(120, 160, 220, .14) !important;
}
html.dark .lock-icon-wrap {
  background: #1a2d4d !important;
  color: #7eb6ff !important;
}

/* تایید مودال */
html.dark .confirm-modal {
  background: #141e2e !important;
  border-color: rgba(120, 160, 220, .14);
}
html.dark .confirm-msg {
  color: #93a4bd;
}

/* ========== Settings nav responsive + signal card bg ========== */
.set-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 900px) {
  .set-layout {
    grid-template-columns: minmax(12rem, 15rem) minmax(0, 1fr);
  }
}
.set-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: .4rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding: .65rem .55rem;
  border-radius: 1.15rem;
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(11,95,255,.08);
  position: sticky;
  top: .35rem;
  z-index: 12;
}
html.dark .set-nav {
  background: rgba(15, 27, 48, .95);
  border-color: rgba(54,135,255,.16);
}
@media (min-width: 900px) {
  .set-nav {
    flex-direction: column;
    flex-wrap: nowrap;
    overflow: visible;
    position: sticky;
    top: 5.5rem;
    padding: 1rem .85rem;
    border-radius: 1.35rem;
  }
}
.set-nav > .adm-panel-title {
  display: none;
}
@media (min-width: 900px) {
  .set-nav > .adm-panel-title { display: flex; }
}
.set-nav-btn {
  flex: 0 0 auto;
  width: auto;
  min-width: max-content;
  min-height: 2.4rem;
  padding: 0 .85rem;
  border-radius: .85rem;
  font-size: .78rem;
  font-weight: 800;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: #5b7294;
}
@media (min-width: 900px) {
  .set-nav-btn {
    width: 100%;
    min-height: 2.65rem;
    white-space: normal;
  }
}
.set-nav .btn-block {
  flex: 0 0 auto;
  width: auto;
  min-width: max-content;
  white-space: nowrap;
  margin-top: 0 !important;
}
@media (min-width: 900px) {
  .set-nav .btn-block {
    width: 100%;
    margin-top: 1rem !important;
  }
}
.set-nav #setSaveNote {
  display: none;
}
@media (min-width: 900px) {
  .set-nav #setSaveNote { display: block; }
}

/* Sticky save on mobile for settings */
.set-mobile-save {
  display: flex;
  gap: .5rem;
  position: sticky;
  bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
  z-index: 15;
  padding: .55rem;
  background: rgba(247,250,255,.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(11,95,255,.1);
  border-radius: 1rem;
  margin-top: .75rem;
}
html.dark .set-mobile-save {
  background: rgba(10, 18, 32, .92);
  border-color: rgba(54,135,255,.2);
}
@media (min-width: 900px) {
  .set-mobile-save { display: none; }
}

/* Signal card background image support */
.signal-card.has-bg {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.signal-card.has-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,16,32,.55) 0%, rgba(8,16,32,.78) 100%);
  pointer-events: none;
  z-index: 0;
}
.signal-card.has-bg > * {
  position: relative;
  z-index: 1;
}
.signal-card.has-bg .signal-pair-name,
.signal-card.has-bg .signal-pub,
.signal-card.has-bg .signal-details-link,
.signal-card.has-bg .signal-duration,
.signal-card.has-bg .signal-tip-row,
.signal-card.has-bg .signal-cell .lbl,
.signal-card.has-bg .signal-cell .val {
  color: #f8fbff !important;
}
.signal-card.has-bg .signal-cell {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.18);
}
.signal-card.has-bg .pair-badge {
  background: rgba(255,255,255,.18);
  color: #fff;
}

.set-preview-card.has-bg {
  background-size: cover !important;
  background-position: center !important;
  position: relative;
  overflow: hidden;
  min-height: 8rem;
}
.set-preview-card.has-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,16,32,.5), rgba(8,16,32,.75));
}
.set-preview-card.has-bg > * { position: relative; z-index: 1; color: #fff !important; }

.sig-bg-uploader {
  display: grid;
  gap: .75rem;
  margin-top: 1rem;
}
@media (min-width: 560px) {
  .sig-bg-uploader {
    grid-template-columns: 7rem 1fr;
    align-items: stretch;
  }
}
.sig-bg-preview {
  width: 100%;
  min-height: 5.5rem;
  border-radius: 1rem;
  border: 1px dashed rgba(11,95,255,.25);
  background: #f3f7ff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.sig-bg-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
html.dark .sig-bg-preview { background: #12253f; border-color: rgba(54,135,255,.25); }

/* Desktop tabs wrap fix */
body.is-desktop-client.adm-body-page .adm-desktop-tabs {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: .4rem !important;
  overflow: visible !important;
  max-width: min(100%, 80rem);
  margin-inline: auto;
  padding-inline: 1rem;
}
body.is-desktop-client.adm-body-page .adm-desktop-tabs button {
  flex: 0 1 auto;
  max-width: 100%;
}
@media (max-width: 1100px) {
  body.is-desktop-client.adm-body-page .adm-desktop-tabs button {
    font-size: .72rem;
    padding: 0 .7rem;
    min-height: 2.35rem;
  }
}

/* ========== Force mobile-friendly settings tabs (override conflicts) ========== */
@media (max-width: 899px) {
  .set-layout {
    grid-template-columns: 1fr !important;
  }
  .set-nav {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: .4rem !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: .5rem .55rem !important;
    margin: 0 !important;
    position: sticky !important;
    top: .25rem !important;
    z-index: 20 !important;
  }
  .set-nav > .adm-panel-title {
    display: none !important;
  }
  .set-nav > #btnSaveAllSettings,
  .set-nav > .btn-block,
  .set-nav > #setSaveNote {
    display: none !important;
  }
  .set-nav-btn {
    flex: 0 0 auto !important;
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
    width: auto !important;
    max-width: none !important;
    min-width: unset !important;
    min-height: 2.35rem !important;
    height: auto !important;
    padding: .45rem .8rem !important;
    border-radius: 999px !important;
    font-size: .75rem !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: .35rem !important;
    box-sizing: border-box !important;
  }
  .set-nav-btn svg {
    width: .95rem !important;
    height: .95rem !important;
    flex-shrink: 0 !important;
  }
  .set-nav-btn.active {
    flex: 0 0 auto !important;
    width: auto !important;
  }
  .set-mobile-save {
    display: flex !important;
  }
}

/* Hover transitions */
.btn, .btn-ghost, .btn-primary, .icon-btn, .nav-btn, .kind-tabs button,
.set-nav-btn, .chip, .adm-more-item, .signal-card, .card, .glass,
.plan-btn, .adm-desktop-tabs button, .mobile-nav button, .uacc-chip {
  transition: background-color .22s ease, color .22s ease, box-shadow .22s ease,
    border-color .22s ease, transform .18s ease, opacity .2s ease;
}
.btn:hover, .icon-btn:hover, .nav-btn:hover, .kind-tabs button:hover,
.set-nav-btn:hover, .adm-desktop-tabs button:hover {
  transform: translateY(-1px);
}
.btn:active, .icon-btn:active {
  transform: translateY(0);
}
.signal-card:hover, .card:hover {
  transition: box-shadow .25s ease, transform .2s ease;
}

/* Logs panel */
.log-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .log-grid { grid-template-columns: 1fr 1fr; }
}
.log-panel { min-height: 12rem; }
.log-list {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  max-height: 28rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.log-row {
  border: 1px solid rgba(11,95,255,.08);
  border-radius: .9rem;
  padding: .7rem .85rem;
  background: rgba(255,255,255,.6);
}
html.dark .log-row {
  background: rgba(15,27,48,.7);
  border-color: rgba(54,135,255,.14);
}
.log-row-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
}
.log-badge {
  font-size: .65rem;
  font-weight: 800;
  padding: .15rem .5rem;
  border-radius: 999px;
}
.log-badge-admin { background: #eef4ff; color: #0b5fff; }
.log-badge-user { background: #ecfdf5; color: #059669; }
html.dark .log-badge-admin { background: #12253f; color: #7eb6ff; }
html.dark .log-badge-user { background: #0f2a22; color: #34d399; }
.log-action { font-size: .82rem; }
.log-time { margin-inline-start: auto; font-size: .7rem; color: #7a90ad; }
.log-detail { margin-top: .35rem; font-size: .75rem; color: #5b7294; word-break: break-word; }
html.dark .log-detail { color: #8aa0c0; }
