:root {
  color-scheme: dark;
  --bg: #080c18;
  --surface: rgba(20, 27, 45, .82);
  --surface-strong: #1b2440;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f8fafc;
  --muted: #a7afbd;
  --blue: #417cff;
  --violet: #8b5cf6;
  --cyan: #4bd6ff;
  --blue-soft: rgba(47, 107, 255, 0.17);
  --green: #31c48d;
  --gold: #ffc857;
  --danger: #fb7185;
  font-family: Inter, system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; overflow-x: hidden; background: var(--bg); color: var(--text); min-height: 100vh; }
body::before, body::after { content: ""; position: fixed; z-index: -1; border-radius: 50%; pointer-events: none; filter: blur(12px); opacity: .52; animation: ambient-drift 13s ease-in-out infinite alternate; }
body::before { width: 340px; height: 340px; top: -130px; right: -135px; background: radial-gradient(circle, rgba(65,124,255,.38), transparent 68%); }
body::after { width: 300px; height: 300px; bottom: 8%; left: -190px; background: radial-gradient(circle, rgba(139,92,246,.24), transparent 70%); animation-delay: -5s; }
button, input, textarea, select { font: inherit; }
button { color: inherit; cursor: pointer; }
.app-shell { width: min(100%, 680px); min-height: 100vh; margin: auto; padding: env(safe-area-inset-top) 18px calc(92px + env(safe-area-inset-bottom)); }
.topbar { height: 74px; display: flex; align-items: center; justify-content: space-between; }
.brand, .icon-button, .bottom-nav button, .ghost-button { border: 0; background: transparent; }
.brand { display: inline-flex; align-items: center; gap: 9px; font: 700 17px Manrope, sans-serif; }
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; background: linear-gradient(135deg, #2f6bff, #6fa0ff); color: white; box-shadow: 0 8px 22px rgba(47, 107, 255, .35); }
.icon-button { position: relative; width: 42px; height: 42px; border-radius: 14px; background: var(--surface); font-size: 23px; }
.notification-dot { position: absolute; right: 8px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3px var(--surface); }
.hidden { display: none !important; }
.app-content { animation: page-in .32s cubic-bezier(.2,.8,.2,1); }
@keyframes page-in { from { opacity: 0; transform: translateY(12px); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes ambient-drift { to { transform: translate3d(-28px, 35px, 0) scale(1.15); } }
.eyebrow { color: var(--blue); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Manrope, sans-serif; }
h1 { margin-bottom: 8px; font-size: clamp(27px, 8vw, 38px); letter-spacing: -.05em; line-height: 1.07; }
h2 { font-size: 20px; letter-spacing: -.03em; margin-bottom: 13px; }
h3 { font-size: 15px; margin-bottom: 6px; }
.muted { color: var(--muted); line-height: 1.55; }
.screen-intro { padding: 26px 0 20px; }
.card, .panel { border: 1px solid var(--line); border-radius: 23px; background: var(--surface); box-shadow: 0 18px 42px rgba(0, 0, 0, .2); backdrop-filter: blur(18px); }
.panel { padding: 17px; }
.stack { display: grid; gap: 13px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.primary-button, .secondary-button, .danger-button { border: 0; border-radius: 16px; min-height: 52px; padding: 0 18px; font-weight: 700; transition: transform .2s ease, filter .2s ease, box-shadow .2s ease; }
.primary-button { background: linear-gradient(120deg, var(--blue), var(--violet)); color: white; box-shadow: 0 13px 28px rgba(65, 124, 255, .32); }
.primary-button:hover { filter: brightness(1.08); box-shadow: 0 17px 34px rgba(65, 124, 255, .42); transform: translateY(-1px); }
.secondary-button { background: var(--surface-strong); color: var(--text); border: 1px solid var(--line); }
.danger-button { background: rgba(251, 113, 133, .12); color: #ffabb8; border: 1px solid rgba(251, 113, 133, .2); }
.primary-button:active, .secondary-button:active, .danger-button:active { transform: scale(.98); }
.full { width: 100%; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin: 22px 0; }
.feature { padding: 15px; min-height: 110px; border: 1px solid var(--line); border-radius: 19px; background: linear-gradient(150deg, rgba(65,124,255,.18), transparent 68%), var(--surface); transition: transform .25s ease, border-color .25s ease; animation: feature-in .5s both; }
.feature:nth-child(2) { animation-delay: .05s; } .feature:nth-child(3) { animation-delay: .1s; } .feature:nth-child(4) { animation-delay: .15s; }
.feature:hover { transform: translateY(-4px); border-color: rgba(105,151,255,.42); }
.feature-icon { color: var(--cyan); font-size: 19px; margin-bottom: 14px; }
@keyframes feature-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.feature strong { display: block; font-size: 13px; line-height: 1.35; }
.price-card { padding: 17px; margin-top: 4px; background: linear-gradient(130deg, rgba(47,107,255,.18), rgba(255,255,255,.01)), var(--surface); }
.price-item { padding: 9px 0; }
.price-item + .price-item { border-top: 1px solid var(--line); }
.price-item strong { font-family: Manrope, sans-serif; font-size: 20px; }
.virtual-card { position: relative; min-height: 218px; overflow: hidden; border-radius: 25px; transform-style: preserve-3d; perspective: 1000px; background: radial-gradient(circle at 88% 16%, rgba(147, 181, 255, .65), transparent 30%), linear-gradient(135deg, #2461ff, #1945cf 55%, #0d246f); box-shadow: 0 24px 44px rgba(24, 70, 212, .34); transition: transform .62s cubic-bezier(.2,.8,.2,1); animation: card-enter .65s cubic-bezier(.2,.8,.2,1); }
.virtual-card.needs-topup { background: radial-gradient(circle at 90% 15%, rgba(255,207,106,.56), transparent 29%), linear-gradient(135deg, #3c55c8, #203589 60%, #152052); }
.virtual-card.flipped { transform: rotateY(180deg); }
.virtual-card::after { content: ""; position: absolute; z-index: 3; inset: -50%; pointer-events: none; background: linear-gradient(105deg, transparent 45%, rgba(255,255,255,.16), transparent 55%); transform: rotate(22deg); animation: card-sheen 5s ease-in-out infinite; }
.card-face { position: absolute; inset: 0; padding: 22px; backface-visibility: hidden; transform-style: preserve-3d; }
.card-back { display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(135deg, #10182f, #263a7f); transform: rotateY(180deg); }
.card-back p { margin-bottom: 8px; color: rgba(255,255,255,.72); line-height: 1.45; font-size: 12px; }
.card-back h3 { font-size: 19px; }
.magnetic-strip { position: absolute; top: 28px; right: 0; left: 0; height: 38px; background: rgba(2,6,23,.8); }
.masked-cvv { align-self: flex-end; margin-top: 8px; border-radius: 8px; padding: 6px 9px; background: rgba(255,255,255,.12); font-size: 12px; font-weight: 700; }
@keyframes card-enter { from { opacity: 0; transform: translateY(16px) rotateX(8deg); } to { opacity: 1; transform: none; } }
@keyframes card-sheen { 0%, 58% { translate: -18% 0; opacity: 0; } 72% { opacity: 1; } 100% { translate: 30% 0; opacity: 0; } }
.card-brand { font: 700 20px Manrope, sans-serif; }
.card-chip { width: 37px; height: 28px; margin-top: 25px; border-radius: 8px; background: linear-gradient(135deg, #f6d16e, #b98529); }
.card-number { margin-top: 20px; font-family: Manrope, sans-serif; font-size: 18px; letter-spacing: .09em; }
.card-foot { display: flex; justify-content: space-between; margin-top: 16px; color: rgba(255,255,255,.75); font-size: 11px; }
.balance { color: rgba(255,255,255,.72); font-size: 12px; }
.balance strong { display: block; color: white; font: 800 27px Manrope, sans-serif; margin-top: 3px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 7px 10px; font-size: 11px; font-weight: 700; background: rgba(49,196,141,.12); color: var(--green); }
.status-pill.pending { background: rgba(255,200,87,.13); color: var(--gold); }
.status-pill.awaiting_top_up { background: rgba(255,200,87,.13); color: var(--gold); box-shadow: 0 0 18px rgba(255,200,87,.15); }
.status-pill.blocked, .status-pill.rejected { background: rgba(251,113,133,.13); color: #ffabb8; }
.section { margin: 28px 0; }
.activity-item, .notification-item { display: flex; gap: 12px; align-items: flex-start; padding: 13px 0; }
.activity-item + .activity-item, .notification-item + .notification-item { border-top: 1px solid var(--line); }
.item-icon { flex: 0 0 35px; height: 35px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-soft); color: #8aacff; }
.item-copy { min-width: 0; flex: 1; }
.item-copy strong, .item-copy span { display: block; }
.item-copy strong { font-size: 13px; margin-bottom: 3px; }
.item-copy span { color: var(--muted); font-size: 12px; line-height: 1.4; }
.item-meta { color: var(--muted); font-size: 11px; white-space: nowrap; }
.payment-address { word-break: break-all; padding: 13px; border: 1px dashed rgba(47,107,255,.5); border-radius: 15px; background: rgba(47,107,255,.07); color: #b9ccff; font: 600 12px/1.5 Inter, monospace; }
.qr-placeholder { width: 130px; height: 130px; display: grid; place-items: center; margin: 6px auto 17px; color: var(--bg); background: white; border: 8px solid white; border-radius: 14px; }
.qr-placeholder img { width: 100%; height: 100%; }
.input, .textarea { width: 100%; padding: 15px; border: 1px solid var(--line); border-radius: 15px; outline: 0; color: var(--text); background: var(--surface-strong); }
.textarea { min-height: 106px; resize: vertical; }
.input:focus, .textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,107,255,.13); }
.label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 12px; font-weight: 600; }
.chat { display: grid; gap: 10px; max-height: 390px; overflow-y: auto; }
.message { max-width: 84%; padding: 12px 14px; border-radius: 17px; color: var(--text); font-size: 13px; line-height: 1.45; }
.message.user { justify-self: end; background: var(--blue); border-bottom-right-radius: 5px; }
.message.admin { justify-self: start; background: var(--surface-strong); border-bottom-left-radius: 5px; }
.message-time { display: block; opacity: .72; font-size: 10px; margin-top: 5px; }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 0; }
.settings-row + .settings-row { border-top: 1px solid var(--line); }
.toggle { appearance: none; width: 42px; height: 25px; border-radius: 99px; background: #394052; position: relative; transition: background .2s; }
.toggle::after { content: ""; position: absolute; top: 4px; left: 4px; width: 17px; height: 17px; border-radius: 50%; background: white; transition: transform .2s; }
.toggle:checked { background: var(--blue); }
.toggle:checked::after { transform: translateX(17px); }
.faq-item summary { cursor: pointer; list-style: none; padding: 15px 0; font-size: 14px; font-weight: 600; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { color: var(--muted); font-size: 13px; line-height: 1.55; }
.empty { padding: 24px 18px; text-align: center; color: var(--muted); }
.hero { position: relative; } .hero::after { content: ""; position: absolute; width: 72px; height: 3px; bottom: 7px; border-radius: 9px; background: linear-gradient(90deg, var(--blue), var(--cyan)); box-shadow: 0 0 18px rgba(75,214,255,.45); }
.hero-logo { width: 56px; height: 56px; margin-bottom: 28px; font-size: 28px; animation: logo-pulse 3s ease-in-out infinite; }
@keyframes logo-pulse { 50% { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(65,124,255,.55); } }
.activation-banner, .trust-panel { display: flex; gap: 13px; padding: 16px; border: 1px solid rgba(105,151,255,.23); border-radius: 19px; background: linear-gradient(135deg, rgba(65,124,255,.15), rgba(139,92,246,.08)); }
.activation-banner { margin-top: 14px; } .activation-banner > span, .trust-orb { flex: 0 0 34px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 12px; color: #e8efff; background: rgba(65,124,255,.25); box-shadow: 0 0 24px rgba(65,124,255,.22); }
.activation-banner strong, .trust-panel strong { display: block; font-size: 13px; margin-bottom: 4px; }.activation-banner p, .trust-panel p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.trust-panel { margin: 21px 0; align-items: flex-start; }.trust-orb { background: linear-gradient(135deg, var(--blue), var(--violet)); }.compatible-copy { font-size: 12px; text-align: center; }
.amount-input { position: relative; }.amount-input .input { padding-right: 58px; font: 700 20px Manrope, sans-serif; }.amount-input span { position: absolute; top: 16px; right: 16px; color: var(--cyan); font: 700 12px Inter, sans-serif; }.minimum-note { margin: -4px 0 4px; color: var(--gold); font-size: 12px; }.payment-summary strong { font: 800 22px Manrope, sans-serif; }.confirmation-panel { margin-top: 10px; }.confirmation-panel p { margin: 12px 0 0; }.language-select { width: 112px; padding: 9px; }
.skeleton { position: relative; overflow: hidden; min-height: 120px; background: var(--surface); border-radius: 22px; }
.skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent); transform: translateX(-100%); animation: shimmer 1.25s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.bottom-nav { position: fixed; z-index: 2; bottom: 0; left: 50%; transform: translateX(-50%); display: grid; grid-template-columns: repeat(5, 1fr); width: min(100%, 680px); padding: 10px 11px calc(11px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(11,13,18,.91); backdrop-filter: blur(18px); }
.bottom-nav button { display: grid; place-items: center; gap: 3px; color: var(--muted); font-size: 10px; }
.bottom-nav button span { font-size: 18px; line-height: 1; }
.bottom-nav button em { font-style: normal; }
.bottom-nav button.active { color: #a9c0ff; }
.toast { position: fixed; z-index: 5; left: 50%; bottom: 92px; width: min(90vw, 420px); transform: translateX(-50%); padding: 14px 16px; border: 1px solid var(--line); border-radius: 15px; background: #252c3c; color: white; box-shadow: 0 18px 44px rgba(0,0,0,.35); font-size: 13px; }
@media (min-width: 760px) { .app-shell { padding-left: 28px; padding-right: 28px; } .feature-grid { grid-template-columns: repeat(4, 1fr); } .feature { min-height: 132px; } }
