/* Wasel API — own look for the public site. Loaded LAST (after premium.css).
   Same calm dark base, different shapes: floating nav, pill buttons,
   soft-glass cards, rounded fields, dotted background. */

:root {
  --font: "Readex Pro", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-display: "Readex Pro", "IBM Plex Sans Arabic", "Segoe UI", sans-serif;
  --font-latin: "Readex Pro", "Segoe UI", sans-serif;
  --w-violet: #8f7dff;
  --w-violet-2: #6d5cf6;
  --w-lilac: #c9bfff;
  --w-line: rgba(143, 125, 255, .14);
  --w-line-strong: rgba(143, 125, 255, .32);
  --w-glass: linear-gradient(180deg, rgba(143, 125, 255, .065), rgba(255, 255, 255, .012));
  --w-radius: 22px;
}

/* ---------- background: soft dots instead of lines ---------- */
body {
  background:
    radial-gradient(60rem 30rem at 85% -8%, rgba(109, 92, 246, .16), transparent 60%),
    radial-gradient(40rem 26rem at 0% 30%, rgba(80, 60, 200, .08), transparent 60%),
    var(--bg);
  line-height: 1.75;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(201, 191, 255, .07) 1px, transparent 1.4px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
}
.hero-grid-lines { display: none !important; }

/* ---------- floating navigation ---------- */
.nav {
  background: transparent; border-bottom: 0; box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  padding-top: 12px;
}
.nav-inner {
  background: rgba(13, 12, 30, .72);
  border: 1px solid var(--w-line);
  border-radius: 20px;
  padding: .4rem .55rem .4rem 1rem;
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .35);
}
.nav-links > a:not(.btn) { border-radius: 999px; color: #b4b0d0; }
.nav-links > a:not(.btn):hover { background: rgba(143, 125, 255, .1); color: #fff; }
.logo-brand { border-radius: 12px; }
.logo-wordmark {
  letter-spacing: .02em; font-weight: 700;
  background: linear-gradient(90deg, #ffffff 0%, var(--w-lilac) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.logo-lockup small { color: #7d78a6; letter-spacing: .08em; }

/* ---------- buttons: pills ---------- */
.btn { border-radius: 999px; padding: .6rem 1.35rem; font-weight: 600; }
.btn:hover { transform: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--w-violet) 0%, var(--w-violet-2) 100%);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(143, 125, 255, .1), 0 10px 26px rgba(109, 92, 246, .32);
}
.btn-primary:hover {
  color: #fff; filter: brightness(1.07);
  box-shadow: 0 0 0 6px rgba(143, 125, 255, .14), 0 14px 32px rgba(109, 92, 246, .4);
}
.btn-secondary, .btn-glass {
  background: transparent; color: #e7e4ff;
  border: 1px solid var(--w-line-strong);
}
.btn-secondary:hover, .btn-glass:hover { background: rgba(143, 125, 255, .1); border-color: rgba(143, 125, 255, .5); color: #fff; }
.text-link { color: var(--w-lilac); }

/* ---------- kickers / small labels: pill badges ---------- */
.section-kicker, .premium-eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .28rem .8rem; border-radius: 999px;
  background: rgba(143, 125, 255, .1); border: 1px solid var(--w-line);
  color: var(--w-lilac); font-weight: 600;
}
.section-kicker::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--w-violet); box-shadow: 0 0 0 3px rgba(143, 125, 255, .2);
}

/* ---------- headings ---------- */
h1, h2, h3 { letter-spacing: -.01em; }
.premium-hero h1 { font-weight: 700; line-height: 1.25; }

/* ---------- cards: soft glass, bigger radius ---------- */
:is(.bento-card, .premium-price-card, .final-cta-card, .auth-card, .product-window,
    .premium-code-window, .faq-premium-grid details, .premium-accordion details,
    .floating-api-card, .floating-security-card, .guide-block, .dl-group, .balance-card) {
  border-radius: var(--w-radius);
  border: 1px solid var(--w-line);
  background: var(--w-glass), var(--bg-card);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
:is(.bento-card, .premium-price-card):hover {
  border-color: var(--w-line-strong);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .3);
}
.bento-icon, .step-icon {
  border-radius: 14px;
  background: rgba(143, 125, 255, .12); border: 1px solid var(--w-line); color: var(--w-lilac);
}
.premium-price-card.is-featured { border-color: rgba(143, 125, 255, .45); box-shadow: 0 0 0 1px rgba(143, 125, 255, .2), 0 24px 60px rgba(109, 92, 246, .18); }

/* ---------- forms: taller rounded fields ---------- */
:is(.form-group, .auth-card) :is(input:not([type=checkbox]):not([type=radio]), select, textarea) {
  min-height: 50px; border-radius: 14px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--w-line);
  transition: border-color .15s, box-shadow .15s;
}
:is(.form-group, .auth-card) :is(input, select, textarea):focus {
  outline: none; border-color: var(--w-violet);
  box-shadow: 0 0 0 4px rgba(143, 125, 255, .16);
}
.auth-card { padding: 2rem 1.75rem; }
.auth-submit { border-radius: 999px !important; }

/* ---------- alerts ---------- */
.alert { border-radius: 16px; }

/* ---------- dashboard buttons ---------- */
.dl-btn, .dash-hub-btn { border-radius: 999px; }

/* ---------- footer: soft panel ---------- */
.footer {
  border-top: 0;
  background: linear-gradient(180deg, transparent, rgba(109, 92, 246, .06));
  position: relative;
}
.footer::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(1180px, calc(100% - 48px)); height: 1px;
  background: linear-gradient(90deg, transparent, var(--w-line-strong), transparent);
}

/* ---------- mobile ---------- */
@media (max-width: 760px) {
  .nav { padding: 8px 0 0; }
  .nav-inner { border-radius: 16px; padding: .35rem .45rem .35rem .8rem; }
  .auth-card { padding: 1.5rem 1.1rem; }
}

/* ---------- hero: Readex is wider than Plex, keep the headline to 3 lines ---------- */
@media (min-width: 981px) {
  .premium-hero h1 { font-size: clamp(2.6rem, 4.4vw, 3.7rem); max-width: 760px; }
  .premium-hero-actions .btn { white-space: nowrap; padding-inline: 1rem; font-size: .86rem; }
  .premium-hero-actions { gap: .6rem; }
  .premium-hero-actions .btn { padding-inline: 1.15rem; }
}
