/* ===== الألوان والمتغيرات ===== */
:root {
  --bg: #0a0a0a;
  --bg-2: #120d07;
  --surface: #1a1209;
  --surface-2: #231709;
  --card: linear-gradient(145deg, #2b1b0b, #150e06);
  --border: rgba(255, 170, 80, 0.16);
  --border-strong: rgba(255, 138, 30, 0.42);
  --text: #fdf4ea;
  --muted: #b09983;
  --accent: #ff8a1e;          /* برتقالي — اللون المميز */
  --accent-2: #ff6a00;
  --accent-soft: rgba(255, 138, 30, 0.12);
  --blue: #a85a12;            /* نحاسي للأيقونات */
  --blue-soft: rgba(255, 138, 30, 0.14);
  --radius: 18px;
  --shadow-glow: 0 8px 30px rgba(255, 106, 0, 0.38);
  --shadow-card: 0 14px 40px rgba(0, 0, 0, 0.6);
  --container: 1140px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Cairo", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 16px;
}

.accent {
  color: var(--accent);
}

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.icon--sm {
  width: 15px;
  height: 15px;
}

/* ===== الأزرار ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1d0e00;
  box-shadow: var(--shadow-glow);
}

.btn--primary:hover {
  box-shadow: 0 10px 40px rgba(255, 106, 0, 0.55);
}

.btn--ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--border-strong);
}

.btn--lg {
  padding: 15px 28px;
  font-size: 17px;
  border-radius: 14px;
}

/* ===== الهيدر ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s;
}

.header--scrolled {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 72px;
}

.header__actions {
  display: flex;
  gap: 10px;
}

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

.brand__logo {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 0 10px rgba(255, 138, 30, 0.35));
}

.brand__name {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.3px;
  direction: ltr;
}

.brand__name b {
  color: var(--accent);
  font-weight: 900;
}

/* ===== الواجهة ===== */
.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  min-height: calc(100svh - 72px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-block: 80px;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 138, 30, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 138, 30, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

.hero__glow {
  position: absolute;
  width: 620px;
  height: 620px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 106, 0, 0.18), transparent 65%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 26px;
}

.badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255, 138, 30, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(255, 138, 30, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 138, 30, 0); }
}

.hero__title {
  font-size: clamp(32px, 7vw, 64px);
  font-weight: 900;
  line-height: 1.35;
  margin: 0 0 20px;
}

.underline {
  position: relative;
  display: inline-block;
}

.underline::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 2px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.hero__text {
  max-width: 620px;
  margin: 0 auto 36px;
  color: var(--muted);
  font-size: clamp(16px, 2.2vw, 19px);
}

.hero__cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* ===== الأرقام ===== */
.stats {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border-block: 1px solid var(--border);
  padding-block: 40px;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  text-align: center;
  padding: 12px;
}

.stat + .stat {
  border-inline-start: 1px solid var(--border);
}

.stat__value {
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 900;
  color: var(--accent);
  line-height: 1.3;
}

.stat__label {
  color: var(--muted);
  font-weight: 600;
}

/* ===== الأقسام ===== */
.section {
  padding-block: 90px;
}

.section--alt {
  background: var(--bg-2);
  border-block: 1px solid var(--border);
}

.section--tight {
  padding-block: 60px;
}

.section__head {
  text-align: center;
  margin-bottom: 48px;
}

.section__title {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 900;
  margin: 0 0 8px;
  line-height: 1.4;
}

.section__sub {
  color: var(--muted);
  margin: 0;
  font-size: 17px;
}

/* ===== الكروت ===== */
.cards {
  display: grid;
  gap: 20px;
}

.cards--3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  text-align: center;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 12px 40px rgba(255, 106, 0, 0.12);
}

.card__icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
  color: var(--accent);
}

.card__icon .icon {
  width: 28px;
  height: 28px;
}

.card--service .card__icon {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1d0e00;
  border: 0;
  box-shadow: var(--shadow-glow);
}

.card__title {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 8px;
}

.card__text {
  color: var(--muted);
  margin: 0;
}

.card--about {
  text-align: start;
  padding: 34px;
}

.card--about .card__title {
  margin-bottom: 12px;
}

/* ===== الخطوات ===== */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: none;
}

.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
}

.step__num {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  margin-bottom: 14px;
  font-weight: 900;
  font-size: 20px;
  color: #1d0e00;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: var(--shadow-glow);
}

/* ===== الفوتر ===== */
.footer {
  border-top: 1px solid var(--border);
  padding-block: 44px 100px;
  background: var(--bg-2);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  font-weight: 700;
  color: var(--muted);
}

.footer__links a:hover {
  color: var(--accent);
}

.footer__copy {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* ===== أزرار التواصل ===== */
.floating {
  position: fixed;
  bottom: 22px;
  left: 18px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.floating__btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s;
}

.floating__btn:hover {
  transform: scale(1.08);
}

.floating__btn svg {
  width: 28px;
  height: 28px;
}

.floating__btn--tg {
  background: #229ed9;
}

.floating__btn--wa {
  background: #25d366;
}

/* ===== حركة الظهور ===== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .badge__dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ===== الموبايل ===== */
@media (max-width: 900px) {
  .cards--3,
  .steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .header__inner {
    height: 64px;
  }

  .header .brand__name {
    display: none;
  }

  .header__actions .btn {
    padding: 9px 14px;
    font-size: 14px;
  }

  .hero {
    min-height: calc(100svh - 64px);
  }

  .hero__cta .btn {
    flex: 1 1 100%;
  }

  .stats__grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 18px;
  }

  .stat:nth-child(3) {
    border-inline-start: 0;
  }

  .cards--3,
  .steps {
    grid-template-columns: 1fr;
  }

  .section {
    padding-block: 64px;
  }

  .card--about {
    padding: 26px;
  }
}

/* =========================================================
   مشترك: فورمات، أدوات، رسائل
   ========================================================= */
[hidden] {
  display: none !important;
}

.muted {
  color: var(--muted);
}

.brand--center {
  flex-direction: column;
  gap: 8px;
}

.btn--block {
  width: 100%;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

.field {
  display: block;
  margin-bottom: 16px;
  text-align: start;
}

.field__label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
}

.field__hint {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

.input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.input--file {
  padding: 10px;
  font-size: 14px;
}

.input--file::file-selector-button {
  font: inherit;
  font-weight: 700;
  margin-inline-end: 10px;
  padding: 6px 12px;
  border: 0;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  cursor: pointer;
}

.form-error {
  min-height: 1.4em;
  margin: 0 0 12px;
  color: #ff6b6b;
  font-weight: 600;
  font-size: 14px;
}

.form-error:empty {
  min-height: 0;
  margin: 0;
}

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2.5px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

.loader {
  display: flex;
  justify-content: center;
  padding: 40px;
  color: var(--accent);
}

.empty {
  text-align: center;
  padding: 40px 16px;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  flex-shrink: 0;
}

.icon-btn:hover {
  border-color: var(--border-strong);
  color: var(--accent);
}

.icon-btn--sm {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--border-strong);
}

.pill--ok {
  background: rgba(46, 204, 113, 0.12);
  color: #2ecc71;
  border-color: rgba(46, 204, 113, 0.35);
}

.toasts {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(92vw, 420px);
  pointer-events: none;
}

.toast {
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: toast-in 0.25s ease;
  transition: opacity 0.4s, transform 0.4s;
}

.toast--err {
  border-color: rgba(255, 107, 107, 0.5);
  color: #ffb3b3;
}

.toast.is-out {
  opacity: 0;
  transform: translateY(-8px);
}

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

/* =========================================================
   صفحات الدخول والتسجيل
   ========================================================= */
.auth-page {
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
}

.auth-page .hero__grid {
  position: fixed;
}

.auth {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.auth__brand {
  margin-bottom: 24px;
}

.auth__brand .brand__logo {
  width: 60px;
  height: 60px;
}

.auth__card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 30px 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 80px rgba(255, 106, 0, 0.06);
}

.auth__title {
  margin: 0;
  font-size: 26px;
  font-weight: 900;
  text-align: center;
}

.auth__sub {
  margin: 4px 0 24px;
  text-align: center;
  color: var(--muted);
}

.auth__switch {
  margin: 18px 0 0;
  text-align: center;
  color: var(--muted);
}

.auth__switch a {
  font-weight: 700;
}

/* =========================================================
   لوحة المستخدم
   ========================================================= */
.app-page {
  --sidebar: 260px;
  --topbar: 64px;
}

/* --- القائمة الجانبية --- */
.sidebar {
  position: fixed;
  inset-block: 0;
  inset-inline-start: 0;
  width: var(--sidebar);
  z-index: 70;
  display: flex;
  flex-direction: column;
  background: var(--bg-2);
  border-inline-end: 1px solid var(--border);
  padding: 18px 14px;
  overflow-y: auto;
}

.sidebar__brand {
  padding: 4px 8px 20px;
}

.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.sidebar__nav a,
.sidebar__logout {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  font-weight: 700;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
}

.sidebar__nav a:hover {
  color: var(--text);
  background: var(--surface);
}

.sidebar__nav a.is-active {
  color: var(--accent);
  background: var(--accent-soft);
}

.sidebar__logout {
  margin-top: 12px;
  border: 1px solid var(--border);
  background: none;
  font-size: 15px;
}

.sidebar__logout:hover {
  color: #ff6b6b;
  border-color: rgba(255, 107, 107, 0.4);
}

.scrim {
  display: none;
}

/* --- الشريط العلوي --- */
.app {
  margin-inline-start: var(--sidebar);
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--topbar);
  display: flex;
  align-items: center;
  gap: 12px;
  padding-inline: 20px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.topbar__menu,
.topbar__brand {
  display: none;
}

.topbar__brand .brand__logo {
  width: 36px;
  height: 36px;
}

.topbar__title {
  flex: 1;
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.balance-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
  color: var(--accent);
  font-weight: 800;
  white-space: nowrap;
}

.balance-chip small {
  font-size: 11px;
  opacity: 0.8;
}

/* --- المحتوى --- */
.content {
  max-width: 900px;
  margin-inline: auto;
  padding: 24px 20px 48px;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
  animation: view-in 0.3s ease;
}

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

.view__h {
  margin: 32px 0 14px;
  font-size: 18px;
  font-weight: 800;
}

.view__intro {
  margin: 0 0 18px;
}

.welcome h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
}

.welcome p {
  margin: 0 0 18px;
}

.card.form-card,
.card.info-list,
.card.tx-list,
.card.empty-card {
  text-align: start;
}

.card.form-card:hover,
.card.info-list:hover,
.card.tx-list:hover,
.card.empty-card:hover {
  transform: none;
  box-shadow: none;
}

.card.empty-card {
  text-align: center;
  margin-bottom: 16px;
}

.card.empty-card .btn {
  margin-top: 18px;
}

.form-card {
  padding: 24px 20px;
  margin-top: 16px;
  scroll-margin-top: 80px;
}

/* --- كرت الرصيد --- */
.balance-card {
  position: relative;
  overflow: hidden;
  padding: 24px 22px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 138, 30, 0.28), transparent 55%),
    linear-gradient(135deg, #1f150c, #120d09);
  border: 1px solid var(--border-strong);
  box-shadow: 0 16px 50px rgba(255, 106, 0, 0.12);
}

.balance-card__label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

.balance-card__value {
  font-size: clamp(34px, 8vw, 46px);
  font-weight: 900;
  line-height: 1.3;
  direction: ltr;
  text-align: right;
}

.balance-card__value small {
  font-size: 16px;
  color: var(--accent);
}

.balance-card__sub {
  color: var(--muted);
  font-size: 14px;
}

.balance-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

/* --- الإحصائيات --- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.stat-grid--2 {
  grid-template-columns: 1fr 1fr;
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.tile__label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.tile__value {
  font-size: 22px;
  font-weight: 900;
  color: var(--accent);
  direction: ltr;
  text-align: right;
}

/* --- الاختصارات --- */
.shortcuts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.shortcut {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}

.shortcut:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.shortcut__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
}

.shortcut__icon .icon {
  width: 24px;
  height: 24px;
}

/* --- روابط التواصل --- */
.socials {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 6px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  transition: transform 0.2s, border-color 0.2s;
}

.social svg {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 50%;
  background: var(--c);
  color: #fff;
}

.social:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.social.is-off {
  opacity: 0.45;
}

/* --- حساب تكساس --- */
.info-list {
  padding: 8px 18px;
  margin-top: 16px;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
}

.info-row + .info-row {
  border-top: 1px solid var(--border);
}

.info-row__label {
  color: var(--muted);
  font-weight: 600;
  min-width: 90px;
}

.info-row__value {
  flex: 1;
  font-weight: 800;
  text-align: left;
  overflow-wrap: anywhere;
}

[data-secret]:not(.is-shown) {
  -webkit-text-security: disc;
  filter: blur(5px);
  user-select: none;
}

/* --- طرق الدفع --- */
.methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.method {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 10px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font: inherit;
  transition: border-color 0.2s, background 0.2s;
}

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

.method.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.method.is-off {
  opacity: 0.45;
}

.method__icon {
  font-size: 30px;
  line-height: 1;
}

.method__name {
  font-weight: 800;
}

.method__min {
  font-size: 12px;
  color: var(--muted);
}

.copy-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 18px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px dashed var(--border-strong);
}

.copy-box code {
  flex: 1;
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  overflow-wrap: anywhere;
  text-align: left;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 18px;
}

.chip {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
}

.net {
  margin: -4px 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--accent-soft);
  font-weight: 700;
}

.net b {
  color: var(--accent);
}

/* --- السجلات --- */
.tx-list {
  padding: 4px 16px;
}

.tx {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
}

.tx + .tx {
  border-top: 1px solid var(--border);
}

.tx__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  flex-shrink: 0;
  background: rgba(46, 204, 113, 0.12);
  color: #2ecc71;
}

.tx__icon--out {
  background: var(--accent-soft);
  color: var(--accent);
}

.tx__main {
  flex: 1;
  min-width: 0;
}

.tx__type {
  font-weight: 800;
}

.tx__id {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.tx__meta {
  font-size: 13px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tx__side {
  text-align: left;
  flex-shrink: 0;
}

.tx__amount {
  font-weight: 900;
  direction: ltr;
}

.status {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 999px;
}

.status--done { background: rgba(46, 204, 113, 0.12); color: #2ecc71; }
.status--pending { background: rgba(241, 196, 15, 0.12); color: #f1c40f; }
.status--rejected { background: rgba(255, 107, 107, 0.12); color: #ff6b6b; }

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
  font-weight: 700;
}

/* --- ربح الرصيد --- */
.earn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.earn-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 28px 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font: inherit;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.earn-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: 0 12px 40px rgba(255, 106, 0, 0.12);
}

.earn-card__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 8px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1d0e00;
  box-shadow: var(--shadow-glow);
}

.earn-card__icon .icon {
  width: 30px;
  height: 30px;
}

.earn-card__title {
  font-size: 18px;
  font-weight: 800;
}

.earn-card__text {
  color: var(--muted);
  font-size: 14px;
}

.earn-card .pill {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
}

/* --- النافذة المنبثقة --- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.2s;
}

.modal.is-open {
  opacity: 1;
}

.modal__box {
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  transform: translateY(12px);
  transition: transform 0.2s;
}

.modal.is-open .modal__box {
  transform: none;
}

.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.modal__title {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
}

.modal__body .card__text {
  margin-bottom: 14px;
}

/* --- الشريط السفلي --- */
.bottomnav {
  display: none;
}

/* =========================================================
   لوحة الإدارة
   ========================================================= */
.content--wide {
  max-width: 1100px;
}

.sidebar__nav .pill {
  margin-inline-start: auto;
}

.sidebar__nav a.admin-link {
  color: var(--accent);
  border: 1px dashed var(--border-strong);
  margin-top: 8px;
}

.btn--danger {
  color: #ff6b6b;
  border-color: rgba(255, 107, 107, 0.35);
}

.btn--danger:hover {
  border-color: rgba(255, 107, 107, 0.7);
}

.btn--xs {
  padding: 3px 10px;
  font-size: 12px;
  border-radius: 8px;
}

.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 18px;
  margin-bottom: 4px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 700;
}

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

.request {
  text-align: start;
  padding: 20px;
  margin-bottom: 14px;
}

.request:hover {
  transform: none;
}

.request__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.request__head .muted {
  margin-inline-start: auto;
  font-size: 13px;
}

.request__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.request__grid div {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-wrap: anywhere;
}

.request__grid .muted {
  font-size: 12px;
}

.request__grid a {
  color: var(--accent);
  text-decoration: underline;
}

.request__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.search {
  position: relative;
  margin-bottom: 16px;
}

.search .icon {
  position: absolute;
  top: 50%;
  inset-inline-start: 14px;
  transform: translateY(-50%);
  color: var(--muted);
}

.search .input {
  padding-inline-start: 44px;
}

button.user-row {
  width: 100%;
  background: none;
  border: 0;
  border-radius: 0;
  color: inherit;
  font: inherit;
  text-align: start;
}

button.user-row:hover .tx__type {
  color: var(--accent);
}

.user-row .tx__icon {
  font-weight: 900;
  background: var(--accent-soft);
  color: var(--accent);
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0 16px;
  margin-top: 12px;
}

.form-row {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0 12px;
}

.form-row .field {
  flex: 1 1 200px;
}

.form-row .btn {
  margin-bottom: 16px;
}

.form-row--tight {
  margin-top: 16px;
}

.modal__box--wide {
  max-width: 620px;
}

@media (max-width: 640px) {
  .stat-grid--3 {
    grid-template-columns: 1fr 1fr;
  }

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

  .form-row .btn {
    flex: 1;
  }
}

/* --- الموبايل والتابلت --- */
@media (max-width: 1023px) {
  .sidebar {
    transform: translateX(100%);
    transition: transform 0.25s ease;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.6);
  }

  .menu-open .sidebar {
    transform: none;
  }

  .menu-open .scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 65;
    background: rgba(0, 0, 0, 0.6);
  }

  .app {
    margin-inline-start: 0;
  }

  .topbar {
    padding-inline: 12px;
  }

  .topbar__menu,
  .topbar__brand {
    display: inline-grid;
  }

  .content {
    padding: 18px 16px calc(96px + env(safe-area-inset-bottom));
  }

  .bottomnav {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: end;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: rgba(17, 17, 17, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
  }

  .bottomnav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 0;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
  }

  .bottomnav a.is-active {
    color: var(--accent);
  }

  .bottomnav__main span {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-top: -26px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #1d0e00;
    box-shadow: var(--shadow-glow);
    border: 4px solid var(--bg);
  }
}

@media (max-width: 640px) {
  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .shortcuts {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  .shortcut {
    padding: 12px 4px;
    font-size: 12px;
  }

  .shortcut__icon {
    width: 42px;
    height: 42px;
  }

  .socials {
    gap: 6px;
  }

  .social {
    padding: 10px 2px;
    font-size: 11px;
  }

  .social svg {
    width: 38px;
    height: 38px;
    padding: 9px;
  }

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

  .balance-chip {
    padding: 6px 10px;
    font-size: 14px;
  }
}

/* =========================================================
   واجهة Syria Ichancy — المكونات الجديدة
   ========================================================= */
body.app-page {
  background:
    radial-gradient(900px 500px at 100% -10%, rgba(255, 106, 0, 0.18), transparent 60%),
    radial-gradient(700px 400px at 0% 10%, rgba(255, 180, 60, 0.06), transparent 55%),
    var(--bg);
  background-attachment: fixed;
}

/* --- شريط الترحيب --- */
.appbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0 18px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--card);
  border: 2px solid var(--border-strong);
  color: var(--accent);
  font-weight: 900;
  font-size: 20px;
}

.appbar__text {
  flex: 1;
  min-width: 0;
}

.appbar__hello {
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--muted);
  font-weight: 700;
}

.appbar__name {
  font-size: 19px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --- شريط الأرقام --- */
.chips-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.chips-row::-webkit-scrollbar {
  display: none;
}

.stat-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 0 auto;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border-strong);
  font-weight: 800;
  white-space: nowrap;
}

.stat-chip .icon {
  width: 17px;
  height: 17px;
  color: var(--accent);
}

.stat-chip small {
  color: var(--muted);
  font-weight: 600;
  font-size: 11px;
}

/* --- كرت المحفظتين --- */
.wallets {
  position: relative;
  margin-top: 16px;
  padding: 22px;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.wallets::after {
  content: "";
  position: absolute;
  top: -60px;
  inset-inline-start: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 138, 30, 0.18), transparent 70%);
  pointer-events: none;
}

.wallet + .wallet {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.wallet__label {
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}

.wallet__label b {
  color: var(--accent);
}

.wallet__value {
  font-size: clamp(30px, 8vw, 42px);
  font-weight: 900;
  line-height: 1.25;
  direction: ltr;
  text-align: right;
}

.wallet__value small {
  font-size: 15px;
  color: var(--muted);
}

.wallets__eye {
  position: absolute;
  top: 18px;
  inset-inline-start: 18px;
  z-index: 1;
}

.is-hidden-money .wallet__value {
  filter: blur(9px);
  user-select: none;
}

/* --- أزرار سريعة --- */
.quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.quick__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 6px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  line-height: 1.4;
  transition: transform 0.2s, border-color 0.2s;
}

.quick__btn:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.quick__btn span.quick__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--blue-soft);
  border: 1px solid var(--border);
  color: var(--accent);
}

.quick__btn small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* --- صفوف الخدمات --- */
.rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.row-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  font: inherit;
  text-align: start;
  transition: transform 0.2s, border-color 0.2s;
}

.row-card:hover {
  transform: translateX(-4px);
  border-color: var(--border-strong);
}

.row-card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(145deg, #3a2410, #1d1208);
  border: 1px solid var(--border);
  color: var(--accent);
}

.row-card__main {
  flex: 1;
  min-width: 0;
}

.row-card__title {
  font-size: 17px;
  font-weight: 800;
}

.row-card__text {
  font-size: 13px;
  color: var(--muted);
}

.row-card__text b {
  color: var(--accent);
  font-weight: 700;
}

.row-card__arrow {
  color: var(--muted);
  flex-shrink: 0;
}

.row-card .pill {
  flex-shrink: 0;
}

/* --- تبويبات --- */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  flex: 1 0 auto;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  white-space: nowrap;
}

.tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #1d0e00;
  box-shadow: var(--shadow-glow);
}

/* --- صفحة حسابي --- */
.profile-card {
  position: relative;
  margin-top: 34px;
  padding: 36px 20px 20px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--border);
  text-align: center;
  box-shadow: var(--shadow-card);
}

.profile-card .avatar {
  position: absolute;
  top: -32px;
  inset-inline: 0;
  margin-inline: auto;
  width: 64px;
  height: 64px;
  font-size: 24px;
  background: linear-gradient(145deg, #3a2410, #1d1208);
}

.profile-card__name {
  font-size: 21px;
  font-weight: 900;
  direction: ltr;
}

.profile-card__sub {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}

.info-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 10px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  font: inherit;
  text-align: center;
}

.info-tile .icon {
  width: 26px;
  height: 26px;
  color: var(--accent);
}

.info-tile__label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}

.info-tile__value {
  font-weight: 900;
  direction: ltr;
  overflow-wrap: anywhere;
}

/* --- الشريط السفلي بزر وسط --- */
.tabbar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  background: rgba(18, 13, 7, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
}

.tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.tabbar a .icon {
  width: 21px;
  height: 21px;
}

.tabbar a.is-active {
  color: var(--accent);
}

.tabbar__play span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-top: -30px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  color: #1d0e00;
  border: 5px solid var(--bg);
  box-shadow: var(--shadow-glow);
}

.tabbar__play span .icon {
  width: 26px;
  height: 26px;
}

/* --- نافذة اللعب --- */
.play-note {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

/* --- الشريط السفلي يظهر على الموبايل بس --- */
.tabbar { display: none; }

.quick--2 {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 1023px) {
  .tabbar { display: grid; }
}

@media (min-width: 1024px) {
  .appbar [data-open-menu] { display: none; }
  .content { padding-top: 8px; }
}

@media (max-width: 420px) {
  .quick { gap: 8px; }
  .quick__btn { padding: 12px 4px; font-size: 11px; border-radius: 15px; }
  .quick__btn span.quick__icon { width: 38px; height: 38px; }
  .info-tile { padding: 16px 8px; }
}

/* تصحيحات: عناوين الصفوف أسطر منفصلة، ومساحة لزر العين */
.row-card__main { display: flex; flex-direction: column; gap: 2px; }
.row-card__title, .row-card__text { display: block; }
.wallets > .wallet:first-of-type .wallet__label { padding-inline-start: 46px; }
.quick__btn small { display: block; }

/* =========================================================
   لوحة القيادة (الإشراف)
   ========================================================= */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.kpi {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, border-color 0.2s;
}

.kpi:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.kpi::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: 4px;
  background: var(--kpi, var(--accent));
}

.kpi::after {
  content: "";
  position: absolute;
  top: -70px;
  inset-inline-start: -40px;
  width: 170px;
  height: 170px;
  background: radial-gradient(circle, var(--kpi, var(--accent)), transparent 70%);
  opacity: 0.18;
  pointer-events: none;
}

.kpi--teal { --kpi: #19c7a4; }
.kpi--green { --kpi: #2ecc71; }
.kpi--gold { --kpi: #ff8a1e; }
.kpi--blue { --kpi: #3b82f6; }
.kpi--violet { --kpi: #a855f7; }
.kpi--red { --kpi: #ff5f56; }

.kpi__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.kpi__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--kpi, var(--accent));
  color: #10100c;
}

.kpi__badge {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  white-space: nowrap;
}

.kpi__value {
  font-size: 28px;
  font-weight: 900;
  direction: ltr;
  text-align: right;
  line-height: 1.2;
}

.kpi__label {
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}

/* --- اللوحات --- */
.panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.panel {
  min-width: 0;
  padding: 20px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.panel--wide {
  grid-column: span 2;
}

.panel__title {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 800;
}

.legend {
  display: flex;
  gap: 16px;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.legend--col {
  flex-direction: column;
  gap: 8px;
}

.legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-inline-end: 6px;
}

.legend b {
  color: var(--text);
}

.chart {
  width: 100%;
  height: auto;
  overflow: visible;
}

.chart__tick {
  fill: var(--muted);
  font-size: 10px;
  font-family: inherit;
}

.donut {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.donut__svg {
  width: 150px;
  height: 150px;
  flex-shrink: 0;
}

.donut__total {
  fill: var(--text);
  font-size: 24px;
  font-weight: 900;
  font-family: inherit;
}

/* --- أعمدة --- */
.bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bar-row {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
}

.bar-row__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: start;
}

.bar-row__track {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.bar-row__fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
}

.bar-row__value {
  color: var(--accent);
  direction: ltr;
}

/* --- جدول --- */
.table-wrap {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  white-space: nowrap;
}

.table th {
  text-align: start;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
}

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

.table a {
  color: var(--accent);
}

.table__num {
  direction: ltr;
  text-align: start;
}

.table__date {
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.quick-links .row-card {
  padding: 14px 16px;
}

@media (max-width: 860px) {
  .panels { grid-template-columns: 1fr; }
  .panel--wide { grid-column: span 1; }
  .kpi__value { font-size: 24px; }
}

/* --- كروت طرق الدفع بلوحة الإشراف --- */
.pay-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.pay-card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
  font-size: 22px;
  overflow: hidden;
  flex-shrink: 0;
}

.pay-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pay-card__head .card__title {
  margin: 0;
  flex: 1;
}

.pay-card__qr {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border);
}

/* --- كروت صغيرة بملف المستخدم --- */
.mini-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.mini-kpi {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.mini-kpi__label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.mini-kpi__value {
  display: block;
  font-size: 19px;
  font-weight: 900;
  direction: ltr;
  text-align: right;
}

.mini-kpi.is-gold .mini-kpi__value { color: var(--accent); }
.mini-kpi.is-green .mini-kpi__value { color: #2ecc71; }

/* --- شريط فلترة التواريخ --- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  padding: 16px;
  margin-bottom: 16px;
}

.filter-bar .field {
  flex: 1 1 150px;
  margin-bottom: 0;
}

.filter-bar .input[type="date"] {
  color-scheme: dark;
}

/* --- جدول المستخدمين --- */
.table--users td {
  vertical-align: middle;
}

.table__actions {
  display: flex;
  gap: 6px;
  white-space: nowrap;
}

.table .accent { color: var(--accent); }

textarea.input {
  resize: vertical;
  min-height: 90px;
  font-family: inherit;
}

select.input {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
                    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(14px) calc(50% - 2px), calc(19px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

/* --- الجرس بلوحة المستخدم --- */
.bell {
  position: relative;
}

.bell__dot {
  position: absolute;
  top: -4px;
  inset-inline-end: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ff3b30;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 2px var(--bg);
}

.bell.has-unread {
  color: #ff3b30;
  border-color: rgba(255, 59, 48, 0.5);
  animation: bell-pulse 2s infinite;
}

@keyframes bell-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.4); }
  50% { box-shadow: 0 0 0 7px rgba(255, 59, 48, 0); }
}

.notif {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  text-align: start;
}

.notif + .notif {
  border-top: 1px solid var(--border);
}

.notif__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
  background: transparent;
}

.notif.is-unread .notif__dot {
  background: #ff3b30;
}

.notif__title {
  font-weight: 800;
}

.notif__body {
  color: var(--muted);
  font-size: 14px;
}

.notif__time {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

/* --- صورة الباركود بصفحة الإيداع --- */
.pay-media {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.pay-media img.pay-media__logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.pay-qr {
  display: block;
  width: min(220px, 60%);
  margin: 0 auto 14px;
  border-radius: 16px;
  border: 1px solid var(--border-strong);
  background: #fff;
  padding: 8px;
}

.pay-note {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
  font-weight: 700;
  margin-bottom: 14px;
}

.pay-bonus {
  display: inline-block;
  margin-inline-start: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(46, 204, 113, 0.14);
  color: #2ecc71;
  font-size: 12px;
  font-weight: 800;
}

/* =========================================================
   البنرات وعجلة الحظ
   ========================================================= */
.banners {
  position: relative;
  margin-bottom: 18px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.banners__track {
  display: flex;
  transition: transform 0.5s ease;
}

.banner {
  flex: 0 0 100%;
  display: block;
  /* مقاس ثابت للبنر مهما كانت الصورة المرفوعة (مستطيل رفيع) */
  aspect-ratio: 3 / 1;
  background: var(--surface);
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;      /* الصورة بتتقص لتملا المستطيل بدون ما تتمدد */
  object-position: center;
  display: block;
}

@media (max-width: 520px) {
  .banner { aspect-ratio: 2.4 / 1; }
}

.banners__dots {
  position: absolute;
  inset-inline: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.banners__dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.3s, background 0.3s;
}

.banners__dot.is-active {
  width: 20px;
  background: var(--accent);
}

/* --- العجلة --- */
.wheel-note {
  position: relative;
  margin: 0 0 20px;
  padding: 16px 20px 16px 20px;
  border-radius: 16px;
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
  border-inline-start: 4px solid var(--accent);
  font-weight: 700;
  line-height: 1.8;
}

.wheel-note::before {
  content: "❝";
  color: var(--accent);
  font-size: 22px;
  margin-inline-end: 6px;
  vertical-align: -4px;
}

.wheel {
  position: relative;
  width: min(330px, 86vw);
  margin: 0 auto 22px;
  aspect-ratio: 1;
}

.wheel__svg {
  width: 100%;
  height: 100%;
  transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 1);
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.55));
}

.wheel__label {
  fill: #fff;
  font-size: 9px;
  font-weight: 800;
  font-family: inherit;
  text-anchor: middle;
  dominant-baseline: middle;
  paint-order: stroke;
  stroke: rgba(0, 0, 0, 0.35);
  stroke-width: 2px;
}

.wheel__pin {
  position: absolute;
  top: -6px;
  inset-inline-start: 50%;
  transform: translateX(50%);
  width: 0;
  height: 0;
  z-index: 2;
  border-inline: 13px solid transparent;
  border-top: 26px solid var(--accent);
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.6));
}

.wheel__spin {
  position: relative;
}

.wheel__count {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  margin-inline-start: 8px;
  border-radius: 999px;
  background: #ff3b30;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.wheel__hint {
  text-align: center;
  margin-top: 10px;
}

.prize {
  text-align: center;
  padding: 10px 0;
}

.prize__label {
  font-size: 22px;
  font-weight: 900;
}

.prize__amount {
  font-size: 38px;
  font-weight: 900;
  color: var(--accent);
  direction: ltr;
  margin: 6px 0;
}

/* --- محرر جوائز العجلة بلوحة الإشراف --- */
.prize-row {
  display: grid;
  grid-template-columns: 1.5fr 1.2fr 0.9fr 0.7fr 0.7fr 58px 50px 36px;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.prize-row .input {
  padding: 9px 10px;
  font-size: 14px;
}

.prize-row input[type="color"] {
  padding: 2px;
  height: 40px;
  cursor: pointer;
}

.prize-head {
  display: grid;
  grid-template-columns: 1.5fr 1.2fr 0.9fr 0.7fr 0.7fr 58px 50px 36px;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 6px;
}

/* --- رفع الصور --- */
.uploader {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.uploader__preview {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--surface);
}

.banner-admin {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}

.banner-admin + .banner-admin {
  border-top: 1px solid var(--border);
}

.banner-admin img {
  width: 110px;
  height: 62px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.banner-admin__main {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.prize-chance {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
  text-align: center;
}

@media (max-width: 760px) {
  .prize-row, .prize-head { grid-template-columns: 1.4fr 1.1fr 0.8fr 0.7fr 50px 32px; }
  .prize-row .prize-weight, .prize-head span.prize-weight,
  .prize-row .prize-chance, .prize-head span:nth-child(6) { display: none; }
}

/* =========================================================
   الصفحة الرئيسية — الشكل الجديد
   ========================================================= */
.wallet-duo {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.wallet-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.wallet-card--main {
  border-color: var(--border-strong);
}

.wallet-card--main::after {
  content: "";
  position: absolute;
  top: -80px;
  inset-inline-start: -50px;
  width: 190px;
  height: 190px;
  background: radial-gradient(circle, rgba(255, 138, 30, 0.22), transparent 70%);
  pointer-events: none;
}

.wallet-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.wallet-card__tag {
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}

.wallet-card--main .wallet-card__tag {
  color: var(--accent);
}

.wallet-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}

.wallet-card__link {
  margin-top: auto;
  padding-top: 10px;
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.wallet__value--sm {
  font-size: clamp(22px, 6vw, 30px);
}

/* --- صف الإجراءات الدائرية --- */
.actions-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 8px;
  scrollbar-width: none;
}

.actions-row::-webkit-scrollbar {
  display: none;
}

.action {
  flex: 0 0 auto;
  width: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.action__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--accent);
  transition: transform 0.2s, border-color 0.2s;
}

.action:hover .action__icon {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.action__icon--glow {
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  color: #1d0e00;
  border: 0;
  box-shadow: var(--shadow-glow);
}

/* --- شبكة الخدمات --- */
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.service {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 16px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  font: inherit;
  text-align: start;
  transition: transform 0.2s, border-color 0.2s;
}

.service:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.service__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 8px;
  border-radius: 13px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  color: var(--accent);
}

.service--accent {
  background: linear-gradient(145deg, #3a2410, #1d1208);
  border-color: var(--border-strong);
}

.service--accent .service__icon {
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  color: #1d0e00;
  border: 0;
}

.service__title {
  font-size: 15px;
  font-weight: 800;
}

.service__text {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 420px) {
  .wallet-duo { grid-template-columns: 1fr; }
  .wallet-card--site { flex-direction: row; align-items: center; gap: 12px; }
  .wallet-card--site .wallet-card__top { flex: 1; }
  .wallet-card--site .wallet__value--sm { font-size: 22px; }
  .wallet-card--site .wallet-card__link { margin: 0; padding: 0; }
}

/* --- توقيع المطوّر --- */
.devby {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: center;
  margin-top: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}

.devby:hover {
  color: var(--text);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.devby b {
  color: var(--accent);
  font-weight: 800;
}

.devby svg {
  width: 16px;
  height: 16px;
  color: #229ed9;
  flex-shrink: 0;
}
