/* shadow!mods — shared theme
   Used by every page in public/
*/

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #0e0a14; color: #fff; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
[hidden] { display: none !important; }

:root {
  --bg:        #0e0a14;
  --bg-2:      #16101f;
  --bg-3:      #1a1226;
  --line:      rgba(255,255,255,.06);
  --line-2:    rgba(255,255,255,.12);
  --line-3:    rgba(255,255,255,.18);
  --ink:       #fff;
  --ink-2:     #cfc6dc;
  --ink-3:     #b8b0c8;
  --ink-4:     #9a92aa;
  --mute:      #7a7286;
  --pink:      #ff8aa6;
  --pink-soft: #ffd4dd;
  --pink-deep: #2a0d18;
  --red:       #ff5a6e;
  --red-bg:    rgba(255,90,110,.07);
  --red-line:  #5a1820;
  --green:     #2ea24a;
  --gold:      #ffb04a;
}

body {
  font-family: "Manrope", "Helvetica Neue", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

.shell { max-width: 1280px; margin: 0 auto; padding: 0 40px 32px; }

/* ---------- top nav ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; gap: 24px; flex-wrap: wrap;
  position: sticky; top: 0; z-index: 100; background: var(--bg);
}
.top-left { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.wordmark {
  display: inline-flex; align-items: baseline; gap: 0;
  font-size: 28px; font-weight: 800; letter-spacing: -.03em; line-height: 1;
  color: #fff;
}
.wordmark .bang { color: var(--pink); margin: 0 1px; }
.topnav {
  display: flex; gap: 22px;
  font-size: 13px; color: var(--ink-3);
}
.topnav a:hover { color: #fff; }
.topnav a.active { color: #fff; font-weight: 600; }

.top-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.search {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  min-width: 220px;
  color: #8a8298; font-size: 13px;
}
.search:focus-within { border-color: var(--line-3); background: rgba(255,255,255,.08); }
.search svg { flex-shrink: 0; }
.search input {
  flex: 1; background: transparent; border: 0; outline: none;
  color: var(--ink); font: inherit; min-width: 0;
}
.search input::placeholder { color: #8a8298; }

/* ---------- auth widget ---------- */
.auth-widget { display: inline-flex; align-items: center; gap: 10px; }
.auth-loading {
  font-size: 12px; color: #8a8298;
  padding: 8px 14px; border: 1px dashed var(--line-2); border-radius: 999px;
}
.auth-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  object-fit: cover; border: 1px solid var(--line-2);
  background: rgba(255,255,255,.06);
  color: #fff; font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.auth-name {
  font-size: 13px; color: #fff;
  max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.auth-name:hover { text-decoration: underline; }
.btn-auth {
  padding: 9px 18px;
  background: var(--pink); color: var(--pink-deep);
  border-radius: 999px;
  font-size: 13px; font-weight: 700;
}
.btn-auth:hover { background: #ffa1b8; }
.btn-auth-link {
  color: var(--ink-3); font-size: 12px;
}
.btn-auth-link:hover { color: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 13px; font-weight: 700;
  transition: background .12s, transform .12s, border-color .12s, color .12s;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary { background: var(--pink); color: var(--pink-deep); }
.btn-primary:hover { background: #ffa1b8; }
.btn-primary:disabled { background: #6b3b48; color: #ffd4dd99; cursor: default; }
.btn-light { background: #fff; color: var(--pink-deep); }
.btn-light:hover { background: #f3f3f3; }
.btn-ghost {
  background: transparent; color: #fff;
  border: 1px solid var(--line-3);
}
.btn-ghost:hover { background: rgba(255,255,255,.04); border-color: #fff; }
.btn-pill {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 13px 22px 13px 26px;
  background: var(--pink-soft);
  color: var(--pink-deep);
  border-radius: 999px;
  font-size: 15px; font-weight: 700;
  letter-spacing: -.005em;
  transition: background .12s;
}
.btn-pill:hover {
  background: #ffe6ec;
}
.btn-pill .play {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--pink-deep); color: var(--pink-soft);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px;
}
.btn-test {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 16px;
  background: transparent; color: var(--pink);
  border: 1px dashed rgba(255,138,166,.45);
  border-radius: 999px;
  font-size: 12.5px; font-weight: 700;
}
.btn-test:hover { background: rgba(255,138,166,.06); border-color: var(--pink); }
.btn-test .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

/* ---------- warn / safety banner ---------- */
.warn {
  margin-top: 24px;
  padding: 14px 18px;
  border: 1px solid rgba(255,176,74,.4);
  background: rgba(255,176,74,.08);
  border-radius: 14px;
  display: flex; gap: 14px; align-items: flex-start;
}
.warn .icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border: 1.5px solid var(--gold); color: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
}
.warn .body { font-size: 12.5px; line-height: 1.55; color: #f3d9b1; }
.warn .body b { color: var(--gold); }
.warn .body strong {
  display: block; color: var(--gold); font-size: 13px; margin-bottom: 2px; font-weight: 700;
}

/* ---------- final / inline safety note ---------- */
.note {
  padding: 16px 20px;
  background: rgba(255,90,110,.05);
  border: 1px solid rgba(255,90,110,.15);
  border-radius: 14px;
  font-size: 12px; color: var(--ink-2); line-height: 1.55;
}
.note .w { color: var(--red); margin-right: 8px; }
.note b { color: #fff; }
.note a { color: var(--pink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- sign-in gate ---------- */
.signin-gate {
  padding: 18px 20px;
  background: rgba(255,255,255,.03);
  border: 1px dashed var(--line-2);
  border-radius: 14px;
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap;
}
.signin-gate-text { font-size: 13px; color: var(--ink-2); flex: 1 1 240px; }
.signin-gate .btn { flex: 0 0 auto; padding: 11px 18px; }

/* ---------- crumb ---------- */
.crumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--ink-3);
  margin: 8px 0 22px;
  flex-wrap: wrap;
}
.crumb a:hover { color: #fff; }
.crumb .sep { color: var(--mute); }
.crumb .current { color: #fff; }

/* ---------- card surface ---------- */
.surface {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
}

/* ---------- footer ---------- */
.foot {
  margin-top: 30px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--mute);
  flex-wrap: wrap; gap: 12px;
}
.foot a { color: var(--ink-3); }
.foot a:hover { color: #fff; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- helpers ---------- */
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.eyebrow {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--pink); font-weight: 600;
}
.eyebrow-mute {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 500;
}

/* ---------- responsive base ---------- */
@media (max-width: 980px) {
  .shell {
    padding: 0 max(24px, env(safe-area-inset-right)) 28px max(24px, env(safe-area-inset-left));
  }

  /* Header: logo and account on one row, a swipeable menu under them. */
  .top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 12px;
    padding: 8px 0 4px;
  }
  .top-left { display: contents; }
  .wordmark { grid-column: 1; grid-row: 1; justify-self: start; align-items: center; min-height: 44px; }
  .top-right { grid-column: 2; grid-row: 1; min-width: 0; flex-wrap: nowrap; }
  .topnav {
    grid-column: 1 / -1; grid-row: 2;
    min-width: 0;
    gap: 2px;
    margin: 0 -10px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .topnav::-webkit-scrollbar { display: none; }
  .topnav a {
    flex: none;
    display: inline-flex; align-items: center;
    min-height: 44px;
    padding: 0 10px;
    font-size: 14px;
  }
  /* No room in the phone header. The catalog page has its own search box. */
  .search { display: none; }

  .auth-name { min-height: 44px; line-height: 44px; }
  .btn-auth { min-height: 44px; padding: 0 16px; }
  .btn-auth-link { min-height: 44px; min-width: 44px; padding: 0 2px; font-size: 13px; }

  /* Comfortable tap targets for the small text links. */
  .crumb a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; }
  .crumb { margin: 0 0 10px; font-size: 13px; }
  .foot nav { gap: 4px 18px; }
  .foot nav a, .foot span a {
    display: inline-flex; align-items: center; min-height: 44px; min-width: 44px;
  }
  .foot { font-size: 13px; }

  .btn { min-height: 44px; }

  /* iOS zooms the page when a focused field is under 16px. */
  input, select, textarea, .search input { font-size: 16px; }
}
@media (max-width: 540px) {
  .shell {
    padding: 0 max(16px, env(safe-area-inset-right)) 24px max(16px, env(safe-area-inset-left));
  }
  .wordmark { font-size: 22px; }
  /* No room beside the logo. The Profile link in the menu goes to the same place. */
  .auth-name { display: none; }
  .btn-auth { padding: 0 12px; font-size: 12.5px; }
  .warn { margin-top: 16px; padding: 12px 14px; gap: 10px; }
  .warn .body { font-size: 13px; }
  .note { font-size: 13px; padding: 14px 16px; }
  .signin-gate .btn { flex: 1 1 100%; }
}
/* Phone on its side: the header would cover too much of the short screen. */
@media (max-width: 980px) and (max-height: 500px) {
  .top { position: static; }
}

/* ---------- mod cards (home + catalog) ---------- */
.feat-card {
  display: flex; flex-direction: column;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 18px; overflow: hidden;
  cursor: pointer;
  transition: border-color .15s;
}
.feat-card:hover { border-color: var(--line-3); }
.feat-card img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
}
.feat-body {
  flex: 1;
  padding: 18px 20px 20px;
  display: flex; flex-direction: column;
}
.feat-tags { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.tag-rare {
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  padding: 3px 9px; background: var(--pink); color: var(--pink-deep);
  border-radius: 999px; font-weight: 700;
}
.tag-meta { font-size: 11px; color: var(--ink-3); letter-spacing: .04em; }
.feat-card h3 {
  margin: 0 0 8px;
  font-size: 22px; font-weight: 700;
  letter-spacing: -.025em; line-height: 1.05;
  color: #fff; text-wrap: balance;
}
.feat-card p {
  margin: 0 0 16px;
  color: var(--ink-2); max-width: 46ch;
  font-size: 13.5px; line-height: 1.5;
}
.feat-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.feat-actions .btn { padding: 10px 18px; }
@media (max-width: 540px) {
  .feat-body { padding: 16px 16px 18px; }
}
.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.mod-grid-empty { font-size: 13px; color: var(--ink-3); padding: 26px 0; }
@media (max-width: 540px) {
  .mod-grid { grid-template-columns: 1fr; }
}
/* Last in the file so it wins over the base sizes above. */
@media (max-width: 980px) {
  .tag-meta, .tag-rare, .eyebrow, .eyebrow-mute { font-size: 12px; }
}

/* ---------- glass sheen on the Latest drops cards ---------- */
.mod-rail > .feat-card {
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  transition: border-color .2s, transform .2s;
}
.mod-rail > .feat-card::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg,
    transparent 35%,
    rgba(255,255,255,.04) 42%,
    rgba(255,255,255,.22) 50%,
    rgba(255,255,255,.04) 58%,
    transparent 65%);
  transform: translateX(-120%);
  animation: glass-sweep 6s ease-in-out infinite;
}
/* Stagger the cards so the light travels along the row. */
.mod-rail > .feat-card:nth-child(3n+2)::after { animation-delay: .5s; }
.mod-rail > .feat-card:nth-child(3n)::after { animation-delay: 1s; }
.mod-rail > .feat-card:hover { transform: translateY(-3px); border-color: var(--line-3); }
@keyframes glass-sweep {
  0%   { transform: translateX(-120%); }
  25%  { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}
@media (prefers-reduced-motion: reduce) {
  .mod-rail > .feat-card::after { animation: none; display: none; }
  .mod-rail > .feat-card:hover { transform: none; }
}
.mod-rail { padding-top: 4px; } /* room for the hover lift */

/* ---------- limited-time offer (frame, ribbon, struck-through price) ---------- */
.was-price { color: var(--ink-4); font-weight: 600; text-decoration-thickness: 2px; }
.btn .was-price { color: #8a6f78; }

.feat-card.offer-card {
  position: relative;
  border: 2px solid transparent;
  background:
    linear-gradient(var(--bg-3), var(--bg-3)) padding-box,
    linear-gradient(115deg, #ffd56b, #ff8a3d, #ff5f8f, #ffd56b, #ff8a3d) border-box;
  background-size: 100% 100%, 300% 100%;
  animation: offer-frame 6s linear infinite;
  box-shadow: 0 0 0 1px rgba(255,190,90,.12), 0 10px 34px -12px rgba(255,140,50,.45);
}
.feat-card.offer-card:hover { border-color: transparent; }
@keyframes offer-frame {
  from { background-position: 0 0, 0% 0; }
  to   { background-position: 0 0, 300% 0; }
}
.offer-ribbon {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffd56b, #ff8a3d);
  color: #3a1500;
  font-size: 12px; font-weight: 800; letter-spacing: .03em;
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
  pointer-events: none;
}
/* Small diya-flame mark, drawn in CSS (no emoji). */
.offer-ribbon::before {
  content: "";
  width: 7px; height: 10px;
  background: radial-gradient(circle at 50% 70%, #fff6d6 0 25%, #ff5a1f 70%);
  border-radius: 50% 50% 50% 50% / 65% 65% 35% 35%;
}
.offer-ends { font-size: 12px; color: #ffcf7a; font-weight: 600; }

/* Product page */
.stage.offer-frame {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--bg-3), var(--bg-3)) padding-box,
    linear-gradient(115deg, #ffd56b, #ff8a3d, #ff5f8f, #ffd56b, #ff8a3d) border-box;
  background-size: 100% 100%, 300% 100%;
  animation: offer-frame 6s linear infinite;
}
.offer-note {
  display: inline-block;
  margin: 8px 0 6px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,190,90,.5);
  background: rgba(255,170,60,.1);
  color: #ffcf7a;
  font-size: 13px; font-weight: 700;
}
.pprice .was-price, .price2 .was-price { font-size: .62em; margin-right: 4px; vertical-align: middle; }
@media (prefers-reduced-motion: reduce) {
  .feat-card.offer-card, .stage.offer-frame { animation: none; }
}

/* ---------- downloads per platform ---------- */
.downloads-intro { margin-bottom: 16px !important; }
.platform-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 680px) { .platform-grid { grid-template-columns: 1fr; } }
.platform-block {
  padding: 18px 20px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  display: flex; flex-direction: column; gap: 12px;
  min-width: 0;
}
.platform-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.platform-name { font-size: 17px; font-weight: 800; color: #fff; letter-spacing: -.01em; }
.platform-sub { font-size: 12px; color: var(--ink-3); }
.platform-note { font-size: 13px; color: var(--ink-2); line-height: 1.55; }
.platform-note a { color: var(--pink); text-decoration: underline; text-underline-offset: 3px; }
.platform-dl { align-self: flex-start; }
.install-steps { border-top: 1px solid var(--line); padding-top: 10px; }
.install-steps summary {
  cursor: pointer; font-size: 13.5px; font-weight: 700; color: var(--pink);
  min-height: 32px; display: flex; align-items: center;
}
.install-steps ol { margin: 10px 0 0; padding-left: 20px; color: var(--ink-2); font-size: 13.5px; line-height: 1.6; }
.install-steps li { margin-bottom: 8px; }
.install-steps li b { color: #fff; }
.install-steps code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px; color: #ffd9a0;
  background: rgba(255,255,255,.06); padding: 1px 5px; border-radius: 5px;
  overflow-wrap: anywhere;
}
.install-after { font-size: 13px !important; color: var(--ink-3) !important; margin: 4px 0 8px !important; }
.mod-notes {
  margin: 16px 0 0; padding: 14px 16px 14px 34px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink-2); font-size: 13px; line-height: 1.6;
}
.mod-notes li { margin-bottom: 4px; }
.mod-notes li:last-child { margin-bottom: 0; }

/* Fixed tax shown next to a price, e.g. "₹419 + ₹20 tax" */
.tax-note { font-size: .62em; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.btn .tax-note { font-size: .9em; color: inherit; opacity: .75; }
