/* ============================================================
   GsmUser.wiki storefront — Blogger theme stylesheet
   Design tokens extracted from https://www.leope-gsm.com/
   ============================================================ */
:root {
  --font-main: 'Inter', 'Google Sans', 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans Khmer', 'Noto Sans Thai', sans-serif;
  --bg-primary: #f5f6f8;
  --bg-secondary: #f5f6f8;
  --bg-card: #f1f2f5;
  --bg-hover: #eaecf0;
  --bg-nav: #ffffff;
  --border: #e2e4e9;
  --border-strong: #ccd0d8;
  --header-height: 64px;
  --primary: #11831e;
  --primary-dark: #0f731a;
  --primary-darker: #0d6617;
  --primary-rgb: 17, 131, 30;
  --on-primary: #ffffff;
  --accent-green: #16a34a;
  --text-primary: #16181d;
  --text-secondary: #5b6270;
  --text-tertiary: #8990a0;
  --overlay: rgba(20, 22, 27, .35);
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow-md: 0 4px 16px rgba(16, 24, 40, .08);
  --shadow-lg: 0 16px 40px rgba(16, 24, 40, .12);
  --accent-red: #dc2626;
  --accent-orange: #d97706;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 8px;
  --radius-btn: 6px;
  /* wordmark palette sampled from the skool.com logo */
  --brand-1: #263397;
  --brand-2: #d3513e;
  --brand-3: #e0b467;
  --brand-4: #6bb7ee;
  --brand-5: #c45946;
}
html[data-theme="dark"] {
  --bg-primary: #0b0d12;
  --bg-secondary: #12151d;
  --bg-card: #191d27;
  --bg-hover: #20242f;
  --bg-nav: #1a1f2b;
  --border: #262b36;
  --border-strong: #333947;
  --text-primary: #e8eaed;
  --text-secondary: #9aa1ae;
  --text-tertiary: #6b7280;
  --accent-green: #22c55e;
  --overlay: rgba(6, 8, 13, .65);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .28);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, .32);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, .4);
  --accent-red: #ef4444;
  --accent-orange: #f59e0b;
  --brand-1: #8da2ff;
  --brand-2: #ff8a6e;
  --brand-3: #f0c578;
  --brand-4: #79c4ff;
  --brand-5: #ff9f86;
}
html[data-theme="black"] {
  --bg-primary: #000;
  --bg-secondary: #0a0a0a;
  --bg-card: #121212;
  --bg-hover: #1c1c1c;
  --bg-nav: #1c1c1c;
  --border: #262626;
  --border-strong: #333;
  --text-primary: #e8eaed;
  --text-secondary: #9aa1ae;
  --text-tertiary: #6b7280;
  --accent-green: #22c55e;
  --brand-1: #8da2ff;
  --brand-2: #ff8a6e;
  --brand-3: #f0c578;
  --brand-4: #79c4ff;
  --brand-5: #ff9f86;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  transition: background-color .2s ease, color .2s ease;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
[hidden] { display: none !important; }
.blog-posts-hidden { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 999;
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
}
.header-content {
  max-width: 1520px; margin: 0 auto; padding: 0 24px;
  height: var(--header-height);
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: nowrap;
}
.logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; letter-spacing: .2px; min-width: 0; }
.brand-name {
  font-family: 'Fredoka', var(--font-main); font-weight: 700; font-size: 32px; line-height: 1;
  letter-spacing: -.02em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.brand-name span:nth-child(1), .brand-name span:nth-child(6), .brand-name span:nth-child(11) { color: var(--brand-1); }
.brand-name span:nth-child(2), .brand-name span:nth-child(7), .brand-name span:nth-child(12) { color: var(--brand-2); }
.brand-name span:nth-child(3), .brand-name span:nth-child(8) { color: var(--brand-3); }
.brand-name span:nth-child(4), .brand-name span:nth-child(9) { color: var(--brand-4); }
.brand-name span:nth-child(5), .brand-name span:nth-child(10) { color: var(--brand-5); }
.lm-word {
  font-family: 'Fredoka', var(--font-main); font-weight: 700; font-size: 1.35em; line-height: 1.1;
  letter-spacing: -.01em; white-space: nowrap; display: inline-block; vertical-align: baseline;
  padding: .04em .3em; margin-inline-end: .08em; border-radius: .35em;
  background: linear-gradient(90deg, rgba(38,51,151,.10), rgba(211,81,62,.10) 25%, rgba(224,180,103,.18) 50%, rgba(107,183,238,.14) 75%, rgba(196,89,70,.10));
}
html[data-theme="dark"] .lm-word, html[data-theme="black"] .lm-word {
  background: linear-gradient(90deg, rgba(141,162,255,.16), rgba(255,138,110,.16) 25%, rgba(240,197,120,.18) 50%, rgba(121,196,255,.16) 75%, rgba(255,159,134,.16));
}
.lm-word span:nth-child(1), .lm-word span:nth-child(6), .lm-word span:nth-child(11) { color: var(--brand-1); }
.lm-word span:nth-child(2), .lm-word span:nth-child(7), .lm-word span:nth-child(12) { color: var(--brand-2); }
.lm-word span:nth-child(3), .lm-word span:nth-child(8) { color: var(--brand-3); }
.lm-word span:nth-child(4), .lm-word span:nth-child(9) { color: var(--brand-4); }
.lm-word span:nth-child(5), .lm-word span:nth-child(10) { color: var(--brand-5); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-divider { width: 1px; height: 24px; background: var(--border); flex-shrink: 0; }
.theme-toggle {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  border: 1px solid transparent; background: transparent; color: var(--text-secondary);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; cursor: pointer; transition: background-color .15s, color .15s;
}
.theme-toggle:hover { background: var(--bg-card); color: var(--text-primary); }
.vl-btn { width: auto; padding: 0 10px; gap: 6px; border-color: var(--border); font-size: 13px; font-weight: 600; }
.vl-code { font-size: 12px; letter-spacing: .03em; }
.lang-flag { font-size: 17px; line-height: 1; }
.hbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 16px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 13.5px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap; font-family: inherit;
}
.hbtn-primary { background: var(--primary); color: var(--on-primary); }
.hbtn-primary:hover { background: var(--primary-dark); }
.hbtn-outline { border-color: var(--border); color: var(--text-primary); background: transparent; }
.hbtn-outline:hover { background: var(--bg-card); border-color: var(--border-strong); }
.hbtn[disabled] { opacity: .6; cursor: default; }

/* header search */
.hs { position: relative; display: flex; align-items: center; }
.hs-panel { position: absolute; top: calc((var(--header-height) - 38px) / 2); right: 0; z-index: 30; width: min(420px, 44vw); }
.hs-panel[hidden] { display: none; }
.hs-box {
  position: relative; display: flex; align-items: center; height: 38px; width: 100%; box-sizing: border-box;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md);
}
.hs-box:focus-within { border-color: var(--primary); }
.hs-icon { position: absolute; left: 14px; color: var(--text-tertiary); font-size: 14px; pointer-events: none; }
.hs-input {
  flex: 1; min-width: 0; height: 100%; border: 0; background: transparent;
  padding: 0 8px 0 36px; font: inherit; font-size: 13.5px; color: var(--text-primary); outline: none;
}
.hs-input::placeholder { color: var(--text-tertiary); }
.hs-input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.hs-close {
  width: 24px; height: 24px; margin: 0 7px 0 6px; padding: 0; flex-shrink: 0;
  border: 0; background: none; border-radius: 4px; color: var(--text-tertiary);
  font-size: 12px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.hs-close:hover { background: var(--bg-hover); color: var(--text-primary); }
.mobile-search { display: none; position: relative; max-width: 1520px; margin: 0 auto; padding: 0 16px 12px; }
.mobile-search input {
  width: 100%; height: 38px; border-radius: var(--radius-md);
  border: 1px solid var(--border); background: var(--bg-card); color: var(--text-primary);
  padding: 0 12px 0 36px; font: inherit; font-size: 13.5px; outline: none;
}
.mobile-search input:focus { border-color: var(--primary); }
.mobile-search i { position: absolute; left: 29px; top: calc(50% - 6px); color: var(--text-tertiary); font-size: 14px; }

/* ---------- layout ---------- */
.wrap { max-width: 1520px; margin: 0 auto; padding: 24px; width: 100%; flex: 1; display: flex; flex-direction: column; }

/* ---------- hero slider ---------- */
.hero-slider {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--border); aspect-ratio: 8 / 3;
}
.hero-slider .slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.18);
  transition: opacity .8s ease, transform .8s ease;
}
.hero-slider .slide.active { opacity: 1; animation: hero-zoom 12s linear both; }
@keyframes hero-zoom {
  from { transform: scale(1.18); }
  to { transform: scale(1); }
}

/* ---------- catalog ---------- */
.catalog {
  margin-top: 20px; scroll-margin-top: 80px;
}
.catalog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.catalog-head h2 { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.catalog-head h2 i { color: var(--primary); }
.po-toolbar-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.po-style-toggle {
  display: inline-flex; flex-shrink: 0; align-items: center; gap: 4px; padding: 2px; height: 38px; box-sizing: border-box;
  background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-md);
}
.po-style-btn {
  width: 30px; height: 100%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-sizing: border-box;
  border: none; background: transparent; border-radius: var(--radius-sm); cursor: pointer; color: var(--text-secondary);
  font-size: 13px; transition: background .15s ease, color .15s ease;
}
.po-style-btn:hover { background: var(--bg-card); color: var(--text-primary); }
.po-style-btn.active { background: var(--primary); color: var(--on-primary); }
.po-group-filter-wrap { position: relative; flex: 3 1 200px; min-width: 200px; }
.po-group-filter {
  width: 100%; box-sizing: border-box; padding: 10px 34px 10px 14px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--text-primary);
  font-size: 13.5px; font-family: inherit; cursor: pointer; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.po-group-filter:focus { outline: none; border-color: var(--primary); }
.po-search-wrap { position: relative; flex: 1 1 160px; min-width: 160px; }
.po-search-wrap > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-tertiary); font-size: 14px; pointer-events: none; }
.po-search-wrap input {
  width: 100%; height: 38px; box-sizing: border-box; padding: 0 32px 0 36px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--text-primary);
  font: inherit; font-size: 13.5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.po-search-wrap input:focus { outline: none; border-color: var(--primary); }
.po-search-clear-btn {
  position: absolute; right: 7px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; padding: 0;
  background: transparent; border: none; color: var(--text-tertiary); cursor: pointer; display: flex;
  align-items: center; justify-content: center; font-size: 12px; line-height: 1; border-radius: 4px;
}
.po-search-clear-btn[hidden] { display: none; }
.po-search-clear-btn i { position: static; transform: none; font-size: 12px; }
.po-search-clear-btn:hover { color: var(--text-primary); background: var(--bg-hover); }
.po-count {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-secondary); white-space: nowrap;
}
.po-count i { color: var(--accent-green); }
.tabs {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px; height: 38px;
  background: var(--bg-primary); border: 1px solid var(--border); border-radius: var(--radius-md);
}
.tabs button {
  height: 100%; padding: 0 14px; border: none; background: transparent; border-radius: var(--radius-sm);
  cursor: pointer; color: var(--text-secondary); font: inherit; font-size: 13px; font-weight: 600; white-space: nowrap;
}
.tabs button:hover { background: var(--bg-card); color: var(--text-primary); }
.tabs button.active { background: var(--primary); color: var(--on-primary); }
.chips {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; border: 1px solid var(--border); background: var(--bg-card); color: var(--text-secondary);
  border-radius: var(--radius-sm); padding: 6px 12px; font-size: 13px; font-weight: 500;
  cursor: pointer; white-space: nowrap; font-family: inherit;
}
.chip:hover { color: var(--text-primary); border-color: var(--border-strong); }
.chip.active { color: var(--primary); border-color: var(--primary); font-weight: 600; background: transparent; }
.chip span { color: var(--text-tertiary); font-weight: 500; margin-left: 2px; }
.chip-svc { display: inline-flex; align-items: center; gap: 8px; max-width: min(420px, 72vw); }
.chip .chip-tag {
  flex-shrink: 0; margin-left: 0; padding: 2px 7px; border-radius: 999px;
  font-size: 9.5px; font-weight: 800; letter-spacing: .04em; line-height: 1.6;
}
.chip .chip-tag.is-new { background: rgba(220, 38, 38, .14); color: #b91c1c; }
.chip .chip-tag.is-updated { background: rgba(22, 163, 74, .14); color: #15803d; }
.chip .chip-name { margin-left: 0; color: inherit; font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
html[data-theme="dark"] .chip .chip-tag.is-new,
html[data-theme="black"] .chip .chip-tag.is-new { color: #fca5a5; }
html[data-theme="dark"] .chip .chip-tag.is-updated,
html[data-theme="black"] .chip .chip-tag.is-updated { color: #4ade80; }
.results { display: block; margin-top: 16px; }
.po-group-section {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px; margin-bottom: 16px;
  content-visibility: auto; contain-intrinsic-size: auto 420px;
}
.po-group-title { font-size: 16px; font-weight: 700; color: var(--text-primary); margin: 0 0 16px; word-break: break-word; }
.po-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, max(330px, calc((100% - 28px) / 3))), 1fr)); gap: 14px; }
.po-card {
  display: block; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 14px; cursor: pointer;
  color: inherit; text-decoration: none; container-type: inline-size;
  position: relative;
}
.rs-badge {
  display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; line-height: 1.5; letter-spacing: .02em;
  color: #fff; background: #f59e0b; box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
}
.rs-badge.is-new { background: #22c55e; }
.rs-badge-top { position: absolute; top: 8px; left: 8px; z-index: 2; pointer-events: none; }
.po-card:hover { border-color: var(--border-strong); }
.po-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.po-card-identity { display: flex; align-items: center; gap: 12px; flex: 1 1 auto; min-width: 0; }
.po-card-logo {
  position: relative; width: 72px; height: 72px; flex-shrink: 0; border-radius: var(--radius-sm);
  overflow: hidden; background: var(--bg-secondary); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.po-card-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.po-card-logo img.is-fill { object-fit: cover; }
.po-card-logo .lm-logo {
  font-size: 12px; padding: 0; margin: 0; border-radius: 0;
  color: transparent; -webkit-text-fill-color: transparent;
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2) 25%, var(--brand-3) 50%, var(--brand-4) 75%, var(--brand-5));
  -webkit-background-clip: text; background-clip: text;
}
.po-card-name { font-size: 14px; font-weight: 400; color: var(--text-primary); line-height: 1.4; word-break: break-word; min-width: 0; }
.po-card-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.po-card-price {
  background: rgba(34, 197, 94, .12); color: var(--accent-green); font-weight: 700; font-size: 13px;
  padding: 3px 9px; border-radius: var(--radius-md); white-space: nowrap;
}
.po-card-delivery { display: inline-flex; align-items: center; gap: 4px; color: var(--accent-orange); font-size: 12px; white-space: nowrap; font-weight: 600; }
.card-order { height: 32px; padding: 0 12px; font-size: 12.5px; font-weight: 400; margin-top: 2px; border-radius: var(--radius-btn); }
.card-usd { font-weight: 500; opacity: .75; }
#results.list-view .po-cards { grid-template-columns: 1fr; gap: 10px; }
#results.list-view .po-card { padding: 10px 14px; }
#results.list-view .po-card-logo { width: 44px; height: 44px; }
#results.list-view .po-card-logo .lm-logo { font-size: 8.5px; padding: .02em .1em; }
#results.list-view .po-card-name { font-size: 13.5px; }
#results.list-view .po-card-top { flex-wrap: wrap; }
#results.list-view .po-card-meta { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; margin-left: auto; }
#results.list-view .card-order { margin-top: 0; }
@media (max-width: 820px) {
  .po-card-top { flex-direction: column; gap: 10px; }
  .po-card-identity { width: 100%; }
  .po-card-meta { flex-direction: row; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 8px 10px; width: 100%; }
  .card-order { margin-left: auto; margin-top: 0; }
}
@media (max-width: 560px) {
  .po-cards { gap: 10px; }
  .po-card { padding: 12px; }
  .po-card-logo { width: 56px; height: 56px; }
  .po-card-logo .lm-logo { font-size: 9.5px; }
  .po-card-identity { gap: 10px; }
  .po-card-name { font-size: 13.5px; line-height: 1.35; }
  .card-order { height: 30px; padding: 0 10px; font-size: 12px; }
  .po-group-section { padding: 12px; margin-bottom: 12px; }
}
@media (max-width: 640px) {
  .po-group-filter-wrap { order: 3; flex: 1 1 100%; }
  .po-search-wrap { order: 4; flex: 1 1 100%; }
  .po-count { order: 2; }
}
.empty { display: none; text-align: center; color: var(--text-secondary); padding: 40px 0; }
.more {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 12px 16px; margin-top: 18px; padding: 12px 16px;
  border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-nav);
}
.more-count { font-size: 13px; font-weight: 500; color: var(--text-secondary); }
.more-btn { min-width: 150px; }
.more-end { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-tertiary); }
.more-end i { color: var(--accent-green); }
.more [hidden] { display: none !important; }
@media (max-width: 560px) {
  .more { flex-direction: column; align-items: stretch; text-align: center; }
  .more-btn { width: 100%; }
  .more-end { justify-content: center; }
}

/* ---------- CTA + footer ---------- */
.cta-band {
  margin-top: 20px; background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.cta-band h2 { font-size: 16px; font-weight: 600; }
.cta-band p { color: var(--text-secondary); font-size: 14px; margin: 2px 0 0; }
footer { border-top: 1px solid var(--border); margin-top: 32px; background: var(--bg-nav); }
footer .wrap { padding-top: 0; padding-bottom: 0; }
.foot-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding: 28px 0 22px; }
.foot-name { font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.foot-name.brand-name { font-family: 'Fredoka', var(--font-main); font-weight: 700; font-size: 22px; line-height: 1.2; letter-spacing: -.02em; margin-bottom: 8px; }
.foot-about p { color: var(--text-secondary); font-size: 13px; max-width: 460px; margin: 0; }
.foot-col { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.foot-head { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-tertiary); margin-bottom: 2px; }
.foot-col a { color: var(--text-secondary); }
.foot-col a:hover { color: var(--primary); }
.foot-regions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 0 0 16px; font-size: 12.5px; color: var(--text-tertiary); }
.foot-regions span { font-weight: 600; }
.foot-regions a { color: var(--text-secondary); }
.foot-regions a:hover { color: var(--primary); }
.foot-legal { margin: 0 0 14px; max-width: 760px; font-size: 12px; line-height: 1.6; color: var(--text-tertiary); }
.foot-bar { border-top: 1px solid var(--border); padding: 14px 0 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-tertiary); }
.foot-social { display: flex; gap: 14px; }
.foot-social a { color: var(--text-tertiary); font-size: 16px; }
.foot-social a:hover { color: var(--soc, var(--primary)); }

/* ---------- order preview modal ---------- */
body.modal-open { overflow: hidden; }
.order-layer {
  position: fixed; inset: 0; z-index: 1100; display: flex;
  align-items: center; justify-content: center; padding: 24px;
}
.order-layer[hidden] { display: none; }
.order-layer-backdrop {
  position: absolute; inset: 0; background: rgba(15, 23, 42, .42);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
}
.order-modal {
  position: relative; display: flex; flex-direction: column; width: min(1120px, 100%);
  max-height: 100%; overflow: hidden; background: var(--bg-nav); border: 1px solid var(--border);
  border-radius: 16px; box-shadow: 0 24px 64px rgba(16, 24, 40, .28);
}
.order-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 28px 12px; }
.order-modal-title { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.4; color: var(--text-primary); word-break: break-word; }
.order-modal-close {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border);
  background: transparent; color: var(--text-secondary); display: inline-flex; align-items: center;
  justify-content: center; font-size: 14px; cursor: pointer;
}
.order-modal-close:hover { background: var(--bg-hover); color: var(--text-primary); }
.order-modal-body {
  display: grid; grid-template-columns: minmax(0, .62fr) minmax(0, 1fr);
  overflow-y: auto; padding: 8px 28px 28px;
}
.order-modal-main { min-width: 0; padding-right: 28px; border-right: 1px solid var(--border); }
.order-modal-desc { min-width: 0; padding-left: 28px; display: flex; flex-direction: column; justify-content: center; }
#serviceIconDisplay { display: flex; justify-content: center; padding: 14px 0 2px; }
#serviceIconDisplay .po-card-logo { width: clamp(96px, 34%, 160px); height: auto; aspect-ratio: 1 / 1; margin: 0 auto; border-radius: var(--radius-md); }
#serviceIconDisplay .po-card-logo .lm-logo { font-size: 18px; padding: .03em .2em; }
.service-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 12.5px; color: var(--text-secondary); }
.service-meta-item { display: inline-flex; align-items: center; gap: 5px; }
.service-meta-item:not(:first-child) { padding-left: 10px; border-left: 1px solid var(--border); }
.service-meta-item i { font-size: 12px; color: var(--primary); }
.service-meta-value { font-weight: 700; color: var(--text-primary); }
.order-meta { margin: 16px 0 18px; gap: 8px 22px; font-size: 13.5px; color: var(--text-primary); }
.order-meta .service-meta-item { padding-left: 0; border-left: 0; gap: 6px; }
.order-meta .service-meta-item i { font-size: 13px; }
.order-meta .service-meta-value { font-size: 14px; }
.order-meta #priceValue { color: var(--accent-green); }
.order-meta #deliveryValue, .order-meta #deliveryBadge i { color: var(--accent-orange); }
.order-desc { width: 100%; color: var(--text-secondary); font-size: 14px; line-height: 1.7; }
.order-desc.is-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; }
.order-desc .desc-empty-icon { font-size: 58px; line-height: 1; color: var(--primary); }
.order-desc .desc-empty-text { max-width: 420px; font-size: 15px; color: var(--text-secondary); }
.detail-desc { color: var(--text-secondary); font-size: 13.5px; line-height: 1.7; }
.detail-desc p { margin: 0 0 10px; }
.detail-desc p:last-child { margin-bottom: 0; }
.detail-desc ul, .detail-desc ol { margin: 0 0 10px; padding-left: 20px; }
.detail-desc a { color: var(--primary); text-decoration: underline; }
.detail-desc code { background: var(--bg-card); border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; font-size: 12px; }
.detail-desc img { max-width: 100%; height: auto; border-radius: 6px; }
.detail-desc table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.detail-desc td, .detail-desc th { border: 1px solid var(--border); padding: 6px 8px; text-align: left; }
.rt-box { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 380px; text-align: left; }
.rt-head { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-tertiary); }
.rt-head i { font-size: 15px; color: var(--primary); }
.rt-row { display: grid; grid-template-columns: 52px 1fr; align-items: baseline; row-gap: 6px; }
.rt-pct { font-size: 15px; font-weight: 700; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.rt-label { font-size: 13.5px; color: var(--text-secondary); line-height: 1.4; }
.rt-bar { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: var(--border); overflow: hidden; }
.rt-bar > span { display: block; height: 100%; border-radius: 2px; background: var(--primary); }
.rt-note { font-size: 12px; color: var(--text-tertiary); }
.rt-foot { margin-top: auto; padding-top: 20px; }
.rt-foot-line { padding-top: 16px; border-top: 1px solid var(--border); }
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 500; color: var(--text-secondary); margin-bottom: 7px; }
.form-label .req { color: var(--accent-red); margin-left: 2px; }
.form-input, .form-select, .form-textarea {
  width: 100%; border: 1px solid var(--border); background: var(--bg-card); color: var(--text-primary);
  border-radius: var(--radius-sm); padding: 11px 14px; font: inherit; font-size: 14px; outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .12); }
.form-textarea { min-height: 100px; resize: vertical; }
.order-modal .form-group { margin-bottom: 16px; }
.order-modal .form-label { font-size: 14px; margin-bottom: 8px; }
.order-modal .form-input, .order-modal .form-textarea { padding: 15px 16px; font-size: 15px; background: var(--bg-secondary); }
.bulk-total-bar { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; background: rgba(var(--primary-rgb), .06); border: 1px dashed rgba(var(--primary-rgb), .35); border-radius: var(--radius-sm); padding: 10px 14px; }
.bulk-total-calc { color: var(--text-secondary); font-size: 13px; }
.bulk-total-amount { color: var(--accent-green); font-weight: 700; font-size: 15px; }
.order-modal .bulk-total-bar { margin-top: 14px; padding: 15px 16px; }
.order-modal .bulk-total-calc { font-size: 14px; }
.order-modal .bulk-total-amount { font-size: 17px; }
.form-hint { font-size: 11.5px; color: var(--text-tertiary); margin-top: 4px; }
.ff-row { display: flex; gap: 8px; flex-wrap: wrap; }
.ff-row > .form-input { flex: 1 1 120px; width: auto; }
.ff-radios { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.ff-radio { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--text-secondary); cursor: pointer; }
.ff-radio input { accent-color: var(--primary); width: 16px; height: 16px; margin: 0; }
.order-submit {
  width: 100%; height: 50px; margin-top: 8px; border: 0; border-radius: var(--radius-sm);
  background: var(--primary); color: var(--on-primary); font: inherit; font-size: 15px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
}
.order-submit:hover { background: var(--primary-dark); }
.form-alert { background: rgba(220, 38, 38, .1); border: 1px solid rgba(220, 38, 38, .3); color: var(--accent-red); border-radius: var(--radius-sm); padding: 8px 10px; font-size: 12.5px; margin-bottom: 12px; }

/* ---------- language / currency dialog ---------- */
.vl-overlay { position: fixed; inset: 0; z-index: 1000; background: transparent; }
.vl-panel {
  position: fixed; z-index: 1001; top: calc(var(--header-height) + 8px);
  right: max(16px, calc((100vw - 1520px) / 2 + 24px));
  width: min(460px, calc(100vw - 32px)); max-height: min(580px, calc(100vh - var(--header-height) - 24px));
  display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: 0 16px 40px rgba(0, 0, 0, .22);
}
.vl-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 10px 10px 16px; border-bottom: 1px solid var(--border); font-weight: 600; font-size: 14px; flex-shrink: 0; }
.vl-close { width: 30px; height: 30px; border: 0; background: none; color: var(--text-tertiary); border-radius: 6px; cursor: pointer; }
.vl-close:hover { background: var(--bg-hover); color: var(--text-primary); }
.vl-panel-body { overflow-y: auto; overscroll-behavior: contain; padding: 4px 10px 12px; }
.vl-sec-title { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-tertiary); padding: 12px 6px 6px; }
.vl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.vl-item {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid transparent;
  background: transparent; border-radius: var(--radius-sm); font: inherit; font-size: 13px;
  color: var(--text-primary); cursor: pointer; text-align: left;
}
.vl-item:hover { background: var(--bg-hover); }
.vl-item.is-on { border-color: var(--primary); color: var(--primary); font-weight: 600; }
.vl-item > span:not(.lang-flag):not(.vl-sub) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vl-sub { margin-left: auto; font-size: 11px; color: var(--text-tertiary); }

/* ---------- cookie bar + toast ---------- */
.ck-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1002;
  max-width: 720px; margin: 0 auto; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 14px 16px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-secondary);
}
.ck-bar p { margin: 0; flex: 1 1 320px; }
.ck-actions { display: flex; gap: 8px; }
.ck-bar.is-leaving { opacity: 0; transition: opacity .2s ease; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(12px);
  background: var(--bg-card); border: 1px solid var(--border); color: var(--text-primary);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg); padding: 10px 16px;
  font-size: 13px; z-index: 1003; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- confetti ---------- */
.confetti-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 2000; pointer-events: none; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .order-modal-body { grid-template-columns: 1fr; }
  .order-modal-main { padding-right: 0; padding-bottom: 20px; border-right: 0; border-bottom: 1px solid var(--border); }
  .order-modal-desc { padding-left: 0; padding-top: 20px; justify-content: flex-start; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  :root { --header-height: 56px; }
  .hs { display: none; }
  .mobile-search { display: block; }
  .wrap { padding: 16px; }
  .header-content { padding: 0 16px; gap: 8px; }
  .brand-name { font-size: 29px; }
  .header-actions { gap: 4px; }
  .header-actions .hbtn { padding: 0 12px; margin-left: 4px; }
  .header-actions .hbtn i { display: none; }
  .header-divider { display: none; }
  .vl-panel { top: auto; bottom: 0; left: 0; right: 0; width: 100%; max-height: 82vh; border-radius: 16px 16px 0 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom); }
  .vl-overlay { background: rgba(0, 0, 0, .45); }
  .foot-cols { grid-template-columns: 1fr; gap: 20px; }
  .order-layer { padding: 0; }
  .order-modal { width: 100%; height: 100%; max-height: 100%; border: 0; border-radius: 0; }
  .order-modal-head { padding: 16px 18px 8px; }
  .order-modal-body { padding: 4px 18px 24px; }
  .mobile-search input { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slider .slide, .hero-slider .slide.active { transition: none; animation: none; transform: none; }
}

/* ---------- Laravel account additions ---------- */
.account-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 36px;
  padding: 0 4px 0 10px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-primary);
  font-size: 13.5px; font-weight: 600; min-width: 0;
}
.account-chip > i { color: var(--primary); font-size: 15px; }
.account-link { display: inline-flex; align-items: center; gap: 6px; min-width: 0; color: inherit; font-weight: 600; }
.account-link > i { color: var(--primary); font-size: 15px; }
.account-link:hover { color: var(--primary); }
.account-admin { width: 30px; height: 30px; }
.account-chip form { margin: 0; display: flex; }
.account-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-logout { width: 30px; height: 30px; }
.foot-user { color: var(--text-secondary); }
.foot-col form { margin: 0; display: flex; }
.foot-link-btn {
  padding: 0; border: 0; background: none; color: var(--text-secondary);
  font: inherit; font-size: 13px; cursor: pointer; text-align: left;
}
.foot-link-btn:hover { color: var(--primary); }
@media (max-width: 560px) {
  .account-name { display: none; }
}
