@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800&display=swap');

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

:root {
  --gold: #C9A84C;
  --gold-light: #EED180;
  --gold-dark: #D8B24A;
  --gold-champagne: #F7EAC2;
  --gold-deep: #7E6224;
  --gold-glow: rgba(232,201,107,0.35);
  --cream: #14100a;
  --cream-dark: #35291a;
  --brown: #241a10;
  --brown-light: #5C4033;
  --green: #45a877;
  --red: #e06552;
  --text: #f3ecda;
  --text-muted: #b3a488;
  --surface: #1e1810;
  --surface-hi: #241d12;
  --hairline: rgba(201,168,76,0.16);
  --hairline-soft: rgba(201,168,76,0.10);
  --gold-grad: linear-gradient(135deg, #F7EAC2 0%, #EBCE78 34%, #C9A84C 64%, #9C7C34 100%);
  --gold-grad-soft: linear-gradient(135deg, #E8C96B 0%, #C9A84C 100%);
  --card-shadow: 0 14px 34px -16px rgba(0,0,0,0.7), 0 2px 8px -4px rgba(0,0,0,0.5);
  --card-hi: inset 0 1px 0 rgba(247,234,194,0.07);
}

html, body {
  height: 100%;
  overflow: hidden;
}
body {
  font-family: 'Vazirmatn', sans-serif;
  background: #0b0907;
  color: var(--text);
}

.label {
  color: var(--text-muted);
  font-family: 'Vazirmatn', sans-serif;
  font-size:12px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 12px;
}

/* ── PHONE FRAME ── */
.phone {
  width: 390px;
  max-width: 100%;
  height: 100vh;
  height: 100dvh;
  background: #14100a;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 30px 60px -28px rgba(0,0,0,0.75);
  border: 9px solid #0b0a08;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
}
/* محتوای وسط، تنها بخش اسکرول‌شونده — این‌طوری نوار پایین/هدر همیشه سرجای خودشون می‌مانند، حتی وقتی محتوا کم است */
.phone-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
.confirm-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.55); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 50; }
.confirm-modal { background:#211b12; border: 1px solid var(--cream-dark); border-radius: 20px; padding: 24px 20px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,0.6); width: 100%; max-height: 90%; overflow-y: auto; }

.status-bar {
  position: relative;
  background: var(--brown);
  padding: max(10px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 6px max(20px, env(safe-area-inset-left));
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size:11px;
  color: var(--gold-light);
}
.status-bar::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, rgba(232,201,107,0), rgba(232,201,107,0.4), rgba(232,201,107,0));
}

.header {
  position: sticky;
  top: 0;
  z-index: 5;
  background:
    radial-gradient(140% 130% at 100% 0%, rgba(232,201,107,0.14) 0%, rgba(232,201,107,0) 55%),
    linear-gradient(135deg, #2c2013 0%, #17110a 100%);
  padding: 16px 20px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: none;
  box-shadow: 0 14px 30px -22px rgba(0,0,0,0.60);
}
.header::after, .admin-header::after {
  content: ''; position: absolute; left: 18px; right: 18px; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232,201,107,0.55), transparent);
}

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

.logo-circle, .auth-logo, .support-hero-logo, .receipt-logo, .menu-avatar {
  background: radial-gradient(circle at 32% 26%, #57391a 0%, #241305 78%);
  border: 2px solid var(--gold);
  box-shadow: 0 4px 18px rgba(0,0,0,0.55), inset 0 1px 8px rgba(255,224,150,0.28);
  color: var(--gold-light);
  font-family: Georgia, 'Times New Roman', serif;
  letter-spacing: 1.5px;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  line-height: 1;
  text-shadow: 0 1px 3px rgba(0,0,0,0.45);
}
.logo-circle {
  position: relative; width: 46px; height: 46px; border-radius: 50%;
  font-size:17px; font-weight: 800; overflow: hidden;
}
.logo-circle::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.55) 48%, transparent 60%);
  transform: translateX(-120%);
  animation: sheen 5.5s ease-in-out 1.2s infinite;
}
.logo-circle::before, .auth-logo::before, .support-hero-logo::before, .receipt-logo::before {
  content: '⚜'; font-size: 0.42em; color: var(--gold); margin-bottom: 2px; text-shadow: none;
}

.logo-text { color: white; font-size:17px; font-weight: 700; line-height: 1.2; }
.logo-text span { color: var(--gold-light); font-size:12px; font-weight: 400; display: block; }

.menu-btn {
  width: 36px; height: 36px; border-radius: 12px; background: rgba(255,255,255,0.1);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; cursor: pointer;
}
.menu-btn div { width: 18px; height: 2px; background: var(--gold-light); border-radius: 4px; }

.account-card {
  margin: 16px; background: linear-gradient(135deg, var(--brown) 0%, #4a3020 100%);
  border-radius: 20px; padding: 16px; border: 1px solid rgba(201,168,76,0.3); box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.account-title { color: var(--gold-light); font-size:11px; font-weight: 500; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; }
.refresh-icon { width: 18px; height: 18px; border: 2px solid var(--gold); border-radius: 50%; border-top-color: transparent; display: inline-block; }
.balance-row { display: flex; justify-content: space-between; align-items: center; }
.balance-item { text-align: center; }
.balance-value { color: var(--gold-light); font-size:17px; font-weight: 700; }
.balance-unit { color: rgba(255,255,255,0.5); font-size:10px; margin-top: 2px; }
.balance-divider { width: 1px; height: 40px; background: linear-gradient(180deg, rgba(201,168,76,0) 0%, rgba(201,168,76,0.45) 50%, rgba(201,168,76,0) 100%); }
.balance-date { color: rgba(255,255,255,0.4); font-size:10px; text-align: center; margin-top: 12px; }

.price-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px 6px; }
.price-header-title { color: var(--text); font-size:13px; font-weight: 600; }
.update-time { color: var(--text-muted); font-size:10px; }

.gold-price-card { position: relative; margin: 0 16px 18px; background: #14100a; border-radius: 16px; padding: 20px 18px; border: 1px solid rgba(201,168,76,0.24); }
.gold-price-title { position: relative; color: var(--gold-light); font-size:15px; font-weight: 700; text-align: center; margin-bottom: 16px; }
.gold-price-title span { color: var(--text-muted); font-size:11px; font-weight: 400; }
.gold-price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gold-price-box { position: relative; border-radius: 16px; padding: 16px 8px; text-align: center; cursor: pointer; transition: transform 0.18s ease, box-shadow 0.18s ease; overflow: hidden; }
.gold-price-box::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 40%); pointer-events: none; }
.gold-price-box:hover { transform: translateY(-3px); }
.gold-price-box.buy:hover { box-shadow: 0 12px 26px -8px rgba(69,168,119,0.45); }
.gold-price-box.sell:hover { box-shadow: 0 12px 26px -8px rgba(224,101,82,0.45); }
.gold-price-box-action { position: relative; font-size:11px; font-weight: 700; margin-top: 12px; padding-top: 10px; border-top: 1px dashed rgba(255,255,255,0.14); }
.gold-price-box.buy .gold-price-box-action, .gold-price-box.buy .gold-price-box-label { color: #6fcf97; }
.gold-price-box.sell .gold-price-box-action, .gold-price-box.sell .gold-price-box-label { color: #ff8a80; }
.gold-price-box.buy { background: #13251b; border: 1px solid rgba(111,207,151,0.4); }
.gold-price-box.sell { background: #2a1210; border: 1px solid rgba(255,138,128,0.38); }
.gold-price-box-label { position: relative; font-size:15px; font-weight: 800; margin-bottom: 8px; }
.gold-price-box-value { position: relative; font-size:20px; font-weight: 800; direction: ltr; white-space: nowrap; font-variant-numeric: tabular-nums; letter-spacing: -0.4px; line-height: 1.15; max-width: 100%; }
.gold-price-box.buy .gold-price-box-value { color: #6fcf97; }
.gold-price-box.sell .gold-price-box-value { color: #ff8a80; }
.gold-price-box-unit { font-size:11px; color: var(--text-muted); margin-top: 4px; }
.gold-price-mesghal { position: relative; margin-top: 10px; padding-top: 9px; border-top: 1px dashed rgba(255,255,255,0.14); }
.gpm-label { display: block; font-size:10px; color: var(--text-muted); margin-bottom: 3px; }
.gpm-value { display: block; font-size:15px; font-weight: 800; direction: ltr; white-space: nowrap; font-variant-numeric: tabular-nums; letter-spacing: -0.4px; opacity: 0.95; }
.gold-price-box.buy .gpm-value { color: #6fcf97; }
.gold-price-box.sell .gpm-value { color: #ff8a80; }

.trade-ico { width: 42px; height: 42px; border-radius: 12px; margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; }
.trade-ico.buy { background: linear-gradient(135deg, #52c084 0%, #1d6b42 100%); box-shadow: 0 6px 18px rgba(69,168,119,0.5), inset 0 1px 4px rgba(255,255,255,0.4); }
.trade-ico.sell { background: linear-gradient(135deg, #f0705f 0%, #a02a1d 100%); box-shadow: 0 6px 18px rgba(224,101,82,0.5), inset 0 1px 4px rgba(255,255,255,0.4); }

.unit-switch { display: flex; gap: 6px; justify-content: center; margin-bottom: 14px; }
.unit-chip { font-size:11px; font-weight: 700; padding: 5px 14px; border-radius: 20px; border: 1px solid rgba(201,168,76,0.35); color: var(--text-muted); cursor: pointer; }
.unit-chip.active { background: rgba(201,168,76,0.18); border-color: var(--gold); color: var(--gold-light); }

.order-row-sub { font-size:11px; color: var(--text-muted); margin-top: 3px; direction: rtl; }

.auth-screen { background: linear-gradient(160deg, var(--brown) 0%, #2a1c12 100%); min-height: 100vh; display: flex; flex-direction: column; padding: 0 24px 40px; }
.auth-logo { width: 80px; height: 80px; border-radius: 50%; font-size:26px; font-weight: 800; margin: 60px auto 16px; }
.auth-title { color: white; font-size:20px; font-weight: 700; text-align: center; }
.auth-sub { color: var(--gold-light); font-size:13px; text-align: center; margin-top: 6px; margin-bottom: 36px; }
.auth-field { margin-bottom: 16px; }
.auth-field-label { color: rgba(255,255,255,0.7); font-size:12px; margin-bottom: 7px; display: block; }
.auth-input { width: 100%; background: rgba(255,255,255,0.08); border: 1.5px solid rgba(201,168,76,0.3); border-radius: 12px; padding: 14px; color: white; font-family: 'Vazirmatn', sans-serif; font-size:15px; direction: rtl; }
.auth-input.ltr { direction: ltr; text-align: left; }
.auth-input::placeholder { color: rgba(255,255,255,0.5); }
.auth-btn { width: 100%; padding: 15px; background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%); color: var(--brown); border: none; border-radius: 12px; font-family: 'Vazirmatn', sans-serif; font-size:15px; font-weight: 700; cursor: pointer; margin-top: 12px; box-shadow: 0 4px 16px rgba(0,0,0,0.50); }
.auth-btn:disabled { opacity: 0.6; cursor: default; }
.auth-switch { color: rgba(255,255,255,0.6); font-size:12px; text-align: center; margin-top: 22px; }
.auth-switch span { color: var(--gold-light); font-weight: 700; cursor: pointer; }
.auth-note { background: rgba(201,168,76,0.10); border-radius: 8px; border-inline-start: 2px solid rgba(201,168,76,0.55); padding: 10px 13px; color: var(--gold-light); font-size:11px; line-height: 1.9; margin-top: 16px; text-align: start; }
.auth-hint { color: var(--gold-light); font-size:11px; line-height: 1.8; margin-top: 7px; }
.auth-error { background: rgba(224,101,82,0.14); border: 1px solid rgba(224,101,82,0.4); border-radius: 10px; padding: 10px 13px; color: #ff9a8c; font-size:12px; margin-bottom: 14px; }
.auth-input-wrap { position: relative; }
.auth-input-wrap .auth-input { padding-left: 44px; }
.pw-eye { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; color: rgba(255,255,255,0.65); cursor: pointer; }
.username-box { background: rgba(201,168,76,0.12); border: 1.5px solid rgba(201,168,76,0.35); border-radius: 12px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.username-box-label { color: rgba(255,255,255,0.65); font-size:11px; }
.username-box-value { color: var(--gold-light); font-size:15px; font-weight: 800; direction: ltr; letter-spacing: 0.5px; }
.auth-row-between { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.remember-me { display: flex; align-items: center; gap: 7px; color: rgba(255,255,255,0.7); font-size:12px; cursor: pointer; }
.checkbox-sq { width: 17px; height: 17px; border-radius: 8px; border: 1.5px solid rgba(201,168,76,0.5); display: flex; align-items: center; justify-content: center; font-size:11px; color: var(--brown); font-weight: 800; }
.checkbox-sq.on { background: var(--gold); border-color: var(--gold); }
.auth-link { color: var(--gold-light); font-size:12px; font-weight: 700; cursor: pointer; }

.menu-overlay { position: relative; background: linear-gradient(160deg, var(--brown) 0%, #2a1c12 100%); min-height: 100vh; padding: 0; }
.menu-profile-head { padding: 30px 20px 20px; display: flex; align-items: center; gap: 14px; border-bottom: 1px solid rgba(201,168,76,0.25); }
.menu-avatar { width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0; }
.menu-profile-name { color: white; font-size:17px; font-weight: 700; }
.menu-profile-phone { color: var(--gold-light); font-size:12px; margin-top: 3px; direction: ltr; text-align: right; }
.menu-items { padding: 14px 0; }
.menu-row { display: flex; align-items: center; gap: 14px; padding: 15px 22px; color: rgba(255,255,255,0.9); font-size:15px; font-weight: 500; cursor: pointer; transition: background 0.15s; }
.menu-row:hover { background: rgba(255,255,255,0.05); }
.menu-row-icon { width: 24px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; color: var(--gold-dark); }
.menu-row.logout { color: #ff8a80; border-top: 1px solid rgba(255,255,255,0.1); margin-top: 14px; }

.profile-card { margin: 16px; background: linear-gradient(135deg, var(--brown) 0%, #4a3020 100%); border-radius: 20px; padding: 24px 16px; text-align: center; border: 1px solid rgba(201,168,76,0.3); }
.profile-avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--gold); display: flex; align-items: center; justify-content: center; color: var(--brown); margin: 0 auto 12px; }
.profile-name { color: white; font-size:17px; font-weight: 700; }
.profile-verified { color: var(--green); font-size:11px; margin-top: 5px; background: rgba(46,125,82,0.2); display: inline-block; padding: 3px 12px; border-radius: 20px; }
.profile-info { margin: 0 16px 16px; }
.profile-info-row { background:#211b12; border-radius: 12px; padding: 14px; border: 1px solid var(--cream-dark); margin-bottom: 9px; display: flex; align-items: center; gap: 12px; }
.profile-info-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--cream); display: flex; align-items: center; justify-content: center; color: var(--gold-dark); flex-shrink: 0; }
.profile-info-label { color: var(--text-muted); font-size:10px; margin-bottom: 3px; }
.profile-info-value { color: var(--text); font-size:15px; font-weight: 700; }
.profile-info-value.ltr { direction: ltr; text-align: right; }
.profile-lock { color: var(--text-muted); font-size:15px; }
.profile-locked-note { background: #2a2210; border-radius: 8px; border-inline-start: 2px solid currentColor; padding: 11px 13px; color: #ff9046; font-size:11px; line-height: 1.85; margin: 0 16px 16px; text-align: start; }

.wallet-hero { position: relative; margin: 16px; background: radial-gradient(120% 140% at 18% 12%, #FBF0D2 0%, rgba(251,240,210,0) 46%), linear-gradient(135deg, #C9A84C 0%, #E8C96B 46%, #D8B24A 72%, #A9863A 100%); border-radius: 20px; padding: 22px; overflow: hidden; box-shadow: 0 14px 34px -12px rgba(0,0,0,0.60), inset 0 1px 1px rgba(255,255,255,0.5), inset 0 -4px 10px rgba(120,90,30,0.4); }
.wallet-hero-label { color: rgba(61,43,31,0.7); font-size:12px; font-weight: 600; }
.wallet-hero-value { color: var(--brown); font-size:26px; font-weight: 800; margin-top: 6px; direction: ltr; text-align: right; }
.wallet-hero-unit { font-size:15px; font-weight: 600; }
.wallet-hero-sub { color: rgba(61,43,31,0.65); font-size:12px; margin-top: 8px; padding-top: 10px; border-top: 1px solid rgba(61,43,31,0.2); }
.wallet-grid { margin: 0 16px 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wallet-box { background: linear-gradient(180deg, var(--surface-hi) 0%, var(--surface) 100%); border-radius: 16px; padding: 16px; border: 1px solid var(--hairline); box-shadow: var(--card-shadow), var(--card-hi); }
.wallet-box-icon { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size:17px; margin-bottom: 10px; }
.wallet-box-icon.gold { background: #2a2313; color: var(--gold-light); }
.wallet-box-icon.rial { background: #16281e; color: var(--green); }
.wallet-box-label { color: var(--text-muted); font-size:11px; }
.wallet-box-value { color: var(--text); font-size:17px; font-weight: 800; margin-top: 4px; direction: ltr; text-align: right; }
.wallet-box-unit { font-size:11px; color: var(--text-muted); font-weight: 400; }

.terms-screen { background: linear-gradient(160deg, var(--brown) 0%, #2a1c12 100%); min-height: 100vh; display: flex; flex-direction: column; padding: 0; }
.terms-head { padding: 26px 22px 16px; text-align: center; border-bottom: 1px solid rgba(201,168,76,0.25); }
.terms-head-icon { font-size:34px; margin-bottom: 8px; }
.terms-head-title { color: white; font-size:17px; font-weight: 700; }
.terms-head-sub { color: var(--gold-light); font-size:12px; margin-top: 5px; }
.terms-body { flex: 1; padding: 16px 18px; overflow-y: auto; border-color: rgba(201,168,76,0.22); }
.terms-item { display: flex; gap: 11px; align-items: flex-start; background: rgba(255,255,255,0.06); border-radius: 12px; padding: 12px 13px; margin-bottom: 9px; border: 1px solid rgba(201,168,76,0.15); }
.terms-item-num { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%); color: var(--brown); font-size:12px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; direction: ltr; }
.terms-item-text { color: rgba(255,255,255,0.9); font-size:12px; line-height: 1.85; }
.terms-item-text b { color: var(--gold-light); }
.terms-footer { padding: 14px 18px 20px; border-top: 1px solid rgba(201,168,76,0.25); }
.terms-check { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; cursor: pointer; }
.terms-checkbox { width: 24px; height: 24px; border-radius: 8px; background: rgba(255,255,255,0.08); border: 1.5px solid rgba(201,168,76,0.4); display: flex; align-items: center; justify-content: center; color: var(--brown); font-size:15px; font-weight: 800; flex-shrink: 0; }
.terms-checkbox.on { background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%); }
.terms-check-text { color: white; font-size:12px; font-weight: 600; }
.terms-accept-btn, .save-btn, .result-btn.primary, .req-option-btn.gold {
  background: linear-gradient(135deg, #F2DA95 0%, #C9A84C 55%, #a8873a 100%);
  color: #241a10; text-shadow: 0 1px 0 rgba(255,255,255,0.3); border: none;
  box-shadow: 0 12px 26px -10px rgba(0,0,0,0.60), inset 0 1px 0 rgba(255,255,255,0.55);
}
.terms-accept-btn:hover, .save-btn:hover, .result-btn.primary:hover, .req-option-btn.gold:hover { filter: brightness(1.06); }
.terms-accept-btn { width: 100%; padding: 15px; border-radius: 12px; font-family: 'Vazirmatn', sans-serif; font-size:15px; font-weight: 700; cursor: pointer; }
.terms-accept-btn:disabled { opacity: 0.5; cursor: default; }

.toggle-row { display: flex; justify-content: space-between; align-items: center; }
.big-toggle { width: 52px; height: 30px; border-radius: 20px; position: relative; flex-shrink: 0; cursor: pointer; transition: background 0.2s; background: #3a3226; border: 1px solid rgba(255,255,255,0.18); }
.big-toggle::after { content: ''; position: absolute; width: 24px; height: 24px; border-radius: 50%; background: #f0e8d5; top: 2px; left: 2px; transition: all 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.4); }
.big-toggle.on { background: var(--green); }
.big-toggle.on::after { left: 24px; }
.big-toggle.off { background: #55503f; }
.big-toggle.off::after { left: 3px; }

.alert-create-card { background: linear-gradient(135deg, #241d10 0%, #2a2313 100%); border: 1px solid rgba(201,168,76,0.4); border-radius: 16px; padding: 16px; margin-bottom: 14px; }
.alert-create-head { font-size:13px; font-weight: 700; color: var(--gold-dark); margin-bottom: 4px; display: flex; align-items: center; gap: 7px; }
.alert-create-sub { font-size:10px; color: var(--text-muted); margin-bottom: 12px; }
.alert-type-row { display: flex; gap: 8px; margin-bottom: 12px; }
.alert-type { flex: 1; text-align: center; padding: 9px; border-radius: 12px; font-size:11px; font-weight: 700; border: 1.5px solid var(--cream-dark); background:#211b12; color: var(--text-muted); cursor: pointer; }
.alert-type.active.up { border-color: var(--green); background: #16281e; color: var(--green); }
.alert-type.active.down { border-color: var(--red); background: #2b1512; color: var(--red); }
.alert-item { background:#211b12; border-radius: 12px; padding: 13px; border: 1px solid var(--cream-dark); margin-bottom: 8px; display: flex; align-items: center; gap: 12px; }
.alert-item-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size:17px; flex-shrink: 0; }
.alert-item-icon.up { background: #16281e; color: var(--green); }
.alert-item-icon.down { background: #2b1512; color: var(--red); }
.alert-item-info { flex: 1; }
.alert-item-title { font-size:13px; font-weight: 700; color: var(--text); }
.alert-item-sub { font-size:10px; color: var(--text-muted); margin-top: 2px; }
.alert-item-toggle { width: 40px; height: 22px; border-radius: 20px; background: var(--green); position: relative; flex-shrink: 0; cursor: pointer; border: none; }
.alert-item-toggle::after { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; background:#211b12; top: 2px; left: 2px; }

.receipt { margin: 16px; background:#211b12; border-radius: 20px; padding: 0; border: 1px solid var(--cream-dark); overflow: hidden; }
.receipt-head { background: linear-gradient(135deg, var(--brown) 0%, #4a3020 100%); padding: 20px; text-align: center; }
.receipt-logo { width: 50px; height: 50px; border-radius: 50%; margin: 0 auto 10px; font-size:17px; }
.receipt-title { color: white; font-size:15px; font-weight: 700; }
.receipt-status { color: var(--green); font-size:11px; background: rgba(46,125,82,0.25); display: inline-block; padding: 3px 12px; border-radius: 20px; margin-top: 8px; }
.receipt-body { padding: 16px 20px; }
.receipt-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px dashed var(--cream-dark); gap: 10px; flex-wrap: wrap; }
.receipt-row:last-child { border-bottom: none; }
.receipt-label { color: var(--text-muted); font-size:12px; flex: 1 1 auto; min-width: 0; }
.receipt-value { color: var(--text); font-size:13px; font-weight: 700; direction: ltr; flex: 0 0 auto; white-space: nowrap; font-variant-numeric: tabular-nums; letter-spacing: -0.2px; }
.receipt-value.total { color: var(--gold-light); font-size:17px; }
.receipt-actions { padding: 14px 20px 20px; display: flex; gap: 8px; }
.receipt-btn { flex: 1; padding: 12px; border: none; border-radius: 12px; font-family: 'Vazirmatn', sans-serif; font-size:12px; font-weight: 700; cursor: pointer; }
.receipt-btn.share { background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%); color: var(--brown); }
.receipt-btn.save { background: var(--cream); color: var(--text-muted); }

.export-card { background:#211b12; border-radius: 16px; padding: 16px; border: 1px solid var(--cream-dark); margin-bottom: 12px; }
.export-head { font-size:13px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.export-sub { font-size:10px; color: var(--text-muted); margin-bottom: 12px; }
.export-range { display: flex; gap: 6px; margin-bottom: 12px; }
.export-chip { flex: 1; text-align: center; padding: 8px; border-radius: 8px; font-size:10px; font-weight: 700; border: 1.5px solid var(--cream-dark); background:#211b12; color: var(--text-muted); cursor: pointer; }
.export-chip.active { border-color: var(--gold); background: #241d10; color: var(--gold-dark); }
.export-btn { width: 100%; padding: 13px; border: none; border-radius: 12px; font-family: 'Vazirmatn', sans-serif; font-size:13px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
.export-btn.excel { background: linear-gradient(135deg, #58c088 0%, #7ed6a4 100%); color: white; }
.export-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.export-stat { background: var(--cream); border-radius: 12px; padding: 12px; text-align: center; }
.export-stat-value { font-size:17px; font-weight: 800; color: var(--gold-light); direction: ltr; }
.export-stat-label { font-size:10px; color: var(--text-muted); margin-top: 3px; }

.video-card { background:#211b12; border-radius: 16px; overflow: hidden; border: 1px solid var(--cream-dark); margin-bottom: 12px; }
.video-thumb { height: 130px; background: linear-gradient(135deg, var(--brown) 0%, #4a3020 100%); display: flex; align-items: center; justify-content: center; position: relative; }
.video-play { width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,0.92); display: flex; align-items: center; justify-content: center; color: var(--brown); padding-inline-start: 3px; text-decoration: none; }
.video-duration { position: absolute; bottom: 8px; left: 8px; background: rgba(0,0,0,0.7); color: white; font-size:10px; padding: 2px 7px; border-radius: 8px; direction: ltr; }
.video-info { padding: 12px 14px; }
.video-title { font-size:13px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.video-desc { font-size:11px; color: var(--text-muted); line-height: 1.6; }
.video-upload { background: linear-gradient(135deg, #241d10 0%, #2a2313 100%); border: 1.5px dashed var(--gold); border-radius: 16px; padding: 20px; text-align: center; margin-bottom: 14px; cursor: pointer; }
.video-upload-icon { font-size:26px; margin-bottom: 8px; }
.video-upload-title { font-size:13px; font-weight: 700; color: var(--gold-dark); }
.video-upload-sub { font-size:10px; color: var(--text-muted); margin-top: 4px; }

.price-change-alert { background: linear-gradient(135deg, #2f2412 0%, #3a2c12 100%); border: 1.5px solid #ff9800; border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; display: flex; align-items: flex-start; gap: 10px; }
.price-change-alert-icon { font-size:17px; flex-shrink: 0; }
.price-change-alert-title { font-size:12px; font-weight: 700; color: #ff9046; margin-bottom: 3px; }
.price-change-alert-text { font-size:11px; color: var(--text); line-height: 1.7; }
.price-change-alert-text b { color: #ff9046; direction: ltr; display: inline-block; }

.price-change-compare { width: 100%; display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.pcc-box { flex: 1; background:#211b12; border-radius: 14px; padding: 12px 10px; text-align: center; border: 1.5px solid var(--cream-dark); }
.pcc-box-label { font-size:10px; color: var(--text-muted); margin-bottom: 6px; }
.pcc-box-value { font-size:16px; font-weight: 800; direction: ltr; color: var(--text-muted); }
.pcc-box.old .pcc-box-value { text-decoration: line-through; }
.pcc-box.new { border-color: #ff9046; background: #2f2412; }
.pcc-box.new .pcc-box-value { color: #ff9046; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.pcc-box.new.up .pcc-diff { color: #ff8a80; }
.pcc-box.new.down .pcc-diff { color: #6fcf97; }
.pcc-diff { font-size:11px; font-weight: 700; }
.pcc-arrow { color: var(--gold-dark); flex-shrink: 0; transform: rotate(180deg); }

.price-edit-card { background:#211b12; border-radius: 16px; padding: 14px; border: 1px solid var(--cream-dark); margin-bottom: 10px; }
.price-edit-head { font-size:13px; font-weight: 700; margin-bottom: 10px; }
.price-edit-head.buy { color: var(--green); }
.price-edit-head.sell { color: var(--red); }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper-btn { flex-shrink: 0; width: 38px; height: 38px; border-radius: 12px; border: none; font-family: 'Vazirmatn', sans-serif; font-size:17px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.stepper-btn.minus { background: #2b1512; color: var(--red); }
.stepper-btn.plus { background: #16281e; color: var(--green); }
.stepper-value { flex: 1; min-width: 0; text-align: center; background: var(--cream); border-radius: 12px; padding: 9px 6px; font-size:17px; font-weight: 800; color: var(--text); direction: ltr; white-space: nowrap; font-variant-numeric: tabular-nums; letter-spacing: -0.3px; }
.step-size-row { display: flex; gap: 6px; margin: 8px 0 2px; justify-content: center; }
.step-chip { font-size:10px; font-weight: 700; padding: 5px 10px; border-radius: 20px; border: 1.5px solid var(--cream-dark); background:#211b12; color: var(--text-muted); cursor: pointer; }
.step-chip.active { border-color: var(--gold); background: #241d10; color: var(--gold-dark); }
.spread-card { background: linear-gradient(135deg, #241d10 0%, #2a2313 100%); border-radius: 16px; padding: 14px; border: 1px solid rgba(201,168,76,0.4); margin-bottom: 10px; }
.spread-row { display: flex; justify-content: space-between; align-items: center; }
.spread-label { font-size:12px; font-weight: 700; color: var(--gold-dark); }
.spread-sub { font-size:10px; color: var(--text-muted); margin-top: 2px; }
.spread-value { font-size:17px; font-weight: 800; color: var(--gold-light); direction: ltr; background:#211b12; padding: 6px 14px; border-radius: 12px; border: 1.5px solid rgba(201,168,76,0.3); }

.nav-item { position: relative; padding: 5px 13px 4px; border: 1px solid transparent; border-radius: 12px; }
.nav-badge { position: absolute; top: -4px; right: 50%; margin-right: 6px; background: var(--red); color: white; font-size:10px; font-weight: 700; min-width: 16px; height: 16px; border-radius: 12px; display: flex; align-items: center; justify-content: center; padding: 0 4px; direction: ltr; animation: badgePulse 2.2s ease-in-out infinite; }

.notif-toast { margin: 12px 16px 0; background: linear-gradient(135deg, #fff 0%, #2a2210 100%); border-radius: 12px; padding: 12px 14px; border: 1px solid #4a3c14; display: flex; align-items: center; gap: 11px; }
.notif-toast-icon { width: 36px; height: 36px; border-radius: 12px; background: #2f2412; display: flex; align-items: center; justify-content: center; font-size:17px; flex-shrink: 0; }
.notif-toast-title { font-size:12px; font-weight: 700; color: var(--text); }
.notif-toast-sub { font-size:10px; color: var(--text-muted); margin-top: 2px; }
.notif-toast.urgent { background: linear-gradient(135deg, #3a2412 0%, #4a2c12 100%); border: 1.5px solid #ff9046; box-shadow: 0 4px 18px -6px rgba(255,144,70,0.45); animation: urgentPulse 2.2s ease-in-out infinite; }
.notif-toast.urgent .notif-toast-icon { background: #ff9046; color: #241a10; }
.notif-toast.urgent .notif-toast-title { color: #ffb066; font-size:13px; }
.notif-toast.urgent .notif-toast-sub { color: #f0d3a8; }
.notif-toast-go { margin-inline-start: auto; color: #ff9046; flex-shrink: 0; }
@keyframes urgentPulse { 0%, 100% { box-shadow: 0 4px 18px -6px rgba(255,144,70,0.45); } 50% { box-shadow: 0 4px 22px -4px rgba(255,144,70,0.75); } }

.push-note { margin: 12px 16px 0; background:#211b12; border: 1px solid var(--cream-dark); border-radius: 16px; padding: 11px 13px; display: flex; gap: 10px; align-items: flex-start; }
.push-note .pn-ico { width: 34px; height: 34px; border-radius: 8px; background: #2f2412; display: flex; align-items: center; justify-content: center; font-size:17px; flex-shrink: 0; }
.push-note .pn-title { font-size:11px; font-weight: 800; color: var(--text); }
.push-note .pn-body { font-size:10px; color: var(--text-muted); margin-top: 3px; line-height: 1.7; }
.push-note .pn-time { font-size:10px; color: var(--text-muted); }

@keyframes flash-up { 0%, 100% { text-shadow: none; } 50% { color: #2fbf71; } }
@keyframes flash-down { 0%, 100% { text-shadow: none; } 50% { color: #e74c3c; } }
.flash-up { animation: flash-up 1.4s ease-in-out 4; }
.flash-down { animation: flash-down 1.4s ease-in-out 4; }

.taraz-summary { margin: 14px 16px 10px; background: linear-gradient(135deg, var(--brown) 0%, #2a1c12 100%); border-radius: 20px; padding: 16px; border: 1px solid rgba(201,168,76,0.3); }
.taraz-summary-title { color: var(--gold-light); font-size:11px; font-weight: 600; margin-bottom: 10px; }
.taraz-summary-main { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 10px; }
.taraz-summary-gram { color: #ff8a80; font-size:26px; font-weight: 800; direction: ltr; }
.taraz-summary-gram.pos { color: #6fcf97; }
.taraz-summary-unit { font-size:13px; color: rgba(255,255,255,0.6); }
.taraz-detail-rows { border-top: 1px solid rgba(201,168,76,0.2); padding-top: 10px; }
.taraz-detail-row { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; }
.taraz-detail-label { color: rgba(255,255,255,0.55); font-size:11px; }
.taraz-detail-value { font-size:12px; font-weight: 700; direction: ltr; }
.taraz-detail-value.gold { color: var(--gold-light); }
.taraz-detail-value.green { color: #6fcf97; }
.taraz-detail-value.red { color: #ff8a80; }
.taraz-detail-value.white { color: white; }

.banker-card { margin: 0 16px 16px; background:#211b12; border-radius: 16px; padding: 14px; border: 1px solid var(--cream-dark); }
.banker-head { font-size:13px; font-weight: 700; color: var(--text); margin-bottom: 4px; display: flex; align-items: center; gap: 7px; }
.banker-sub { font-size:10px; color: var(--text-muted); margin-bottom: 12px; }

.result-screen { padding: 30px 22px; display: flex; flex-direction: column; align-items: center; text-align: center; min-height: 60vh; }
.result-icon-circle { width: 96px; height: 96px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size:34px; margin: 30px 0 20px; }
.result-icon-circle.pending { background: #2a2210; border: 3px solid #ffc107; }
.result-icon-circle.success { background: #16281e; border: 3px solid var(--green); }
.result-icon-circle.reject { background: #2b1512; border: 3px solid var(--red); }
.result-icon-circle.soon { background: #241d10; border: 3px solid var(--gold); color: var(--gold-light); }
.result-title { font-size:20px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.result-sub { font-size:13px; color: var(--text-muted); line-height: 1.9; margin-bottom: 22px; max-width: 280px; }
.countdown { font-size:34px; font-weight: 800; color: #ffa04d; direction: ltr; margin-bottom: 6px; }
.countdown-label { font-size:11px; color: var(--text-muted); margin-bottom: 20px; }
.result-detail-card { width: 100%; background:#211b12; border-radius: 16px; padding: 16px; border: 1px solid var(--cream-dark); margin-bottom: 20px; }
.result-detail-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px dashed var(--cream-dark); gap: 10px; flex-wrap: wrap; }
.result-detail-row:last-child { border-bottom: none; }
.result-detail-label { color: var(--text-muted); font-size:12px; flex: 1 1 auto; min-width: 0; }
.result-detail-value { color: var(--text); font-size:15px; font-weight: 700; direction: ltr; flex: 0 0 auto; white-space: nowrap; font-variant-numeric: tabular-nums; letter-spacing: -0.2px; }
.result-detail-value.gold { color: var(--gold-dark); }
.result-detail-value.green { color: var(--green); }
.result-detail-value.red { color: var(--red); }
.result-btn { width: 100%; padding: 14px; border: none; border-radius: 12px; font-family: 'Vazirmatn', sans-serif; font-size:15px; font-weight: 700; cursor: pointer; }
.result-btn.ghost { background: var(--cream); color: var(--text-muted); margin-top: 8px; }

.support-hero { margin: 16px; background: linear-gradient(135deg, var(--brown) 0%, #4a3020 100%); border-radius: 20px; padding: 22px 16px; text-align: center; border: 1px solid rgba(201,168,76,0.3); }
.support-hero-logo { width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 12px; font-size:20px; }
.support-hero-title { color: white; font-size:17px; font-weight: 700; }
.support-hero-sub { color: var(--gold-light); font-size:12px; margin-top: 4px; }
.support-list { margin: 0 16px 16px; }
.support-item { background:#211b12; border-radius: 16px; padding: 14px; border: 1px solid var(--cream-dark); margin-bottom: 10px; display: flex; align-items: center; gap: 12px; }
.support-item-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size:20px; flex-shrink: 0; }
.support-item-icon.tel { background: #16281e; color: var(--green); }
.support-item-icon.telegram { background: #14212e; color: #6fb1e8; }
.support-item-icon.location { background: #2f2412; color: var(--gold-light); }
.support-item-icon.hours { background: #241a2a; color: var(--gold-light); }
.support-item-info { flex: 1; }
.support-item-label { color: var(--text-muted); font-size:10px; margin-bottom: 3px; }
.support-item-value { color: var(--text); font-size:13px; font-weight: 700; }
.support-item-value.ltr { direction: ltr; text-align: right; }

.req-options { margin: 16px; }
.req-option-card { background:#211b12; border-radius: 16px; padding: 16px; border: 1px solid var(--cream-dark); margin-bottom: 12px; }
.req-option-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.req-option-icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size:20px; flex-shrink: 0; }
.req-option-icon.gold { background: linear-gradient(135deg, #2a2313 0%, #352c1d 100%); color: var(--gold-light); }
.req-option-icon.deposit { background: #14212e; }
.req-option-icon.withdraw { background: #2f2412; }
.req-option-title { color: var(--text); font-size:15px; font-weight: 700; margin-bottom: 2px; }
.req-option-desc { color: var(--text-muted); font-size:10px; }
.req-option-input { background: var(--cream); border: 1.5px solid var(--cream-dark); border-radius: 12px; padding: 11px 12px; display: flex; justify-content: space-between; align-items: center; }
.req-option-input input { background: transparent; border: none; color: var(--text); font-family: 'Vazirmatn', sans-serif; font-size:13px; width: 100%; direction: ltr; text-align: left; }
.req-option-input input:focus { outline: none; }
.req-option-input-placeholder { color: var(--text-muted); font-size:13px; }
.req-option-input-unit { color: var(--gold-dark); font-size:12px; font-weight: 700; flex-shrink: 0; }
.req-option-btn { width: 100%; padding: 11px; border: none; border-radius: 12px; font-family: 'Vazirmatn', sans-serif; font-size:13px; font-weight: 700; cursor: pointer; margin-top: 10px; color: white; }
.req-option-btn.deposit { background: linear-gradient(135deg, #6fb1e8 0%, #6fb1e8 100%); }
.req-option-btn.withdraw { background: linear-gradient(135deg, #ffa04d 0%, #ff9046 100%); }

.tx-list { margin: 0 16px 16px; }
.tx-date-group { color: var(--text-muted); font-size:11px; font-weight: 600; margin: 14px 4px 8px; }
.tx-item { background:#211b12; border-radius: 16px; padding: 13px; border: 1px solid var(--cream-dark); margin-bottom: 8px; display: flex; align-items: center; gap: 12px; }
.tx-icon { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size:17px; flex-shrink: 0; }
.tx-icon.buy { background: #16281e; color: var(--green); }
.tx-icon.sell { background: #2b1512; color: var(--red); }
.tx-icon.deposit { background: #14212e; color: #6fb1e8; }
.tx-icon.withdraw { background: #2f2412; }
.tx-info { flex: 1; }
.tx-title { color: var(--text); font-size:13px; font-weight: 700; margin-bottom: 3px; }
.tx-time { color: var(--text-muted); font-size:10px; }
.tx-amount { text-align: left; direction: ltr; }
.tx-amount-main { font-size:13px; font-weight: 700; }
.tx-amount.buy .tx-amount-main { color: var(--green); }
.tx-amount.sell .tx-amount-main { color: var(--red); }
.tx-amount-fi { font-size:10px; color: var(--text-muted); margin-top: 2px; }
.tx-amount-sub { font-size:10px; color: var(--text-muted); margin-top: 2px; }
.tx-amount.buy .tx-amount-sub, .tx-amount.sell .tx-amount-sub { font-size:13px; font-weight: 700; color: var(--text); margin-top: 3px; }
.tx-amount.buy .tx-amount-main, .tx-amount.sell .tx-amount-main { font-size:12px; font-weight: 600; }
.tx-status { font-size:10px; font-weight: 700; padding: 2px 7px; border-radius: 20px; display: inline-block; margin-top: 3px; }
.tx-status.done { background: #16281e; color: var(--green); }
.tx-status.pending { background: #2a2210; color: #ffa04d; }
.tx-status.rejected { background: #2b1512; color: #ff8a80; }
.tx-status.expired { background: #352c1d; color: var(--text-muted); }

.admin-msg-card { margin: 0 16px 16px; background: linear-gradient(135deg, #241d10 0%, #2a2313 100%); border-radius: 16px; padding: 14px 16px; border: 1px solid rgba(201,168,76,0.4); }
.admin-msg-header { display: flex; align-items: center; gap: 6px; color: var(--gold-dark); font-size:13px; font-weight: 700; margin-bottom: 8px; }
.admin-msg-body { color: var(--text); font-size:12px; line-height: 2; text-align: justify; }

.action-section { margin: 0 16px 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.action-btn { padding: 14px; border-radius: 16px; text-align: center; cursor: pointer; font-family: 'Vazirmatn', sans-serif; font-size:15px; font-weight: 700; border: none; }
.btn-buy { background: linear-gradient(135deg, var(--green) 0%, #7ed6a4 100%); color: white; box-shadow: 0 4px 15px rgba(46,125,82,0.3); }
.btn-sell { background: linear-gradient(135deg, var(--red) 0%, #ff9a8c 100%); color: white; box-shadow: 0 4px 15px rgba(192,57,43,0.3); }

.admin-header { position: sticky; top: 0; z-index: 5; background: linear-gradient(135deg, #1a3a2a 0%, #0d2418 100%); padding: 16px 20px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--gold-dark); }
.admin-badge { background: var(--gold); color: var(--brown); font-size:10px; font-weight: 800; padding: 2px 8px; border-radius: 20px; margin-top: 3px; display: inline-block; }
.admin-section { margin: 14px 16px; }
.section-title { color: var(--gold-dark); font-size:11px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.section-title::before { content: ""; width: 14px; height: 2px; border-radius: 4px; background: var(--gold-grad-soft); }

.price-input-card { background:#211b12; border-radius: 16px; padding: 14px; border: 1px solid var(--cream-dark); margin-bottom: 10px; }
.input-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.input-label { color: var(--text); font-size:13px; font-weight: 600; }
.input-sub { color: var(--text-muted); font-size:10px; }
.input-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.input-field { background: var(--cream); border: 1.5px solid var(--cream-dark); border-radius: 12px; padding: 8px 10px; text-align: center; }
.input-field-label { color: var(--text-muted); font-size:10px; margin-bottom: 3px; }
.input-field-value { color: var(--text); font-size:13px; font-weight: 700; direction: ltr; }
.input-field.buy .input-field-value { color: var(--green); }
.input-field.sell .input-field-value { color: var(--red); }

.save-btn { width: 100%; padding: 11px; border-radius: 12px; font-family: 'Vazirmatn', sans-serif; font-size:13px; font-weight: 700; cursor: pointer; margin-top: 10px; }
.save-btn:disabled { opacity: 0.6; cursor: default; }

.request-card { background:#211b12; border-radius: 16px; padding: 13px; border: 1px solid var(--cream-dark); margin-bottom: 8px; }
.request-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.request-name { color: var(--text); font-size:13px; font-weight: 700; }
.badge { font-size:10px; font-weight: 700; padding: 3px 10px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.06); box-shadow: inset 0 1px 0 rgba(255,255,255,0.05); }
.badge-buy { background: #16281e; color: var(--green); border-color: rgba(69,168,119,0.35); }
.badge-sell { background: #2b1512; color: var(--red); border-color: rgba(224,101,82,0.35); }
.badge-pending { background: #2a2210; color: #ffa04d; border-color: rgba(255,160,77,0.35); }
.request-detail { display: flex; gap: 16px; flex-wrap: wrap; }
.request-detail-item { font-size:11px; color: var(--text-muted); }
.request-detail-item span { color: var(--text); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.request-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.request-actions:has(> :nth-child(3)) { grid-template-columns: 1fr 1fr 1fr; }
.req-btn { padding: 7px; border-radius: 8px; border: none; font-family: 'Vazirmatn', sans-serif; font-size:11px; font-weight: 700; cursor: pointer; }
.req-btn-confirm { background: #16281e; color: var(--green); }
.req-btn-reject { background: #2b1512; color: var(--red); }

.dual-input { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin: 14px 0 6px; }
.dual-input-field { width: 100%; background: var(--cream); border-radius: 12px; padding: 12px 14px; border: 1.5px solid var(--cream-dark); transition: border-color 0.2s; }
.dual-input-field.active { border-color: var(--gold); background: #211b12; }
.dual-input-label { color: var(--text-muted); font-size:10px; margin-bottom: 4px; }
.dual-input-value { color: var(--text); font-size:17px; font-weight: 700; direction: ltr; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.dual-input-value input { background: transparent; border: none; color: var(--text); font-family: 'Vazirmatn', sans-serif; font-size:17px; font-weight: 700; direction: ltr; width: 100%; }
.dual-input-value input:focus { outline: none; }
.dual-input-value > span:first-child, .dual-input-value input { white-space: nowrap; font-variant-numeric: tabular-nums; letter-spacing: -0.2px; min-width: 0; }
.dual-input-unit { color: var(--text-muted); font-size:11px; font-weight: 400; flex-shrink: 0; }
.dual-input-swap { color: var(--gold-dark); flex-shrink: 0; align-self: center; display: flex; align-items: center; justify-content: center; }
.dual-input-hint { color: var(--text-muted); font-size:10px; text-align: center; margin-bottom: 8px; }

.order-card { margin: 0 16px 16px; background: linear-gradient(180deg, var(--surface-hi) 0%, var(--surface) 100%); border-radius: 20px; padding: 18px; border: 1px solid var(--hairline); box-shadow: var(--card-shadow), var(--card-hi); }
.order-title { color: var(--text); font-size:15px; font-weight: 700; margin-bottom: 16px; text-align: center; border-bottom: 1px solid var(--cream-dark); padding-bottom: 12px; }
.order-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--cream-dark); flex-wrap: wrap; }
.order-row:last-of-type { border-bottom: none; }
.order-row-label { color: var(--text-muted); font-size:12px; flex: 1 1 auto; min-width: 0; }
.order-row-value { color: var(--text); font-size:13px; font-weight: 700; direction: ltr; flex: 0 0 auto; text-align: left; white-space: nowrap; font-variant-numeric: tabular-nums; letter-spacing: -0.2px; }
.order-row-value.gold { color: var(--gold-dark); }
.order-row-value.total { color: var(--gold-light); font-size:15px; }

.confirm-btn { position: relative; width: 100%; padding: 15px; background: linear-gradient(135deg, #4fb885 0%, #3d9268 100%); color: white; border: none; border-radius: 12px; font-family: 'Vazirmatn', sans-serif; font-size:15px; font-weight: 800; cursor: pointer; box-shadow: 0 10px 24px -8px rgba(69,168,119,0.55), inset 0 1px 0 rgba(255,255,255,0.28); margin-top: 8px; transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease; }
.confirm-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.confirm-btn:disabled { opacity: 0.35; pointer-events: none; }
.confirm-btn.sell { background: linear-gradient(135deg, #e87462 0%, #cc5544 100%); box-shadow: 0 10px 24px -8px rgba(224,101,82,0.55), inset 0 1px 0 rgba(255,255,255,0.28); }

.telegram-note { background: #14212e; border-radius: 12px; padding: 10px 12px; margin-top: 10px; display: flex; align-items: center; gap: 8px; color: #6fb1e8; font-size:11px; font-weight: 500; }
.tg-icon { font-size:17px; }

.bottom-nav { background: linear-gradient(180deg, #1c150d 0%, #130e08 100%); border-top: 1px solid var(--hairline); box-shadow: 0 -1px 0 rgba(0,0,0,0.20), 0 -10px 24px -18px rgba(0,0,0,0.7); padding: 10px max(0px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(0px, env(safe-area-inset-left)); display: flex; justify-content: space-around; position: sticky; bottom: 0; z-index: 5; }
.nav-item { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size:10px; color: var(--text-muted); cursor: pointer; transition: color 0.15s ease; background: none; border: 1px solid transparent; }
.nav-item.active { color: var(--gold-light); background: rgba(201,168,76,0.12); border-color: rgba(201,168,76,0.3); }
.nav-icon { display: flex; align-items: center; justify-content: center; height: 19px; }
.sb-signal { display: inline-flex; align-items: center; opacity: 0.7; }
.back-btn { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-inline-start: -4px; background: none; border: none; color: var(--gold-light); cursor: pointer; }

h2 { color: var(--gold); font-family: 'Vazirmatn', sans-serif; font-size:20px; text-align: center; margin-bottom: 6px; }
p.subtitle { color: #7a7263; font-family: 'Vazirmatn', sans-serif; font-size:13px; text-align: center; margin-bottom: 24px; }

@keyframes sheen { 0% { transform: translateX(-120%); } 60% { transform: translateX(220%); } 100% { transform: translateX(220%); } }
@keyframes badgePulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
@keyframes pulse-dot { 0%,70%,100% { box-shadow: none; } }
.admin-online { display: flex; align-items: center; gap: 6px; background: rgba(111,207,151,0.15); border: 1px solid rgba(111,207,151,0.45); border-radius: 20px; padding: 5px 11px; color: #6fcf97; font-size:10px; font-weight: 700; white-space: nowrap; }
.online-dot { width: 8px; height: 8px; border-radius: 50%; background: #4caf50; animation: pulse-dot 1.6s infinite; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #4caf50; margin-left: 5px; vertical-align: middle; animation: pulse-dot 1.6s infinite; }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: #0a0806; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #6a5324, #3c2f16); border: 3px solid #0a0806; border-radius: 20px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}

details.acc > summary { list-style: none; cursor: pointer; }
details.acc > summary::-webkit-details-marker { display: none; }
details.acc > summary .acc-ch { transition: transform .25s ease; display: inline-block; }
details.acc[open] > summary .acc-ch { transform: rotate(180deg); }

html, body, button, input, textarea, select {
  font-family: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif !important;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}

.balance-value, .dual-input-value, .export-stat-value, .gold-price-box-value,
.gpm-value, .order-row-value, .profile-info-value, .result-detail-value,
.spread-value, .stepper-value, .wallet-box-value, .wallet-hero-value,
.username-box-value, .price-buy, .price-sell, .a-num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.btn-ico { display: inline-flex; vertical-align: -3px; margin-inline-end: 6px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; }
.acc-ch { display: inline-flex; align-items: center; }

/* ================= لایه‌ی اپ واقعی (نه گالری نمایشی) ================= */
#app {
  max-width: 460px;
  margin: 0 auto;
  height: 100vh;
  height: 100dvh;
  background: #14100a;
}
@media (min-width: 561px) {
  #app { padding: 24px 0; height: 100vh; height: 100dvh; }
  .phone { border-radius: 44px; height: calc(100vh - 48px); height: calc(100dvh - 48px); }
}
@media (max-width: 560px) {
  .phone { width: 100%; max-width: none; border-radius: 0; border-width: 0; box-shadow: none; }
}
.screen { animation: fade-in .15s ease; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.hidden { display: none !important; }
.spinner-row { text-align: center; padding: 40px 0; color: var(--text-muted); font-size: 12px; }
.empty-state { text-align: center; padding: 40px 24px; color: var(--text-muted); font-size: 12px; }

.picker-list { max-height: 230px; overflow-y: auto; display: flex; flex-direction: column; gap: 7px; margin-top: 10px; padding-left: 2px; }
.picker-list .request-card { margin-bottom: 0; }

.form-field { margin-bottom: 12px; }
.form-field label { display: block; color: var(--text-muted); font-size: 11px; margin-bottom: 5px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; background: var(--cream); border: 1.5px solid var(--cream-dark); border-radius: 10px;
  padding: 10px 12px; color: var(--text); font-family: 'Vazirmatn', sans-serif; font-size: 13px;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-color: var(--gold); }
.toast-msg { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #211b12; border: 1px solid var(--gold); color: var(--gold-light); padding: 10px 20px; border-radius: 12px; font-size: 13px; z-index: 999; }

.install-banner { margin: 12px 16px 0; background: linear-gradient(135deg, #241d10 0%, #2a2313 100%); border: 1.5px solid rgba(201,168,76,0.45); border-radius: 14px; padding: 12px 13px; display: flex; align-items: center; gap: 11px; cursor: pointer; }
.install-banner-icon { width: 36px; height: 36px; border-radius: 10px; background: rgba(201,168,76,0.18); color: var(--gold-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.install-banner-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.install-banner-text b { font-size: 12px; color: var(--text); }
.install-banner-text span { font-size: 10px; color: var(--text-muted); }
.install-banner-close { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,0.08); border: none; color: var(--text-muted); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }

.install-hero { margin: 10px 0 20px; }
.install-hero-logo { width: 84px; height: 84px; border-radius: 50%; background: radial-gradient(circle at 32% 26%, #57391a 0%, #241305 78%); border: 2.5px solid var(--gold); color: var(--gold-light); font-family: Georgia, 'Times New Roman', serif; font-size: 26px; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,0.5); }
.install-steps { width: 100%; display: flex; flex-direction: column; gap: 10px; margin: 18px 0; }
.install-step { display: flex; align-items: center; gap: 12px; background: #211b12; border: 1px solid var(--cream-dark); border-radius: 14px; padding: 13px 14px; text-align: right; }
.install-step-num { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%); color: var(--brown); font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.install-step-text { flex: 1; font-size: 12px; color: var(--text); line-height: 1.8; }
.install-step-text b { color: var(--gold-light); }
.install-step-icon { color: var(--gold-dark); flex-shrink: 0; display: flex; }
