/* esim.css — dùng chung cho /esim, /esim/don, /esim/huong-dan */
:root { --hero-1:#0b3d91; --hero-2:#1565d8; --hero-3:#1e88e5; }
body { background:#f5f7fb; }
.dv-header { background:var(--hero-1); position:static; border:0; }
.dv-header .wrap { gap:12px; flex-wrap:wrap; }
.dv-header .brand-name, .dv-header .brand-sub { color:#fff; }
.dv-nav { display:flex; gap:4px; overflow-x:auto; max-width:100%; scrollbar-width:none; }
.dv-nav::-webkit-scrollbar { display:none; }
.dv-nav a { color:#e0ecff; text-decoration:none; font-weight:600; font-size:14px; padding:8px 12px; border-radius:9px; white-space:nowrap; }
.dv-nav a:hover { background:rgba(255,255,255,.12); color:#fff; }

.es-hero { background:radial-gradient(1200px 500px at 85% 110%, rgba(126,200,255,.35), transparent 60%),
  linear-gradient(180deg, var(--hero-1), var(--hero-2) 55%, var(--hero-3)); color:#fff; padding:44px 0 130px; text-align:center; }
.es-hero.short { padding:30px 0 100px; }
.es-badge { display:inline-block; background:rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.35); border-radius:999px; padding:5px 14px; font-size:13px; font-weight:700; margin-bottom:14px; }
.es-hero h1 { font-size:clamp(28px, 5vw, 48px); margin:0 0 10px; line-height:1.15; }
.es-hero p { margin:0 auto; max-width:640px; color:#dbe8ff; font-size:17px; }
.es-box { max-width:880px; margin:-95px auto 0; position:relative; z-index:4; padding:0 16px; }
.es-panel { background:#fff; border-radius:16px; box-shadow:0 12px 40px rgba(15,23,42,.14); padding:22px; }

.es-markets { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:10px; }
.es-markets button { flex:1; min-width:180px; border:2px solid var(--line); background:#fff; border-radius:14px; padding:12px 14px; font:inherit; font-weight:700; font-size:16px; cursor:pointer; text-align:left; }
.es-markets button[aria-selected="true"] { border-color:var(--hero-2); background:#eaf2ff; color:var(--hero-1); }
.es-markets small { display:block; font-weight:400; color:var(--muted); font-size:12.5px; }

.es-row { margin:16px 0 4px; }
.es-lab { display:block; font-weight:700; font-size:14px; margin-bottom:8px; }
.es-days { display:flex; gap:8px; flex-wrap:wrap; }
.es-days button { border:1px solid var(--line); background:#fff; border-radius:10px; padding:9px 14px; font:inherit; font-weight:700; cursor:pointer; min-width:74px; }
.es-days button[aria-checked="true"] { border-color:var(--hero-2); background:var(--hero-2); color:#fff; }
.es-kinds { display:flex; gap:10px; flex-wrap:wrap; }
.es-kinds button { flex:1; min-width:180px; border:2px solid var(--line); background:#fff; border-radius:12px; padding:10px 14px; font:inherit; font-weight:700; cursor:pointer; text-align:left; }
.es-kinds button[aria-checked="true"] { border-color:var(--hero-2); background:#eaf2ff; color:var(--hero-1); }
.es-kinds small { display:block; font-weight:400; color:var(--muted); font-size:12.5px; }
.es-pkgs .tag { align-self:flex-start; background:#16a34a; color:#fff; font-size:11px; font-weight:700; border-radius:999px; padding:2px 8px; }
.es-pkgs .tag2 { background:#f59e0b; }
.es-pkgs { display:grid; gap:10px; grid-template-columns:repeat(3, 1fr); }
.es-pkgs button { border:2px solid var(--line); background:#fff; border-radius:12px; padding:12px; font:inherit; cursor:pointer; text-align:left; display:flex; flex-direction:column; gap:4px; }
.es-pkgs button[aria-checked="true"] { border-color:var(--hero-2); background:#eaf2ff; }
.es-pkgs b { font-size:15.5px; }
.es-pkgs .pr { color:#c2410c; font-weight:800; font-size:18px; }
.es-pkgs .x { color:var(--muted); font-size:12px; line-height:1.35; }

.es-sum { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; background:#f5f8ff; border:1px dashed #b9cdf3; border-radius:12px; padding:12px 14px; margin-top:18px; }
.es-qty { display:flex; align-items:center; gap:10px; font-weight:700; }
.es-qty button { width:34px; height:34px; border-radius:50%; border:1px solid var(--line); background:#fff; font-size:18px; cursor:pointer; }
.es-total { text-align:right; } .es-total b { display:block; font-size:26px; color:#c2410c; line-height:1.2; }

.es-grid { display:grid; gap:4px 14px; grid-template-columns:1fr 1fr; margin-top:16px; }
.es-grid .field { margin-bottom:10px; min-width:0; } .es-grid input { width:100%; box-sizing:border-box; }
.es-check { display:flex; gap:10px; align-items:flex-start; font-weight:400; font-size:14px; margin:6px 0 4px; }
.es-check input { width:auto !important; margin-top:3px; flex:0 0 auto; }
.es-go { background:var(--hero-2); color:#fff; border:0; border-radius:12px; padding:14px 22px; font:inherit; font-weight:700; cursor:pointer; width:100%; margin:12px 0 8px; font-size:17px; }
.es-go:hover { background:var(--hero-1); } .es-go:disabled { opacity:.6; cursor:wait; }

.es-sec { max-width:880px; margin:36px auto 0; padding:0 16px; }
.es-sec h2 { font-size:22px; margin:0 0 12px; }
.es-steps3 { display:grid; gap:14px; grid-template-columns:repeat(3, 1fr); counter-reset:s; }
.es-steps3 div { background:#fff; border-radius:14px; padding:16px; box-shadow:var(--shadow); font-size:14px; }
.es-steps3 b { display:block; font-size:15px; margin-bottom:4px; }
.es-steps3 b::before { counter-increment:s; content:counter(s) ". "; color:var(--hero-2); }
.es-faq details { background:#fff; border-radius:12px; padding:12px 16px; margin-bottom:8px; box-shadow:var(--shadow); }
.es-faq summary { font-weight:700; cursor:pointer; }
.es-faq p { margin:8px 0 0; font-size:14.5px; }

/* Trang đơn */
.od-card { background:#fff; border-radius:16px; box-shadow:0 12px 40px rgba(15,23,42,.10); padding:20px; margin-bottom:16px; }
.od-head { display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap; align-items:flex-start; }
.od-head h2 { margin:0; font-size:18px; }
.od-meta { color:var(--muted); font-size:13.5px; margin-top:4px; }
.od-badge { display:inline-block; border-radius:999px; padding:4px 12px; font-size:13px; font-weight:700; }
.od-wait { background:#f1f5f9; color:#475569; } .od-paid { background:#e0f2fe; color:#075985; }
.od-ok { background:#dcfce7; color:#166534; } .od-bad { background:#fee2e2; color:#991b1b; }
.od-steps { display:flex; gap:6px; margin:16px 0; padding:0; list-style:none; font-size:13px; flex-wrap:wrap; }
.od-steps li { flex:1; min-width:120px; padding:8px 10px; border-radius:10px; background:#f1f5f9; color:var(--muted); font-weight:700; }
.od-steps li.on { background:#dcfce7; color:#166534; }
.od-qr { display:grid; gap:14px; grid-template-columns:repeat(auto-fit, minmax(240px, 1fr)); margin-top:12px; }
.od-qr .q { border:1px solid var(--line); border-radius:12px; padding:12px; text-align:center; }
.od-qr img { width:220px; max-width:100%; height:auto; border-radius:8px; background:#fff; }
.od-qr code { word-break:break-all; font-size:12.5px; }
.od-copy { font-size:12.5px; text-align:left; margin-top:8px; }
.od-warn { background:#fff7ed; border:1px solid #fdba74; border-radius:12px; padding:10px 12px; font-size:14px; margin:12px 0; }

/* Hướng dẫn */
.hd-tabs { display:flex; gap:10px; margin-bottom:14px; flex-wrap:wrap; }
.hd-tabs button { flex:1; min-width:150px; border:2px solid var(--line); background:#fff; border-radius:12px; padding:12px; font:inherit; font-weight:700; font-size:16px; cursor:pointer; }
.hd-tabs button[aria-selected="true"] { border-color:var(--hero-2); background:#eaf2ff; color:var(--hero-1); }
.hd-steps { display:grid; gap:16px; grid-template-columns:repeat(auto-fit, minmax(230px, 1fr)); counter-reset:h; }
.hd-step { background:#fff; border-radius:14px; box-shadow:var(--shadow); padding:14px; }
.hd-step h3 { font-size:15.5px; margin:10px 0 4px; }
.hd-step h3::before { counter-increment:h; content:"Bước " counter(h) ". "; color:var(--hero-2); }
.hd-step p { font-size:14px; margin:0; }
.hd-step svg { width:100%; height:auto; display:block; border-radius:10px; background:#eef2f8; }
.hd-video { background:#fff; border-radius:14px; box-shadow:var(--shadow); padding:14px; }
.hd-video video { width:100%; max-width:360px; border-radius:12px; display:block; margin:0 auto; background:#000; }

@media (max-width: 760px) {
  .es-pkgs { grid-template-columns:1fr 1fr; }
  .es-grid, .es-steps3 { grid-template-columns:1fr; }
  .es-hero { padding:32px 0 115px; } .es-hero p { font-size:15px; }
}

/* Khối so giá 3 nơi (đầu khung mua) */
.es-cmp { border:1px solid #cfe0ff; background:#f7faff; border-radius:14px; padding:14px; margin-bottom:18px; }
.es-cmp-h { display:flex; justify-content:space-between; align-items:baseline; gap:8px; flex-wrap:wrap; margin-bottom:8px; }
.es-cmp-h b { font-size:16px; color:var(--hero-1); }
.es-cmp-h span { font-size:13px; color:var(--muted); }
.es-cmp-r { display:grid; grid-template-columns:1fr auto auto; align-items:center; gap:12px; background:#fff; border:1px solid var(--line); border-radius:12px; padding:10px 12px; margin-top:8px; }
.es-cmp-r.best { border:2px solid #16a34a; background:#f0fdf4; }
.es-cmp-n b { display:block; font-size:15px; }
.es-cmp-n small, .es-cmp-p small { display:block; color:var(--muted); font-size:12px; }
.es-cmp-n .tag { display:inline-block; background:#16a34a; color:#fff; font-size:11px; font-weight:700; border-radius:999px; padding:2px 8px; margin-bottom:3px; }
.es-cmp-p { text-align:right; min-width:96px; }
.es-cmp-p b { font-size:18px; color:#c2410c; }
.es-cmp-r .btn { white-space:nowrap; }
.es-cmp-f { font-size:12.5px; color:var(--muted); margin:10px 0 0; line-height:1.45; }
.es-cmp-f b { color:#166534; }
@media (max-width:560px) {
  .es-cmp-r { grid-template-columns:1fr auto; }
  .es-cmp-r .btn { grid-column:1 / -1; text-align:center; }
}

/* /esim/don: cài 1 chạm, 6 bước, khắc phục nhanh (26/11/2026) */
.od-copy .od-kv, .od-man .od-kv { display:flex; gap:6px; align-items:center; flex-wrap:wrap; margin:4px 0; }
.od-kv .k { color:var(--muted); min-width:92px; }
.od-sub { font-size:13px; font-weight:700; margin:12px 0 6px; text-align:left; }
.od-1taps { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.od-1tap { display:flex; flex-direction:column; align-items:center; padding:10px 8px; border-radius:10px; color:#fff; text-decoration:none; line-height:1.3; }
.od-1tap small { font-size:11.5px; opacity:.85; }
.od-1tap.ios { background:#0f172a; } .od-1tap.and { background:#16a34a; }
.od-1tap:hover { filter:brightness(1.1); color:#fff; }
.od-man { text-align:left; margin-top:12px; font-size:12.5px; border-top:1px dashed var(--line); padding-top:8px; }
.od-man summary { cursor:pointer; font-weight:700; font-size:13px; }
.od-dev { color:var(--muted); margin:10px 0 2px; }
.od-h3 { font-size:16px; margin:20px 0 8px; }
.od-6 { list-style:none; padding:0; margin:0; display:grid; grid-template-columns:repeat(auto-fit, minmax(140px, 1fr)); gap:8px; }
.od-6 li { background:#f8fafc; border:1px solid var(--line); border-radius:10px; padding:10px; font-size:13px; display:flex; flex-direction:column; gap:2px; }
.od-6 .n { width:26px; height:26px; line-height:26px; text-align:center; border-radius:50%; background:#1565d8; color:#fff; font-weight:700; margin-bottom:4px; }
.od-6 small { color:var(--muted); }
.od-fix { background:#f1f5f9; border-radius:12px; padding:12px 14px; margin-top:14px; font-size:14px; }
.od-fix ul { margin:6px 0 8px; padding-left:20px; }
