/* Noaura Topups — dark base borrowed from the Noaura booster, with a hot
   crimson/amber accent so it reads as Free Fire rather than as the booster. */
:root {
  --bg: #07080f;
  --bg2: #0b0e1a;
  --panel: #0e1220;
  --panel2: #131928;
  --line: #1e2740;
  --line2: #2a3555;
  --text: #e8ecf8;
  --muted: #8a93ad;
  --hot: #ff3d5e;
  --hot2: #ff7a3d;
  --gold: #ffc44d;
  --good: #2fd27a;
  --bad: #ff5470;
  --wait: #ffb020;
  --blue: #4b7bff;
  --radius: 16px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(900px 480px at 12% -8%, rgba(255, 61, 94, .16), transparent 60%),
    radial-gradient(760px 420px at 92% 4%, rgba(75, 123, 255, .14), transparent 62%),
    var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.55;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
.mono { font-family: "Cascadia Mono", Consolas, ui-monospace, monospace; letter-spacing: .3px; }
.mut { color: var(--muted); }
.strong { font-weight: 700; }
.center { text-align: center; }
.tiny { font-size: 12px; color: var(--muted); }
.hint { font-size: 13px; color: var(--muted); }
.boot { padding: 80px 20px; text-align: center; color: var(--muted); }

/* Sinhala needs more line height and a font that has the glyphs. */
html[lang="si"] body { line-height: 1.75; }
html[lang="si"] h1, html[lang="si"] h2, html[lang="si"] .card-h { line-height: 1.5; }
html[lang="si"] .pkg h3, html[lang="si"] .pill { letter-spacing: 0; }

/* ------------------------------------------------------------- controls */

.btn {
  background: linear-gradient(135deg, var(--hot), var(--hot2));
  color: #fff; border: 0; border-radius: 11px; padding: 10px 18px;
  font-weight: 700; cursor: pointer; transition: transform .12s, filter .15s, opacity .15s;
  box-shadow: 0 10px 24px rgba(255, 61, 94, .22);
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn-ghost { background: transparent; border: 1px solid var(--line2); color: var(--text); box-shadow: none; }
.btn-ghost:hover { border-color: var(--hot); color: #fff; }
.btn-lg { padding: 13px 26px; font-size: 16px; border-radius: 13px; }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 9px; }
.btn-block { width: 100%; justify-content: center; }
.btn-go { background: linear-gradient(135deg, #ff2f57, #ff8a3d); padding: 13px 20px; font-size: 15px; }
.btn.off { opacity: .4; box-shadow: none; }
.linkish {
  background: none; border: 0; color: var(--muted); cursor: pointer;
  font-size: 13px; text-decoration: underline; text-underline-offset: 3px; padding: 4px;
}
.linkish:hover { color: var(--text); }
.linkish.danger:hover { color: var(--bad); }

.lang { display: flex; border: 1px solid var(--line2); border-radius: 10px; overflow: hidden; }
.lang button {
  background: transparent; border: 0; color: var(--muted); padding: 6px 11px;
  cursor: pointer; font-size: 13px; font-weight: 600;
}
.lang button.on { background: var(--line); color: #fff; }

/* ------------------------------------------------------------- nav */

.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(7, 8, 15, .82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-in {
  max-width: 1240px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; gap: 22px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .3px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; }
.links { display: flex; gap: 4px; }
.links a {
  padding: 8px 13px; border-radius: 9px; color: var(--muted); font-size: 14px; font-weight: 600;
}
.links a:hover { color: #fff; background: var(--panel2); }
.links a.on { color: #fff; background: var(--panel2); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.announce {
  max-width: 1240px; margin: 14px auto 0; padding: 10px 16px; border-radius: 12px;
  background: linear-gradient(90deg, rgba(255, 196, 77, .16), rgba(255, 61, 94, .12));
  border: 1px solid rgba(255, 196, 77, .3); color: #ffe9bf; font-size: 14px;
}

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

.hero {
  position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
  background:
    linear-gradient(100deg, rgba(7, 8, 15, .93) 12%, rgba(7, 8, 15, .55) 55%, rgba(7, 8, 15, .9)),
    url("/assets/hero.jpg") center 30% / cover no-repeat;
}
.hero-in { max-width: 1240px; margin: 0 auto; padding: 66px 20px 72px; }
.hero h1 {
  font-size: clamp(30px, 5.2vw, 52px); line-height: 1.12; letter-spacing: -.6px; margin: 14px 0 12px;
  background: linear-gradient(90deg, #fff, #ffd9c9 55%, #ffb08a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { max-width: 620px; color: #c3c9dc; margin-bottom: 24px; }
.pill {
  display: inline-block; padding: 6px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  background: rgba(255, 61, 94, .14); border: 1px solid rgba(255, 61, 94, .38); color: #ffc2ce;
  letter-spacing: .4px;
}

/* ------------------------------------------------------------- layout */

.layout {
  max-width: 1240px; margin: 0 auto; padding: 26px 20px 10px;
  display: grid; grid-template-columns: minmax(0, 1fr) 356px; gap: 22px; align-items: start;
}
.wrap { max-width: 1240px; margin: 0 auto; padding: 26px 20px; }
.wrap.narrow { max-width: 560px; }
.col-main { display: grid; gap: 22px; min-width: 0; }

.card {
  background: linear-gradient(180deg, var(--panel), var(--bg2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
}
.card-h {
  display: flex; align-items: center; gap: 11px; font-size: 17px; margin-bottom: 16px; letter-spacing: -.2px;
}
.num {
  display: grid; place-items: center; width: 27px; height: 27px; border-radius: 9px; font-size: 13px;
  background: linear-gradient(135deg, var(--hot), var(--hot2)); color: #fff; font-weight: 800; flex: none;
}

.fld { display: block; margin-bottom: 14px; }
.fld > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.fld input, .fld textarea, .fld select {
  width: 100%; background: #0a0d18; border: 1px solid var(--line2); border-radius: 11px;
  padding: 11px 13px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.fld input:focus, .fld textarea:focus { border-color: var(--hot); box-shadow: 0 0 0 3px rgba(255, 61, 94, .14); }
.fld input[type="file"] { padding: 9px; font-size: 13px; color: var(--muted); }
.row { display: flex; gap: 10px; }
.row input { flex: 1; min-width: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  font-size: 13px; background: var(--panel2); border: 1px solid var(--line2); color: var(--muted);
}
.chip-good { background: rgba(47, 210, 122, .13); border-color: rgba(47, 210, 122, .4); color: #9df0c3; font-weight: 700; }
.chip-wait { background: rgba(255, 176, 32, .12); border-color: rgba(255, 176, 32, .4); color: #ffd98a; }
.chip-name { background: rgba(75, 123, 255, .13); border-color: rgba(75, 123, 255, .4); color: #bcd0ff; font-weight: 700; }
.chip-region { background: rgba(255, 196, 77, .12); border-color: rgba(255, 196, 77, .38); color: #ffe3a8; }

.warn { font-size: 13px; color: #ffd98a; background: rgba(255, 176, 32, .1); border: 1px solid rgba(255, 176, 32, .3); border-radius: 10px; padding: 9px 12px; margin: 8px 0; }
.warn-block { display: block; }

/* ------------------------------------------------------------- packages */

.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tab {
  background: var(--panel2); border: 1px solid var(--line2); color: var(--muted);
  padding: 8px 15px; border-radius: 999px; cursor: pointer; font-size: 13.5px; font-weight: 600;
}
.tab:hover { color: #fff; }
.tab.on { background: linear-gradient(135deg, rgba(255, 61, 94, .22), rgba(255, 122, 61, .18)); border-color: rgba(255, 61, 94, .5); color: #fff; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 14px; }
.pkg {
  position: relative; background: linear-gradient(180deg, var(--panel2), #0a0d18);
  border: 1px solid var(--line); border-radius: 14px; padding: 14px; text-align: center;
  transition: transform .14s, border-color .18s, box-shadow .18s;
}
.pkg:hover { transform: translateY(-3px); border-color: var(--line2); box-shadow: var(--shadow); }
.pkg.in { border-color: rgba(255, 61, 94, .6); box-shadow: 0 0 0 1px rgba(255, 61, 94, .25), var(--shadow); }
.pkg img { width: 100%; height: 96px; object-fit: cover; border-radius: 10px; margin-bottom: 10px; background: #06080f; }
.pkg h3 { font-size: 15px; letter-spacing: -.2px; }
.pkg .detail { font-size: 12px; color: var(--muted); min-height: 32px; margin: 3px 0 8px; }
.prices { display: flex; flex-direction: column; align-items: center; gap: 1px; margin-bottom: 11px; }
.prices s { font-size: 12px; color: var(--muted); }
.prices strong { font-size: 17px; color: #8fd0ff; letter-spacing: -.3px; }
.badge {
  position: absolute; top: 9px; right: 9px; z-index: 2;
  background: linear-gradient(135deg, var(--hot), var(--hot2)); color: #fff;
  font-size: 10.5px; font-weight: 800; padding: 4px 9px; border-radius: 999px; letter-spacing: .4px;
  box-shadow: 0 6px 16px rgba(255, 61, 94, .35);
}
.step { display: flex; align-items: center; justify-content: center; gap: 8px; }
.step button {
  width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line2);
  background: var(--panel); color: var(--text); cursor: pointer; font-size: 16px; line-height: 1;
}
.step button:hover { border-color: var(--hot); color: #fff; }
.step input {
  width: 46px; text-align: center; background: #0a0d18; border: 1px solid var(--line2);
  border-radius: 9px; padding: 6px 0; font-weight: 700;
}

/* ------------------------------------------------------------- rail */

.col-rail { position: relative; }
.rail {
  background: linear-gradient(180deg, var(--panel), var(--bg2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
}
.rail.sticky { position: sticky; top: 78px; }
.rail-who { border-bottom: 1px dashed var(--line2); padding-bottom: 12px; margin-bottom: 12px; }
.k { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; font-weight: 700; }
.v { font-size: 14.5px; font-weight: 600; margin-bottom: 8px; }
.rail-items { max-height: 268px; overflow: auto; margin-bottom: 12px; }
.rail-i {
  display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px;
  padding: 7px 0; border-bottom: 1px solid rgba(30, 39, 64, .6);
}
.rail-total {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line2); padding-top: 12px; margin-bottom: 12px; font-weight: 700;
}
.rail-total strong { font-size: 20px; color: #8fd0ff; }

/* ------------------------------------------------------------- bands */

.band { max-width: 1240px; margin: 0 auto; padding: 44px 20px; text-align: center; }
.band h2 { font-size: 26px; letter-spacing: -.4px; }
.band .sub { color: var(--muted); font-size: 14px; margin: 5px 0 22px; }

.podium { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.pod {
  position: relative; background: linear-gradient(180deg, var(--panel), var(--bg2));
  border: 1px solid var(--line); border-radius: 14px; padding: 22px 16px 18px;
}
.pod1 { border-color: rgba(255, 196, 77, .45); background: linear-gradient(180deg, rgba(255, 196, 77, .09), var(--bg2)); }
.pod2 { border-color: rgba(200, 210, 235, .3); }
.pod3 { border-color: rgba(255, 122, 61, .3); }
.rank { position: absolute; top: 11px; left: 11px; font-size: 12px; font-weight: 800; color: var(--muted); background: var(--panel2); border-radius: 8px; padding: 3px 8px; }
.pod1 .rank { color: #1a1204; background: var(--gold); }
.avatar {
  width: 58px; height: 58px; border-radius: 50%; margin: 0 auto 10px; display: grid; place-items: center;
  font-size: 24px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--hot), var(--hot2));
}
.avatar.sm { width: 40px; height: 40px; font-size: 17px; margin: 0 auto 8px; }
.who { font-weight: 700; font-size: 15px; }
.tag { display: inline-block; margin-top: 8px; font-size: 12.5px; color: #9df0c3; background: rgba(47, 210, 122, .12); border-radius: 999px; padding: 3px 11px; }

.rv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; text-align: center; }
.rv { background: linear-gradient(180deg, var(--panel), var(--bg2)); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.stars { color: var(--gold); font-size: 14px; letter-spacing: 2px; margin: 6px 0; }
.rv blockquote { font-size: 13.5px; color: #c3c9dc; font-style: normal; }

/* ------------------------------------------------------------- account */

.acc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.order { border: 1px solid var(--line); border-radius: 13px; padding: 14px; margin-bottom: 12px; background: #0a0d18; }
.order header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.order-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.order-meta span:last-child { color: #8fd0ff; font-weight: 700; margin-left: auto; }
.order-act { display: flex; gap: 14px; margin-top: 8px; }
.st { font-size: 11.5px; font-weight: 800; padding: 4px 10px; border-radius: 999px; letter-spacing: .3px; white-space: nowrap; }
.st-submitted { background: rgba(255, 176, 32, .14); color: #ffd98a; }
.st-payment_ok { background: rgba(75, 123, 255, .16); color: #bcd0ff; }
.st-delivered { background: rgba(47, 210, 122, .14); color: #9df0c3; }
.st-rejected, .st-cancelled { background: rgba(255, 84, 112, .14); color: #ffb3c0; }

.tl { display: flex; gap: 7px; }
.tl-i {
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  font-size: 11px; font-weight: 800; background: var(--panel2); color: var(--muted); border: 1px solid var(--line2);
}
.tl-i.done { background: linear-gradient(135deg, var(--good), #17a05c); color: #04150c; border-color: transparent; }

/* ------------------------------------------------------------- overlays */

.veil {
  position: fixed; inset: 0; z-index: 90; background: rgba(4, 5, 10, .74);
  backdrop-filter: blur(5px); display: grid; place-items: center; padding: 18px; overflow: auto;
}
.sheet {
  position: relative; width: min(620px, 100%); background: linear-gradient(180deg, var(--panel), var(--bg2));
  border: 1px solid var(--line2); border-radius: 18px; padding: 24px; box-shadow: var(--shadow);
}
.sheet-sm { width: min(430px, 100%); }
.sheet h2 { font-size: 20px; margin-bottom: 14px; }
.x {
  position: absolute; top: 13px; right: 13px; width: 30px; height: 30px; border-radius: 9px;
  background: var(--panel2); border: 1px solid var(--line2); color: var(--muted); cursor: pointer;
}
.x:hover { color: #fff; border-color: var(--hot); }
.howto { margin: 0 0 16px 18px; font-size: 13.5px; color: var(--muted); }
.howto li { margin-bottom: 4px; }

.paybox {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(255, 61, 94, .12), rgba(75, 123, 255, .1));
  border: 1px solid rgba(255, 61, 94, .3); border-radius: 14px; padding: 15px; margin-bottom: 16px;
}
.num-big { font-size: 25px; font-weight: 800; letter-spacing: 1px; color: #fff; margin: 2px 0; }
.paybox-r { text-align: right; }
.amt { font-size: 25px; font-weight: 800; color: var(--gold); margin: 2px 0 8px; }
.done {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center;
  font-size: 28px; background: rgba(47, 210, 122, .16); color: var(--good); border: 1px solid rgba(47, 210, 122, .4);
}
.refbox {
  font-size: 24px; font-weight: 800; letter-spacing: 2px; text-align: center; color: var(--gold);
  background: #0a0d18; border: 1px dashed var(--line2); border-radius: 12px; padding: 12px; margin: 8px 0 12px;
}

.dead { text-align: center; padding: 90px 20px; }
.dead h2 { margin-bottom: 8px; }
.dead p { color: var(--muted); margin-bottom: 18px; }

/* ------------------------------------------------------------- toast */

#toast { position: fixed; right: 16px; bottom: 16px; z-index: 120; display: grid; gap: 9px; justify-items: end; }
.toast {
  background: var(--panel2); border: 1px solid var(--line2); border-left: 3px solid var(--blue);
  border-radius: 11px; padding: 11px 15px; font-size: 13.5px; max-width: 330px;
  box-shadow: var(--shadow); opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast-good { border-left-color: var(--good); }
.toast-bad { border-left-color: var(--bad); }

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

.foot { border-top: 1px solid var(--line); margin-top: 30px; background: rgba(6, 7, 13, .6); }
.foot-top {
  max-width: 1240px; margin: 0 auto; padding: 26px 20px 12px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.foot-brand { font-weight: 800; letter-spacing: .5px; margin-bottom: 4px; }
.foot-h { font-size: 12px; text-transform: uppercase; letter-spacing: .7px; color: var(--muted); font-weight: 800; margin-bottom: 6px; }
.foot-top a { color: #bcd0ff; margin-right: 12px; font-size: 14px; }
.foot-legal {
  max-width: 1240px; margin: 0 auto; padding: 0 20px 26px;
  font-size: 11.5px; color: #5e6781; border-top: 1px solid rgba(30, 39, 64, .55); padding-top: 14px;
}

/* ------------------------------------------------------------- mobile */

@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; }
  .rail.sticky { position: static; }
  .links { display: none; }
}
@media (max-width: 560px) {
  .hero-in { padding: 44px 18px 50px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 10px; }
  .pkg img { height: 78px; }
  .paybox-r { text-align: left; }
  .order-meta span:last-child { margin-left: 0; }
  .nav-in { padding: 10px 14px; gap: 10px; }
  .brand span { font-size: 14px; }
}
