/* ============================================
   LaoServ Design System v2 — Dark ASEAN Luxury
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+Lao:wght@400;600;700&family=Noto+Sans+Lao:wght@300;400;500;600;700&display=swap');

:root {
  /* Core Palette */
  --gold:        #f4a535;
  --gold-light:  #fbbf5a;
  --gold-dim:    rgba(244,165,53,0.15);
  --gold-glow:   rgba(244,165,53,0.25);
  --bg:          #0a0a0f;
  --bg-2:        #111118;
  --bg-3:        #18181f;
  --bg-card:     rgba(255,255,255,0.04);
  --bg-card-hov: rgba(255,255,255,0.07);
  --border:      rgba(255,255,255,0.08);
  --border-gold: rgba(244,165,53,0.3);
  --text:        #f0ede8;
  --text-2:      #a09b94;
  --text-3:      #605c58;
  --success:     #22c55e;
  --danger:      #ef4444;
  --info:        #3b82f6;

  /* Spacing */
  --r-sm:  6px;
  --r-md:  12px;
  --r-lg:  18px;
  --r-xl:  24px;
  --r-2xl: 32px;

  /* Shadows */
  --shadow-gold: 0 0 20px rgba(244,165,53,0.2);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.6);

  /* Fonts */
  --font-display: 'Noto Serif Lao', Georgia, serif;
  --font-body:    'Noto Sans Lao', system-ui, sans-serif;

  /* PWA / mobile chrome */
  --bottom-nav-h: 56px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (max-width: 767px) {
  input,
  select,
  textarea {
    min-height: 48px;
    font-size: 16px;
  }
  .search-bar input {
    min-height: 44px;
  }
  .lang-btn {
    min-height: 44px;
    padding: 10px 14px;
  }
  .nav-toggle-btn {
    min-width: 44px;
    min-height: 44px;
  }
}

img { max-width: 100%; height: auto; }
a { color: inherit; }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 3px; }

/* ---- LAYOUT ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) {
  .container { padding: 0 20px; }
}
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }

/* ---- TYPOGRAPHY ---- */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600; }
h3 { font-size: 1.1rem; font-weight: 600; }
p  { line-height: 1.7; color: var(--text-2); }

.gold-text { color: var(--gold); }
.not-italic { font-style: normal; }
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
.section-label::before { content: ''; width: 20px; height: 1px; background: var(--gold); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--r-md);
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all .2s; border: none; text-decoration: none;
  white-space: nowrap;
}
.btn-gold {
  background: var(--gold); color: #0a0a0f;
  box-shadow: 0 0 0 0 var(--gold-glow);
}
.btn-gold:hover {
  background: var(--gold-light);
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--border-gold);
  color: var(--gold);
}
.btn-outline:hover { background: var(--gold-dim); }
.btn-ghost {
  background: var(--bg-card); color: var(--text-2);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-card-hov); color: var(--text); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }

/* ---- CARDS ---- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all .25s;
  backdrop-filter: blur(8px);
}
.card:hover {
  background: var(--bg-card-hov);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
  transform: translateY(-3px);
}
.card-gold {
  border-color: var(--border-gold);
  box-shadow: 0 0 0 1px var(--gold-dim);
}

/* ---- BADGES ---- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700; letter-spacing: .02em;
}
.badge-gold    { background: var(--gold-dim); color: var(--gold); border: 1px solid var(--border-gold); }
.badge-green   { background: rgba(34,197,94,.12); color: #4ade80; }
.badge-blue    { background: rgba(59,130,246,.12); color: #60a5fa; }
.badge-gray    { background: var(--bg-card); color: var(--text-3); border: 1px solid var(--border); }
.badge-verified { background: rgba(34,197,94,.12); color: #4ade80; }
.badge-featured { background: var(--gold-dim); color: var(--gold); }

/* ---- STARS ---- */
.stars { color: var(--gold); font-size: 13px; letter-spacing: 1px; }
.stars-count { font-size: 12px; color: var(--text-3); }

/* ---- DIVIDER ---- */
.divider { height: 1px; background: var(--border); margin: 32px 0; }
.divider-gold { background: linear-gradient(90deg, transparent, var(--border-gold), transparent); }

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 var(--gold-glow); }
  50%       { box-shadow: 0 0 0 8px transparent; }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}
.animate-in { animation: fadeUp .5s ease both; }
.animate-in-2 { animation: fadeUp .5s .1s ease both; }
.animate-in-3 { animation: fadeUp .5s .2s ease both; }

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- SKELETON ---- */
.skeleton {
  background: linear-gradient(90deg, var(--bg-3) 25%, var(--bg-card-hov) 50%, var(--bg-3) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--r-md);
}

/* ---- FORM ELEMENTS ---- */
input, select, textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 12px 16px;
  width: 100%;
  transition: border-color .2s;
  outline: none;
}
input::placeholder { color: var(--text-3); }
input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.search-bar input:focus-visible { outline: none; }
select option { background: var(--bg-3); color: var(--text); }

/* ---- NAV ---- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: 64px;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 700;
  color: var(--gold); text-decoration: none;
  letter-spacing: -.5px;
}
.nav-logo span { color: var(--text-2); font-size: 18px; }
.nav-links { display: flex; align-items: center; gap: 8px; }

/* ---- HERO ---- */
.hero {
  min-height: 80vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(244,165,53,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 50%, rgba(244,165,53,0.04) 0%, transparent 60%),
    var(--bg);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0; opacity: .03;
  background-image:
    linear-gradient(rgba(244,165,53,1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244,165,53,1) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content { position: relative; z-index: 1; text-align: center; width: 100%; padding: 80px 0; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold-dim); border: 1px solid var(--border-gold);
  border-radius: 20px; padding: 6px 16px;
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 24px;
}
.hero-title { margin-bottom: 16px; }
.hero-sub { font-size: 16px; color: var(--text-2); margin-bottom: 40px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ---- SEARCH BAR ---- */
.search-bar {
  display: flex; gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--r-xl);
  padding: 6px;
  max-width: 640px; margin: 0 auto;
  box-shadow: var(--shadow-gold);
}
.search-bar input {
  border: none; background: transparent; border-radius: 0;
  flex: 1; padding: 10px 16px; font-size: 15px;
}
.search-bar input:focus { box-shadow: none; }
.search-btn {
  background: var(--gold); color: #0a0a0f;
  border: none; border-radius: var(--r-lg);
  padding: 10px 24px; font-weight: 700; font-size: 14px;
  cursor: pointer; transition: all .2s; white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
}
.search-btn:hover { background: var(--gold-light); }

/* ---- STATS ROW ---- */
.stats-row {
  display: flex; justify-content: center; gap: 48px;
  margin-top: 48px; flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-num { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--gold); }
.stat-label { font-size: 12px; color: var(--text-3); margin-top: 2px; }

/* ---- CATEGORY GRID ---- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}
.cat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px 12px 16px;
  text-align: center; text-decoration: none;
  transition: all .2s; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.cat-card:hover {
  border-color: var(--border-gold);
  background: var(--gold-dim);
  transform: translateY(-2px);
}
.cat-icon { font-size: 28px; line-height: 1; }
.cat-name { font-size: 12px; font-weight: 600; color: var(--text); line-height: 1.3; }
.cat-count { font-size: 11px; color: var(--text-3); }

/* ---- PROVIDER CARD ---- */
.provider-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden; text-decoration: none;
  transition: all .25s; display: block; color: var(--text);
}
.provider-card:hover {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
  transform: translateY(-4px);
}
.provider-cover {
  height: 110px; position: relative;
  background: linear-gradient(135deg, var(--bg-3), var(--bg-2));
  overflow: hidden;
}
.provider-cover-img { width: 100%; height: 100%; object-fit: cover; opacity: .6; }
.provider-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  border: 2.5px solid var(--gold);
  object-fit: cover; background: var(--bg-3);
  position: absolute; bottom: -20px; left: 16px;
}
.provider-body { padding: 28px 16px 16px; }
.provider-name { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.provider-loc { font-size: 12px; color: var(--text-3); margin-bottom: 8px; }
.provider-desc {
  font-size: 12px; color: var(--text-2); margin-bottom: 10px;
  overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.provider-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 10px; border-top: 1px solid var(--border);
}

/* ---- SECTION HEADER ---- */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 28px; flex-wrap: wrap; gap: 12px;
}
.see-all { font-size: 13px; color: var(--gold); text-decoration: none; }
.see-all:hover { color: var(--gold-light); }

/* ---- HOW IT WORKS ---- */
.steps-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px; position: relative;
}
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 20px; text-align: center;
}
.step-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gold-dim); border: 1px solid var(--border-gold);
  color: var(--gold); font-weight: 800; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.step-icon { font-size: 32px; margin-bottom: 12px; }
.step-title { font-size: 14px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.step-desc { font-size: 12px; color: var(--text-2); }

/* ---- CTA BANNER ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--border-gold);
  border-radius: var(--r-2xl);
  padding: 56px 40px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(244,165,53,0.06), transparent);
}
.cta-banner > * { position: relative; z-index: 1; }

/* ---- FOOTER ---- */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
}
.footer-brand { font-family: var(--font-display); font-size: 22px; color: var(--gold); margin-bottom: 8px; }
.footer-copy { font-size: 12px; color: var(--text-3); }

/* ---- POPULAR TAGS ---- */
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag-pill {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px; padding: 5px 14px;
  font-size: 13px; color: var(--text-2);
  text-decoration: none; transition: all .15s;
}
.tag-pill:hover { border-color: var(--border-gold); color: var(--gold); }

/* ---- LANG SWITCHER ---- */
.lang-btn {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 6px 12px;
  font-size: 12px; color: var(--text-2); cursor: pointer;
  display: flex; align-items: center; gap: 4px;
  transition: all .15s;
}
.lang-btn:hover { border-color: var(--border-gold); color: var(--gold); }

/* ---- MOBILE ---- */
@media (max-width: 640px) {
  .hero { min-height: 70vh; }
  .stats-row { gap: 24px; }
  .search-bar { flex-direction: column; border-radius: var(--r-lg); }
  .search-btn { border-radius: var(--r-md); width: 100%; justify-content: center; }
  .cta-banner { padding: 36px 20px; }
  .nav-links .btn-outline { display: none; }
}

/* ============================================
   Inner pages — same theme as home
   ============================================ */

.hidden { display: none !important; }
.inline-flex { display: inline-flex; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.page-main {
  flex: 1;
  padding: 40px 0 56px;
}
@media (min-width: 640px) {
  .page-main { padding: 48px 0 72px; }
}

.max-w-md {
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}
.max-w-3xl {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  backdrop-filter: blur(8px);
}
@media (max-width: 639px) {
  .form-card {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-card);
  }
}
.form-stack > * + * { margin-top: 1rem; }
.form-stack-lg > * + * { margin-top: 2rem; }

.text-muted { color: var(--text-2); font-size: 14px; line-height: 1.6; }
.text-page-title {
  font-family: var(--font-body);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.text-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.text-error { color: var(--danger); font-size: 12px; }
.text-success-msg { color: #86efac; font-size: 14px; font-weight: 500; }

.alert {
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 1.5rem;
}
.alert-error {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.1);
  color: #fecaca;
}
.alert-success {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.1);
  color: #bbf7d0;
}

.filter-bar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(8px);
}
@media (min-width: 640px) {
  .filter-bar {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
  }
  .filter-field-grow { flex: 1; min-width: 200px; }
  .filter-field-sm { width: auto; min-width: 140px; }
}
.filter-field-sm { width: 100%; }

.results-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
}

.grid-2 {
  display: grid;
  gap: 16px;
}
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 8px;
}

.pager-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}
.pager-meta { font-size: 14px; color: var(--text-3); }

.link-gold {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
}
.link-gold:hover { color: var(--gold-light); }

textarea.input-tall { min-height: 120px; resize: vertical; }
textarea.input-med { min-height: 88px; resize: vertical; }

/* App navbar (inner pages) */
.nav-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.nav-inner--app {
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: auto;
  min-height: 64px;
  padding-top: 0;
  padding-bottom: 0;
}
.nav-panel {
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  flex-basis: 100%;
  padding: 16px 0 8px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.nav-panel.nav-panel-open {
  display: flex;
}
.nav-panel .btn {
  width: 100%;
  justify-content: center;
}
@media (min-width: 640px) {
  .nav-toggle-btn { display: none !important; }
  .nav-panel {
    display: flex !important;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    flex: 1;
    flex-basis: auto;
    padding: 0;
    margin-top: 0;
    border-top: none;
    gap: 8px;
  }
  .nav-panel .btn {
    width: auto;
  }
  .nav-inner--app {
    flex-wrap: nowrap;
    height: 64px;
  }
}

/* Provider profile */
.pro-cover {
  position: relative;
  height: 176px;
  width: 100%;
  background: linear-gradient(135deg, var(--bg-3), var(--bg-2));
  background-size: cover;
  background-position: center;
}
@media (min-width: 640px) {
  .pro-cover { height: 208px; }
}
.pro-avatar {
  position: absolute;
  bottom: -40px;
  left: 24px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  object-fit: cover;
  background: var(--bg-3);
}
@media (min-width: 640px) {
  .pro-avatar { left: 32px; width: 96px; height: 96px; bottom: -44px; }
}
.pro-head {
  padding: 52px 20px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
@media (min-width: 640px) {
  .pro-head { padding-left: 32px; padding-right: 32px; padding-top: 56px; }
}
.pro-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 700;
  color: var(--text);
}
.pro-meta { margin-top: 8px; font-size: 14px; color: var(--text-2); }
.pro-actions { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }

.pro-layout {
  display: grid;
  gap: 24px;
  padding: 24px 0 48px;
}
@media (min-width: 1024px) {
  .pro-layout {
    grid-template-columns: 1fr 320px;
    align-items: start;
  }
}
.pro-aside {
  position: static;
}
@media (min-width: 1024px) {
  .pro-aside { position: sticky; top: 80px; }
}

.list-item-border {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.list-item-border:last-child { border-bottom: none; }

.admin-subtitle {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  margin-top: 8px;
}
.data-table-wrap { overflow: auto; border-radius: var(--r-md); }
.data-table {
  width: 100%;
  font-size: 14px;
  border-collapse: collapse;
  color: var(--text-2);
}
.data-table th,
.data-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.data-table th {
  color: var(--gold);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.data-table tbody tr:hover { background: var(--bg-card-hov); }

.admin-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.admin-row:last-child { border-bottom: none; }

/* Toasts */
.toast-host {
  pointer-events: none;
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 22rem;
}
@media (min-width: 640px) {
  .toast-host { bottom: 24px; right: 24px; }
}
.toast {
  pointer-events: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  transition: opacity 0.25s, transform 0.25s;
}
.toast-success {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(22, 24, 30, 0.95);
  color: #bbf7d0;
}
.toast-error {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(22, 24, 30, 0.95);
  color: #fecaca;
}
.toast-info {
  border-color: var(--border-gold);
  background: rgba(22, 24, 30, 0.95);
  color: var(--text);
}

/* ---- PWA / mobile shell ---- */
html {
  color-scheme: dark;
}

body.has-bottom-nav {
  padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px) + 10px);
}

@media (max-width: 767px) {
  body.has-bottom-nav .toast-host {
    bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px) + 12px);
    right: 12px;
    left: 12px;
    max-width: none;
  }
}

.bottom-nav {
  display: none;
}

@media (max-width: 767px) {
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 95;
    min-height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px));
    padding: 6px 8px env(safe-area-inset-bottom, 0px);
    align-items: flex-start;
    justify-content: space-around;
    gap: 4px;
    background: rgba(10, 10, 15, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45);
  }

  .bottom-nav__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
    padding: 8px 4px;
    min-height: 48px;
    border-radius: var(--r-md);
    text-decoration: none;
    color: var(--text-3);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    transition: color 0.15s, background 0.15s;
  }

  .bottom-nav__item.is-active {
    color: var(--gold);
    background: var(--gold-dim);
  }

  .bottom-nav__icon {
    font-size: 20px;
    line-height: 1;
  }

  .bottom-nav__label {
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
