/* ---------- design tokens ---------- */
:root {
  /* Loca Blue */
  --bg: #f3f7fd;
  --surface: #ffffff;
  --ink: #0b1c33;
  --ink-2: #43536b;
  --ink-3: #93a3ba;
  --line: #e6edf6;
  --brand: #0a5cff;
  --brand-2: #00b2ff;
  --brand-deep: #06255b;
  --brand-soft: #e8f0ff;
  --green: #12b76a;
  --amber: #f79009;
  --red: #f04438;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px -12px rgba(16, 24, 40, .12);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body { height: 100%; }
body {
  font-family: "Noto Serif Lao", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
input { font: inherit; }

#app { max-width: 480px; margin: 0 auto; min-height: 100dvh; position: relative; }

.view { padding-bottom: calc(84px + var(--safe-b)); min-height: 100dvh; }

/* ---------- tab bar ---------- */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  display: flex;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  padding: 8px 8px calc(8px + var(--safe-b));
  z-index: 50;
}
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 0; color: var(--ink-3); font-size: 11px; font-weight: 600;
  border-radius: 12px; transition: color .15s;
}
.tab svg { width: 24px; height: 24px; fill: currentColor; }
.tab.active { color: var(--brand); }

/* ---------- hero / header ---------- */
.hero {
  background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 60%, var(--brand-2) 100%);
  color: #fff;
  padding: calc(22px + var(--safe-t)) 20px 56px;
  border-radius: 0 0 28px 28px;
}
.hero .brand { display: flex; align-items: center; justify-content: space-between; }
.hero .brand-right { display: flex; align-items: center; gap: 8px; }

/* flag-based language switcher (custom dropdown) */
.lang-dd { position: relative; }
.lang-btn {
  width: 36px; height: 36px; border-radius: 99px; font-size: 19px; line-height: 1;
  background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .3);
  display: grid; place-items: center;
}
.menu .lang-btn { background: var(--brand-soft); border-color: transparent; }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  background: var(--surface); border-radius: 16px; box-shadow: 0 12px 40px -8px rgba(16,24,40,.28);
  padding: 6px; min-width: 168px; display: none;
}
.lang-dd.open .lang-menu { display: block; }
.lang-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 10px 12px; border-radius: 11px; font-size: 14px; font-weight: 600; color: var(--ink);
}
.lang-menu button:hover { background: var(--bg); }
.lang-menu button.active { background: var(--brand-soft); color: var(--brand); }
.lang-menu .lm-flag { font-size: 18px; }
.hero .brand h1 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.hero .brand .badge-demo {
  font-size: 10px; font-weight: 700; letter-spacing: .06em;
  background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .3);
  padding: 4px 8px; border-radius: 99px;
}
.hero p.hello { margin-top: 10px; font-size: 17px; font-weight: 700; min-height: 0; }
.hero p.hello:empty { display: none; }
.hero p.sub { margin-top: 6px; font-size: 14px; opacity: .82; }

.search-wrap { margin: -26px 16px 0; position: relative; z-index: 2; }
.search {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border-radius: 16px; box-shadow: var(--shadow);
  padding: 14px 16px;
}
.search svg { width: 20px; height: 20px; fill: var(--ink-3); flex: none; }
.search input { border: 0; outline: 0; width: 100%; font-size: 15px; background: transparent; color: var(--ink); }
.search input::placeholder { color: var(--ink-3); }

/* ---------- store segments (Country / Region / Global) ---------- */
.segments {
  display: flex; gap: 4px; margin: 16px 16px 4px;
  background: var(--surface); border-radius: 14px; padding: 4px;
  box-shadow: var(--shadow);
}
.segments button {
  flex: 1; padding: 10px 2px; border-radius: 11px;
  font-size: 12px; font-weight: 700; color: var(--ink-2);
  transition: all .15s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.segments button.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; box-shadow: 0 4px 12px -4px rgba(10, 92, 255, .55);
}

/* ---------- sections ---------- */
.section { padding: 22px 16px 0; }
.section h2 { font-size: 16px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 12px; }
.section .hint { font-size: 12px; color: var(--ink-3); margin: -8px 0 12px; }

.chiprow { display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 14px; scrollbar-width: none; }
.chiprow::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 8px 14px; border-radius: 99px; font-size: 13px; font-weight: 600;
  background: var(--surface); color: var(--ink-2); border: 1px solid var(--line);
}
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- cards ---------- */
.card-list { display: flex; flex-direction: column; gap: 10px; }
.country-card {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  background: var(--surface); border-radius: var(--radius); padding: 14px 16px;
  box-shadow: var(--shadow); transition: transform .08s;
}
.country-card:active { transform: scale(.98); }
.flag {
  width: 46px; height: 46px; border-radius: 14px; flex: none;
  background: var(--brand-soft); display: grid; place-items: center; font-size: 26px;
}
.country-card .cc-info { flex: 1; min-width: 0; }
.country-card .cc-name { font-weight: 700; font-size: 15px; }
.country-card .cc-meta { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.country-card .cc-price { text-align: right; flex: none; }
.country-card .cc-price b { font-size: 15px; color: var(--brand); }
.country-card .cc-price span { display: block; font-size: 11px; color: var(--ink-3); }

.list-sect {
  font-size: 12px; font-weight: 700; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: .08em;
  margin: 10px 2px 0;
}
.list-sect:first-child { margin-top: 0; }

.pkg-card {
  width: 100%; text-align: left; background: var(--surface);
  border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow);
  border: 1.5px solid transparent; transition: transform .08s;
}
.pkg-card:active { transform: scale(.98); }
.pkg-card .pk-top { display: flex; justify-content: space-between; align-items: baseline; }
.pkg-card .pk-data { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.pkg-card .pk-price { font-size: 18px; font-weight: 800; color: var(--brand); }
.pkg-card .pk-meta { display: flex; gap: 14px; margin-top: 8px; font-size: 12.5px; color: var(--ink-2); }
.pkg-card .pk-meta span { display: inline-flex; align-items: center; gap: 5px; }
.pkg-card .pk-meta svg { width: 14px; height: 14px; fill: var(--ink-3); }

/* ---------- subpage header ---------- */
.pagehead {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 8px;
  padding: calc(12px + var(--safe-t)) 12px 12px;
  background: rgba(244, 246, 251, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.pagehead .back {
  width: 38px; height: 38px; border-radius: 12px; background: var(--surface);
  box-shadow: var(--shadow); display: grid; place-items: center;
}
.pagehead .back svg { width: 20px; height: 20px; fill: var(--ink); }
.pagehead h1 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.pagehead .sub { font-size: 12px; color: var(--ink-3); }

/* ---------- package detail / checkout ---------- */
.detail-card {
  margin: 8px 16px; background: var(--surface); border-radius: 20px;
  padding: 20px; box-shadow: var(--shadow);
}
.detail-card .dt-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.detail-card .dt-head .flag { width: 52px; height: 52px; font-size: 30px; }
.detail-card .dt-title { font-size: 18px; font-weight: 800; }
.detail-card .dt-sub { font-size: 13px; color: var(--ink-3); }

.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.spec {
  background: var(--bg); border-radius: 14px; padding: 12px 14px;
}
.spec .s-label { font-size: 11px; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.spec .s-value { font-size: 15px; font-weight: 700; margin-top: 3px; }

.info-list { margin-top: 6px; }
.info-list li { list-style: none; font-size: 13.5px; color: var(--ink-2); padding: 6px 0 6px 22px; position: relative; }
.info-list li::before {
  content: ''; position: absolute; left: 2px; top: 12px; width: 7px; height: 7px;
  border-radius: 99px; background: var(--brand);
}

/* ---------- guide tab ---------- */
.guide-head { font-size: 18px; font-weight: 800; letter-spacing: -.02em; margin: 4px 2px 12px; }
.guide-card {
  background: var(--surface); border-radius: var(--radius); padding: 16px 18px;
  box-shadow: var(--shadow); margin-bottom: 10px;
}
.guide-card h3 { font-size: 14.5px; margin-bottom: 10px; }
.guide-card p { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }
.guide-card ol { padding-left: 20px; }
.guide-card ol li { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; margin: 7px 0; }
.guide-note {
  background: var(--brand-soft); color: var(--brand); border-radius: 14px;
  padding: 14px 16px; font-size: 13px; font-weight: 600; line-height: 1.5;
  margin: 4px 0 20px;
}

/* ---------- plan detail extras ---------- */
.sect-head {
  font-size: 12px; font-weight: 700; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: .08em;
  margin: 22px 20px 10px;
}
.fup-note {
  display: flex; flex-direction: column; gap: 3px;
  background: #fef7ea; border-radius: 12px; padding: 12px 14px; margin: 2px 0 10px;
}
.fup-note b { font-size: 12px; color: var(--amber); }
.fup-note span { font-size: 13px; color: var(--ink-2); line-height: 1.45; }

.loca-id { margin-top: 8px; font-size: 12.5px; color: var(--ink-3); }
.loca-id b {
  color: var(--brand); background: var(--brand-soft); border-radius: 8px;
  padding: 3px 8px; letter-spacing: .04em;
}

/* ---------- install cards (manual codes + OS instructions) ---------- */
.install-card .ic-title { font-size: 15px; margin-bottom: 10px; }
.install-card .tabs2 { margin: 0 0 12px; }
.install-card .tabs2 button { background: var(--bg); box-shadow: none; }
.install-card .tabs2 button.active { background: var(--ink); }
.install-card .steps { padding: 0 0 0 18px; }
.install-card .steps li { margin: 8px 0; }
.install-card .code-row { background: var(--bg); }

/* ---------- payment receipt ---------- */
.receipt .rc-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 2px; border-bottom: 1px solid var(--line); font-size: 13.5px;
}
.receipt .rc-row:last-child { border-bottom: 0; }
.receipt .rc-row > span:first-child { color: var(--ink-3); font-weight: 600; }
.receipt .rc-method { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.receipt .rc-sub { color: var(--ink-3); font-size: 12px; }
.ch-logo.mini { width: 24px; height: 24px; border-radius: 7px; font-size: 13px; }
.ch-logo.mini svg { width: 15px; height: 15px; }

/* ---------- coverage & networks ---------- */
.cov-search input {
  width: 100%; padding: 11px 14px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--bg); font-size: 14px; outline: none; color: var(--ink); margin-bottom: 8px;
}
.cov-search input:focus { border-color: var(--brand); background: var(--surface); }
.cov-list { max-height: 300px; overflow-y: auto; }
.cov-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 2px; border-bottom: 1px solid var(--line); font-size: 13px;
}
.cov-row:last-child { border-bottom: 0; }
.cov-flag { font-size: 17px; flex: none; }
.cov-country { font-weight: 600; flex: none; max-width: 45%; }
.cov-nets { margin-left: auto; text-align: right; color: var(--ink-2); }
.cov-nets i { font-style: normal; color: var(--ink-3); font-size: 11.5px; }

.paybar {
  position: fixed; bottom: calc(78px + var(--safe-b)); left: 50%; transform: translateX(-50%);
  width: calc(100% - 32px); max-width: 448px; z-index: 30;
}
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 16px; border-radius: 16px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; font-weight: 700; font-size: 16px;
  box-shadow: 0 10px 24px -8px rgba(10, 92, 255, .5);
  transition: transform .08s, opacity .15s;
}
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btn.ghost { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.btn.small { padding: 12px; font-size: 14px; border-radius: 13px; }

/* ---------- forms ---------- */
.form { padding: 8px 20px; display: flex; flex-direction: column; gap: 12px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field input {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line);
  background: var(--surface); font-size: 15px; outline: none; color: var(--ink);
}
.field input:focus { border-color: var(--brand); }
.form .alt { text-align: center; font-size: 14px; color: var(--ink-2); padding: 6px; }
.form .alt b { color: var(--brand); }

/* ---------- my esims ---------- */
.esim-card {
  background: var(--surface); border-radius: 20px; box-shadow: var(--shadow);
  padding: 18px; width: 100%; text-align: left;
}
.esim-card .e-top { display: flex; align-items: center; gap: 12px; }
.esim-card .e-title { font-weight: 800; font-size: 15px; }
.esim-card .e-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.status-pill {
  margin-left: auto; flex: none; font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 99px;
}
.st-completed, .st-authorized { background: #e7f8f0; color: var(--green); }
.st-paid, .st-pending { background: #fef4e6; color: var(--amber); }
.st-failed, .st-refunded { background: #fdecea; color: var(--red); }
.st-archived { background: var(--bg); color: var(--ink-3); }
.archived-card { opacity: .75; cursor: default; }
.archived-card.has-iccid { opacity: .9; cursor: pointer; }
.archived-card.has-iccid:active { transform: scale(.98); }
.arch-check { color: var(--brand); font-weight: 700; }

/* ---------- archived status popup ---------- */
.popup-overlay {
  position: fixed; inset: 0; z-index: 95;
  background: rgba(11, 28, 51, .5); backdrop-filter: blur(3px);
  display: grid; place-items: center; padding: 24px;
}
.popup {
  width: 100%; max-width: 340px; background: var(--surface);
  border-radius: 20px; padding: 20px; box-shadow: 0 24px 60px -16px rgba(0,0,0,.4);
}
.pu-title { font-weight: 800; font-size: 15px; margin-bottom: 8px; }
.pu-status { margin-top: 4px; }
.pu-nodata { color: var(--ink-2); font-size: 13.5px; padding: 14px 0; line-height: 1.5; }
.pu-close { margin-top: 16px; }

/* ---------- payment sheet ---------- */
.paysheet-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(11, 28, 51, .5); backdrop-filter: blur(3px);
  display: flex; align-items: flex-end; justify-content: center;
}
.paysheet {
  width: 100%; max-width: 480px; background: var(--surface);
  border-radius: 24px 24px 0 0; padding: 18px 18px calc(14px + var(--safe-b));
  max-height: 86dvh; display: flex; flex-direction: column; overflow: hidden;
}
.ps-body { overflow-y: auto; flex: 1 1 auto; min-height: 60px; }
.ps-foot { flex: none; padding-top: 12px; margin-top: 8px; border-top: 1px solid var(--line); }
.btn-spin {
  display: inline-block; width: 16px; height: 16px; margin-right: 8px; vertical-align: -3px;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 99px;
  animation: spin .8s linear infinite;
}
.ps-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.ps-head b { font-size: 17px; }
.ps-amount { margin-left: auto; font-weight: 800; color: var(--brand); font-size: 17px; }
.ps-close {
  width: 32px; height: 32px; border-radius: 99px; background: var(--bg);
  font-size: 13px; color: var(--ink-2); flex: none;
}
.ps-label { font-size: 12px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; margin: 4px 0 8px; }
.ps-card {
  display: flex; align-items: center; gap: 10px; padding: 13px 14px;
  border: 1.5px solid var(--line); border-radius: 14px; margin-bottom: 8px;
  font-size: 14px; font-weight: 600; cursor: pointer;
}
.ps-card:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.ps-card input { accent-color: var(--brand); }
.ps-brand { font-size: 11px; font-weight: 800; background: var(--ink); color: #fff; border-radius: 6px; padding: 3px 7px; }
.ps-exp { margin-left: auto; color: var(--ink-3); font-size: 12.5px; }
.ps-pay { margin-top: 0; }
.ps-err { color: var(--red); font-size: 12.5px; text-align: center; min-height: 16px; margin-top: 8px; }
.ps-note { font-size: 11.5px; color: var(--ink-3); text-align: center; margin-top: 10px; line-height: 1.5; }

/* gateway channel buttons (Alipay / WeChat Pay / LAO QR) */
.ps-channel {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px;
  margin-bottom: 8px; font-size: 14px; font-weight: 700; background: var(--surface);
  transition: transform .08s;
}
.ps-channel:active { transform: scale(.98); }
.ps-channel b { margin-left: auto; color: var(--ink-2); font-size: 13px; }
.ch-logo {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 17px;
}
.ch-logo svg { width: 22px; height: 22px; }
.ch-logo.big { width: 52px; height: 52px; border-radius: 14px; margin: 0 auto; }
.ch-logo.big svg { width: 32px; height: 32px; }

/* gateway payment (QR / open-app + waiting) */
.gw-pay { text-align: center; padding: 8px 0 4px; }
.gw-amount { font-size: 22px; font-weight: 800; margin: 10px 0 2px; letter-spacing: -.02em; }
.gw-qr {
  width: 210px; height: 210px; display: block; margin: 12px auto 4px;
  background: #fff; border-radius: 16px; padding: 10px; box-shadow: var(--shadow);
}
.gw-hint { font-size: 12.5px; color: var(--ink-2); margin-top: 8px; padding: 0 12px; }
.gw-open { display: inline-flex; width: auto; padding: 12px 26px; margin: 10px auto 0; }
.gw-check { display: inline-flex; width: auto; padding: 11px 22px; margin: 10px auto 0; }
.gw-open + .gw-check { margin-left: 8px; }
.gw-wait {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--ink-3); font-size: 12.5px; font-weight: 600; margin-top: 14px;
}

.usagebar { margin-top: 14px; }
.usagebar .u-row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-2); margin-bottom: 6px; }
.usagebar .track { height: 8px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.usagebar .u-exp { margin-top: 9px; font-size: 12px; color: var(--ink-3); font-weight: 600; }
.usagebar .u-exp:empty { display: none; }
.usagebar .fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }

/* ---------- QR / install ---------- */
.onetap-wrap { margin: 14px 16px 4px; }
a.onetap { text-decoration: none; }
.onetap-note {
  text-align: center; font-size: 11.5px; color: var(--ink-3);
  margin-top: 8px; line-height: 1.45; padding: 0 8px;
}
.warn-note {
  margin: 12px 16px 0; padding: 12px 14px;
  background: #fdecea; border: 1px solid #f8c9c4; border-radius: 12px;
  color: var(--red); font-size: 12.5px; font-weight: 600; line-height: 1.5;
  text-align: center;
}
.qr-box {
  margin: 14px auto; background: #fff; border-radius: 20px; padding: 18px;
  width: 240px; box-shadow: var(--shadow); text-align: center;
}
.qr-box img { width: 200px; height: 200px; display: block; margin: 0 auto; }
.code-row {
  display: flex; align-items: center; gap: 8px; background: var(--bg);
  border-radius: 12px; padding: 12px 14px; margin-top: 10px;
}
.code-row code { font-size: 12px; word-break: break-all; color: var(--ink-2); flex: 1; }
.code-row button { color: var(--brand); font-weight: 700; font-size: 12px; flex: none; }

.tabs2 { display: flex; gap: 8px; margin: 4px 16px 12px; }
.tabs2 button {
  flex: 1; padding: 10px; border-radius: 12px; font-size: 13px; font-weight: 700;
  background: var(--surface); color: var(--ink-2); box-shadow: var(--shadow);
}
.tabs2 button.active { background: var(--ink); color: #fff; }

.steps { padding: 0 20px; }
.steps li { font-size: 14px; color: var(--ink-2); margin: 10px 0 10px 4px; padding-left: 8px; }

/* ---------- empty / misc ---------- */
.empty { text-align: center; padding: 60px 32px; color: var(--ink-3); }
.empty .big { font-size: 44px; margin-bottom: 12px; }
.empty h3 { color: var(--ink); font-size: 16px; margin-bottom: 6px; }
.empty p { font-size: 13.5px; line-height: 1.5; }

.loading { display: grid; place-items: center; padding: 70px 0; color: var(--ink-3); font-size: 14px; }

/* ---------- skeleton shimmer ---------- */
.sk {
  display: inline-block; border-radius: 8px;
  background: linear-gradient(90deg, #e8edf5 25%, #f3f7fd 50%, #e8edf5 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s ease-in-out infinite;
}
.sk.light {
  background: linear-gradient(90deg, rgba(255,255,255,.22) 25%, rgba(255,255,255,.4) 50%, rgba(255,255,255,.22) 75%);
  background-size: 200% 100%;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.sk-flag { width: 46px; height: 46px; border-radius: 14px; flex: none; }
.sk-line { height: 14px; }
.sk-line.thin { height: 10px; margin-top: 7px; }
.sk-line { display: block; }
.sk-seg { flex: 1; height: 38px; border-radius: 11px; }
.sk-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border-radius: var(--radius); padding: 14px 16px;
  box-shadow: var(--shadow);
}
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }
.spinner {
  width: 28px; height: 28px; border-radius: 99px; margin-bottom: 12px;
  border: 3px solid var(--line); border-top-color: var(--brand);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.toast {
  position: fixed; left: 50%; bottom: calc(96px + var(--safe-b)); transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 600;
  padding: 12px 18px; border-radius: 99px; opacity: 0; pointer-events: none;
  transition: all .25s; z-index: 99; max-width: 90%; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.success-hero { text-align: center; padding: 34px 24px 10px; }
.success-hero .ok {
  width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 99px;
  background: #e7f8f0; display: grid; place-items: center;
}
.success-hero .ok svg { width: 38px; height: 38px; fill: var(--green); }
.success-hero h2 { font-size: 20px; letter-spacing: -.02em; }
.success-hero p { color: var(--ink-2); font-size: 14px; margin-top: 6px; }

.profile-head { text-align: center; padding: calc(40px + var(--safe-t)) 20px 20px; }
.avatar {
  width: 84px; height: 84px; border-radius: 99px; margin: 0 auto 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; display: grid; place-items: center; font-size: 32px; font-weight: 800;
}
.menu { margin: 10px 16px; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.menu-item {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 16px 18px; font-size: 15px; font-weight: 600; border-bottom: 1px solid var(--line);
}
.menu-item:last-child { border-bottom: 0; }
.menu-item .mi-icon { width: 36px; height: 36px; border-radius: 11px; background: var(--brand-soft); display: grid; place-items: center; }
.menu-item .mi-icon svg { width: 18px; height: 18px; fill: var(--brand); }
.menu-item.danger { color: var(--red); }
.menu-item.danger .mi-icon { background: #fdecea; }
.menu-item.danger svg { fill: var(--red); }
