:root {
  /* Fallbacks لو انفتح الموقع قبل تحميل ملف الثيم */
  --primary: #52a6f4;
  --background: linear-gradient(180deg, #0d1b2a 0%, #1b263b 100%);
  --card: #1b263b;
  --text: #e4f1ff;
  --subtext: #a3d4ff;
  --glow-color: 82, 166, 244;
  --shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.18);
  --shadow-strong: 0 14px 34px rgba(var(--glow-color), 0.22);
}

/*
  الخطة الحالية:
  هذا الملف صار قاعدة مشتركة خفيفة فقط لتشغيل الموقع بثبات الآن.
  بعد الإطلاق نعمل مرحلة تنظيم ثانية:
  1) نجمع التنسيقات المتكررة من ملفات HTML
  2) نعيد تقسيمها إلى ملفات منظمة
  3) نربطها بالكامل مع نظام المجموعات اللونية والمتغيرات
*/

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background: var(--background);
  color: var(--text);
  min-height: 100vh;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
}

/* =========================
   Shared Layout
========================= */

.copy-page,
.assets-page,
.tasks-page,
.market-page,
.profile-page,
.password-page,
.funds-password-page,
.help-page,
.download-page,
.settings-page,
.team-page {
  min-height: 100vh;
  padding: 30px 16px 110px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.section-head h2 {
  margin: 0;
  font-size: 22px;
  color: var(--text);
}

.section-head span {
  color: var(--primary);
  font-size: 13px;
  line-height: 1.8;
}

/* =========================
   Bottom Navigation
========================= */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 78px;
  background: rgba(8, 8, 8, 0.82);
  border-top: 1px solid rgba(var(--glow-color), 0.12);
  display: flex;
  justify-content: space-around;
  align-items: center;
  backdrop-filter: blur(12px);
  z-index: 999;
}

.nav-item {
  text-align: center;
  font-size: 12px;
  color: var(--subtext);
  text-decoration: none;
  opacity: 0.85;
}

.nav-item span {
  display: block;
  font-size: 20px;
  margin-bottom: 4px;
}

.nav-item p {
  margin: 0;
}

.nav-item.active {
  color: var(--primary);
  opacity: 1;
}

.nav-item.center {
  background: var(--primary);
  color: #111;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-16px);
  box-shadow: 0 10px 25px rgba(var(--glow-color), 0.30);
  opacity: 1;
}

.nav-item.center span {
  margin: 0;
  font-size: 24px;
}

/* =========================
   Floating Bot
========================= */

.portal-float-bot {
  position: fixed;
  right: 18px;
  bottom: 108px;
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  background: var(--primary);
  color: #111;
  font-size: 24px;
  cursor: pointer;
  box-shadow: var(--shadow-strong);
  z-index: 998;
}

/* =========================
   Shared Hero Blocks
========================= */

.copy-hero,
.wallet-hero,
.tasks-hero,
.market-hero,
.profile-hero,
.password-hero-box,
.funds-password-hero-box,
.help-hero-box,
.download-hero,
.settings-hero-card,
.team-info-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    145deg,
    var(--card),
    rgba(var(--glow-color), 0.06)
  );
  border: 1px solid rgba(var(--glow-color), 0.10);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

.copy-hero,
.wallet-hero,
.tasks-hero,
.market-hero,
.password-hero-box,
.funds-password-hero-box,
.help-hero-box,
.download-hero,
.settings-hero-card,
.team-info-hero {
  padding: 24px 20px;
  margin-bottom: 20px;
}

.profile-hero {
  text-align: center;
  padding: 30px 20px;
  margin-bottom: 20px;
}

.copy-hero-glow,
.wallet-hero-glow,
.tasks-hero-glow,
.market-hero-glow,
.profile-hero-glow,
.password-hero-glow,
.funds-password-hero-glow,
.help-hero-glow,
.download-hero-glow {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--glow-color), 0.26), transparent 65%);
}

.copy-hero-glow {
  width: 180px;
  height: 180px;
  top: -40px;
  left: -40px;
}

.wallet-hero-glow,
.tasks-hero-glow,
.market-hero-glow,
.password-hero-glow,
.funds-password-hero-glow,
.help-hero-glow,
.download-hero-glow {
  width: 220px;
  height: 220px;
  top: -80px;
  left: -60px;
}

.profile-hero-glow {
  width: 200px;
  height: 200px;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
}

.copy-mini-title,
.wallet-mini-title,
.tasks-mini-title,
.market-mini-title,
.password-mini,
.funds-password-mini,
.help-mini,
.download-mini,
.settings-mini,
.team-mini {
  position: relative;
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 13px;
  letter-spacing: 1px;
}

.copy-hero h1,
.wallet-hero h1,
.tasks-hero h1,
.market-hero h1,
.password-header-center h1,
.funds-password-header-center h1,
.help-header-center h1,
.download-header-center h1,
.settings-header-center h1,
.team-header-center h1 {
  position: relative;
  margin: 0;
  color: var(--text);
}

.copy-hero h1 {
  font-size: 34px;
  line-height: 1.2;
}

.wallet-hero h1,
.tasks-hero h1,
.market-hero h1,
.password-header-center h1,
.funds-password-header-center h1,
.help-header-center h1,
.download-header-center h1,
.settings-header-center h1,
.team-header-center h1 {
  font-size: 32px;
}

.copy-subtitle,
.tasks-subtitle,
.market-subtitle,
.home-subtitle {
  position: relative;
  font-size: 14px;
  line-height: 1.8;
  color: var(--subtext);
}

.copy-subtitle {
  margin: 14px 0 0;
}

.tasks-subtitle {
  margin: 0 0 18px;
}

.market-subtitle,
.home-subtitle {
  margin: 12px 0 0;
}

/* =========================
   Shared Header Bars
========================= */

.password-header,
.funds-password-header,
.help-header,
.download-header,
.settings-header,
.team-header {
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.password-back-btn,
.funds-password-back-btn,
.help-back-btn,
.download-back-btn,
.settings-back-btn,
.team-back-btn {
  width: 52px;
  height: 52px;
  text-decoration: none;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(var(--glow-color), 0.08);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: var(--shadow-soft);
}

.password-header-space,
.funds-password-header-space,
.help-header-space,
.download-header-space,
.settings-header-space,
.team-header-space {
  width: 52px;
  height: 52px;
}

.password-header-center,
.funds-password-header-center,
.help-header-center,
.download-header-center,
.settings-header-center,
.team-header-center {
  text-align: center;
}

/* =========================
   Profile Page Base
========================= */

.profile-avatar {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--primary);
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: bold;
}

.profile-hero h1 {
  margin: 8px 0 4px;
  color: var(--text);
}

.profile-hero p {
  margin: 0;
  color: var(--subtext);
}

.profile-badges {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.badge {
  background: rgba(var(--glow-color), 0.15);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card {
  background: linear-gradient(
    145deg,
    var(--card),
    rgba(var(--glow-color), 0.04)
  );
  border: 1px solid rgba(var(--glow-color), 0.08);
  border-radius: 18px;
  padding: 14px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.stat-card span {
  display: block;
  color: var(--subtext);
  font-size: 12px;
  margin-bottom: 6px;
}

.stat-card strong {
  font-size: 16px;
  color: var(--primary);
}

.profile-menu {
  display: grid;
  gap: 12px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(
    145deg,
    var(--card),
    rgba(var(--glow-color), 0.04)
  );
  border: 1px solid rgba(var(--glow-color), 0.08);
  border-radius: 18px;
  padding: 16px;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
}

.menu-item span {
  font-size: 20px;
}

.menu-item.logout {
  color: #ff6b6b;
}

.menu-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-content strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

.menu-content small {
  color: var(--subtext);
  font-size: 13px;
  line-height: 1.7;
  word-break: break-word;
}

/* =========================
   Settings Page Base
========================= */

.settings-box {
  width: min(100%, 900px);
  margin: 0 auto 18px;
  background: linear-gradient(
    145deg,
    var(--card),
    rgba(var(--glow-color), 0.04)
  );
  border: 1px solid rgba(var(--glow-color), 0.08);
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.settings-box-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.settings-box-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 22px;
}

.settings-box-head span {
  color: var(--primary);
  font-size: 13px;
}

.settings-user-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(100%, 900px);
  margin: 0 auto;
}

.settings-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--primary);
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  flex: 0 0 68px;
}

.settings-user-meta h2 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 24px;
}

.settings-user-meta p {
  margin: 0;
  color: var(--subtext);
  font-size: 13px;
}

.settings-list,
.settings-status-grid,
.settings-actions {
  display: grid;
  gap: 12px;
}

.settings-status-grid {
  grid-template-columns: repeat(2, 1fr);
}

.settings-row,
.settings-status-card,
.settings-wallet-box,
.settings-action-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(var(--glow-color), 0.08);
  border-radius: 18px;
  padding: 14px;
}

.settings-row span,
.settings-status-card span,
.settings-wallet-box span {
  display: block;
  color: var(--subtext);
  font-size: 12px;
  margin-bottom: 6px;
}

.settings-row strong,
.settings-status-card strong,
.settings-wallet-box strong {
  color: var(--text);
  line-height: 1.8;
  font-size: 14px;
}

.settings-action-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: var(--text);
}

.settings-action-card span {
  width: 44px;
  height: 44px;
  margin: 0;
  border-radius: 14px;
  background: rgba(var(--glow-color), 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.settings-action-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.settings-action-card p {
  margin: 0;
  color: var(--subtext);
  font-size: 13px;
  line-height: 1.8;
}

/* =========================
   Password Pages Base
========================= */

.password-form-box,
.funds-password-form-box {
  width: min(100%, 760px);
  margin: 0 auto 18px;
  background: linear-gradient(
    145deg,
    var(--card),
    rgba(var(--glow-color), 0.04)
  );
  border: 1px solid rgba(var(--glow-color), 0.08);
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.password-box-head,
.funds-password-box-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.password-box-head h2,
.funds-password-box-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 22px;
}

.password-box-head span,
.funds-password-box-head span {
  color: var(--primary);
  font-size: 13px;
}

.password-form,
.funds-password-form {
  display: grid;
  gap: 14px;
}

.password-field,
.funds-password-field {
  display: grid;
  gap: 8px;
}

.password-field label,
.funds-password-field label {
  color: var(--text);
  font-size: 14px;
  font-weight: bold;
}

.password-field input,
.funds-password-field input,
.password-field select,
.funds-password-field select {
  width: 100%;
  border: 1px solid rgba(var(--glow-color), 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 15px;
  outline: none;
}

.password-field input::placeholder,
.funds-password-field input::placeholder {
  color: var(--subtext);
}

.password-field input:focus,
.funds-password-field input:focus,
.password-field select:focus,
.funds-password-field select:focus {
  border-color: rgba(var(--glow-color), 0.28);
  box-shadow: 0 0 0 3px rgba(var(--glow-color), 0.10);
}

.password-tips-box,
.funds-password-warning-box {
  background: rgba(255,255,255,0.03);
  border: 1px dashed rgba(var(--glow-color), 0.14);
  border-radius: 18px;
  padding: 14px 16px;
}

.password-tips-box strong,
.funds-password-warning-box strong {
  display: block;
  color: var(--text);
  margin-bottom: 6px;
  font-size: 15px;
}

.password-tips-box p,
.funds-password-warning-box p {
  margin: 0;
  color: var(--subtext);
  line-height: 1.8;
  font-size: 13px;
}

.password-submit-btn,
.funds-password-submit-btn {
  border: none;
  background: var(--primary);
  color: #111;
  padding: 15px 18px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: var(--shadow-strong);
}

.password-submit-btn:disabled,
.funds-password-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.password-message,
.funds-password-message {
  min-height: 24px;
  color: var(--subtext);
  font-size: 14px;
  line-height: 1.8;
}

/* =========================
   Help Center Base
========================= */

.help-box {
  width: min(100%, 900px);
  margin: 0 auto 18px;
  background: linear-gradient(
    145deg,
    var(--card),
    rgba(var(--glow-color), 0.04)
  );
  border: 1px solid rgba(var(--glow-color), 0.08);
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.help-box-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.help-box-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 22px;
}

.help-box-head span {
  color: var(--primary);
  font-size: 13px;
}

.help-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.help-action-card {
  text-decoration: none;
  color: var(--text);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(var(--glow-color),0.08);
  border-radius: 18px;
  padding: 14px;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
}

.help-action-card span {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(var(--glow-color), 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.help-action-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.help-action-card p {
  margin: 0;
  color: var(--subtext);
  font-size: 13px;
  line-height: 1.8;
}

.help-faq-list,
.download-note-list {
  display: grid;
  gap: 12px;
}

/* =========================
   Download Page Base
========================= */

.download-box {
  width: min(100%, 900px);
  margin: 0 auto 18px;
  background: linear-gradient(
    145deg,
    var(--card),
    rgba(var(--glow-color), 0.04)
  );
  border: 1px solid rgba(var(--glow-color), 0.08);
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.download-box-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.download-box-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 22px;
}

.download-box-head span {
  color: var(--primary);
  font-size: 13px;
}

.download-box-text {
  margin: 0 0 16px;
  color: var(--subtext);
  line-height: 1.8;
  font-size: 14px;
}

.download-hero-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
}

.download-app-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.download-app-logo {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  object-fit: cover;
}

.download-app-brand h2 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 24px;
}

.download-app-brand p {
  margin: 0;
  color: var(--subtext);
  line-height: 1.8;
  font-size: 14px;
}

.download-preview-wrap {
  max-width: 220px;
}

.download-preview-image {
  width: 100%;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.download-action-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.download-main-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: var(--primary);
  color: #111;
  padding: 14px 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: bold;
  box-shadow: var(--shadow-strong);
}

.download-steps {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.download-step-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(var(--glow-color),0.08);
  border-radius: 18px;
  padding: 14px;
}

.download-step-item b {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--primary);
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
}

.download-step-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

.download-step-item p {
  margin: 0;
  color: var(--subtext);
  line-height: 1.8;
  font-size: 13px;
}

/* =========================
   Team Page Base
========================= */

.team-page {
  max-width: 960px;
  margin: 0 auto;
}

.team-info-box,
.team-banner,
.team-table-box,
.team-stat-card {
  background: linear-gradient(
    145deg,
    var(--card),
    rgba(var(--glow-color), 0.04)
  );
  border: 1px solid rgba(var(--glow-color), 0.08);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.team-info-box {
  padding: 18px;
}

.team-info-box strong {
  display: block;
  color: var(--text);
  margin-bottom: 8px;
  font-size: 20px;
}

.team-info-box p {
  margin: 0;
  color: var(--subtext);
  line-height: 1.8;
  font-size: 13px;
}

.team-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.team-stat-card {
  padding: 18px;
}

.team-stat-card span {
  display: block;
  color: var(--subtext);
  font-size: 13px;
  margin-bottom: 10px;
}

.team-stat-card strong {
  display: block;
  color: var(--primary);
  font-size: 28px;
  margin-bottom: 14px;
}

.team-stat-btn,
.team-banner-btn {
  border: none;
  background: var(--primary);
  color: #111;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}

.team-banner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 18px;
  margin-bottom: 18px;
}

.team-banner-content h2 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 24px;
}

.team-banner-content p {
  margin: 0 0 14px;
  color: var(--subtext);
  line-height: 1.8;
  font-size: 13px;
}

.team-banner-icon {
  font-size: 40px;
}

.team-levels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.team-level-card {
  border: 1px solid rgba(var(--glow-color),0.08);
  background: rgba(255,255,255,0.03);
  border-radius: 18px;
  padding: 14px;
  color: var(--text);
  cursor: pointer;
}

.team-level-card span {
  display: block;
  color: var(--subtext);
  font-size: 12px;
  margin-bottom: 6px;
}

.team-level-card strong {
  display: block;
  font-size: 18px;
}

.team-level-card.active {
  border-color: rgba(var(--glow-color),0.18);
  background: rgba(var(--glow-color),0.08);
}

.team-table-box {
  padding: 0;
  overflow: hidden;
}

.team-table-head,
.team-member-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
}

.team-table-head {
  color: var(--subtext);
  font-size: 13px;
  border-bottom: 1px solid rgba(var(--glow-color), 0.08);
}

.team-table-body {
  display: grid;
}

.team-member-row + .team-member-row {
  border-top: 1px solid rgba(var(--glow-color), 0.06);
}

.team-member-row strong,
.team-member-row span {
  color: var(--text);
  font-size: 14px;
}

/* =========================
   Utility
========================= */

.hidden {
  display: none !important;
}

.phone-group {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  align-items: center;
}

.ios-install-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1200;
}

.ios-install-box {
  width: min(100%, 480px);
  background: linear-gradient(
    145deg,
    var(--card),
    rgba(var(--glow-color), 0.05)
  );
  border: 1px solid rgba(var(--glow-color), 0.10);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow-strong);
  position: relative;
}

.ios-install-close {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
}

.ios-install-box h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 22px;
}

.ios-install-box p,
.ios-install-note {
  margin: 0;
  color: var(--subtext);
  line-height: 1.8;
  font-size: 14px;
}

.ios-install-steps {
  margin: 14px 0;
  padding-right: 18px;
  color: var(--text);
  line-height: 2;
  font-size: 14px;
}

@media (max-width: 768px) {
  .copy-hero h1 {
    font-size: 28px;
  }

  .wallet-balance-row,
  .wallet-profit-row,
  .section-head,
  .download-hero-content,
  .team-banner,
  .settings-status-grid,
  .help-actions-grid,
  .team-stats-grid,
  .team-levels,
  .profile-stats {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .wallet-balance-row strong {
    font-size: 28px;
  }

  .profile-stats {
    display: grid;
  }

  .download-step-item,
  .help-action-card,
  .settings-action-card {
    grid-template-columns: 1fr;
  }

  .download-preview-wrap {
    max-width: 100%;
  }

  .download-app-brand {
    align-items: flex-start;
  }

  .team-member-row,
  .team-table-head {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .settings-user-row {
    align-items: flex-start;
  }
}


.site-topbar {
  width: min(100%, 1180px);
  margin: 0 auto 18px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  background: linear-gradient(
    145deg,
    var(--card),
    rgba(var(--glow-color), 0.04)
  );
  border: 1px solid rgba(var(--glow-color), 0.08);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.site-topbar-left,
.site-topbar-center,
.site-topbar-right {
  display: flex;
  align-items: center;
}

.site-topbar-left {
  justify-content: flex-start;
}

.site-topbar-center {
  justify-content: center;
  text-align: center;
}

.site-topbar-right {
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
}

.site-brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

.site-brand-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.site-brand-meta strong {
  font-size: 18px;
  color: var(--text);
  line-height: 1.2;
}

.site-brand-meta span {
  font-size: 12px;
  color: var(--subtext);
  line-height: 1.6;
  word-break: break-word;
}

.site-page-meta {
  display: grid;
  gap: 4px;
}

.site-page-mini {
  margin: 0;
  color: var(--primary);
  font-size: 12px;
  letter-spacing: 0.8px;
}

.site-page-meta h1 {
  margin: 0;
  color: var(--text);
  font-size: 22px;
  line-height: 1.3;
}

.site-topbar-btn,
.site-topbar-select {
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(var(--glow-color), 0.10);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.site-topbar-btn {
  min-width: 42px;
  padding: 0 12px;
  cursor: pointer;
  font-size: 16px;
}

.site-topbar-select {
  padding: 0 12px;
  font-size: 13px;
  outline: none;
  cursor: pointer;
}

.site-install-btn.hidden {
  display: none !important;
}

.site-install-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.site-install-text {
  font-size: 10px;
  color: var(--subtext);
  white-space: nowrap;
  line-height: 1;
  opacity: 0.9;
}

.site-install-btn:hover + .site-install-text {
  color: var(--primary);
}
@media (max-width: 900px) {
  .site-topbar {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .site-topbar-left,
  .site-topbar-center,
  .site-topbar-right {
    justify-content: center;
  }

  .site-brand {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .site-topbar {
    padding: 12px;
    border-radius: 18px;
  }

  .site-brand-logo {
    width: 42px;
    height: 42px;
  }

  .site-brand-meta strong {
    font-size: 16px;
  }

  .site-page-meta h1 {
    font-size: 20px;
  }

  .site-topbar-right {
    gap: 8px;
  }

  .site-topbar-select {
    min-width: 120px;
  }
}

@media (max-width: 768px) {
  .site-install-text {
    display: none;
  }
}