:root {
  --teal: #0d6e6e;
  --teal-deep: #073f3f;
  --teal-dark: #052f2f;
  --teal-soft: #e4f2ee;
  --gold: #c8a24a;
  --gold-deep: #a9822f;
  --gold-soft: #f7edd6;
  --cream: #f7f4ec;
  --paper: #fffdf8;
  --ink: #163737;
  --ink-soft: #315757;
  --muted: #6d8382;
  --line: rgba(13, 110, 110, .12);
  --line-strong: rgba(13, 110, 110, .22);
  --danger: #b3413b;
  --success: #1f7a58;
  --shadow-sm: 0 2px 10px rgba(23, 55, 55, .05);
  --shadow: 0 14px 40px -18px rgba(10, 79, 79, .3);
  --shadow-lg: 0 30px 70px -30px rgba(7, 63, 63, .45);
  --radius: 18px;
  --radius-lg: 26px;
  --header-h: 64px;
  --tab-h: 68px;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Marcellus", Georgia, serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1000px 600px at 85% -10%, rgba(200, 162, 74, .14), transparent 60%),
    radial-gradient(800px 500px at -10% 20%, rgba(13, 110, 110, .1), transparent 55%),
    var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="ur"] body { font-family: "Noto Naskh Arabic", "Manrope", serif; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.16; }
p { margin: 0; }
::selection { background: var(--gold-soft); color: var(--teal-dark); }

.skip-link {
  position: fixed; inset-inline-start: 12px; top: -100px; z-index: 200;
  background: var(--teal-dark); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { top: 12px; }

.app-shell {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(13, 110, 110, .05), 0 40px 90px -50px rgba(7, 63, 63, .45);
  padding-bottom: calc(var(--tab-h) + var(--safe-bottom) + 18px);
}
@media (min-width: 760px) {
  body { padding: 22px 0; }
  .app-shell { min-height: calc(100dvh - 44px); border-radius: 34px; overflow: clip; padding-bottom: calc(var(--tab-h) + 22px); }
  .app-header { border-radius: 34px 34px 0 0; }
}

.app-header {
  position: sticky; top: 0; z-index: 60;
  padding-top: var(--safe-top);
  background: linear-gradient(128deg, #063a3a 0%, #0a5252 46%, #0d6e6e 100%);
  color: #fff;
  overflow: hidden;
  box-shadow: 0 10px 30px -20px rgba(4, 40, 40, .9);
}
.app-header__bar {
  position: relative; z-index: 2;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 16px;
}
.app-header__glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(280px 160px at 88% 0%, rgba(200, 162, 74, .35), transparent 70%),
    radial-gradient(220px 140px at 10% 120%, rgba(255, 255, 255, .12), transparent 70%);
}
.app-header__glow::after {
  content: ""; position: absolute; inset-inline-end: -30px; top: -40px; width: 150px; height: 150px;
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(255, 255, 255, .04), 0 0 0 44px rgba(255, 255, 255, .03);
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.brand__mark {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center;
  background: transparent; border-radius: 50%;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
}
.brand__mark img { width: 40px; height: 40px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.02; min-width: 0; }
.brand__text strong { font-family: var(--font-display); font-size: 1.14rem; letter-spacing: .1em; color: #fff; }
.brand__text small { font-size: .54rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .58); white-space: nowrap; }
.app-header__actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  min-width: 40px; height: 40px; padding: 0 10px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .1); color: #fff;
  font-size: .74rem; font-weight: 800; letter-spacing: .08em;
  backdrop-filter: blur(8px);
  transition: background .2s, transform .2s;
}
.icon-btn:hover { background: rgba(255, 255, 255, .18); }
.icon-btn:active { transform: scale(.96); }
.icon-btn svg { width: 19px; height: 19px; }

.view { padding: 18px 16px 12px; outline: none; }
@media (min-width: 600px) { .view { padding: 22px 24px 12px; } }
.screen { animation: fade-up .4s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .screen, .boot__line::after { animation: none !important; }
  html { scroll-behavior: auto; }
}

.boot { min-height: 55vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: var(--muted); }
.boot img { opacity: .9; animation: breathe 2.2s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
.boot__line { width: 130px; height: 3px; border-radius: 99px; background: var(--teal-soft); overflow: hidden; position: relative; }
.boot__line::after { content: ""; position: absolute; inset: 0; width: 45%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), var(--gold)); animation: slide 1.2s ease-in-out infinite; }
@keyframes slide { 0% { transform: translateX(-120%); } 100% { transform: translateX(320%); } }
.boot p { font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 720px; z-index: 70;
  min-height: calc(var(--tab-h) + var(--safe-bottom));
  padding: 6px 10px calc(6px + var(--safe-bottom));
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
  background: rgba(255, 253, 248, .92);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 -10px 30px -22px rgba(7, 63, 63, .5);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 5px 2px; border-radius: 14px; color: #7b8f8e;
  font-size: .61rem; font-weight: 800; letter-spacing: .02em;
  transition: color .2s, transform .2s;
}
.tabbar a svg { width: 21px; height: 21px; transition: transform .2s; }
.tabbar a span:first-child { display: grid; place-items: center; width: 36px; height: 26px; border-radius: 99px; transition: background .25s, color .2s; }
.tabbar a:hover { color: var(--teal); }
.tabbar a.active { color: var(--teal-deep); }
.tabbar a.active span:first-child { background: var(--teal-soft); color: var(--teal); }
.tabbar a.active svg { transform: translateY(-1px) scale(1.04); }

.hero {
  position: relative; overflow: hidden; color: #fff;
  border-radius: var(--radius-lg);
  padding: 24px 22px 20px;
  background:
    radial-gradient(220px 180px at 90% 10%, rgba(200, 162, 74, .38), transparent 65%),
    linear-gradient(150deg, #073f3f 0%, #0a5a5a 55%, #0d6e6e 100%);
  box-shadow: var(--shadow-lg);
}
.hero::before {
  content: ""; position: absolute; inset-inline-end: -34px; bottom: -60px;
  width: 190px; height: 190px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 0 0 26px rgba(255, 255, 255, .035), 0 0 0 52px rgba(255, 255, 255, .025);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px);
  background-size: 18px 18px; mask-image: linear-gradient(120deg, transparent 40%, #000 100%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero__logo { width: 82px; height: 82px; object-fit: contain; background: transparent; border-radius: 50%; padding: 0; box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .45); margin-bottom: 16px; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: .66rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.eyebrow svg { width: 14px; height: 14px; }
.hero h1 { font-family: var(--font-display); font-size: clamp(1.7rem, 7.2vw, 2.45rem); font-weight: 400; line-height: 1.08; margin: 10px 0 8px; letter-spacing: .01em; }
.hero h1 em { font-style: normal; color: #f0d492; }
.hero p { color: rgba(255, 255, 255, .74); font-size: .92rem; line-height: 1.6; max-width: 44ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 14px 20px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .14); }
.hero__trust span { display: inline-flex; align-items: center; gap: 7px; font-size: .72rem; font-weight: 700; color: rgba(255, 255, 255, .78); }
.hero__trust svg { width: 16px; height: 16px; color: var(--gold); }

.hero--compact { padding: 20px; }
.hero--compact h1 { font-size: clamp(1.5rem, 6vw, 2rem); }
.hero--compact .hero__logo { width: 62px; height: 62px; border-radius: 18px; margin-bottom: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 18px; border-radius: 14px; border: 1px solid transparent;
  font-size: .86rem; font-weight: 800; letter-spacing: .01em;
  transition: transform .18s, box-shadow .2s, background .2s, color .2s;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn:focus-visible, .tabbar a:focus-visible, .icon-btn:focus-visible, .quick:focus-visible, .list-row:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.btn-primary { background: linear-gradient(135deg, var(--teal), #085858); color: #fff; box-shadow: 0 12px 26px -14px rgba(13, 110, 110, .9); }
.btn-primary:hover { box-shadow: 0 16px 32px -14px rgba(13, 110, 110, 1); }
.btn-gold { background: linear-gradient(135deg, #e3c579, var(--gold)); color: #3a2c0b; box-shadow: 0 12px 26px -14px rgba(200, 162, 74, .8); }
.btn-outline { background: transparent; border-color: var(--line-strong); color: var(--teal); }
.btn-outline:hover { background: var(--teal-soft); }
.btn-light { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); color: #fff; }
.btn-light:hover { background: rgba(255, 255, 255, .24); }
.btn-ghost { background: var(--teal-soft); color: var(--teal-deep); }
.btn-danger { background: #fbeae8; color: var(--danger); }
.btn-block { width: 100%; }
.btn-sm { min-height: 38px; padding: 0 13px; font-size: .75rem; border-radius: 11px; }
.btn-xs { min-height: 32px; padding: 0 10px; font-size: .68rem; border-radius: 9px; }
.btn[disabled], .btn.is-loading { opacity: .65; pointer-events: none; }
.btn.is-loading svg { animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card--pad { padding: 18px; }
.section { margin-top: 24px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-head h2 { font-family: var(--font-display); font-size: 1.24rem; font-weight: 400; color: var(--teal-deep); }
.section-head p { font-size: .76rem; color: var(--muted); margin-top: 4px; }
.section-head .link { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 800; color: var(--teal); }
.section-head .link svg { width: 14px; height: 14px; }
[dir="rtl"] .section-head .link svg { transform: scaleX(-1); }

.chip-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chip-row::-webkit-scrollbar, .hscroll::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  min-height: 34px; padding: 0 13px; border-radius: 99px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-soft); font-size: .73rem; font-weight: 800;
}
.chip.is-active { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }
.chip svg { width: 14px; height: 14px; }
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 99px;
  font-size: .62rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  background: var(--teal-soft); color: var(--teal-deep);
}
.badge--gold { background: var(--gold-soft); color: #7b5b13; }
.badge--success { background: #e2f4eb; color: var(--success); }
.badge--danger { background: #fbeae8; color: var(--danger); }
.badge--muted { background: #eef1ef; color: var(--muted); }
.badge svg { width: 12px; height: 12px; }

.hscroll { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 8px; margin: 0 -2px; scrollbar-width: none; }
.hscroll > * { scroll-snap-align: start; }

.pkg-card { width: min(84vw, 310px); flex: none; overflow: hidden; display: flex; flex-direction: column; }
.pkg-card__media { position: relative; aspect-ratio: 16 / 10; background: var(--teal-soft); overflow: hidden; }
.pkg-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.pkg-card:hover .pkg-card__media img { transform: scale(1.05); }
.pkg-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(4, 40, 40, .62), transparent 55%); }
.pkg-card__price {
  position: absolute; z-index: 2; inset-inline-start: 12px; bottom: 12px;
  background: rgba(255, 253, 248, .95); color: var(--teal-deep); border-radius: 10px;
  padding: 6px 10px; font-size: .84rem; font-weight: 800; backdrop-filter: blur(6px);
}
.pkg-card__price small { font-size: .58rem; font-weight: 700; color: var(--muted); margin-inline-end: 3px; }
.pkg-card__body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pkg-card__body h3 { font-family: var(--font-display); font-size: 1.06rem; font-weight: 400; color: var(--ink); }
.pkg-card__meta { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: .7rem; color: var(--muted); font-weight: 600; }
.pkg-card__meta span { display: inline-flex; align-items: center; gap: 4px; }
.pkg-card__meta svg { width: 13px; height: 13px; }
.pkg-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 6px; }

.pkg-list { display: grid; gap: 14px; }
.pkg-wide { display: grid; grid-template-columns: 112px 1fr; overflow: hidden; }
.pkg-wide__media { position: relative; min-height: 128px; background: var(--teal-soft); }
.pkg-wide__media img { width: 100%; height: 100%; object-fit: cover; }
.pkg-wide__body { padding: 13px 14px; display: flex; flex-direction: column; gap: 5px; }
.pkg-wide__body h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 400; }
.pkg-wide__body p { font-size: .7rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pkg-wide__price { color: var(--teal); font-weight: 800; font-size: .84rem; margin-top: auto; }

.post-card { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 10px; align-items: center; }
.post-card__media { width: 92px; height: 92px; border-radius: 12px; overflow: hidden; background: var(--teal-soft); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card h3 { font-family: var(--font-display); font-size: .98rem; font-weight: 400; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card p { font-size: .7rem; color: var(--muted); margin-top: 5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card time { display: block; font-size: .64rem; color: var(--muted); margin-top: 6px; font-weight: 700; }

.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 520px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 14px; border-radius: 15px; background: #fff; border: 1px solid var(--line); }
.stat strong { display: block; font-family: var(--font-display); font-size: 1.35rem; font-weight: 400; color: var(--teal-deep); }
.stat span { display: block; font-size: .64rem; color: var(--muted); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin-top: 3px; }
.stat--gold strong { color: var(--gold-deep); }

.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.quick {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 6px; border-radius: 15px; border: 1px solid var(--line); background: #fff;
  font-size: .64rem; font-weight: 800; color: var(--ink-soft); text-align: center;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.quick:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.quick__icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); }
.quick__icon[data-tone="gold"] { background: var(--gold-soft); color: var(--gold-deep); }
.quick__icon svg { width: 19px; height: 19px; }

.wallet-hero {
  position: relative; overflow: hidden; color: #fff; border-radius: var(--radius-lg); padding: 22px;
  background:
    radial-gradient(200px 150px at 95% 10%, rgba(200, 162, 74, .35), transparent 65%),
    linear-gradient(150deg, #063a3a, #0b5d5d);
  box-shadow: var(--shadow);
}
.wallet-hero::after { content: ""; position: absolute; inset-inline-end: -40px; bottom: -70px; width: 180px; height: 180px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 0 0 24px rgba(255, 255, 255, .03); }
.wallet-hero > * { position: relative; z-index: 1; }
.wallet-hero .eyebrow { font-size: .62rem; }
.wallet-hero h2 { font-family: var(--font-display); font-size: 2.2rem; font-weight: 400; margin: 8px 0 3px; }
.wallet-hero p { font-size: .72rem; color: rgba(255, 255, 255, .66); }
.wallet-hero__row { display: flex; gap: 20px; margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .14); }
.wallet-hero__row div strong { display: block; font-size: .95rem; }
.wallet-hero__row div span { font-size: .6rem; color: rgba(255, 255, 255, .6); text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.wallet-hero .btn { margin-top: 16px; }

.progress { height: 8px; border-radius: 99px; background: var(--teal-soft); overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), #2c9a8c); transition: width .8s; }
.progress--gold span { background: linear-gradient(90deg, var(--gold), #e6c879); }

.list { display: flex; flex-direction: column; gap: 8px; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 13px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.list-row__icon { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); }
.list-row__icon svg { width: 18px; height: 18px; }
.list-row__main { flex: 1; min-width: 0; }
.list-row__main strong { display: block; font-size: .82rem; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row__main small { display: block; font-size: .68rem; color: var(--muted); margin-top: 2px; }
.list-row__end { text-align: end; flex: none; }
.list-row__end strong { display: block; font-size: .82rem; }
.list-row__end small { font-size: .62rem; color: var(--muted); }
.list-row__chevron { width: 16px; height: 16px; color: var(--muted); flex: none; }
[dir="rtl"] .list-row__chevron { transform: scaleX(-1); }

.auth-wrap { max-width: 460px; margin: 10px auto 0; }
.auth-card { padding: 22px; }
.auth-card__head { text-align: center; margin-bottom: 16px; }
.auth-card__head img { width: 58px; height: 58px; object-fit: contain; margin: 0 auto 10px; }
.auth-card__head h1 { font-family: var(--font-display); font-size: 1.55rem; font-weight: 400; color: var(--teal-deep); }
.auth-card__head p { font-size: .78rem; color: var(--muted); margin-top: 6px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--teal-soft); padding: 4px; border-radius: 12px; margin-bottom: 16px; }
.tabs button { min-height: 38px; border: 0; border-radius: 9px; background: transparent; font-size: .75rem; font-weight: 800; color: var(--muted); }
.tabs button.is-active { background: #fff; color: var(--teal-deep); box-shadow: 0 2px 8px rgba(7, 63, 63, .08); }

.field { margin-bottom: 13px; }
.field label { display: block; font-size: .7rem; font-weight: 800; color: var(--ink-soft); margin-bottom: 6px; letter-spacing: .02em; }
.field .hint { font-size: .65rem; color: var(--muted); margin-top: 5px; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 11px 13px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink);
  font-size: .85rem; transition: border-color .2s, box-shadow .2s;
  appearance: none;
}
.textarea { min-height: 96px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13, 110, 110, .12); }
.input::placeholder, .textarea::placeholder { color: #9aabaa; }
.select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 22px, calc(100% - 13px) 22px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-inline-end: 34px; }
[dir="rtl"] .select { background-position: 18px 22px, 13px 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .field-row { grid-template-columns: 1fr; } }
.checkline { display: flex; gap: 9px; align-items: flex-start; font-size: .7rem; color: var(--ink-soft); line-height: 1.5; }
.checkline input { width: 17px; height: 17px; accent-color: var(--teal); margin-top: 1px; flex: none; }
.form-note { font-size: .68rem; color: var(--muted); text-align: center; margin-top: 12px; }
.form-note a { color: var(--teal); font-weight: 800; }
.auth-switch { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: .74rem; color: var(--muted); margin-top: 16px; }
.auth-switch a { color: var(--teal); font-weight: 800; }
.otp-input { text-align: center; letter-spacing: .5em; font-size: 1.3rem; font-weight: 800; padding-inline-start: .5em; }

.profile-card { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 20px; color: #fff; background: linear-gradient(150deg, #073f3f, #0b5d5d); box-shadow: var(--shadow); }
.profile-card > * { position: relative; z-index: 1; }
.profile-card::after { content: ""; position: absolute; inset-inline-end: -40px; top: -50px; width: 170px; height: 170px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 0 0 22px rgba(255, 255, 255, .03); }
.profile-card__top { display: flex; align-items: center; gap: 13px; }
.avatar { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; flex: none; background: linear-gradient(135deg, #e6cd8d, var(--gold)); color: #3d2d0a; font-weight: 800; font-size: 1.05rem; overflow: hidden; border: 2px solid rgba(255, 255, 255, .35); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-card h2 { font-family: var(--font-display); font-size: 1.28rem; font-weight: 400; }
.profile-card p { font-size: .72rem; color: rgba(255, 255, 255, .65); margin-top: 2px; }
.profile-card__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.profile-card__meta .badge { background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .85); }
.profile-card__meta .badge--gold { background: rgba(200, 162, 74, .2); color: #f0d492; }

.team-row { display: flex; align-items: center; gap: 11px; padding: 12px; border-radius: 13px; background: #fff; border: 1px solid var(--line); }
.team-row__level { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); font-size: .64rem; font-weight: 800; }
.team-row__main { flex: 1; min-width: 0; }
.team-row__main strong { display: block; font-size: .8rem; }
.team-row__main small { display: block; font-size: .66rem; color: var(--muted); }

.referral-box { display: flex; gap: 8px; align-items: center; background: var(--gold-soft); border: 1px dashed rgba(169, 130, 47, .4); border-radius: 13px; padding: 10px 12px; }
.referral-box code { flex: 1; font-size: .74rem; font-weight: 800; color: #6b5011; word-break: break-all; }
.referral-box .btn { flex: none; }

.empty { text-align: center; padding: 34px 18px; color: var(--muted); }
.empty__icon { width: 62px; height: 62px; margin: 0 auto 12px; border-radius: 18px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); }
.empty__icon svg { width: 28px; height: 28px; }
.empty h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; color: var(--ink); }
.empty p { font-size: .76rem; margin: 6px auto 16px; max-width: 36ch; }

.rich { font-size: .88rem; line-height: 1.75; color: var(--ink-soft); }
.rich h2, .rich h3, .rich h4 { font-family: var(--font-display); font-weight: 400; color: var(--teal-deep); margin: 22px 0 8px; }
.rich p { margin: 0 0 12px; }
.rich ul, .rich ol { margin: 0 0 14px; padding-inline-start: 20px; }
.rich li { margin-bottom: 6px; }
.rich a { color: var(--teal); text-decoration: underline; }
.rich img { border-radius: 12px; margin: 10px 0; }
.rich blockquote { margin: 14px 0; padding: 12px 14px; border-inline-start: 3px solid var(--gold); background: var(--gold-soft); border-radius: 0 10px 10px 0; font-size: .84rem; }

.detail-media { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius-lg); overflow: hidden; background: var(--teal-soft); }
.detail-media img { width: 100%; height: 100%; object-fit: cover; }
.detail-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(4, 40, 40, .55), transparent 55%); }
.detail-title { margin-top: 14px; }
.detail-title h1 { font-family: var(--font-display); font-size: clamp(1.6rem, 6.4vw, 2.2rem); font-weight: 400; color: var(--teal-deep); }
.detail-title p { font-size: .78rem; color: var(--muted); margin-top: 6px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0; }
.detail-price { display: flex; align-items: baseline; gap: 8px; margin: 8px 0 14px; }
.detail-price strong { font-family: var(--font-display); font-size: 1.8rem; font-weight: 400; color: var(--teal); }
.detail-price small { font-size: .7rem; color: var(--muted); }
.include-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.include { display: flex; align-items: flex-start; gap: 8px; font-size: .73rem; color: var(--ink-soft); padding: 9px 10px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); }
.include svg { width: 14px; height: 14px; color: var(--success); flex: none; margin-top: 1px; }

.sticky-cta {
  position: sticky; bottom: calc(var(--tab-h) + var(--safe-bottom) + 10px); z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 20px 0 6px; padding: 11px 13px; border-radius: 16px;
  background: rgba(255, 253, 248, .94); border: 1px solid var(--line); backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px -24px rgba(7, 63, 63, .5);
}
.sticky-cta strong { display: block; font-size: .9rem; color: var(--teal-deep); }
.sticky-cta small { font-size: .64rem; color: var(--muted); }

.alert { padding: 12px 14px; border-radius: 12px; font-size: .76rem; line-height: 1.55; margin-bottom: 12px; }
.alert--info { background: var(--teal-soft); color: var(--teal-deep); }
.alert--warn { background: var(--gold-soft); color: #6b5011; }
.alert--danger { background: #fbeae8; color: var(--danger); }
.alert--success { background: #e2f4eb; color: var(--success); }

.toast-stack { position: fixed; z-index: 150; inset-inline: 0; bottom: calc(var(--tab-h) + var(--safe-bottom) + 14px); display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 14px; pointer-events: none; }
.toast {
  max-width: 460px; width: fit-content; display: flex; align-items: center; gap: 9px;
  background: var(--teal-dark); color: #fff; padding: 11px 15px; border-radius: 13px;
  font-size: .76rem; font-weight: 700; box-shadow: var(--shadow-lg);
  animation: toast-in .3s cubic-bezier(.2, .8, .2, 1) both;
}
.toast svg { width: 17px; height: 17px; color: #e6c879; flex: none; }
.toast.is-out { animation: toast-out .25s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px) scale(.97); } }

.sheet-root { position: fixed; inset: 0; z-index: 120; display: none; }
.sheet-root.is-open { display: block; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(5, 35, 35, .5); backdrop-filter: blur(3px); animation: fade .25s both; }
@keyframes fade { from { opacity: 0; } }
.sheet {
  position: absolute; inset-inline: 0; bottom: 0; margin: 0 auto; max-width: 720px; max-height: 88dvh;
  background: var(--paper); border-radius: 24px 24px 0 0; padding: 10px 18px calc(20px + var(--safe-bottom));
  overflow-y: auto; animation: sheet-in .34s cubic-bezier(.2, .8, .2, 1) both;
  box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, .35);
}
@keyframes sheet-in { from { transform: translateY(30px); opacity: .6; } to { transform: none; opacity: 1; } }
.sheet__grip { width: 42px; height: 4px; border-radius: 99px; background: var(--line-strong); margin: 0 auto 14px; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sheet__head h2 { font-family: var(--font-display); font-size: 1.32rem; font-weight: 400; color: var(--teal-deep); }
.sheet__head .icon-btn { background: var(--teal-soft); border-color: transparent; color: var(--teal); }
.lang-list { display: grid; gap: 6px; }
.lang-list button { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: .82rem; font-weight: 700; }
.lang-list button.is-active { border-color: var(--teal); background: var(--teal-soft); color: var(--teal-deep); }
.lang-list small { color: var(--muted); font-size: .66rem; }

.offline-bar { position: fixed; inset-inline: 0; top: 0; z-index: 300; background: #6b5011; color: #fff; text-align: center; font-size: .7rem; font-weight: 700; padding: 6px 10px; }
.noscript { padding: 30px; text-align: center; font-size: .9rem; }

.skeleton { position: relative; overflow: hidden; background: #eef1ec; border-radius: 10px; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent); animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.sk-hero { height: 210px; border-radius: var(--radius-lg); }
.sk-line { height: 12px; margin: 8px 0; }
.sk-card { height: 150px; border-radius: var(--radius); }

[dir="rtl"] .flip { transform: scaleX(-1); }
[dir="rtl"] .tabbar a.active svg, [dir="rtl"] .btn svg.flip { transform: scaleX(-1); }

.footer-note { text-align: center; font-size: .64rem; color: var(--muted); padding: 26px 16px 6px; line-height: 1.7; }
.footer-note a { color: var(--teal); font-weight: 800; }
.footer-note strong { color: var(--ink-soft); }

.stack { display: grid; gap: 11px; }
.card-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.card-row strong { line-height: 1.3; }
.meta-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.meta-grid div { display: grid; gap: 3px; }
.meta-grid span { font-size: .62rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.meta-grid strong { font-size: .8rem; }
.referral-card { position: relative; overflow: hidden; border-radius: var(--radius); padding: 20px; color: #fff; background: radial-gradient(120% 130% at 100% 0%, rgba(200, 162, 74, .3), transparent 55%), linear-gradient(135deg, #063a3a, #0b5c5c 60%, #0d6e6e); box-shadow: var(--shadow); }
.referral-card::after { content: ""; position: absolute; inset-inline-end: -30px; bottom: -46px; width: 140px; height: 140px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16); }
.referral-card .eyebrow { color: #e6cd8d; }
.referral-card h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.32rem; margin-top: 5px; }
.referral-card p { font-size: .75rem; color: rgba(255, 255, 255, .7); margin-top: 5px; line-height: 1.6; }
.referral-code { margin-top: 13px; font-family: var(--font-display); font-size: 1.34rem; letter-spacing: .18em; padding: 9px 13px; border-radius: 10px; border: 1px dashed rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08); text-align: center; }
.btn-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.btn-row .btn { flex: 1 1 auto; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 13px; background: var(--teal-soft); margin-bottom: 12px; }
.segmented a { text-align: center; padding: 9px 8px; border-radius: 10px; font-size: .74rem; font-weight: 800; color: var(--teal-deep); }
.segmented a.is-active { background: #fff; box-shadow: var(--shadow-sm); color: var(--teal); }
.otp-input { text-align: center; font-size: 1.24rem; font-weight: 800; letter-spacing: .42em; text-indent: .42em; }
.checkline { display: flex; align-items: flex-start; gap: 9px; font-size: .73rem; line-height: 1.5; color: var(--ink-soft); }
.checkline input { margin-top: 2px; width: 17px; height: 17px; accent-color: var(--teal); }
.pkg-card__foot svg { width: 15px; height: 15px; color: var(--teal); flex: none; }

[hidden] { display: none !important; }
.list-row { text-align: start; }
.role-choice { display: grid; gap: 7px; }
.role-option { display: flex; align-items: flex-start; gap: 9px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .2s, background .2s; }
.role-option:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }
.role-option input { margin-top: 3px; accent-color: var(--teal); }
.role-option span { display: grid; gap: 2px; }
.role-option strong { font-size: .78rem; }
.role-option small { font-size: .65rem; color: var(--muted); }

/* ==========================================================================
   Glassmorphism design layer - web app
   ========================================================================== */
body {
  background:
    radial-gradient(1000px 620px at 88% -12%, rgba(200, 162, 74, .2), transparent 60%),
    radial-gradient(900px 560px at -12% 18%, rgba(13, 110, 110, .16), transparent 58%),
    radial-gradient(800px 520px at 50% 116%, rgba(13, 110, 110, .1), transparent 62%),
    var(--cream);
  background-attachment: fixed;
}

.app-shell {
  background: linear-gradient(180deg, rgba(255, 253, 248, .94), rgba(247, 244, 236, .9));
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.card,
.pkg-wide,
.profile-card,
.stat,
.list-row,
.quick,
.auth-card,
.referral-card,
.referral-box,
.meta-grid > div,
.include,
.tabs,
.segmented {
  background: linear-gradient(150deg, rgba(255, 255, 255, .88), rgba(255, 255, 255, .62) 62%, rgba(255, 255, 255, .5));
  border: 1px solid rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 16px 40px -26px rgba(7, 63, 63, .35), inset 0 1px 0 rgba(255, 255, 255, .8);
}

.pkg-card {
  background: linear-gradient(150deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .64));
  border: 1px solid rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 20px 48px -28px rgba(7, 63, 63, .4), inset 0 1px 0 rgba(255, 255, 255, .8);
}

.card:hover,
.pkg-wide:hover,
.quick:hover,
.list-row:hover,
.pkg-card:hover {
  box-shadow: 0 26px 58px -30px rgba(7, 63, 63, .46), inset 0 1px 0 rgba(255, 255, 255, .9);
}

.app-header__bar {
  background: linear-gradient(120deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .02));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.tabbar {
  background: linear-gradient(180deg, rgba(255, 253, 248, .82), rgba(255, 253, 248, .94));
  -webkit-backdrop-filter: blur(24px) saturate(1.25);
  backdrop-filter: blur(24px) saturate(1.25);
  border-top: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 -14px 40px -30px rgba(7, 63, 63, .5);
}

.sheet {
  background: linear-gradient(160deg, rgba(255, 255, 255, .96), rgba(255, 253, 248, .9));
  -webkit-backdrop-filter: blur(26px) saturate(1.2);
  backdrop-filter: blur(26px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, .8);
}

.sticky-cta {
  background: linear-gradient(180deg, rgba(255, 253, 248, .6), rgba(255, 253, 248, .92));
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.field .input,
.field .select,
.field .textarea,
.input, .select, .textarea {
  background: rgba(255, 255, 255, .74);
  border-color: rgba(13, 110, 110, .16);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.wallet-hero,
.hero {
  box-shadow: 0 24px 60px -34px rgba(4, 40, 40, .8), inset 0 1px 0 rgba(255, 255, 255, .16);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .card, .pkg-wide, .pkg-card, .profile-card, .stat, .list-row, .quick, .auth-card,
  .referral-card, .referral-box, .meta-grid > div, .include, .tabs, .segmented, .sheet {
    background: rgba(255, 255, 255, .98);
  }
}
