/* Muonicode — shared styles (homepage, login, dashboard) */
:root {
  --navy: #0A2E73;
  --navy-deep: #061A47;
  --gold: #1F6BF2;
  --sky: #6FD0FF;
  --accent: #1F6BF2;
  --green: #0E8A6B;
  --ink: #0C1A33;
  --muted: #4A5B78;
  --line: #D5DFEE;
  --line-strong: #B3C2D9;
  --soft: #F2F6FC;
  --serif: 'Source Serif 4', 'Noto Sans Thai', Georgia, serif;
  --sans: 'Inter', 'Noto Sans Thai', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #FFFFFF; color: var(--ink); font: 16px/1.55 var(--sans); }
h1, h2, h3, p { margin: 0; }
a { color: var(--muted); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.band :focus-visible, .cta-box :focus-visible, .site-footer :focus-visible, .login-side :focus-visible { outline-color: var(--sky); }

.px { padding-left: clamp(20px, 5vw, 80px); padding-right: clamp(20px, 5vw, 80px); }
.wrap { max-width: 1200px; margin: 0 auto; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.eyebrow-green { color: var(--green); }
.eyebrow-gold { color: var(--sky); }

/* Buttons */
.btn { display: inline-block; text-decoration: none; text-align: center; font: 600 16px var(--sans); border-radius: 6px; padding: 14px 26px; cursor: pointer; border: 0; }
.btn:hover { opacity: 0.9; }
.btn-gold, .btn-gold:hover { background: var(--gold); color: #FFFFFF; }
.btn-ghost, .btn-ghost:hover { border: 1px solid rgba(255, 255, 255, 0.45); color: #FFFFFF; padding: 13px 25px; background: transparent; }
.btn-sm { font-size: 15px; padding: 11px 22px; }
.btn-primary { width: 100%; height: 50px; padding: 0; background: var(--navy); color: #FFFFFF; border-bottom: 3px solid var(--gold); }

/* Navy band: header + hero */
.band { background: var(--navy); }
.site-header { padding-top: 14px; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 8px 32px; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; color: #FFFFFF; text-decoration: none; font: 700 24px var(--serif); letter-spacing: -0.01em; }
.brand:hover { color: #FFFFFF; }
.nav { display: flex; align-items: center; gap: 4px 28px; }
.nav-link { color: #D5DEEB; text-decoration: none; font-size: 15px; padding: 12px 0; }
.nav-link:hover { color: #FFFFFF; }

.hero { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(64px, 8vw, 112px); }
.hero-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero-copy { flex: 1 1 480px; min-width: 0; }
.hero-side { flex: 1 1 380px; min-width: 0; }
.hero .eyebrow { margin-bottom: 20px; }
.hero h1 { color: #FFFFFF; font: 600 clamp(38px, 5.4vw, 62px)/1.08 var(--serif); letter-spacing: -0.015em; text-wrap: balance; }
.hero-lead { margin-top: 24px; font-size: 18px; color: #C9D3E3; max-width: 540px; text-wrap: pretty; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-note { margin-top: 20px; font-size: 14px; color: #A9B6CB; }

.process-card { background: #FFFFFF; border-top: 4px solid var(--gold); border-radius: 8px; padding: 32px; }
.card-label { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; color: var(--muted); padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.steps-v { display: flex; flex-direction: column; gap: 24px; margin-top: 24px; }
.step-v { display: flex; gap: 18px; }
.num { font-size: 13px; font-weight: 600; color: var(--navy); padding-top: 3px; }
.num-green { color: var(--green); }
.step-body { flex: 1; min-width: 0; }
.step-title { font-weight: 600; font-size: 17px; color: var(--ink); }
.step-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.step-desc { font-size: 15px; color: var(--muted); margin-top: 2px; }
.chip { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; color: #FFFFFF; background: var(--green); padding: 3px 8px; border-radius: 3px; }

/* Sections */
.section { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 96px); }
.section-soft { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2, .cta-box h2 { font: 600 clamp(28px, 3.6vw, 40px)/1.15 var(--serif); letter-spacing: -0.01em; text-wrap: balance; }
.section .wrap > h2 { margin-top: 12px; max-width: 660px; }

.grid-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 40px 32px; margin-top: 52px; }
.gstep { border-top: 3px solid var(--gold); padding-top: 20px; }
.gstep h3, .feature h3 { font: 600 22px var(--serif); margin-top: 10px; }
.gstep p, .feature p { margin-top: 8px; color: var(--muted); }

.grid-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 20px; margin-top: 52px; }
.feature { background: #FFFFFF; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 8px; padding: 28px; }
.feature h3 { margin-top: 20px; }

/* FAQ */
.faq { display: flex; flex-wrap: wrap; gap: 40px 64px; }
.faq-head { flex: 1 1 280px; min-width: 0; }
.faq-head h2 { margin-top: 12px; }
.faq-list { flex: 2 1 480px; min-width: 0; border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; min-height: 44px; font-weight: 600; font-size: 18px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] .chev { transform: rotate(180deg); }
.chev { flex: none; }
.faq details p { margin: 0 0 22px; color: var(--muted); max-width: 620px; }
.faq details a { color: var(--navy); font-weight: 500; }

/* Call to action */
.cta-box { background: var(--navy); color: #FFFFFF; border-radius: 8px; border-top: 4px solid var(--gold); padding: clamp(32px, 6vw, 64px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.cta-text { flex: 1 1 360px; min-width: 0; }
.cta-text p { margin-top: 14px; color: #C9D3E3; font-size: 17px; max-width: 540px; text-wrap: pretty; }
.cta-box .cta-row { margin-top: 0; }

/* Footer */
.site-footer { background: var(--navy-deep); padding-top: 40px; padding-bottom: 44px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 24px 48px; }
.footer-brand { font: 700 22px var(--serif); letter-spacing: -0.01em; color: #FFFFFF; }
.footer-tag { margin-top: 8px; color: #9AA7B8; font-size: 14px; max-width: 360px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.footer-nav a { color: #C9D1DB; text-decoration: none; font-size: 15px; padding: 12px 0; }
.footer-nav a:hover { color: #FFFFFF; }
.copyright { margin-top: 24px; padding-top: 20px; border-top: 1px solid #27364D; color: #9AA7B8; font-size: 13px; }

/* Login */
.login { min-height: 100vh; display: flex; flex-wrap: wrap; }
.login-side { flex: 1 1 480px; min-width: 0; background: var(--navy); color: #FFFFFF; padding: 40px clamp(24px, 5vw, 72px); display: flex; flex-direction: column; justify-content: space-between; gap: 64px; }
.login-side .brand { align-self: flex-start; }
.gold-rule { width: 56px; height: 3px; background: var(--gold); margin-bottom: 28px; }
.login-side h2 { font: 600 clamp(34px, 4.4vw, 52px)/1.1 var(--serif); letter-spacing: -0.015em; max-width: 460px; text-wrap: balance; }
.login-side p { margin-top: 20px; font-size: 18px; color: #C9D3E3; max-width: 420px; text-wrap: pretty; }
.side-foot { font-size: 13px; color: #A9B6CB; }
.login-main { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px clamp(24px, 5vw, 72px); }
.login-box, .login-lang { width: 100%; max-width: 400px; }
.login-box h1 { margin-top: 12px; font: 600 34px/1.15 var(--serif); letter-spacing: -0.01em; }
.form { display: flex; flex-direction: column; gap: 22px; margin-top: 36px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; }
.field-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.field-row a { font-size: 14px; color: var(--navy); padding: 8px 0; }
.input { height: 48px; padding: 0 14px; border: 1px solid #8A97A8; border-radius: 6px; font: 16px var(--sans); color: var(--ink); background: #FFFFFF; width: 100%; }
.input:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--navy); }
.check label { font-size: 15px; color: var(--muted); }
.alert { border: 1px solid #B42318; background: #FEF3F2; color: #7A1A12; border-radius: 6px; padding: 12px 14px; font-size: 15px; margin-top: 28px; }
.login-help { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.login-help p + p { margin-top: 12px; }
.login-help a { color: var(--navy); font-weight: 500; }

/* Dashboard */
.dash { padding-top: 56px; padding-bottom: 80px; min-height: 60vh; }
.dash h1 { font: 600 clamp(28px, 3.6vw, 40px)/1.15 var(--serif); letter-spacing: -0.01em; margin-top: 12px; }
.dash-card { margin-top: 32px; background: #FFFFFF; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 8px; padding: 28px; max-width: 640px; color: var(--muted); }
.dash-actions { margin-top: 24px; }
.btn-outline, .btn-outline:hover { border: 1px solid var(--line-strong); color: var(--ink); background: #FFFFFF; padding: 11px 22px; font-size: 15px; }

@media (max-width: 640px) {
  .nav-text { display: none; }
  .hero { padding-top: 40px; padding-bottom: 52px; }
  .hero-grid { gap: 36px; }
  .hero h1 { font-size: 34px; }
  .cta-row { width: 100%; }
  .cta-row .btn { flex: 1 1 100%; }
  .process-card, .feature { padding: 24px; }
  .cta-box { padding: 28px 24px; }
  .login { min-height: 0; }
  .login-side { flex-basis: 100%; padding: 24px; gap: 32px; }
  .login-side h2 { font-size: 30px; }
  .side-foot { display: none; }
  .login-main { justify-content: flex-start; padding: 36px 24px 48px; }
}

/* App pages (agent + admin) */
.brand .tag { margin-left: 8px; padding: 2px 8px; border: 1px solid var(--sky); color: var(--sky); border-radius: 4px; font: 600 11px var(--sans); letter-spacing: 0.08em; text-transform: uppercase; vertical-align: middle; }
.subnav { border-top: 1px solid #27364D; }
.subnav .wrap { display: flex; flex-wrap: wrap; gap: 0 4px; }
.subnav a { color: #C9D3E3; text-decoration: none; font-size: 15px; font-weight: 500; padding: 14px 14px; border-bottom: 3px solid transparent; }
.subnav a:hover { color: #FFFFFF; }
.subnav a[aria-current="page"] { color: #FFFFFF; border-bottom-color: var(--sky); }
.h2 { font: 600 22px/1.2 var(--serif); margin: 40px 0 16px; }
.dash h1 + * { margin-top: 24px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.stat { background: #FFFFFF; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 8px; padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.stat-n { font: 600 26px/1.2 var(--serif); color: var(--navy); overflow-wrap: anywhere; }
.stat-l { font-size: 14px; color: var(--muted); }
.actions { margin-top: 24px; }
.muted { color: var(--muted); font-size: 14px; }
.empty { color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table thead th { background: var(--soft); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); white-space: nowrap; }
.table tbody tr:last-child td, .table tfoot th { border-bottom: 0; }
.table tfoot th { background: var(--soft); }
.table .num { text-align: right; white-space: nowrap; }
.table a { color: var(--navy); font-weight: 600; }
.table .input { height: 40px; min-width: 120px; }
.table .input-qty { min-width: 0; }
.input-qty { width: 90px; }
.input-price { width: 110px; min-width: 0; }
.table input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--navy); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.badge-pending { background: #FFF4D6; color: #7A5A00; }
.badge-paid { background: #DDF3EA; color: #0A6B53; }
.badge-cancelled { background: #E6EDF7; color: #4A5B78; }
.notice { margin: 20px 0; padding: 12px 16px; border-radius: 6px; font-size: 15px; border: 1px solid; overflow-wrap: anywhere; }
.notice-ok { background: #DDF3EA; border-color: #8FD0B8; color: #0A6B53; }
.notice-err { background: #FEF3F2; border-color: #B42318; color: #7A1A12; }
.notice-info { background: var(--soft); border-color: var(--line-strong); color: var(--ink); }
.inline-form, .filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.inline-form .input, .filters .input { flex: 1 1 200px; width: auto; }
.inline-form .input-qty { flex: 0 0 90px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; align-items: center; }
.stock-form { display: flex; flex-direction: column; gap: 20px; max-width: 640px; }
.textarea { height: auto; padding: 12px 14px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; }
.code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; background: var(--soft); padding: 3px 8px; border-radius: 4px; overflow-wrap: anywhere; user-select: all; }
.row-actions form { display: flex; flex-wrap: wrap; gap: 8px; }
.btn.btn-outline { cursor: pointer; font-family: var(--sans); font-weight: 600; }
@media (max-width: 640px) {
  .dash { padding-top: 32px; }
  .subnav a { padding: 12px 10px; font-size: 14px; }
  .table th, .table td { padding: 10px; }
}
.hdr-actions { display: flex; gap: 10px; align-items: center; }
.pin-box { max-width: 360px; }
.input-pin { font: 600 28px ui-monospace, Menlo, Consolas, monospace; letter-spacing: 0.5em; text-align: center; height: 60px; }

.logo { border-radius: 50%; flex: none; display: block; }

/* Language switch */
.lang-sw { display: inline-flex; align-items: center; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; overflow: hidden; font: 600 12px var(--sans); }
.lang-sw a { color: rgba(255,255,255,.75); text-decoration: none; padding: 6px 11px; min-height: 28px; display: inline-flex; align-items: center; }
.lang-sw a.on { background: #FFFFFF; color: #0A2E73; }
.lang-sw a:not(.on):hover { color: #FFFFFF; }
.nav .lang-sw { margin-left: 8px; }
.login-lang { display: flex; justify-content: flex-end; margin-bottom: 18px; }
.login-lang .lang-sw { border-color: #C9D1DE; }
.login-lang .lang-sw a { color: #0A2E73; }
.login-lang .lang-sw a.on { color: #0A2E73; }
html[lang="th"] .hero h1 { font-size: clamp(30px, 4.2vw, 48px); line-height: 1.3; }
html[lang="th"] .section h2, html[lang="th"] .cta-box h2, html[lang="th"] .login-side h2 { line-height: 1.3; }
html[lang="th"] body { line-height: 1.65; }

/* product picture + promo */
.pcell { display: flex; align-items: center; gap: 12px; }
.thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: var(--soft); flex: none; }
.thumb-lg { width: 64px; height: 64px; }
.promo-tag { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #DDF3EA; color: #0A6B53; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; vertical-align: middle; }
.promo-price { color: #0A6B53; font-weight: 700; }
.was { color: var(--muted); font-size: .9em; font-weight: 400; }
.promo-price + .was + .sub2, .table .sub2 { display: block; color: var(--muted); font-size: 13px; font-weight: 400; }
.footer-contact { margin: 18px 0 0; font-size: 14px; opacity: .9; }
.footer-contact a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- shop: filters, tickets, cart ---------- */
.shop-filters { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin: 4px 0 20px; display: grid; gap: 14px; }
.sf-row { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; }
.sf-row .input { flex: 1 1 170px; width: auto; height: 44px; }
.sf-row input[type=search] { flex: 2 1 240px; }
.sf-days { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sf-label { font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.chip { display: inline-block; padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: #FFFFFF; color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.on { background: var(--navy); border-color: var(--navy); color: #FFFFFF; }
.sf-clear { margin-left: auto; font-size: 14px; }
.sf-count { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.crumbs { margin: 0 0 14px; font-size: 14.5px; }

.tickets { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 22px; }
.ticket { --stub: 220px; filter: drop-shadow(0 0 .6px #8FA3C4) drop-shadow(0 8px 14px rgba(10, 46, 115, .09)); }
.tk { display: grid; grid-template-columns: minmax(0, 1fr) var(--stub); background: #FFFFFF; min-height: 168px; border-radius: 12px;
  -webkit-mask: radial-gradient(circle 12px at calc(100% - var(--stub)) 0, #0000 97%, #000) top / 100% 51% no-repeat, radial-gradient(circle 12px at calc(100% - var(--stub)) 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle 12px at calc(100% - var(--stub)) 0, #0000 97%, #000) top / 100% 51% no-repeat, radial-gradient(circle 12px at calc(100% - var(--stub)) 100%, #0000 97%, #000) bottom / 100% 51% no-repeat; }
.tk-main { display: flex; gap: 16px; padding: 20px 22px; min-width: 0; }
.tk-body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.tk-top { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.tk-cat { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tk-days { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--navy); color: #FFFFFF; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.tk-name { font: 600 20px/1.25 var(--serif); color: var(--navy); }
.tk-name a { color: inherit; text-decoration: none; }
.tk-name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.tk-desc { font-size: 14.5px; color: var(--muted); }
.tk-more { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--gold); text-decoration: none; }
.tk-more:hover { text-decoration: underline; }
.tk-stub { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 20px 22px; background: #F6F9FE; }
.tk-stub::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; border-left: 2px dashed var(--line-strong); }
.tk-price { font: 700 24px/1.1 var(--serif); color: var(--navy); }
.tk-price-lg { font-size: 30px; }
.tk-until { font-size: 12.5px; color: var(--muted); }
.tk-stock { font-size: 13px; font-weight: 600; }
.tk-stock.ok { color: #0A6B53; } .tk-stock.out { color: #912018; }
.tk-add { display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.tk-add .input-qty { width: 64px; min-width: 0; height: 40px; padding: 0 8px; text-align: center; }
.tk-add .btn { flex: 1; padding: 0 12px; height: 40px; }
.thumb-xl { width: 120px; height: 120px; border-radius: 12px; }
.ticket-lg .tk { min-height: 260px; --stub: 260px; }
.tk-sub { font-size: 13px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.tk-feat { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 15px; }
.tk-facts { margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px 18px; }
.tk-facts dt { font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.tk-facts dd { margin: 2px 0 0; font-weight: 600; font-size: 14.5px; }
.promo-tag { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #DDF3EA; color: #0A6B53; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
@media (max-width: 640px) {
  .tk { grid-template-columns: minmax(0, 1fr); -webkit-mask: none; mask: none; border: 1px solid var(--line-strong); }
  .tk-stub::before { left: 16px; right: 16px; top: 0; bottom: auto; border-left: 0; border-top: 2px dashed var(--line-strong); }
  .ticket { filter: none; }
}

.cart-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.cart-items { display: grid; gap: 12px; }
.cart-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto auto; gap: 8px 16px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #FFFFFF; }
.cart-row .thumb-lg:empty { display: none; }
.cr-main { display: flex; flex-direction: column; min-width: 0; }
.cr-name { font-weight: 600; color: var(--navy); }
.cr-meta { font-size: 13px; color: var(--muted); }
.cr-warn { font-size: 13px; color: #912018; font-weight: 600; }
.cr-price { font-size: 14.5px; white-space: nowrap; }
.cr-line { font-weight: 700; min-width: 90px; text-align: right; font-variant-numeric: tabular-nums; }
.cart-row .input-qty { width: 72px; min-width: 0; height: 40px; text-align: center; padding: 0 6px; }
.cart-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.cart-sum { border: 1px solid var(--line); border-radius: 12px; padding: 20px; background: var(--soft); display: grid; gap: 14px; position: sticky; top: 16px; }
.cart-sum h2 { font: 600 18px var(--serif); color: var(--navy); }
.cart-sum dl { margin: 0; display: grid; gap: 8px; }
.cart-sum dl div { display: flex; justify-content: space-between; gap: 12px; }
.cart-sum dd { margin: 0; font-variant-numeric: tabular-nums; }
.cart-sum .sum-total { border-top: 1px solid var(--line-strong); padding-top: 10px; font: 700 20px var(--serif); color: var(--navy); }
.cart-sum .btn { width: 100%; }
.cart-sum .muted { font-size: 13px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--muted); font: 14px var(--sans); text-decoration: underline; cursor: pointer; justify-self: start; }
.promo-price { color: #0A6B53; font-weight: 700; }
.was { color: var(--muted); font-size: .88em; font-weight: 400; }
@media (max-width: 900px) { .cart-grid { grid-template-columns: minmax(0, 1fr); } .cart-sum { position: static; } }
@media (max-width: 640px) { .cart-row { grid-template-columns: auto minmax(0, 1fr) auto; } .cr-price, .cr-line { grid-column: 2 / 3; text-align: left; } }
.ticket { --stub: 240px; display: flex; }
.ticket .tk { flex: 1; }
.ticket-lg { --stub: 280px; }
.tk-price .was { display: block; font: 400 14px var(--sans); }
.tk-add .btn { white-space: nowrap; font-size: 14px; }

/* ---------- agent dashboard ---------- */
.dh { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 20px 24px; margin: 4px 0 20px; background: linear-gradient(135deg, #0A2E73, #133E96); border-radius: 14px; color: #FFFFFF; }
.dh-id { display: flex; align-items: center; gap: 16px; min-width: 0; }
.avatar { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: rgba(255, 255, 255, .14); border: 2px solid rgba(111, 208, 255, .7); font: 700 22px var(--serif); color: #FFFFFF; flex: none; }
.dh-name { font: 600 20px/1.2 var(--serif); overflow-wrap: anywhere; }
.dh-sub { font-size: 14px; color: #BFD0EE; margin-top: 2px; }
.dh-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dh .btn-gold { background: #FFFFFF; color: var(--navy); }
.dh .btn-outline { background: transparent; border: 1px solid rgba(255, 255, 255, .5); color: #FFFFFF; }
.dh .btn-outline:hover { background: rgba(255, 255, 255, .1); }
.dh .badge { background: rgba(255, 255, 255, .2); color: #FFFFFF; }

.dk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 22px; }
.dk { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; background: #FFFFFF; border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: 12px; box-shadow: 0 1px 2px rgba(10, 46, 115, .04), 0 8px 18px -14px rgba(10, 46, 115, .2); }
.dk-warn { border-top-color: #B7791F; } .dk-ok { border-top-color: var(--green); }
.dk-l { font-size: 11.5px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: #5A6B87; }
.dk-v { font: 600 28px/1.15 var(--serif); color: var(--navy); overflow-wrap: anywhere; }
.dk-f { font-size: 13.5px; color: var(--muted); }
.dk-f a { font-weight: 600; color: var(--gold); }

.dg { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.dg-main, .dg-side { display: grid; gap: 22px; min-width: 0; }
@media (max-width: 960px) { .dg { grid-template-columns: minmax(0, 1fr); } }
.dc { background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 1px 2px rgba(10, 46, 115, .04), 0 8px 18px -14px rgba(10, 46, 115, .2); }
.dc-warn { border-color: #E9CF8B; }
.dc-warn .dc-head { background: #FFF9E8; }
.dc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 20px; background: #FAFCFF; border-bottom: 1px solid var(--line); }
.dc-head h2 { font: 600 16px var(--serif); color: var(--navy); }
.dc-head a { font-size: 14px; font-weight: 600; color: var(--gold); }
.dc-sub { font-size: 13px; color: var(--muted); }
.dc-empty { padding: 22px 20px; color: var(--muted); }
.dc-note { padding: 14px 20px 4px; font-size: 14.5px; color: var(--muted); overflow-wrap: anywhere; }
.dc-contact { padding: 8px 20px 18px; font-size: 14.5px; line-height: 1.9; }
.dc .table-wrap { border: 0; border-radius: 0; }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 20px; border-bottom: 1px solid #EAF0F8; align-items: baseline; }
.plain li:last-child { border-bottom: 0; }
.plain li a { font-weight: 600; color: var(--navy); overflow-wrap: anywhere; }
.plain li .muted { grid-column: 1; font-size: 13px; color: var(--muted); }
.plain li b { grid-column: 2; grid-row: 1 / span 2; align-self: center; text-align: right; font-variant-numeric: tabular-nums; }
.bars { list-style: none; margin: 0; padding: 8px 20px 16px; display: grid; gap: 14px; }
.bars li { display: grid; grid-template-columns: 130px minmax(0, 1fr) 110px; gap: 14px; align-items: center; font-size: 14.5px; }
.bars-n { font-weight: 600; overflow-wrap: anywhere; }
.bars b { font-variant-numeric: tabular-nums; text-align: right; }
.hb { display: block; width: 100%; height: 8px; border-radius: 4px; overflow: hidden; }
.hb-t { fill: #E6EDF7; } .hb-f { fill: var(--navy); } .hb-g { fill: var(--green); }
@media (max-width: 560px) { .bars li { grid-template-columns: minmax(0, 1fr) auto; } .bars-t { grid-column: 1 / -1; grid-row: 2; } }

/* ---------- cart v2 + image placeholder ---------- */
.ph-thumb { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; flex: none; width: 64px; height: 64px; border-radius: 12px; background: linear-gradient(145deg, #0A2E73, #1F6BF2); color: #FFFFFF; line-height: 1; text-align: center; }
.ph-thumb b { font: 700 24px var(--serif); }
.ph-thumb i { font: 600 10px var(--sans); font-style: normal; letter-spacing: .12em; text-transform: uppercase; margin-top: 3px; opacity: .85; }
.ph-thumb.thumb-xl { width: 120px; height: 120px; border-radius: 16px; }
.ph-thumb.thumb-xl b { font-size: 44px; } .ph-thumb.thumb-xl i { font-size: 12px; }
.cart-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; }
.cart-items { gap: 14px; align-content: start; }
.cart-row { grid-template-columns: auto minmax(0, 1fr) auto 110px 36px; gap: 8px 18px; padding: 16px 18px; border-radius: 14px; box-shadow: 0 1px 2px rgba(10, 46, 115, .04), 0 8px 18px -14px rgba(10, 46, 115, .22); transition: box-shadow .15s, border-color .15s; }
.cart-row:hover { border-color: var(--line-strong); }
.cr-name { font: 600 17px/1.3 var(--serif); text-decoration: none; }
.cr-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.cr-meta { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin: 4px 0 2px; }
.cr-unit { font-size: 13.5px; color: var(--muted); }
.cart-row .input-qty { width: 76px; height: 44px; border-radius: 8px; font-size: 16px; font-weight: 600; }
.cr-line { font: 700 17px var(--serif); color: var(--navy); }
.cr-rm { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: #FFFFFF; color: var(--muted); font: 400 22px/1 var(--sans); cursor: pointer; display: grid; place-items: center; padding: 0 0 2px; }
.cr-rm:hover { background: #FEF3F2; border-color: #F2B8B3; color: #B42318; }
.cart-actions { margin-top: 4px; }
.cart-sum { border-radius: 14px; padding: 24px; background: #FFFFFF; box-shadow: 0 1px 2px rgba(10, 46, 115, .05), 0 14px 28px -18px rgba(10, 46, 115, .28); border-top: 3px solid var(--navy); }
.cart-sum .btn { height: 50px; font-size: 16px; border-bottom: 3px solid #1558CC; }
@media (max-width: 960px) { .cart-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .cart-row { grid-template-columns: auto minmax(0, 1fr) 36px; } .cart-row .input-qty { grid-column: 2; justify-self: start; } .cr-line { grid-column: 2; } .cr-rm { grid-column: 3; grid-row: 1; } }

/* ---------- order timer + row actions ---------- */
.cd { display: inline-block; font: 700 14px/1 var(--sans); font-variant-numeric: tabular-nums; color: #7A4B00; background: #FFF4D6; border: 1px solid #F1D48A; border-radius: 999px; padding: 5px 10px; }
.cd.cd-low { color: #B42318; background: #FEF3F2; border-color: #F2B8B3; }
.row-act { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.row-act form { margin: 0; }
.row-act .btn-xs { padding: 7px 12px; font-size: 13.5px; font-family: var(--sans); cursor: pointer; }
.row-act .btn-outline.btn-xs { border: 1px solid var(--line-strong); }
.pay-timer { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 18px; margin: 0 0 16px; border: 1px solid #F1D48A; background: #FFFBEF; border-radius: 12px; font-weight: 600; }
.pay-timer .cd { font-size: 20px; padding: 8px 14px; }
.pay-timer small { flex-basis: 100%; font-weight: 400; color: var(--muted); }
.dc-warn .plain li .cd { margin-left: auto; }

/* ---------- dashboard order rows (v2) ---------- */
.dc .table td, .dc .table th { white-space: nowrap; }
.dc .table td:first-child a { font-weight: 600; }
.row-act { flex-wrap: nowrap; gap: 8px; }
.plain li .cd { grid-column: 1; grid-row: 2; justify-self: start; margin-top: 4px; }
.dc-warn .plain li .cd { margin-left: 0; }

/* ---------- main navigation (v2) ---------- */
.subnav { border-top: 1px solid rgba(255, 255, 255, .10); background: rgba(5, 22, 60, .38); }
.subnav .wrap { gap: 6px; padding-top: 10px; padding-bottom: 10px; }
.subnav a { display: inline-flex; align-items: center; padding: 9px 18px; border-bottom: 0; border-radius: 999px; font-size: 15px; font-weight: 600; letter-spacing: .01em; color: #D5DEEE; transition: background .15s, color .15s; }
.subnav a:hover { background: rgba(255, 255, 255, .10); color: #FFFFFF; }
.subnav a[aria-current="page"] { background: #FFFFFF; color: #0A2E73; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.subnav a:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
.subnav a[href$="admin/"], .subnav a[href="/admin/"] { margin-left: auto; border: 1px solid rgba(255, 255, 255, .28); }
@media (max-width: 640px) { .subnav .wrap { flex-wrap: nowrap; overflow-x: auto; gap: 4px; } .subnav a { padding: 8px 14px; font-size: 14px; white-space: nowrap; } }
.notice-warn { background: #FFFBEF; border-color: #F1D48A; color: #5E3B00; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- footer on shop pages ---------- */
.app-body { display: flex; flex-direction: column; min-height: 100vh; }
.app-body > main { flex: 1 0 auto; }
.app-body > .site-footer { margin-top: 48px; flex: none; }
.footer-contact { color: #C9D1DB; }
.footer-contact a { color: #FFFFFF; }
.site-footer .copyright { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); color: #9AA7B8; font-size: 14px; }

/* ---------- product detail (v2) ---------- */
.back-pill { display: inline-flex; align-items: center; padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: #FFFFFF; color: var(--navy); font-weight: 600; font-size: 14px; text-decoration: none; }
.back-pill:hover { background: #F2F6FD; }
.pd { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; margin-top: 8px; }
.pd-main { background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px; padding: 28px 30px 32px; box-shadow: 0 1px 2px rgba(10, 46, 115, .04), 0 12px 26px -18px rgba(10, 46, 115, .25); }
.pd-hero { display: flex; gap: 22px; align-items: center; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.pd-hero-t { display: grid; gap: 12px; justify-items: start; }
.pd-pill { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.pd-pill.ok { background: #E7F6F0; color: #0A6B53; } .pd-pill.out { background: #FEF3F2; color: #912018; }
.pd-h { font: 600 12.5px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 26px 0 12px; }
.pd-feat { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pd-feat li { position: relative; padding-left: 30px; font-size: 16px; }
.pd-feat li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: #E7F6F0; color: #0A6B53; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.pd-facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pd-facts > div { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #F8FAFE; }
.pd-facts dt { font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.pd-facts dd { margin: 4px 0 0; font-weight: 600; font-size: 15px; }
.pd-buy { position: sticky; top: 20px; background: #FFFFFF; border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: 16px; padding: 26px; box-shadow: 0 1px 2px rgba(10, 46, 115, .05), 0 16px 32px -20px rgba(10, 46, 115, .3); }
.pd-price { font: 700 38px/1.1 var(--serif); color: var(--navy); }
.pd-price .was { display: block; font: 400 15px var(--sans); }
.pd-per { margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.pd-add { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 6px 12px; align-items: end; margin-top: 20px; }
.pd-add label { grid-column: 1 / -1; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pd-add .input-qty { width: 100%; height: 50px; font-size: 17px; font-weight: 600; text-align: center; border-radius: 10px; }
.pd-add .btn { height: 50px; font-size: 16px; border-bottom: 3px solid #1558CC; cursor: pointer; }
.pd-trust { list-style: none; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 13.5px; color: var(--muted); }
.pd-trust li { position: relative; padding-left: 22px; }
.pd-trust li::before { content: "✓"; position: absolute; left: 0; color: #0A6B53; font-weight: 700; }
@media (max-width: 960px) { .pd { grid-template-columns: minmax(0, 1fr); } .pd-buy { position: static; } }
@media (max-width: 560px) { .pd-main { padding: 20px; } .pd-hero { flex-direction: column; align-items: flex-start; } .pd-facts { grid-template-columns: minmax(0, 1fr); } }

/* ---------- paid order: codes ---------- */
.paid-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; padding: 18px 22px; margin: 6px 0 20px; border: 1px solid #8FD0B8; background: linear-gradient(180deg, #EAF8F2, #DDF3EA); border-radius: 14px; }
.paid-ic { width: 40px; height: 40px; border-radius: 50%; background: #0A8F6A; color: #FFFFFF; font-size: 20px; font-weight: 700; display: grid; place-items: center; flex: none; }
.paid-banner b { display: block; font: 700 18px var(--serif); color: #0A5A44; }
.paid-banner small { display: block; margin-top: 2px; color: #2F6F5C; font-size: 14px; }
.paid-act { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.paid-act .btn { cursor: pointer; font-family: var(--sans); }
.codes-card { background: #FFFFFF; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 16px; overflow: hidden; box-shadow: 0 1px 2px rgba(10, 46, 115, .04), 0 10px 22px -16px rgba(10, 46, 115, .22); }
.codes-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; background: #F6F9FE; border-bottom: 1px solid var(--line); }
.codes-head h2 { font: 600 17px var(--serif); color: var(--navy); margin: 0; }
.codes-head span { font-size: 13px; color: var(--muted); }
.codes-card ul { list-style: none; margin: 0; padding: 0; }
.codes-card li { display: flex; align-items: center; gap: 14px; padding: 12px 20px; border-bottom: 1px solid #EAF0F8; }
.codes-card li:last-child { border-bottom: 0; }
.codes-n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #EAF0FB; color: var(--navy); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.code-val { flex: 1; min-width: 0; font: 600 16px ui-monospace, Menlo, Consolas, monospace; letter-spacing: .04em; color: #0B1F44; background: #F4F7FC; border: 1px dashed #B9C8E0; border-radius: 8px; padding: 9px 12px; overflow-wrap: anywhere; user-select: all; }
.codes-card .btn-xs { cursor: pointer; font-family: var(--sans); min-width: 60px; }
@media (max-width: 560px) { .paid-act { margin-left: 0; } .codes-card li { flex-wrap: wrap; } .code-val { flex-basis: calc(100% - 40px); } }
.codes-head h2 span { font: 600 14px var(--sans); color: var(--muted); margin-left: 6px; }
.codes-head .btn { cursor: pointer; font-family: var(--sans); min-width: 84px; }
pre.code-val { display: block; margin: 0; padding: 16px 20px; flex: none; background: #FFFFFF; border: 0; border-radius: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.9; font-size: 16px; }

/* ---------- order detail (v2) ---------- */
.od { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; margin-top: 8px; }
.od-main > * + * { margin-top: 16px; }
.od-pay { background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px; padding: 24px 26px; box-shadow: 0 1px 2px rgba(10, 46, 115, .04), 0 12px 26px -18px rgba(10, 46, 115, .25); }
.od-pay .pay-timer { margin-top: 0; }
.od-h { font: 600 12.5px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 22px 0 10px; }
.od-instr { padding: 16px 18px; background: #F6F9FE; border: 1px solid var(--line); border-left: 3px solid var(--navy); border-radius: 10px; font-size: 15.5px; line-height: 1.7; }
.od-sum { position: sticky; top: 20px; background: #FFFFFF; border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: 16px; padding: 22px 24px; box-shadow: 0 1px 2px rgba(10, 46, 115, .05), 0 16px 32px -20px rgba(10, 46, 115, .3); }
.od-sum-h { display: grid; gap: 2px; }
.od-sum-h span { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.od-sum-h b { font: 700 19px var(--serif); color: var(--navy); overflow-wrap: anywhere; }
.od-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: 10px 0 14px; font-size: 13.5px; }
.od-items { list-style: none; margin: 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 14px; }
.od-items li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.od-items b { display: block; font-size: 15px; }
.od-items small { color: var(--muted); font-size: 13px; }
.od-items span { font-weight: 700; font-variant-numeric: tabular-nums; }
.od-tot { margin: 14px 0 0; display: grid; gap: 8px; }
.od-tot > div { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.od-tot dt { color: var(--muted); } .od-tot dd { margin: 0; font-weight: 600; }
.od-total { padding-top: 12px; border-top: 1px dashed var(--line-strong); }
.od-total dt { color: var(--ink, #0B1F44); font-weight: 700; font-size: 16px; }
.od-total dd { font: 700 24px var(--serif); color: var(--navy); }
.od-cancel { width: 100%; margin-top: 18px; height: 46px; cursor: pointer; font-family: var(--sans); }
@media (max-width: 960px) { .od { grid-template-columns: minmax(0, 1fr); } .od-sum { position: static; order: -1; } }
.od-pay p { margin: 12px 0 0; }

/* ---------- order history ---------- */
.o-filter { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; margin: 4px 0 20px; }
.o-search { flex: 1 1 260px; max-width: 360px; }
.o-search .input { width: 100%; height: 44px; }
.o-filter .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.o-filter .btn { cursor: pointer; font-family: var(--sans); }
nav.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 22px 0 6px; }
.pg { min-width: 42px; height: 42px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: 10px; background: #FFFFFF; color: var(--navy); font-weight: 600; font-size: 15px; text-decoration: none; }
a.pg:hover { background: #F2F6FD; }
.pg.on { background: var(--navy); border-color: var(--navy); color: #FFFFFF; }
.pg-gap { border: 0; background: transparent; min-width: 24px; padding: 0; color: var(--muted); }
.pager-note { text-align: center; font-size: 13.5px; color: var(--muted); margin: 6px 0 0; }

/* ---------- order detail polish ---------- */
.od-state { text-align: center; background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px; padding: 48px 28px 44px; box-shadow: 0 1px 2px rgba(10, 46, 115, .04), 0 12px 26px -18px rgba(10, 46, 115, .25); }
.od-state-ic { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: #F1F4F9; color: #6B7A90; font-size: 28px; font-weight: 700; display: grid; place-items: center; }
.od-state h2 { font: 700 24px var(--serif); color: var(--navy); margin: 0 0 8px; }
.od-state p { max-width: 460px; margin: 0 auto; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.od-state-act { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; }
.od-state-act .btn { height: 46px; padding: 0 22px; font-family: var(--sans); cursor: pointer; display: inline-flex; align-items: center; }
.od-items .ph-thumb, .od-items .thumb { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
.od-items .ph-thumb b { font-size: 18px; } .od-items .ph-thumb i { font-size: 8px; margin-top: 2px; }
.od-items li > div { min-width: 0; }
.od-items li > span:last-child { white-space: nowrap; }

/* ---------- empty cart ---------- */
.cart-empty { max-width: 560px; margin: 24px auto 8px; text-align: center; background: #FFFFFF; border: 1px solid var(--line); border-radius: 18px; padding: 44px 32px 40px; box-shadow: 0 1px 2px rgba(10, 46, 115, .04), 0 16px 32px -22px rgba(10, 46, 115, .28); }
.ce-art { display: block; margin: 0 auto 14px; max-width: 100%; height: auto; }
.cart-empty h2 { font: 700 26px var(--serif); color: var(--navy); margin: 0 0 8px; }
.cart-empty p { max-width: 400px; margin: 0 auto; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.ce-act { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; }
.ce-act .btn { height: 48px; padding: 0 24px; display: inline-flex; align-items: center; font-family: var(--sans); cursor: pointer; }
.dh-mail { overflow-wrap: anywhere; font-weight: 500; }

/* ---------- first-login email ---------- */
.setup-card { max-width: 520px; margin: 20px auto 8px; background: #FFFFFF; border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: 16px; padding: 34px 32px 30px; box-shadow: 0 1px 2px rgba(10, 46, 115, .05), 0 16px 32px -22px rgba(10, 46, 115, .3); }
.setup-ic { width: 56px; height: 56px; border-radius: 50%; background: #EAF0FB; color: var(--navy); font-size: 26px; display: grid; place-items: center; margin-bottom: 16px; }
.setup-card h2 { font: 700 24px var(--serif); color: var(--navy); margin: 0 0 8px; }
.setup-card > p { color: var(--muted); font-size: 15.5px; line-height: 1.6; margin: 0 0 20px; }
.setup-card .field { margin-bottom: 16px; }
.setup-card .btn { width: 100%; height: 48px; font-family: var(--sans); cursor: pointer; }
.setup-note { margin: 18px 0 0; font-size: 13.5px; color: var(--muted); text-align: center; }

/* ---------- 404 ---------- */
.nf { flex: 1 0 auto; display: flex; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.nf .wrap { text-align: center; }
.nf-code { display: inline-flex; align-items: center; gap: 6px; font: 700 clamp(96px, 20vw, 168px)/1 var(--serif); color: var(--navy); letter-spacing: -.03em; }
.nf-o { width: .8em; height: .8em; border-radius: 50%; border: .14em solid #1F6BF2; box-shadow: inset 0 0 0 .08em #E4ECF8; position: relative; }
.nf-o::after { content: ""; position: absolute; left: 50%; top: 50%; width: .32em; height: .32em; margin: -.16em 0 0 -.16em; border-radius: 50%; background: var(--navy); }
.nf h1 { margin: 6px 0 10px; font: 700 clamp(26px, 4vw, 34px) var(--serif); color: var(--navy); }
.nf p { max-width: 460px; margin: 0 auto; color: var(--muted); font-size: 16px; line-height: 1.65; }
.nf-act { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.nf-act .btn { height: 48px; padding: 0 26px; display: inline-flex; align-items: center; font-family: var(--sans); }

/* legal pages */
.legal { padding-top: 40px; padding-bottom: 72px; }
.legal-doc { max-width: 800px; margin: 0 auto; background: #FFFFFF; border: 1px solid var(--line, #E3E8F0); border-radius: 14px; padding: 40px 44px; box-shadow: 0 1px 2px rgba(10,46,115,.05), 0 10px 28px -16px rgba(10,46,115,.18); }
.legal-tabs { display: flex; gap: 6px; margin-bottom: 26px; flex-wrap: wrap; }
.legal-tabs a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line, #E3E8F0); color: var(--muted, #5B6B85); text-decoration: none; font-weight: 600; font-size: 14px; }
.legal-tabs a.on { background: var(--navy); border-color: var(--navy); color: #FFFFFF; }
.legal-doc h1 { font: 700 34px/1.15 var(--serif); color: var(--navy); margin: 0 0 6px; letter-spacing: -.01em; }
.legal-date { color: var(--muted, #5B6B85); font-size: 14px; margin: 0 0 22px; }
.legal-intro { font-size: 17px; line-height: 1.65; padding: 16px 18px; background: #F3F7FD; border-left: 4px solid var(--navy); border-radius: 6px; margin: 0 0 12px; }
.legal-doc section { margin-top: 28px; }
.legal-doc h2 { display: flex; align-items: center; gap: 12px; font: 600 20px/1.3 var(--serif); color: var(--navy); margin: 0 0 10px; }
.legal-n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: #E8F0FE; color: var(--navy); font: 700 13px/28px var(--sans); text-align: center; }
.legal-doc p { line-height: 1.7; margin: 0 0 10px; }
.legal-doc section p { padding-left: 40px; }
@media (max-width: 640px) { .legal-doc { padding: 26px 20px; } .legal-doc section p { padding-left: 0; } .legal-doc h1 { font-size: 28px; } }

/* account menu in the header */
.acct { position: relative; }
.acct summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 9px; padding: 5px 12px 5px 6px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; color: #FFFFFF; font: 600 14px var(--sans); min-height: 40px; }
.acct summary::-webkit-details-marker { display: none; }
.acct summary:hover, .acct[open] summary { background: rgba(255,255,255,.10); }
.acct-av { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #FFFFFF; color: #0A2E73; font: 700 14px var(--serif); flex: none; }
.acct-nm { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-car { font-size: 11px; opacity: .8; }
.acct-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; min-width: 230px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px -12px rgba(10,25,50,.35); padding: 6px; display: flex; flex-direction: column; }
.acct-who { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; color: var(--ink); }
.acct-who span { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.acct-menu a, .acct-menu button { display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; background: transparent; border-radius: 8px; color: var(--ink); font: 500 15px var(--sans); text-decoration: none; cursor: pointer; }
.acct-menu a:hover, .acct-menu button:hover { background: #EEF3FA; color: #0A2E73; }
.acct-menu form { margin: 0; }

/* mobile polish (agent area) */
@media (max-width: 640px) {
  .site-header { padding-top: 10px; padding-bottom: 10px; }
  .site-header .wrap { gap: 8px; }
  .brand { font-size: 21px; gap: 8px; min-height: 40px; }
  .brand .logo { width: 34px; height: 34px; }
  .hdr-actions { gap: 8px; }
  .acct summary { padding: 4px; min-height: 38px; gap: 0; }
  .acct-nm, .acct-car { display: none; }
  .site-header { position: relative; z-index: 60; }
  .acct { position: static; }
  .acct-menu { position: absolute; left: 12px; right: 12px; top: calc(100% + 6px); min-width: 0; z-index: 70; }
  .lang-sw a { padding: 6px 9px; }
  .dash { padding-top: 24px; padding-bottom: 56px; }
  .dash h1 { font-size: 28px; }
  .dh { padding: 20px; gap: 18px; }
  .dh-id { gap: 14px; }
  .avatar { width: 48px; height: 48px; font-size: 20px; }
  .dh-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .dh-actions .btn { width: 100%; justify-content: center; text-align: center; }
  .dh-actions .btn:first-child { grid-column: 1 / -1; }
  .dk-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .dk { padding: 14px; }
  .dk-v { font-size: 22px; }
  .dc-head { padding-left: 16px; padding-right: 16px; }
  .table-wrap { -webkit-overflow-scrolling: touch; }
  .table { min-width: 560px; }
  .legal-tabs a { flex: 1; text-align: center; }
  .setup-card { padding: 24px 18px; }
  .site-footer .footer-row { flex-direction: column; gap: 18px; }
}

/* ---------- mobile (storefront) ---------- */
@media (max-width: 640px) {
  nav.pager { gap: 4px; flex-wrap: wrap; justify-content: center; }
  .pg { min-width: 38px; height: 38px; }
  .o-filter { flex-direction: column; align-items: stretch; }
  .o-filter .input, .o-filter .btn { width: 100%; }
  .o-filter .o-search { flex: none; width: 100%; }
  .od-main, .od-sum, .pd-main, .pd-buy { padding: 18px; }
  .codes-card { padding: 16px; }
  .paid-banner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .notice { font-size: 14.5px; }
  .btn { min-height: 44px; }
  .btn-xs { min-height: 36px; }
  .row-act { flex-wrap: wrap; }
  .cart-sum { padding: 18px; }
  .nf { padding-top: 56px; padding-bottom: 56px; }
  .nf-act { flex-direction: column; width: 100%; }
  .nf-act .btn { width: 100%; }
  .cart-empty { padding: 36px 20px; }
}
@media (max-width: 640px) {
  .shop-filters { padding: 14px; grid-template-columns: minmax(0, 1fr); }
  .sf-row .input, .sf-row input[type=search] { flex: 1 1 100%; }
  .sf-row .btn { flex: 1 1 100%; }
  .sf-days { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 2px 14px; }
  .sf-days::-webkit-scrollbar { display: none; }
  .sf-days .chip, .sf-label, .sf-clear { white-space: nowrap; flex: none; }
  .tk-main { padding: 16px; }
  .tk-name { font-size: 18px; }
}

/* ---- agent application ---- */
.ap { padding-top: 40px; padding-bottom: 72px; }
.ap-head { max-width: 760px; margin: 0 auto 28px; text-align: center; }
.ap-eyebrow { display: inline-block; font: 700 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); background: #E8F0FE; padding: 6px 12px; border-radius: 999px; }
.ap-head h1 { font: 700 clamp(30px,4vw,42px)/1.15 var(--serif); color: var(--navy); margin: 14px 0 10px; letter-spacing: -.01em; }
.ap-head p { color: var(--muted); font-size: 17px; line-height: 1.6; margin: 0; }
.ap-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; max-width: 1080px; margin: 0 auto; }
.ap-side { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 16px; }
.ap-card { background: #FFFFFF; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 2px rgba(10,46,115,.05), 0 10px 28px -16px rgba(10,46,115,.18); }
.ap-why { padding: 24px; background: linear-gradient(160deg, #0A2E73, #133E96); border: 0; color: #FFFFFF; }
.ap-why h2 { font: 600 19px var(--serif); margin: 0 0 14px; color: #FFFFFF; }
.ap-why ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ap-why li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: #E4ECFA; }
.ap-why li::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; background: rgba(111,208,255,.22); color: #6FD0FF; font-weight: 700; font-size: 13px; line-height: 22px; text-align: center; }
.ap-steps { padding: 22px 24px; }
.ap-steps h2 { font: 600 17px var(--serif); margin: 0 0 14px; color: var(--navy); }
.ap-steps ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; counter-reset: s; }
.ap-steps li { position: relative; padding-left: 42px; counter-increment: s; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.ap-steps li b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 1px; }
.ap-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: #E8F0FE; color: var(--navy); font: 700 14px/30px var(--sans); text-align: center; }
.ap-steps li:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 34px; bottom: -14px; width: 2px; background: #DCE6F6; }
.ap-form { padding: 0; overflow: hidden; }
.ap-sec { padding: 26px 30px; border-bottom: 1px solid var(--line); }
.ap-sec:last-of-type { border-bottom: 0; }
.ap-sec h2 { display: flex; align-items: center; gap: 10px; font: 600 18px var(--serif); color: var(--navy); margin: 0 0 4px; }
.ap-n { width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; font: 700 13px/26px var(--sans); text-align: center; }
.ap-sec > p { margin: 0 0 18px; color: var(--muted); font-size: 14px; padding-left: 36px; }
.ap-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.ap-fields .full { grid-column: 1 / -1; }
.ap-fields .field small { color: var(--muted); font-size: 13px; }
.req { color: #B42318; }
.ap-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ap-chips label { cursor: pointer; }
.ap-chips input { position: absolute; opacity: 0; }
.ap-chips span { display: inline-block; padding: 9px 16px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14.5px; font-weight: 600; background: #fff; color: var(--ink); }
.ap-chips input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.ap-chips input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
textarea.input { height: auto; min-height: 110px; padding: 12px 14px; line-height: 1.55; }
.ap-foot { padding: 22px 30px 26px; background: #F6F9FE; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.ap-agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; }
.ap-agree input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.ap-submit { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ap-submit .btn { padding-left: 32px; padding-right: 32px; }
.ap-submit small { color: var(--muted); font-size: 13.5px; }
@media (max-width: 900px) { .ap-grid { grid-template-columns: minmax(0,1fr); } .ap-side { position: static; order: 2; } }
@media (max-width: 640px) { .ap { padding-top: 24px; } .ap-sec, .ap-foot { padding: 20px 18px; } .ap-fields { grid-template-columns: minmax(0,1fr); } .ap-sec > p { padding-left: 0; } .ap-submit .btn { width: 100%; } }
.ap-msg { margin-top: 18px; }
.ap-err { margin: 0; border-radius: 0; border-width: 0 0 1px; border-left: 4px solid #B42318; padding: 14px 30px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ap-done { max-width: 560px; margin: 24px auto 0; padding: 40px 32px; text-align: center; }
.ap-tick { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; background: #DDF3EA; color: #0A6B53; font: 700 28px/56px var(--sans); }
.ap-done h1 { font: 700 28px/1.2 var(--serif); color: var(--navy); margin: 0 0 10px; }
.ap-done p { color: var(--muted); font-size: 16px; line-height: 1.6; margin: 0 0 24px; }
.site-footer .copyright a { color: #C9D4E6; text-decoration: underline; }
@media (max-width: 640px) { .ap-err { padding: 14px 18px; } }


.ap-head .ap-login-line { margin-top: 10px; font-size: 15px; }
.ap-head .ap-login-line a { color: var(--navy); font-weight: 600; }
@media (max-width: 560px) { .ap-hdr-login { display: none; } }

/* Public content pages */
.cpage h2.nn{display:block}
.cp-list{margin:.4rem 0 .8rem 1.2rem;padding:0}
.cp-list li{margin:.35rem 0}
.cp-cta{display:flex;flex-wrap:wrap;gap:1rem;align-items:center;justify-content:space-between;margin:2.2rem 0 1.2rem;padding:1.2rem 1.4rem;border:1px solid var(--line,#dfe5f0);border-radius:14px;background:#f5f8ff}
.cp-cta strong{display:block;font-size:1.05rem}
.cp-cta span{color:#55627a;font-size:.95rem}
.cp-cta-btns .btn{width:auto;height:auto;padding:11px 22px}
.cp-cta-btns{display:flex;flex-wrap:wrap;gap:.6rem}
.cp-related{display:flex;flex-wrap:wrap;gap:.4rem 1.2rem;margin-top:1rem}
.cp-related a{font-weight:500}
.footer-nav{flex-wrap:wrap}
.more-link{margin-top:1.4rem;font-weight:600}
.site-header .btn-sm{white-space:nowrap}

/* Back-office access code pop-up */
.pin-dialog { border: 0; border-radius: 14px; padding: 0; width: calc(100% - 32px); max-width: 400px; box-shadow: 0 24px 60px -12px rgba(6,20,52,.45); color: var(--ink); }
.pin-dialog::backdrop { background: rgba(6,20,52,.55); }
.pin-form { padding: 26px 24px 22px; }
.pin-form h2 { margin: 0 0 8px; font: 700 24px/1.2 var(--serif); color: var(--navy); }
.pin-form .muted { margin: 0 0 14px; }
.pin-actions { display: flex; gap: 10px; margin-top: 18px; }
.pin-actions .btn { flex: 1; width: auto; height: 46px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; }

/* very narrow phones (360px and below): keep the top bar inside the screen, EN and TH */
@media (max-width: 400px) {
  .brand { font-size: 19px; gap: 6px; }
  .brand .logo { width: 30px; height: 30px; }
  .nav { gap: 4px 8px; }
  .nav .lang-sw { margin-left: 0; }
  .site-header .btn-sm { padding: 8px 11px; font-size: 13.5px; }
  .lang-sw a { padding: 6px 8px; }
}
.site-header .btn-sm { display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 640px) { form .btn-gold + .btn-outline { margin-top: 10px; } form[action="/password"] .btn { display: block; width: 100%; } .setup-note { margin-top: 18px; } }
/* phones: let wide tables scroll sideways instead of squeezing every column */
@media (max-width: 640px) { .table-wrap > .table { min-width: 560px; } }
