* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* ===== یار / دفتریار — هویت بصری: سرمه‌ای + فیروزه‌ای ===== */
  --primary: #19a0aa; /* فیروزه‌ای برند: CTA اصلی، فوکوس، لینک‌های فعال */
  --primary-hover: #14828a; /* hover دکمه اصلی (کمی تیره‌تر) */
  --secondary: #0d233a; /* سرمه‌ای برند */
  --dark: #0d233a; /* سرمه‌ای تیره (سطح‌های تیره/گرادیان‌ها) */
  --navy: #0d233a;
  --text: #0d233a; /* تیترها و متن اصلی */
  --muted: #5a6a85; /* متن بدنه/توضیحات فرعی */
  --faint: #94a3b8; /* کم‌اهمیت‌ها و Placeholder */
  --background: #f4f7f9; /* پس‌زمینه صفحات (خاکستری سرد خیلی روشن) */
  --surface: #ffffff; /* کارت‌ها و سطوح */
  --surface-2: #ffffff; /* منوها/پاپ‌آپ‌ها (روشن) */
  --border: #e2e8f0; /* خطوط جداکننده */
  --success: #2eaa76;
  --danger: #e25555;
  --warning: #d97706;
  --white: #ffffff;
  --gold: #0e8089; /* فیروزه‌ای تیره: آیکون/متنِ تاکید روی سطح روشن */
  --gold-light: #dff1f3; /* حاشیه‌رنگ تاکیدی (فیروزه‌ای خیلی روشن) */
  --accent: #4ecdc4; /* فیروزه‌ای روشن (متن روی پس‌زمینه تیره) */
  --cream: #f4f7f9;
  /* سایه با پایه سرمه‌ای به‌جای مشکی خالص (راهنمای UI) */
  --shadow-sm: 0 1px 2px rgba(13, 35, 58, 0.05);
  --shadow-md: 0 10px 30px rgba(13, 35, 58, 0.08);
  --shadow-lg: 0 25px 60px rgba(13, 35, 58, 0.14);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--background);
  color: var(--text);
  line-height: 1.8;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: min(1160px, 92%);
  margin: auto;
}

/* =========================
       HEADER
    ========================= */

header {
  position: sticky;
  top: 0;
  z-index: 100;

  background: rgba(245, 240, 224, 0.88);
  backdrop-filter: blur(18px);

  border-bottom: 1px solid var(--border);
}

nav {
  height: 74px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}
main {
  min-height: calc(100vh - 165px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;

  font-weight: 800;
  font-size: 17px;
}

.brand-logo {
  width: 48px;
  height: 48px;

  border-radius: 12px;

  display: grid;
  place-items: center;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;

  color: var(--muted);

  font-size: 13px;
}

.nav-links a {
  transition: 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-button {
  padding: 10px 18px;

  color: white;
  background: var(--dark);

  border-radius: 12px;

  font-size: 12px;
  font-weight: 700;
}

/* =========================
       HERO
    ========================= */

.hero {
  padding: 90px 0 80px;
  overflow: hidden;
}

.hero-grid {
  display: grid;

  grid-template-columns: 1.05fr 0.95fr;

  gap: 70px;

  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 6px 13px;

  border-radius: 50px;

  color: var(--primary);
  background: var(--gold-light);

  font-size: 11px;
  font-weight: 700;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: var(--success);
}

.hero h1 {
  margin: 20px 0 18px;

  font-size: clamp(40px, 5vw, 62px);

  line-height: 1.25;

  letter-spacing: -2px;
}

.hero h1 span {
  background: linear-gradient(90deg, var(--primary), var(--gold));

  -webkit-background-clip: text;
  background-clip: text;

  color: transparent;
}

.hero-description {
  max-width: 620px;

  color: var(--muted);

  font-size: 16px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;

  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 13px 21px;

  border-radius: 14px;

  font-size: 13px;
  font-weight: 700;
}

.button-primary {
  color: white;

  background: linear-gradient(135deg, var(--primary), var(--gold));

  box-shadow: 0 14px 30px rgba(27, 75, 143, 0.25);
}

.button-secondary {
  color: var(--text);

  background: white;

  border: 1px solid var(--border);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;

  margin-top: 20px;

  color: #7b8799;

  font-size: 10px;
}

/* =========================
       PHONE MOCKUP
    ========================= */

.phone-wrapper {
  display: flex;
  justify-content: center;
}

.phone {
  width: 300px;
  height: 590px;

  padding: 9px;

  background: var(--dark);

  border: 7px solid var(--dark);

  border-radius: 44px;

  box-shadow: 0 35px 80px rgba(15, 30, 61, 0.22);

  transform: rotate(2deg);
}

.phone-screen {
  height: 100%;

  padding: 16px;

  overflow: hidden;

  border-radius: 31px;

  background: var(--cream);
}

.phone-top {
  display: flex;
  justify-content: space-between;

  color: #8995a7;

  font-size: 8px;
}

.phone-title {
  margin-top: 18px;

  font-size: 18px;
  font-weight: 800;
}

.phone-date {
  color: #8995a7;

  font-size: 8px;
}

.phone-main-card {
  margin-top: 14px;

  padding: 17px;

  color: white;

  border-radius: 18px;

  background: linear-gradient(135deg, var(--primary), var(--gold));
}

.phone-main-card small {
  opacity: 0.8;
  font-size: 8px;
}

.phone-main-card strong {
  display: block;

  font-size: 25px;
}

.phone-small-cards {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 9px;

  margin-top: 9px;
}

.phone-small-card {
  padding: 11px;

  background: white;

  border: 1px solid var(--border);

  border-radius: 14px;
}

.phone-small-card strong {
  display: block;

  font-size: 17px;
}

.phone-small-card small {
  color: var(--muted);

  font-size: 8px;
}

.phone-list {
  margin-top: 10px;

  padding: 12px;

  background: white;

  border: 1px solid var(--border);

  border-radius: 16px;
}

.phone-list-title {
  font-size: 10px;
  font-weight: 800;
}

.phone-item {
  margin-top: 8px;

  padding: 8px;

  border-radius: 10px;

  background: var(--gold-light);

  font-size: 9px;
}

/* =========================
       GENERAL SECTION
    ========================= */

section {
  padding: 85px 0;
}

.section-heading {
  max-width: 700px;

  margin: 0 auto 42px;

  text-align: center;
}

.section-heading h2 {
  margin-bottom: 8px;

  font-size: 32px;
}

.section-heading p {
  color: var(--muted);

  font-size: 13px;
}

/* =========================
       SHOWCASE
    ========================= */

.showcase {
  background: white;

  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.showcase-box {
  padding: 28px;

  border-radius: 30px;

  background: var(--cream);

  border: 1px solid var(--border);
}

.tabs {
  display: flex;

  gap: 8px;

  overflow-x: auto;

  padding-bottom: 18px;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  flex-shrink: 0;

  padding: 9px 14px;

  border-radius: 11px;

  border: 1px solid var(--border);

  background: white;

  color: var(--muted);

  cursor: pointer;

  font-size: 11px;
  font-weight: 600;
}

.tab.active {
  color: white;

  background: var(--primary);

  border-color: var(--primary);
}
.showcase-content {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 40px;
  align-items: center;
}
.showcase-content > * {
  min-width: 0;
}

.showcase-text .content {
  display: none;
}

.showcase-text .content.active {
  display: block;
}

.content-tag {
  display: inline-block;

  padding: 5px 9px;

  border-radius: 8px;
  color: var(--primary);
  background: var(--gold-light);

  font-size: 10px;
  font-weight: 800;
}

.showcase-text h3 {
  margin: 13px 0 7px;

  font-size: 27px;
}

.showcase-text p {
  color: var(--muted);

  font-size: 13px;
}

.showcase-phone {
  display: flex;

  justify-content: center;
}

.showcase-phone .phone {
  width: 280px;
  height: 540px;

  transform: none;
}

/* =========================
       FEATURES
    ========================= */

.features {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 16px;
}

.feature {
  padding: 23px;

  background: white;

  border: 1px solid var(--border);

  border-radius: 22px;
}

.feature-icon {
  width: 44px;
  height: 44px;

  margin-bottom: 14px;

  display: grid;
  place-items: center;

  border-radius: 14px;

  color: var(--gold);

  background: var(--gold-light);

  font-size: 19px;
}

.feature h3 {
  margin-bottom: 5px;

  font-size: 15px;
}

.feature p {
  color: var(--muted);

  font-size: 11px;
}

/* =========================
       OFFLINE SECTION
    ========================= */

.offline-box {
  padding: 52px;

  color: white;

  border-radius: 34px;

  background: var(--dark);
}

.offline-grid {
  display: grid;

  grid-template-columns: 1fr 0.8fr;

  gap: 50px;

  align-items: center;
}

.offline-box h2 {
  font-size: 34px;

  line-height: 1.45;
}

.offline-box p {
  color: #b9c6da;

  font-size: 13px;
}

.offline-list {
  margin-top: 20px;

  display: grid;

  gap: 8px;

  font-size: 12px;
}

.backup-card {
  padding: 25px;

  border-radius: 24px;

  border: 1px solid rgba(255, 255, 255, 0.1);

  background: rgba(255, 255, 255, 0.05);
}

.backup-icon {
  font-size: 38px;
}

.backup-card h3 {
  margin: 7px 0;

  font-size: 18px;
}

.backup-card p {
  font-size: 11px;
}

.backup-status {
  display: flex;

  justify-content: space-between;

  margin-top: 17px;

  padding: 10px;

  border-radius: 11px;

  background: rgba(255, 255, 255, 0.06);

  font-size: 9px;
}

.success {
  color: #80dfae;
}

/* =========================
       STEPS
    ========================= */

.steps {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 25px;
}

.step {
  text-align: center;
}

.step-number {
  width: 52px;
  height: 52px;

  margin: auto;

  display: grid;
  place-items: center;

  border-radius: 16px;

  color: var(--primary);

  background: white;

  border: 1px solid var(--border);

  font-weight: 800;
}

.step h3 {
  margin-top: 15px;

  font-size: 16px;
}

.step p {
  color: var(--muted);

  font-size: 11px;
}

/* =========================
       CTA
    ========================= */

.cta-box {
  padding: 55px 20px;

  text-align: center;

  color: white;

  border-radius: 34px;

  background: linear-gradient(135deg, var(--primary), var(--gold));
}

.cta-box h2 {
  font-size: 33px;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.85);

  font-size: 13px;
}

.cta-box .button {
  margin-top: 15px;

  color: var(--dark);

  background: white;
}
/* =========================
   PACKS PAGE (new)
========================= */

.packs-section {
  padding: 70px 0 90px;
  background: var(--background);
}

.packs-header {
  text-align: center;
  margin-bottom: 50px;
}

.packs-header h1 {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--primary), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.packs-header p {
  color: var(--muted);
  font-size: 15px;
  margin-top: 8px;
}

.packs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.pack-card {
  background: var(--surface);
  border-radius: 28px;
  padding: 32px 25px 28px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  backdrop-filter: blur(2px);
}

.pack-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(212, 160, 32, 0.15);
  border-color: var(--gold);
}

.pack-card.featured {
  border-color: var(--gold);
  background: linear-gradient(145deg, #ffffff, var(--cream));
  box-shadow: 0 18px 50px rgba(212, 160, 32, 0.12);
}

.pack-badge {
  position: absolute;
  top: -10px;
  right: 20px;
  background: var(--gold);
  color: var(--dark);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 30px;
  letter-spacing: 0.3px;
  box-shadow: 0 6px 14px rgba(212, 160, 32, 0.3);
}

.pack-header {
  text-align: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 18px;
  margin-bottom: 20px;
}

.pack-header h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}

.pack-price {
  font-size: 28px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -0.5px;
}

.pack-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
  flex: 1;
}

.pack-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
  padding: 8px 0;
  border-bottom: 1px solid #f0f3f8;
}

.pack-features li:last-child {
  border-bottom: none;
}

.pack-features .icon {
  font-size: 18px;
  width: 28px;
  text-align: center;
}

.pack-btn {
  display: block;
  width: 100%;
  padding: 14px 0;
  border: none;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  text-align: center;
  background: var(--background);
  color: var(--text);
  border: 1px solid var(--border);
}

.pack-btn.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--gold));
  color: #fff;
  box-shadow: 0 10px 24px rgba(27, 75, 143, 0.25);
  border: none;
}

.pack-btn.btn-primary:hover {
  transform: scale(1.02);
  box-shadow: 0 14px 30px rgba(27, 75, 143, 0.35);
}

.pack-btn.btn-outline:hover {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}

.packs-footer {
  text-align: center;
  margin-top: 50px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--border);
  padding-top: 30px;
}

/* =========================
   PACKS SECTION ON HOMEPAGE (new)
========================= */

.home-packs {
  padding: 70px 0 80px;
  background: white;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.home-packs .section-heading {
  margin-bottom: 30px;
}

.home-packs .packs-grid {
  gap: 25px;
}

.home-packs .pack-card {
  padding: 28px 20px 24px;
}

.home-packs .pack-card .pack-price {
  font-size: 24px;
}

.home-packs .packs-cta {
  text-align: center;
  margin-top: 40px;
}

.home-packs .packs-cta .button {
  background: var(--primary);
  color: white;
  padding: 14px 40px;
  border-radius: 40px;
  font-weight: 700;
  transition: 0.25s;
}

.home-packs .packs-cta .button:hover {
  background: var(--gold);
  color: var(--dark);
  transform: translateY(-2px);
}

/* =========================
   RESPONSIVE TWEAKS
========================= */

@media (max-width: 850px) {
  .packs-grid {
    grid-template-columns: 1fr 1fr;
  }
  .packs-header h1 {
    font-size: 30px;
  }
  .pack-card.featured {
    order: -1;
  }
}

@media (max-width: 560px) {
  .packs-grid {
    grid-template-columns: 1fr;
  }
  .pack-card {
    padding: 24px 18px;
  }
  .packs-header h1 {
    font-size: 26px;
  }
}
/* =========================
       FOOTER
    ========================= */

footer {
  padding: 30px 0;

  color: #7b8799;

  border-top: 1px solid var(--border);

  font-size: 10px;
}

.footer-content {
  display: flex;

  justify-content: space-between;
}

/* =========================
       RESPONSIVE
    ========================= */

@media (max-width: 850px) {
  .nav-links > .onl-desktop {
    display: none;
  }

  .hero-grid,
  .showcase-content,
  .offline-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    text-align: center;
  }

  .hero-description {
    margin: auto;
  }

  .hero-buttons,
  .hero-trust {
    justify-content: center;
  }

  .features {
    grid-template-columns: 1fr 1fr;
  }

  .showcase-text {
    text-align: center;
  }

  .offline-box {
    padding: 35px 25px;
  }
}

@media (max-width: 560px) {
  section {
    padding: 65px 0;
  }

  .features,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 40px;
  }

  .showcase-box {
    padding: 18px;
  }

  .phone {
    width: 275px;
    height: 550px;
  }

  .footer-content {
    flex-direction: column;

    gap: 10px;

    text-align: center;
  }
}

/* =========================
   APP / DASHBOARD (forms, cards, tables, admin panel)
========================= */

.wrap {
  width: min(1160px, 92%);
  margin: 40px auto;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 20px;
}

.card h1 {
  font-size: 20px;
  margin-bottom: 16px;
}
.card h2 {
  font-size: 16px;
}

label {
  display: block;
  margin: 14px 0 6px;
  font-size: 13px;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  background: var(--background);
  color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border: none;
  border-radius: 12px;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--gold));
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.btn.secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn.danger {
  background: var(--danger);
  color: var(--white);
}

.alert {
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 16px;
  font-size: 13px;
}
.alert-success {
  background: rgba(46, 170, 118, 0.1);
  color: var(--success);
}
.alert-error {
  background: rgba(226, 85, 85, 0.1);
  color: var(--danger);
}
.alert-warning {
  background: rgba(240, 173, 78, 0.12);
  color: #b07000;
}

.wrap .success,
.card .success,
.wrap .error,
.card .error {
  display: block;
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 16px;
  font-size: 13px;
}
.wrap .success,
.card .success {
  background: rgba(46, 170, 118, 0.1);
  color: var(--success);
}
.wrap .error,
.card .error {
  background: rgba(226, 85, 85, 0.1);
  color: var(--danger);
}

.text-muted,
.muted {
  color: var(--muted);
  font-size: 13px;
}
.text-center {
  text-align: center;
}
.danger {
  color: var(--danger);
}
.text-primary {
  color: var(--primary);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}
th,
td {
  text-align: right;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
th {
  color: var(--muted);
  font-weight: 700;
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.badge-success {
  background: rgba(46, 170, 118, 0.12);
  color: var(--success);
}
.badge-warning {
  background: rgba(231, 166, 43, 0.15);
  color: var(--warning);
}
.badge-danger {
  background: rgba(226, 85, 85, 0.12);
  color: var(--danger);
}
.badge-muted {
  background: var(--background);
  color: var(--muted);
  border: 1px solid var(--border);
}

/* =========================
   ADMIN DASHBOARD
========================= */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}

.stat-card .stat-number {
  font-size: 28px;
  font-weight: 800;
  color: var(--dark);
}

.stat-card .stat-label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.stat-card.attention .stat-number {
  color: var(--warning);
}
.stat-card.attention {
  border-color: rgba(231, 166, 43, 0.35);
}

.action-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.action-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--background);
}

.action-item .action-title {
  font-weight: 700;
  font-size: 14px;
}
.action-item .action-desc {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.action-item .action-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.action-item.all-clear {
  opacity: 0.65;
}
.action-item.all-clear .action-count {
  background: var(--success);
}

/* =========================
   ADMIN SIDEBAR (سایدبار پنل مدیریت)
========================= */

/* دکمه همبرگر — فقط موبایل */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: 0.2s;
}
.nav-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.nav-toggle svg {
  width: 20px;
  height: 20px;
}

/* سایدبار — پیش‌فرض: ثابت در کنار صفحه (زیر هدر) */
.admin-sidebar {
  position: fixed;
  top: 75px;
  right: 0;
  bottom: 0;
  width: 250px;
  z-index: 96;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 12px;
  background: var(--surface);
  border-left: 1px solid var(--border);
  overflow-y: auto;
  visibility: visible;
  transform: translateX(0);
  transition:
    transform 0.28s ease,
    visibility 0.28s;
}

.admin-sidebar-groups {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.admin-sidebar-group-title {
  padding: 0 10px 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.admin-sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px;
  margin: 2px 30px 2px 0;
  border-radius: 10px;
  font-size: 13px;
  color: var(--text);
  transition: 0.15s;
}
.admin-sidebar-link:hover {
  background: var(--background);
  color: var(--primary);
}
.admin-sidebar-link.active {
  background: rgba(27, 75, 143, 0.1);
  color: var(--primary);
  font-weight: 700;
}

.admin-sidebar-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  color: var(--danger);
  transition: 0.15s;
}
.admin-sidebar-logout svg {
  width: 17px;
  height: 17px;
}
.admin-sidebar-logout:hover {
  background: rgba(226, 85, 85, 0.08);
}

/* پس‌زمینه تیره پشت drawer — فقط موبایل */
.admin-sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(15, 30, 61, 0.5);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    visibility 0.25s;
}
.admin-sidebar-backdrop.open {
  opacity: 1;
  visibility: visible;
}

/* دسکتاپ: محتوای صفحات ادمین کنار سایدبار قرار می‌گیرد */
@media (min-width: 901px) {
  body.admin main {
    margin-right: 250px;
  }
  body.admin footer {
    margin-right: 250px;
  }
}

/* موبایل: سایدبار جمع‌شونده (drawer) */
@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .admin-sidebar {
    top: 75px;
    width: min(280px, 84vw);
    box-shadow: 0 0 40px rgba(15, 30, 61, 0.25);
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
  }
  .admin-sidebar.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  body.admin main,
  body.admin footer {
    margin-right: 0;
  }
}

/* =========================
   TEACHER ACCOUNT MENU (منوی حساب معلم)
========================= */

.account-menu {
  position: relative;
}

.account-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 2px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  color: inherit;
  transition: 0.2s;
}

.account-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--gold));
  transition: 0.2s;
}
.account-avatar svg {
  width: 20px;
  height: 20px;
}
.account-trigger:hover .account-avatar {
  box-shadow: 0 0 0 3px rgba(212, 160, 32, 0.25);
}

.account-name {
  font-size: 13px;
  color: var(--muted);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-caret {
  width: 12px;
  height: 12px;
  color: var(--muted);
  transition: transform 0.2s;
}
.account-menu.open .account-caret {
  transform: rotate(180deg);
}

.account-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 200px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(15, 30, 61, 0.18);
  z-index: 130;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    visibility 0.18s;
}
.account-menu.open .account-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.account-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--text);
  transition: 0.15s;
}
.account-dropdown a:hover {
  background: var(--background);
}
.account-dropdown a svg {
  width: 17px;
  height: 17px;
  color: var(--muted);
}
.account-dropdown a.danger {
  color: var(--danger);
}
.account-dropdown a.danger svg {
  color: var(--danger);
}
.account-dropdown a.danger:hover {
  background: rgba(226, 85, 85, 0.08);
}

body.no-scroll {
  overflow: hidden;
}

@media (max-width: 850px) {
  .account-name {
    display: none;
  }
}

@media (max-width: 420px) {
  .nav-links {
    gap: 14px;
  }
}

/* =========================
   INVITE / REFERRAL
========================= */

.dfy-progress {
  margin: 12px 0;
}
.dfy-progress-track {
  height: 10px;
  border-radius: 999px;
  background: var(--background);
  border: 1px solid var(--border);
  overflow: hidden;
}
.dfy-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--gold));
  transition: width 0.3s ease;
}
.dfy-progress-label {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

.dfy-invite-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.dfy-invite-row .dfy-invite-input {
  flex: 1;
  min-width: 180px;
  direction: ltr;
  text-align: left;
}
.dfy-invite-row .btn {
  white-space: nowrap;
  padding: 10px 14px;
}
.dfy-invite-row .btn.dfy-copied {
  background: var(--success);
  color: var(--white);
}

/* شرایط رمز عبور (صفحه‌ی ثبت‌نام) */
.pw-rules {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.pw-rules li {
  padding: 2px 0;
}
.pw-rules li::before {
  content: "○";
  margin-inline-end: 6px;
}
.pw-rules li.pw-ok {
  color: var(--success);
}
.pw-rules li.pw-ok::before {
  content: "✓";
  font-weight: bold;
}
.pw-match {
  font-size: 0.85rem;
  margin: 6px 0 0;
  min-height: 1.2em;
}
.pw-match.pw-ok {
  color: var(--success);
}
.pw-match.pw-bad {
  color: var(--danger);
}

/* =========================
   تب‌های ناوبری صفحات تنظیمات پنل ادمین
========================= */
.dfy-settings-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 18px;
  padding: 6px;
  background: var(--background);
  border: 1px solid rgba(15, 30, 61, 0.08);
  border-radius: 12px;
}
.dfy-settings-tab {
  padding: 9px 16px;
  border-radius: 9px;
  font-size: 0.92rem;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.dfy-settings-tab:hover {
  color: var(--primary);
}
.dfy-settings-tab.active {
  background: var(--white);
  color: var(--primary);
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(15, 30, 61, 0.1);
}

/* =========================
   ADMIN ANALYTICS (نمودار آنالیز اپلیکیشن)
========================= */

.ana-axis {
  display: flex;
  margin-top: 6px;
}
.ana-axis span {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 2px;
}

body.admin main svg {
  border-radius: 10px;
}

/* =========================
   DOWNLOAD APP (دانلود اپلیکیشن)
========================= */

/* دکمه‌ی «دانلود اپ» در هدر */
.dfy-download-nav {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, var(--primary), var(--gold)) !important;
  color: #fff !important;
}
.dfy-download-nav svg {
  flex-shrink: 0;
}
.dfy-download-nav:hover {
  filter: brightness(1.08);
}

/* دکمه‌ی دانلود در هیرو */
.dfy-download-hero-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--gold));
  box-shadow: 0 14px 30px rgba(212, 160, 32, 0.25);
}
.dfy-download-hero-btn:hover {
  filter: brightness(1.06);
}

/* بخش دانلود در صفحه‌ی اصلی */
#download .download-box {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 36px;
  align-items: center;
  padding: 46px 50px;
  border-radius: 32px;
  color: #fff;
  background:
    radial-gradient(
      900px 380px at 85% 20%,
      rgba(212, 160, 32, 0.18),
      transparent 60%
    ),
    linear-gradient(135deg, var(--dark), var(--primary));
  box-shadow: 0 30px 70px rgba(15, 30, 61, 0.28);
  overflow: hidden;
  position: relative;
}
#download .download-box h3 {
  font-size: 28px;
  margin-bottom: 10px;
}
#download .download-box p {
  color: #cdd8ea;
  font-size: 13px;
  max-width: 560px;
}
.download-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 18px 0 22px;
  font-size: 12px;
  color: var(--gold-light);
}
.download-actions .download-button {
  color: var(--dark);
  background: var(--gold);
  font-size: 14px;
  gap: 10px;
  box-shadow: 0 12px 26px rgba(212, 160, 32, 0.35);
}
.download-actions .download-button:hover {
  filter: brightness(1.07);
  transform: translateY(-2px);
}
.download-actions .download-button.is-disabled {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  box-shadow: none;
  cursor: pointer;
  border: 1px dashed rgba(255, 255, 255, 0.4);
}
.download-version-badge {
  font-size: 11px;
  font-weight: 700;
  background: rgba(15, 30, 61, 0.16);
  padding: 3px 10px;
  border-radius: 999px;
}
.download-art {
  display: flex;
  justify-content: center;
  position: relative;
}
.download-art-icon {
  width: 130px;
  height: 130px;
  border-radius: 34px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.25);
  transform: rotate(-6deg);
}
.download-art-chip {
  position: absolute;
  bottom: -2px;
  left: calc(50% - 60px);
  background: var(--gold);
  color: var(--dark);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 14px;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(212, 160, 32, 0.4);
}

@media (max-width: 850px) {
  #download .download-box {
    grid-template-columns: 1fr;
    padding: 34px 24px;
    text-align: center;
  }
  #download .download-box p {
    margin: 0 auto;
  }
  .download-features {
    justify-content: center;
  }
  .download-art {
    order: -1;
  }
  .download-art-icon {
    width: 96px;
    height: 96px;
  }
}

@media (max-width: 560px) {
  .dfy-download-nav {
    padding: 9px 12px;
  }
}

/* =========================
   OTP TIMER (تایمر کد تایید)
========================= */

.dfy-otp-timer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 340px;
  margin: 10px 0 6px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--cream);
}
.dfy-otp-timer .dfy-timer-label {
  font-size: 12px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dfy-otp-timer .dfy-timer-digits {
  direction: ltr;
  font-family: Consolas, "Courier New", monospace;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--primary);
  min-width: 92px;
  text-align: center;
  padding: 2px 8px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.dfy-otp-timer.warn .dfy-timer-digits {
  color: var(--gold);
  border-color: var(--gold);
  background: var(--gold-light);
}
.dfy-otp-timer.danger .dfy-timer-digits {
  color: var(--danger);
  border-color: var(--danger);
  background: rgba(226, 85, 85, 0.08);
}
.dfy-otp-timer.expired .dfy-timer-digits {
  color: var(--danger);
  border-color: var(--danger);
  font-size: 14px;
  letter-spacing: 0;
  background: rgba(226, 85, 85, 0.08);
}

/* =========================
   MOBILE USABILITY AUDIT
========================= */

img {
  max-width: 100%;
}

/* لینک‌های لنگر زیر هدر چسبان پنهان نشوند */
section[id],
div[id] {
  scroll-margin-top: 90px;
}

/* جداول عریض: هر جدول داخل یک باکسِ اسکرول‌افقی (.table-scroll) قرار می‌گیرد
   تا ستون‌ها سر جای خودشان بمانند و در موبایل کل صفحه نشکند */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  border-radius: 8px;
}
.table-scroll::-webkit-scrollbar {
  height: 5px;
}
.table-scroll::-webkit-scrollbar-thumb {
  background: rgba(120, 120, 130, 0.35);
  border-radius: 999px;
}
.table-scroll table {
  width: 100%;
}

@media (max-width: 720px) {
  /* در موبایل جدول با عرض طبیعی‌اش چیده می‌شود تا داخل باکس اسکرول بخورد */
  .table-scroll table {
    min-width: max-content;
  }

  /* اهداف لمسی راحت‌تر (حداقل ۴۴ پیکسل) */
  .btn,
  .nav-button,
  .pack-btn,
  .button,
  .tab {
    min-height: 44px;
  }
  input,
  select,
  textarea {
    min-height: 44px;
  }
}

/* فاصله‌گذاری فشرده‌تر در موبایل */
@media (max-width: 560px) {
  .wrap {
    margin: 24px auto;
  }
  .card {
    padding: 20px 16px;
  }
  .packs-section {
    padding: 40px 0 56px;
  }
  .packs-header {
    margin-bottom: 30px;
  }
  .hero h1 {
    letter-spacing: -1px;
  }
  .section-heading h2 {
    font-size: 26px;
  }
}

/* منوی حساب در صفحه‌های خیلی باریک: تمام‌عرض زیر هدر */
@media (max-width: 420px) {
  .account-dropdown {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 70px;
    min-width: 0;
  }
  .nav-links .nav-button {
    padding: 9px 12px;
    white-space: nowrap;
  }
}

/* =========================
   PROFILE NUDGE (نوار ترغیب تکمیل پروفایل)
========================= */

.dfy-nudge {
  background: linear-gradient(135deg, var(--primary), #2a5da8);
  color: #fff;
  font-size: 13px;
  padding: 9px 0;
}
.dfy-nudge strong {
  color: var(--gold-light);
}
.dfy-nudge a {
  color: #fff;
}
.dfy-nudge-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--dark) !important;
  font-weight: 800;
  font-size: 12px;
  white-space: nowrap;
  transition: 0.2s;
}
.dfy-nudge-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.dfy-nudge-close {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  display: inline-grid;
  place-items: center;
  transition: 0.2s;
}
.dfy-nudge-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* =========================
   SHARE POPOVER (اشتراک‌گذاری دسکتاپ)
========================= */

.dfy-share-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 170px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(15, 30, 61, 0.2);
  animation: dfyPopIn 0.14s ease;
}
@keyframes dfyPopIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.dfy-share-menu a,
.dfy-share-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-align: right;
  cursor: pointer;
  transition: 0.15s;
  background: none;
  font-family: inherit;
}
.dfy-share-menu a:hover,
.dfy-share-copy:hover {
  background: var(--background);
}
.dfy-share-menu a::before {
  font-size: 15px;
}
.dfy-share-menu a:nth-child(1)::before {
  content: "✈";
  color: #2aabee;
}
.dfy-share-menu a:nth-child(2)::before {
  content: "✆";
  color: #25d366;
}
.dfy-share-menu a:nth-child(3)::before {
  content: "✦";
  color: #e91e63;
}
.dfy-share-copy::before {
  content: "⧉";
  color: var(--muted);
}
.dfy-share-copy.dfy-copied {
  color: var(--success);
}
.dfy-share-copy.dfy-copied::before {
  content: "✓";
  color: var(--success);
}

/* =========================
   MULTI-CHECK LISTS (لیست‌های چندگزینه‌ای پروفایل)
========================= */

.dfy-check-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  max-height: 220px;
  overflow-y: auto;
  padding: 4px 2px 4px 6px;
  -webkit-overflow-scrolling: touch;
}
.dfy-check-list::-webkit-scrollbar {
  width: 6px;
}
.dfy-check-list::-webkit-scrollbar-thumb {
  background: rgba(120, 120, 130, 0.35);
  border-radius: 999px;
}
.dfy-check-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 145px;
  font-size: 13px;
  font-weight: normal;
  color: var(--text);
  margin: 2px 0;
  cursor: pointer;
}
.dfy-check-item input {
  width: auto;
  flex-shrink: 0;
  accent-color: var(--primary);
}
.dfy-check-item:hover {
  color: var(--primary);
}

@media (max-width: 560px) {
  .dfy-check-list {
    max-height: 180px;
  }
  .dfy-check-item {
    min-width: 0;
    width: calc(50% - 14px);
  }
}

/* =========================
   PROFILE SHORTCUTS (دکمه‌های دسترسی سریع پروفایل)
========================= */

.dfy-shortcuts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin-top: 4px;
}
.dfy-shortcut {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  transition: 0.2s;
  text-decoration: none;
}
.dfy-shortcut:hover {
  border-color: var(--gold);
  box-shadow: 0 10px 26px rgba(212, 160, 32, 0.15);
  transform: translateY(-2px);
}
.dfy-shortcut-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: var(--gold-light);
}
.dfy-shortcut-title {
  font-weight: 800;
  font-size: 14px;
}
.dfy-shortcut-desc {
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}

/* لینک لنگرِ کارتِ اطلاعات تکمیلی زیر هدر چسبان پنهان نشود */
#dfy-extra {
  scroll-margin-top: 100px;
}

/* ================= داشبورد ظرفیت (صفحه بسته‌ها) ================= */
.dfy-cap-total {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 18px 0 22px;
  padding: 20px 26px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), #2f66b8);
  color: #fff;
  box-shadow: 0 14px 30px rgba(27, 75, 143, 0.25);
}
.dfy-cap-total-ic {
  font-size: 2.8em;
  line-height: 1;
}
.dfy-cap-total-body {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.dfy-cap-total-num {
  font-size: 2.6em;
  font-weight: 800;
  line-height: 1.1;
}
.dfy-cap-total-unit {
  font-size: 1em;
  font-weight: 700;
  opacity: 0.95;
}
.dfy-cap-total-txt {
  width: 100%;
  font-size: 0.9em;
  opacity: 0.88;
  margin-top: 2px;
}

.dfy-cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 14px;
}
.dfy-cap-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(15, 30, 61, 0.05);
}
.dfy-cap-tile.is-done {
  border-color: rgba(46, 170, 118, 0.35);
  background: linear-gradient(180deg, #ffffff, #f3fbf6);
}
.dfy-cap-tile.is-todo {
  border: 1.5px dashed var(--gold);
  background: linear-gradient(180deg, #fffdf4, #fbf3dd);
}
.dfy-cap-tile.is-idle {
  opacity: 0.82;
}
.dfy-cap-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.dfy-cap-ic {
  font-size: 1.45em;
  line-height: 1;
}
.dfy-cap-label {
  font-weight: 800;
  font-size: 0.95em;
}
.dfy-cap-status {
  margin-inline-start: auto;
  font-size: 0.7em;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 99px;
  color: #fff;
}
.dfy-cap-status.ok {
  background: var(--success);
}
.dfy-cap-val {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 1.7em;
  font-weight: 800;
  line-height: 1.2;
  color: var(--primary);
}
.dfy-cap-val small {
  font-size: 0.5em;
  font-weight: 600;
  color: var(--muted);
}
.dfy-cap-gain {
  align-self: flex-start;
  font-size: 0.85em;
  font-weight: 800;
  color: var(--gold);
  background: rgba(212, 160, 32, 0.13);
  border-radius: 8px;
  padding: 5px 9px;
}
.dfy-cap-note {
  margin: 0;
  font-size: 0.83em;
  line-height: 1.8;
  color: var(--muted);
}
.dfy-cap-cta {
  margin-top: auto;
  align-self: flex-start;
  font-size: 0.88em;
  padding: 9px 16px;
}
#dfy-referral,
#dfy-packs {
  scroll-margin-top: 100px;
}

@media (max-width: 600px) {
  .dfy-cap-total {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .dfy-cap-total-num {
    font-size: 2.1em;
  }
  .dfy-cap-cta {
    width: 100%;
    text-align: center;
  }
}

/* ================= سربرگ و چیدمان صفحه پروفایل/تنظیمات ================= */
.dfy-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.dfy-profile-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  border: none;
  background: linear-gradient(135deg, #0f1e3d, var(--primary) 55%, #2f66b8);
  color: #fff;
  box-shadow: 0 16px 34px rgba(15, 30, 61, 0.28);
}
.dfy-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #b9891a);
  color: #fff;
  font-size: 2.1em;
  font-weight: 800;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.22);
  flex-shrink: 0;
}
.dfy-hero-main {
  flex: 1 1 260px;
  min-width: 0;
}
.dfy-hero-name {
  font-size: 1.55em;
  font-weight: 800;
  line-height: 1.4;
}
.dfy-hero-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 5px;
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.92);
}
.dfy-hero-dot {
  opacity: 0.6;
}
.dfy-hero-sub {
  margin-top: 6px;
  font-size: 0.82em;
  color: rgba(255, 255, 255, 0.72);
}
.dfy-hero-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 9px;
  margin-inline-start: auto;
}
.dfy-hero-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 99px;
  font-size: 0.78em;
  font-weight: 800;
}
.dfy-hero-chip.ok {
  background: var(--success);
  color: #fff;
}
.dfy-hero-chip.warn {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
}
.dfy-hero-chip.gold {
  background: rgba(212, 160, 32, 0.18);
  border: 1px solid var(--gold);
  color: #ffe9ad;
}
.dfy-profile-hero .dfy-hero-btn {
  background: #fff;
  color: var(--primary);
  font-size: 0.88em;
}
.dfy-profile-hero .dfy-hero-btn:hover {
  background: #f4f0e6;
}

.dfy-cap-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.dfy-cap-head-btn {
  font-size: 0.85em;
}

.dfy-profile-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

/* پیشرفت تکمیل اطلاعات تکمیلی */
.dfy-extra-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dfy-extra-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 11px;
  border-radius: 99px;
  font-size: 0.78em;
  font-weight: 800;
}
.dfy-extra-chip.ok {
  background: rgba(46, 170, 118, 0.12);
  color: var(--success);
}
.dfy-extra-chip.miss {
  background: rgba(226, 85, 85, 0.1);
  color: var(--danger);
}
.dfy-extra-bar {
  height: 8px;
  border-radius: 99px;
  background: var(--border);
  overflow: hidden;
  margin-top: 12px;
}
.dfy-extra-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--gold), var(--primary));
  transition: width 0.3s ease;
}

@media (max-width: 800px) {
  .dfy-profile-cols {
    grid-template-columns: 1fr;
  }
}

/* ================= صفحه‌ی دانلود اپ (/app) ================= */
.dfy-app-hero {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  border: none;
  background: linear-gradient(135deg, #0f1e3d, var(--primary) 55%, #2f66b8);
  color: #fff;
  box-shadow: 0 16px 34px rgba(15, 30, 61, 0.28);
}
.dfy-app-art {
  position: relative;
  flex: 0 0 auto;
  padding: 14px;
}
.dfy-app-main {
  flex: 1 1 320px;
  min-width: 0;
}
.dfy-app-desc {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.9;
}
.dfy-app-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.dfy-app-hero .dfy-hero-chip {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}
.dfy-app-hero .dfy-hero-chip.mandatory {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}
.dfy-app-actions {
  margin-top: 20px;
}
.dfy-app-hero .dfy-app-download {
  background: #fff;
  color: var(--primary);
  font-size: 1em;
  padding: 12px 22px;
}
.dfy-app-hero .dfy-app-download:hover {
  background: #f4f0e6;
}
.dfy-app-dl-badge {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  border-radius: 99px;
  padding: 2px 10px;
  font-size: 0.72em;
  margin-inline-start: 8px;
}
.dfy-app-note {
  margin: 10px 0 0;
  font-size: 0.8em;
  color: rgba(255, 255, 255, 0.75);
}
.dfy-app-changelog {
  margin: 8px 0 0;
  padding-inline-start: 22px;
}
.dfy-app-changelog li {
  line-height: 1.9;
  margin-bottom: 4px;
}
.dfy-app-changelog li::marker {
  color: var(--gold);
}
.dfy-app-steps {
  margin: 8px 0 0;
  padding-inline-start: 22px;
}
.dfy-app-steps li {
  line-height: 1.9;
  margin-bottom: 8px;
}
.dfy-app-steps li::marker {
  color: var(--primary);
  font-weight: 800;
}
.dfy-app-sha {
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--background);
  font-family: Consolas, Menlo, monospace;
  font-size: 0.8em;
  overflow-wrap: anywhere;
  direction: ltr;
  text-align: left;
}
.dfy-app-details-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
  font-size: 0.9em;
  font-weight: 800;
  color: var(--primary);
}
@media (max-width: 600px) {
  .dfy-app-hero {
    gap: 14px;
  }
  .dfy-app-art {
    margin: 0 auto;
  }
  .dfy-app-hero .dfy-app-download {
    width: 100%;
  }
}

/* چیپ‌های وضعیت روی کارت‌های روشن (بدون هدر گرادیانی) خوانا باشند */
.card .dfy-hero-chip.warn,
.card .dfy-hero-chip.gold {
  background: rgba(212, 160, 32, 0.14);
  border: 1px solid rgba(212, 160, 32, 0.55);
  color: #a37a12;
}
/* داخل هدرهای گرادیانی، همان نسخه‌ی روشن/شفاف حفظ شود */
.dfy-profile-hero .dfy-hero-chip.warn,
.dfy-app-hero .dfy-hero-chip.warn {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
}
.dfy-profile-hero .dfy-hero-chip.gold,
.dfy-app-hero .dfy-hero-chip.gold {
  background: rgba(212, 160, 32, 0.2);
  border: 1px solid var(--gold);
  color: #ffe9ad;
}

/* ================= اسکرین‌شات‌ها و لایت‌باکس ================= */
.dfy-screens {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-width: 0;
}
.dfy-shot-panel {
  display: none;
}
.dfy-shot-panel.active {
  display: block;
  width: 100%;
}
.dfy-shot-open {
  position: relative;
  display: inline-flex;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  max-width: 100%;
  font: inherit;
}
.dfy-shot-img {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  border-radius: 26px;
  border: 6px solid #fff;
  background: #fff;
  box-shadow: 0 22px 46px rgba(15, 30, 61, 0.22);
}
.dfy-shot-caption {
  margin-top: 8px;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--muted);
}
.dfy-shot-thumbs {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.dfy-shot-thumbs::-webkit-scrollbar {
  display: none;
}
.dfy-shot-thumbs {
  cursor: grab;
}
.dfy-shot-thumbs .dfy-shot-open {
  scroll-snap-align: center;
  flex: 0 0 auto;
}
.dfy-shot-thumbs .dfy-shot-img {
  width: 170px;
}
@media (max-width: 600px) {
  .dfy-shot-thumbs {
    gap: 10px;
  }
  .dfy-shot-thumbs .dfy-shot-img {
    width: 140px;
  }
}
.dfy-shot-thumbs .dfy-shot-zoom {
  bottom: 10px;
  inset-inline-end: 10px;
  width: 30px;
  height: 30px;
  font-size: 13px;
}
.dfy-shot-count {
  font-weight: 600;
  font-size: 0.76rem;
  color: var(--muted);
  margin-inline-start: 6px;
}
.dfy-shot-zoom {
  position: absolute;
  bottom: 14px;
  inset-inline-end: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(15, 30, 61, 0.75);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 16px;
  pointer-events: none;
}
.dfy-shot-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 340px;
  min-height: 430px;
  padding: 24px;
  box-sizing: border-box;
  border: 2px dashed var(--border);
  border-radius: 22px;
  background: linear-gradient(180deg, #fdfbf5, #f7f1e2);
  color: var(--muted);
  text-align: center;
}
.dfy-shot-ph-ic {
  font-size: 2.2em;
  line-height: 1;
}
.dfy-shot-ph strong {
  color: var(--primary);
}
.dfy-shot-ph small {
  font-size: 0.85em;
  line-height: 1.8;
}

/* اسکرین‌شات روی گوشی هیرو (به‌جای mock قدیمی) */
.phone-screen {
  position: relative;
  overflow: hidden;
}
.dfy-hero-shot {
  position: absolute;
  inset: 0;
  z-index: 5;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.dfy-hero-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dfy-hero-shot .dfy-shot-zoom {
  bottom: 12px;
  inset-inline-end: 12px;
  width: 32px;
  height: 32px;
  font-size: 14px;
}

/* گالری اسکرین‌شات‌ها در صفحه‌ی دانلود اپ */
.dfy-app-shots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}
.dfy-app-shot {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  font: inherit;
  text-align: center;
  color: inherit;
}
.dfy-app-shot img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 16px;
  border: 4px solid #fff;
  box-shadow: 0 10px 22px rgba(15, 30, 61, 0.16);
}
.dfy-app-shot .dfy-shot-zoom {
  width: 30px;
  height: 30px;
  font-size: 13px;
  bottom: 10px;
  inset-inline-end: 10px;
}
.dfy-app-shot-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--muted);
}
.dfy-app-shot-ph {
  min-height: 0;
  aspect-ratio: 9 / 16;
  height: auto;
  max-width: none;
}

/* لایت‌باکس تصاویر */
.dfy-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 13, 26, 0.93);
}
.dfy-lightbox.open {
  display: flex;
}
.dfy-lb-figure {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  max-width: min(92vw, 900px);
  text-align: center;
}
.dfy-lb-figure img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  margin: 0 auto;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}
.dfy-lb-caption {
  color: #fff;
  font-weight: 700;
}
.dfy-lb-close {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 17px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.dfy-lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.dfy-lb-nav.prev {
  inset-inline-start: 16px;
}
.dfy-lb-nav.next {
  inset-inline-end: 16px;
}
/* نقاط راهنمای لایت‌باکس */
.dfy-lb-dots {
  position: absolute;
  bottom: 18px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 2;
}
.dfy-lb-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  padding: 0;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s;
}
.dfy-lb-dot.active {
  background: #fff;
  transform: scale(1.35);
}
/* راهنمای کشیدن (فقط موبایل) */
.dfy-lb-hint {
  display: none;
  position: absolute;
  bottom: 52px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.75rem;
  white-space: nowrap;
  pointer-events: none;
}
@media (max-width: 600px) {
  .dfy-lb-nav {
    display: none;
  }
  .dfy-lb-hint {
    display: block;
  }
  .dfy-lb-figure img {
    max-height: 72vh;
  }
}
@media (max-width: 600px) {
  .dfy-profile-hero {
    gap: 12px;
  }
  .dfy-avatar {
    width: 58px;
    height: 58px;
    font-size: 1.7em;
  }
  .dfy-hero-side {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    margin-inline-start: 0;
  }
  .dfy-cap-head-btn {
    width: 100%;
  }
}

/* ============================================================
   یار (دفتریار) — بازطراحی بصری v2
   ------------------------------------------------------------
   هویت برند: سرمه‌ای #0D233A + فیروزه‌ای #19A0AA
   تم روشن پیش‌فرض + تم تاریک خودکار (prefers-color-scheme)
   فونت رسمی: Vazirmatn
============================================================ */

html,
body {
  font-family: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button {
  font-family: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
}
/* --- تنظیمات تم روشن (روی توکن‌های :root بالا) --- */

/* هدر چسبان هماهنگ با پس‌زمینه سرد روشن */
header {
  background: rgba(244, 247, 249, 0.88);
  backdrop-filter: blur(18px) saturate(1.4);
}

/* متن‌های تاکیدی کوچک: فیروزه‌ای تیره برای خوانایی روی سفید */
.eyebrow,
.text-primary {
  color: var(--gold);
}
.eyebrow {
  background: var(--gold-light);
}

/* گرادیان‌های برند: سرمه‌ای ← فیروزه‌ای (به‌جای آبی-طلایی قدیم) */
.dfy-nudge,
.dfy-cap-total,
.dfy-profile-hero,
.dfy-app-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
}
.dfy-nudge {
  background: linear-gradient(90deg, var(--dark), var(--primary));
}
.dfy-nudge strong {
  color: var(--accent);
}
.dfy-nudge-btn {
  background: var(--primary);
  color: #fff !important;
}

.cta-box,
.phone-main-card {
  background: linear-gradient(135deg, var(--dark), var(--primary));
}

/* باکس دانلود: درخشش فیروزه‌ای به‌جای طلایی */
#download .download-box {
  background:
    radial-gradient(
      900px 380px at 85% 20%,
      rgba(78, 205, 196, 0.22),
      transparent 60%
    ),
    linear-gradient(135deg, var(--dark), var(--primary));
}
.download-features {
  color: #a8ece6;
}
.download-actions .download-button {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 26px rgba(13, 35, 58, 0.3);
}

/* نشان‌ها و حاشیه‌های تاکیدی */
.pack-badge {
  background: var(--gold);
  color: #fff;
}
.dfy-avatar {
  background: linear-gradient(135deg, #0e8089, var(--primary));
}
.dfy-cap-gain {
  background: rgba(14, 128, 137, 0.12);
}
.dfy-cap-tile.is-todo {
  border-color: rgba(25, 160, 170, 0.55);
  background: linear-gradient(180deg, #ffffff, #eef8f9);
}
.card .dfy-hero-chip.warn,
.card .dfy-hero-chip.gold {
  background: rgba(25, 160, 170, 0.1);
  border: 1px solid rgba(25, 160, 170, 0.45);
  color: #0e7f87;
}
.dfy-profile-hero .dfy-hero-chip.gold,
.dfy-app-hero .dfy-hero-chip.gold {
  background: rgba(78, 205, 196, 0.16);
  border: 1px solid var(--accent);
  color: #bdf3ef;
}
.account-trigger:hover .account-avatar {
  box-shadow: 0 0 0 3px rgba(25, 160, 170, 0.28);
}

/* سایه‌های نرم با پایه سرمه‌ای */
.pack-card,
.card,
.stat-card,
.feature,
.dfy-shortcut {
  box-shadow:
    0 1px 2px rgba(13, 35, 58, 0.04),
    0 6px 20px rgba(13, 35, 58, 0.06);
}
.pack-card:hover {
  box-shadow: 0 20px 45px rgba(13, 35, 58, 0.13);
  border-color: rgba(25, 160, 170, 0.6);
}
.dfy-shortcut:hover {
  box-shadow: 0 12px 28px rgba(13, 35, 58, 0.12);
  border-color: rgba(25, 160, 170, 0.6);
}

/* ============================================================
   تم تاریک (Dark Mode)
   پس‌زمینه #081422 / کارت‌ها #0D233A / منوها #132E4A
============================================================ */

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #19a0aa;
    --primary-hover: #4ecdc4;
    --secondary: #4ecdc4;
    --dark: #0d233a;
    --navy: #081422;
    --text: #ffffff;
    --muted: #94a3b8;
    --faint: #64748b;
    --background: #081422;
    --surface: #0d233a;
    --surface-2: #132e4a;
    --border: #1e293b;
    --success: #3ed598;
    --danger: #ff6b6b;
    --warning: #e8a33d;
    --white: #ffffff;
    --gold: #4ecdc4;
    --gold-light: rgba(78, 205, 196, 0.16);
    --accent: #4ecdc4;
    --cream: #0f2b45;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.45);
  }

  body {
    background: var(--background);
    color: var(--text);
  }

  /* هدر و سطوح سایت */
  header {
    background: rgba(8, 20, 34, 0.88);
    border-bottom-color: var(--border);
  }
  .brand,
  .nav-links a {
    color: var(--text);
  }
  .nav-links a:hover {
    color: var(--accent);
  }
  .hero-trust,
  footer {
    color: var(--faint);
  }
  .hero-trust {
    color: #94a3b8;
  }
  .eyebrow {
    color: var(--accent);
    background: var(--gold-light);
  }
  .text-primary {
    color: var(--accent);
  }

  /* سطوح سفید → سرمه‌ای برند */
  .showcase,
  .home-packs,
  .features .feature,
  .step-number,
  .phone-small-card,
  .phone-list,
  .phone-item {
    background: var(--surface);
    border-color: var(--border);
  }
  .phone-screen {
    background: var(--cream);
  }
  .tab {
    background: var(--surface);
    border-color: var(--border);
    color: var(--muted);
  }
  .button-secondary {
    background: transparent;
    border-color: var(--accent);
    color: var(--accent);
  }
  .showcase-box {
    background: var(--cream);
  }
  .hero h1 span {
    background: linear-gradient(90deg, var(--accent), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
  }

  /* متن‌هایی که قبلاً رنگ سرمه‌ایِ تیره داشتند */
  .stat-card .stat-number,
  .pack-header h3,
  .feature h3,
  .step h3,
  .section-heading h2,
  .hero h1,
  .card h1,
  .card h2 {
    color: var(--text);
  }
  .packs-header h1 {
    background: linear-gradient(90deg, var(--accent), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  /* کارت‌های ظرفیت و پروفایل */
  .dfy-cap-tile {
    background: var(--surface);
    border-color: var(--border);
  }
  .dfy-cap-tile.is-done {
    border-color: rgba(62, 213, 152, 0.4);
    background: linear-gradient(
      180deg,
      var(--surface),
      rgba(62, 213, 152, 0.08)
    );
  }
  .dfy-cap-tile.is-todo {
    border-color: rgba(78, 205, 196, 0.55);
    background: linear-gradient(
      180deg,
      var(--surface),
      rgba(78, 205, 196, 0.07)
    );
  }
  .dfy-shot-ph {
    background: linear-gradient(180deg, var(--cream), var(--surface));
    border-color: var(--border);
  }
  .card .dfy-hero-chip.warn,
  .card .dfy-hero-chip.gold {
    background: rgba(78, 205, 196, 0.1);
    border: 1px solid rgba(78, 205, 196, 0.4);
    color: var(--accent);
  }
  .dfy-cap-gain {
    background: rgba(78, 205, 196, 0.14);
  }
  .dfy-cap-total {
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  }

  /* منوها و پاپ‌آپ‌ها: یک درجه روشن‌تر از کارت‌ها */
  .account-dropdown,
  .dfy-share-menu {
    background: var(--surface-2);
    border-color: var(--border);
  }

  /* فرم‌ها */
  input,
  select,
  textarea {
    background: var(--surface-2);
    border-color: var(--border);
    color: var(--text);
  }
  input::placeholder,
  textarea::placeholder {
    color: var(--faint);
  }
  input:focus,
  select:focus,
  textarea:focus {
    border-color: var(--accent);
  }

  /* جدول‌ها */
  th {
    color: var(--muted);
  }
  th,
  td {
    border-bottom-color: var(--border);
  }
  .action-item {
    background: var(--surface-2);
    border-color: var(--border);
  }

  /* دکمه‌های سفید روی گرادیان‌های برند */
  .cta-box .button,
  .dfy-profile-hero .dfy-hero-btn,
  .dfy-app-hero .dfy-app-download {
    background: #fff;
    color: #0d233a;
  }
  .pack-badge {
    color: #081422;
  }
  .dfy-download-nav {
    background: var(--primary);
  }

  .nav-button {
    background: var(--surface-2);
    border: 1px solid var(--border);
  }
  .nav-button:hover {
    border-color: var(--primary);
  }
}

/* ============================================================
   صفحه‌ی درباره ما (/about)
============================================================ */

/* لیست کاربردها: دو ستونه روی دسکتاپ */
.dfy-about-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 26px;
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}
.dfy-about-list li {
  position: relative;
  padding: 8px 26px 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13px;
  line-height: 1.9;
  color: var(--text);
}
.dfy-about-list li::before {
  content: "✓";
  position: absolute;
  right: 0;
  top: 8px;
  color: var(--primary);
  font-weight: 800;
}
@media (max-width: 700px) {
  .dfy-about-list {
    grid-template-columns: 1fr;
  }
}

/* کارت مدیر: عکس + اطلاعات کنار هم */
.dfy-about-admin {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--background);
}
.dfy-about-avatar {
  flex: 0 0 auto;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--surface);
  box-shadow: 0 0 0 3px rgba(25, 160, 170, 0.35), 0 14px 30px rgba(13, 35, 58, 0.16);
  background: var(--gold-light);
}
.dfy-about-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dfy-about-admin-info {
  flex: 1 1 auto;
  min-width: 0;
}
@media (max-width: 640px) {
  .dfy-about-admin {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 22px 16px;
  }
  .dfy-about-admin .hero-buttons {
    justify-content: center;
  }
}

/* چیپ‌های راه ارتباطی */
.dfy-about-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dfy-contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(25, 160, 170, 0.4);
  background: var(--gold-light);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  transition: 0.2s;
}
.dfy-contact-chip:hover {
  border-color: var(--primary);
  background: var(--surface);
  transform: translateY(-1px);
}
@media (prefers-color-scheme: dark) {
  .dfy-about-admin {
    background: var(--surface-2);
    border-color: var(--border);
  }
  .dfy-contact-chip {
    border-color: rgba(78, 205, 196, 0.45);
    background: rgba(78, 205, 196, 0.12);
    color: var(--accent);
  }
  .dfy-about-list li {
    border-bottom-color: var(--border);
  }
}

/* ---------- دیالوگ دانلود اپ (APK + ZIP) ---------- */
.dfy-dl-modal {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 13, 26, 0.72);
}
.dfy-dl-modal.open {
  display: flex;
}
.dfy-dl-box {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  direction: rtl;
  text-align: right;
}
.dfy-dl-box h3 {
  margin: 0 0 10px;
  font-size: 1.12em;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.dfy-dl-ver {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 10px;
}
.dfy-dl-note,
.dfy-dl-hint {
  margin: 0;
  font-size: 13px;
  line-height: 2.1;
  color: var(--muted);
}
.dfy-dl-note {
  margin-bottom: 16px;
}
.dfy-dl-hint {
  margin-top: 14px;
  font-size: 12px;
}
.dfy-dl-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dfy-dl-btn {
  width: 100%;
  justify-content: center;
  text-align: center;
  gap: 8px;
}
.dfy-dl-size {
  font-size: 12px;
  opacity: 0.75;
}
.dfy-dl-close {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.dfy-dl-close:hover {
  color: var(--text);
  border-color: var(--text);
}
