/* ==========================================================================
   style.css - shared base styles + the ADMIN area.
   The public pages add site.css on top of this file.

   Colours come from CSS variables (--primary, --accent, ...) printed by
   includes/views/theme_css.php from includes/theme.php, so rebranding never
   requires editing CSS. Mobile-first; breakpoints at 700px and 1000px.
   ========================================================================== */

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--background); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--heading-font); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
.h3 { font-size: 1.1rem; display: flex; align-items: center; gap: .5rem; }
.h4 { font-size: 1rem; margin: 1.4em 0 .6em; }
code, .mono { font-family: Consolas, 'SFMono-Regular', Menlo, monospace; font-size: .9em; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 680px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.badge-sample { background: #fff4d6; color: #7a4b00; border: 1px dashed #d9a400; font-size: 11px; padding: 1px 7px; border-radius: 999px; vertical-align: middle; }
.sample-note { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.sample-note p { margin: 0; }
.auth-box .alert { overflow-wrap: anywhere; } /* long email addresses wrap instead of widening the card on phones */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; } /* spam trap on sign-up, hidden from people */
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; background: var(--primary); color: #fff; border: 0; border-radius: 10px; padding: .75em 1.3em; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; transition: transform .15s ease, box-shadow .2s ease, background .2s ease; box-shadow: 0 1px 2px rgba(15, 27, 45, .12); }
.btn:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(19, 64, 116, .6); }
.btn:active { transform: translateY(0); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn-accent { background: var(--accent); color: #1b1300; }
.btn-accent:hover { background: var(--accent); filter: brightness(1.05); box-shadow: 0 8px 24px -8px rgba(245, 165, 36, .8); }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); box-shadow: none; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border: 1.5px solid rgba(255, 255, 255, .5); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .22); }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: var(--danger); filter: brightness(.95); }
.btn-small { padding: .45em .9em; font-size: .9rem; border-radius: 8px; }
.btn-row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.link-btn { background: none; border: 0; color: inherit; cursor: pointer; padding: 0; font: inherit; display: inline-flex; align-items: center; gap: .4em; }

/* Shimmer while a form is submitting (site.js adds .is-loading) */
.btn-shimmer { position: relative; overflow: hidden; }
.btn-shimmer.is-loading { pointer-events: none; }
.btn-shimmer.is-loading::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .55) 50%, transparent 80%); animation: shimmer 1s linear infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* ---------- forms ---------- */
input, select, textarea { font: inherit; width: 100%; padding: .7em .85em; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--text); transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(19, 64, 116, .12); }
input::placeholder, textarea::placeholder { color: #94a3b8; }
label { display: block; font-size: .88rem; font-weight: 600; color: #334155; }
label input, label select, label textarea { margin-top: .35em; font-weight: 400; }
label.check { display: flex; gap: .55em; align-items: center; font-weight: 500; }
label.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--primary); }
.stack > * + * { margin-top: 1rem; }
.row-2, .row-3, .row-4 { display: grid; gap: .9rem; grid-template-columns: 1fr; }
.inline-form { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.inline-form input, .inline-form select { width: auto; flex: 1 1 160px; }

/* ---------- cards, alerts, badges ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.4rem; margin-bottom: 1.4rem; box-shadow: 0 1px 2px rgba(15, 27, 45, .04), 0 8px 24px -16px rgba(15, 27, 45, .12); }
.card-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.card-head .h3 { margin: 0; }
.card-warn { border-left: 4px solid var(--warning); }
.card-danger { border-left: 4px solid var(--danger); }
.alert { display: flex; gap: .6rem; align-items: flex-start; padding: .9rem 1.1rem; border-radius: 12px; margin: 1rem 0; font-weight: 500; }
.alert .icon { margin-top: .15em; }
.alert-ok { background: #e7f6ee; color: #14532d; }
.alert-error { background: #fdecec; color: #8a1f17; }
.alert-warn { background: #fff5e1; color: #7a4b00; }
.alert-info-soft { background: #eaf2fb; color: #163d66; }
input[readonly]:not([data-select-all]) { background: #f1f5f9; color: #475569; cursor: not-allowed; }
.badge { display: inline-flex; align-items: center; gap: .35em; padding: .25em .75em; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; letter-spacing: .01em; }
.badge::before { content: ''; width: .5em; height: .5em; border-radius: 50%; background: currentColor; opacity: .8; }
.badge-lg { font-size: .95rem; padding: .45em 1.1em; }
.badge-grey { background: #eef1f5; color: #475569; }
.badge-blue { background: #e3edf9; color: #134074; }
.badge-orange { background: #fff1d6; color: #8a5300; }
.badge-teal { background: #dcf5f1; color: #0f6157; }
.badge-purple { background: #ede7fa; color: #4c2d8f; }
.badge-green { background: #dff5e7; color: #17633a; }
.badge-red { background: #fde4e1; color: #8a1f17; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 -.2rem; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .92rem; }
.table th, .table td { text-align: left; padding: .75rem .6rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table th { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; background: #f8fafc; }
.table th:first-child { border-top-left-radius: 10px; } .table th:last-child { border-top-right-radius: 10px; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: #f8fafc; }
.table td a { font-weight: 600; text-decoration: none; }
.table td.details { max-width: 360px; word-break: break-word; color: var(--muted); }

/* ---------- shared bits used on several pages ---------- */
.logo { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--heading-font); font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.logo-light { color: #fff; }
.tracking-no { font-size: 1.45rem; font-weight: 800; letter-spacing: .04em; font-family: Consolas, 'SFMono-Regular', Menlo, monospace; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem 1.4rem; margin-top: 1.2rem; }
.facts > div { display: flex; flex-direction: column; gap: .15rem; }
.facts .muted { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; display: flex; align-items: center; gap: .35rem; }
.map { height: 360px; border-radius: 12px; border: 1px solid var(--border); z-index: 0; }
.map-small { height: 260px; }
/* No tile source / tiles failing (map-tiles.js): a calm plain background so the route still reads. */
.map.map-no-tiles { background: #eef3f8 repeating-linear-gradient(0deg, transparent 0 39px, rgba(100, 116, 139, .08) 39px 40px), repeating-linear-gradient(90deg, transparent 0 39px, rgba(100, 116, 139, .08) 39px 40px); }
.map-notice { background: rgba(255, 255, 255, .92); border: 1px solid var(--border); border-radius: 8px; padding: .35rem .6rem; font-size: .75rem; color: #475569; max-width: 260px; box-shadow: 0 2px 6px rgba(15, 27, 45, .08); }
.inbox, .activity, .plain { list-style: none; margin: 0; padding: 0; }
.inbox li { border: 1px solid var(--border); border-radius: 12px; padding: .9rem 1.1rem; margin-bottom: .75rem; background: #fbfcfe; }
.inbox-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.inbox-body { white-space: pre-line; margin-top: .4rem; }
/* Customer replies to staff messages (tracking page + admin shipment page) */
.reply-list { list-style: none; margin: .75rem 0 0; padding: 0 0 0 .9rem; border-left: 3px solid var(--primary); }
.inbox .reply-list li { border: 1px solid var(--border); border-radius: 10px; padding: .6rem .85rem; margin-bottom: .5rem; background: #eef4fb; box-shadow: none; }
.inbox .reply-list li.is-new { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(19, 64, 116, .12); }
.reply-head { display: flex; justify-content: space-between; gap: .75rem; flex-wrap: wrap; font-size: .92rem; }
.reply-box { margin-top: .6rem; }
.reply-box summary { cursor: pointer; display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; color: var(--primary); }
.reply-box summary svg { width: 1em; height: 1em; }
.reply-box form { margin-top: .5rem; }
.reply-box textarea { width: 100%; }
.inbox li > .alert { margin: .6rem 0 0; }

/* ==========================================================================
   ADMIN
   ========================================================================== */
.admin-body { background: #f1f4f9; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 256px; background: linear-gradient(180deg, #0b1726 0%, #0f2238 100%); color: #cbd5e1; padding: 1.3rem 1rem; display: flex; flex-direction: column; gap: 1.4rem; transform: translateX(-100%); transition: transform .25s ease; z-index: 2000; overflow-y: auto; }
.sidebar .logo { padding: 0 .5rem; }
.sidebar nav { display: flex; flex-direction: column; gap: .2rem; }
.sidebar nav a { display: flex; align-items: center; gap: .75rem; color: #cbd5e1; text-decoration: none; padding: .65rem .8rem; border-radius: 10px; font-weight: 500; transition: background .15s, color .15s; }
.sidebar nav a .icon { width: 1.2em; height: 1.2em; opacity: .85; }
.sidebar nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.sidebar nav a.active { background: var(--primary); color: #fff; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .6); }
.sidebar nav .nav-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: #64748b; padding: .9rem .8rem .3rem; }
.sidebar-user { margin-top: auto; display: flex; align-items: center; gap: .7rem; border-top: 1px solid rgba(255, 255, 255, .08); padding: 1rem .4rem 0; font-size: .9rem; }
.sidebar-user .avatar { background: var(--accent); color: #1b1300; }
.sidebar-user .who { flex: 1; min-width: 0; line-height: 1.3; }
.sidebar-user .who strong { color: #fff; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user .link-btn { color: #94a3b8; }
.sidebar-user .link-btn:hover { color: #fff; }
.side-close { cursor: pointer; color: #94a3b8; font-size: .9rem; display: flex; align-items: center; gap: .4rem; }
.nav-toggle { display: none; }
#side-toggle:checked ~ .sidebar { transform: none; box-shadow: 0 0 0 100vmax rgba(5, 12, 22, .5); }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 700; background: var(--primary); color: #fff; flex: none; }

.admin-main { padding: 1rem 18px 2.5rem; max-width: 1400px; }
.admin-topbar { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.4rem; }
.admin-topbar h1 { font-size: 1.6rem; margin: 0; }
.admin-topbar .crumb { color: var(--muted); font-size: .85rem; }
.burger-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: #fff; border: 1px solid var(--border); cursor: pointer; }
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(1200px 600px at 10% 0%, rgba(19, 64, 116, .25), transparent), radial-gradient(900px 500px at 100% 100%, rgba(245, 165, 36, .18), transparent), #0b1726; }
.auth-box { width: 100%; max-width: 420px; margin: 0; padding: 2rem; border: 0; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .6); animation: pop .4s ease both; }
.auth-box .logo { margin-bottom: 1.4rem; }

/* KPI cards + chart */
.kpi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; margin-bottom: 1.4rem; }
.kpi { position: relative; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 1rem 1.1rem; text-decoration: none; color: var(--muted); display: flex; flex-direction: column; gap: .2rem; overflow: hidden; transition: transform .15s, box-shadow .2s; }
.kpi:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -18px rgba(15, 27, 45, .5); }
.kpi .kpi-icon { position: absolute; right: .9rem; top: .9rem; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: #eef3fb; color: var(--primary); }
.kpi .stat-num { font-family: var(--heading-font); font-size: 1.9rem; font-weight: 700; color: var(--text); line-height: 1.1; }
.kpi span:last-child { font-size: .85rem; font-weight: 500; }
.kpi-main { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #cfe0f5; border: 0; }
.kpi-main .stat-num { color: #fff; }
.kpi-main .kpi-icon { background: rgba(255, 255, 255, .15); color: #fff; }
.kpi-orange .kpi-icon { background: #fff1d6; color: #8a5300; }
.kpi-green .kpi-icon { background: #dff5e7; color: #17633a; }
.kpi-teal .kpi-icon { background: #dcf5f1; color: #0f6157; }
.chart-box { position: relative; height: 260px; }
.status-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.status-chips a { text-decoration: none; }
.dash-grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
.dash-grid > .card, .dash-grid > div > .card { margin-bottom: 0; }
.dash-grid > div { display: grid; gap: 1.4rem; align-content: start; }
.two-col { display: grid; gap: 1.4rem; grid-template-columns: 1fr; margin-bottom: 1.4rem; }
.two-col > .card { margin-bottom: 0; }
.activity li { display: flex; gap: .7rem; padding: .65rem 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.activity li:last-child { border-bottom: 0; }
.activity .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); margin-top: .45em; flex: none; box-shadow: 0 0 0 4px #e3edf9; }
.activity code { background: #f1f5f9; padding: .05em .4em; border-radius: 5px; }
.plain li { padding: .4rem 0; }
.filter-bar { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.filter-bar input { flex: 1 1 260px; width: auto; }
.filter-bar select { width: auto; }
.pager { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: 1rem; }
.pager a { padding: .35rem .8rem; border: 1px solid var(--border); border-radius: 8px; text-decoration: none; background: #fff; }
.pager a.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.access-code { display: inline-block; background: #fff5e1; color: #7a4b00; padding: .15em .6em; border-radius: 8px; letter-spacing: .12em; }

/* Toasts (flash messages): site markup is a normal .alert inside .toast-stack;
   admin.js adds the slide-in and auto-hide. Without JS it is just an alert. */
.toast-stack { position: fixed; right: 18px; top: 18px; z-index: 3000; display: grid; gap: .6rem; max-width: min(420px, calc(100vw - 36px)); }
.toast-stack .alert { margin: 0; box-shadow: 0 18px 40px -16px rgba(15, 27, 45, .45); border: 1px solid rgba(15, 27, 45, .06); animation: toast-in .35s ease both; }
.toast-stack .alert.is-leaving { animation: toast-out .3s ease both; }
.toast-close { margin-left: auto; background: none; border: 0; cursor: pointer; color: inherit; opacity: .6; padding: 0 0 0 .5rem; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateX(20px); } }

/* Confirm modal (admin.js) */
.modal { position: fixed; inset: 0; z-index: 4000; display: grid; place-items: center; padding: 20px; background: rgba(8, 15, 28, .55); backdrop-filter: blur(3px); animation: fade .2s ease both; }
.modal[hidden] { display: none; }
.modal-box { background: #fff; border-radius: 18px; padding: 1.6rem; width: 100%; max-width: 440px; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .6); animation: pop .25s ease both; }
.modal-box h3 { margin-bottom: .4rem; }
.modal-box p { color: var(--muted); margin: 0 0 1.3rem; }
.modal-box .btn-row { justify-content: flex-end; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.97); } }

/* ---------- wider screens ---------- */
@media (min-width: 700px) {
  .row-2 { grid-template-columns: 1fr 1fr; }
  .row-3 { grid-template-columns: repeat(3, 1fr); }
  .row-4 { grid-template-columns: repeat(4, 1fr); }
  .kpi-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1000px) {
  .sidebar { transform: none; }
  .side-close, .burger-btn { display: none; }
  .admin-main { margin-left: 256px; padding: 1.8rem 2.2rem 2.5rem; }
  .admin-main.no-sidebar { margin: 0; padding: 0; max-width: none; }
  .two-col { grid-template-columns: 1fr 1fr; }
  .dash-grid { grid-template-columns: 1.6fr 1fr; }
}

/* Respect "reduce motion": no transitions or animations. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* small fixes */
.sidebar .logo { font-size: 1.02rem; white-space: nowrap; }
.access-code { align-self: flex-start; }
.chart-box + .status-chips { margin-top: 1rem; }
/* Grid children may shrink below their content (wide tables scroll inside .table-wrap instead of widening the page). */
.dash-grid > *, .two-col > *, .dash-grid > div > * { min-width: 0; }

/* ---------- Phase 2 (admin + shared) ---------- */
.msg-photos { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.msg-photos img { width: 120px; height: 90px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); transition: transform .2s; }
.msg-photos a:hover img { transform: scale(1.04); }
/* Customer receipt card on admin/shipment.php */
.customer-receipt.is-new { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(19, 64, 116, .1); }
.customer-receipt > label { margin-top: .4rem; }
.copy-field { display: flex; gap: .5rem; align-items: stretch; margin-top: .35em; }
.copy-field input { margin-top: 0; font-family: Consolas, 'SFMono-Regular', Menlo, monospace; font-size: .85rem; color: #334155; background: #f8fafc; }
.copy-field .btn { flex: none; }
.receipt-email { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; margin-top: 1rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
@media (max-width: 600px) { .copy-field { flex-direction: column; } }
.label-text { display: block; font-size: .88rem; font-weight: 600; color: #334155; margin-bottom: .35em; }
/* Photo picker: a drop zone instead of the browser's plain "Choose files" box.
   The real <input type=file> covers the whole zone (invisible), so click, tap,
   keyboard and drag-and-drop all work without JavaScript. */
.file-drop { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; padding: 1rem 1.1rem; border: 1.5px dashed #b6c2d2; border-radius: 12px; background: #f8fafc; color: var(--text); font-weight: 400; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.file-drop:hover, .file-drop.is-dragover { border-color: var(--primary); background: #f1f6fc; }
.file-drop:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(19, 64, 116, .12); }
.file-drop input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
.file-drop-icon { flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: #fff; border: 1px solid var(--border); color: var(--primary); }
.file-drop-icon svg { width: 22px; height: 22px; }
.file-drop-text { flex: 1 1 11rem; display: grid; gap: .15rem; min-width: 0; }
.file-drop .on-touch { display: none; }
@media (hover: none) { .file-drop .on-touch { display: inline; } .file-drop .on-mouse { display: none; } }
.file-drop-text strong { font-size: .92rem; }
.file-drop-text strong u { color: var(--primary); text-decoration: none; }
.file-drop-text small { color: var(--muted); font-size: .78rem; }
.file-drop-count { margin-left: auto; flex: 0 0 auto; font-size: .78rem; font-weight: 600; color: var(--primary); background: #e8f0fa; border-radius: 999px; padding: .2rem .65rem; }
.file-drop-count:empty { display: none; }
.photo-preview { display: flex; flex-wrap: wrap; gap: .5rem; }
.photo-preview:empty { display: none; }
.photo-preview figure { margin: 0; width: 96px; font-size: .72rem; color: var(--muted); }
.photo-preview img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.photo-preview .bad { color: var(--danger); }
.label-like { display: block; font-size: .88rem; font-weight: 600; color: #334155; }
.fixed-value { margin: .35em 0 0; padding: .55em .85em; border-radius: 10px; background: #f1f5f9; border: 1px dashed var(--border); }
.avatar-lg { width: 52px; height: 52px; font-size: 1.3rem; }
.scope-note { display: flex; align-items: center; gap: .4rem; margin: -.6rem 0 1rem; }
.live-indicator { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: transparent; margin-left: .3rem; vertical-align: middle; }
.live-indicator.is-loading { background: var(--accent); animation: pulse-dot .8s ease-in-out infinite alternate; }
@keyframes pulse-dot { to { opacity: .3; } }
.route-map { height: 340px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.status-id { display: flex; align-items: center; gap: 1rem; }
.sidebar nav { position: relative; }
.nav-badge { align-self: flex-end; margin: -2.2rem .6rem .9rem 0; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--accent); color: #1b1300; font-size: .72rem; font-weight: 800; display: grid; place-items: center; pointer-events: none; }

/* ---------- Phase 1 upgrade: shared admin pieces (email, appearance, points) ---------- */
.tabs { display: flex; gap: .3rem; flex-wrap: wrap; margin-bottom: 1.2rem; border-bottom: 1px solid var(--border); }
.tabs a { padding: .6rem 1rem; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--text); }
.tabs a.active { color: var(--primary); border-bottom-color: var(--primary); }
/* On/off switch made from a normal checkbox (still a checkbox for keyboards and screen readers). */
input.switch { appearance: none; -webkit-appearance: none; width: 42px; height: 24px; padding: 0; margin: 0; border-radius: 999px; background: #cbd5e1; border: 0; position: relative; cursor: pointer; transition: background .15s; flex: none; vertical-align: middle; }
input.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
input.switch:checked { background: var(--success); }
input.switch:checked::after { transform: translateX(18px); }
input.switch:disabled { opacity: .45; cursor: not-allowed; }
input.switch:focus-visible { outline: 3px solid rgba(19, 64, 116, .35); outline-offset: 2px; }
.switch-form { display: flex; align-items: center; gap: .6rem; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .8rem; margin: .4rem 0 1rem; }
.stat-tile { display: grid; gap: .2rem; padding: .9rem 1rem; border: 1px solid var(--border); border-radius: 12px; text-decoration: none; color: var(--muted); background: #f8fafc; font-size: .85rem; }
.stat-tile .stat-num { font-family: var(--heading-font); font-size: 1.6rem; font-weight: 700; color: var(--text); line-height: 1.1; }
a.stat-tile:hover { border-color: var(--primary); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1rem; margin: 0 0 1rem; font-size: .92rem; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; word-break: break-word; }
.text-danger { color: var(--danger); }
.btn-danger-text { color: var(--danger); border-color: var(--danger); }
.admin-body .history { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.admin-body .history li { display: grid; grid-template-columns: 9.5rem 1fr; gap: .6rem; font-size: .9rem; }
.admin-body .history-time { color: var(--muted); font-size: .8rem; }
.email-preview-wrap { display: flex; justify-content: center; background: #e9edf3; border-radius: 12px; padding: 12px; }
.email-preview { width: 100%; height: 560px; border: 1px solid var(--border); border-radius: 10px; background: #fff; transition: width .2s; }
.email-preview-wrap.is-mobile .email-preview { width: 375px; max-width: 100%; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.seg button { border: 0; background: #fff; padding: .4rem .8rem; font: inherit; font-size: .85rem; cursor: pointer; color: var(--muted); }
.seg button.active { background: var(--primary); color: #fff; }
.var-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.chip { border: 1px solid var(--border); background: #f8fafc; border-radius: 999px; padding: .2rem .6rem; font-family: Consolas, Menlo, monospace; font-size: .75rem; cursor: pointer; color: #334155; }
.chip:hover { border-color: var(--primary); color: var(--primary); }
textarea.mono { font-family: Consolas, 'SFMono-Regular', Menlo, monospace; font-size: .85rem; line-height: 1.5; }
@media (max-width: 600px) { .admin-body .history li { grid-template-columns: 1fr; gap: .1rem; } .kv { grid-template-columns: 1fr; gap: .1rem; } .kv dd { margin-bottom: .4rem; } }
/* Appearance page: design cards with a tiny colour mock-up, colour pickers, logo pickers */
.theme-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-bottom: 1.4rem; }
.theme-card { display: flex; flex-direction: column; gap: .3rem; margin: 0; }
.theme-card .h4 { margin: .4rem 0 0; display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.theme-card .btn { margin-top: auto; align-self: flex-start; }
.theme-card.is-current { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft, rgba(19, 64, 116, .12)); }
.theme-swatch { position: relative; height: 96px; border-radius: 10px; background: var(--sw-bg); border: 1px solid var(--border); overflow: hidden; }
.theme-swatch .sw-bar { position: absolute; inset: 0 0 auto 0; height: 20px; background: var(--sw-primary); }
.theme-swatch .sw-card { position: absolute; left: 14px; top: 32px; width: 58%; height: 50px; background: var(--sw-surface); border-radius: 6px; box-shadow: 0 2px 6px rgba(0, 0, 0, .08); }
.theme-swatch .sw-btn { position: absolute; right: 14px; bottom: 14px; width: 64px; height: 20px; background: var(--sw-accent); border-radius: var(--sw-radius); }
.color-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; }
.color-field { display: flex; align-items: center; gap: .5rem; margin-top: .35em; }
.color-field input[type=color] { width: 44px; height: 36px; padding: 2px; margin: 0; cursor: pointer; }
.color-field code { font-size: .8rem; color: var(--muted); }
.brand-pick { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; padding: .6rem; border: 1px dashed var(--border); border-radius: 10px; }
.brand-pick img { max-width: 160px; object-fit: contain; background: #f1f5f9; border-radius: 6px; padding: 4px; }
.brand-pick input[type=file] { width: auto; flex: 1 1 200px; padding: .4rem; }
/* Points: wallet tiles, packages, decision forms, the note on the shipment form */
.stat-tile.stat-main { background: var(--primary); color: rgba(255, 255, 255, .85); border-color: var(--primary); }
.stat-tile.stat-main .stat-num { color: #fff; }
.package-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .8rem; margin-bottom: .8rem; }
.package { display: grid; gap: .3rem; justify-items: start; padding: 1rem; border: 1px solid var(--border); border-radius: 12px; background: #f8fafc; }
.package-points { font-family: var(--heading-font); font-size: 1.5rem; line-height: 1.1; }
.package-points small { font-size: .8rem; font-weight: 500; color: var(--muted); }
.package-price { font-weight: 700; color: var(--primary); }
.decide-form { display: grid; gap: .4rem; min-width: 240px; }
.small-form { margin-top: .6rem; }
.text-success { color: var(--success); }
.points-note { display: flex; gap: .6rem; align-items: flex-start; padding: .8rem 1rem; border-radius: 10px; background: #f1f6fd; border: 1px solid #dbe6f5; font-size: .9rem; }
.points-note .icon { color: var(--primary); flex: none; margin-top: .1em; }
.brand-pick input[type=file] { min-width: 0; max-width: 100%; }
@media (max-width: 600px) { .brand-pick input[type=file] { flex-basis: 100%; } }
.row-2 > *, .row-3 > *, .row-4 > * { min-width: 0; } /* form grid cells may shrink (file inputs are wide by nature) */

/* ---------- SweetAlert2 toasts + dialogs (assets/js/alerts.js) ---------- */
/* When SweetAlert2 loaded, the old corner toast is not needed (same message). */
.has-swal .toast-stack { display: none; }
.swal2-container.swal2-bottom-end { padding: 1.2rem; }
.swal2-popup.yb-toast { width: min(420px, calc(100vw - 2rem)); padding: .95rem 1.1rem .95rem 1rem; border-radius: 14px; background: var(--surface); color: var(--text);
  font-family: var(--font); border: 1px solid var(--border); border-left: 6px solid var(--primary);
  box-shadow: 0 18px 40px -12px rgba(15, 27, 45, .35), 0 2px 6px rgba(15, 27, 45, .08); align-items: flex-start; }
.swal2-popup.yb-toast.swal2-icon-success { border-left-color: var(--success); }
.swal2-popup.yb-toast.swal2-icon-error { border-left-color: var(--danger); }
.swal2-popup.yb-toast.swal2-icon-warning { border-left-color: var(--warning); }
.swal2-popup.yb-toast .swal2-title { font-family: var(--heading-font); font-size: 1rem; font-weight: 700; margin: .1rem 0 .15rem; color: var(--text); }
.swal2-popup.yb-toast .swal2-html-container { font-size: .92rem; line-height: 1.45; margin: 0; color: var(--text); opacity: .85; text-align: left; }
.swal2-popup.yb-toast .swal2-close { color: var(--muted); font-size: 1.6rem; }
.swal2-popup.yb-toast .swal2-close:hover { color: var(--text); }
.swal2-popup.yb-toast .swal2-timer-progress-bar { background: var(--success); opacity: .55; }
/* Phones: across the bottom of the screen, easy to see and to close with a thumb. */
@media (max-width: 600px) {
  .swal2-container.swal2-bottom-end { padding: .75rem; left: 0; right: 0; }
  .swal2-popup.yb-toast { width: calc(100vw - 1.5rem); }
}
/* Confirm dialog in the site's style. */
.swal2-popup.yb-dialog { border-radius: 16px; background: var(--surface); color: var(--text); font-family: var(--font); }
.swal2-popup.yb-dialog .swal2-html-container { color: var(--text); font-size: 1rem; }
.yb-dialog-actions { gap: .6rem; }
/* Receipt designs: the chooser on Admin -> Settings and the design row on the shipment page */
.design-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .8rem; }
.design-option { display: grid; gap: .35rem; align-content: start; padding: .9rem; border: 1px solid var(--border); border-radius: 12px; background: #f8fafc; }
.design-option.is-default { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(19, 64, 116, .1); }
.receipt-design-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: 1rem; }
.receipt-design-row .inline-form select { flex: 0 1 220px; }
.receipt-design-row a { margin-right: .4rem; }

/* ---------- Receipt design thumbnails (Admin -> Settings -> Receipt designs) ----------
   A tiny mock of each design: <span class="design-thumb design-thumb-KEY"><i></i><i></i><i></i></span>
   i:1 = header, i:2 = body lines, i:3 = the charge band. */
.design-thumb { position: relative; display: block; width: 110px; height: 70px; border-radius: 6px; background: #fff; border: 1px solid var(--border); overflow: hidden; box-shadow: 0 2px 6px rgba(15, 27, 45, .08); }
.design-thumb i { position: absolute; display: block; }
.design-thumb i:nth-child(1) { left: 8px; right: 8px; top: 8px; height: 8px; background: var(--primary); border-radius: 2px; }
.design-thumb i:nth-child(2) { left: 8px; right: 30px; top: 24px; height: 18px; background: repeating-linear-gradient(#cbd5e1 0 2px, transparent 2px 6px); }
.design-thumb i:nth-child(3) { left: 8px; right: 8px; bottom: 8px; height: 9px; background: var(--primary); border-radius: 3px; }
.design-thumb-classic { border-top: 4px solid var(--primary); }
.design-thumb-modern i:nth-child(1) { left: 0; right: 0; top: 0; height: 20px; border-radius: 0; }
.design-thumb-modern i:nth-child(2) { top: 28px; right: 8px; background: repeating-linear-gradient(90deg, #cbd5e1 0 40px, transparent 40px 48px); height: 2px; box-shadow: 0 6px 0 #cbd5e1, 0 12px 0 #cbd5e1; }
.design-thumb-modern i:nth-child(3) { background: var(--accent); border-radius: 999px; }
.design-thumb-minimal i:nth-child(1) { height: 2px; background: #111; top: 14px; }
.design-thumb-minimal i:nth-child(2) { background: repeating-linear-gradient(#e5e5e5 0 1px, transparent 1px 6px); }
.design-thumb-minimal i:nth-child(3) { background: none; border-top: 2px solid #111; border-bottom: 1px solid #111; height: 6px; border-radius: 0; }
.design-thumb-thermal { width: 44px; margin: 0 33px; border-radius: 2px; }
.design-thumb-thermal i:nth-child(1) { left: 10px; right: 10px; height: 4px; background: #111; }
.design-thumb-thermal i:nth-child(2) { left: 6px; right: 6px; top: 18px; height: 30px; background: repeating-linear-gradient(#94a3b8 0 1px, transparent 1px 4px); }
.design-thumb-thermal i:nth-child(3) { left: 6px; right: 6px; background: none; border-top: 1px dashed #111; border-bottom: 1px dashed #111; height: 5px; border-radius: 0; }
.design-thumb-certificate { background: #fffdf6; border: 3px double var(--primary); }
.design-thumb-certificate i:nth-child(1) { left: 30px; right: 30px; height: 4px; top: 10px; background: #b8a46a; }
.design-thumb-certificate i:nth-child(2) { left: 14px; right: 14px; top: 22px; background: repeating-linear-gradient(#d8cba6 0 1px, transparent 1px 6px); }
.design-thumb-certificate i:nth-child(3) { left: 20px; right: 20px; background: none; border: 3px double var(--primary); border-radius: 0; height: 10px; }
label.check input.switch { width: 42px; height: 24px; } /* switches inside a .check label keep their full size */
/* ---------- USDT payments: Buy points page + Crypto payments admin ---------- */
.crypto-mode { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.pay-grid { display: grid; grid-template-columns: 180px 1fr; gap: 1.4rem; align-items: start; }
.pay-qr { width: 180px; height: 180px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 8px; }
.pay-qr svg { width: 100%; height: 100%; }
.pay-details { display: grid; gap: .5rem; min-width: 0; }
.pay-amount { display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem; font-family: var(--heading-font); font-size: 2rem; font-weight: 700; color: var(--primary); line-height: 1.1; }
.pay-amount small { font-size: 1rem; color: var(--muted); }
.network-warning { display: flex; gap: .6rem; align-items: flex-start; margin: 1.2rem 0 .8rem; padding: .85rem 1rem; border-radius: 12px; background: #fff7e6; border: 1px solid #f5c26b; color: #6b4a00; font-size: .9rem; }
.network-warning .icon { flex: none; margin-top: .1em; }
.plain-list { list-style: none; padding: 0; margin: .4rem 0 0; display: grid; gap: .3rem; }
@media (max-width: 600px) { .pay-grid { grid-template-columns: 1fr; } .pay-qr { margin: 0 auto; } .pay-amount { font-size: 1.6rem; } }
/* Password box with a "show password" eye button (admin.js adds it to every password box). */
.pw-wrap { position: relative; display: block; margin-top: .35em; }
.pw-wrap input { margin-top: 0; padding-right: 3rem; }
.pw-toggle { position: absolute; top: 50%; right: .35rem; transform: translateY(-50%); width: 2.4rem; height: 2.4rem; display: grid; place-items: center;
  border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; padding: 0; }
.pw-toggle:hover, .pw-toggle.is-on { color: var(--primary); background: rgba(19, 64, 116, .08); }
.pw-toggle:focus-visible { outline: 3px solid rgba(19, 64, 116, .35); outline-offset: 1px; }
.inline-form .pw-wrap { flex: 1 1 160px; margin-top: 0; }
/* ---------- Payment window (buy-points.js turns .pay-modal into a pop-up) ---------- */
.pay-modal.is-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 1rem; overflow-y: auto;
  background: rgba(15, 23, 42, .62); backdrop-filter: blur(3px); animation: pay-fade .2s ease; }
.pay-modal.is-modal.is-closed { display: none; }
.pay-modal.is-modal .pay-card { width: 100%; max-width: 720px; margin: auto; max-height: calc(100vh - 2rem); overflow-y: auto; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45); animation: pay-rise .25s ease; }
body.pay-open { overflow: hidden; }
@keyframes pay-fade { from { opacity: 0; } }
@keyframes pay-rise { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.pay-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.pay-head .h3 { margin: 0; }
.pay-close { flex: none; width: 2.4rem; height: 2.4rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--muted); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.pay-close:hover { color: var(--text); }
.pay-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; padding: 0; margin: 1rem 0 1.2rem; counter-reset: none; }
.pay-steps li { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--muted); padding: .5rem .6rem; border-radius: 10px; background: #f1f5f9; }
.pay-steps li span { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: #cbd5e1; color: #fff; font-weight: 700; font-size: .8rem; flex: none; }
.pay-steps li.is-active { color: #92400e; background: #fff7e6; }
.pay-steps li.is-active span { background: var(--warning); }
.pay-steps li.is-done { color: #14532d; background: #ecfdf3; }
.pay-steps li.is-done span { background: var(--success); }
.pay-progress-wrap { margin-top: 1rem; }
.pay-progress { height: 10px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.pay-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--success)); border-radius: inherit; transition: width .6s ease; }
.pay-status-line { margin: .7rem 0 .4rem; font-size: .95rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.pay-status-line.is-partial { padding: .7rem .9rem; border-radius: 10px; background: #fff7e6; border: 1px solid #f5c26b; color: #6b4a00; animation: pay-flash 1s ease 2; }
@keyframes pay-flash { 50% { box-shadow: 0 0 0 6px rgba(245, 165, 36, .25); } }
.pay-pulse { width: .65rem; height: .65rem; border-radius: 50%; background: var(--warning); box-shadow: 0 0 0 0 rgba(217, 142, 4, .6); animation: pay-pulse 1.6s infinite; flex: none; }
@keyframes pay-pulse { 70% { box-shadow: 0 0 0 10px rgba(217, 142, 4, 0); } 100% { box-shadow: 0 0 0 0 rgba(217, 142, 4, 0); } }
.pay-deposits { list-style: none; padding: 0; margin: .3rem 0 0; display: grid; gap: .35rem; font-size: .85rem; }
.pay-deposits:empty { display: none; }
.pay-deposits li { padding: .45rem .7rem; border-radius: 8px; background: #f8fafc; border: 1px solid var(--border); }
.pay-actions { margin-top: .4rem; }
.pay-success { text-align: center; padding: 1.5rem .5rem .5rem; }
.pay-success h3 { font-family: var(--heading-font); font-size: 1.5rem; margin: .6rem 0 .3rem; }
.pay-success-icon svg { width: 84px; height: 84px; fill: none; stroke: var(--success); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pay-success-icon circle { stroke-dasharray: 160; stroke-dashoffset: 160; animation: pay-draw .6s ease forwards; }
.pay-success-icon path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: pay-draw .4s .5s ease forwards; }
@keyframes pay-draw { to { stroke-dashoffset: 0; } }
.pay-reopen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; padding: .8rem 1rem; margin-bottom: 1.2rem; border-radius: 12px; background: #fff7e6; border: 1px solid #f5c26b; }
.pay-reopen[hidden] { display: none; }
@media (max-width: 600px) {
  .pay-modal.is-modal { padding: 0; align-items: end; }
  .pay-modal.is-modal .pay-card { max-height: 94vh; border-radius: 18px 18px 0 0; margin: 0; }
  .pay-steps { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .pay-modal.is-modal, .pay-modal.is-modal .pay-card, .pay-status-line.is-partial, .pay-pulse, .pay-success-icon * { animation: none !important; } .pay-success-icon * { stroke-dashoffset: 0; } }
.pay-deposits li.is-incoming { background: #fff7e6; border-color: #f5c26b; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
/* Point transfers: confirmation box and the Staff ID */
.xfer-confirm { padding: 1rem 1.1rem; border-radius: 12px; background: #f1f6fd; border: 1px solid #dbe6f5; }
.xfer-confirm p { margin: .3rem 0; }
.xfer-who { font-size: 1.15rem; display: flex; gap: .6rem; align-items: baseline; flex-wrap: wrap; }
input.staff-code { font-size: 1.15rem; font-weight: 700; letter-spacing: .08em; }

/* "How to use" page (admin/help.php): collapsible guide sections */
.help > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.help > summary::-webkit-details-marker { display: none; }
.help > summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--muted); }
.help[open] > summary::after { content: "\2212"; }
.help > summary .h3 { margin: 0; display: flex; align-items: center; gap: .5rem; }
.help-body { margin-top: 1rem; line-height: 1.6; }
.help-body ul, .help-body ol { padding-left: 1.3rem; margin: 0 0 .8rem; }
.help-body li + li { margin-top: .35rem; }

/* Google Translate picker (Settings -> Google Translate): Google's plain <select> */
.gt-box { display: inline-flex; align-items: center; font-size: .8rem; line-height: 1.2; }
.gt-box .goog-te-gadget { font-size: 0; color: transparent; } /* hides the "Powered by" text next to the menu */
.gt-box .goog-te-gadget > span { display: none; }
.gt-box .goog-te-combo { font-size: .85rem; margin: 0; padding: .3rem .6rem; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: #0f172a; max-width: 11rem; }
.admin-topbar .gt-box { margin-left: auto; }
