/* ============================================================
   HOTARU THEME — ULTRA GLASS & SILK GLOW EDITION v15.1
   Maximum Glassmorphism, 1/3 Radius & Extremely Soft Mouse Glow.
   ============================================================ */
:root {
  --bg-main:         #050811; 
  --border-glass:    rgba(255, 255, 255, 0.05);
  --border-shine:    rgba(255, 255, 255, 0.25); /* انعکاس قوی‌تر لبه شیشه */
  --text-main:       #f8fafc;
  --text-dim:        #cbd5e1;
  --primary:         #38bdf8; 
  --accent:          #10b981; 
  --danger:          #f43f5e; 
  --warn:            #f59e0b; 
}

* { box-sizing: border-box !important; }

body {
  background: var(--bg-main) !important;
  color: var(--text-main) !important;
  font-family: 'Vazirmatn', 'Lato', sans-serif !important; 
  margin: 0; padding: 0; overflow-x: hidden;
}

/* ---------- هاله نوری موس (شعاع 200px اما با نوری بسیار محو و لطیف) ---------- */
#na-glow {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  /* غلظت رنگ از 0.25 به 0.08 کاهش یافت تا مثل یه هاله ابریشمی بشه */
  background: radial-gradient(circle 200px at var(--mx, -500px) var(--my, -500px), rgba(56, 189, 248, 0.08), transparent 80%);
  mix-blend-mode: screen; will-change: background; display: block !important;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }

/* ============================================================
   کشتار عناصر مزاحم
   ============================================================ */
body #app .ui.vertical.masthead, 
body #app .bg-info, 
body #app .footer, 
body #app #cards, 
body #app .updated,
body #app a[href*="pixiv"], 
body #app a[href*="Pixiv"] { 
  display: none !important; opacity: 0 !important; visibility: hidden !important; 
}

/* ============================================================
   تراز هندسی قالب (قفل روی ۱۲۰۰ پیکسل)
   ============================================================ */
body #app .ui.container { 
  width: 95% !important; max-width: 1200px !important; margin: 0 auto !important; padding: 0 !important;
}

/* ============================================================
   GLASSMORPHISM BASE (شیشه‌ایِ فوق‌العاده واقعی و عمیق)
   ============================================================ */
body #app #na-custom-header, 
body #app #table, 
body #app .na-charts {
  background: rgba(10, 15, 25, 0.15) !important; /* شفافیت بسیار بالا برای رد شدن نور و تصویر */
  backdrop-filter: blur(35px) saturate(200%) !important; /* بلور به شدت قدرتمند (۳۵ پیکسل) */
  -webkit-backdrop-filter: blur(35px) saturate(200%) !important;
  border: 1px solid var(--border-glass) !important;
  border-top: 1px solid var(--border-shine) !important; /* لبه براق بالای شیشه برای حس سه‌بعدی */
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6), inset 0 1px 3px rgba(255, 255, 255, 0.1) !important;
  border-radius: 16px !important;
}

/* ============================================================
   HEADER
   ============================================================ */
body #app #na-custom-header {
  width: 95% !important; max-width: 1200px !important; margin: 2rem auto 1.5rem auto !important;
  padding: 1.2rem 2rem !important; text-align: center;
}
body #app #na-custom-header h1 {
  font-size: 1.5rem !important; font-weight: 900 !important; color: var(--text-main) !important; margin: 0 !important;
  display: flex; align-items: center; justify-content: center; gap: 0.8rem;
}
body #app #na-custom-header h1::before {
  content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent);
}

/* ============================================================
   TABLE
   ============================================================ */
body #app #table {
  width: 95% !important; max-width: 1200px !important; margin: 0 auto 2rem auto !important; padding: 1.5rem !important;
}
body #app #table table { width: 100% !important; border-collapse: separate !important; border-spacing: 0 8px !important; border: none !important; }
body #app #table thead th { color: var(--primary) !important; border: none !important; font-size: 0.9rem !important; text-transform: uppercase; padding: 0.5rem !important; text-align: center !important; }

body #app #table tbody tr { background: rgba(0,0,0,0.3) !important; transition: all 0.3s ease !important; border-radius: 10px; }
body #app #table tbody tr:hover { background: rgba(255,255,255,0.08) !important; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 212, 255, 0.15); }

body #app #table tbody td { color: var(--text-main) !important; padding: 1.2rem 0.5rem !important; font-size: 1.1rem !important; text-align: center !important; vertical-align: middle !important; border-top: 1px solid rgba(255,255,255,0.03) !important; border-bottom: 1px solid rgba(255,255,255,0.03) !important; }
body #app #table tbody tr td:first-child { border-left: 1px solid rgba(255,255,255,0.03) !important; border-radius: 10px 0 0 10px; }
body #app #table tbody tr td:last-child { border-right: 1px solid rgba(255,255,255,0.03) !important; border-radius: 0 10px 10px 0; }

/* ---------- چراغ سیگنال وضعیت ---------- */
body #app #table tbody td:first-child .ui.label {
  display: inline-block !important; width: 14px !important; height: 14px !important; min-width: 14px !important;
  border-radius: 50% !important; margin: 0 auto !important; padding: 0 !important; border: none !important;
  color: transparent !important; overflow: hidden !important; text-indent: 9999px !important; white-space: nowrap !important;
}
body #app #table tbody td [class*="green"] { background: var(--accent) !important; box-shadow: 0 0 12px var(--accent) !important; }
body #app #table tbody td [class*="red"] { background: var(--danger) !important; box-shadow: 0 0 12px var(--danger) !important; }

/* ============================================================
   PROGRESS BARS: قفل قطعی متن در مرکز هندسی
   ============================================================ */
body #app .ui.progress { position: relative !important; background: rgba(0,0,0,0.5) !important; border: 1px solid rgba(255,255,255,0.05) !important; border-radius: 999px !important; height: 28px !important; width: 100% !important; min-width: 90px !important; box-shadow: inset 0 2px 6px rgba(0,0,0,0.8) !important; }

body #app .ui.progress .bar { position: static !important; height: 100% !important; border-radius: 999px !important; background: linear-gradient(90deg, #38bdf8, #818cf8) !important; }
body #app .ui.progress.success .bar { background: linear-gradient(90deg, #10b981, #34d399) !important; }
body #app .ui.progress.warning .bar { background: linear-gradient(90deg, #f59e0b, #fbbf24) !important; }
body #app .ui.progress.error .bar { background: linear-gradient(90deg, #ef4444, #f43f5e) !important; }

body #app .ui.progress .progress {
  position: absolute !important; left: 50% !important; top: 50% !important; transform: translate(-50%, -50%) !important;
  width: 100% !important; text-align: center !important; font-size: 1rem !important; font-weight: 900 !important; color: #fff !important;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 0 2px 5px rgba(0,0,0,0.9) !important;
  right: auto !important; bottom: auto !important; margin: 0 !important; padding: 0 !important; display: block !important;
}
body #app .ui.progress.warning .progress { color: #000 !important; text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff !important; }

/* ============================================================
   CHARTS
   ============================================================ */
body #app .na-charts {
  width: 95% !important; max-width: 1200px !important; margin: 0 auto 3rem auto !important; padding: 1.5rem !important;
  display: flex; flex-direction: column; gap: 1.2rem;
}

body #app .na-charts-hd { display: flex; align-items: center; justify-content: space-between; padding-bottom: 1rem; border-bottom: 1px solid var(--border-glass); }
body #app .na-charts-title { font-size: 1.3rem !important; font-weight: 800; color: var(--primary); }
body #app .na-btn-group { display: inline-flex; gap: 4px; background: rgba(0,0,0,0.4); padding: 4px; border-radius: 999px; border: 1px solid var(--border-glass); }
body #app .na-btn { appearance: none; border: none; background: transparent; color: var(--text-dim); font-size: 0.9rem; font-weight: 700; padding: 0.4rem 1.2rem; border-radius: 999px; cursor: pointer; }
body #app .na-btn.active { background: var(--primary); color: #000; font-weight: 900; }

body #app .na-srv { display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem; background: rgba(0,0,0,0.2); border: 1px solid var(--border-glass); border-radius: 16px; }
body #app .na-srv-hd { display: flex; align-items: center; gap: 1rem; padding-bottom: 0.8rem; border-bottom: 1px solid var(--border-glass); }

body #app .na-srv-name { font-size: 1.5rem !important; font-weight: 900; color: var(--text-main); display: inline-flex; align-items: center; }
body #app .na-srv-hd i.flag { margin: 0 10px 0 0 !important; transform: scale(1.6); }

body #app .na-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media(max-width:900px) { body #app .na-grid { grid-template-columns: 1fr; } }

body #app .na-cp { background: rgba(0,0,0,0.3); border: 1px solid var(--border-glass); border-radius: 12px; padding: 1rem; }
body #app .na-cp-title { font-size: 1.1rem !important; font-weight: 800; color: var(--text-dim); text-transform: uppercase; display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.8rem; }
body #app .na-cp-title .live { color: var(--primary); font-weight: 900; font-size: 1.3rem !important; }

body #app .na-cp-chart { position: relative; width: 100%; height: 220px !important; padding-left: 45px; padding-bottom: 25px; }
body #app .na-cp-chart canvas { width: 100%; height: 100%; display: block; }