/* ═══════════════════════════════════════════════════════
   hl-additions.css — أضف هذا في نهاية hl.css
   ✅ Footer جديد — زران فقط
   ✅ Options Overlay ملء شاشة
   ✅ شريط التاريخ والوقت
   ✅ جدول الأشهر
   ✅ Nav Logo Button
   ✅ Trade Panel مُنظَّف
═══════════════════════════════════════════════════════ */

/* ──────────────────────────────────────
   Footer — 2 زر نحيف
────────────────────────────────────── */
.footer {
  display: flex !important;
  gap: 8px !important;
  padding: 6px 10px max(8px, env(safe-area-inset-bottom)) !important;
  background: var(--bg-card) !important;
  border-top: 1px solid var(--border) !important;
  flex-shrink: 0 !important;
}

.footer-main-btn {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 14px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--border-strong);
  background: var(--bg-elev);
  color: var(--text-secondary);
  font-size: 14px; font-weight: 800;
  font-family: var(--font-ui);
  transition: all .18s; cursor: pointer;
  white-space: nowrap; overflow: hidden;
}
.footer-main-btn:active { transform: scale(.95); }
.footer-main-btn:hover  { border-color: var(--ac); color: var(--ac); background: var(--ac-dim); }

.footer-opts-btn {
  background: linear-gradient(135deg, var(--ac), #a8502f);
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 3px 14px var(--ac-dim);
}
.footer-opts-btn:hover { filter: brightness(1.1); color: #fff !important; background: linear-gradient(135deg, var(--ac), #a8502f) !important; }

.fmb-icon { font-size: 18px; line-height: 1; flex-shrink: 0; }
.fmb-lbl  { font-size: 14px; font-weight: 800; }

/* ──────────────────────────────────────
   Options Overlay — ملء شاشة
────────────────────────────────────── */
.opts-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.88);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  display: flex; flex-direction: column;
  animation: optsIn .22s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
}
.opts-overlay.hidden { display: none; }

@keyframes optsIn {
  from { opacity:0; transform:translateY(30px); }
  to   { opacity:1; transform:translateY(0); }
}

.opts-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 14px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.opts-title {
  font-size: 20px; font-weight: 900; color: var(--text-primary);
}
.opts-close {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  color: var(--text-secondary); font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .15s;
}
.opts-close:hover { background: rgba(255,255,255,.2); color: var(--text-primary); }

.opts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 18px 16px;
  flex: 1;
  overflow-y: auto;
  align-content: start;
}
@media (min-width: 480px) {
  .opts-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (min-width: 768px) {
  .opts-grid { grid-template-columns: repeat(3, 1fr); max-width: 560px; margin: 0 auto; width: 100%; }
}

.opts-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 22px 12px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  cursor: pointer; transition: all .18s;
  min-height: 110px;
}
.opts-btn:hover  { border-color: var(--ac); background: var(--ac-dim); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.opts-btn:active { transform: scale(.95); }

.opts-img {
  width: 44px; height: 44px; object-fit: contain; display: block;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.4));
}
.opts-emoji {
  font-size: 36px; line-height: 1; display: block;
}
.opts-lbl {
  font-size: 14px; font-weight: 800; color: var(--text-primary);
  text-align: center; line-height: 1.2;
}

.opts-btn-logout {
  border-color: var(--dn-dim);
  background: color-mix(in srgb, var(--dn) 8%, var(--bg-card));
}
.opts-btn-logout:hover { border-color: var(--dn); background: var(--dn-dim); }
.opts-btn-logout .opts-lbl { color: var(--dn); }

/* ──────────────────────────────────────
   شريط التاريخ والوقت
────────────────────────────────────── */
.datetime-bar {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 5px 14px;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
  cursor: pointer; flex-shrink: 0;
  transition: background .15s;
  user-select: none;
}
.datetime-bar:hover  { background: var(--bg-input); }
.datetime-bar:active { opacity: .8; }

.dt-clock {
  font-family: var(--font-ui);
  font-size: 13px; font-weight: 800;
  color: var(--text-primary);
  direction: rtl; white-space: nowrap;
}
.dt-hint { font-size: 13px; opacity: .55; flex-shrink: 0; }

/* ──────────────────────────────────────
   جدول الأشهر
────────────────────────────────────── */
.months-panel {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 10px 10px 8px;
  flex-shrink: 0;
  overflow: hidden;
  animation: slideDown .18s ease;
}
.months-panel.hidden { display: none; }

@keyframes slideDown {
  from { opacity:0; transform:translateY(-6px); }
  to   { opacity:1; transform:translateY(0); }
}

.months-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}
@media (min-width: 480px) {
  .months-grid { grid-template-columns: repeat(6, 1fr); }
}

.month-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 4px;
  text-align: center;
}
.m-num  {
  font-family: var(--font-mono);
  font-size: 15px; font-weight: 900; color: var(--ac); line-height: 1;
}
.m-name { font-size: 11px; font-weight: 800; color: var(--text-primary); }
.m-en   { font-family: var(--font-mono); font-size: 9px; color: var(--text-muted); font-weight: 700; }

/* ──────────────────────────────────────
   Nav Logo Button
────────────────────────────────────── */
.nav-logo-btn {
  display: flex; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer;
  padding: 4px 6px; border-radius: 8px;
  transition: background .15s; flex-shrink: 0;
}
.nav-logo-btn:hover  { background: var(--ac-dim); }
.nav-logo-btn:active { opacity: .7; }

.nav-logo-icon {
  font-size: 18px; line-height: 1;
  filter: drop-shadow(0 0 5px rgba(224,114,72,.6));
}
.nav-logo-text {
  font-size: 16px; font-weight: 900;
  color: var(--text-primary); letter-spacing: .4px;
  white-space: nowrap;
}

/* ──────────────────────────────────────
   Trade Panel — مُنظَّف (بدون header)
────────────────────────────────────── */
.trade-panel {
  background: var(--bg-card);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-lg);
  padding: 10px 11px;
  display: flex; flex-direction: column;
  gap: 8px; flex-shrink: 0;
}

/* حقل الكمية — صف واحد نظيف */
.qty-input-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 6px; align-items: stretch;
}
.qty-input {
  width: 100%; font-family: var(--font-mono);
  font-size: clamp(18px, 4.5vw, 22px); font-weight: 800;
  padding: 9px 10px; text-align: center; direction: ltr;
  border-radius: var(--r-sm); background: var(--bg-input);
  border: 2px solid var(--ac-dim); min-width: 0;
}
.qty-input:focus { border-color: var(--ac); }

.qty-100 {
  background: var(--ac); color: #fff; border-radius: var(--r-sm);
  padding: 0 11px; font-size: 11px; font-weight: 800;
  font-family: var(--font-mono); white-space: nowrap; flex-shrink: 0;
  border: none;
}
.qty-100:hover { filter: brightness(1.1); }

.qty-unit {
  font-size: 11px; font-weight: 800; color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  min-width: 30px; white-space: nowrap;
}

.trade-buttons {
  display: grid; grid-template-columns: 1fr 1fr; gap: 7px;
}
.btn-trade {
  border-radius: var(--r-md); min-height: 42px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1px;
  border: none;
}
.btn-trade:disabled { opacity: .45; pointer-events: none; }
.btn-buy  { background: linear-gradient(155deg, var(--up), #1a7f37); box-shadow: 0 3px 10px var(--up-dim); }
.btn-sell { background: linear-gradient(155deg, var(--dn), #a0281e); box-shadow: 0 3px 10px var(--dn-dim); }
.btn-label { font-size: 15px; font-weight: 900; color: #fff; }
.btn-price { font-family: var(--font-mono); font-size: 10px; color: rgba(255,255,255,.85); font-weight: 700; }

/* Toast يتكيف مع footer الجديد */
#toast { bottom: 68px !important; }

/* About modal body */
.about-body { display:flex; flex-direction:column; gap:12px; flex:1; overflow-y:auto; }
.about-block {
  background:var(--ac-dim); border:1px solid color-mix(in srgb,var(--ac) 25%,transparent);
  border-radius:var(--r-md); padding:12px 14px;
  font-size:13px; line-height:1.7; color:var(--text-secondary);
}
.about-section { display:flex; flex-direction:column; gap:8px; }
.about-item {
  display:flex; align-items:flex-start; gap:12px;
  background:var(--bg-input); border-radius:var(--r-sm); padding:10px 12px;
}
.about-icon { font-size:20px; line-height:1; flex-shrink:0; margin-top:1px; }
.about-item div { display:flex; flex-direction:column; gap:3px; min-width:0; }
.about-item strong { font-size:13px; font-weight:900; color:var(--text-primary); }
.about-item p { font-size:12px; font-weight:600; color:var(--text-secondary); line-height:1.6; margin:0; }
