@import 'fonts.css';
@import 'variables.css';

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  direction: rtl;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-light); }

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  overflow: visible;
}
[data-theme="dark"] .header { background: rgba(30,41,59,0.9); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.logo-img {
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}
.logo-img--icon,
.logo--icon-only .logo-img,
.header .logo-img {
  width: 52px;
  height: 52px;
  max-width: 52px;
  border-radius: 12px;
}
.logo-img--wordmark,
.logo--wordmark .logo-img {
  height: 56px;
  width: auto;
  max-width: min(300px, 88vw);
}
.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }

.nav-link {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--text);
  font-size: 0.9rem;
}
.nav-link:hover, .nav-link.active {
  background: rgba(13,148,136,0.1);
  color: var(--primary);
}

.header-actions { display: flex; gap: 0.5rem; align-items: center; }

/* سکه — هدر و سایت */
.coin-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
.header-coins {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem 0.35rem 0.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(251,191,36,0.18), rgba(245,158,11,0.1));
  border: 1px solid rgba(245,158,11,0.35);
  color: #b45309;
  font-weight: 800;
  font-size: 0.88rem;
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.15s;
  line-height: 1;
}
.header-coins:hover {
  box-shadow: 0 4px 14px rgba(245,158,11,0.25);
  transform: translateY(-1px);
  color: #92400e;
}
.header-coins__num { font-variant-numeric: tabular-nums; }

/* User dropdown menu */
.user-menu { position: relative; }
.user-menu__trigger {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.65rem 0.35rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-card);
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.85rem;
  color: var(--text);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.user-menu__trigger:hover,
.user-menu.open .user-menu__trigger {
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(99,102,241,0.15);
}
.user-menu__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
}
.user-menu__name { max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu__badge {
  font-size: 0.65rem;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  font-weight: 700;
}
.user-menu__chevron { font-size: 0.7rem; opacity: 0.6; transition: transform 0.2s; }
.user-menu.open .user-menu__chevron { transform: rotate(180deg); }
.user-menu__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  min-width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 300;
  pointer-events: none;
}
.user-menu.open .user-menu__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.user-menu__head {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.35rem;
}
.user-menu__head strong { display: block; font-size: 0.9rem; }
.user-menu__head span { font-size: 0.78rem; color: var(--text-muted); }
.user-menu__dropdown a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  font-size: 0.88rem;
  color: var(--text);
  transition: background 0.15s;
}
.user-menu__dropdown a:hover { background: rgba(99,102,241,0.08); color: var(--primary); }
.user-menu__dropdown hr { border: none; border-top: 1px solid var(--border); margin: 0.35rem 0; }
.user-menu__logout { color: #ef4444 !important; }
.user-menu__logout:hover { background: rgba(239,68,68,0.08) !important; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 14px rgba(13,148,136,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(13,148,136,0.45); color: white; }
.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: white; }
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 0.5rem;
}
.btn-ghost:hover { color: var(--primary); background: rgba(13,148,136,0.08); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }

.icon-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: all 0.2s;
}
.icon-btn:hover { border-color: var(--primary); color: var(--primary); }

/* Notifications bell */
.notif-menu { position: relative; }
.notif-menu__btn { position: relative; }
.notif-menu__badge {
  position: absolute; top: -4px; left: -4px; min-width: 1.1rem; height: 1.1rem;
  padding: 0 0.25rem; border-radius: 999px; background: #ef4444; color: #fff;
  font-size: 0.62rem; font-weight: 800; line-height: 1.1rem; text-align: center;
  border: 2px solid var(--bg-card); pointer-events: none;
}
.notif-menu__badge--hidden { display: none; }
.notif-menu__dropdown {
  position: absolute; top: calc(100% + 8px); right: 0; left: auto; width: min(340px, calc(100vw - 2rem));
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12); z-index: 200; overflow: hidden;
}
.notif-menu.open .notif-menu__dropdown { display: block; }
.notif-menu__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); font-size: 0.9rem;
}
.notif-menu__mark-all {
  background: none; border: none; color: var(--primary); font-size: 0.78rem;
  font-weight: 600; cursor: pointer; font-family: inherit; padding: 0.25rem 0.5rem;
}
.notif-menu__mark-all:hover { text-decoration: underline; }
.notif-menu__list { max-height: 360px; overflow-y: auto; }
.notif-menu__loading, .notif-menu__empty {
  padding: 1.5rem 1rem; text-align: center; color: var(--text-muted); font-size: 0.88rem;
}
.notif-item {
  display: flex; gap: 0.65rem; padding: 0.85rem 1rem; text-decoration: none; color: inherit;
  border-bottom: 1px solid var(--border); transition: background 0.15s;
}
.notif-item:hover { background: rgba(99,102,241,0.06); color: inherit; }
.notif-item:last-child { border-bottom: none; }
.notif-item__icon { font-size: 1.35rem; flex-shrink: 0; line-height: 1; }
.notif-item__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.notif-item__body strong { font-size: 0.86rem; display: flex; align-items: center; gap: 0.4rem; }
.notif-item__body small { color: var(--text-muted); font-size: 0.78rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notif-item__body time { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.1rem; }
.notif-item__badge {
  background: #ef4444; color: #fff; font-size: 0.65rem; padding: 0.1rem 0.35rem; border-radius: 999px;
}
.notif-item--dm_request { border-right: 3px solid #f59e0b; }
.notif-item--dm_message { border-right: 3px solid var(--primary); }
.notif-item--announcement { border-right: 3px solid #10b981; }
.notif-menu__foot {
  display: block; text-align: center; padding: 0.7rem; font-size: 0.82rem; font-weight: 600;
  border-top: 1px solid var(--border); color: var(--primary); text-decoration: none;
}
.notif-menu__foot:hover { background: rgba(99,102,241,0.06); }
.notif-toast-bar {
  display: flex; align-items: center; gap: 0.65rem; padding: 0.55rem 1rem;
  background: linear-gradient(90deg, rgba(99,102,241,0.12), rgba(168,85,247,0.08));
  border-bottom: 1px solid rgba(99,102,241,0.2); font-size: 0.86rem;
}
.notif-toast-bar--hidden { display: none !important; }
.notif-toast-bar__icon { font-size: 1.1rem; flex-shrink: 0; }
.notif-toast-bar__text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-toast-bar__open {
  background: var(--primary); color: #fff; border: none; border-radius: 8px;
  padding: 0.35rem 0.75rem; font-size: 0.78rem; font-weight: 600; cursor: pointer; font-family: inherit;
}
.notif-toast-bar__close {
  background: none; border: none; font-size: 1.25rem; line-height: 1; color: var(--text-muted);
  cursor: pointer; padding: 0 0.25rem;
}
.user-menu__notif-dot {
  margin-right: auto; background: #ef4444; color: #fff; font-size: 0.68rem; font-weight: 700;
  padding: 0.1rem 0.4rem; border-radius: 999px; min-width: 1.1rem; text-align: center;
}
.notif-announce-list { display: flex; flex-direction: column; gap: 0.75rem; }
.notif-announce { padding: 1.15rem 1.25rem; }
.notif-announce--new { border-right: 3px solid var(--primary); }
.notif-announce__head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.notif-announce__head h2 { margin: 0; font-size: 1rem; flex: 1; }
.notif-announce__badge { font-size: 0.7rem; background: var(--primary); color: #fff; padding: 0.15rem 0.5rem; border-radius: 999px; }
.notif-announce__head time { font-size: 0.75rem; color: var(--text-muted); }
.notif-announce__body { color: var(--text-muted); line-height: 1.8; font-size: 0.92rem; }
.notif-empty { text-align: center; padding: 2rem; color: var(--text-muted); }

/* Hero */
.hero {
  padding: 4rem 0 5rem;
  background: var(--gradient);
  color: white;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 800; margin-bottom: 1rem; line-height: 1.3; }
.hero p { font-size: 1.1rem; opacity: 0.92; max-width: 600px; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero .btn-outline { border-color: white; color: white; }
.hero .btn-outline:hover { background: white; color: var(--primary-dark); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}
.stat-card {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}
.stat-card .num { font-size: 1.75rem; font-weight: 800; }
.stat-card .label { font-size: 0.85rem; opacity: 0.85; }

/* Cards */
.section { padding: 3.5rem 0; }
.section-title { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.5rem; }
.section-sub { color: var(--text-muted); margin-bottom: 2rem; }

/* فروشگاه توکن Konkorito */
.shop-page {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.shop-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.35rem 1.5rem !important;
  background: linear-gradient(135deg, rgba(13,148,136,0.08), rgba(99,102,241,0.06));
  cursor: default;
}
.shop-hero:hover {
  transform: none;
  box-shadow: var(--shadow);
  border-color: var(--border);
}
.shop-hero__eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.shop-hero h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.2rem, 4vw, 1.55rem);
}
.shop-hero__sub {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.shop-balance {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.85rem 1.35rem;
  background: linear-gradient(135deg, rgba(245,158,11,0.14), rgba(251,191,36,0.08));
  border: 1px solid rgba(245,158,11,0.28);
  border-radius: 14px;
  min-width: 130px;
}
.shop-balance__row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.shop-balance__label { font-size: 0.78rem; color: var(--text-muted); }
.shop-balance__num { font-size: 1.85rem; font-weight: 800; color: #d97706; font-variant-numeric: tabular-nums; line-height: 1; }
.shop-earn {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem !important;
  cursor: default;
}
.shop-earn:hover { transform: none; box-shadow: var(--shadow); border-color: var(--border); }
.shop-earn__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1 1 160px;
  min-width: 0;
}
.shop-earn__icon { font-size: 1.35rem; line-height: 1; }
.shop-earn__item strong { display: block; font-size: 0.92rem; }
.shop-earn__item span { display: block; font-size: 0.78rem; color: var(--text-muted); }
.shop-earn__cta { margin-right: auto; }
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 1rem;
}
.shop-card {
  display: flex;
  flex-direction: column;
  text-align: right;
  padding: 1.15rem !important;
  cursor: default;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.shop-card--ready {
  border-color: rgba(13,148,136,0.35);
}
.shop-card--ready:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.shop-card--disabled { opacity: 0.6; }
.shop-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}
.shop-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  background: rgba(99,102,241,0.1);
  border-radius: 12px;
}
.shop-card__type {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(13,148,136,0.12);
  color: var(--primary);
  white-space: nowrap;
}
.shop-card__title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  line-height: 1.45;
}
.shop-card__desc {
  margin: 0 0 0.75rem;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}
.shop-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}
.shop-card__price {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: #d97706;
}
.shop-card__stock {
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 0.15rem 0.45rem;
  background: var(--bg);
  border-radius: 6px;
}
.shop-card__stock--out { color: #dc2626; background: rgba(239,68,68,0.08); }
.shop-buy-btn { width: 100%; margin-top: auto; }
.shop-empty { padding: 2rem 1rem; }
.shop-history__title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}
.shop-history__list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.shop-history__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.9rem 1rem !important;
  cursor: default;
}
.shop-history__item:hover { transform: none; box-shadow: var(--shadow); border-color: var(--border); }
.shop-history__info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}
.shop-history__icon { font-size: 1.35rem; }
.shop-history__info strong { display: block; font-size: 0.92rem; }
.shop-history__info small { display: block; color: var(--text-muted); font-size: 0.75rem; margin-top: 0.15rem; }
.shop-history__code {
  background: rgba(99,102,241,0.1);
  color: var(--primary);
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
}
.sidebar-profile {
  text-align: center;
  padding: 0.75rem 0 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.75rem;
}
.sidebar-profile__body { min-width: 0; }
.sidebar-profile__name {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.45rem;
  line-height: 1.4;
}
.sidebar-profile__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}
.sidebar-chip {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
}
.sidebar-chip--grade {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
}
.sidebar-profile__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.85rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.sidebar-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.sidebar-coins {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.sidebar-profile__score { color: var(--primary); }
.sidebar-coins strong { color: #f59e0b; }
.sidebar-profile__avatar { font-size: 2rem; margin-bottom: 0.35rem; line-height: 1; }
.sidebar-nav-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.5rem;
  padding: 0 0.25rem;
}
.sidebar-nav-scroll { display: flex; flex-direction: column; gap: 0.15rem; }
.sidebar--nav-only {
  padding: 0.75rem;
}
.sidebar--nav-only .sidebar-nav-scroll {
  margin-top: 0;
}
.sidebar-quick-form { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--border); }
.sidebar-quick-form label { display: block; font-size: 0.75rem; color: var(--text-muted); margin: 0.35rem 0 0.15rem; }
.sidebar-quick-form select { width: 100%; margin-bottom: 0.35rem; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: all 0.25s;
  cursor: pointer;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.card-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.card p { color: var(--text-muted); font-size: 0.9rem; }
.card-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(13,148,136,0.12);
  color: var(--primary);
  margin-top: 0.75rem;
}

/* Menu grid (main menu) */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  padding: 2rem 0;
}
.menu-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all 0.25s;
  text-decoration: none;
  color: var(--text);
}
.menu-item:hover {
  transform: scale(1.03);
  border-color: var(--primary);
  box-shadow: var(--shadow);
  color: var(--text);
}
.menu-item .icon { font-size: 2.25rem; margin-bottom: 0.5rem; }
.menu-item h3 { font-size: 0.95rem; font-weight: 600; }

/* Filters */
.filters {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  align-items: flex-end;
}
.filter-group { display: flex; flex-direction: column; gap: 0.25rem; flex: 1 1 140px; min-width: 0; }
.filter-group--grow { flex: 2 1 220px; }
.filter-group--track { flex: 1 1 220px; min-width: 200px; }
.filters--track .track-select { width: 100%; min-width: 180px; }
.page-sub--track { margin-top: -0.25rem; }

/* Pagination */
.pagination { margin: 0 0 1.25rem; }
.pagination-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.pagination-bar__info {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}
.pagination__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
.pagination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.pagination__btn:hover:not(.is-disabled):not(.is-active) {
  border-color: var(--primary);
  color: var(--primary);
}
.pagination__btn.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  pointer-events: none;
}
.pagination__btn.is-disabled {
  opacity: 0.45;
  cursor: default;
}
.pagination__gap {
  color: var(--text-muted);
  padding: 0 0.15rem;
  user-select: none;
}
.questions-list + .pagination { margin-top: 1.5rem; }
@media (max-width: 640px) {
  .pagination-bar { flex-direction: column; align-items: stretch; }
  .pagination__controls { justify-content: center; }
}
.filter-group label { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }
.filters__submit { flex: 0 0 auto; width: 100%; }
@media (min-width: 640px) {
  .filters__submit { width: auto; min-width: 120px; }
}
select, input[type="text"], input[type="tel"] {
  font-family: var(--font);
  padding: 0.6rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
  min-width: 140px;
}
select:focus, input:focus { outline: 2px solid var(--primary-light); border-color: var(--primary); }

/* Question */
.question-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}
.question-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.tag {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(99,102,241,0.1);
  color: #6366f1;
}
.question-text { font-size: 1.1rem; font-weight: 500; margin-bottom: 1.5rem; line-height: 1.8; overflow-wrap: anywhere; word-break: break-word; max-width: 100%; }
.question-text *, .exp-body *, .rich-content * { max-width: 100%; }
.question-text table, .exp-body table, .rich-content table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; }
.question-text pre, .exp-body pre, .rich-content pre { overflow-x: auto; white-space: pre-wrap; }
.options { display: flex; flex-direction: column; gap: 0.75rem; max-width: 100%; }
.option {
  padding: 1rem 1.25rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  max-width: 100%;
}
.option > span:last-child { flex: 1; min-width: 0; overflow-wrap: anywhere; word-break: break-word; line-height: 1.7; }
.option:hover { border-color: var(--primary-light); background: rgba(13,148,136,0.05); }
.option.selected { border-color: var(--primary); background: rgba(13,148,136,0.1); }
.option.correct { border-color: var(--success); background: rgba(34,197,94,0.1); }
.option.wrong { border-color: var(--danger); background: rgba(239,68,68,0.1); }
.option-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--border);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem;
  flex-shrink: 0;
}
.option.correct .option-num { background: var(--success); color: white; }
.option.wrong .option-num { background: var(--danger); color: white; }

.explanation {
  margin-top: 1.25rem;
  padding: 1.25rem;
  background: rgba(13,148,136,0.08);
  border-radius: var(--radius-sm);
  border-right: 4px solid var(--primary);
  display: none;
}
.explanation.show { display: block; }
.exp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}
.exp-head h4 { color: var(--primary); margin: 0; }
.exp-hide {
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.exp-hide:hover { border-color: var(--primary); color: var(--primary); }
.exp-body { line-height: 1.9; }
.exp-body img, .question-text img {
  display: block; max-width: 100%; width: auto; height: auto; object-fit: contain;
  border-radius: 8px; margin: 0.65rem auto; box-sizing: border-box;
}
.question-text img[style], .exp-body img[style] {
  width: auto !important; max-width: 100% !important; height: auto !important;
}
.q-img-wrap {
  display: block; max-width: 100%; margin: 0.65rem auto; position: relative; text-align: center;
  cursor: zoom-in; touch-action: manipulation;
}
.q-img-wrap img { margin: 0 !important; }
.q-img-wrap::after {
  content: '🔍 بزرگ‌نمایی'; position: absolute; bottom: 8px; left: 8px; font-size: 0.72rem;
  background: rgba(0,0,0,0.5); color: #fff; padding: 0.2rem 0.45rem; border-radius: 6px;
  pointer-events: none; opacity: 0.85;
}
.q-zoomable { cursor: zoom-in; touch-action: manipulation; }
.img-lightbox {
  position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
.img-lightbox.is-open { display: flex; }
.img-lightbox__backdrop {
  position: absolute; inset: 0; background: rgba(15,23,42,0.55); backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.img-lightbox__stage {
  position: relative; z-index: 1; max-width: min(96vw, 1100px); max-height: 92vh;
  display: flex; align-items: center; justify-content: center;
}
.img-lightbox__img {
  max-width: 96vw; max-height: 88vh; width: auto; height: auto; object-fit: contain;
  border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,0.35); background: #fff;
}
.img-lightbox__close {
  position: fixed; top: max(12px, env(safe-area-inset-top)); left: max(12px, env(safe-area-inset-left));
  width: 44px; height: 44px; border: none; border-radius: 50%; background: rgba(255,255,255,0.92);
  color: #111; font-size: 1.6rem; line-height: 1; cursor: pointer; z-index: 2;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.exp-body video, .question-text video { max-width: 100%; border-radius: 8px; margin: 0.5rem 0; }
.exp-body iframe { max-width: 100%; border-radius: 8px; }

.exp-show-again {
  display: none;
  margin-top: 0.75rem;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 1rem;
  border: 1px dashed var(--primary);
  border-radius: 10px;
  background: rgba(99,102,241,0.06);
  color: var(--primary);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}
.exp-show-again:hover { background: rgba(99,102,241,0.12); }

.header-quota {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.25);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}
.header-quota:hover { box-shadow: 0 4px 12px rgba(99,102,241,0.2); }
.header-quota--empty {
  background: rgba(245,158,11,0.15);
  border-color: rgba(245,158,11,0.4);
  color: #d97706;
  animation: quota-pulse 2s ease infinite;
}
.header-quota__sep { opacity: 0.5; font-weight: 400; }

.quota-banner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 1rem 1.25rem 1.35rem;
  margin-bottom: 1.25rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(139,92,246,0.06));
  border: 1px solid rgba(99,102,241,0.25);
  font-size: 0.9rem;
  box-shadow: 0 4px 20px rgba(99,102,241,0.08);
}
.quota-banner__body { display: flex; align-items: flex-start; gap: 0.75rem; flex: 1; min-width: 200px; }
.quota-banner__emoji { font-size: 1.75rem; line-height: 1; }
.quota-banner__body strong { display: block; font-size: 1rem; margin-bottom: 0.2rem; }
.quota-banner__body p { margin: 0; font-size: 0.82rem; color: var(--text-muted); }
.quota-banner--full {
  background: linear-gradient(135deg, rgba(245,158,11,0.14), rgba(239,68,68,0.08));
  border-color: rgba(245,158,11,0.4);
}
.quota-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(0,0,0,0.06);
  border-radius: 0 0 14px 14px;
  overflow: hidden;
}
.quota-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #8b5cf6);
  border-radius: 0 0 0 14px;
  transition: width 0.4s ease;
}
.quota-banner--full .quota-bar__fill { background: linear-gradient(90deg, #f59e0b, #ef4444); }

.quota-float {
  position: fixed;
  bottom: 5.5rem;
  left: 1rem;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: var(--bg-card);
  border: 2px solid rgba(99,102,241,0.35);
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(99,102,241,0.2);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  max-width: calc(100vw - 2rem);
}
.quota-float:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(99,102,241,0.28); }
.quota-float--empty { border-color: rgba(245,158,11,0.5); animation: quota-pulse 2s ease infinite; }
.quota-float__icon { font-size: 1.25rem; }
.quota-float__text { display: flex; flex-direction: column; line-height: 1.25; }
.quota-float__text strong { font-size: 1.05rem; color: var(--primary); }
.quota-float__text small { font-size: 0.72rem; color: var(--text-muted); }
.quota-float--empty .quota-float__text strong { color: #d97706; }
.quota-float__pulse {
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 2px solid rgba(99,102,241,0.3);
  animation: quota-ring 2s ease-out infinite;
  pointer-events: none;
}
@keyframes quota-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}
@keyframes quota-ring {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.15); opacity: 0; }
}

.question-card--locked { position: relative; overflow: hidden; }
.question-card__blur { filter: blur(6px); user-select: none; pointer-events: none; opacity: 0.55; }
.question-lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(255,255,255,0.35);
}
[data-theme="dark"] .question-lock-overlay { background: rgba(15,23,42,0.5); }
.question-lock-box {
  text-align: center;
  max-width: 280px;
  padding: 1.5rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
.question-lock-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.question-lock-box h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.question-lock-box p { margin: 0 0 1rem; font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }
.question-lock-box .btn { width: 100%; }
.question-card--guest-lock .question-lock-box { max-width: 320px; border-color: rgba(99, 102, 241, 0.35); }
.question-lock-bonus { margin: 0.75rem 0 0; font-size: 0.88rem; color: #b45309; font-weight: 600; }
.quota-banner--guest { border-color: rgba(99, 102, 241, 0.25); }

.header-coins--guest { position: relative; animation: guest-coin-pulse 2.5s ease-in-out infinite; }
.header-coins__badge {
  position: absolute; top: -4px; left: -4px; width: 16px; height: 16px;
  background: #ef4444; color: #fff; font-size: 0.65rem; font-weight: 700;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
@keyframes guest-coin-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.35); }
  50% { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
}

.q-bookmark {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 0.9rem; border: 1px solid var(--border); border-radius: 999px;
  background: var(--bg); cursor: pointer; font-family: inherit; font-size: 0.82rem; color: var(--text-muted);
  transition: all 0.2s;
}
.q-bookmark:hover { border-color: var(--primary); color: var(--primary); }
.q-bookmark--on { border-color: #f59e0b; background: #fffbeb; color: #b45309; }

.section-lead { text-align: center; color: var(--text-muted); margin: -0.5rem 0 1.5rem; }
.plans-compare-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch;
}
.plan-card {
  position: relative; padding: 1.5rem 1.25rem; border: 1px solid var(--border);
  border-radius: 16px; background: var(--bg-card); display: flex; flex-direction: column;
}
.plan-card--featured { border-color: var(--primary); box-shadow: 0 8px 32px rgba(99, 102, 241, 0.15); transform: scale(1.02); }
.plan-card__badge {
  position: absolute; top: -10px; right: 1rem; font-size: 0.72rem; font-weight: 600;
  padding: 0.25rem 0.65rem; border-radius: 999px; background: var(--border); color: var(--text-muted);
}
.plan-card__badge--accent { background: var(--primary); color: #fff; }
.plan-card h3 { margin: 0.5rem 0 0.25rem; font-size: 1.2rem; }
.plan-card__price { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 1rem; }
.plan-card__features { list-style: none; margin: 0 0 1.25rem; padding: 0; flex: 1; font-size: 0.88rem; line-height: 1.9; }
.plan-card__muted { color: var(--text-muted); opacity: 0.85; }
.btn-block { display: block; width: 100%; text-align: center; }
.plans-compare-section { background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.04)); }

/* SEO landing & guide hub */
.seo-landing__hero { text-align: center; padding: 2rem 0 1.5rem; }
.seo-landing__icon { font-size: 3rem; display: block; margin-bottom: 0.5rem; }
.seo-landing__lead { color: var(--text-muted); max-width: 560px; margin: 0.5rem auto 1rem; line-height: 1.8; }
.seo-landing__stat { color: var(--primary); font-weight: 600; margin-bottom: 1rem; }
.seo-landing__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.seo-landing__section { margin: 1rem 0; padding: 1.25rem; }
.seo-landing__section h2 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.seo-landing__links { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.seo-landing__links a { padding: 0.4rem 0.85rem; border: 1px solid var(--border); border-radius: 999px; font-size: 0.85rem; }
.seo-guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.75rem; }
.seo-guide-grid--home { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.seo-guide-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.5rem;
  padding: 1.1rem 0.75rem; border: 1px solid var(--border); border-radius: 14px;
  background: var(--bg-card); text-decoration: none; color: var(--text); transition: all 0.2s;
}
.seo-guide-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--text); }
.seo-guide-card__icon { font-size: 1.75rem; }
.seo-guide-card__title { font-size: 0.82rem; font-weight: 600; line-height: 1.45; }
.seo-links-section { padding-top: 0.5rem; }
.seo-landing__ul { margin: 0.75rem 0 0; padding-right: 1.25rem; line-height: 2; }
.seo-landing__faq .seo-faq-item { border-bottom: 1px solid var(--border); padding: 0.65rem 0; }
.seo-landing__faq summary { cursor: pointer; font-weight: 600; }
.seo-landing__cta-mid { text-align: center; }
.seo-landing__cta-mid--glow { background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(168,85,247,0.06)); border-color: rgba(99,102,241,0.2); }
.seo-guide-card--mag { border-right: 3px solid var(--primary); }

/* Leaderboard */
.lb-page { padding-bottom: 2rem; }
.lb-hero {
  position: relative; overflow: hidden; border-radius: 20px; margin-bottom: 1.25rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #a855f7 100%);
  color: #fff; text-align: center;
}
.lb-hero__glow {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.2), transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(251,191,36,0.15), transparent 45%);
  pointer-events: none;
}
.lb-hero__content { position: relative; z-index: 1; }
.lb-hero__eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em;
  background: rgba(255,255,255,0.15); padding: 0.25rem 0.75rem; border-radius: 999px; margin-bottom: 0.65rem;
}
.lb-hero h1 { margin: 0 0 0.5rem; font-size: clamp(1.5rem, 4vw, 2rem); }
.lb-hero p { margin: 0; opacity: 0.92; max-width: 480px; margin-inline: auto; font-size: 0.92rem; }
.lb-page .lb-tabs {
  display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.25rem;
  padding: 0.35rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
}
.lb-tab {
  flex: 1; min-width: 100px; display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.65rem 1rem; border-radius: 10px; text-decoration: none; color: var(--text-muted);
  font-size: 0.88rem; font-weight: 600; transition: all 0.2s; border: 1px solid transparent;
}
.lb-tab:hover { color: var(--text); background: rgba(99,102,241,0.06); }
.lb-tab.is-active { background: var(--primary); color: #fff; box-shadow: 0 4px 14px rgba(99,102,241,0.35); }
.lb-tab__icon { font-size: 1rem; }
.lb-my-score {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.25rem; margin-bottom: 1.25rem;
  background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(168,85,247,0.05));
  border-color: rgba(99,102,241,0.2);
}
.lb-my-score__label { display: block; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.lb-my-score__nums { display: flex; gap: 1.5rem; }
.lb-my-score__stat small { display: block; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.15rem; }
.lb-my-score__stat strong { font-size: 1.35rem; font-weight: 800; }
.lb-my-score__stat--coins strong { display: flex; align-items: center; gap: 0.35rem; color: #d97706; }
.lb-guest-cta { text-align: center; padding: 1.25rem; margin-bottom: 1.25rem; }
.lb-podium {
  display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 0.75rem; align-items: end;
  margin-bottom: 1.25rem; min-height: 200px;
}
.lb-podium__card {
  display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; color: inherit;
  padding: 1rem 0.65rem; border-radius: 16px; border: 1px solid var(--border); background: var(--bg-card);
  transition: transform 0.2s, box-shadow 0.2s; position: relative; overflow: hidden;
}
.lb-podium__card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: inherit; }
.lb-podium__card--1 {
  padding: 1.35rem 0.75rem 1.15rem; min-height: 210px;
  background: linear-gradient(180deg, rgba(251,191,36,0.12), var(--bg-card));
  border-color: rgba(251,191,36,0.35);
}
.lb-podium__card--2 { min-height: 175px; background: linear-gradient(180deg, rgba(148,163,184,0.1), var(--bg-card)); }
.lb-podium__card--3 { min-height: 160px; background: linear-gradient(180deg, rgba(180,83,9,0.08), var(--bg-card)); }
.lb-podium__card--pro { box-shadow: inset 0 0 0 2px rgba(168,85,247,0.25); }
.lb-podium__medal { font-size: 1.5rem; line-height: 1; margin-bottom: 0.35rem; }
.lb-podium__card--1 .lb-podium__medal { font-size: 2rem; }
.lb-podium__avatar {
  width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 700; background: rgba(99,102,241,0.12); margin-bottom: 0.5rem;
}
.lb-podium__card--1 .lb-podium__avatar { width: 64px; height: 64px; font-size: 1.5rem; background: rgba(251,191,36,0.2); }
.lb-podium__name { font-size: 0.9rem; margin-bottom: 0.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.lb-podium__meta { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 0.45rem; }
.lb-podium__coins { display: flex; align-items: center; gap: 0.3rem; font-weight: 700; font-size: 0.88rem; color: #d97706; }
.lb-list { padding: 0; overflow: hidden; }
.lb-list__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.85rem 1rem; border-bottom: 1px solid var(--border);
  font-weight: 600; font-size: 0.88rem;
}
.lb-list__head small { color: var(--text-muted); font-weight: 500; }
.lb-row {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border); transition: background 0.15s;
}
.lb-row:last-child { border-bottom: none; }
.lb-row:hover { background: rgba(99,102,241,0.04); }
.lb-row--pro { border-right: 3px solid #a855f7; }
.lb-row__rank {
  width: 2.25rem; height: 2.25rem; display: flex; align-items: center; justify-content: center;
  text-align: center; font-weight: 700; flex-shrink: 0; font-size: 0.9rem;
  background: var(--bg); border-radius: 8px; color: var(--text-muted);
}
.lb-row__user { display: flex; align-items: center; gap: 0.65rem; flex: 1; text-decoration: none; color: inherit; min-width: 0; }
.lb-row__avatar {
  width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700; background: rgba(99,102,241,0.1); flex-shrink: 0;
}
.lb-row__info { display: flex; flex-direction: column; min-width: 0; }
.lb-row__info strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-row__info small { color: var(--text-muted); font-size: 0.75rem; }
.lb-row__coins {
  display: flex; align-items: center; gap: 0.35rem; font-weight: 700; white-space: nowrap;
  padding: 0.35rem 0.65rem; background: rgba(217,119,6,0.08); border-radius: 999px; font-size: 0.88rem;
}
.lb-empty { text-align: center; padding: 2.5rem 1.5rem; }
.lb-empty__icon { font-size: 3rem; margin-bottom: 0.75rem; }
.lb-empty h2 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.lb-empty p { color: var(--text-muted); margin: 0 0 1rem; }
.lb-pro-hint {
  margin-top: 1.25rem; padding: 1.15rem 1.25rem; font-size: 0.9rem;
  display: flex; gap: 0.85rem; align-items: flex-start;
  background: linear-gradient(135deg, rgba(168,85,247,0.06), rgba(99,102,241,0.04));
}
.lb-pro-hint__icon { font-size: 1.75rem; flex-shrink: 0; }
.lb-pro-hint h3 { margin: 0 0 0.35rem; font-size: 0.95rem; }
.lb-pro-hint p { margin: 0; color: var(--text-muted); line-height: 1.7; }
.home-lb-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.home-lb-preview .lb-row { padding: 0.6rem 0.75rem; }
.home-mag-section { background: linear-gradient(180deg, transparent, rgba(16,185,129,0.04)); }

.player-hero { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start; padding: 1.5rem; }
.player-hero__avatar { font-size: 3rem; }
.player-hero__body { flex: 1; min-width: 200px; }
.player-bio { margin-top: 0.5rem; color: var(--text-muted); }
.player-stats { display: flex; gap: 1rem; }
.player-stats div { text-align: center; padding: 0.5rem 1rem; background: var(--bg); border-radius: 10px; }
.player-stats strong { display: block; font-size: 1.2rem; }

/* Direct messages */
.dm-page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.dm-page-badge {
  background: #ef4444; color: #fff; font-size: 0.78rem; font-weight: 600;
  padding: 0.35rem 0.75rem; border-radius: 999px; white-space: nowrap;
}
.dm-layout {
  display: grid; grid-template-columns: minmax(240px, 300px) 1fr; gap: 1rem;
  min-height: clamp(420px, 60vh, 560px);
}
.dm-sidebar { padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.dm-sidebar__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.85rem 1rem; border-bottom: 1px solid var(--border); font-size: 0.9rem;
}
.dm-sidebar__count {
  background: rgba(99,102,241,0.12); color: var(--primary); font-size: 0.75rem; font-weight: 700;
  padding: 0.15rem 0.5rem; border-radius: 999px;
}
.dm-sidebar__list { flex: 1; overflow-y: auto; padding: 0.5rem; }
.dm-empty { text-align: center; padding: 2rem 1rem; }
.dm-empty__icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.dm-empty p { margin: 0 0 0.35rem; font-weight: 600; }
.dm-empty small { display: block; color: var(--text-muted); font-size: 0.8rem; line-height: 1.6; margin-bottom: 1rem; }
.dm-thread {
  display: flex; align-items: center; gap: 0.65rem; padding: 0.75rem;
  border-radius: 12px; text-decoration: none; color: inherit; border: 1px solid transparent;
  margin-bottom: 0.35rem; position: relative; transition: all 0.15s;
}
.dm-thread:hover, .dm-thread.is-active {
  background: rgba(99,102,241,0.08); border-color: rgba(99,102,241,0.2);
}
.dm-thread.is-active { box-shadow: inset 3px 0 0 var(--primary); }
.dm-thread__avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(168,85,247,0.12));
}
.dm-thread__body { flex: 1; min-width: 0; }
.dm-thread__top { display: flex; align-items: center; gap: 0.4rem; }
.dm-thread__top strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 0.9rem; }
.dm-thread small { display: block; color: var(--text-muted); font-size: 0.76rem; margin-top: 0.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-thread__badge {
  font-size: 0.65rem; font-weight: 700; background: #f59e0b; color: #fff;
  padding: 0.1rem 0.4rem; border-radius: 4px; flex-shrink: 0;
}
.dm-unread {
  position: absolute; left: 0.5rem; top: 50%; transform: translateY(-50%);
  background: #ef4444; color: #fff; font-size: 0.68rem; font-weight: 700;
  min-width: 1.25rem; height: 1.25rem; display: flex; align-items: center; justify-content: center;
  padding: 0 0.35rem; border-radius: 999px;
}
.dm-chat { display: flex; flex-direction: column; min-height: inherit; padding: 0; overflow: hidden; }
.dm-chat-empty, .dm-waiting, .dm-request { flex: 1; display: flex; flex-direction: column; }
.dm-chat-empty {
  align-items: center; justify-content: center; text-align: center; padding: 2rem;
  background: linear-gradient(180deg, rgba(99,102,241,0.04), transparent);
}
.dm-chat-empty__icon { font-size: 3rem; margin-bottom: 0.75rem; opacity: 0.85; }
.dm-chat-empty h2 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.dm-chat-empty p { color: var(--text-muted); max-width: 320px; margin: 0 0 1rem; font-size: 0.9rem; line-height: 1.7; }
.dm-back {
  display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.75rem 1rem;
  font-size: 0.85rem; color: var(--text-muted); text-decoration: none; border-bottom: 1px solid var(--border);
}
.dm-back:hover { color: var(--primary); }
.dm-back--inline { padding: 0; border: none; font-size: 1.1rem; margin-left: 0.25rem; }
.dm-request__card, .dm-waiting__inner {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 2rem 1.5rem;
}
.dm-request__avatar, .dm-chat__avatar {
  width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; font-weight: 700; background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(168,85,247,0.12));
  margin-bottom: 0.75rem;
}
.dm-request h2, .dm-waiting h2 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.dm-request p, .dm-waiting p { color: var(--text-muted); max-width: 340px; margin: 0; line-height: 1.7; }
.dm-request__actions { display: flex; flex-wrap: wrap; gap: 0.65rem; justify-content: center; margin-top: 1.25rem; }
.dm-waiting__pulse {
  width: 48px; height: 48px; border-radius: 50%; background: rgba(99,102,241,0.15);
  margin-bottom: 1rem; animation: dm-pulse 1.8s ease-in-out infinite;
}
@keyframes dm-pulse { 0%, 100% { transform: scale(1); opacity: 0.7; } 50% { transform: scale(1.08); opacity: 1; } }
.dm-chat__head {
  display: flex; justify-content: space-between; align-items: center; gap: 0.75rem;
  padding: 0.85rem 1rem; border-bottom: 1px solid var(--border); background: var(--bg-card);
}
.dm-chat__user { display: flex; align-items: center; gap: 0.65rem; min-width: 0; }
.dm-chat__user strong { display: block; font-size: 0.95rem; }
.dm-chat__user small { color: var(--text-muted); font-size: 0.75rem; }
.dm-messages {
  flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.65rem;
  background: linear-gradient(180deg, rgba(99,102,241,0.03), transparent 120px);
}
.dm-messages__hint {
  text-align: center; color: var(--text-muted); font-size: 0.85rem; padding: 1rem;
  margin: auto 0;
}
.dm-msg {
  max-width: min(82%, 420px); padding: 0.65rem 0.9rem; border-radius: 16px 16px 16px 4px;
  background: var(--bg-card); border: 1px solid var(--border); align-self: flex-start;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.dm-msg--mine {
  align-self: flex-end; border-radius: 16px 16px 4px 16px;
  background: linear-gradient(135deg, rgba(99,102,241,0.14), rgba(124,58,237,0.1));
  border-color: rgba(99,102,241,0.25);
}
.dm-msg__text { display: block; line-height: 1.65; word-break: break-word; }
.dm-msg__time { display: block; font-size: 0.68rem; color: var(--text-muted); margin-top: 0.25rem; text-align: left; }
.dm-msg--mine .dm-msg__time { text-align: right; }
.dm-compose {
  display: flex; gap: 0.5rem; padding: 0.85rem 1rem; border-top: 1px solid var(--border);
  background: var(--bg-card);
}
.dm-compose input {
  flex: 1; padding: 0.7rem 1rem; border: 1px solid var(--border); border-radius: 12px;
  font-family: inherit; font-size: 0.92rem; background: var(--bg);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.dm-compose input:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
.dm-compose__send {
  width: 44px; height: 44px; padding: 0; border-radius: 12px; font-size: 1.1rem; flex-shrink: 0;
}
@media (max-width: 768px) {
  .dm-layout { grid-template-columns: 1fr; min-height: auto; }
  .dm-layout .dm-sidebar { display: block; min-height: 280px; }
  .dm-layout .dm-chat { display: none; min-height: 420px; }
  .dm-layout.dm-layout--open .dm-sidebar { display: none; }
  .dm-layout.dm-layout--open .dm-chat { display: flex; }
  .lb-podium { grid-template-columns: 1fr; gap: 0.65rem; min-height: auto; }
  .lb-podium__card, .lb-podium__card--1, .lb-podium__card--2, .lb-podium__card--3 { min-height: auto; }
  .lb-podium__card--1 { order: -1; }
  .lb-row__info small { display: none; }
  .lb-my-score { flex-direction: column; align-items: stretch; text-align: center; }
  .lb-my-score__nums { justify-content: center; }
}

.guest-rewards-hero {
  padding: 3rem 0 3rem;
  background: linear-gradient(135deg, #4f46e5, #7c3aed 55%, #a855f7);
  color: #fff; text-align: center; overflow: visible;
}
.guest-rewards-hero__inner { position: relative; z-index: 1; }
.guest-rewards-hero h1 { font-size: clamp(1.5rem, 4vw, 2.2rem); margin-bottom: 0.5rem; }
.guest-rewards-hero__sub { opacity: 0.92; max-width: 520px; margin: 0 auto 1.5rem; font-size: 0.95rem; }
.guest-rewards-coins { position: absolute; inset: -1rem -0.5rem; pointer-events: none; overflow: visible; }
.guest-coin { position: absolute; font-size: 2rem; opacity: 0.35; animation: float-coin 4s ease-in-out infinite; line-height: 1; }
.guest-coin--1 { top: 8%; right: 6%; }
.guest-coin--2 { bottom: 8%; left: 6%; animation-delay: 1s; }
.guest-coin--3 { top: 18%; left: 18%; animation-delay: 2s; font-size: 1.5rem; }
@keyframes float-coin { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.guest-rewards-treasure {
  position: relative; max-width: 280px; margin: 0 auto 1.5rem; padding: 1.75rem 1rem;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
  border-radius: 20px; backdrop-filter: blur(8px);
}
.guest-rewards-treasure__glow {
  position: absolute; inset: -20%; background: radial-gradient(circle, rgba(251,191,36,0.35), transparent 70%);
  animation: treasure-glow 3s ease-in-out infinite;
}
@keyframes treasure-glow { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }
.guest-rewards-treasure__amount {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-size: clamp(2.5rem, 8vw, 3.5rem); font-weight: 800; line-height: 1;
}
.guest-rewards-treasure__coin {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: clamp(2.5rem, 8vw, 3.25rem); height: clamp(2.5rem, 8vw, 3.25rem);
}
.guest-rewards-treasure__coin .coin-icon { width: 100% !important; height: 100% !important; }
.guest-rewards-treasure__label { position: relative; font-size: 0.88rem; opacity: 0.9; margin-top: 0.35rem; }
.guest-rewards-treasure__lock { position: relative; margin-top: 0.75rem; font-size: 0.85rem; background: rgba(0,0,0,0.2); padding: 0.4rem 0.75rem; border-radius: 999px; display: inline-block; }
.guest-rewards-stats {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-bottom: 1.5rem;
}
.guest-rewards-stat {
  min-width: 100px; padding: 0.75rem 1rem; background: rgba(255,255,255,0.1);
  border-radius: 12px; border: 1px solid rgba(255,255,255,0.15);
}
.guest-rewards-stat__num { display: block; font-size: 1.35rem; font-weight: 700; }
.guest-rewards-stat__lbl { font-size: 0.75rem; opacity: 0.85; }
.guest-rewards-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.guest-rewards-cta__btn { box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.guest-perks-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.guest-perk-card { padding: 1.25rem; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-card); text-align: center; }
.guest-perk-card__icon {
  font-size: 2rem; display: flex; align-items: center; justify-content: center;
  min-height: 2.75rem; margin: 0 auto 0.5rem; line-height: 1; overflow: visible;
}
.guest-perk-card__icon .coin-icon { width: 2.25rem !important; height: 2.25rem !important; }
.guest-perk-card h3 { font-size: 0.95rem; margin-bottom: 0.35rem; }
.guest-perk-card p { font-size: 0.8rem; color: var(--text-muted); margin: 0; line-height: 1.6; }

@media (max-width: 900px) {
  .plans-compare-grid { grid-template-columns: 1fr; }
  .plan-card--featured { transform: none; }
  .guest-perks-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .guest-perks-grid { grid-template-columns: 1fr; }
  .guest-rewards-cta { flex-direction: column; align-items: stretch; }
  .question-lock-box { max-width: 100%; margin: 0 0.5rem; }
}
.q-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}
.q-star {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-card);
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: all 0.2s;
}
.q-star:hover { border-color: #f59e0b; color: #d97706; }
.q-star--on { border-color: #f59e0b; background: rgba(245,158,11,0.12); color: #d97706; }
.q-star--on .q-star__icon { color: #f59e0b; text-shadow: 0 0 8px rgba(245,158,11,0.5); }
.q-star__icon { font-size: 1.15rem; line-height: 1; }
.hl-filters { margin-bottom: 1.25rem; }
.hl-filters label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 0.35rem; color: var(--text-muted); }
.hl-filters select {
  width: 100%; padding: 0.65rem 0.75rem; border: 1px solid var(--border);
  border-radius: 10px; font-family: var(--font); background: var(--bg); color: var(--text);
}

.hl-page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 0; }
.hl-page-head h1 { margin: 0 0 0.35rem; font-size: clamp(1.2rem, 4vw, 1.55rem); }
.hl-page-sub { color: var(--text-muted); font-size: 0.9rem; margin: 0; line-height: 1.65; }
.hl-list { display: flex; flex-direction: column; gap: 1rem; }
.hl-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow);
}
.hl-card__meta { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.65rem; }
.hl-card__question { font-size: 0.9rem; color: var(--text-muted); margin: 0 0 0.75rem; }
.hl-card__quote {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border-right: 4px solid var(--primary);
  font-size: 0.95rem;
  line-height: 1.8;
  background: var(--hl, #fef08a);
}
.hl-card__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 0.75rem; }
.hl-empty { text-align: center; padding: 3rem 1.5rem; }
.hl-empty__icon { font-size: 3rem; margin-bottom: 0.5rem; }

.profile-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem !important;
  cursor: default;
  margin-bottom: 0;
}
.profile-hero:hover {
  transform: none;
  box-shadow: var(--shadow);
  border-color: var(--border);
}
.profile-page .profile-panel,
.profile-page .profile-hero,
.profile-page .profile-stat-card:not(.profile-stat-card--link) {
  cursor: default;
}
.profile-page .profile-panel:hover,
.profile-page .profile-hero:hover,
.profile-page .profile-stat-card:not(.profile-stat-card--link):hover {
  transform: none;
  box-shadow: var(--shadow);
  border-color: var(--border);
}
.profile-main {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.profile-flash { margin: 0; }
.profile-hero__eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.profile-hero__title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.25rem, 4vw, 1.6rem);
  line-height: 1.3;
}
.profile-hero__phone {
  margin: 0 0 0.65rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.profile-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.profile-tag {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
}
.profile-tag--pro {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.12));
  color: #b45309;
}
.profile-stats { margin: 0; }
.profile-stat-card {
  text-align: center;
}
.profile-stat-card--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.profile-stat-card__num {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
}
.profile-stat-card__num--ok { color: var(--success); }
.profile-stat-card__num--star { color: #f59e0b; }
.profile-stat-card small {
  display: block;
  color: var(--text-muted);
  margin-top: 0.35rem;
  font-size: 0.78rem;
}
.profile-panel {
  padding: 1.35rem !important;
}
.profile-panel__head {
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}
.profile-panel__head h2 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--text);
}
.profile-panel__head p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.profile-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.profile-form--grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
}
.profile-field {
  display: block;
  min-width: 0;
}
.profile-field > span {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.profile-field input,
.profile-field select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--text);
  box-sizing: border-box;
}
.profile-field input:focus,
.profile-field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.profile-page .pin-alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-bottom: 0.85rem;
}
.profile-page .pin-alert--error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #dc2626;
}
.profile-page .pin-alert--success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #16a34a;
}
.profile-hero__coins {
  text-align: center;
  padding: 0.85rem 1.15rem;
  background: rgba(251, 191, 36, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(245, 158, 11, 0.25);
  min-width: 110px;
}
.profile-hero__coins strong {
  display: block;
  font-size: 1.5rem;
  color: #d97706;
  margin-top: 0.15rem;
}
.profile-hero__coins span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.profile-hero__coins small {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}
.profile-hero__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 800;
}
.profile-hero__info { flex: 1; min-width: 180px; }
.profile-hero__info h2 { margin: 0 0 0.25rem; }
.profile-hero__info p { margin: 0.15rem 0; color: var(--text-muted); font-size: 0.9rem; }

.dashboard-grid--profile {
  align-items: start;
}

.stats-bar {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.stats-bar span { padding: 0.2rem 0.5rem; background: var(--bg); border-radius: 6px; }

/* Dashboard */
.dashboard-grid {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
}
@media (max-width: 768px) {
  .dashboard-grid { grid-template-columns: 1fr; }
}

.sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  height: fit-content;
  position: sticky;
  top: 80px;
  min-width: 0;
}
.dashboard-main { min-width: 0; overflow-x: hidden; }
.dash-page {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.dash-page__head {
  margin: 0;
}
.dash-page__head h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.25rem, 4vw, 1.65rem);
}
.dash-page__head .page-sub {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.dash-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}
.dash-stat-card {
  text-align: center;
  cursor: default;
}
.dash-stat-card__num {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}
.dash-stat-card__num--primary { color: var(--primary); }
.dash-stat-card__num--gold { color: #d97706; display: flex; align-items: center; justify-content: center; gap: 0.35rem; flex-wrap: wrap; }
.dash-stat-card__num--ok { color: var(--success); }
.dash-stat-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.dash-panel {
  padding: 1.25rem !important;
  cursor: default;
}
.dash-panel__title {
  margin: 0 0 1rem;
  font-size: 1rem;
}
.dash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.dash-filters {
  padding: 1rem !important;
  cursor: default;
}
.dash-filters__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.85rem;
}
.dash-field label,
.dash-field > span {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.dash-field input,
.dash-field select,
.dash-field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.92rem;
  background: var(--bg);
  color: var(--text);
  box-sizing: border-box;
}
.dash-field textarea {
  min-height: 100px;
  resize: vertical;
}
.dash-field input:focus,
.dash-field select:focus,
.dash-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}
.dash-promo {
  border-right: 4px solid #f59e0b;
  padding: 1rem 1.15rem !important;
  cursor: default;
}
.dash-promo p { margin: 0; line-height: 1.7; }
.dash-report-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
  cursor: default;
}
.dash-history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.85rem 1rem !important;
  margin-bottom: 0.5rem;
  cursor: default;
}
.dash-history-item code {
  background: rgba(99, 102, 241, 0.08);
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
}
.dashboard-page .card:not(.card-link):not(.shop-card):not(.profile-stat-card):not(.profile-stat-card--link):not(.dash-stat-card):hover,
.dashboard-page .dash-panel:hover,
.dashboard-page .dash-filters:hover,
.dashboard-page .dash-promo:hover,
.dashboard-page .dash-report-row:hover,
.dashboard-page .dash-history-item:hover,
.dashboard-page .note-card:hover {
  transform: none;
  box-shadow: var(--shadow);
  border-color: var(--border);
}
.dashboard-page .card:not(.card-link):not(.shop-card):not(.profile-stat-card):not(.profile-stat-card--link):not(.dash-stat-card) {
  cursor: default;
}
.dashboard-page .dash-flash { margin: 0; }
.page-main { padding: 1.5rem 0 2rem; min-width: 0; max-width: 100%; }
.page-head { margin-bottom: 1.25rem; }
.page-head--qbank {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 0.75rem;
}
.qbank-back-hub { flex-shrink: 0; white-space: nowrap; }
.page-head h1 { margin: 0 0 0.35rem; font-size: clamp(1.25rem, 4vw, 1.75rem); }
.page-sub { margin: 0; color: var(--text-muted); font-size: 0.92rem; line-height: 1.7; }
.questions-list, .qbank-page, .qbank-hub { max-width: 100%; overflow-x: hidden; }

/* QBank hub — مرور پایه / رشته / درس / مبحث */
.qbank-crumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.5rem;
  font-size: 0.85rem; margin-bottom: 1.25rem; color: var(--text-muted);
}
.qbank-crumb a { color: var(--primary); text-decoration: none; }
.qbank-crumb a:hover { text-decoration: underline; }
.qbank-crumb__sep { opacity: 0.45; }
.qbank-crumb__current { color: var(--text); font-weight: 600; }

.qbank-hub__title {
  font-size: clamp(1rem, 3vw, 1.2rem); font-weight: 700; margin: 0 0 1rem;
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
}
.qbank-hub__section { margin-bottom: 2rem; }
.qbank-hub__head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem; margin-bottom: 1rem;
}
.qbank-hub__stat { font-size: 0.85rem; color: var(--text-muted); background: var(--bg-card); padding: 0.35rem 0.75rem; border-radius: 20px; border: 1px solid var(--border); }
.qbank-hub__empty { color: var(--text-muted); font-size: 0.9rem; }
.qbank-hub__quick { margin-top: 1.25rem; }

.qbank-type-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-bottom: 0.5rem;
}
@media (max-width: 480px) { .qbank-type-grid { grid-template-columns: 1fr; } }
.qbank-type-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 1rem 0.75rem; border-radius: var(--radius); border: 2px solid var(--border);
  background: var(--bg-card); text-decoration: none; color: inherit; transition: all 0.2s;
  min-height: 100px; justify-content: center;
}
.qbank-type-card:hover, .qbank-type-card.is-active {
  border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); color: inherit;
}
.qbank-type-card__icon { font-size: 2rem; line-height: 1; margin-bottom: 0.35rem; }
.qbank-type-card__label { font-weight: 700; font-size: 0.92rem; }
.qbank-type-card__badge { font-size: 0.72rem; color: var(--primary); margin-top: 0.35rem; font-weight: 600; }

.qbank-grade-block { margin-bottom: 1.75rem; }
.qbank-grade-block__title {
  font-size: 1rem; font-weight: 700; margin: 0 0 0.85rem; display: flex; align-items: center; gap: 0.5rem;
  padding-bottom: 0.5rem; border-bottom: 2px solid var(--border);
}
.qbank-grade-block__icon { font-size: 1.25rem; }

.qbank-track-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem;
}
@media (max-width: 900px) { .qbank-track-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 380px) { .qbank-track-grid { grid-template-columns: 1fr; } }

.qbank-track-card {
  --track-color: var(--primary);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 1.1rem 0.65rem; border-radius: var(--radius);
  border: 2px solid color-mix(in srgb, var(--track-color) 35%, var(--border));
  background: linear-gradient(145deg, color-mix(in srgb, var(--track-color) 8%, var(--bg-card)), var(--bg-card));
  text-decoration: none; color: inherit; transition: all 0.22s;
}
.qbank-track-card:hover {
  border-color: var(--track-color); transform: translateY(-3px);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--track-color) 25%, transparent); color: inherit;
}
.qbank-track-card__icon { font-size: 2.25rem; margin-bottom: 0.35rem; }
.qbank-track-card__label { font-weight: 800; font-size: 0.95rem; }
.qbank-track-card__sub { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.15rem; }

.qbank-subject-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 0.75rem;
}
.qbank-subject-card {
  display: flex; align-items: center; gap: 0.85rem; padding: 0.9rem 1rem;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card);
  text-decoration: none; color: inherit; transition: all 0.2s; min-width: 0;
}
.qbank-subject-card:hover {
  border-color: var(--primary-light); box-shadow: var(--shadow); transform: translateX(-3px); color: inherit;
}
.qbank-subject-card__icon {
  flex-shrink: 0; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; border-radius: 12px; background: rgba(99,102,241,0.1);
}
.qbank-subject-card__body { flex: 1; min-width: 0; }
.qbank-subject-card__body strong { display: block; font-size: 0.92rem; line-height: 1.4; }
.qbank-subject-card__body small { color: var(--text-muted); font-size: 0.78rem; }
.qbank-subject-card__arrow { color: var(--text-muted); font-size: 1.25rem; flex-shrink: 0; }

.qbank-topic-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 0.6rem;
}
.qbank-topic-card {
  display: flex; flex-direction: column; gap: 0.25rem; padding: 0.75rem 0.85rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg);
  text-decoration: none; color: inherit; transition: all 0.18s; min-height: 64px;
}
.qbank-topic-card:hover {
  background: var(--bg-card); border-color: var(--primary); color: inherit;
  box-shadow: var(--shadow);
}
.qbank-topic-card__name { font-size: 0.85rem; font-weight: 600; line-height: 1.45; }
.qbank-topic-card__meta { font-size: 0.72rem; color: var(--text-muted); }

.qbank-track-compact { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.qbank-track-pill {
  --track-color: var(--primary);
  display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.45rem 0.85rem;
  border-radius: 999px; border: 1px solid color-mix(in srgb, var(--track-color) 40%, var(--border));
  background: color-mix(in srgb, var(--track-color) 6%, var(--bg-card));
  text-decoration: none; color: inherit; font-size: 0.82rem; font-weight: 600;
}
.qbank-track-pill:hover { border-color: var(--track-color); color: inherit; }
.content-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.card-link { text-decoration: none; color: inherit; display: block; transition: transform 0.2s, box-shadow 0.2s; }
.card-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: inherit; }
.content-article { padding: 1.5rem; margin-bottom: 1.5rem; }
.content-article h1 { font-size: clamp(1.2rem, 4vw, 1.6rem); margin: 0.75rem 0 1rem; }
.rich-content { line-height: 1.9; overflow-wrap: anywhere; word-break: break-word; }
.pro-gate { text-align: center; padding: 2rem 1rem; border: 2px dashed var(--border); border-radius: var(--radius); margin-top: 1rem; }
.pro-gate__icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.note-card { margin-bottom: 1rem; }
.note-card__head { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-bottom: 0.5rem; }
.note-card__preview { color: var(--text-muted); font-size: 0.88rem; margin: 0 0 0.75rem; }
.note-card__body { background: var(--bg); padding: 0.85rem; border-radius: var(--radius-sm); line-height: 1.8; }
.report-row { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: center; margin-bottom: 0.5rem; }
.sidebar a {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 500;
  margin-bottom: 0.25rem;
}
.sidebar a:hover, .sidebar a.active {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
}

.progress-ring {
  width: 120px; height: 120px;
  margin: 0 auto 1rem;
}
.chart-bar {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  height: 150px;
  padding: 1rem 0;
}
.chart-bar .bar {
  flex: 1;
  background: var(--gradient);
  border-radius: 6px 6px 0 0;
  min-height: 10px;
  position: relative;
}
.chart-bar .bar span {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Login */
.login-box {
  max-width: 400px;
  margin: 4rem auto;
  padding: 2.5rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.login-box h2 { text-align: center; margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; font-size: 0.9rem; }
.form-group input { width: 100%; }
.otp-inputs { display: flex; gap: 0.5rem; justify-content: center; }
.otp-inputs input { width: 48px; height: 52px; text-align: center; font-size: 1.25rem; font-weight: 700; }

/* Footer */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: 3rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-links { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--primary); }
.footer-enamad {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0.75rem auto 1.25rem;
  padding: 0 1rem;
  box-sizing: border-box;
}
.footer-enamad a {
  display: inline-block;
  margin: 0 auto;
  width: min(100%, 150px);
  max-width: 150px;
  line-height: 0;
}
.footer-enamad img {
  width: 100%;
  height: auto;
  max-height: clamp(90px, 22vw, 130px);
  display: block;
  object-fit: contain;
  margin: 0 auto;
}

/* App download */
.app-page { padding-bottom: 2rem; }
.app-hero { text-align: center; padding: 2rem 1.5rem; margin-bottom: 1rem; }
.app-hero__icon { font-size: 3rem; margin-bottom: 0.5rem; }
.app-hero h1 { margin: 0 0 0.5rem; }
.app-hero p { color: var(--text-muted); margin: 0; }
.app-hero__ver {
  display: inline-block; margin-top: 0.75rem; font-size: 0.8rem; font-weight: 700;
  background: rgba(99,102,241,0.12); color: var(--primary); padding: 0.25rem 0.65rem; border-radius: 999px;
}
.app-download-box { text-align: center; padding: 1.5rem; margin-bottom: 1rem; }
.app-download-box__meta {
  display: flex; justify-content: center; gap: 1.25rem; flex-wrap: wrap;
  color: var(--text-muted); font-size: 0.88rem; margin-bottom: 1rem;
}
.app-download-btn { min-width: min(100%, 280px); }
.app-download-hint { margin: 0.75rem 0 0; font-size: 0.82rem; color: var(--text-muted); }
.app-install-steps { padding: 1.25rem 1.5rem; margin-bottom: 1rem; }
.app-install-steps h2 { margin: 0 0 0.75rem; font-size: 1rem; }
.app-install-steps ol { margin: 0; padding-right: 1.25rem; line-height: 2; color: var(--text-muted); }
.app-soon-box { text-align: center; padding: 2rem 1.5rem; margin-bottom: 1rem; }
.app-soon-box__icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.app-soon-box__hint { margin-top: 1rem; font-size: 0.9rem; color: var(--text-muted); }
.app-features { padding: 1.25rem 1.5rem; }
.app-features h2 { margin: 0 0 1rem; font-size: 1rem; }
.app-features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0.75rem;
}
.app-features-grid div {
  text-align: center; padding: 0.85rem; border: 1px solid var(--border); border-radius: 12px; background: var(--bg);
}
.app-features-grid span { font-size: 1.5rem; display: block; margin-bottom: 0.35rem; }
.app-features-grid strong { display: block; font-size: 0.88rem; }
.app-features-grid small { color: var(--text-muted); font-size: 0.75rem; }

/* Premium */
.premium-hero {
  background: var(--gradient-warm);
  color: white;
  padding: 3rem 0;
  text-align: center;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.price-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.25s;
}
.price-card.featured {
  border-color: var(--accent);
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}
.price-card .price { font-size: 2rem; font-weight: 800; color: var(--primary); }
.price-card ul { list-style: none; text-align: right; margin: 1.5rem 0; }
.price-card li { padding: 0.4rem 0; font-size: 0.9rem; color: var(--text-muted); }
.price-card li::before { content: '✓ '; color: var(--success); font-weight: 700; }

/* Calendar */
.calendar-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.calendar-item .date { font-weight: 700; color: var(--primary); }

/* Toast — پیام‌های شناور */
.toast {
  position: fixed;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  min-width: min(92vw, 360px);
  max-width: 92vw;
  padding: 0.85rem 1.25rem;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 9999;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s;
  opacity: 0;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast--info { background: linear-gradient(135deg, #4f46e5, #6366f1); color: #fff; }
.toast--success { background: linear-gradient(135deg, #15803d, #22c55e); color: #fff; }
.toast--error { background: linear-gradient(135deg, #b91c1c, #ef4444); color: #fff; }
.toast--warn { background: linear-gradient(135deg, #d97706, #f59e0b); color: #fff; }
.toast__msg { display: block; line-height: 1.5; }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 0.45rem 0.5rem calc(0.45rem + env(safe-area-inset-bottom, 0px));
  z-index: 100;
  justify-content: space-around;
  box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.06);
}
.mobile-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.68rem;
  color: var(--text-muted);
  padding: 0.35rem 0.5rem;
  min-width: 0;
  flex: 1;
  max-width: 5rem;
}
.mobile-nav a.active { color: var(--primary); }
.mobile-nav .icon { font-size: 1.2rem; line-height: 1; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-nav { display: flex; }
  body:has(.mobile-nav) {
    padding-bottom: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom, 0px));
  }
  .footer {
    margin-bottom: 0.25rem;
    padding-bottom: 1.25rem;
  }
  .section:last-of-type,
  .section--bottom-safe {
    padding-bottom: 1.5rem;
  }
  .pricing-grid {
    padding-bottom: 0.5rem;
  }
  .toast {
    bottom: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom, 0px) + 0.75rem);
  }
  .page-main { padding: 1rem 0 1.5rem; }
  .hero { padding: 2rem 0 2.5rem; }
  .hero h1 { font-size: 1.5rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 2rem 0; }
  .section-title { font-size: 1.35rem; }
  .card-grid { grid-template-columns: 1fr; }
  .menu-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .menu-item { padding: 1rem 0.5rem; }
  .menu-item h3 { font-size: 0.85rem; }
  .filters { flex-direction: column; align-items: stretch; }
  .filters select, .filters input { width: 100%; min-width: 0; }
  .question-card { padding: 1rem; margin-bottom: 1rem; overflow: visible; }
  .question-text { font-size: 1rem; margin-bottom: 1rem; overflow: visible; }
  .question-text img, .exp-body img { max-width: 100%; margin-inline: auto; }
  .img-lightbox__img { max-width: 100vw; max-height: 85vh; }
  .footer-enamad a { max-width: min(100%, 130px); }
  .footer-enamad img { max-height: 100px; }
  .option { padding: 0.85rem 0.9rem; }
  .profile-hero { flex-direction: column; text-align: center; align-items: center; }
  .profile-hero__info { text-align: center; }
  .profile-hero__tags { justify-content: center; }
  .profile-hero__coins { width: 100%; max-width: 220px; }
  .exp-head { flex-direction: column; align-items: flex-start; }
  .dashboard-grid--profile .sidebar--nav-only {
    padding: 0.65rem;
    margin-bottom: 0;
  }
  .sidebar { position: static; order: -1; padding: 0.75rem; }
  .sidebar-nav-scroll {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.35rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
    scrollbar-width: thin;
  }
  .sidebar-nav-scroll a {
    white-space: nowrap;
    flex: 0 0 auto;
    font-size: 0.82rem;
    padding: 0.55rem 0.75rem;
    margin: 0;
  }
  .sidebar-quick-form { display: none; }
  .sidebar-profile {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: start;
    text-align: right;
    padding-bottom: 0.75rem;
    margin-bottom: 0.65rem;
  }
  .sidebar-profile__avatar {
    font-size: 1.75rem;
    margin: 0;
    grid-row: 1 / span 2;
  }
  .sidebar-profile__body { min-width: 0; }
  .sidebar-profile__name { font-size: 0.9rem; margin-bottom: 0.35rem; }
  .sidebar-profile__meta { justify-content: flex-start; }
  .sidebar-profile__stats {
    grid-column: 2;
    justify-content: flex-start;
    gap: 0.5rem 0.75rem;
  }
  .sidebar-nav-label { display: none; }
  .dashboard-grid { padding: 1rem 0; gap: 1rem; }
  .calendar-item { flex-direction: column; align-items: flex-start; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .container { padding: 0 1rem; }
  .header-inner { flex-wrap: wrap; }
  .logo { font-size: 1.25rem; }
}

@media (max-width: 400px) {
  .menu-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 926px) and (orientation: landscape) and (max-height: 520px) {
  :root { --mobile-nav-h: 54px; }
  .mobile-nav {
    padding: 0.2rem 0.35rem calc(0.2rem + env(safe-area-inset-bottom, 0px));
  }
  .mobile-nav a {
    flex-direction: row;
    gap: 0.25rem;
    font-size: 0.62rem;
    padding: 0.25rem 0.35rem;
    max-width: none;
  }
  .mobile-nav .icon { font-size: 0.95rem; }
  .premium-hero { padding: 1.25rem 0; }
  .premium-hero h1 { font-size: 1.25rem; }
  .section { padding: 1.25rem 0; }
  .price-card { padding: 1.25rem 1rem; }
  .header { position: sticky; top: 0; z-index: 90; }
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp 0.5s ease forwards; }
.animate-in:nth-child(2) { animation-delay: 0.1s; }
.animate-in:nth-child(3) { animation-delay: 0.2s; }
.animate-in:nth-child(4) { animation-delay: 0.3s; }

.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
}
.empty-state .icon { font-size: 3rem; margin-bottom: 1rem; }
