:root { --bg:#0b0e14; --card:#151924; --border:#222838; --primary:#3b82f6; --green:#10b981; --red:#f43f5e; --text:#ffffff; --muted:#8b95a5; }
* { box-sizing:border-box; margin:0; padding:0; font-family:'Vazirmatn',sans-serif; -webkit-tap-highlight-color:transparent; }
body { background-color:var(--bg); color:var(--text); padding-bottom:50px; overflow-x:hidden; }
#cr-splash { position:fixed; inset:0; background:#0b0e14; z-index:99999; display:flex; flex-direction:column; align-items:center; justify-content:center; transition:opacity 0.5s ease; }
.splash-logo { font-size:34px; font-weight:900; color:#fff; letter-spacing:-1px; animation:pulseSplash 1.2s infinite alternate; direction:ltr; }
.splash-logo span { color:#3b82f6; }
.splash-loader { width:140px; height:4px; background:#1e2433; border-radius:4px; margin-top:18px; overflow:hidden; position:relative; }
.splash-bar { width:0%; height:100%; background:linear-gradient(90deg,#3b82f6,#10b981); animation:loadBar 1.8s forwards ease-in-out; }
@keyframes pulseSplash { from { transform:scale(0.96); opacity:0.8; } to { transform:scale(1.04); opacity:1; } }
@keyframes loadBar { 0% { width:0%; } 100% { width:100%; } }
.filter-chips { display:flex; gap:8px; overflow-x:auto; padding-bottom:10px; margin-bottom:12px; scrollbar-width:none; }
.filter-chips::-webkit-scrollbar { display:none; }
.f-chip { background:#131722; border:1px solid #222838; color:#94a3b8; padding:7px 14px; border-radius:20px; font-size:11px; font-weight:800; white-space:nowrap; cursor:pointer; }
.f-chip.active { background:#3b82f6; color:#fff; border-color:#3b82f6; }
.auth-overlay { position:fixed; inset:0; background:rgba(11,14,20,0.96); backdrop-filter:blur(18px); z-index:200; display:none; align-items:center; justify-content:center; padding:20px; }
.auth-overlay.show { display:flex; }
.auth-card { background:var(--card); border:1px solid var(--border); width:100%; max-width:390px; border-radius:28px; padding:28px 22px; text-align:center; box-shadow:0 20px 50px rgba(0,0,0,0.7); position:relative; }
.auth-close { position:absolute; top:14px; left:16px; background:rgba(255,255,255,0.06); border:none; color:var(--muted); width:30px; height:30px; border-radius:50%; font-size:14px; cursor:pointer; }
.auth-logo { font-size:28px; font-weight:900; color:#3b82f6; direction:ltr; margin-bottom:8px; }
.auth-logo span { color:#fff; }
.auth-sub { font-size:13px; color:var(--muted); margin-bottom:24px; line-height:1.6; }
.btn-google { width:100%; background:#fff; color:#0f172a; border:none; padding:14px; border-radius:16px; font-size:14px; font-weight:900; display:flex; align-items:center; justify-content:center; gap:10px; cursor:pointer; margin-bottom:12px; }
.btn-anon { width:100%; background:rgba(255,255,255,0.05); color:#fff; border:1px solid var(--border); padding:14px; border-radius:16px; font-size:14px; font-weight:800; display:flex; align-items:center; justify-content:center; gap:8px; cursor:pointer; }
.google-form-box { display:none; text-align:right; margin-top:14px; padding-top:14px; border-top:1px solid var(--border); }
.user-chip { background:var(--card); border:1px solid var(--border); color:var(--text); height:38px; padding:0 10px; border-radius:10px; display:flex; align-items:center; gap:6px; font-size:12px; font-weight:800; cursor:pointer; max-width:150px; }
.user-avatar { width:22px; height:22px; border-radius:50%; background:var(--primary); color:#fff; display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:900; flex-shrink:0; }
.user-name-txt { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
header { background:var(--bg); padding:12px 16px 8px; position:sticky; top:0; z-index:50; border-bottom:1px solid var(--border); }
.top-nav { display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; }
.logo { font-size:22px; font-weight:900; color:#3b82f6; display:flex; align-items:center; gap:6px; direction:ltr; user-select:none; cursor:pointer; }
.logo span { color:#fff; }
.top-icons { display:flex; gap:8px; align-items:center; }
.icon-btn { background:var(--card); border:1px solid var(--border); color:var(--text); width:38px; height:38px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:16px; cursor:pointer; }
.stories-bar { display:flex; gap:14px; overflow-x:auto; padding-bottom:8px; scrollbar-width:none; }
.stories-bar::-webkit-scrollbar { display:none; }
.story-item { display:flex; flex-direction:column; align-items:center; gap:6px; cursor:pointer; min-width:72px; flex-shrink:0; background:none; border:none; }
.story-ring { width:64px; height:64px; border-radius:50%; padding:3px; background:linear-gradient(135deg,#3b82f6,#8b5cf6,#ec4899); display:flex; align-items:center; justify-content:center; transition:0.2s; }
.story-item.active .story-ring { box-shadow:0 0 16px rgba(59,130,246,0.7); transform:scale(1.06); }
.story-inner { width:100%; height:100%; background:var(--card); border-radius:50%; border:2px solid var(--bg); display:flex; align-items:center; justify-content:center; font-size:26px; }
.story-title { font-size:11px; color:var(--muted); font-weight:700; text-align:center; white-space:nowrap; }
.story-item.active .story-title { color:#fff; font-weight:900; }
.sec-wrap { padding:14px 16px 8px; }
.sec-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; }
.sec-title { font-size:17px; font-weight:900; color:#fff; }
.view-all-btn { background:none; border:none; color:#3b82f6; font-size:13px; font-weight:800; cursor:pointer; display:flex; align-items:center; gap:4px; }
.featured-scroll { display:flex; gap:12px; overflow-x:auto; padding-bottom:8px; scrollbar-width:none; }
.featured-scroll::-webkit-scrollbar { display:none; }
.feat-card { min-width:170px; height:180px; border-radius:22px; padding:16px; display:flex; flex-direction:column; justify-content:space-between; cursor:pointer; position:relative; overflow:hidden; flex-shrink:0; border:1px solid rgba(255,255,255,0.12); }
.feat-dark { background:linear-gradient(145deg,#1e293b,#0f172a); border-color:var(--border); }
.feat-purple { background:linear-gradient(145deg,#6d28d9,#4f46e5); }
.feat-green { background:linear-gradient(145deg,#059669,#10b981); }
.feat-red { background:linear-gradient(145deg,#e11d48,#f43f5e); }
.feat-icon { width:40px; height:40px; border-radius:12px; background:rgba(255,255,255,0.18); display:flex; align-items:center; justify-content:center; font-size:20px; }
.feat-h { font-size:16px; font-weight:900; color:#fff; margin-bottom:4px; }
.feat-p { font-size:11px; color:rgba(255,255,255,0.9); line-height:1.5; font-weight:600; }
.live-badge { font-size:10px; background:rgba(0,0,0,0.35); padding:3px 8px; border-radius:8px; color:#fff; font-weight:800; display:inline-block; margin-top:4px; direction:ltr; }
.widgets-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.w-card { background:var(--card); border:1px solid var(--border); border-radius:20px; padding:14px; display:flex; flex-direction:column; justify-content:space-between; }
.w-top { display:flex; justify-content:space-between; align-items:center; font-size:12px; font-weight:800; color:var(--muted); margin-bottom:8px; }
.gauge-box { text-align:center; padding:6px 0; }
.gauge-arc { width:110px; height:55px; border-top-left-radius:110px; border-top-right-radius:110px; border:10px solid #222838; border-bottom:0; margin:0 auto; border-top-color:#eab308; border-right-color:#10b981; border-left-color:#f43f5e; }
.gauge-num { font-size:22px; font-weight:900; color:#fff; margin-top:-18px; }
.gauge-lbl { font-size:12px; color:var(--green); font-weight:800; }
.dom-val { font-size:20px; font-weight:900; color:#fff; direction:ltr; text-align:left; }
.dom-chg { font-size:12px; color:var(--green); font-weight:700; direction:ltr; text-align:left; }
.mini-chart { width:100%; height:45px; margin-top:8px; }
.news-card { background:var(--card); border:1px solid var(--border); border-radius:16px; padding:12px 14px; margin-bottom:10px; display:flex; gap:12px; align-items:center; cursor:pointer; }
.news-time { font-size:10px; color:var(--primary); font-weight:800; background:rgba(59,130,246,0.1); padding:2px 6px; border-radius:6px; }
.top-coins-scroll { display:flex; gap:12px; overflow-x:auto; padding-bottom:8px; scrollbar-width:none; }
.top-coins-scroll::-webkit-scrollbar { display:none; }
.tc-card { min-width:148px; background:var(--card); border:1px solid var(--border); border-radius:20px; padding:14px; flex-shrink:0; cursor:pointer; }
.tc-head { display:flex; align-items:center; gap:8px; margin-bottom:10px; }
.tc-head img { width:28px; height:28px; border-radius:50%; }
.tc-name { font-size:14px; font-weight:800; color:#fff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.tc-spark { width:100%; height:36px; margin:6px 0; }
.tc-foot { display:flex; justify-content:space-between; align-items:baseline; direction:ltr; margin-top:6px; }
.tc-price { font-size:14px; font-weight:900; color:#fff; }
.tc-chg { font-size:11px; font-weight:800; }
.all-coins-box { background:var(--card); border:1px solid var(--border); border-radius:20px; padding:12px; margin-top:10px; }
.coin-row { display:flex; justify-content:space-between; align-items:center; padding:11px 8px; border-bottom:1px solid var(--border); cursor:pointer; }
.coin-row:last-child { border-bottom:none; }
.wheel-section { background:linear-gradient(135deg,#161b2e,#0f1322); border:1px solid #2e3b5e; border-radius:24px; padding:20px; text-align:center; margin:16px; position:relative; overflow:hidden; }
.spin-btn { background:linear-gradient(90deg,#3b82f6,#8b5cf6); color:#fff; border:none; padding:12px 28px; border-radius:14px; font-size:14px; font-weight:900; cursor:pointer; }
.spin-btn:disabled { opacity:0.5; cursor:not-allowed; }
.view-page { display:none; }
.view-page.active { display:block; }
.info-card { background:var(--card); border:1px solid var(--border); border-radius:20px; padding:16px; margin:0 16px 12px; cursor:pointer; }
.badge { background:rgba(59,130,246,0.15); color:#60a5fa; padding:4px 10px; border-radius:8px; font-size:11px; font-weight:800; }
.modal { position:fixed; inset:0; background:rgba(0,0,0,0.82); backdrop-filter:blur(6px); z-index:100; display:none; align-items:flex-end; justify-content:center; }
.modal.show { display:flex; }
.modal-box { background:#151924; width:100%; max-width:500px; max-height:85vh; overflow-y:auto; border-radius:26px 26px 0 0; padding:22px 18px 32px; border-top:1px solid var(--border); }
.inp { width:100%; background:#0b0e14; border:1px solid var(--border); color:#fff; padding:11px 14px; border-radius:12px; font-size:16px; margin-bottom:10px; outline:none; }

/* ==========================================
   MODERN NEON & GLASSMORPHISM UPGRADE
   ========================================== */
:root {
  --bg: #080a10;
  --card: rgba(21, 25, 36, 0.7);
  --card-hover: rgba(30, 36, 51, 0.9);
  --border: rgba(255, 255, 255, 0.08);
  --primary: #3b82f6;
  --green: #10b981;
  --red: #f43f5e;
}

body {
  background-image: radial-gradient(circle at top right, rgba(59, 130, 246, 0.05), transparent 40%),
                    radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.05), transparent 40%);
  background-attachment: fixed;
}

header {
  background: rgba(8, 10, 16, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.auth-card, .modal-box, .w-card, .tc-card, .info-card, .news-card {
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.tc-card:active, .info-card:active, .news-card:active, .feat-card:active {
  transform: scale(0.97);
}

.tc-card:hover, .info-card:hover, .news-card:hover {
  background: var(--card-hover);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
}

.spin-btn {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.spin-btn:active {
  transform: scale(0.96);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.6);
}

.feat-card {
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.05), 0 10px 20px rgba(0,0,0,0.4);
}
.feat-green { background: linear-gradient(145deg, #064e3b, #059669); }
.feat-red { background: linear-gradient(145deg, #881337, #e11d48); }
.feat-purple { background: linear-gradient(145deg, #4c1d95, #6d28d9); }
.feat-dark { background: linear-gradient(145deg, #1e293b, #0f172a); }

.wheel-section {
  background: linear-gradient(135deg, rgba(22, 27, 46, 0.9), rgba(15, 19, 34, 0.9));
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Skeleton Loading */
.skeleton-card {
  min-width: 148px;
  height: 140px;
  background: #151924;
  border-radius: 20px;
  border: 1px solid #222838;
  margin-left: 12px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.skeleton-shimmer {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ==========================================
   BRAND BACKGROUND & ANIMATIONS
   ========================================== */
body {
  position: relative;
  background-color: #080a10; /* رنگ تیره پایه */
}

/* لایه پس‌زمینه با استفاده از لوگو */
body::before {
  content: "";
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 120vw; height: 120vh; /* بزرگتر از صفحه برای پوشش کامل */
  background-image: url('logo.png');
  background-size: contain; /* یا cover */
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.04; /* شفافیت خیلی کم (۴ درصد) تا با متن تداخل نکند */
  z-index: -1;
  pointer-events: none;
  filter: blur(2px); /* کمی محو برای زیبایی بیشتر */
}

/* انیمیشن برای لوگوی صفحه اول (Splash) */
@keyframes pulseLogo {
  0% { transform: scale(0.95) translateY(0); filter: drop-shadow(0 0 10px rgba(59,130,246,0.5)); }
  100% { transform: scale(1.05) translateY(-8px); filter: drop-shadow(0 0 25px rgba(59,130,246,0.8)); }
}

/* زوم کردن روی آیکون گوشه عکس برای پس‌زمینه */
body::before {
  background-size: 250% !important; 
  background-position: right bottom !important; 
}

/* ==========================================
   FIX SPLASH SCREEN (NO BOX + LOADER)
   ========================================== */
#cr-splash {
  background: var(--bg) !important; /* هم‌رنگ با پس‌زمینه سایت */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.splash-img {
  width: 85%;
  max-width: 380px;
  height: auto;
  margin-bottom: 25px;
  /* این خط جادویی پس‌زمینه تیره عکس رو محو میکنه */
  mix-blend-mode: screen; 
  animation: pulseLogo 2s infinite alternate;
}

/* بازگرداندن خط لودینگ */
.splash-loader {
  width: 180px !important;
  height: 6px !important;
  background: #1e2433 !important;
  border-radius: 10px !important;
  margin-top: 10px !important;
  overflow: hidden !important;
  position: relative !important;
}
.splash-bar {
  width: 0%;
  height: 100% !important;
  background: linear-gradient(90deg, #3b82f6, #10b981) !important;
  animation: loadBar 2s forwards ease-in-out !important;
}
