/* Seoking website ------------------------------------------------------------------------
 * Light theme by default, dark theme from the system or the toggle
 * (html[data-theme]). No inline styles anywhere (strict CSP).
 */

@font-face {
  font-family: "Vazirmatn";
  src: url("../../home-page/fonts/Vazirmatn%5Bwght%5D.woff2") format("woff2-variations"),
    url("../../home-page/fonts/Vazirmatn%5Bwght%5D.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --accent: #5663ff;
  --accent-strong: #4351f2;
  --accent-soft: rgba(86, 99, 255, 0.1);
  --accent-ring: rgba(86, 99, 255, 0.28);
  --cyan: #05bacf;
  --violet: #8b5cf6;
  --pink: #ec4899;
  --green: #12a150;
  --green-strong: #0e8a44;
  --green-soft: rgba(18, 161, 80, 0.12);
  --red: #e5484d;
  --red-soft: rgba(229, 72, 77, 0.12);
  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.14);
  --gold: #f5a524;

  --bg: #f5f6fb;
  --bg-soft: #eceffa;
  --surface: #ffffff;
  --surface-2: #f7f8fd;
  --surface-3: #eff1fa;
  --border: #e3e6f2;
  --border-strong: #cfd4e7;
  --text: #121733;
  --text-2: #4b5373;
  --text-3: #868daa;
  --header-bg: rgba(245, 246, 251, 0.78);
  --overlay: rgba(14, 18, 40, 0.48);

  --shadow-1: 0 1px 2px rgba(18, 23, 51, 0.06), 0 1px 1px rgba(18, 23, 51, 0.04);
  --shadow-2: 0 12px 32px -14px rgba(25, 32, 80, 0.22);
  --shadow-3: 0 32px 70px -24px rgba(40, 48, 130, 0.38);
  --shadow-accent: 0 12px 28px -10px rgba(86, 99, 255, 0.55);

  --brand-gradient: linear-gradient(135deg, #4fa8ff 0%, #5663ff 48%, #8b5cf6 100%);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --header-h: 72px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --accent: #7581ff;
  --accent-strong: #8a94ff;
  --accent-soft: rgba(117, 129, 255, 0.16);
  --accent-ring: rgba(117, 129, 255, 0.35);
  --green: #2fbf71;
  --green-strong: #27a862;
  --green-soft: rgba(47, 191, 113, 0.15);
  --red: #f2555a;
  --red-soft: rgba(242, 85, 90, 0.15);
  --amber-soft: rgba(245, 158, 11, 0.16);

  --bg: #080b18;
  --bg-soft: #0c1022;
  --surface: #10152b;
  --surface-2: #141a33;
  --surface-3: #19203d;
  --border: #222a49;
  --border-strong: #2e375e;
  --text: #eef0ff;
  --text-2: #a7aecd;
  --text-3: #717a9f;
  --header-bg: rgba(8, 11, 24, 0.72);
  --overlay: rgba(2, 4, 12, 0.66);

  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 14px 34px -16px rgba(0, 0, 0, 0.7);
  --shadow-3: 0 34px 80px -26px rgba(0, 0, 0, 0.85);
  --shadow-accent: 0 12px 30px -10px rgba(117, 129, 255, 0.5);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent: #7581ff;
    --accent-strong: #8a94ff;
    --accent-soft: rgba(117, 129, 255, 0.16);
    --accent-ring: rgba(117, 129, 255, 0.35);
    --green: #2fbf71;
    --green-strong: #27a862;
    --green-soft: rgba(47, 191, 113, 0.15);
    --red: #f2555a;
    --red-soft: rgba(242, 85, 90, 0.15);
    --amber-soft: rgba(245, 158, 11, 0.16);

    --bg: #080b18;
    --bg-soft: #0c1022;
    --surface: #10152b;
    --surface-2: #141a33;
    --surface-3: #19203d;
    --border: #222a49;
    --border-strong: #2e375e;
    --text: #eef0ff;
    --text-2: #a7aecd;
    --text-3: #717a9f;
    --header-bg: rgba(8, 11, 24, 0.72);
    --overlay: rgba(2, 4, 12, 0.66);

    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-2: 0 14px 34px -16px rgba(0, 0, 0, 0.7);
    --shadow-3: 0 34px 80px -26px rgba(0, 0, 0, 0.85);
    --shadow-accent: 0 12px 30px -10px rgba(117, 129, 255, 0.5);
    color-scheme: dark;
  }
}

/* ---- base ---------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Vazirmatn", Tahoma, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

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

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.45;
  font-weight: 800;
}

p {
  margin: 0;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

::selection {
  background: var(--accent);
  color: #fff;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ic {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 20px;
}

.container.narrow {
  max-width: 900px;
}

.muted {
  color: var(--text-3);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.muted .ic {
  width: 16px;
  height: 16px;
}

.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  z-index: 100;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: top 0.2s;
}

.skip-link:focus {
  top: 12px;
}

.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- buttons --------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 14.5px;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s, border-color 0.2s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: scale(0.97);
}

.btn[disabled],
.btn.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.btn.is-loading > span::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-inline-start: 8px;
  border: 2px solid currentColor;
  border-inline-end-color: transparent;
  border-radius: 50%;
  vertical-align: -2px;
  animation: spin 0.7s linear infinite;
}

.btn-primary {
  background: var(--brand-gradient);
  background-size: 140% 140%;
  color: #fff;
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
  background-position: 100% 0;
  box-shadow: 0 16px 34px -12px rgba(86, 99, 255, 0.7);
}

.btn-success {
  background: linear-gradient(135deg, #22c55e, #12a150);
  color: #fff;
  box-shadow: 0 12px 26px -12px rgba(18, 161, 80, 0.7);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
  box-shadow: var(--shadow-1);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-soft {
  background: var(--accent-soft);
  color: var(--accent);
}

.btn-soft:hover {
  background: var(--accent);
  color: #fff;
}

.btn-sm {
  min-height: 38px;
  padding: 0 14px;
  font-size: 13.5px;
  border-radius: 12px;
}

.btn-sm .ic {
  width: 17px;
  height: 17px;
}

.btn-lg {
  min-height: 52px;
  padding: 0 26px;
  font-size: 15.5px;
  border-radius: 16px;
}

.btn-block {
  width: 100%;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  transition: color 0.2s, border-color 0.2s, background-color 0.2s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.icon-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.icon-btn:active {
  transform: scale(0.94);
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 4px;
  border: 0;
  background: none;
  color: var(--accent);
  font-weight: 700;
  font-size: 13.5px;
}

.link-btn .ic {
  width: 17px;
  height: 17px;
}

.link-btn[disabled] {
  color: var(--text-3);
  cursor: default;
}

/* ---- header ---------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 10px 30px -22px rgba(20, 26, 70, 0.45);
}

.header-row {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  flex: none;
}

.brand img {
  width: 38px;
  height: 38px;
}

.brand-name {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.3px;
  font-family: "Vazirmatn", system-ui, sans-serif;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-inline: auto;
}

.main-nav a {
  position: relative;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s, background-color 0.2s;
}

.main-nav a:hover {
  color: var(--text);
  background: var(--surface-3);
}

.main-nav a.is-active {
  color: var(--accent);
}

.main-nav a.is-active::after {
  content: "";
  position: absolute;
  inset-inline: 14px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-gradient);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-inline-start: auto;
}

.theme-toggle .ic-moon,
:root[data-theme="dark"] .theme-toggle .ic-sun {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .ic-moon {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .ic-sun {
    display: none;
  }

  :root:not([data-theme="light"]) .theme-toggle .ic-moon {
    display: block;
  }
}

.menu-toggle {
  display: none;
}

.menu-toggle .ic-close,
.menu-open .menu-toggle .ic-open {
  display: none;
}

.menu-open .menu-toggle .ic-close {
  display: block;
}

/* account */

.account {
  position: relative;
}

.account-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 4px 6px 4px 12px;
  padding-inline: 5px 12px;
  border-radius: 15px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.account-chip:hover,
.account-chip[aria-expanded="true"] {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.account-chip .chevron {
  width: 16px;
  height: 16px;
  color: var(--text-3);
  transition: transform 0.2s;
}

.account-chip[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.account-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.35;
  text-align: start;
}

.account-name {
  font-size: 13px;
  font-weight: 700;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-balance {
  font-size: 12px;
  color: var(--green);
  font-weight: 700;
}

.avatar {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--brand-gradient);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  overflow: hidden;
  flex: none;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-sm {
  width: 38px;
  height: 38px;
  border-radius: 13px;
}

.account-menu {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 10px);
  width: 300px;
  padding: 10px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-3);
  animation: pop-in 0.18s ease;
  transform-origin: top left;
}

.seocard {
  position: relative;
  padding: 16px 16px 14px;
  margin-bottom: 8px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #3b46e0 0%, #5663ff 45%, #8b5cf6 100%);
  overflow: hidden;
  isolation: isolate;
}

.seocard::before,
.seocard::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  z-index: -1;
}

.seocard::before {
  width: 160px;
  height: 160px;
  inset-inline-end: -50px;
  top: -70px;
}

.seocard::after {
  width: 110px;
  height: 110px;
  inset-inline-start: -30px;
  bottom: -60px;
}

.seocard-top,
.seocard-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  opacity: 0.92;
}

.seocard-bottom span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.seocard-bottom .ic {
  width: 15px;
  height: 15px;
}

.seocard-amount {
  display: block;
  margin: 6px 0 8px;
  font-size: 24px;
  font-weight: 900;
}

.seocard-amount small {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.85;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 12px;
  background: none;
  font-weight: 600;
  font-size: 14px;
  text-align: start;
  transition: background-color 0.2s;
}

.menu-item:hover {
  background: var(--surface-3);
}

.menu-item.danger {
  color: var(--red);
}

.menu-ic,
.point-ic,
.float-ic {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  flex: none;
}

.menu-ic .ic,
.point-ic .ic {
  width: 18px;
  height: 18px;
}

.ic-green {
  background: var(--green-soft);
  color: var(--green);
}

.ic-accent {
  background: var(--accent-soft);
  color: var(--accent);
}

.ic-red {
  background: var(--red-soft);
  color: var(--red);
}

.ic-amber {
  background: var(--amber-soft);
  color: var(--amber);
}

.ic-violet {
  background: rgba(139, 92, 246, 0.14);
  color: var(--violet);
}

/* ---- flash (payment result) --------------------------------------------------------------- */

.flash {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid;
  animation: pop-in 0.3s ease;
}

.flash p {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
}

.flash > .ic {
  width: 24px;
  height: 24px;
  margin-top: 2px;
}

.flash .icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: transparent;
  border-color: transparent;
}

.flash-done {
  background: var(--green-soft);
  border-color: rgba(18, 161, 80, 0.3);
  color: var(--green);
}

.flash-failed {
  background: var(--red-soft);
  border-color: rgba(229, 72, 77, 0.3);
  color: var(--red);
}

.flash-pending {
  background: var(--amber-soft);
  border-color: rgba(245, 158, 11, 0.35);
  color: #b56d00;
}

:root[data-theme="dark"] .flash-pending {
  color: var(--amber);
}

/* ---- hero ------------------------------------------------------------------------------ */

.hero {
  position: relative;
  padding: 64px 0 90px;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
  mask-image: linear-gradient(to bottom, #000 70%, transparent);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  animation: drift 18s ease-in-out infinite alternate;
}

.blob-1 {
  width: 460px;
  height: 460px;
  background: #5663ff;
  top: -160px;
  inset-inline-end: -120px;
}

.blob-2 {
  width: 380px;
  height: 380px;
  background: #05bacf;
  bottom: -160px;
  inset-inline-start: -120px;
  opacity: 0.35;
  animation-delay: -6s;
}

.blob-3 {
  width: 300px;
  height: 300px;
  background: #8b5cf6;
  top: 30%;
  inset-inline-start: 35%;
  opacity: 0.25;
  animation-delay: -12s;
}

:root[data-theme="dark"] .blob {
  opacity: 0.4;
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 72%);
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 72%);
  opacity: 0.55;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-1);
}

.pill .ic {
  width: 16px;
  height: 16px;
}

.hero-title {
  margin-top: 18px;
  font-size: clamp(52px, 8vw, 88px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -1.5px;
}

.hero-lead {
  margin-top: 14px;
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 800;
  line-height: 1.6;
  color: var(--text);
}

.hero-sub {
  margin-top: 12px;
  max-width: 560px;
  font-size: 16.5px;
  color: var(--text-2);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
}

.hero-points .point-ic {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 20px 0;
}

.phone {
  position: relative;
  width: min(290px, 72vw);
  aspect-ratio: 540 / 1130;
  padding: 10px;
  border-radius: 44px;
  background: linear-gradient(160deg, #1c2242, #0b0f22);
  box-shadow: var(--shadow-3), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
  transform: rotate(-4deg);
  animation: float 7s ease-in-out infinite;
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 34px;
}

.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  width: 84px;
  height: 22px;
  margin-left: -42px;
  border-radius: 999px;
  background: #0b0f22;
  z-index: 1;
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 16px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-2);
  animation: float 6s ease-in-out infinite;
}

.float-card div {
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}

.float-card strong {
  font-size: 13.5px;
}

.float-card span:not(.float-ic) {
  font-size: 11.5px;
  color: var(--text-3);
}

.float-ic {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.float-1 {
  top: 12%;
  inset-inline-start: -4%;
  animation-delay: -1s;
}

.float-2 {
  bottom: 18%;
  inset-inline-end: -6%;
  animation-delay: -3s;
}

.float-3 {
  bottom: 2%;
  inset-inline-start: 4%;
  animation-delay: -4.5s;
}

.scroll-hint {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-3);
  font-size: 12px;
}

.scroll-hint .ic {
  animation: bounce 1.8s ease-in-out infinite;
}

/* ---- sections ----------------------------------------------------------------------------- */

.section {
  position: relative;
  padding: 88px 0;
}

.section-soft {
  background: var(--bg-soft);
}

.section-soft::before,
.section-soft::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.section-soft::before {
  top: 0;
}

.section-soft::after {
  bottom: 0;
}

.section-head {
  max-width: 680px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-head h2 {
  margin-top: 10px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: -0.5px;
}

.section-head p {
  margin-top: 10px;
  color: var(--text-2);
  font-size: 16px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.eyebrow .ic {
  width: 16px;
  height: 16px;
}

.live-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.live-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--green);
  animation: ping 1.6s ease-out infinite;
}

/* ---- tasks -------------------------------------------------------------------------------- */

.tasks-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.tasks-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.tasks-grid.is-collapsed > :nth-child(n + 10) {
  display: none;
}

.task-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-1);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
  animation: rise 0.45s ease both;
}

.task-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
  border-color: var(--border-strong);
}

.task-card.is-promoted {
  border: 2px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--brand-gradient) border-box;
}

.task-card.is-new {
  animation: highlight 2.4s ease;
}

.task-new {
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 250px;
  border: 2px dashed var(--border-strong);
  background: transparent;
  box-shadow: none;
  color: var(--text-2);
}

.task-new:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.task-new strong {
  font-size: 17px;
  color: var(--text);
}

.task-new span:not(.task-new-ic) {
  font-size: 13px;
}

.task-new-ic {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 22px;
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: var(--shadow-accent);
  transition: transform 0.3s;
}

.task-new-ic .ic {
  width: 30px;
  height: 30px;
}

.task-new:hover .task-new-ic {
  transform: rotate(90deg);
}

.task-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.task-owner {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  line-height: 1.45;
}

.task-owner strong {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-owner span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-3);
}

.task-owner span .ic {
  width: 13px;
  height: 13px;
}

.badge-tick {
  width: 16px;
  height: 16px;
  color: #1d9bf0;
}

.badge-tick .fill {
  fill: currentColor;
  stroke: none;
}

.badge-tick .stroke-on {
  stroke: #fff;
  stroke-width: 2.4;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  flex: none;
}

.badge .ic {
  width: 14px;
  height: 14px;
}

.badge-gold {
  background: linear-gradient(135deg, #ffd56b, #f5a524);
  color: #6b3d00;
}

.task-title {
  font-size: 16.5px;
  font-weight: 800;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.task-desc {
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.85;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.chip .ic {
  width: 13px;
  height: 13px;
}

.chip-muted {
  background: var(--surface-3);
  color: var(--text-3);
}

.task-foot {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 16px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}

.reward {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.reward span {
  font-size: 11.5px;
  color: var(--text-3);
}

.reward strong {
  font-size: 17px;
  font-weight: 900;
  color: var(--green);
}

.reward small {
  font-size: 12px;
  font-weight: 600;
}

.capacity {
  min-width: 0;
}

.capacity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--text-2);
}

.state {
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.state.is-open {
  background: var(--green-soft);
  color: var(--green);
}

.state.is-closed {
  background: var(--surface-3);
  color: var(--text-3);
}

progress {
  display: block;
  width: 100%;
  height: 7px;
  border: 0;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
  -webkit-appearance: none;
  appearance: none;
}

progress::-webkit-progress-bar {
  background: var(--surface-3);
  border-radius: 999px;
}

progress::-webkit-progress-value {
  background: var(--brand-gradient);
  border-radius: 999px;
}

progress::-moz-progress-bar {
  background: var(--brand-gradient);
  border-radius: 999px;
}

.tasks-more {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.tasks-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--text-3);
  font-size: 13.5px;
  text-align: center;
}

.tasks-note a {
  font-weight: 700;
}

.empty-card {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 40px 20px;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-strong);
  color: var(--text-3);
  text-align: center;
}

.empty-card .ic {
  width: 34px;
  height: 34px;
}

/* ---- features --------------------------------------------------------------------------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature {
  position: relative;
  padding: 26px 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.feature::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  inset-inline-end: -90px;
  top: -90px;
  border-radius: 50%;
  background: var(--accent-soft);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
  border-color: var(--border-strong);
}

.feature:hover::after {
  opacity: 1;
}

.feature h3 {
  margin-top: 18px;
  font-size: 18px;
}

.feature p {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 14px;
}

.feature-ic,
.contact-ic,
.modal-icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  color: #fff;
}

.feature-ic .ic,
.contact-ic .ic,
.modal-icon .ic {
  width: 26px;
  height: 26px;
}

.grad-green {
  background: linear-gradient(135deg, #34d399, #059669);
  box-shadow: 0 12px 24px -12px rgba(5, 150, 105, 0.7);
}

.grad-blue {
  background: linear-gradient(135deg, #60a5fa, #5663ff);
  box-shadow: 0 12px 24px -12px rgba(86, 99, 255, 0.7);
}

.grad-amber {
  background: linear-gradient(135deg, #fbbf24, #f97316);
  box-shadow: 0 12px 24px -12px rgba(249, 115, 22, 0.7);
}

.grad-pink {
  background: linear-gradient(135deg, #f472b6, #db2777);
  box-shadow: 0 12px 24px -12px rgba(219, 39, 119, 0.7);
}

.grad-dark {
  background: linear-gradient(135deg, #475569, #0f172a);
  box-shadow: 0 12px 24px -12px rgba(15, 23, 42, 0.7);
}

.grad-violet {
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  box-shadow: 0 12px 24px -12px rgba(124, 58, 237, 0.7);
}

.grad-red {
  background: linear-gradient(135deg, #fb7185, #e11d48);
  box-shadow: 0 12px 24px -12px rgba(225, 29, 72, 0.7);
}

/* ---- about -------------------------------------------------------------------------------- */

.about-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.about-text h2 {
  margin-top: 10px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
}

.about-text p {
  margin-top: 16px;
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 2.15;
  text-align: justify;
}

.steps {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps::before {
  content: "";
  position: absolute;
  inset-inline-start: 27px;
  top: 30px;
  bottom: 30px;
  width: 2px;
  background: linear-gradient(var(--accent), var(--violet));
  opacity: 0.35;
}

.step {
  position: relative;
  display: flex;
  gap: 16px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-1);
}

.step-num {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--brand-gradient);
  color: #fff;
  font-weight: 900;
  font-size: 17px;
  box-shadow: var(--shadow-accent);
}

.step h3 {
  font-size: 16px;
}

.step p {
  margin-top: 2px;
  color: var(--text-2);
  font-size: 13.5px;
}

/* ---- download ------------------------------------------------------------------------------ */

.download-panel {
  position: relative;
  padding: 44px;
  border-radius: var(--radius-xl);
  background: linear-gradient(140deg, #2c35b8 0%, #4a56f0 40%, #7c4ddf 100%);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow-3);
}

.download-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 85% 10%, rgba(255, 255, 255, 0.22), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(5, 186, 207, 0.35), transparent 45%);
}

.download-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 80%);
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
}

.download-intro {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 820px;
}

.download-logo {
  display: grid;
  place-items: center;
  flex: none;
  width: 96px;
  height: 96px;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.5);
}

.download-logo img {
  width: 66px;
  height: 66px;
}

.download-intro h2 {
  margin-top: 10px;
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 900;
}

.download-intro p {
  margin-top: 8px;
  opacity: 0.88;
  font-size: 15px;
}

.eyebrow-light {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.download-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 34px;
}

.platform {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.platform-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.platform-head h3 {
  font-size: 18px;
}

.platform-head span:not(.platform-ic) {
  font-size: 12.5px;
  opacity: 0.8;
}

.platform-ic {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.18);
}

.platform-ic .ic {
  width: 24px;
  height: 24px;
}

.direct-downloads {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.direct-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  background: #fff;
  color: #1f2470;
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s, box-shadow 0.2s;
}

.direct-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 36px -18px rgba(0, 0, 0, 0.7);
}

.direct-btn > .ic {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.direct-btn span {
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}

.direct-btn strong {
  font-size: 14px;
}

.direct-btn small {
  font-size: 11.5px;
  color: #5a6190;
}

.direct-btn-alt {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: none;
}

.direct-btn-alt > .ic {
  color: #fff;
}

.direct-btn-alt small {
  color: rgba(255, 255, 255, 0.75);
}

.market-list {
  display: grid;
  gap: 10px;
}

.market {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  color: #1f2470;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.market:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 18px 32px -18px rgba(0, 0, 0, 0.6);
}

.market-logo {
  display: grid;
  place-items: center;
  flex: none;
  width: 104px;
  height: 44px;
  padding: 4px 8px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #eceef7;
}

.market-logo img {
  max-height: 34px;
  width: auto;
  object-fit: contain;
}

.market-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  line-height: 1.45;
}

.market-text small {
  font-size: 11.5px;
  color: #6b7199;
}

.market-text strong {
  font-size: 15px;
}

.market-version {
  padding: 2px 10px;
  border-radius: 999px;
  background: #eef0ff;
  color: #4351f2;
  font-size: 12px;
  font-weight: 800;
}

.market-arrow {
  color: #9aa0c3;
  width: 18px;
  height: 18px;
}

/* ---- accordion (rules, faq) ---------------------------------------------------------------- */

.accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.acc-item {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-1);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.acc-item[open] {
  border-color: var(--accent-ring);
  box-shadow: var(--shadow-2);
}

.acc-item summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 15px;
  -webkit-tap-highlight-color: transparent;
}

.acc-item summary::-webkit-details-marker {
  display: none;
}

.acc-title {
  flex: 1;
  line-height: 1.7;
}

.acc-num,
.acc-q {
  display: grid;
  place-items: center;
  flex: none;
  min-width: 34px;
  height: 34px;
  padding: 0 6px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 900;
  font-size: 14px;
}

.acc-q .ic {
  width: 18px;
  height: 18px;
}

.acc-chevron {
  color: var(--text-3);
  transition: transform 0.25s;
}

.acc-item[open] .acc-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.acc-body {
  padding: 0 18px 18px;
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 2.05;
  animation: fade-in 0.25s ease;
}

.acc-body > p {
  padding-inline-start: 46px;
}

.rule-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 14px 0 0;
  list-style: none;
  border-top: 1px dashed var(--border);
}

.rule-list li {
  display: flex;
  gap: 10px;
}

.rule-num {
  flex: none;
  min-width: 42px;
  padding-top: 1px;
  color: var(--accent);
  font-weight: 800;
  font-size: 13px;
}

.rule-list p {
  text-align: justify;
  overflow-wrap: anywhere;
}

.faq-tools {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 16px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-3);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.search-field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.faq-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 4px;
}

.faq-cats::-webkit-scrollbar {
  display: none;
}

.cat {
  flex: none;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s;
}

.cat:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.cat.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}

.faq-list.is-collapsed .acc-item.is-extra {
  display: none;
}

.faq-more {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.faq-empty {
  padding: 24px;
  text-align: center;
  color: var(--text-3);
}

/* ---- contact ------------------------------------------------------------------------------ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 26px 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-1);
}

.contact-card h3 {
  margin-top: 10px;
  font-size: 18px;
}

.contact-card > p {
  color: var(--text-2);
  font-size: 14px;
}

.contact-card-main {
  border-color: var(--accent-ring);
  box-shadow: var(--shadow-2);
}

.contact-link {
  font-weight: 800;
  font-size: 15.5px;
}

.contact-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
  color: var(--text-3);
  font-size: 12.5px;
}

.contact-meta .ic {
  width: 15px;
  height: 15px;
}

.ticket-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.ticket-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.ticket-steps li > span {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 900;
}

.ticket-steps div {
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}

.ticket-steps strong {
  font-size: 14px;
}

.ticket-steps small {
  color: var(--text-3);
  font-size: 12px;
}

/* ---- footer ------------------------------------------------------------------------------- */

.site-footer {
  margin-top: 0;
  padding-top: 60px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 30px;
  padding-bottom: 40px;
}

.footer-brand p {
  margin-top: 12px;
  color: var(--text-2);
  font-size: 14px;
  max-width: 300px;
}

.trust-logos {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.trust-logo {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  padding: 8px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border);
}

.trust-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col h4 {
  margin-bottom: 6px;
  font-size: 15px;
}

.footer-col a,
.footer-contact {
  color: var(--text-2);
  font-size: 14px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-contact {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.footer-contact .ic {
  width: 17px;
  height: 17px;
  margin-top: 4px;
  color: var(--accent);
}

.footer-bottom {
  padding: 16px 0;
  border-top: 1px solid var(--border);
  color: var(--text-3);
  font-size: 13px;
  text-align: center;
}

/* ---- modals ------------------------------------------------------------------------------- */

.modal {
  width: min(460px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-xl);
  background: transparent;
  color: var(--text);
  overflow: visible;
}

.modal[open] {
  animation: modal-in 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.modal::backdrop {
  background: var(--overlay);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: fade-in 0.25s ease;
}

.modal-lg {
  width: min(720px, calc(100vw - 24px));
}

.modal-card {
  position: relative;
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 30px 28px 26px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-3);
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.modal-card h3 {
  margin-top: 14px;
  font-size: 21px;
  font-weight: 900;
}

.modal-text {
  margin: 8px auto 0;
  max-width: 360px;
  color: var(--text-2);
  font-size: 14px;
  white-space: pre-line;
}

.modal-fine {
  margin-top: 14px;
  color: var(--text-3);
  font-size: 12.5px;
}

.modal-icon {
  width: 62px;
  height: 62px;
  border-radius: 20px;
}

.modal-icon-sm {
  width: 46px;
  height: 46px;
  border-radius: 15px;
}

.modal-icon-sm .ic {
  width: 22px;
  height: 22px;
}

.modal form {
  margin-top: 20px;
  text-align: start;
}

/* fields */

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  min-width: 0;
}

.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
}

.counter {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
}

.counter.is-over {
  color: var(--red);
}

.field-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 14px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  color: var(--text-3);
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.field-box:focus-within {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.field.has-error .field-box {
  border-color: var(--red);
  box-shadow: 0 0 0 4px var(--red-soft);
}

.field-box input,
.field-box textarea {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 15px;
}

.field-box textarea {
  padding: 12px 0;
  resize: vertical;
  min-height: 60px;
  line-height: 1.9;
}

.field-box input::placeholder,
.field-box textarea::placeholder {
  color: var(--text-3);
  opacity: 0.8;
}

.field-box-lg {
  min-height: 60px;
}

.field-box-lg input {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.field-suffix {
  font-size: 13px;
  font-weight: 700;
}

.field-hint {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.8;
}

.field-error {
  min-height: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--red);
}

.field-error:empty {
  display: none;
}

.field-error.center {
  display: block;
  text-align: center;
  margin: -4px 0 10px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

/* otp */

.otp-boxes {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.otp-boxes input {
  width: 62px;
  height: 66px;
  border-radius: 18px;
  border: 1.5px solid var(--border);
  background: var(--surface-2);
  text-align: center;
  font-size: 26px;
  font-weight: 900;
  color: var(--text);
  outline: 0;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.otp-boxes input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  transform: translateY(-2px);
}

.otp-boxes.has-error input {
  border-color: var(--red);
  animation: shake 0.35s;
}

.otp-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
}

/* top-up */

.balance-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 13.5px;
  font-weight: 700;
}

.balance-box strong {
  font-size: 19px;
  font-weight: 900;
}

.balance-box small {
  font-size: 12px;
}

.quick-amounts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 18px;
}

.quick-amounts button {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
  transition: all 0.2s;
}

.quick-amounts button:hover,
.quick-amounts button.is-active {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-soft);
}

.secure-note {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-3);
  text-align: start;
  line-height: 1.8;
}

.secure-note .ic {
  width: 17px;
  height: 17px;
  margin-top: 3px;
  color: var(--green);
}

.recent {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  text-align: start;
}

.recent h4 {
  font-size: 14px;
  margin-bottom: 8px;
}

.recent-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.recent-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 13px;
}

.recent-list b {
  font-weight: 800;
}

.recent-list time {
  color: var(--text-3);
  font-size: 12px;
}

.tag {
  padding: 1px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
}

.tag-done {
  background: var(--green-soft);
  color: var(--green);
}

.tag-failed {
  background: var(--red-soft);
  color: var(--red);
}

.tag-pending {
  background: var(--amber-soft);
  color: #b56d00;
}

:root[data-theme="dark"] .tag-pending {
  color: var(--amber);
}

/* wizard */

.wizard {
  padding: 22px 24px 0;
  text-align: start;
  display: flex;
  flex-direction: column;
}

/* the card scrolls: its rows keep their height */
.wizard > * {
  flex-shrink: 0;
}

.wizard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wizard-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wizard-title h3 {
  margin: 0;
  font-size: 18px;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 20px 0 10px;
  padding: 0;
  list-style: none;
}

.stepper li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-3);
  text-align: center;
  cursor: default;
}

.stepper li.is-done {
  cursor: pointer;
}

.stepper-dot {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--surface-3);
  border: 1.5px solid var(--border);
  transition: all 0.3s;
}

.stepper-dot .ic {
  width: 19px;
  height: 19px;
}

.stepper li.is-current {
  color: var(--accent);
}

.stepper li.is-current .stepper-dot {
  background: var(--brand-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-accent);
  transform: scale(1.06);
}

.stepper li.is-done {
  color: var(--green);
}

.stepper li.is-done .stepper-dot {
  background: var(--green-soft);
  border-color: transparent;
  color: var(--green);
}

.wizard-progress {
  height: 5px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
}

.wizard-progress span {
  display: block;
  height: 100%;
  width: 25%;
  border-radius: 999px;
  background: var(--brand-gradient);
  transition: width 0.4s cubic-bezier(0.3, 0.9, 0.3, 1);
}

.wizard-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 60px 0;
  color: var(--text-3);
}

.spinner {
  width: 26px;
  height: 26px;
  border: 3px solid var(--accent-soft);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.wizard-body {
  margin-top: 4px !important;
  padding: 18px 0 8px;
}

.wz-step {
  animation: slide-in 0.3s ease;
}

.wz-intro {
  margin-bottom: 16px;
}

.wz-intro h4 {
  font-size: 17px;
}

.wz-intro p {
  color: var(--text-3);
  font-size: 13px;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  cursor: pointer;
}

.switch-row span {
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

.switch-row strong {
  font-size: 14px;
}

.switch-row small {
  color: var(--text-3);
  font-size: 12px;
}

.switch {
  position: relative;
  flex: none;
  width: 48px;
  height: 28px;
  margin: 0;
  border-radius: 999px;
  background: var(--border-strong);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: background-color 0.25s;
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s cubic-bezier(0.3, 0.9, 0.3, 1.2);
}

.switch:checked {
  background: var(--accent);
}

.switch:checked::after {
  transform: translateX(-20px);
}

.images-locked {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-radius: 16px;
  border: 1.5px dashed var(--border-strong);
  background: repeating-linear-gradient(-45deg, transparent 0 12px, var(--surface-2) 12px 24px);
}

.images-locked-ic {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--surface-3);
  color: var(--text-3);
}

.images-locked-ic .ic {
  width: 26px;
  height: 26px;
}

.images-locked-ic .lock {
  position: absolute;
  width: 22px;
  height: 22px;
  padding: 4px;
  bottom: -6px;
  inset-inline-start: -6px;
  border-radius: 8px;
  background: var(--amber);
  color: #fff;
}

.images-locked strong {
  font-size: 14px;
}

.images-locked p {
  margin: 2px 0 4px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.9;
}

.cat-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  max-height: 300px;
  overflow-y: auto;
  padding: 2px;
}

.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surface-2);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-2);
  transition: all 0.2s;
}

.cat-chip .ic {
  width: 15px;
  height: 15px;
  display: none;
}

.cat-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.cat-chip[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}

.cat-chip[aria-pressed="true"] .ic {
  display: block;
}

.cost-card {
  margin-top: 4px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.cost-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13.5px;
  color: var(--text-2);
}

.cost-line b {
  color: var(--text);
}

.cost-total {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-strong);
  font-weight: 800;
  color: var(--text);
}

.cost-total b {
  font-size: 17px;
  color: var(--accent);
}

.cost-balance b {
  color: var(--green);
}

.cost-warn {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
}

.cost-warn span {
  flex: 1;
  min-width: 180px;
}

.forbidden-box {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.forbidden-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.forbidden-head div {
  display: flex;
  flex-direction: column;
  flex: 1;
  line-height: 1.6;
}

.forbidden-head strong {
  font-size: 14px;
}

.forbidden-head small {
  color: var(--text-3);
  font-size: 12px;
}

.forbidden-ok {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--green);
  font-size: 13.5px;
  font-weight: 700;
}

.forbidden-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.forbidden-list li {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--red-soft);
  color: var(--text);
  font-size: 13px;
  line-height: 1.8;
}

.forbidden-list li b {
  color: var(--red);
}

.forbidden-list li small {
  display: inline-block;
  margin-inline-start: 6px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-3);
  font-size: 11px;
}

.wz-done {
  padding: 24px 0 18px;
  text-align: center;
}

.done-badge {
  display: inline-grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, #34d399, #059669);
  color: #fff;
  box-shadow: 0 18px 40px -14px rgba(5, 150, 105, 0.7);
  animation: pop 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.5);
}

.done-badge .ic {
  width: 42px;
  height: 42px;
  stroke-width: 3;
}

.wz-done h4 {
  margin-top: 18px;
  font-size: 20px;
}

.wz-done p {
  margin: 8px auto 0;
  max-width: 440px;
  color: var(--text-2);
  font-size: 14px;
}

.done-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.wizard-foot {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 -24px;
  padding: 14px 24px 18px;
  background: linear-gradient(transparent, var(--surface) 22%);
  border-top: 1px solid var(--border);
  background-color: var(--surface);
}

.wizard-foot .btn {
  min-width: 130px;
}

/* ---- toasts -------------------------------------------------------------------------------- */

.toasts {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: min(440px, calc(100vw - 24px));
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-3);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.8;
  white-space: pre-line;
  pointer-events: auto;
  animation: toast-in 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.toast .ic {
  width: 22px;
  height: 22px;
  margin-top: 2px;
}

.toast-error .ic {
  color: var(--red);
}

.toast-success .ic {
  color: var(--green);
}

.toast-info .ic {
  color: var(--accent);
}

.toast.is-leaving {
  animation: toast-out 0.25s ease forwards;
}

/* ---- reveal on scroll ------------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---- animations -------------------------------------------------------------------------- */

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes drift {
  to {
    transform: translate(40px, 30px) scale(1.12);
  }
}

@keyframes float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -12px;
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}

@keyframes ping {
  to {
    transform: scale(2.6);
    opacity: 0;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateX(-16px);
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-14px) scale(0.96);
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(-10px) scale(0.96);
  }
}

@keyframes shake {
  25% {
    transform: translateX(-6px);
  }
  75% {
    transform: translateX(6px);
  }
}

@keyframes pop {
  from {
    transform: scale(0.3);
    opacity: 0;
  }
}

@keyframes highlight {
  0%,
  60% {
    box-shadow: 0 0 0 4px var(--accent-ring), var(--shadow-2);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---- responsive -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .main-nav a {
    padding: 8px 9px;
    font-size: 13.5px;
  }
}

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-grid;
  }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 12px 16px 18px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-3);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }

  .menu-open .main-nav {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .main-nav a {
    padding: 11px 14px;
    font-size: 15px;
  }

  .main-nav a.is-active {
    background: var(--accent-soft);
  }

  .main-nav a.is-active::after {
    display: none;
  }

  .hero-layout,
  .about-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 40px;
    text-align: center;
  }

  .hero-sub {
    margin-inline: auto;
  }

  .hero-cta,
  .hero-points {
    justify-content: center;
  }

  .hero-visual {
    margin-top: 10px;
  }

  .tasks-grid,
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .download-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 64px;
  }

  body {
    font-size: 14.5px;
  }

  .container {
    padding-inline: 16px;
  }

  .section {
    padding: 64px 0;
  }

  .section-head {
    margin-bottom: 30px;
  }

  .brand-name {
    font-size: 19px;
  }

  .header-actions {
    gap: 8px;
  }

  .header-actions .btn-sm span {
    display: none;
  }

  .header-actions .btn-sm {
    width: 42px;
    padding: 0;
  }

  .account-meta {
    display: none;
  }

  .account-chip {
    padding: 4px;
    height: 44px;
  }

  .account-chip .chevron {
    display: none;
  }

  .account-menu {
    position: fixed;
    top: calc(var(--header-h) + 6px);
    inset-inline: 12px;
    width: auto;
  }

  .icon-btn {
    width: 40px;
    height: 40px;
  }

  .tasks-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .tasks-grid.is-collapsed > :nth-child(n + 7) {
    display: none;
  }

  .tasks-toolbar {
    flex-wrap: wrap;
  }

  .task-new {
    min-height: 170px;
  }

  .float-card {
    padding: 8px 10px;
    gap: 8px;
  }

  .float-card span:not(.float-ic) {
    display: none;
  }

  .float-ic {
    width: 32px;
    height: 32px;
  }

  .float-1 {
    inset-inline-start: 0;
  }

  .float-2 {
    inset-inline-end: 0;
  }

  .float-3 {
    display: none;
  }

  .hero-points {
    flex-direction: column;
    align-items: center;
  }

  .download-panel {
    padding: 26px 18px;
    border-radius: var(--radius-lg);
  }

  .download-intro {
    flex-direction: column;
    text-align: center;
  }

  .download-logo {
    width: 80px;
    height: 80px;
    border-radius: 24px;
  }

  .platform {
    padding: 14px;
  }

  .market-logo {
    width: 88px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .acc-body > p {
    padding-inline-start: 0;
  }

  .faq-cats {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: -16px;
    padding-inline: 16px;
  }

  .faq-cats::-webkit-scrollbar {
    display: none;
  }

  .rule-list li {
    flex-direction: column;
    gap: 0;
  }

  .modal,
  .modal-lg {
    width: 100vw;
    max-width: 100vw;
    max-height: 100dvh;
    margin: auto 0 0;
    border-radius: 26px 26px 0 0;
  }

  .modal[open] {
    animation: sheet-in 0.32s cubic-bezier(0.2, 0.9, 0.3, 1);
  }

  .modal-card {
    max-height: 92dvh;
    border-radius: 26px 26px 0 0;
    padding: 26px 18px 22px;
    padding-bottom: calc(22px + env(safe-area-inset-bottom));
  }

  .wizard {
    padding: 18px 16px 0;
  }

  .wizard-foot {
    margin: 0 -16px;
    padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
  }

  .wizard-foot .btn {
    min-width: 0;
    flex: 1;
  }

  .stepper li > span:last-child {
    font-size: 11px;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .otp-boxes input {
    width: 56px;
    height: 60px;
  }
}

@keyframes sheet-in {
  from {
    transform: translateY(100%);
  }
}

html.modal-open {
  overflow: hidden;
}
