/* Hộp chọn ứng dụng AI dùng chung cho mọi theme. Màu và font theo sepay.vn: #3E6AC8, Inter. */
.ax-box{--ax-blue:#3E6AC8;--ax-ink:#14213D;--ax-fg:#33405c;--ax-muted:#66728a;--ax-line:#e3e8f1;--ax-soft:#f6f8fd;
  margin-top:40px;border:1px solid var(--ax-line);border-radius:14px;background:#fff;overflow:hidden;color:var(--ax-fg);text-align:left;
  font-family:"Inter",system-ui,-apple-system,"Segoe UI",sans-serif;box-shadow:0 24px 48px -36px rgba(31,59,125,.3)}
.ax-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px;align-items:center;padding:20px 24px;background:var(--ax-soft);border-bottom:1px solid var(--ax-line)}
.ax-k{margin:0;font:500 12px "JetBrains Mono",ui-monospace,monospace;color:var(--ax-muted)}
.ax-url{display:flex;align-items:center;gap:6px;margin-top:8px;padding:6px 6px 6px 14px;background:#fff;border:1px solid var(--ax-line);border-radius:8px}
.ax-url code{flex:1;min-width:0;font:500 15px "JetBrains Mono",ui-monospace,monospace;color:var(--ax-ink);overflow-wrap:anywhere}
.ax-docs{margin:0;font-size:14.5px;line-height:1.6;color:var(--ax-fg)}
.ax-tabs{display:flex;gap:4px;padding:0 16px;border-bottom:1px solid var(--ax-line);overflow-x:auto;scrollbar-width:none}
.ax-tabs::-webkit-scrollbar{display:none}
.ax-tabs button{display:flex;align-items:center;gap:8px;background:none;border:0;border-bottom:2px solid transparent;margin-bottom:-1px;padding:13px 12px;min-height:48px;font:500 14.5px "Inter",system-ui,sans-serif;color:var(--ax-muted);cursor:pointer;white-space:nowrap;border-radius:0}
.ax-tabs button img{width:20px;height:20px;border-radius:5px}
.ax-more{width:18px;height:18px;border-radius:5px;border:1.5px dashed #c9d2e2}
.ax-tabs button:hover{color:var(--ax-ink)}
.ax-tabs button[aria-selected="true"]{color:var(--ax-ink);border-bottom-color:var(--ax-blue)}
.ax-tabs button:focus-visible{outline:2px solid var(--ax-blue);outline-offset:-2px}
.ax-pane{padding:22px 24px 24px}
.ax-steps{margin:0;padding:0;list-style:none;counter-reset:ax;display:flex;flex-direction:column;gap:12px}
.ax-steps li{counter-increment:ax;position:relative;min-height:28px;padding-left:40px;font-size:15.5px;line-height:1.55;color:var(--ax-fg)}
.ax-steps li::before{content:counter(ax);position:absolute;left:0;top:0;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--ax-blue);color:#fff;font:600 13px "JetBrains Mono",ui-monospace,monospace}
.ax-cmd{margin-top:16px;display:flex;align-items:center;gap:6px;padding:8px 6px 8px 14px;background:#0f1a33;border-radius:8px}
.ax-cmd code{flex:1;min-width:0;font:500 12.5px/1.6 "JetBrains Mono",ui-monospace,monospace;color:#e6edfb;overflow-wrap:anywhere}
.ax-note{margin:12px 0 0;font-size:14px;color:var(--ax-muted)}
.ax-link{display:inline-block;margin-top:16px;font-size:14.5px;font-weight:600;color:var(--ax-blue);text-decoration:none}
.ax-link:hover{text-decoration:underline;text-underline-offset:4px}
.ax-copy{flex:none;display:grid;place-items:center;width:32px;height:32px;border:0;border-radius:6px;background:transparent;color:var(--ax-muted);cursor:pointer}
.ax-cmd .ax-copy{color:#9fb0d2}
.ax-copy:hover{background:rgba(62,106,200,.12);color:var(--ax-blue)}
.ax-cmd .ax-copy:hover{background:rgba(255,255,255,.1);color:#fff}
.ax-copy svg{width:15px;height:15px}
.ax-copy .i-ok,.ax-copy.done .i-copy{display:none}
.ax-copy.done .i-ok{display:block;color:#16a06a}
.ax-pane[hidden]{display:none!important}
@media (max-width:820px){.ax-head{grid-template-columns:minmax(0,1fr);gap:14px}.ax-pane,.ax-head{padding:18px 16px}.ax-url code{font-size:13.5px}}

/* SePay Skills sắp ra mắt, dùng chung */
.sk-soon{margin-top:14px;font-family:"Inter",system-ui,sans-serif;text-align:left}
.sk-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.sk-pill{display:inline-flex;align-items:center;gap:6px;font:600 12.5px "Inter",system-ui,sans-serif;color:#9a5b00;background:#fdf1dc;border:1px solid #f3d9a4;border-radius:999px;padding:3px 11px}
.sk-pill i{width:7px;height:7px;border-radius:50%;background:#e0a100;box-shadow:0 0 0 3px rgba(224,161,0,.18)}
.sk-eta{font:500 12px "Inter",system-ui,sans-serif;color:#66728a}
.sk-term{margin-top:10px;border:1.5px dashed rgba(62,106,200,.4);border-radius:10px;background:#fafbfe;padding:10px}
.sk-in{margin:0 0 6px;padding:6px 10px;border:1px solid #dbe2ee;border-radius:7px;background:#fff;font:500 12.5px "JetBrains Mono",ui-monospace,monospace;color:#14213D}
.sk-in span{color:#3E6AC8;margin-right:4px}
.sk-in b{display:inline-block;width:2px;height:13px;margin-left:2px;vertical-align:-2px;background:#3E6AC8;animation:skC 1s steps(1) infinite}
@keyframes skC{50%{opacity:0}}
.sk-term ul{list-style:none;margin:0;padding:0;opacity:.72}
.sk-term li{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:4px 8px;border-radius:5px;font-size:12px;color:#66728a}
.sk-term li:first-child{background:#eef3fd}
.sk-term code{font:500 11.5px "JetBrains Mono",ui-monospace,monospace;color:#3E6AC8;white-space:nowrap}
.sk-term li span{text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sk-mini{margin:8px 0 0;font-size:12.5px;color:#66728a}
.sk-soon.dark .sk-term{background:rgba(255,255,255,.04);border-color:rgba(160,190,250,.4)}
.sk-soon.dark .sk-in{background:rgba(255,255,255,.06);border-color:rgba(160,190,250,.25);color:#fff}
.sk-soon.dark .sk-term li{color:#a9bbe6}.sk-soon.dark .sk-term li:first-child{background:rgba(62,106,200,.25)}
.sk-soon.dark .sk-term code{color:#9fbcff}.sk-soon.dark .sk-eta,.sk-soon.dark .sk-mini{color:#a9bbe6}
@media (prefers-reduced-motion:reduce){.sk-in b{animation:none}}
.sk-soon .sk-mini{font-size:12.5px!important;line-height:1.5!important;color:#66728a}

/* ============ Mỗi theme một kiểu tab chọn ứng dụng AI ============ */

/* Theme 00 thiết kế lại (t02): segmented control, viên thuốc trắng nổi trên rãnh xám */
.t02 .ax-tabs{margin:16px 20px 0;padding:4px;gap:4px;background:#eef1f6;border:0;border-radius:12px;width:fit-content;max-width:calc(100% - 40px)}
.t02 .ax-tabs button{border:0;margin:0;border-radius:9px;padding:9px 14px;min-height:42px}
.t02 .ax-tabs button[aria-selected="true"]{background:#fff;color:#14213D;box-shadow:0 1px 2px rgba(20,33,61,.08),0 4px 12px -4px rgba(20,33,61,.18)}

/* Theme 01 (t01): danh sách dọc bên trái, vạch xanh ở mục đang chọn */
.t01 .ax-box{display:grid;grid-template-columns:220px minmax(0,1fr)}
.t01 .ax-head{grid-column:1/-1}
.t01 .ax-tabs{grid-column:1;grid-row:2;flex-direction:column;gap:2px;padding:14px 10px;border-bottom:0;border-right:1px solid var(--ax-line);background:#fafbfe}
.t01 .ax-tabs button{border:0;margin:0;border-radius:8px;padding:11px 12px;position:relative}
.t01 .ax-tabs button[aria-selected="true"]{background:#fff;color:#14213D;box-shadow:0 1px 2px rgba(20,33,61,.06)}
.t01 .ax-tabs button[aria-selected="true"]::before{content:"";position:absolute;left:0;top:9px;bottom:9px;width:3px;border-radius:3px;background:var(--ax-blue)}
.t01 .ax-pane{grid-column:2;grid-row:2}
@media (max-width:820px){.t01 .ax-box{display:block}.t01 .ax-tabs{flex-direction:row;border-right:0;border-bottom:1px solid var(--ax-line);padding:8px}.t01 .ax-tabs button[aria-selected="true"]::before{left:12px;right:12px;top:auto;bottom:2px;width:auto;height:2px}}

/* Theme 02 Hai nửa (t03): ô vuông có logo trên, tên dưới */
.t03 .ax-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;padding:14px 16px;border-bottom:1px solid var(--ax-line)}
.t03 .ax-tabs button{flex-direction:column;gap:6px;border:1px solid var(--ax-line);margin:0;border-radius:10px;padding:10px 4px;min-height:72px;font-size:12.5px;white-space:normal;text-align:center;line-height:1.2}
.t03 .ax-tabs button img,.t03 .ax-more{width:26px;height:26px}
.t03 .ax-tabs button[aria-selected="true"]{border-color:var(--ax-blue);background:#eef3fd;color:#14213D;box-shadow:inset 0 0 0 1px var(--ax-blue)}
@media (max-width:600px){.t03 .ax-tabs{display:flex}.t03 .ax-tabs button{flex:none;width:84px}}

/* Theme 03 Mã QR (t04): khối vuông góc, bóng đổ cứng, chọn thì đặc xanh */
.t04 .ax-box{border-radius:2px;border:0;box-shadow:0 20px 44px -26px rgba(19,32,61,.35)}
.t04 .ax-head{background:#f1f5fd}
.t04 .ax-tabs{gap:10px;padding:14px 16px;border-bottom:0}
.t04 .ax-tabs button{border:1.5px solid #21325b;margin:0;border-radius:2px;padding:8px 12px;min-height:42px;font:600 13px "JetBrains Mono",ui-monospace,monospace;color:#21325b;background:#fff}
.t04 .ax-tabs button[aria-selected="true"]{background:var(--ax-blue);border-color:var(--ax-blue);color:#fff;box-shadow:4px 4px 0 #21325b}
.t04 .ax-tabs button img{background:#fff;border-radius:3px;padding:1px}
.t04 .ax-steps li::before{border-radius:2px}

/* Theme 04 Sóng (t05): viên thuốc bo tròn, chọn thì nền xanh đặc */
.t05 .ax-box{border-radius:20px}
.t05 .ax-tabs{gap:8px;padding:14px 18px;border-bottom:1px solid var(--ax-line)}
.t05 .ax-tabs button{border:1px solid var(--ax-line);margin:0;border-radius:999px;padding:8px 16px 8px 8px;min-height:44px;background:#fff}
.t05 .ax-tabs button img,.t05 .ax-more{width:26px;height:26px;border-radius:50%;background:#fff;padding:2px;box-shadow:0 0 0 1px var(--ax-line)}
.t05 .ax-tabs button[aria-selected="true"]{background:var(--ax-blue);border-color:var(--ax-blue);color:#fff}

/* Theme 05 Vũ trụ (t06): hành tinh tròn, chọn thì có vòng sáng quỹ đạo */
.t06 .ax-box{border-radius:22px}
.t06 .ax-tabs{justify-content:space-around;gap:6px;padding:18px 16px 14px;border-bottom:1px solid var(--ax-line);background:radial-gradient(400px 120px at 50% 0,#eef3fd,transparent 70%)}
.t06 .ax-tabs button{flex-direction:column;gap:8px;border:0;margin:0;padding:4px 8px;min-height:84px;font-size:13px;background:none}
.t06 .ax-tabs button img,.t06 .ax-more{width:44px;height:44px;border-radius:50%;background:#fff;padding:9px;box-shadow:0 0 0 1px var(--ax-line),0 8px 18px -10px rgba(31,59,125,.5);transition:box-shadow .2s}
.t06 .ax-tabs button[aria-selected="true"] img,.t06 .ax-tabs button[aria-selected="true"] .ax-more{box-shadow:0 0 0 2px var(--ax-blue),0 0 0 7px rgba(62,106,200,.15),0 0 24px rgba(62,106,200,.5)}
.t06 .ax-tabs button[aria-selected="true"]{color:#14213D}

/* tab ứng dụng AI: không co nút nhỏ hơn chữ trên điện thoại, cuộn ngang khi thiếu chỗ */
.ax-tabs{overflow-x:auto;scrollbar-width:none}
.ax-tabs::-webkit-scrollbar{display:none}
.ax-tabs button{flex:none!important;white-space:nowrap}
