/* FixTand customer club — dark glass PWA */
:root {
  --cl-bg: #0b0d14;
  --cl-bg2: #10131d;
  --cl-glass: rgba(255, 255, 255, .045);
  --cl-glass2: rgba(255, 255, 255, .07);
  --cl-line: rgba(255, 255, 255, .09);
  --cl-text: #eef1fb;
  --cl-muted: #9aa3bd;
  --cl-blue: #4f7cff;
  --cl-violet: #8b5cf6;
  --cl-cyan: #38d6ff;
  --cl-green: #22c58b;
  --cl-gold: #f5b544;
  --cl-red: #ee1f25;
  --cl-radius: 18px;
  --cl-side: 260px;
  --cl-safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.cl {
  margin: 0;
  min-height: 100vh;
  font-family: Vazirmatn, Tahoma, sans-serif;
  background: var(--cl-bg);
  color: var(--cl-text);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
.cl a { color: inherit; text-decoration: none; }
.cl h1, .cl h2, .cl h3 { margin: 0; line-height: 1.5; }
.cl button { font: inherit; }
.ci { flex: none; vertical-align: middle; }
.cl-glow {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(600px 420px at 85% -5%, rgba(139, 92, 246, .28), transparent 60%),
    radial-gradient(520px 380px at 5% 30%, rgba(79, 124, 255, .18), transparent 60%),
    radial-gradient(700px 500px at 60% 110%, rgba(56, 214, 255, .10), transparent 60%);
}

/* brand */
.cl-brand { display: flex; align-items: center; gap: .6rem; }
.cl-brand__mark {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, #ff4b4f, var(--cl-red)); color: #fff; font-weight: 800; font-size: 1.3rem;
  box-shadow: 0 6px 20px rgba(238, 31, 37, .35);
}
.cl-brand__word { font-weight: 800; font-size: 1.25rem; letter-spacing: .3px; display: flex; flex-direction: column; line-height: 1.2; }
.cl-brand__name { direction: ltr; text-align: right; white-space: nowrap; }
.cl-brand__word b { color: var(--cl-red); }
.cl-brand__word small { font-size: .72rem; font-weight: 500; color: var(--cl-muted); }
.cl-brand--top .cl-brand__mark { width: 34px; height: 34px; font-size: 1.1rem; }

/* sidebar */
.cl-side {
  position: fixed; top: 0; bottom: 0; right: 0; width: var(--cl-side); z-index: 40;
  padding: 1.4rem 1rem; display: flex; flex-direction: column; gap: 1.4rem; overflow-y: auto;
  background: linear-gradient(180deg, rgba(20, 23, 36, .92), rgba(12, 14, 22, .96));
  border-left: 1px solid var(--cl-line); backdrop-filter: blur(18px);
}
.cl-nav { display: flex; flex-direction: column; gap: .25rem; }
.cl-nav form { margin: 0; }
.cl-nav__item {
  display: flex; align-items: center; gap: .75rem; width: 100%; padding: .7rem .9rem; border-radius: 12px;
  color: var(--cl-muted); background: none; border: 0; cursor: pointer; text-align: right; transition: .2s;
}
.cl-nav__item:hover { color: var(--cl-text); background: var(--cl-glass); }
.cl-nav__item.is-active {
  color: #fff; background: linear-gradient(90deg, rgba(79, 124, 255, .08), rgba(139, 92, 246, .32));
  box-shadow: inset -3px 0 0 var(--cl-violet);
}
.cl-nav__item--out:hover { color: #ff8a8d; }
.cl-side__card {
  margin-top: auto; padding: 1rem; border-radius: var(--cl-radius); text-align: center;
  background: linear-gradient(160deg, rgba(79, 124, 255, .16), rgba(139, 92, 246, .14));
  border: 1px solid var(--cl-line); font-size: .85rem; color: var(--cl-muted);
}
.cl-side__card p { margin: .4rem 0 .7rem; }
.cl-side__card b { color: var(--cl-text); }
.cl-scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 35; }

/* main + top bar */
.cl-main { position: relative; z-index: 1; margin-right: var(--cl-side); min-height: 100vh; }
.cl-top {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: .8rem;
  padding: .9rem 1.6rem; background: rgba(11, 13, 20, .72); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--cl-line);
}
.cl-search {
  flex: 1; max-width: 520px; display: flex; align-items: center; gap: .5rem; padding: 0 .9rem;
  background: var(--cl-glass); border: 1px solid var(--cl-line); border-radius: 14px; color: var(--cl-muted);
}
.cl-search input { flex: 1; background: none; border: 0; outline: 0; color: var(--cl-text); padding: .65rem 0; font: inherit; }
.cl-icon-btn {
  position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px;
  background: var(--cl-glass); border: 1px solid var(--cl-line); color: var(--cl-text); cursor: pointer;
}
.cl-dot { position: absolute; top: 9px; left: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--cl-red); box-shadow: 0 0 0 3px var(--cl-bg); }
.cl-user { display: flex; align-items: center; gap: .6rem; margin-right: auto; }
.cl-user__avatar {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800;
  background: linear-gradient(135deg, var(--cl-blue), var(--cl-violet)); color: #fff; flex: none;
}
.cl-user__avatar--lg { width: 56px; height: 56px; font-size: 1.3rem; }
.cl-user__avatar--xl { width: 84px; height: 84px; font-size: 2rem; }
.cl-user__meta { display: flex; flex-direction: column; line-height: 1.3; }
.cl-user__meta small { color: var(--cl-muted); font-size: .78rem; }
.cl-only-m { display: none !important; }
.cl-content { padding: 1.6rem; max-width: 1280px; margin: 0 auto; display: flex; flex-direction: column; gap: 1.25rem; }

/* generic */
.cl-card {
  background: var(--cl-glass); border: 1px solid var(--cl-line); border-radius: var(--cl-radius);
  padding: 1.25rem; backdrop-filter: blur(12px); min-width: 0;
}
.cl-card h2 { font-size: 1.05rem; display: flex; align-items: center; gap: .5rem; margin-bottom: .8rem; }
.cl-card h3 { font-size: .95rem; margin: 1rem 0 .5rem; color: var(--cl-muted); }
.cl-card__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; }
.cl-card__head h2 { margin: 0; }
.cl-card__head a { color: #a9b8ff; font-size: .85rem; }
.cl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.cl-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cl-span-2 { grid-column: span 2; }
.cl-muted { color: var(--cl-muted); }
.cl-center { text-align: center; }
.cl-gap { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }
.cl-pre { white-space: pre-line; color: #cfd5ea; margin: 0 0 .8rem; }
.cl-wrap { word-break: break-all; }
.cl-page-head h1 { font-size: 1.45rem; display: flex; align-items: center; gap: .6rem; }
.cl-page-head p { margin: .3rem 0 0; color: var(--cl-muted); }
.cl-back { display: inline-flex; align-items: center; gap: .2rem; color: var(--cl-muted); font-size: .85rem; margin-bottom: .4rem; }
.cl-back .ci { transform: scaleX(-1); }

.cl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .7rem 1.2rem;
  border-radius: 13px; border: 1px solid transparent; cursor: pointer; font-weight: 700; transition: .2s; white-space: nowrap;
}
.cl-btn--primary { background: linear-gradient(135deg, var(--cl-blue), var(--cl-violet)); color: #fff; box-shadow: 0 8px 24px rgba(99, 102, 241, .35); }
.cl-btn--primary:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(99, 102, 241, .45); }
.cl-btn--ghost { background: var(--cl-glass2); border-color: var(--cl-line); color: var(--cl-text); }
.cl-btn--ghost:hover { background: rgba(255, 255, 255, .11); }
.cl-btn--light { background: #fff; color: #1d1f33; }
.cl-btn--danger { background: rgba(238, 31, 37, .14); border-color: rgba(238, 31, 37, .35); color: #ff9a9d; }
.cl-btn--sm { padding: .45rem .85rem; font-size: .85rem; border-radius: 11px; }
.cl-btn--lg { padding: .9rem 1.8rem; font-size: 1.05rem; }
.cl-btn--block { width: 100%; }

.cl-badge {
  display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .65rem; border-radius: 999px;
  font-size: .78rem; font-weight: 600; white-space: nowrap; margin: 0;
}
.cl-badge--done { background: rgba(34, 197, 139, .14); color: #5ee3b0; }
.cl-badge--progress { background: rgba(79, 124, 255, .16); color: #9db4ff; }
.cl-badge--wait { background: rgba(245, 181, 68, .15); color: #ffd082; white-space: normal; }
.cl-badge--cancel { background: rgba(238, 31, 37, .14); color: #ff8f92; }
.cl-badge--action { background: var(--cl-red); color: #fff; }

.cl-flash { padding: .8rem 1rem; border-radius: 14px; background: rgba(79, 124, 255, .14); border: 1px solid rgba(79, 124, 255, .3); }
.cl-flash--ok { background: rgba(34, 197, 139, .12); border-color: rgba(34, 197, 139, .35); }
.cl-flash--error { background: rgba(238, 31, 37, .12); border-color: rgba(238, 31, 37, .35); }

.cl-empty { text-align: center; color: var(--cl-muted); padding: 1.6rem .5rem; }
.cl-empty .ci { opacity: .5; }
.cl-empty p { margin: .5rem 0 0; }

/* gem */
.gem { filter: drop-shadow(0 8px 22px rgba(91, 141, 255, .45)); vertical-align: middle; }
.gem--float { animation: clFloat 5s ease-in-out infinite; }
@keyframes clFloat { 50% { transform: translateY(-8px) rotate(-2deg); } }
.cl-gem-n { display: inline-flex; align-items: center; gap: .25rem; color: #9fd6ff; font-weight: 700; }

/* hero */
.cl-hero {
  position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.5rem;
  padding: 1.6rem 2rem; border-radius: 24px; border: 1px solid rgba(139, 92, 246, .3);
  background:
    radial-gradient(420px 220px at 90% 50%, rgba(91, 141, 255, .35), transparent 70%),
    linear-gradient(120deg, rgba(43, 32, 92, .9), rgba(20, 26, 58, .9) 60%, rgba(14, 18, 34, .9));
}
.cl-hero h1 { font-size: 1.7rem; }
.cl-hero p { margin: .1rem 0; color: #c8cdea; }
.cl-hero__chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .8rem; }
.cl-hero__next { font-size: .85rem; color: var(--cl-muted) !important; margin-top: .5rem !important; }
.cl-hero__ship {
  margin: .55rem 0 0 !important;
  font-size: .84rem;
  padding: .45rem .65rem;
  border-radius: 10px;
  background: color-mix(in srgb, #10b981 16%, transparent);
  border: 1px solid color-mix(in srgb, #10b981 35%, transparent);
  color: inherit;
}
.cl-chip {
  display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .4rem .3rem .8rem; border-radius: 12px;
  background: rgba(255, 255, 255, .08); border: 1px solid var(--cl-line); font-size: .88rem;
}
.cl-chip__btn { background: none; border: 0; color: var(--cl-muted); cursor: pointer; padding: .1rem .3rem; }
.cl-tier { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .85rem; border-radius: 12px; font-weight: 700; font-size: .88rem; }
.cl-tier--0 { background: linear-gradient(135deg, #a8693a, #6b3e1f); }
.cl-tier--1 { background: linear-gradient(135deg, #9aa6b8, #5d6678); }
.cl-tier--2 { background: linear-gradient(135deg, #f5c451, #c8871b); color: #2b1c00; }
.cl-tier--3, .cl-tier--4, .cl-tier--5 { background: linear-gradient(135deg, var(--cl-cyan), var(--cl-violet)); }
.cl-hero__balance {
  display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: 1rem 1.4rem; border-radius: 18px;
  background: rgba(10, 12, 24, .5); border: 1px solid var(--cl-line); text-align: center;
}
.cl-hero__balance small { color: var(--cl-muted); }
.cl-hero__balance strong { font-size: 2.3rem; line-height: 1.1; background: linear-gradient(135deg, #a7e8ff, #8b5cf6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cl-hero__balance span { font-size: .82rem; color: #c8cdea; margin-bottom: .4rem; }

.cl-alert {
  display: flex; align-items: center; gap: .8rem; padding: .9rem 1.1rem; border-radius: 16px;
  background: rgba(238, 31, 37, .12); border: 1px solid rgba(238, 31, 37, .35); color: #ffd6d7;
}
.cl-alert span { flex: 1; }
.cl-alert .ci:last-child { transform: scaleX(-1); }

/* stats */
.cl-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
.cl-stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cl-stat {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: .15rem; padding: 1.1rem 1.15rem;
  border-radius: var(--cl-radius); background: var(--cl-glass); border: 1px solid var(--cl-line); transition: .2s;
}
a.cl-stat:hover { transform: translateY(-2px); border-color: rgba(139, 92, 246, .45); }
.cl-stat::after { content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%; left: -40px; bottom: -60px; opacity: .25; filter: blur(30px); background: var(--c, var(--cl-blue)); }
.cl-stat--gem { --c: #5b8dff; } .cl-stat--blue { --c: #38d6ff; } .cl-stat--violet { --c: #8b5cf6; }
.cl-stat--green { --c: #22c58b; } .cl-stat--gold { --c: #f5b544; }
.cl-stat__icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: rgba(255, 255, 255, .06); color: var(--c); margin-bottom: .4rem; }
.cl-stat__label { color: var(--cl-muted); font-size: .85rem; }
.cl-stat strong { font-size: 1.6rem; line-height: 1.3; }
.cl-stat small { color: var(--cl-muted); font-size: .78rem; }

/* progress */
.cl-progress__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.cl-progress__head h2 { margin: 0; }
.cl-progress__head p { margin: .2rem 0 0; color: var(--cl-muted); }
.cl-progress__head p b { color: var(--cl-text); }
.cl-progress__pct { font-size: 1.6rem; font-weight: 800; color: #a9c4ff; }
.cl-bar { height: 14px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; margin: .9rem 0 .5rem; }
.cl-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cl-cyan), var(--cl-blue), var(--cl-violet)); box-shadow: 0 0 18px rgba(91, 141, 255, .6); }
.cl-progress__foot { display: flex; justify-content: space-between; color: var(--cl-muted); font-size: .82rem; gap: 1rem; }

/* tables / lists */
.cl-table-wrap { overflow-x: auto; }
.cl-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.cl-table th { text-align: right; color: var(--cl-muted); font-weight: 500; padding: .6rem .5rem; border-bottom: 1px solid var(--cl-line); white-space: nowrap; }
.cl-table td { padding: .7rem .5rem; border-bottom: 1px solid rgba(255, 255, 255, .05); vertical-align: middle; }
.cl-table tr:last-child td { border-bottom: 0; }
.cl-table__title { display: block; font-weight: 600; }
.cl-table small { display: block; color: var(--cl-muted); font-size: .75rem; }
.is-plus { color: #5ee3b0; } .is-minus { color: #ff8f92; }
.cl-txs { list-style: none; margin: 0; padding: 0; }
.cl-txs li { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .65rem 0; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.cl-txs li:last-child { border-bottom: 0; }
.cl-txs__k { display: flex; flex-direction: column; min-width: 0; }
.cl-txs__k small { color: var(--cl-muted); font-size: .76rem; }
.cl-acts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem 1.2rem; }
.cl-acts a { display: flex; align-items: center; gap: .75rem; padding: .6rem; border-radius: 13px; transition: .2s; }
.cl-acts a:hover { background: var(--cl-glass); }
.cl-acts__ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; background: rgba(79, 124, 255, .14); color: #9db4ff; }
.cl-acts__ic--done { background: rgba(34, 197, 139, .14); color: #5ee3b0; }
.cl-acts__ic--wait { background: rgba(245, 181, 68, .14); color: #ffd082; }
.cl-acts__ic--cancel { background: rgba(238, 31, 37, .14); color: #ff8f92; }
.cl-acts__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cl-acts__body small { color: var(--cl-muted); font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-acts__meta { display: flex; flex-direction: column; align-items: flex-end; gap: .15rem; font-size: .8rem; }
.cl-acts__meta small { color: var(--cl-muted); font-size: .72rem; }

.cl-repair__title { font-weight: 700; font-size: 1.05rem; margin: 0; }
.cl-dl { margin: .8rem 0; display: flex; flex-direction: column; gap: .5rem; }
.cl-dl div { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.cl-dl dt { color: var(--cl-muted); font-size: .88rem; }
.cl-dl dd { margin: 0; font-weight: 600; text-align: left; min-width: 0; }

.cl-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.cl-tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; padding: 1.1rem; border-radius: var(--cl-radius);
  background: linear-gradient(150deg, rgba(79, 124, 255, .12), rgba(139, 92, 246, .08)); border: 1px solid var(--cl-line); transition: .2s;
}
.cl-tile:hover { transform: translateY(-2px); border-color: rgba(139, 92, 246, .45); }
.cl-tile .ci { color: #a9b8ff; margin-bottom: .3rem; }
.cl-tile small { color: var(--cl-muted); font-size: .8rem; }

.cl-cta {
  display: flex; align-items: center; gap: 1.4rem; padding: 1.4rem 1.8rem; border-radius: 22px;
  background: linear-gradient(120deg, rgba(79, 124, 255, .25), rgba(139, 92, 246, .3)); border: 1px solid rgba(139, 92, 246, .35);
}
.cl-cta > div:nth-child(2) { flex: 1; }
.cl-cta h2 { font-size: 1.2rem; }
.cl-cta p { margin: .2rem 0 0; color: #c8cdea; font-size: .9rem; }
.cl-cta__gems { position: relative; }
.cl-cta__gems .gem--small { position: absolute; left: -18px; bottom: -6px; }

/* tabs + order cards + requests */
.cl-tabs { display: flex; gap: .4rem; overflow-x: auto; padding: .3rem; border-radius: 15px; background: var(--cl-glass); border: 1px solid var(--cl-line); scrollbar-width: none; }
.cl-tabs a { padding: .5rem 1.1rem; border-radius: 11px; color: var(--cl-muted); white-space: nowrap; font-size: .9rem; }
.cl-tabs a.is-active { background: linear-gradient(135deg, var(--cl-blue), var(--cl-violet)); color: #fff; }
.cl-list { display: flex; flex-direction: column; gap: .8rem; }
.cl-order { background: var(--cl-glass); border: 1px solid var(--cl-line); border-radius: var(--cl-radius); padding: 1rem 1.2rem; }
.cl-order__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.cl-order__head small { display: block; color: var(--cl-muted); font-size: .8rem; }
.cl-order__items { list-style: none; padding: .6rem 0; margin: .6rem 0; border-block: 1px dashed var(--cl-line); }
.cl-order__items li { display: flex; justify-content: space-between; gap: 1rem; padding: .2rem 0; font-size: .9rem; }
.cl-order__items small { color: var(--cl-muted); white-space: nowrap; }
.cl-order__foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.cl-order__sum { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; align-items: center; font-size: .9rem; }
.cl-order__actions { display: flex; gap: .5rem; }
.cl-order__actions form { margin: 0; }
.cl-req {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border-radius: var(--cl-radius);
  background: var(--cl-glass); border: 1px solid var(--cl-line); transition: .2s;
}
.cl-req:hover { border-color: rgba(139, 92, 246, .45); }
.cl-req.is-action { border-color: rgba(238, 31, 37, .5); }
.cl-req__ic { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; flex: none; background: rgba(79, 124, 255, .14); color: #9db4ff; }
.cl-req__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cl-req__body small { color: var(--cl-muted); font-size: .78rem; }
.cl-req__body .tracking-code { color: var(--cl-muted); font-size: .8rem; }
.cl-req__meta { display: flex; flex-direction: column; align-items: flex-end; gap: .25rem; font-size: .8rem; }
.cl-req__meta small { color: var(--cl-muted); }

.cl-quote.is-pending { border-color: rgba(245, 181, 68, .5); box-shadow: 0 0 0 4px rgba(245, 181, 68, .08); }
.cl-quote__amount { font-size: 1.9rem; font-weight: 800; margin: .2rem 0 .8rem; }
.cl-timeline { list-style: none; margin: 0; padding: 0; }
.cl-timeline li { display: flex; gap: .9rem; position: relative; padding-bottom: 1rem; }
.cl-timeline li:not(:last-child)::before { content: ""; position: absolute; right: 13px; top: 28px; bottom: 0; width: 2px; background: rgba(79, 124, 255, .35); }
.cl-timeline__dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--cl-green); color: #fff; }
.cl-timeline li.is-current .cl-timeline__dot { background: var(--cl-blue); box-shadow: 0 0 0 5px rgba(79, 124, 255, .25); }
.cl-timeline small { display: block; color: var(--cl-muted); font-size: .8rem; }
.cl-timeline p { margin: .2rem 0 0; color: #cfd5ea; font-size: .88rem; }

/* balance / wallet / invite */
.cl-balance { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.25rem; padding: 1.4rem 1.6rem; border-radius: 24px; background: linear-gradient(120deg, rgba(43, 32, 92, .85), rgba(20, 26, 58, .85)); border: 1px solid rgba(139, 92, 246, .3); }
.cl-balance__main { display: flex; align-items: center; gap: 1.2rem; }
.cl-balance__main small { color: var(--cl-muted); }
.cl-balance__main strong { display: block; font-size: 2.4rem; line-height: 1.2; }
.cl-balance__main strong span { font-size: 1rem; color: var(--cl-muted); }
.cl-balance__main p { margin: .2rem 0 0; color: #c8cdea; }
.cl-balance__facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.cl-balance__facts div { padding: .7rem .9rem; border-radius: 14px; background: rgba(10, 12, 24, .45); border: 1px solid var(--cl-line); }
.cl-balance__facts dt { color: var(--cl-muted); font-size: .78rem; }
.cl-balance__facts dd { margin: 0; font-weight: 700; }
.cl-wallet { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1.25rem; }
.cl-wallet__card {
  position: relative; overflow: hidden; padding: 1.6rem; border-radius: 24px; min-height: 220px;
  background: linear-gradient(135deg, #4f7cff, #8b5cf6 60%, #c026d3); box-shadow: 0 18px 40px rgba(99, 102, 241, .35);
  display: flex; flex-direction: column; align-items: flex-start; gap: .2rem;
}
.cl-wallet__card small { opacity: .85; }
.cl-wallet__card strong { font-size: 2.3rem; line-height: 1.3; }
.cl-wallet__card strong span { font-size: 1rem; opacity: .8; }
.cl-wallet__card p { margin: 0 0 auto; opacity: .85; }
.cl-wallet__card .cl-btn { margin-top: 1rem; }
.cl-wallet__gem { position: absolute; left: -10px; bottom: -14px; opacity: .55; }
.cl-steps { list-style: none; margin: 0 0 .8rem; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.cl-steps li { position: relative; padding-right: 2.3rem; min-height: 26px; color: #cfd5ea; }
.cl-steps li > span:first-child { position: absolute; right: 0; top: .1rem; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 700; background: linear-gradient(135deg, var(--cl-blue), var(--cl-violet)); color: #fff; }
.cl-steps b { color: #fff; }
.cl-bullets { margin: .5rem 0 0; padding-right: 1.1rem; color: #cfd5ea; }
.cl-invite { display: flex; align-items: center; gap: 1.6rem; padding: 1.4rem 1.8rem; border-radius: 24px; background: linear-gradient(120deg, rgba(43, 32, 92, .85), rgba(20, 26, 58, .85)); border: 1px solid rgba(139, 92, 246, .3); }
.cl-invite__body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; min-width: 0; }
.cl-invite__body small { color: var(--cl-muted); }
.cl-bigcode { margin: 0; font-size: 1.8rem; font-weight: 800; letter-spacing: 1px; }
.cl-copyline { display: flex; gap: .4rem; width: 100%; max-width: 560px; padding: .3rem; border-radius: 14px; background: rgba(10, 12, 24, .5); border: 1px solid var(--cl-line); }
.cl-copyline input { flex: 1; min-width: 0; background: none; border: 0; color: var(--cl-text); font: inherit; font-size: .85rem; padding: 0 .5rem; outline: 0; }
.cl-recipient { display: flex; align-items: center; gap: .9rem; padding: 1rem; border-radius: 16px; background: rgba(10, 12, 24, .45); border: 1px solid var(--cl-line); }
.cl-recipient small { display: block; color: var(--cl-muted); }
.cl-transfer-sum { display: flex; align-items: center; gap: .4rem; margin: 1rem 0; }
.cl-transfer-sum b { font-size: 1.3rem; }

/* usdt */
.cl-rates { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.cl-rates div { padding: 1rem; border-radius: 16px; background: var(--cl-glass); border: 1px solid var(--cl-line); display: flex; flex-direction: column; }
.cl-rates small { color: var(--cl-muted); font-size: .8rem; }
.cl-stepper { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .6rem; counter-reset: s; }
.cl-stepper li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .4rem; font-size: .82rem; }
.cl-stepper li:not(:last-child)::after { content: ""; position: absolute; top: 18px; left: calc(-50% + 22px); width: calc(100% - 44px); height: 2px; background: var(--cl-line); }
.cl-stepper li.is-done:not(:last-child)::after { background: var(--cl-green); }
.cl-stepper__dot { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: rgba(255, 255, 255, .07); color: var(--cl-muted); border: 2px solid var(--cl-line); position: relative; z-index: 1; }
.cl-stepper .is-done .cl-stepper__dot { background: var(--cl-green); border-color: var(--cl-green); color: #fff; }
.cl-stepper .is-current .cl-stepper__dot { background: linear-gradient(135deg, var(--cl-blue), var(--cl-violet)); border-color: transparent; color: #fff; box-shadow: 0 0 0 6px rgba(99, 102, 241, .22); }
.cl-stepper .is-failed .cl-stepper__dot { background: var(--cl-red); border-color: var(--cl-red); color: #fff; }
.cl-stepper small { display: block; color: var(--cl-muted); font-size: .72rem; line-height: 1.5; }
.cl-stepper em { display: inline-block; margin-top: .2rem; font-style: normal; font-size: .72rem; padding: .05rem .5rem; border-radius: 99px; background: rgba(99, 102, 241, .25); color: #c7ccff; }
.cl-stepper .is-failed em { background: rgba(238, 31, 37, .2); color: #ff9a9d; }
.cl-usdt-out { margin: 0; padding: .7rem 1rem; border-radius: 12px; background: rgba(34, 197, 139, .1); color: #8ff0c8; }

/* forms */
.cl-form { display: flex; flex-direction: column; gap: .9rem; }
.cl-form label { display: flex; flex-direction: column; gap: .35rem; font-size: .9rem; color: #cfd5ea; }
.cl-form label small { color: var(--cl-muted); font-size: .78rem; }
.cl-form input:not([type=checkbox]), .cl-form select, .cl-form textarea {
  width: 100%; padding: .75rem .9rem; border-radius: 12px; background: rgba(10, 12, 24, .6); color: var(--cl-text);
  border: 1px solid var(--cl-line); font: inherit; outline: 0; transition: .2s;
}
.cl-form input:focus { border-color: var(--cl-violet); box-shadow: 0 0 0 3px rgba(139, 92, 246, .2); }
.cl-form input:disabled { opacity: .6; }
.cl-form__row { display: flex; gap: .6rem; flex-wrap: wrap; }
.cl-check { flex-direction: row !important; align-items: flex-start; gap: .5rem !important; }
.cl-check input { margin-top: .4rem; accent-color: var(--cl-violet); }

.cl-profile { display: flex; align-items: center; gap: 1.4rem; padding: 1.4rem 1.8rem; border-radius: 24px; background: linear-gradient(120deg, rgba(43, 32, 92, .85), rgba(20, 26, 58, .85)); border: 1px solid rgba(139, 92, 246, .3); }
.cl-profile p { margin: .1rem 0; }
.cl-app-card { display: flex; align-items: center; gap: 1.2rem; }
.cl-app-card > div:nth-child(2) { flex: 1; }
.cl-app-card h2 { margin-bottom: .2rem; }
.cl-app-card p { margin: 0; }

/* copy */
.tracking-code { font-family: ui-monospace, Consolas, monospace; letter-spacing: .3px; }
[data-copy], .cl .tracking-code { cursor: copy; }
.cl-toast {
  position: fixed; left: 50%; bottom: calc(90px + var(--cl-safe-b)); transform: translateX(-50%) translateY(20px); opacity: 0;
  padding: .6rem 1.2rem; border-radius: 12px; background: #1f2440; border: 1px solid var(--cl-line); color: #fff;
  z-index: 90; transition: .25s; pointer-events: none; font-size: .9rem;
}
.cl-toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* bottom nav */
.cl-bnav { display: none; }

/* install sheet */
.cl-install { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, .6); backdrop-filter: blur(4px); }
.cl-install[hidden] { display: none; }
.cl-install__sheet {
  position: relative; width: min(520px, 100%); max-height: 92vh; overflow-y: auto; padding: 1.4rem 1.4rem calc(1.4rem + var(--cl-safe-b));
  border-radius: 26px 26px 0 0; background: #141828; border: 1px solid var(--cl-line); display: flex; flex-direction: column; gap: 1rem;
  animation: clUp .3s ease-out;
}
@keyframes clUp { from { transform: translateY(40px); opacity: 0; } }
.cl-install__close { position: absolute; top: .8rem; left: .8rem; background: var(--cl-glass2); border: 0; color: var(--cl-text); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.cl-install__head { display: flex; gap: 1rem; align-items: center; padding-left: 2.4rem; }
.cl-install__head img { border-radius: 16px; flex: none; }
.cl-install__head h2 { font-size: 1.1rem; }
.cl-install__head p { margin: .2rem 0 0; color: var(--cl-muted); font-size: .85rem; }
.cl-install__body { display: flex; flex-direction: column; gap: .8rem; }
.cl-install__body[hidden] { display: none; }
.cl-install__arrow { text-align: center; color: var(--cl-blue); animation: clBounce 1.2s infinite; }
@keyframes clBounce { 50% { transform: translateY(6px); } }

/* welcome */
.cl--welcome { display: flex; justify-content: center; }
.cl-welcome { position: relative; z-index: 1; max-width: 920px; width: 100%; padding: 2rem 1.2rem 3rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
.cl-welcome__gem { margin: 1rem 0 0; }
.cl-welcome h1 { font-size: 2rem; }
.cl-welcome__lead { max-width: 560px; color: #c8cdea; margin: 0; }
.cl-welcome__cta { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; margin: .6rem 0; }
.cl-welcome__perks { list-style: none; padding: 0; margin: 1rem 0; width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.cl-welcome__perks li { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: 1.2rem 1rem; border-radius: var(--cl-radius); background: var(--cl-glass); border: 1px solid var(--cl-line); }
.cl-welcome__perks .ci { color: #a9b8ff; }
.cl-welcome__perks small { color: var(--cl-muted); }

/* pager (shared macro) */
.pg-wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; color: var(--cl-muted); font-size: .85rem; }
.pg-info { margin: 0; }
.pg { display: flex; gap: .3rem; flex-wrap: wrap; }
.pg a, .pg span { padding: .3rem .7rem; border-radius: 9px; background: var(--cl-glass); border: 1px solid var(--cl-line); }
.pg .is-active { background: linear-gradient(135deg, var(--cl-blue), var(--cl-violet)); color: #fff; }
.pg .is-disabled { opacity: .4; }

/* responsive */
@media (max-width: 1200px) {
  .cl-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cl-stepper { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 1.2rem; }
  .cl-stepper li::after { display: none; }
}
@media (max-width: 1000px) {
  :root { --cl-side: 0px; }
  .cl-side { width: 280px; transform: translateX(105%); transition: transform .3s; }
  body.cl-side-open .cl-side { transform: none; }
  .cl-only-m { display: inline-flex !important; }
  .cl-search { display: none; }
  .cl-user__meta { display: none; }
  .cl-top { padding: .7rem 1rem; padding-top: calc(.7rem + env(safe-area-inset-top, 0px)); }
  .cl-brand--top { margin-left: auto; }
  .cl-user { margin-right: 0; }
  .cl-content { padding: 1rem 1rem calc(92px + var(--cl-safe-b)); gap: 1rem; }
  .cl-grid, .cl-grid--2 { grid-template-columns: minmax(0, 1fr); }
  .cl-span-2 { grid-column: auto; }
  .cl-hero { grid-template-columns: auto 1fr; padding: 1.2rem; gap: 1rem; }
  .cl-hero__gem .gem { width: 92px; height: 80px; }
  .cl-hero h1 { font-size: 1.3rem; }
  .cl-hero__balance { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; justify-content: space-between; text-align: right; }
  .cl-hero__balance strong { font-size: 1.9rem; }
  .cl-tiles, .cl-rates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cl-balance, .cl-wallet { grid-template-columns: minmax(0, 1fr); }
  .cl-acts { grid-template-columns: minmax(0, 1fr); }
  .cl-bnav {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 45; right: 0; left: 0; bottom: 0;
    padding: .45rem .4rem calc(.45rem + var(--cl-safe-b)); background: rgba(14, 16, 26, .92); backdrop-filter: blur(18px);
    border-top: 1px solid var(--cl-line);
  }
  .cl-bnav a { display: flex; flex-direction: column; align-items: center; gap: .1rem; font-size: .72rem; color: var(--cl-muted); padding: .2rem 0; }
  .cl-bnav a.is-active { color: #fff; }
  .cl-bnav a.is-active .ci { color: #a9b8ff; }
  .cl-bnav__gem .gem { margin-top: -22px; padding: 8px; width: 52px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, #25307a, #3b1f7a); border: 1px solid rgba(139, 92, 246, .5); }
  .cl-cta { flex-direction: column; text-align: center; }
  .cl-invite, .cl-profile, .cl-app-card { flex-direction: column; text-align: center; }
  .cl-invite__body { align-items: center; }
}
@media (max-width: 640px) {
  body.cl { font-size: 14px; }
  .cl-stats, .cl-stats--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .cl-stat { padding: .9rem; }
  .cl-stat strong { font-size: 1.3rem; }
  .cl-stat__icon { width: 38px; height: 38px; }
  .cl-stepper { grid-template-columns: minmax(0, 1fr); text-align: right; }
  .cl-stepper li { flex-direction: row; align-items: flex-start; text-align: right; gap: .8rem; }
  .cl-stepper__dot { flex: none; }
  .cl-balance__facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cl-stats > .cl-stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .cl-table thead { display: none; }
  .cl-table, .cl-table tbody { display: block; }
  .cl-table tr { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .35rem .8rem; padding: .75rem 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .cl-table tr:last-child { border-bottom: 0; }
  .cl-table td { padding: 0; border: 0; }
  .cl-table td:first-child { grid-column: 1 / -1; }
  .cl-table td:nth-child(2) { color: var(--cl-muted); font-size: .8rem; }
  .cl-req { flex-wrap: wrap; }
  .cl-req__meta { flex-direction: row; flex-wrap: wrap; width: 100%; justify-content: flex-start; align-items: center; padding-right: 66px; }
  .cl-order__foot { flex-direction: column; align-items: stretch; }
  .cl-order__actions { justify-content: flex-end; }
  .cl-welcome__perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cl-welcome h1 { font-size: 1.5rem; }
  .cl-bigcode { font-size: 1.4rem; }
  .cl-page-head h1 { font-size: 1.2rem; }
}
@media (display-mode: standalone) {
  [data-install-open] { display: none !important; }
}

/* store chip, lucky wheel, one-time codes */
.cl-chip--store { padding: .3rem .85rem; font-weight: 700; color: #fff; background: linear-gradient(135deg, rgba(56, 214, 255, .28), rgba(79, 124, 255, .35)); border-color: rgba(56, 214, 255, .45); transition: .2s; }
.cl-chip--store:hover { transform: translateY(-1px); border-color: var(--cl-cyan); }
.cl-tiles { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.cl-fun { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 1rem; align-items: stretch; }
.cl-fun > :only-child { grid-column: 1 / -1; }
.cl-wheel {
  display: flex; align-items: center; gap: 1.6rem; overflow: hidden; position: relative;
  background: radial-gradient(360px 260px at 20% 50%, rgba(139, 92, 246, .22), transparent 70%), var(--cl-glass);
}
.cl-wheel__stage { position: relative; flex: none; width: 260px; aspect-ratio: 1; }
.cl-wheel__disc {
  all: unset; box-sizing: border-box; display: block; width: 100%; height: 100%; border-radius: 50%; cursor: pointer; position: relative;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .06), 0 0 0 7px rgba(139, 92, 246, .45), 0 18px 50px rgba(79, 124, 255, .35);
  -webkit-tap-highlight-color: transparent;
}
.cl-wheel__disc:focus-visible { outline: 3px solid var(--cl-cyan); outline-offset: 6px; }
.cl-wheel__disc svg { display: block; width: 100%; height: 100%; transition: transform 4.6s cubic-bezier(.17, .84, .2, 1); will-change: transform; }
.cl-wheel__txt { fill: #fff; font: 700 8.5px Vazirmatn, Tahoma, sans-serif; paint-order: stroke; stroke: rgba(0, 0, 0, .25); stroke-width: .6px; }
.cl-wheel__hub {
  position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 76px; height: 76px; border-radius: 50%;
  display: grid; place-items: center; align-content: center; gap: 1px; background: radial-gradient(circle at 35% 30%, #2b3170, #12152b);
  border: 3px solid rgba(255, 255, 255, .85); box-shadow: 0 6px 20px rgba(0, 0, 0, .45); pointer-events: none;
}
.cl-wheel__hub b { font-size: .72rem; color: #fff; }
.cl-wheel__hub .gem { width: 28px; height: 25px; filter: none; }
.cl-wheel__pointer {
  position: absolute; z-index: 2; top: -14px; left: 50%; transform: translateX(-50%); width: 30px; height: 38px; pointer-events: none;
  background: linear-gradient(180deg, #fff, #ffd082); clip-path: polygon(50% 100%, 0 0, 100% 0); filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .5));
}
.cl-wheel.is-spinning .cl-wheel__disc { cursor: progress; }
.cl-wheel.is-ready .cl-wheel__disc { animation: clWheelPulse 2.4s ease-in-out infinite; }
@keyframes clWheelPulse { 50% { box-shadow: 0 0 0 6px rgba(255, 255, 255, .08), 0 0 0 9px rgba(56, 214, 255, .55), 0 18px 60px rgba(56, 214, 255, .45); } }
.cl-wheel__side { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: .45rem; }
.cl-wheel__side h2 { display: flex; align-items: center; gap: .45rem; margin: 0; font-size: 1.25rem; }
.cl-wheel__side p { margin: 0; color: #c8cdea; }
.cl-wheel__status b { color: #ffd082; }
.cl-wheel__status b.is-ready { color: #5ee3b0; }
.cl-wheel__last { font-size: .82rem; color: var(--cl-muted) !important; }
.cl-wheel__side .cl-btn { margin-top: .4rem; }
.cl-wheel__side .cl-btn[disabled] { opacity: .5; cursor: not-allowed; }

.cl-codebox { display: flex; flex-direction: column; gap: .6rem; background: linear-gradient(150deg, rgba(245, 181, 68, .12), rgba(139, 92, 246, .1)); border-color: rgba(245, 181, 68, .3); }
.cl-codebox h2 { display: flex; align-items: center; gap: .45rem; }
.cl-codebox p { margin: 0; color: #c8cdea; font-size: .9rem; }
.cl-codebox__form { display: flex; gap: .5rem; }
.cl-codebox__form input {
  flex: 1; min-width: 0; padding: .7rem .9rem; border-radius: 12px; border: 1px solid rgba(245, 181, 68, .4); background: rgba(10, 12, 24, .6);
  color: #fff; font: 700 1rem/1.2 ui-monospace, Consolas, monospace; letter-spacing: .08em; text-align: center; text-transform: uppercase;
}
.cl-codebox__form input:focus { outline: none; border-color: var(--cl-gold); box-shadow: 0 0 0 3px rgba(245, 181, 68, .2); }
.cl-codebox__hint { display: flex; align-items: center; gap: .35rem; color: #5ee3b0 !important; }
.cl-vouchers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.cl-vouchers li {
  display: flex; align-items: center; gap: .8rem; padding: .75rem .9rem; border-radius: 14px;
  background: rgba(245, 181, 68, .08); border: 1px dashed rgba(245, 181, 68, .45);
}
.cl-vouchers__val { font-weight: 800; color: #ffd082; min-width: 90px; }
.cl-vouchers__meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cl-vouchers__meta small { color: var(--cl-muted); font-size: .76rem; }

.cl-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 1rem; background: rgba(5, 6, 12, .72); backdrop-filter: blur(6px); }
.cl-modal[hidden], .cl-modal [hidden] { display: none !important; }
.cl-modal__box {
  width: min(380px, 100%); text-align: center; padding: 1.6rem 1.4rem 1.3rem; border-radius: 22px; animation: clPop .35s ease-out;
  background: linear-gradient(160deg, #1d2150, #121528); border: 1px solid rgba(139, 92, 246, .45); box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
@keyframes clPop { from { transform: scale(.85); opacity: 0; } }
.cl-modal__box h3 { margin: .4rem 0 .3rem; font-size: 1.3rem; }
.cl-modal__box p { margin: 0 0 .6rem; color: #c8cdea; }
.cl-modal__code { font: 800 1.1rem ui-monospace, Consolas, monospace; color: #ffd082 !important; letter-spacing: .06em; direction: ltr; }
.cl-modal__acts { display: flex; gap: .6rem; justify-content: center; margin-top: .6rem; }

@media (max-width: 1000px) {
  .cl-fun { grid-template-columns: minmax(0, 1fr); }
  .cl-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .cl-wheel { flex-direction: column; text-align: center; gap: 1.1rem; padding-top: 1.6rem; }
  .cl-wheel__stage { width: min(280px, 80vw); }
  .cl-wheel__side { align-items: center; }
  .cl-wheel__side .cl-btn { width: 100%; justify-content: center; }
  .cl-codebox__form { flex-direction: column; }
  .cl-vouchers li { flex-wrap: wrap; }
}