@import url("tokens.css");
@import url("auth.css");
@import url("components.css");

/* ═══════════════════════════════════════════════════════════════════
   GUSHKHARASH — shared visual language
   Editorial dark studio: warm paper ink, deep charcoal, crimson light.
   Loaded after each page stylesheet so tokens + primitives win.
   ═══════════════════════════════════════════════════════════════════ */



*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  overflow-x: clip;
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 620px at 88% -12%, rgba(190, 18, 60, 0.16), transparent 62%),
    radial-gradient(900px 560px at -8% 108%, rgba(56, 189, 248, 0.055), transparent 62%),
    radial-gradient(700px 440px at 48% 0%, rgba(255, 255, 255, 0.035), transparent 65%);
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: rgba(225, 29, 72, 0.4); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: #2b2b33;
  border: 2px solid var(--bg);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover { background: #3b3b46; }

h1, h2, h3, h4, h5, h6 {
  color: var(--heading);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.2px;
}

a { color: inherit; }
img { max-width: 100%; }
button, input, select, textarea { font-family: inherit; }
code, kbd { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; }

/* ═══ Header ═══════════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 300;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  padding: 0 clamp(16px, 4vw, 54px);
  background: rgba(7, 7, 8, 0.72);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
}

.logo, .logo-sm {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  letter-spacing: 3px;
  color: var(--heading);
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
}
.logo .dot, .logo-sm .dot { color: var(--accent); }

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 13px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.16s;
}
.back-btn:hover { color: var(--heading); border-color: var(--border-2); background: var(--surface2); }

.hd-right, .header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
}

.lang-btn {
  height: 38px;
  min-width: 44px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  cursor: pointer;
  transition: all 0.16s;
}
.lang-btn:hover { color: var(--heading); border-color: var(--border-2); background: var(--surface2); }

.avatar-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-2);
  background: linear-gradient(135deg, #26262f, #131317);
  color: var(--muted);
  font-size: 14px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.16s;
}
.avatar-btn:hover { color: var(--heading); border-color: var(--accent-line); box-shadow: 0 0 0 4px var(--accent-d); }
.avatar-btn.logged-in { color: #fff; border-color: var(--accent-line); background: linear-gradient(135deg, #be123c, #701028); }

.search-static { position: relative; flex: 0 1 440px; min-width: 180px; }
.search-static-input {
  width: 100%;
  height: 42px;
  padding: 0 42px 0 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.035);
  color: var(--heading);
  font-size: 12.5px;
  outline: none;
  transition: border-color 0.16s, background 0.16s, box-shadow 0.16s;
}
html[dir="ltr"] .search-static-input { padding: 0 16px 0 42px; }
.search-static-input::placeholder { color: var(--muted-2); }
.search-static-input:focus { border-color: var(--accent-line); background: rgba(255, 255, 255, 0.055); box-shadow: var(--ring); }
.search-static-icon {
  position: absolute;
  top: 50%;
  inset-inline-end: 15px;
  transform: translateY(-50%);
  color: var(--muted-2);
  font-size: 12px;
  pointer-events: none;
}
html[dir="ltr"] .search-static-icon { inset-inline-end: auto; inset-inline-start: 15px; }

/* ═══ Page shells ══════════════════════════════════════════════════ */
.shop-wrap, .blog-wrap, .account-wrap, .sub-wrap, .download-wrap, .gf-wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 56px) clamp(16px, 3vw, 32px) 72px;
}

.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 12px;
  letter-spacing: 2.4px;
  color: var(--accent-3);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.page-eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--accent);
}

.page-title {
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.1;
  letter-spacing: -1.2px;
  color: var(--heading);
  font-weight: 800;
}
.page-sub {
  margin-top: 10px;
  max-width: 64ch;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.9;
}

.sec-label {
  color: var(--muted-2);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin: 34px 0 12px;
}

.section-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 44px 0;
}

/* ═══ Buttons ═════════════════════════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid rgba(251, 113, 133, 0.35);
  border-radius: 12px;
  background: linear-gradient(135deg, #d61f4b, #8c1230);
  color: #fff;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(159, 18, 57, 0.32);
  transition: transform 0.16s, filter 0.16s, box-shadow 0.16s;
}
.btn-primary:hover { filter: brightness(1.07); transform: translateY(-1px); box-shadow: 0 14px 34px rgba(159, 18, 57, 0.42); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid var(--border-2);
  background: rgba(255, 255, 255, 0.035);
  color: var(--heading);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.16s;
}
.btn-ghost:hover { background: var(--surface2); border-color: var(--border-3); }

/* ═══ Cards ═══════════════════════════════════════════════════════ */
.shop-card, .blog-card, .sub-card, .profile-card, .pwd-section,
.danger-zone, .pay-card, .download-card, .order-card {
  background: linear-gradient(180deg, #141419 0%, #0f0f13 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
}

.shop-card { transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; }
.shop-card:hover { transform: translateY(-3px); border-color: var(--accent-line); box-shadow: var(--shadow); }

.shop-card-stripe { height: 2px; background: linear-gradient(90deg, var(--accent), transparent 80%); }
.shop-card-icon-wrap { background: radial-gradient(120% 100% at 50% 0%, rgba(225, 29, 72, 0.14), transparent 70%); }
.shop-card-icon-wrap i { color: var(--accent-3); }
.shop-card-title { color: var(--heading); font-weight: 700; }
.shop-card-desc { color: var(--muted); }
.shop-card-price { color: var(--heading); font-family: 'Bebas Neue', sans-serif; letter-spacing: 1.2px; }
.shop-card-btn {
  background: linear-gradient(135deg, #d61f4b, #8c1230);
  border: 1px solid rgba(251, 113, 133, 0.35);
  color: #fff;
  border-radius: 9px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(159, 18, 57, 0.25);
}
.shop-card:hover .shop-card-btn { filter: brightness(1.08); }
.shop-card-btn:hover { filter: brightness(1.08); }

.book-online-teaser {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 11px;
  border: 1px solid rgba(251, 113, 133, 0.4);
  background: linear-gradient(135deg, #d61f4b, #8c1230);
  color: #fff;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(159, 18, 57, 0.28);
  transition: filter 0.16s, transform 0.16s;
}
.book-online-teaser:hover { filter: brightness(1.08); transform: translateY(-1px); }
.book-online-teaser i { font-size: 11px; }
.book-about-actions { margin-top: 6px; }

/* ═══ Forms ═══════════════════════════════════════════════════════ */
.form-input, .form-select, .form-textarea, .pay-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--heading);
  font-size: 13px;
  outline: none;
  transition: border-color 0.16s, box-shadow 0.16s, background 0.16s;
}
.form-input::placeholder { color: var(--muted-2); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent-line);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: var(--ring);
}
.form-label { color: var(--muted); font-size: 11px; font-weight: 600; }

/* ═══ Footer (overrides the injected component) ═══════════════════ */
.sf-footer {
  background:
    radial-gradient(700px 280px at 80% 0%, rgba(190, 18, 60, 0.1), transparent 65%),
    #08080a !important;
  border-top: 1px solid var(--border) !important;
  padding: 54px clamp(18px, 4vw, 54px) 26px !important;
}
.sf-footer-inner { max-width: var(--maxw) !important; grid-template-columns: 1.1fr 1.4fr !important; gap: clamp(28px, 5vw, 70px) !important; }
.sf-footer-logo { font-size: 26px !important; letter-spacing: 3px !important; color: var(--heading) !important; }
.sf-footer-tagline { color: var(--muted) !important; font-size: 12.5px !important; max-width: 280px !important; line-height: 1.9 !important; }
.sf-footer-about-heading {
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 14px !important;
  letter-spacing: 2px !important;
  color: var(--heading) !important;
  margin-bottom: 12px !important;
}
.sf-footer-about-text { color: var(--muted) !important; font-size: 12.5px !important; line-height: 2 !important; max-width: 60ch; }
.sf-footer-about-text p { margin-bottom: 8px !important; }
.sf-footer-links a { color: var(--heading) !important; font-size: 12px !important; padding-bottom: 2px; border-bottom: 1px solid var(--border-2) !important; }
.sf-footer-links a:hover { color: var(--accent-3) !important; border-color: var(--accent) !important; }
.sf-footer-bottom {
  max-width: var(--maxw) !important;
  color: var(--muted-2) !important;
  font-size: 10.5px !important;
  border-top: 1px solid var(--border) !important;
  margin-top: 34px !important;
  padding-top: 18px !important;
}

/* ═══ Motion ═════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ═══ Shared bits ═════════════════════════════════════════════════ */
.gk-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
}
.gk-chip svg, .gk-chip i { color: var(--accent-3); }

/* ═══ Cover art treatment ═════════════════════════════════════════ */
.gk-blog .bfc-cover,
.home-blog-cover,
.blog-card-cover {
  position: relative;
}
.gk-blog .bfc-cover::before,
.home-blog-cover::before,
.blog-card-cover::before {
  content: 'G';
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(90px, 11vw, 190px);
  line-height: 1;
  color: rgba(255, 255, 255, 0.055);
  letter-spacing: 4px;
  pointer-events: none;
}
.gk-blog .bfc-cover::after,
.home-blog-cover::after,
.blog-card-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 7, 8, 0.02) 0%, rgba(7, 7, 8, 0.24) 58%, rgba(7, 7, 8, 0.78) 100%),
    radial-gradient(120% 80% at 80% 0%, rgba(225, 29, 72, 0.12), transparent 55%);
}
.gk-blog .bfc-cover img,
.home-blog-cover img,
.blog-card-cover img {
  filter: saturate(0.78) brightness(0.78) contrast(1.05);
}

/* ═══ Player sidebar progress ═════════════════════════════════════ */
.sidebar-progress {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid var(--border);
}
.sidebar-progress-track { flex: 1; height: 3px; border-radius: 99px; background: #25252d; overflow: hidden; }
.sidebar-progress-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #be123c, #fb7185); }
.sidebar-progress b { color: var(--accent-3); font-family: 'Bebas Neue', sans-serif; font-size: 14px; letter-spacing: 0.4px; }
.sidebar-progress small { color: var(--muted-2); font-size: 8.5px; }

/* ═══ Account practice record ═════════════════════════════════════ */
.account-progress {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 3vw, 28px);
  border-radius: 18px;
  border: 1px solid var(--border);
  background:
    radial-gradient(420px 200px at 8% 0%, rgba(225, 29, 72, 0.14), transparent 62%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.2)),
    #0d0d12;
}
.ap-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.ap-main { display: flex; flex-direction: column; gap: 3px; }
.ap-label { color: var(--muted); font-size: 10.5px; font-weight: 600; }
.ap-time { color: var(--heading); font-family: 'Bebas Neue', sans-serif; font-size: clamp(34px, 4vw, 46px); line-height: 1.1; letter-spacing: 1px; }
.ap-note { color: var(--muted-2); font-size: 9.5px; }
.ap-league {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 10px;
  border: 1px solid var(--accent-line);
  background: rgba(225, 29, 72, 0.1);
  color: #fecdd3;
  text-decoration: none;
  font-size: 10px;
}
.ap-league b { font-family: 'Bebas Neue', sans-serif; font-size: 16px; letter-spacing: 0.5px; }
.ap-league i { font-size: 8px; opacity: 0.7; }
.ap-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.ap-metrics div { display: flex; flex-direction: column; gap: 2px; }
.ap-metrics b { color: var(--heading); font-family: 'Bebas Neue', sans-serif; font-size: 24px; line-height: 1; }
.ap-metrics span { color: var(--muted-2); font-size: 9px; }
.ap-badges-wrap { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.ap-badges-label { display: block; color: var(--muted-2); font-size: 9px; margin-bottom: 7px; }
.ap-badges { display: flex; flex-wrap: wrap; gap: 5px; min-height: 20px; }
.ap-badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 7px; border-radius: 999px; border: 1px solid rgba(251, 113, 133, 0.2); background: rgba(225, 29, 72, 0.08); color: #fecdd3; font-size: 8.5px; }
.ap-badge i { font-size: 6px; color: var(--accent-3); }
/* The record card above supersedes the old two-number profile strip. */
.profile-stats { display: none !important; }

/* ═══ Subscription plans ══════════════════════════════════════════ */
.sub-heading {
  font-family: 'Vazirmatn', sans-serif !important;
  font-size: clamp(32px, 4vw, 46px) !important;
  font-weight: 800 !important;
  letter-spacing: -1.4px !important;
  text-align: center;
}
.sub-desc { text-align: center; max-width: 62ch; margin-inline: auto; color: var(--muted); font-size: 13px; line-height: 2; }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 34px 0 30px; }
.plan-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 210px;
  padding: 30px 20px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background:
    radial-gradient(300px 160px at 50% 0%, rgba(225, 29, 72, 0.12), transparent 65%),
    linear-gradient(180deg, #141419, #0e0e13);
  transition: transform 0.2s, border-color 0.2s;
}
.plan-card::before {
  content: '';
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.plan-card:hover { transform: translateY(-4px); border-color: var(--accent-line); }
.plan-duration { font-family: 'Vazirmatn', sans-serif; font-size: 15px; font-weight: 700; color: var(--muted); }
.plan-price-old { color: var(--muted-2); font-size: 12px; text-decoration: line-through; }
.plan-price { font-family: 'Bebas Neue', sans-serif; font-size: 32px; letter-spacing: 1px; color: var(--heading); }
.plan-card:nth-child(3) .plan-price { color: #fecdd3; }

@media (max-width: 760px) {
  .plan-grid { grid-template-columns: 1fr; }
  .plan-card { min-height: 150px; }
  .ap-metrics { grid-template-columns: 1fr 1fr; }
}

/* ═══ Responsive ══════════════════════════════════════════════════ */
@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .site-header { gap: 10px; }
  .logo, .logo-sm { font-size: 21px; letter-spacing: 2px; }
  .search-static { display: none; }
  .back-btn span, .back-btn { font-size: 0; gap: 0; width: 38px; padding: 0; justify-content: center; }
  .back-btn i { font-size: 13px; }
  .sf-footer-inner { grid-template-columns: 1fr !important; }
}

.avatar-btn img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }

/* ═══ Shared sub navigation — every page ═════════════════════════ */
.gk-subnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 2px;
  padding: 2px 8px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.gk-subnav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
}
.gk-subnav a:hover { color: var(--heading); background: rgba(255, 255, 255, 0.055); }
.gk-subnav a[aria-current="page"] { color: var(--heading); background: var(--accent-d); }
@media (min-width: 900px) {
  .gk-subnav {
    justify-content: flex-start;
    padding-inline: max(24px, calc((100vw - var(--maxw)) / 2 + 24px));
  }
}

@media (max-width: 640px) { .gk-subnav .gk-hide-sm { display: none; } }

