/* قدم‌قدم — پالت: متن #2D3748 · فعال #A7F3D0 · کارت #EDF2F7 · پس‌زمینه #FAFAFA */
:root {
  --text: #2D3748;
  --accent: #A7F3D0;
  --card: #EDF2F7;
  --bg: #FAFAFA;
  --muted: rgba(45, 55, 72, 0.62);
  --border: rgba(45, 55, 72, 0.12);
  --done: rgba(45, 55, 72, 0.42);
  --shadow: 0 2px 12px rgba(45, 55, 72, 0.06);
  --shadow-lg: 0 8px 28px rgba(45, 55, 72, 0.1);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

body {
  font-family: dana, Tahoma, "Segoe UI", sans-serif;
  font-weight: normal;
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 16px 56px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, strong, b { font-weight: bold; }

a { color: var(--text); }

/* ── هدر ── */
.head {
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.brand-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--text);
  letter-spacing: -0.02em;
}
.brand-sub { font-size: .75rem; color: var(--muted); margin-top: 2px; }
.date { color: var(--muted); font-size: .82rem; margin-top: 4px; }
.user-bar { font-size: .75rem; color: var(--muted); text-align: left; }

/* ── جمله انگیزشی ── */
.quote {
  background: var(--accent);
  color: var(--text);
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: .9rem;
  margin-bottom: 14px;
  line-height: 1.7;
  box-shadow: var(--shadow);
}
.quote small { opacity: .75; display: block; margin-top: 8px; font-size: .78rem; }

.sec-quote {
  font-size: .78rem;
  color: var(--text);
  background: var(--card);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  margin: -4px 0 12px;
  line-height: 1.6;
  border-right: 3px solid var(--accent);
}

/* ── اوقات شرعی ── */
.prayer {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.prayer h2 { font-size: .78rem; color: var(--muted); margin: 0 0 10px; font-weight: bold; text-transform: uppercase; letter-spacing: .04em; }
.prayer-city { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: .82rem; }
.prayer-city label { color: var(--muted); white-space: nowrap; }
.prayer-city select {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-family: inherit;
  font-size: .85rem;
  background: var(--bg);
  color: var(--text);
}
.prayer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.prayer-item {
  text-align: center;
  padding: 8px 4px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: .75rem;
  transition: background .15s;
}
.prayer-item strong { display: block; font-size: .95rem; color: var(--text); font-weight: bold; }
.prayer-item.next { background: var(--accent); outline: 2px solid var(--text); outline-offset: -1px; }
.prayer-src { font-size: .7rem; color: var(--muted); margin-top: 8px; }

/* ── تب‌ها ── */
.tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; background: var(--card); padding: 5px; border-radius: var(--radius); box-shadow: var(--shadow); }
.tabs button {
  flex: 1;
  min-width: 68px;
  border: none;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  font-size: .8rem;
  font-weight: bold;
  transition: background .18s, color .18s, transform .12s;
}
.tabs button:active { transform: scale(.97); }
.tabs button.on { background: var(--accent); color: var(--text); }

.panel { display: none; }
.panel.on { display: block; }

/* ── بخش‌ها ── */
section {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
section h2 {
  font-size: .76rem;
  color: var(--muted);
  margin: 0 0 10px;
  letter-spacing: .04em;
  font-weight: bold;
  text-transform: uppercase;
}

label.row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  font-size: .92rem;
  transition: opacity .15s;
}
label.row:last-child { border-bottom: none; }
label.row.done { color: var(--done); text-decoration: line-through; }

input[type=checkbox] {
  width: 20px;
  height: 20px;
  accent-color: var(--text);
  flex-shrink: 0;
  cursor: pointer;
}

input[type=text], input[type=number], input[type=password], input[type=tel], input[type=url], textarea, select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: inherit;
  font-size: .88rem;
  margin-top: 4px;
  background: var(--bg);
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(45, 55, 72, 0.08);
}
textarea { min-height: 48px; resize: vertical; }

.goal-row { margin-bottom: 12px; }
.goal-row:last-child { margin-bottom: 0; }
.goal-row span { font-size: .82rem; color: var(--muted); display: block; margin-bottom: 2px; }

/* ── دکمه‌ها ── */
.btn {
  border: none;
  background: var(--accent);
  color: var(--text);
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  font-size: .88rem;
  font-weight: bold;
  width: 100%;
  margin-top: 10px;
  transition: opacity .15s, transform .12s;
  box-shadow: var(--shadow);
}
.btn:hover { opacity: .92; }
.btn:active { transform: scale(.98); }
.btn-sm { width: auto; padding: 5px 12px; font-size: .75rem; margin-top: 0; opacity: .85; }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
  box-shadow: none;
}
.btn-secondary {
  background: var(--card);
  color: var(--text);
  box-shadow: none;
  border: 1px solid var(--border);
}
.btn-text {
  background: none;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: .85rem;
  cursor: pointer;
  width: 100%;
  padding: 12px;
  margin-top: 4px;
  opacity: .7;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── گیمیفیکیشن ── */
.game-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  border: 2px solid var(--accent);
}
.game-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.game-level { font-weight: bold; color: var(--text); font-size: .95rem; }
.game-streak { font-size: .82rem; color: var(--muted); }
.game-bar { height: 8px; background: var(--bg); border-radius: var(--radius-pill); overflow: hidden; }
.game-bar span { display: block; height: 100%; background: var(--accent); border-radius: var(--radius-pill); transition: width .4s ease; }
.game-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.game-badges span { background: var(--accent); padding: 4px 10px; border-radius: var(--radius-pill); font-size: .72rem; color: var(--text); }
.game-xp { font-size: .75rem; color: var(--muted); margin-top: 8px; }

.score-bar {
  background: var(--card);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 14px;
  font-size: .85rem;
  display: flex;
  justify-content: space-around;
  text-align: center;
  flex-wrap: wrap;
  gap: 8px;
  box-shadow: var(--shadow);
}
.score-bar b { display: block; font-size: 1.3rem; color: var(--text); }

/* ── مالی ── */
.fin-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.fin-box {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
  font-size: .78rem;
}
.fin-box b { display: block; font-size: 1rem; margin-top: 4px; }
.fin-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 6px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: .85rem;
}
.fin-item input[type=text], .fin-item input[type=number] { margin: 0; padding: 6px 8px; }
.fin-due-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 8px;
  align-items: center;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-top: 4px;
}
.fin-due-row label { font-size: .75rem; color: var(--muted); }
.shamsi-due {
  font-family: inherit;
  letter-spacing: .04em;
  padding: 6px 8px !important;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 100%;
}
.fin-due-hint { grid-column: 1 / -1; font-size: .72rem; color: var(--muted); }
.fin-remind-select { padding: 6px; border-radius: var(--radius-sm); border: 1px solid var(--border); font-family: inherit; background: var(--bg); }

.boardit-link {
  display: block;
  text-align: center;
  padding: 12px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  font-weight: bold;
  margin-bottom: 8px;
  transition: opacity .15s;
}
.boardit-link:hover { opacity: .9; }

/* ── برنامه‌ها ── */
.prog-editor { margin-top: 8px; }
.prog-editor-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.prog-editor-item input { margin: 0; }
.prog-quotes { width: 100%; min-height: 72px; font-size: .8rem; margin-top: 6px; }
.prog-file-hint { font-size: .72rem; color: var(--muted); margin-top: 4px; }
.prog-add-row { display: flex; gap: 6px; margin-top: 8px; }
.prog-add-row input { flex: 1; margin: 0; }
.prog-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 10px;
  background: var(--bg);
}
.prog-card h4 { margin: 0 0 8px; font-size: .88rem; color: var(--text); display: flex; align-items: center; gap: 6px; }
.prog-badge { font-size: .65rem; background: var(--accent); color: var(--text); padding: 2px 8px; border-radius: var(--radius-pill); font-weight: normal; }
.prog-group {
  background: var(--card);
  border-radius: var(--radius);
  margin-bottom: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.prog-group > summary {
  padding: 12px 14px;
  cursor: pointer;
  font-weight: bold;
  font-size: .88rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.prog-group > summary::-webkit-details-marker { display: none; }
.prog-group-meta {
  font-size: .72rem;
  font-weight: normal;
  color: var(--muted);
  background: var(--bg);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}
.prog-group-body { padding: 0 14px 14px; }
.prog-group-body section {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  box-shadow: none;
}
.prog-group-body section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.prog-group-body section h2 { font-size: .92rem; margin: 0 0 8px; text-transform: none; letter-spacing: 0; color: var(--text); }

/* ── گزارش و امتیاز ── */
.rating-box, .mood-box {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.mood-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 12px 0; }
.mood-row button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  transition: transform .15s, border-color .15s, background .15s;
}
.mood-row button.on { border-color: var(--text); background: var(--accent); transform: scale(1.08); }
.mood-note { margin-top: 8px; }
.mood-note textarea { min-height: 40px; font-size: .85rem; }

.report-period { display: flex; gap: 6px; margin-bottom: 14px; background: var(--card); padding: 5px; border-radius: var(--radius-sm); }
.report-period button {
  flex: 1;
  border: none;
  padding: 9px;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  font-weight: bold;
  font-size: .82rem;
  transition: background .15s;
}
.report-period button.on { background: var(--accent); color: var(--text); }
.report-card {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 8px;
}
.report-card b { color: var(--text); }
.report-bar { height: 6px; background: var(--card); border-radius: var(--radius-pill); margin-top: 8px; overflow: hidden; }
.report-bar span { display: block; height: 100%; background: var(--accent); border-radius: var(--radius-pill); }

.rating-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.rating-row button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  font-family: inherit;
  font-size: .85rem;
  transition: background .15s, transform .12s;
}
.rating-row button.on { background: var(--accent); color: var(--text); border-color: var(--text); }
.rating-label { text-align: center; font-size: .8rem; color: var(--muted); margin-top: 10px; }

/* ── ورود ── */
#authPanel {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.auth-card {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border-radius: 18px;
  padding: 28px 24px;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow-lg);
}
.auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent);
}
.auth-card h2 { margin: 0 0 4px; font-size: 1.15rem; font-weight: bold; }
.auth-card p { margin: 0 0 18px; font-size: .85rem; color: var(--muted); }
.auth-tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.auth-tab {
  flex: 1;
  border: none;
  padding: 9px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  cursor: pointer;
  font-family: inherit;
  font-weight: bold;
}
.auth-tab.on { background: var(--accent); color: var(--text); }
.auth-error { color: var(--text); font-size: .82rem; min-height: 1.2em; margin-top: 8px; opacity: .85; word-break: break-word; line-height: 1.5; }
.hint { font-size: .75rem; color: var(--muted); margin-top: 12px; line-height: 1.5; }
.hint a { color: var(--text); opacity: .8; }

.auth-logo {
  width: 72px; height: 72px; margin: 0 auto 14px;
  border-radius: 20px; background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; box-shadow: var(--shadow);
}

.auth-steps { display: none; }
.auth-step-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: .25s;
  border: 2px solid var(--border);
}
.auth-step-dot.on { background: var(--accent); border-color: var(--text); transform: scale(1.08); }
.auth-step-dot.done { background: var(--accent); border-color: var(--text); }

.phone-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  direction: ltr;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 14px;
  margin-top: 6px;
  transition: .2s;
}
.phone-wrap:focus-within { border-color: var(--text); box-shadow: 0 0 0 3px rgba(45, 55, 72, 0.08); }
.phone-prefix { color: var(--muted); font-size: .95rem; direction: ltr; flex-shrink: 0; }
.phone-input {
  border: none;
  background: transparent;
  flex: 1;
  font-size: 1.15rem;
  font-family: inherit;
  letter-spacing: .06em;
  outline: none;
  direction: ltr;
  text-align: left;
  color: var(--text);
}
.otp-input {
  font-size: 1.4rem !important;
  letter-spacing: .35em;
  text-align: center !important;
  font-weight: bold;
  padding: 12px !important;
}
.otp-step { display: none; }
.otp-step.on { display: block; }
.auth-status { text-align: center; font-size: .82rem; color: var(--muted); min-height: 1.4em; margin: 8px 0; }

.btn.loading { opacity: .7; pointer-events: none; position: relative; }
.btn.loading::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  margin-top: -8px;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(45, 55, 72, 0.2);
  border-top-color: var(--text);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

.sync-details {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.sync-details summary {
  padding: 10px 12px;
  font-size: .82rem;
  color: var(--text);
  cursor: pointer;
  background: var(--bg);
  list-style: none;
  font-weight: bold;
}
.sync-details summary::-webkit-details-marker { display: none; }
.sync-details[open] summary { border-bottom: 1px solid var(--border); }
.sync-details .sync-body { padding: 12px; }
.hint-sm { font-size: .72rem; color: var(--muted); margin: 8px 0 0; line-height: 1.5; }

/* ── پروفایل ── */
.profile-hero {
  background: var(--card);
  color: var(--text);
  border-radius: var(--radius);
  padding: 24px 20px;
  margin-bottom: 16px;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--accent);
}
.profile-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}
.profile-name { font-size: 1.08rem; font-weight: bold; margin-bottom: 4px; }
.profile-user { font-size: .78rem; color: var(--muted); margin-bottom: 12px; }
.sync-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: .75rem;
}
.sync-badge.ok::before, .sync-badge.wait::before { content: "●"; color: var(--text); }
.sync-badge.wait::before { opacity: .4; }

.settings-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.settings-card h3 { margin: 0 0 4px; font-size: .92rem; color: var(--text); font-weight: bold; }
.settings-desc { font-size: .78rem; color: var(--muted); margin: 0 0 12px; line-height: 1.55; }

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: .88rem;
}
.toggle-row:last-child { border-bottom: none; }

.switch { position: relative; width: 48px; height: 28px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  transition: .2s;
}
.slider::before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: var(--card);
  border-radius: 50%;
  transition: .2s;
  box-shadow: 0 1px 3px rgba(45, 55, 72, 0.12);
}
.switch input:checked + .slider { background: var(--accent); border-color: var(--text); }
.switch input:checked + .slider::before { transform: translateX(20px); background: var(--text); }

.profile-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 5px 12px 5px 6px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: var(--shadow);
  font-family: inherit;
  max-width: 150px;
  transition: transform .12s;
}
.profile-chip:active { transform: scale(.97); }
.profile-chip-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.profile-chip-name { font-size: .78rem; font-weight: bold; text-align: right; line-height: 1.2; color: var(--text); }

#todayExtras { transition: .2s; }
body.profile-open #todayExtras,
body.profile-open .tabs,
body.profile-open .panel:not(#panel-profile) { display: none !important; }
body.profile-open #profilePage { display: block; }
body.profile-open .footer { display: none; }
#profilePage { display: none; }

.profile-back {
  border: none;
  background: none;
  font-family: inherit;
  font-size: .9rem;
  color: var(--text);
  cursor: pointer;
  padding: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: bold;
  opacity: .8;
}
.profile-screen { display: none; }
.profile-screen.on { display: block; }
.profile-menu { display: grid; gap: 8px; margin-bottom: 14px; }
.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
  font-family: inherit;
  text-align: right;
  box-shadow: var(--shadow);
  transition: transform .12s;
}
.profile-menu-item:active { transform: scale(.98); }
.profile-menu-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: var(--accent);
  flex-shrink: 0;
}
.profile-menu-item strong { display: block; font-size: .9rem; color: var(--text); }
.profile-menu-item small { display: block; font-size: .72rem; color: var(--muted); margin-top: 2px; }
.profile-menu-arrow { margin-right: auto; color: var(--muted); font-size: 1rem; }
.profile-screen-title {
  font-size: 1rem;
  font-weight: bold;
  color: var(--text);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
}

.toggle-group { margin-bottom: 14px; }
.toggle-group-title {
  font-size: .78rem;
  font-weight: bold;
  color: var(--text);
  margin-bottom: 8px;
  padding: 4px 0;
  opacity: .75;
}
.toggle-group .toggle-row {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 6px;
  border-bottom: none;
}

/* ── لینک‌های سریع ── */
.quick-links {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.quick-links h2 { font-size: .76rem; color: var(--muted); margin: 0 0 10px; font-weight: bold; text-transform: uppercase; letter-spacing: .04em; }
.quick-links-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--text);
  text-decoration: none;
  font-size: .82rem;
  font-weight: bold;
  transition: opacity .15s;
}
.quick-link:hover { opacity: .88; }
.link-row { display: flex; gap: 8px; margin-bottom: 8px; align-items: center; flex-wrap: wrap; }
.link-row input { flex: 1; min-width: 120px; }
.link-row .btn-del {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  opacity: .7;
}

.link-block {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.link-block h2 {
  font-size: .76rem;
  color: var(--muted);
  margin: 0 0 10px;
  letter-spacing: .04em;
  font-weight: bold;
  text-transform: uppercase;
}
.link-edit-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 12px;
}
.link-item-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}
.link-item-row input { flex: 1; margin: 0; }
.link-items-edit { margin-top: 8px; }

.lang-pick { display: flex; gap: 6px; flex-wrap: wrap; }
.lang-pick button {
  flex: 1;
  min-width: 80px;
  border: 1px solid var(--border);
  background: var(--bg);
  padding: 9px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  font-weight: bold;
  color: var(--muted);
  transition: background .15s;
}
.lang-pick button.on { background: var(--accent); color: var(--text); border-color: var(--text); }

/* ── toast و فوتر ── */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: var(--bg);
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  opacity: 0;
  transition: .25s;
  z-index: 200;
  max-width: 90%;
  pointer-events: none;
  box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.footer { text-align: center; font-size: .7rem; color: var(--muted); margin-top: 20px; }

/* ── انیمیشن ── */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { 0% { transform: scale(1); } 50% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.pop { animation: pop .35s ease; }
.slide-up { animation: slideUp .35s ease; }
label.row.pop, .game-card.bump { animation: pop .4s ease; }
.tick-celebrate { animation: pop .3s ease; }
body.ltr .profile-menu-arrow {
  transform: scaleX(-1);
  margin-right: 0;
  margin-left: auto;
}

.muted-inline { color: var(--muted); font-size: .85rem; }

/* ── تیکت کاربر ── */
.ticket {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 10px;
  background: var(--bg);
}
.ticket-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.ticket-head strong { font-size: .88rem; }
.ticket-msg {
  font-size: .82rem;
  margin: 0 0 6px;
  white-space: pre-wrap;
  background: var(--card);
  padding: 10px;
  border-radius: var(--radius-sm);
}
