/* سایت ساده — بدون جنگ با mockup. فقط صفحات غیرچت */
*, *::before, *::after { box-sizing: border-box; }
html {
  overflow-y: scroll !important;
  overflow-x: hidden !important;
  height: auto !important;
  max-height: none !important;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  padding: 0;
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
  min-height: 100vh;
  position: static !important;
  font-family: Vazirmatn, Tahoma, system-ui, sans-serif;
  line-height: 1.7;
  background: #0c0c0c;
  color: #f5f5f4;
}
body.ui-light { background: #f6f5f2; color: #1c1917; }
a { color: #f59e0b; text-decoration: none; }
img { max-width: 100%; height: auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(12,12,12,.92);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
}
body.ui-light .topbar {
  background: rgba(246,245,242,.95);
  border-bottom-color: rgba(0,0,0,.08);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
}
.nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nav a, .btn-nav, .mode-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  border: 1px solid rgba(245,158,11,.45); color: #f59e0b; background: transparent;
  cursor: pointer; min-height: 40px;
}
.btn-nav, .btn-hero, .btn {
  background: #f59e0b; color: #111 !important; border-color: #f59e0b;
  padding: 10px 18px; border-radius: 12px; font-weight: 700; display: inline-block;
}
.home-hero, .hero {
  padding: 48px 20px 32px; text-align: center; max-width: 720px; margin: 0 auto;
}
.home-hero h1, .hero h1 { font-size: clamp(28px, 6vw, 42px); margin: 0 0 12px; line-height: 1.25; }
.home-hero p, .hero p { opacity: .85; margin: 0 0 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px; padding: 16px 20px 48px; max-width: 960px; margin: 0 auto;
}
.feature-card {
  padding: 18px; border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03);
}
body.ui-light .feature-card {
  background: #fff; border-color: rgba(0,0,0,.08);
}
.feature-card h3 { margin: 0 0 8px; font-size: 17px; }
.feature-card p { margin: 0; font-size: 14px; opacity: .85; }
.site-foot {
  text-align: center; padding: 28px 16px 40px; font-size: 13px; opacity: .65;
  border-top: 1px solid rgba(127,127,127,.15);
}
.auth-card, .login-card, .card, .panel {
  max-width: 420px; margin: 32px auto; padding: 24px;
  border-radius: 16px; border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
}
body.ui-light .auth-card, body.ui-light .panel {
  background: #fff; border-color: rgba(0,0,0,.08);
}
input, select, textarea, button {
  font: inherit; font-size: 16px !important; /* no iOS zoom */
}
input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid rgba(127,127,127,.35); background: transparent; color: inherit;
  margin: 6px 0 14px;
}
.fg { margin-bottom: 8px; }
.wrap, .crypto-wrap, main { max-width: 960px; margin: 0 auto; padding: 20px 16px 48px; }
.table-wrap, .crypto-table { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 8px; border-bottom: 1px solid rgba(127,127,127,.2); text-align: right; font-size: 14px; }
.ambient, .orb { display: none !important; } /* حذف لایه تزئینی که گاهی گیر می‌دهد */
.wp-shell { display: block; }
.wp-side {
  display: flex; flex-wrap: nowrap; gap: 4px; overflow-x: auto;
  padding: 8px; border-bottom: 1px solid rgba(127,127,127,.2);
}
.wp-side a { white-space: nowrap; padding: 10px 12px; font-size: 13px; }
.wp-main { padding: 16px; }
@media (min-width: 900px) {
  .wp-shell { display: flex; min-height: 100vh; }
  .wp-side {
    flex-direction: column; width: 220px; overflow-y: auto; overflow-x: hidden;
    border-bottom: none; border-left: 1px solid rgba(127,127,127,.2);
  }
  .wp-main { flex: 1; }
}
