/* ShotGram 1.3.8 — shotgram.app/coins (website Shots recharge).
   Same look as the app: dark, one calm blue, small real-size controls.
   The ShotGram word keeps the original logo gradient. */
:root { --bg: #0a0d16; --panel: #121827; --panel-2: #182033; --line: rgba(255, 255, 255, .08); --text: #f2f4fa; --dim: rgba(242, 244, 250, .58);
  --a: #2f8cff; --a-soft: rgba(47, 140, 255, .14); --a-text: #7fb6ff; --ok: #2fd18c; --bad: #ff5468; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Noto Kufi Arabic", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
html[lang="ar"] body { font-family: -apple-system, BlinkMacSystemFont, "SF Arabic", "Noto Kufi Arabic", system-ui, sans-serif; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: var(--a-text); text-decoration: none; }
.cn-boot { min-height: 100dvh; display: grid; place-items: center; }
.cn-splash img { border-radius: 14px; opacity: .9; }
.cn { min-height: 100dvh; max-width: 520px; margin: 0 auto; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.cn-center { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--dim); }
.cn-grow { flex: 1; }

/* top bar */
.cn-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: rgba(10, 13, 22, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.cn-brand { display: inline-flex; align-items: center; gap: 7px; color: var(--text); }
.cn-brand img { border-radius: 7px; }
.cn-word { font-size: 18px; font-weight: 800; letter-spacing: -.03em; background: linear-gradient(135deg, #00d8ff 0%, #8b5cff 52%, #ff2ed1 100%); -webkit-background-clip: text; background-clip: text; color: transparent; direction: ltr; }
.cn-brand span { font-size: 15px; font-weight: 600; color: var(--dim); }
.cn-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--text); }
.cn-ic svg { width: 21px; height: 21px; }
.cn-lang { height: 28px; min-width: 34px; padding: 0 9px; border-radius: 8px; background: rgba(255, 255, 255, .08); font-size: 12.5px; font-weight: 700; }

/* body */
.cn-main { padding: 12px 16px; display: grid; gap: 12px; }
.cn-secure { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--ok); }
.cn-secure svg { width: 15px; height: 15px; }
.cn-card { background: var(--panel); border-radius: 14px; padding: 14px; }
.cn-h { display: grid; gap: 2px; margin-bottom: 12px; }
.cn-h b { font-size: 15.5px; font-weight: 700; }
.cn-h small { font-size: 12px; color: var(--dim); }
.cn-note { margin: 4px 0; font-size: 13.5px; color: var(--dim); text-align: center; }

/* account */
.cn-me { display: flex; align-items: center; gap: 12px; }
.cn-av img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; display: block; background: #2b3140; }
.cn-who { flex: 1; min-width: 0; display: grid; }
.cn-who b { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cn-who small { font-size: 12.5px; color: var(--dim); text-align: start; }
.cn-bal { display: inline-flex; align-items: center; gap: 5px; padding: 0 10px; height: 30px; border-radius: 8px; background: var(--panel-2); font-weight: 700; direction: ltr; }
.cn-shot { width: 18px; height: 18px; display: inline-block; flex: none; }
.cn-link { display: block; margin: 10px auto 0; font-size: 12.5px; color: var(--a-text); }
.cn-primary { width: 100%; height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; background: var(--a); color: #fff; font-size: 15px; font-weight: 600; }
.cn-primary img { border-radius: 5px; }
.cn-primary:disabled { opacity: .45; }
.cn-hint { margin: 8px 0 0; font-size: 12.5px; color: var(--dim); text-align: center; }
.cn-qr { display: flex; align-items: center; gap: 14px; }
.cn-qr canvas { width: 132px; height: 132px; border-radius: 10px; flex: none; }
.cn-qr ol { margin: 0; padding-inline-start: 18px; font-size: 13px; color: var(--dim); display: grid; gap: 6px; }
.cn-form { display: grid; gap: 8px; margin-top: 10px; }
.cn-in { height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); font-size: 16px; outline: none; }
.cn-in:focus { border-color: rgba(47, 140, 255, .6); }
.cn-err { margin: 0; font-size: 12.5px; color: var(--bad); text-align: center; }

/* packs */
.cn-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cn-pack { position: relative; display: grid; justify-items: center; align-content: center; gap: 3px; height: 70px; border-radius: 10px; background: var(--panel-2); box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .12s ease, background .12s ease; }
.cn-pack.on { background: var(--a-soft); box-shadow: inset 0 0 0 1.5px var(--a); }
.cn-amt { display: inline-flex; align-items: center; gap: 4px; direction: ltr; }
.cn-amt b { font-size: 17px; font-weight: 700; }
.cn-pack small { font-size: 12px; color: var(--dim); direction: ltr; }
.cn-pack em { position: absolute; top: -7px; inset-inline-start: 6px; font-style: normal; font-size: 10px; font-weight: 700; padding: 0 6px; line-height: 16px; border-radius: 5px; background: var(--a); color: #fff; }
.cn-custom > b { font-size: 14px; font-weight: 600; }

.cn-pay-methods { display: flex; justify-content: center; gap: 10px; }
.cn-pay-methods span { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px; border-radius: 7px; background: var(--panel); font-size: 12px; color: var(--dim); }
.cn-pay-methods svg { width: 14px; height: 14px; }
.cn-pay-methods b { color: var(--text); font-weight: 600; }
.cn-legal { margin: 0 4px; font-size: 11.5px; line-height: 1.6; color: var(--dim); text-align: center; }

/* bottom bar */
.cn-bar { position: fixed; z-index: 6; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px; max-width: 520px; margin: 0 auto;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(10, 13, 22, .96); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.cn-total { display: grid; min-width: 0; }
.cn-total small { font-size: 11.5px; color: var(--dim); }
.cn-total b { font-size: 16px; font-weight: 700; direction: ltr; text-align: start; white-space: nowrap; }
.cn-pay { flex: 1; height: 44px; border-radius: 10px; background: var(--a); color: #fff; font-size: 15px; font-weight: 600; }
.cn-pay:disabled { opacity: .45; }

/* sheets, toast */
.cn-sheet-wrap { position: fixed; inset: 0; z-index: 20; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, .5); animation: cnFade .15s ease both; }
@keyframes cnFade { from { opacity: 0; } }
.cn-sheet { position: relative; width: 100%; max-width: 520px; max-height: 80vh; overflow-y: auto; background: var(--panel); border-radius: 16px 16px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); animation: cnUp .2s ease both; }
@keyframes cnUp { from { transform: translateY(30px); opacity: 0; } }
@media (min-width: 560px) { .cn-sheet-wrap { align-items: center; } .cn-sheet { border-radius: 16px; } }
.cn-sheet h3 { margin: 0 0 12px; font-size: 16px; font-weight: 700; text-align: center; }
.cn-x { position: absolute; top: 12px; inset-inline-end: 12px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .07); }
.cn-x svg { width: 14px; height: 14px; }
.cn-custom-in { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 12px; border-radius: 10px; background: var(--panel-2); }
.cn-custom-in input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 20px; font-weight: 700; direction: ltr; }
.cn-custom-price { margin: 8px 0 12px; text-align: center; font-size: 13px; color: var(--dim); direction: ltr; }
.cn-result { display: grid; justify-items: center; gap: 8px; padding: 8px 0 2px; text-align: center; }
.cn-result b { font-size: 16px; font-weight: 700; }
.cn-result small { font-size: 13px; color: var(--dim); }
.cn-result .cn-primary { margin-top: 8px; }
.cn-ok { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(47, 209, 140, .16); color: var(--ok); }
.cn-ok svg { width: 24px; height: 24px; }
.cn-result.bad b { color: var(--bad); }
.cn-spin { width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .14); border-top-color: var(--a); animation: cnSpin .8s linear infinite; display: block; margin: 8px auto; }
@keyframes cnSpin { to { transform: rotate(360deg); } }
.cn-hist { display: grid; }
.cn-hrow { display: flex; align-items: center; gap: 8px; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.cn-hrow > span:first-child { display: inline-flex; align-items: center; gap: 5px; direction: ltr; }
.cn-hmeta { display: grid; justify-items: end; }
.cn-hmeta b { font-size: 13.5px; direction: ltr; }
.cn-hmeta small { font-size: 11.5px; color: var(--dim); }
.cn-hmeta i { font-style: normal; }
.cn-hmeta i.s-paid { color: var(--ok); } .cn-hmeta i.s-failed { color: var(--bad); }
.cn-toast { position: fixed; z-index: 30; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translateX(-50%); max-width: calc(100% - 32px); padding: 10px 14px; border-radius: 10px; background: #222b40; color: #fff; font-size: 13.5px; text-align: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); }
