@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Hind+Siliguri:wght@400;500;600;700&display=swap");

:root {
  --navy: #0B215E;
  --blue: #1A4BB8;
  --blue-2: #2563E0;
  --gold: #F2BE2E;
  --gold-light: #FFE082;
  --ink: #1B2333;
  --muted: #5A6478;
  --paper: #FFFFFF;
  --line: #E3E8F2;
  --red: #E02A2A;
  --green: #1E9E2C;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Poppins", "Hind Siliguri", system-ui, sans-serif;
  color: var(--ink);
  background: #0B2468 radial-gradient(circle at 50% 0, #2F6FE0 0, #1A4BB8 35%, #0B2468 75%) fixed;
  line-height: 1.65;
  min-height: 100vh;
}
body.bn { font-family: "Hind Siliguri", "Poppins", system-ui, sans-serif; }
body:not(.bn) [lang="bn"] { display: none !important; }
body.bn [lang="en"] { display: none !important; }

/* faint dice pattern behind everything */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .08;
  background-image: radial-gradient(circle at 25% 25%, #fff 7%, transparent 8%),
                    radial-gradient(circle at 75% 75%, #fff 7%, transparent 8%),
                    radial-gradient(circle at 75% 25%, #fff 7%, transparent 8%),
                    radial-gradient(circle at 25% 75%, #fff 7%, transparent 8%);
  background-size: 90px 90px;
  transform: rotate(-12deg) scale(1.4);
}

.wrap { position: relative; max-width: 860px; margin: 0 auto; padding: 24px 16px 60px; }

/* header */
.top { display: flex; align-items: center; gap: 14px; color: #fff; }
.top img { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 0 0 3px var(--gold), 0 8px 18px rgba(0,0,40,.4); }
.top .name { font-weight: 700; font-size: 22px; line-height: 1.2; }
.top .by { color: var(--gold-light); font-size: 14px; }
.lang { margin-left: auto; display: flex; background: rgba(10,26,74,.6); border: 2px solid var(--gold); border-radius: 22px; padding: 3px; }
.lang button { border: 0; background: none; color: #fff; font: inherit; font-weight: 600; font-size: 14px; padding: 5px 14px; border-radius: 18px; cursor: pointer; }
.lang button.on { background: linear-gradient(#FFE680, #E9A912); color: var(--navy); }

.hero { text-align: center; color: #fff; margin: 34px 0 22px; }
.hero h1 { font-size: clamp(28px, 6vw, 42px); line-height: 1.15; text-shadow: 0 4px 0 #0a1f5c, 0 8px 18px rgba(0,0,0,.35); }
.hero h1 b { color: #FFD54F; }
.hero p { color: #DCE5FF; margin-top: 8px; }

/* white card */
.card { background: var(--paper); border-radius: 22px; padding: 28px 26px; box-shadow: 0 0 0 4px var(--gold), 0 20px 50px rgba(0,0,40,.45); }
.card h2 { font-size: 21px; color: var(--navy); margin: 28px 0 8px; display: flex; align-items: center; gap: 10px; }
.card h2:first-child { margin-top: 0; }
.card h2 .n { flex: none; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(#2B66D9, #123A96); color: #fff; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px var(--gold); }
.card p, .card li { color: #2c3547; font-size: 15.5px; }
.card ul { padding-left: 22px; margin: 6px 0; }
.card li { margin: 4px 0; }
.card a { color: var(--blue-2); font-weight: 600; }
.meta { color: var(--muted); font-size: 14px; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 20px; }

table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 14.5px; }
th, td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #F3F6FC; color: var(--navy); font-weight: 600; }
.tablewrap { overflow-x: auto; }

.note { background: #FFF8E1; border: 1.5px solid #F2D16B; border-radius: 14px; padding: 12px 16px; margin: 14px 0; font-size: 15px; }
.ok { background: #E8F7EA; border-color: #9ED8A6; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-weight: 700;
  color: #fff !important; padding: 13px 26px; border-radius: 30px; background: linear-gradient(#4C8DFF, #2563E0 55%, #1846B8);
  box-shadow: 0 0 0 3px var(--gold), inset 0 -5px 0 rgba(0,0,0,.2); }
.btn.red { background: linear-gradient(#FF6B6B, #E02A2A 55%, #A8141A); }
.btn.gold { background: linear-gradient(#FFF1A8, #FFC93C 55%, #D68F0A); color: #3E2100 !important; }
.btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 18px 0 6px; }

/* deletion steps with phone mockups */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin: 16px 0; }
.step { text-align: center; }
.step .cap { font-weight: 600; color: var(--navy); margin-top: 10px; font-size: 15px; }
.step .cap .k { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: var(--navy); align-items: center; justify-content: center; font-size: 14px; margin-right: 6px; }
.phone { width: 200px; height: 370px; margin: 0 auto; border-radius: 30px; background: #0b0f1e; padding: 9px; box-shadow: 0 0 0 3px #2b3550, 0 14px 28px rgba(0,0,40,.35); }
.scr { position: relative; height: 100%; border-radius: 22px; overflow: hidden; background: linear-gradient(#2F6FE0, #1A4BB8 45%, #0B2468); font-size: 11px; color: #fff; }
.bar { height: 40px; background: linear-gradient(#163C93, #0B215E); border-bottom: 2px solid var(--gold); display: flex; align-items: center; padding: 0 8px; gap: 6px; }
.av { width: 26px; height: 26px; border-radius: 50%; background: #1E88E5; border: 2px solid var(--gold); display: flex; align-items: center; justify-content: center; font-size: 14px; }
.coin { margin-left: auto; white-space: nowrap; padding: 2px 8px; border-radius: 12px; border: 1.5px solid var(--gold); background: #0A1A4A; font-weight: 600; }
.ico { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(#2B66D9, #123A96); border: 1.5px solid var(--gold); display: flex; align-items: center; justify-content: center; font-size: 12px; }
.ico.hl { box-shadow: 0 0 0 3px #fff, 0 0 14px 5px #FFE082; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 3px #fff, 0 0 4px 1px #FFE082; } }
.cards { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; padding: 12px 10px; }
.mc { height: 62px; border-radius: 9px; background: linear-gradient(#3C86FF, #1442A8); border: 2px solid var(--gold); position: relative; }
.mc::after { content: ""; position: absolute; left: 2px; right: 2px; bottom: 2px; height: 14px; border-radius: 0 0 6px 6px; background: linear-gradient(#FFE680, #E9A912); }
.logo { text-align: center; font-weight: 800; font-size: 22px; margin-top: 18px; letter-spacing: 1px; }
.logo span:nth-child(1) { color: #F2202B; } .logo span:nth-child(2) { color: #14B83F; } .logo span:nth-child(3) { color: #FFD600; } .logo span:nth-child(4) { color: #4C8DFF; }
.dim { position: absolute; inset: 0; background: rgba(0,0,10,.62); }
.dlg { position: absolute; left: 10px; right: 10px; top: 70px; border-radius: 16px; background: linear-gradient(#2357C8, #0B215E); border: 2.5px solid var(--gold); padding: 22px 10px 10px; }
.dlg .t { text-align: center; color: var(--gold-light); font-weight: 700; font-size: 13px; margin-bottom: 8px; }
.dlg .medal { position: absolute; top: -20px; left: 50%; margin-left: -20px; width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle at 38% 32%, #FFF6CF, #F0BE45 55%, #9A640C); border: 2px solid #5A3505; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.opt { display: flex; align-items: center; gap: 6px; padding: 7px 8px; border-radius: 9px; background: rgba(255,255,255,.14); border: 1px solid rgba(242,190,46,.7); margin-top: 6px; font-size: 10.5px; }
.opt.hl { background: rgba(255,90,90,.35); border: 2px solid #fff; box-shadow: 0 0 12px 3px rgba(255,120,120,.8); animation: pulse2 1.2s infinite; }
@keyframes pulse2 { 50% { box-shadow: 0 0 2px 1px rgba(255,120,120,.6); } }
.li { font-size: 9.5px; color: #E8EEFF; margin: 3px 0; }
.inp { margin-top: 8px; background: #fff; color: #0A1F5C; border-radius: 7px; padding: 6px 8px; font-weight: 700; font-size: 12px; letter-spacing: 1px; }
.dbtn { display: flex; gap: 6px; margin-top: 10px; }
.dbtn div { flex: 1; text-align: center; border-radius: 12px; padding: 5px 0; font-weight: 700; font-size: 10.5px; }
.dbtn .c { border: 1.5px solid var(--gold); }
.dbtn .d { background: linear-gradient(#FF6B6B, #C81E1E); border: 1.5px solid #fff; box-shadow: 0 0 10px 2px rgba(255,120,120,.8); }
.dbtn .g { background: linear-gradient(#FFE99A, #E9A912); color: #3E2100; }
.done { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 16px; }
.done .big { font-size: 52px; }
.toast { margin-top: 12px; background: rgba(0,0,0,.65); border-radius: 14px; padding: 8px 12px; font-size: 10.5px; }

footer { text-align: center; color: #C9D6FF; font-size: 13.5px; margin-top: 26px; }
footer a { color: var(--gold-light); }

@media (max-width: 520px) {
  .card { padding: 22px 16px; border-radius: 18px; }
  .top .name { font-size: 18px; }
  .top img { width: 52px; height: 52px; }
}

.dlg.tall { top: 50px; padding-top: 20px; }
.dlg.tall .opt { padding: 5px 8px; margin-top: 5px; }
