/* ==========================================================
   eSIM Store — Gradient Glass UI
   ========================================================== */
:root {
  --bg: #070b1f;
  --bg-2: #0e1434;
  --text: #eef0ff;
  --muted: #a9aed4;
  --dim: #7b81ac;
  --glass: rgba(255, 255, 255, .06);
  --glass-2: rgba(255, 255, 255, .10);
  --glass-3: rgba(255, 255, 255, .14);
  --border: rgba(255, 255, 255, .12);
  --border-2: rgba(255, 255, 255, .22);
  --violet: #8b5cf6;
  --pink: #ec4899;
  --orange: #f97316;
  --cyan: #06b6d4;
  --blue: #3b82f6;
  --green: #10b981;
  --amber: #f59e0b;
  --red: #ef4444;
  --grad: linear-gradient(135deg, #8b5cf6 0%, #ec4899 60%, #f97316 100%);
  --grad-cool: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #8b5cf6 100%);
  --grad-green: linear-gradient(135deg, #10b981, #06b6d4);
  --grad-amber: linear-gradient(135deg, #f59e0b, #f97316);
  --grad-red: linear-gradient(135deg, #ef4444, #ec4899);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 12px 40px rgba(0, 0, 0, .35);
  --sidebar-w: 268px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(1100px 600px at 0% -10%, rgba(139, 92, 246, .38), transparent 60%),
    radial-gradient(900px 520px at 110% 0%, rgba(236, 72, 153, .28), transparent 60%),
    radial-gradient(900px 600px at 50% 120%, rgba(6, 182, 212, .26), transparent 60%),
    linear-gradient(180deg, #070b1f, #0b1030);
}
.bg-blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-blobs span { position: absolute; width: 440px; height: 440px; border-radius: 50%; filter: blur(90px); opacity: .32; animation: float 20s ease-in-out infinite; }
.bg-blobs span:nth-child(1) { background: #8b5cf6; top: -140px; left: -120px; }
.bg-blobs span:nth-child(2) { background: #ec4899; bottom: -160px; right: -140px; animation-delay: -7s; }
.bg-blobs span:nth-child(3) { background: #06b6d4; top: 42%; left: 46%; width: 320px; height: 320px; animation-delay: -13s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(70px, -50px) scale(1.1); }
  66% { transform: translate(-50px, 60px) scale(.94); }
}
@media (prefers-reduced-motion: reduce) { .bg-blobs span { animation: none; } html { scroll-behavior: auto; } }

a { color: #c4b5fd; text-decoration: none; transition: color .2s; }
a:hover { color: #fff; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; font-weight: 700; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 13px; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.hidden { display: none !important; }

/* ---------- Glass ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--shadow);
}
.card { border-radius: var(--radius); padding: 22px; position: relative; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.card-head h2, .card-head h3 { margin: 0; font-size: 17px; display: flex; align-items: center; gap: 10px; }
.card-head h2 i, .card-head h3 i { color: #c4b5fd; }
.card + .card, .card + .grid, .grid + .card, .grid + .grid { margin-top: 20px; }

/* ---------- Grid ---------- */
.grid { display: grid; gap: 20px; }
.grid-1 { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-left: auto; margin-right: auto; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 1200px) { .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-main { grid-template-columns: 1fr; } }
@media (max-width: 800px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .grid-4, .grid-5 { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 14px; line-height: 1.2;
  color: #fff; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .15s, box-shadow .2s, background .2s, opacity .2s;
  background: var(--glass-2);
}
.btn:hover { color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn.disabled { opacity: .5; pointer-events: none; }
.btn-primary { background: var(--grad); box-shadow: 0 8px 24px rgba(236, 72, 153, .35); }
.btn-primary:hover { box-shadow: 0 12px 30px rgba(236, 72, 153, .5); }
.btn-cool { background: var(--grad-cool); box-shadow: 0 8px 24px rgba(59, 130, 246, .35); }
.btn-success { background: var(--grad-green); box-shadow: 0 8px 24px rgba(16, 185, 129, .3); }
.btn-warning { background: var(--grad-amber); }
.btn-danger { background: var(--grad-red); box-shadow: 0 8px 24px rgba(239, 68, 68, .3); }
.btn-ghost { background: var(--glass); border-color: var(--border-2); }
.btn-ghost:hover { background: var(--glass-3); }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn-xs { padding: 5px 9px; font-size: 12px; border-radius: 8px; gap: 5px; }
.btn-lg { padding: 15px 28px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-group { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--glass); color: var(--text); display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 16px; flex: none;
}
.icon-btn:hover { background: var(--glass-3); }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 16px; }
.form-group label, .label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 7px; }
.form-group label .req { color: #f472b6; }
.input, select.input, textarea.input {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--border-2); background: rgba(10, 14, 40, .55);
  color: var(--text); font: inherit; font-size: 14px; outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.input::placeholder { color: var(--dim); }
.input:focus { border-color: #a78bfa; box-shadow: 0 0 0 4px rgba(139, 92, 246, .22); background: rgba(10, 14, 40, .75); }
select.input { appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23c4b5fd' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
select.input option, select.input optgroup { background: #151a3d; color: #fff; }
textarea.input { min-height: 100px; resize: vertical; }
.input-sm { padding: 8px 11px; font-size: 13px; border-radius: 10px; width: auto; }
input[type="date"].input { color-scheme: dark; }
input[type="file"].input { padding: 9px; cursor: pointer; }
input[type="file"].input::file-selector-button {
  border: 0; border-radius: 8px; padding: 7px 12px; margin-right: 10px; cursor: pointer;
  background: var(--grad); color: #fff; font: inherit; font-weight: 600; font-size: 13px;
}
.input-icon { position: relative; }
.input-icon > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--dim); pointer-events: none; }
.input-icon > .input { padding-left: 42px; }
.input-icon .toggle-pass { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--dim); cursor: pointer; padding: 6px; }
.help { font-size: 12px; color: var(--dim); margin-top: 6px; display: block; }
.check { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: 14px; color: var(--text); user-select: none; }
.check input { width: 18px; height: 18px; accent-color: var(--violet); cursor: pointer; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
@media (max-width: 640px) { .form-row, .form-row-3 { grid-template-columns: 1fr; } }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; margin-top: 8px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.filters .input { width: auto; min-width: 160px; }
.filters .grow { flex: 1; min-width: 200px; }

/* ---------- Alerts ---------- */
.alert {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 14px; margin-bottom: 16px;
  border: 1px solid; font-size: 14px; animation: slideIn .35s ease;
}
.alert > i { margin-top: 3px; }
.alert span { flex: 1; }
.alert-close { background: none; border: 0; color: inherit; font-size: 20px; line-height: 1; cursor: pointer; opacity: .7; padding: 0 4px; }
.alert-success { background: rgba(16, 185, 129, .14); border-color: rgba(16, 185, 129, .4); color: #a7f3d0; }
.alert-error { background: rgba(239, 68, 68, .14); border-color: rgba(239, 68, 68, .45); color: #fecaca; }
.alert-warning { background: rgba(245, 158, 11, .14); border-color: rgba(245, 158, 11, .45); color: #fde68a; }
.alert-info { background: rgba(59, 130, 246, .14); border-color: rgba(59, 130, 246, .45); color: #bfdbfe; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 700; white-space: nowrap; border: 1px solid;
}
.badge i { font-size: 10px; }
.badge-pending { color: #fde68a; background: rgba(245, 158, 11, .15); border-color: rgba(245, 158, 11, .4); }
.badge-progress { color: #bfdbfe; background: rgba(59, 130, 246, .16); border-color: rgba(59, 130, 246, .45); }
.badge-progress i { animation: spin 1.6s linear infinite; }
.badge-complete, .badge-approved, .badge-active, .badge-credit { color: #a7f3d0; background: rgba(16, 185, 129, .15); border-color: rgba(16, 185, 129, .4); }
.badge-cancelled, .badge-rejected, .badge-blocked, .badge-debit { color: #fecaca; background: rgba(239, 68, 68, .15); border-color: rgba(239, 68, 68, .4); }
.badge-soft { color: #ddd6fe; background: rgba(139, 92, 246, .16); border-color: rgba(139, 92, 246, .4); }
.badge-gray { color: var(--muted); background: var(--glass); border-color: var(--border); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--border); -webkit-overflow-scrolling: touch; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.table th, .table td { padding: 13px 14px; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, .07); vertical-align: middle; }
.table th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--dim); font-weight: 700; background: rgba(255, 255, 255, .035); white-space: nowrap; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: rgba(255, 255, 255, .045); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .actions { display: flex; gap: 6px; flex-wrap: nowrap; justify-content: flex-end; }
.cell-main { font-weight: 600; color: #fff; }
.cell-sub { font-size: 12px; color: var(--dim); }
.amount-credit { color: #6ee7b7; font-weight: 700; }
.amount-debit { color: #fca5a5; font-weight: 700; }
.thumb { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; border: 1px solid var(--border); background: rgba(255,255,255,.05); }

/* ---------- Pager ---------- */
.pager { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.pager a, .pager span { min-width: 38px; height: 38px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--border); background: var(--glass); color: var(--text); font-size: 14px; }
.pager a:hover { background: var(--glass-3); }
.pager .current { background: var(--grad); border-color: transparent; font-weight: 700; }

/* ---------- Pills / Tabs ---------- */
.pills { display: flex; gap: 6px; flex-wrap: wrap; padding: 5px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--border); width: fit-content; max-width: 100%; }
.pill-link {
  padding: 8px 14px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 13px; border: 0; background: none;
  cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
}
.pill-link:hover { color: #fff; background: rgba(255,255,255,.06); }
.pill-link.active { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(236, 72, 153, .35); }
.pill-link .count { background: rgba(255,255,255,.18); border-radius: 999px; padding: 0 7px; font-size: 11px; }
.range-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.custom-range { display: none; gap: 8px; align-items: center; flex-wrap: wrap; }
.custom-range.show { display: flex; }
.tabs { margin-bottom: 20px; }

/* ---------- Stat Cards ---------- */
.stat { border-radius: var(--radius); padding: 20px; display: flex; gap: 16px; align-items: center; position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; width: 140px; height: 140px; right: -40px; top: -50px; border-radius: 50%; opacity: .18; filter: blur(4px); }
.stat-icon { width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; flex: none; }
.stat-body { display: flex; flex-direction: column; min-width: 0; }
.stat-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.stat-value { font-size: 26px; font-weight: 800; color: #fff; line-height: 1.2; overflow-wrap: anywhere; }
.stat-sub { font-size: 12px; color: var(--dim); }
.stat-violet .stat-icon, .stat-violet::after { background: var(--grad); }
.stat-green .stat-icon, .stat-green::after { background: var(--grad-green); }
.stat-amber .stat-icon, .stat-amber::after { background: var(--grad-amber); }
.stat-blue .stat-icon, .stat-blue::after { background: var(--grad-cool); }
.stat-red .stat-icon, .stat-red::after { background: var(--grad-red); }
.stat-cyan .stat-icon, .stat-cyan::after { background: linear-gradient(135deg, #06b6d4, #10b981); }

/* ---------- Panel Layout ---------- */
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w); position: fixed; top: 14px; bottom: 14px; left: 14px; border-radius: 22px;
  display: flex; flex-direction: column; padding: 18px 14px; z-index: 50; overflow-y: auto;
  background: rgba(14, 18, 48, .55);
}
.sidebar-brand { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px 18px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.sidebar-tag { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: #f9a8d4; padding: 0 12px 10px; font-weight: 700; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 18px; }
.brand img { max-height: 40px; width: auto; }
.brand-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--grad); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(236, 72, 153, .4); font-size: 18px; flex: none; }
.brand-name { letter-spacing: -.01em; }
.nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.nav-link {
  display: flex; align-items: center; gap: 13px; padding: 11px 14px; border-radius: 12px;
  color: var(--muted); font-weight: 600; font-size: 14px; position: relative; transition: background .2s, color .2s;
}
.nav-link i { width: 20px; text-align: center; font-size: 15px; }
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav-link.active { color: #fff; background: linear-gradient(135deg, rgba(139, 92, 246, .55), rgba(236, 72, 153, .45)); box-shadow: 0 6px 20px rgba(139, 92, 246, .25); }
.nav-badge { margin-left: auto; font-style: normal; background: var(--grad-red); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 8px; font-weight: 700; }
.sidebar-foot { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.nav-logout:hover { background: rgba(239, 68, 68, .15); color: #fecaca; }
.main { flex: 1; margin-left: calc(var(--sidebar-w) + 28px); padding: 14px 14px 30px 0; min-width: 0; }
.topbar {
  position: sticky; top: 14px; z-index: 40; border-radius: 18px; padding: 12px 18px; display: flex; align-items: center; gap: 14px; margin-bottom: 22px;
  background: rgba(14, 18, 48, .55);
}
.page-title { font-size: 19px; margin: 0; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.avatar { width: 40px; height: 40px; border-radius: 12px; background: var(--grad-cool); display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; flex: none; }
.balance-chip { display: inline-flex; align-items: center; gap: 9px; padding: 6px 6px 6px 14px; border-radius: 12px; background: rgba(16, 185, 129, .14); border: 1px solid rgba(16, 185, 129, .4); color: #a7f3d0; font-weight: 700; font-size: 14px; }
.balance-chip b { width: 28px; height: 28px; border-radius: 9px; background: var(--grad-green); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; }
.balance-chip:hover { color: #fff; }
.content { max-width: 1400px; }
.only-mobile { display: none; }
.sidebar-backdrop { display: none; }
@media (max-width: 991px) {
  .only-mobile { display: inline-flex; }
  .sidebar { transform: translateX(calc(-100% - 20px)); transition: transform .3s ease; top: 10px; bottom: 10px; left: 10px; background: rgba(14, 18, 48, .92); }
  body.sidebar-open .sidebar { transform: none; }
  body.sidebar-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 45; backdrop-filter: blur(3px); }
  .main { margin-left: 0; padding: 10px 12px 30px; }
  .topbar { top: 10px; padding: 10px 12px; }
  .page-title { font-size: 17px; }
}
@media (max-width: 480px) {
  .balance-chip span { font-size: 13px; }
  .avatar { display: none; }
  .card { padding: 16px; }
  .stat-value { font-size: 22px; }
}

/* ---------- Page header / welcome ---------- */
.welcome {
  border-radius: 22px; padding: 26px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px;
  background: linear-gradient(135deg, rgba(139, 92, 246, .35), rgba(236, 72, 153, .25) 60%, rgba(249, 115, 22, .2));
  border: 1px solid rgba(255,255,255,.18); position: relative; overflow: hidden;
}
.welcome::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%); }
.welcome h2 { font-size: 24px; margin-bottom: 4px; }
.welcome p { margin: 0; color: #e9d5ff; }
.wallet-box { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; position: relative; z-index: 1; }
.wallet-amount { font-size: 32px; font-weight: 800; line-height: 1.1; }
.wallet-amount small { display: block; font-size: 12px; font-weight: 600; color: #f5d0fe; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Detail lists ---------- */
.dl { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: 0; margin: 0; }
.dl dt, .dl dd { padding: 11px 0; border-bottom: 1px dashed rgba(255, 255, 255, .1); margin: 0; }
.dl dt { color: var(--dim); font-size: 13px; font-weight: 600; }
.dl dd { color: #fff; font-weight: 600; overflow-wrap: anywhere; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dl dt:last-of-type, .dl dd:last-of-type { border-bottom: 0; }
.copy-btn { background: var(--glass-2); border: 1px solid var(--border); color: var(--muted); border-radius: 8px; padding: 3px 8px; cursor: pointer; font-size: 12px; }
.copy-btn:hover { color: #fff; background: var(--glass-3); }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--violet), var(--pink), transparent); }
.timeline li { position: relative; padding: 0 0 18px 46px; }
.timeline li:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: 4px; top: 2px; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; color: #fff; background: var(--grad); box-shadow: 0 0 0 4px rgba(139, 92, 246, .2); }
.tl-title { font-weight: 700; font-size: 14px; }
.tl-note { font-size: 13px; color: var(--muted); }
.tl-date { font-size: 12px; color: var(--dim); }

/* ---------- Steps (order progress) ---------- */
.steps { display: flex; gap: 0; margin: 4px 0 6px; }
.step { flex: 1; text-align: center; position: relative; font-size: 12px; color: var(--dim); font-weight: 600; }
.step::before { content: ""; position: absolute; top: 17px; left: -50%; right: 50%; height: 3px; background: rgba(255,255,255,.12); z-index: 0; }
.step:first-child::before { display: none; }
.step .dot { width: 36px; height: 36px; border-radius: 50%; margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.08); border: 2px solid rgba(255,255,255,.15); position: relative; z-index: 1; color: var(--dim); }
.step.done { color: #fff; }
.step.done .dot { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 18px rgba(236,72,153,.4); }
.step.done::before { background: var(--grad); }
.step.cancel .dot { background: var(--grad-red); border-color: transparent; color: #fff; }

/* ---------- QR / Delivery ---------- */
.delivery { border-radius: 20px; padding: 22px; background: linear-gradient(135deg, rgba(16, 185, 129, .18), rgba(6, 182, 212, .14)); border: 1px solid rgba(16, 185, 129, .35); }
.qr-box { background: #fff; padding: 14px; border-radius: 18px; width: fit-content; max-width: 260px; margin: 0 auto 14px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.qr-box img { width: 100%; height: auto; }
.qr-box-sm { max-width: 160px; padding: 8px; }

/* ---------- Method cards (top-up) ---------- */
.method-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.method-card { position: relative; cursor: pointer; }
.method-card input { position: absolute; opacity: 0; pointer-events: none; }
.method-card .mc-inner { border-radius: 14px; border: 1.5px solid var(--border-2); background: rgba(255,255,255,.04); padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; transition: all .2s; height: 100%; }
.method-card img { height: 40px; width: auto; object-fit: contain; border-radius: 8px; }
.method-card .mc-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--grad-cool); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.method-card .mc-name { font-weight: 700; font-size: 14px; }
.method-card input:checked + .mc-inner { border-color: #f472b6; background: linear-gradient(135deg, rgba(139,92,246,.25), rgba(236,72,153,.18)); box-shadow: 0 8px 24px rgba(236,72,153,.25); }
.method-card input:checked + .mc-inner::after { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; top: 8px; right: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--grad); font-size: 11px; display: flex; align-items: center; justify-content: center; }
.amount-quick { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.amount-quick button { padding: 7px 14px; border-radius: 10px; border: 1px solid var(--border-2); background: var(--glass); color: var(--text); cursor: pointer; font: inherit; font-weight: 600; font-size: 13px; }
.amount-quick button:hover { background: var(--glass-3); }
.pay-details { white-space: pre-wrap; background: rgba(10,14,40,.55); border: 1px dashed rgba(196,181,253,.45); border-radius: 14px; padding: 16px; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.big-amount { font-size: 34px; font-weight: 800; }
.preview-img { max-width: 220px; max-height: 220px; border-radius: 12px; margin-top: 10px; border: 1px solid var(--border); }

/* ---------- Price summary ---------- */
.summary { border-radius: 16px; padding: 18px; background: linear-gradient(135deg, rgba(139,92,246,.2), rgba(6,182,212,.14)); border: 1px solid rgba(255,255,255,.16); }
.summary-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: 14px; }
.summary-row + .summary-row { border-top: 1px dashed rgba(255,255,255,.12); }
.summary-row strong { font-size: 15px; }
.summary-total strong { font-size: 22px; }
.ok-text { color: #6ee7b7; }
.err-text { color: #fca5a5; }

/* ---------- Empty ---------- */
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty > i { font-size: 40px; margin-bottom: 12px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.empty p { margin-bottom: 14px; }

/* ---------- Modal (dialog) ---------- */
dialog.modal {
  border: 1px solid var(--border-2); border-radius: 22px; padding: 0; width: min(620px, calc(100vw - 24px)); max-height: calc(100vh - 40px);
  background: rgba(18, 22, 56, .92); color: var(--text); box-shadow: 0 30px 80px rgba(0,0,0,.6);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
dialog.modal-lg { width: min(860px, calc(100vw - 24px)); }
dialog.modal::backdrop { background: rgba(4, 6, 20, .7); backdrop-filter: blur(4px); }
dialog.modal[open] { animation: pop .25s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: rgba(18, 22, 56, .96); z-index: 1; }
.modal-head h3 { margin: 0; font-size: 17px; }
.modal-body { padding: 22px; }
.modal-foot { padding: 0 22px 22px; display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(30px); opacity: 0; pointer-events: none; background: var(--grad); color: #fff; padding: 11px 20px; border-radius: 12px; font-weight: 600; font-size: 14px; z-index: 999; transition: all .3s; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Auth ---------- */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 30px 16px; }
.auth-card { width: 100%; max-width: 440px; border-radius: 26px; padding: 34px 30px; background: rgba(16, 20, 52, .55); }
.auth-brand { display: flex; justify-content: center; margin-bottom: 22px; }
.auth-icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 20px; background: var(--grad); display: flex; align-items: center; justify-content: center; font-size: 24px; box-shadow: 0 12px 30px rgba(236,72,153,.4); }
.auth-title { text-align: center; font-size: 24px; margin-bottom: 6px; }
.auth-sub { text-align: center; color: var(--muted); margin-bottom: 24px; font-size: 14px; }
.auth-foot { text-align: center; margin-top: 20px; font-size: 14px; color: var(--muted); }
.auth-foot a { font-weight: 700; }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 13px; flex-wrap: wrap; }
@media (max-width: 480px) { .auth-card { padding: 26px 18px; } }

/* ==========================================================
   Landing page
   ========================================================== */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.land-nav { position: sticky; top: 0; z-index: 60; padding: 14px 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 14px 10px 18px; border-radius: 18px; background: rgba(14, 18, 48, .55); }
.land-links { display: flex; gap: 4px; }
.land-links a { padding: 8px 14px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 14px; }
.land-links a:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-cta { display: flex; gap: 8px; align-items: center; }
.land-menu-btn { display: none; }
@media (max-width: 900px) {
  .land-links { display: none; position: absolute; left: 20px; right: 20px; top: 76px; flex-direction: column; padding: 12px; border-radius: 16px; background: rgba(14,18,48,.96); border: 1px solid var(--border); }
  body.menu-open .land-links { display: flex; }
  .land-menu-btn { display: inline-flex; }
  .nav-cta .btn-ghost { display: none; }
}
@media (max-width: 420px) { .nav-cta .btn { padding: 9px 12px; font-size: 13px; } .brand-name { font-size: 16px; } }

.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; padding: 70px 20px 90px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(139,92,246,.18); border: 1px solid rgba(196,181,253,.4); color: #e9d5ff; font-size: 13px; font-weight: 600; margin-bottom: 20px; }
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,.25); }
.hero h1 { font-size: clamp(36px, 5.4vw, 62px); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; margin-bottom: 20px; }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 34px; color: var(--muted); font-size: 14px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust i { color: #6ee7b7; }
.hero-visual { position: relative; display: flex; justify-content: center; }
.esim-card {
  width: 100%; max-width: 380px; aspect-ratio: 0.72; border-radius: 30px; padding: 28px; position: relative;
  background: linear-gradient(160deg, rgba(255,255,255,.18), rgba(255,255,255,.05)); border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 30px 80px rgba(0,0,0,.45);
  display: flex; flex-direction: column; animation: hover 6s ease-in-out infinite;
}
@keyframes hover { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(1deg); } }
@media (prefers-reduced-motion: reduce) { .esim-card { animation: none; } }
.esim-top { display: flex; justify-content: space-between; align-items: center; }
.chip { width: 54px; height: 42px; border-radius: 10px; background: linear-gradient(135deg, #fde68a, #f59e0b); position: relative; overflow: hidden; }
.chip::before, .chip::after { content: ""; position: absolute; background: rgba(120, 70, 0, .35); }
.chip::before { left: 0; right: 0; top: 50%; height: 2px; }
.chip::after { top: 0; bottom: 0; left: 50%; width: 2px; }
.esim-signal { font-size: 22px; color: #fff; opacity: .9; }
.esim-qr { margin: auto; width: 62%; aspect-ratio: 1; border-radius: 20px; background: #fff; padding: 14px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.esim-qr i { background: #111827; border-radius: 2px; }
.esim-qr i:nth-child(3n) { background: transparent; }
.esim-qr i:nth-child(5n+1) { background: #7c3aed; }
.esim-bottom { display: flex; justify-content: space-between; align-items: end; }
.esim-bottom strong { font-size: 20px; display: block; }
.esim-bottom small { color: #e9d5ff; }
.float-chip { position: absolute; padding: 12px 16px; border-radius: 16px; display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; background: rgba(16,20,52,.7); border: 1px solid var(--border-2); backdrop-filter: blur(16px); box-shadow: var(--shadow); }
.float-chip i { width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.fc-1 { top: 10%; left: -4%; } .fc-1 i { background: var(--grad-green); }
.fc-2 { bottom: 12%; right: -4%; } .fc-2 i { background: var(--grad); }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 40px 20px 60px; text-align: center; gap: 40px; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-trust { justify-content: center; }
  .esim-card { max-width: 300px; }
  .fc-1 { left: 0; } .fc-2 { right: 0; }
}

.section { padding: 80px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 46px; }
.section-head .eyebrow { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #f9a8d4; margin-bottom: 10px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; letter-spacing: -.02em; }
.section-head p { color: var(--muted); font-size: 16px; }
.feature { border-radius: 22px; padding: 28px; transition: transform .25s, border-color .25s; }
.feature:hover { transform: translateY(-6px); border-color: rgba(244, 114, 182, .5); }
.feature-icon { width: 58px; height: 58px; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 18px; background: var(--grad); box-shadow: 0 10px 26px rgba(236,72,153,.35); }
.feature:nth-child(4n+2) .feature-icon { background: var(--grad-cool); box-shadow: 0 10px 26px rgba(59,130,246,.35); }
.feature:nth-child(4n+3) .feature-icon { background: var(--grad-green); box-shadow: 0 10px 26px rgba(16,185,129,.35); }
.feature:nth-child(4n+4) .feature-icon { background: var(--grad-amber); box-shadow: 0 10px 26px rgba(245,158,11,.35); }
.feature h3 { font-size: 19px; }
.feature p { color: var(--muted); margin: 0; font-size: 15px; }
.how-step { border-radius: 22px; padding: 26px; position: relative; }
.how-num { font-size: 46px; font-weight: 800; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 12px; }
.how-step h3 { font-size: 18px; }
.how-step p { color: var(--muted); margin: 0; font-size: 14px; }
.price-card { border-radius: 26px; padding: 32px 28px; display: flex; flex-direction: column; position: relative; transition: transform .25s; }
.price-card:hover { transform: translateY(-6px); }
.price-card.featured { background: linear-gradient(160deg, rgba(139,92,246,.35), rgba(236,72,153,.22)); border-color: rgba(244,114,182,.55); box-shadow: 0 20px 60px rgba(236,72,153,.3); }
.price-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad); padding: 5px 16px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; box-shadow: 0 6px 18px rgba(236,72,153,.4); }
.price-card h3 { font-size: 20px; margin-bottom: 4px; }
.price-card .sub { color: var(--muted); font-size: 14px; min-height: 22px; }
.price { font-size: 46px; font-weight: 800; margin: 18px 0; letter-spacing: -.02em; }
.price small { font-size: 15px; color: var(--muted); font-weight: 600; }
.price-features { list-style: none; padding: 0; margin: 0 0 26px; flex: 1; }
.price-features li { padding: 8px 0; display: flex; gap: 10px; align-items: flex-start; color: #e5e7ff; font-size: 14px; }
.price-features li i { color: #6ee7b7; margin-top: 4px; }
.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details { border-radius: 16px; padding: 0; overflow: hidden; }
.faq summary { padding: 18px 22px; cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "\2b"; font-family: "Font Awesome 6 Free"; font-weight: 900; width: 30px; height: 30px; border-radius: 10px; background: var(--glass-2); display: flex; align-items: center; justify-content: center; flex: none; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--grad); }
.faq .faq-a { padding: 0 22px 20px; color: var(--muted); }
.cta-box { border-radius: 30px; padding: 56px 30px; text-align: center; background: linear-gradient(135deg, rgba(139,92,246,.45), rgba(236,72,153,.32) 55%, rgba(249,115,22,.28)); border: 1px solid rgba(255,255,255,.2); position: relative; overflow: hidden; }
.cta-box h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; }
.cta-box p { color: #f5e8ff; font-size: 16px; max-width: 560px; margin: 0 auto 26px; }
.footer { padding: 40px 0 30px; margin-top: 60px; border-top: 1px solid var(--border); }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer p { color: var(--muted); font-size: 14px; max-width: 360px; margin-top: 12px; }
.footer h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer ul a, .footer ul span { color: var(--muted); }
.footer ul i { width: 18px; color: #c4b5fd; }
.copyright { text-align: center; color: var(--dim); font-size: 13px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border); }
@media (max-width: 640px) { .section { padding: 56px 0; } }

/* ---------- Misc ---------- */
.kv-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; margin-bottom: 8px; }
@media (max-width: 520px) { .kv-row { grid-template-columns: 1fr; } }
.section-title { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); font-weight: 800; margin: 6px 0 14px; display: flex; align-items: center; gap: 10px; }
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.internal-box { border-radius: 16px; padding: 16px; background: rgba(245, 158, 11, .1); border: 1px dashed rgba(245, 158, 11, .5); }
.internal-box .label { color: #fcd34d; }
.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li { padding: 10px 0; border-bottom: 1px dashed rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 10px; }
.list-plain li:last-child { border-bottom: 0; }
.install-steps li { margin-bottom: 6px; }
