/* pages.css — page-specific tweaks */

/* Destination detail */
.detail-hero {
  position: relative; padding: var(--s-12) 0;
  background-size: cover; background-position: center;
  color: #fff; min-height: 320px; display: flex; align-items: flex-end;
}
.detail-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2), rgba(0,0,0,0.65));
}
.detail-hero .container { position: relative; }
.detail-hero h1 { color: #fff; }
.detail-meta { display: flex; gap: var(--s-3); flex-wrap: wrap; align-items: center; color: rgba(255,255,255,0.9); }

.detail-body { display: grid; grid-template-columns: 2fr 1fr; gap: var(--s-8); margin-top: var(--s-8); }
.detail-body .prose { font-size: var(--fz-lg); line-height: 1.7; color: var(--c-text); }
.detail-body .sidecard { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: var(--s-5); position: sticky; top: calc(var(--header-h) + 16px); height: fit-content; }
@media (max-width: 900px) {
  .detail-body { grid-template-columns: 1fr; }
  .detail-body .sidecard { position: static; }
}

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2); margin-top: var(--s-4); }
.gallery img { aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r-md); cursor: zoom-in; }
@media (max-width: 600px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* How it works (home) */
.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }
.how-step { text-align: center; padding: var(--s-6) var(--s-4); background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg); }
.how-step .step-num { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,107,74,0.12); color: var(--c-primary); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: var(--s-3); }
@media (max-width: 900px) { .how-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .how-grid { grid-template-columns: 1fr; } }

/* FAQ accordion */
.faq-list { max-width: var(--container-narrow); margin: 0 auto; }
.faq-item { border: 1px solid var(--c-border); border-radius: var(--r-md); margin-bottom: var(--s-2); background: var(--c-surface); overflow: hidden; }
.faq-q { padding: var(--s-4); font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); list-style: none; }
.faq-q::after { content: '+'; font-size: 24px; color: var(--c-text-soft); transition: transform var(--transition); }
.faq-item[open] .faq-q::after { transform: rotate(45deg); }
.faq-a { padding: 0 var(--s-4) var(--s-4); color: var(--c-text-muted); }

/* Tour plan cart */
.tp-cart {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-pill); padding: 8px 8px 8px 18px;
  box-shadow: var(--sh-lg); z-index: 55;
  display: flex; align-items: center; gap: var(--s-3);
}
.tp-cart .count { background: var(--c-primary); color: #fff; padding: 4px 10px; border-radius: var(--r-pill); font-size: var(--fz-sm); font-weight: 600; }

/* Auth */
.auth-card { max-width: 420px; margin: var(--s-16) auto; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: var(--s-8); box-shadow: var(--sh-md); }

/* ============================================================================
 * Admin shell — port of requirements/src/components/admin/{AdminLayout,AdminSidebar}.tsx
 * Light card-style sidebar (264px) + sticky main header.
 * ========================================================================= */
.admin-shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; background: var(--c-bg); }
.admin-main  { min-width: 0; }
.admin-content { min-width: 0; max-width: 100%; }
.admin-sidebar {
  background: var(--c-surface); border-right: 1px solid var(--c-border);
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column;
}
.admin-sb-logo { display: flex; align-items: center; gap: 10px; padding: var(--s-6) var(--s-5); border-bottom: 1px solid var(--c-border); text-decoration: none; color: var(--c-text); }
.admin-sb-logo:hover { text-decoration: none; color: var(--c-text); }
.admin-sb-logobox { width: 40px; height: 40px; border-radius: var(--r-xl); background: var(--c-accent); color: var(--c-accent-fg); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.admin-sb-brand { display: flex; flex-direction: column; line-height: 1.15; }
.admin-sb-brand-name { font-weight: 700; color: var(--c-text); font-size: var(--fz-md); }
.admin-sb-brand-sub  { font-size: 11px; color: var(--c-text-muted); margin-top: 2px; }
.admin-sb-nav { padding: var(--s-3); flex: 1; }
.admin-sb-cat-mt { margin-top: var(--s-4); }
.admin-sb-cat-label { padding: 8px 12px; margin: 0; text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; font-weight: 600; color: var(--c-text-muted); }
.admin-sb-items { display: flex; flex-direction: column; gap: 2px; }
.admin-sb-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--r-xl); font-size: var(--fz-sm); font-weight: 500; color: var(--c-text-muted); text-decoration: none; transition: background .15s, color .15s; }
.admin-sb-item:hover { background: var(--c-bg-muted); color: var(--c-text); text-decoration: none; }
.admin-sb-item.active { background: var(--c-accent); color: var(--c-accent-fg); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.admin-sb-item.active:hover { color: var(--c-accent-fg); background: var(--c-accent); }
.admin-sb-ico { display: inline-flex; flex-shrink: 0; }
.admin-sb-lbl { flex: 1; }

.admin-main { display: flex; flex-direction: column; min-height: 100vh; }
/* Admin sticky header — 1-to-1 with React AdminLayout.tsx (px-8 py-4 backdrop-blur) */
.admin-topbar { display: flex; justify-content: space-between; align-items: center; background: rgba(255,255,255,0.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--c-border); padding: var(--s-4) var(--s-8); position: sticky; top: 0; z-index: 30; }
.admin-topbar h1 { margin: 0; font-size: var(--fz-2xl); font-weight: 700; color: var(--c-text); line-height: 1.2; }
.admin-topbar-sub { margin: 4px 0 0; color: var(--c-text-muted); font-size: var(--fz-sm); }
.admin-topbar-right { display: flex; align-items: center; gap: 16px; }

/* User info + logout pill (bg-muted rounded-lg) */
.admin-userpill { display: inline-flex; align-items: center; gap: 12px; padding: 6px 12px; background: var(--c-bg-muted); border-radius: var(--r-lg); }
.admin-userpill-info { text-align: right; line-height: 1.2; }
.admin-userpill .lbl { margin: 0; font-size: 11px; color: var(--c-text-muted); }
.admin-userpill .nm  { margin: 0; font-size: var(--fz-sm); font-weight: 500; color: var(--c-text); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-userpill-form { margin: 0; display: inline-flex; }
.admin-userpill-logout { width: 32px; height: 32px; padding: 0; border: 0; background: transparent; color: var(--c-text-muted); border-radius: var(--r-md); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background .15s, color .15s; }
.admin-userpill-logout:hover { background: rgba(220,38,38,0.10); color: #dc2626; }

/* LiveVisitorCard (green pulsing dot + count) */
.admin-livecard { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.20); border-radius: var(--r-lg); }
.admin-live-dot { width: 8px; height: 8px; background: #22c55e; border-radius: 50%; box-shadow: 0 0 0 4px rgba(34,197,94,0.20); animation: admin-live-pulse 1.6s ease-in-out infinite; }
@keyframes admin-live-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.40); } 50% { box-shadow: 0 0 0 6px rgba(34,197,94,0.0); } }
.admin-live-count { font-size: var(--fz-sm); font-weight: 700; color: #16a34a; }
.admin-live-lbl { font-size: 11px; color: var(--c-text-muted); }
.admin-content { padding: var(--s-8); flex: 1; }

@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; }
  .admin-content { padding: var(--s-4); }
  .admin-topbar { padding: var(--s-3) var(--s-4); }
}

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); margin-bottom: var(--s-6); }
.stat-card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: var(--s-4); }
.stat-label { font-size: var(--fz-sm); color: var(--c-text-soft); margin-bottom: 4px; }
.stat-value { font-size: var(--fz-3xl); font-weight: 700; color: var(--c-text); font-family: var(--ff-display); }
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

.table { width: 100%; border-collapse: collapse; background: var(--c-surface); border-radius: var(--r-md); overflow: hidden; }
.table th, .table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--c-border); font-size: var(--fz-sm); }
.table th { background: var(--c-bg-muted); color: var(--c-text-muted); font-weight: 600; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: var(--c-bg-muted); }

/* ============================================================================
 * ContentTable — shared admin index style (mirrors React ContentTable.tsx)
 * Use these classes in every admin index page to get the React look:
 *   .ct-wrap, .ct-search-row, .ct-search, .ct-clear, .ct-tbl, .ct-grip,
 *   .ct-name, .ct-thumb, .ct-thumb-empty, .ct-title, .ct-slug,
 *   .ct-badge[--active|--draft|--feat], .ct-actions, .ct-iconbtn[--del],
 *   .ct-empty
 * ========================================================================= */
.ct-wrap { display: flex; flex-direction: column; gap: var(--s-5); }
.ct-search-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; }
.ct-search { display: inline-flex; align-items: center; gap: 8px; flex: 1; max-width: 380px; min-width: 220px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-md); padding: 8px 12px; color: var(--c-text-muted); }
.ct-search input { flex: 1; border: 0; outline: none; padding: 0; background: transparent; font-size: var(--fz-sm); color: var(--c-text); }
.ct-clear { color: var(--c-text-muted); text-decoration: none; font-size: 18px; line-height: 1; padding: 0 4px; }
.ct-clear:hover { color: var(--c-text); text-decoration: none; }

.ct-tbl { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-2xl); overflow: hidden; }
.ct-tbl table { width: 100%; border-collapse: collapse; }
.ct-tbl thead { background: rgba(0,0,0,0.03); border-bottom: 1px solid var(--c-border); }
.ct-tbl thead th { padding: var(--s-4); text-align: left; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--c-text-muted); }
.ct-tbl thead th.ct-actions-th { text-align: right; }
.ct-tbl tbody td { padding: var(--s-4); border-bottom: 1px solid var(--c-border); vertical-align: middle; }
.ct-tbl tbody tr:last-child td { border-bottom: 0; }
.ct-tbl tbody tr:hover td { background: rgba(0,0,0,0.02); }
.ct-grip { width: 24px; color: var(--c-text-soft); }

.ct-name { display: flex; align-items: center; gap: 12px; }
.ct-thumb { width: 40px; height: 40px; border-radius: var(--r-lg); object-fit: cover; flex-shrink: 0; }
.ct-thumb { width: 40px; height: 40px; border-radius: var(--r-lg); object-fit: cover; flex-shrink: 0; }
.ct-thumb-empty { background: var(--c-bg-muted); display: inline-flex; align-items: center; justify-content: center; color: var(--c-text-soft); }
.ct-title { font-weight: 500; color: var(--c-text); margin: 0; }
.ct-slug  { font-size: 11px; color: var(--c-text-muted); margin: 0; }

.ct-badge { display: inline-block; padding: 3px 10px; border-radius: var(--r-md); font-size: 11px; font-weight: 600; }
.ct-badge--active { background: var(--c-text); color: #fff; }
.ct-badge--draft  { background: var(--c-bg-muted); color: var(--c-text-muted); }
.ct-badge--feat   { background: rgba(247,127,38,0.10); color: var(--c-accent); margin-left: 4px; }
.ct-pill { display: inline-block; padding: 3px 10px; border-radius: var(--r-md); font-size: 11px; font-weight: 600; text-transform: capitalize; }

.ct-actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.ct-iconbtn { width: 32px; height: 32px; border-radius: var(--r-md); border: 0; background: transparent; color: var(--c-text-muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.ct-iconbtn:hover { background: var(--c-bg-muted); color: var(--c-text); text-decoration: none; }
.ct-iconbtn--del:hover { color: #dc2626; background: rgba(220,38,38,0.08); }

.ct-empty { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-2xl); padding: var(--s-12); text-align: center; }
.ct-empty p { margin: 0; color: var(--c-text-muted); }

/* ============================================================================
 * Sidebar category label + watch-list copy button
 * ========================================================================= */
.admin-sb-cat        { display: block; }
.wt-copy             { display: inline-flex; align-items: center; gap: 6px; }
.wt-copy:hover       { background: var(--c-accent-hover, #db6e1b); color: var(--c-accent-fg); }

/* ============================================================================
 * Dashboard cards (port of requirements/src/pages/admin/AdminDashboard.tsx)
 * ========================================================================= */
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s-4); margin-bottom: var(--s-6); }
.dash-card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: var(--s-5); display: flex; flex-direction: column; gap: 6px; }
.dash-card-lbl { font-size: var(--fz-sm); color: var(--c-text-muted); margin: 0; }
.dash-card-val { font-size: var(--fz-3xl); font-weight: 700; color: var(--c-text); font-family: var(--ff-display); margin: 0; line-height: 1.1; }
.dash-card-sub { font-size: 11px; color: var(--c-text-soft); margin: 0; }
.dash-section { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-2xl); padding: var(--s-6); margin-bottom: var(--s-5); }
.dash-section h2 { margin: 0 0 var(--s-4); font-size: var(--fz-lg); font-weight: 600; color: var(--c-text); }
.dash-table { width: 100%; border-collapse: collapse; }
.dash-table th, .dash-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--c-border); font-size: var(--fz-sm); }
.dash-table thead th { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--c-text-muted); }
.dash-table tbody tr:last-child td { border-bottom: 0; }

/* ============================================================================
 * Dashboard — extended (port of requirements/src/pages/admin/AdminDashboard.tsx)
 * ========================================================================= */
.dash-wrap { display: flex; flex-direction: column; gap: var(--s-6); }

.dash-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-4); gap: var(--s-3); }
.dash-section-head h2 { margin: 0; font-size: var(--fz-lg); font-weight: 600; color: var(--c-text); }
.dash-section-link { color: var(--c-accent); font-size: var(--fz-sm); font-weight: 500; text-decoration: none; }
.dash-section-link:hover { text-decoration: underline; }

.dash-cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
.dash-cards-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s-3); }
@media (max-width: 1100px) { .dash-cards-6 { grid-template-columns: repeat(3, 1fr); } .dash-cards-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .dash-cards-6 { grid-template-columns: repeat(2, 1fr); } .dash-cards-4 { grid-template-columns: 1fr; } }

.dash-card-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.dash-card-stat { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: var(--s-4); }
.dash-card-stat-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.dash-stat-title { margin: 0; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--c-text-muted); }
.dash-stat-icon  { color: var(--c-text-soft); display: inline-flex; }
.dash-stat-val   { margin: 0; font-size: var(--fz-2xl); font-weight: 700; color: var(--c-text); font-family: var(--ff-display); line-height: 1.1; }
.dash-stat-desc  { margin: 4px 0 0; font-size: 11px; color: var(--c-text-soft); }

.dash-icon { width: 36px; height: 36px; border-radius: var(--r-md); display: inline-flex; align-items: center; justify-content: center; background: var(--c-bg-muted); color: var(--c-text-muted); flex-shrink: 0; }
.dash-num  { font-size: var(--fz-2xl); font-weight: 700; color: var(--c-text); font-family: var(--ff-display); }
.dash-lbl  { font-size: 11px; color: var(--c-text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.dash-empty { padding: var(--s-6); text-align: center; color: var(--c-text-muted); font-size: var(--fz-sm); }

/* Articles list inside dashboard */
.dash-articles-grid { display: flex; flex-direction: column; gap: var(--s-3); }
.dash-article { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-3); background: var(--c-bg-muted); border: 1px solid var(--c-border); border-radius: var(--r-md); }
.dash-article-title { margin: 0; font-size: var(--fz-sm); font-weight: 500; color: var(--c-text); }
.dash-article-meta  { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--c-text-muted); margin-top: 2px; }
.dash-article-when  { font-size: 11px; color: var(--c-text-soft); white-space: nowrap; }

/* Status pills (dash-status + variants like -pending, -active, -ai) */
.dash-status { display: inline-block; padding: 2px 8px; border-radius: var(--r-md); font-size: 11px; font-weight: 600; text-transform: capitalize; }
.dash-status-pending  { background: rgba(234,179,8,0.12);   color: #a16207; }
.dash-status-active   { background: rgba(34,197,94,0.12);   color: #15803d; }
.dash-status-inactive { background: var(--c-bg-muted);      color: var(--c-text-muted); }
.dash-status-published{ background: rgba(34,197,94,0.12);   color: #15803d; }
.dash-status-draft    { background: var(--c-bg-muted);      color: var(--c-text-muted); }
.dash-status-converted{ background: rgba(59,130,246,0.12);  color: #1d4ed8; }
.dash-status-lost     { background: rgba(239,68,68,0.12);   color: #b91c1c; }
.dash-status-ai       { background: rgba(168,85,247,0.12);  color: #7c3aed; }

/* ============================================================================
 * Watch / WhatsApp leads / generic admin-form (wt-* family)
 * Used by: admin/whatsapp_leads, admin/destinations forms, edit dialogs
 * ========================================================================= */
.wt-wrap { display: flex; flex-direction: column; gap: var(--s-5); }
.wt-toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; }
.wt-actions { display: flex; align-items: center; gap: 6px; }

.wt-cat-tabs { display: inline-flex; padding: 4px; background: var(--c-bg-muted); border-radius: var(--r-md); gap: 2px; }
.wt-cat-tab  { padding: 6px 14px; border: 0; background: transparent; color: var(--c-text-muted); border-radius: var(--r-sm); cursor: pointer; font-size: var(--fz-sm); font-weight: 500; text-decoration: none; }
.wt-cat-tab:hover { color: var(--c-text); }
.wt-cat-tab.active { background: var(--c-surface); color: var(--c-text); box-shadow: var(--sh-sm); }
.wt-cat-badge { display: inline-block; padding: 1px 6px; margin-left: 6px; background: var(--c-bg-muted); color: var(--c-text-muted); border-radius: var(--r-pill); font-size: 10px; font-weight: 600; }

.wt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--s-4); }
.wt-card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: var(--s-4); display: flex; flex-direction: column; gap: 8px; }
.wt-card-head  { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-2); }
.wt-card-title { margin: 0; font-size: var(--fz-md); font-weight: 600; color: var(--c-text); }
.wt-msg   { font-size: var(--fz-sm); color: var(--c-text-muted); margin: 0; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.wt-media { display: flex; gap: 6px; flex-wrap: wrap; }
.wt-media img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--r-md); border: 1px solid var(--c-border); }

.wt-empty { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-2xl); padding: var(--s-12); text-align: center; color: var(--c-text-muted); }

/* Dialog-style edit form */
.wt-dialog { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: var(--s-6); max-width: 720px; margin: 0 auto; }
.wt-form { display: flex; flex-direction: column; gap: var(--s-4); }
.wt-form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: var(--s-4); border-top: 1px solid var(--c-border); padding-top: var(--s-4); }

/* ============================================================================
 * Admin modal dialogs (HTML5 <dialog>) — mirrors React's Dialog component
 * Used by: admin/{restaurants,local-specials,industry,investment,hotels,spotlight}/index.php
 * ========================================================================= */
.adm-modal {
  border: 0; padding: 0;
  background: var(--c-surface);
  border-radius: var(--r-2xl);
  max-width: 720px; width: 92vw;
  max-height: 90vh;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  overflow: hidden;
}
.adm-modal::backdrop { background: rgba(15,23,42,0.55); backdrop-filter: blur(4px); }
.adm-modal[open] { display: flex; flex-direction: column; }
.adm-modal-form { display: flex; flex-direction: column; max-height: 90vh; overflow: hidden; }

.adm-modal-head { display: flex; align-items: flex-start; justify-content: space-between; padding: var(--s-5) var(--s-6); border-bottom: 1px solid var(--c-border); flex-shrink: 0; }
.adm-modal-head h3 { margin: 0; font-size: var(--fz-lg); font-weight: 600; color: var(--c-text); }
.adm-modal-head p  { margin: 4px 0 0; font-size: var(--fz-sm); color: var(--c-text-muted); }
.adm-modal-close { background: transparent; border: 0; padding: 4px; cursor: pointer; color: var(--c-text-muted); border-radius: var(--r-md); display: inline-flex; align-items: center; justify-content: center; }
.adm-modal-close:hover { background: var(--c-bg-muted); color: var(--c-text); }

.adm-modal-body { flex: 1; overflow-y: auto; padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-4); }
.adm-modal-tabs { display: inline-flex; background: var(--c-bg-muted); border-radius: var(--r-md); padding: 4px; gap: 2px; align-self: flex-start; margin-bottom: var(--s-2); }
.adm-modal-tab  { padding: 6px 14px; border: 0; background: transparent; color: var(--c-text-muted); border-radius: 6px; font-size: var(--fz-sm); font-weight: 500; cursor: pointer; }
.adm-modal-tab.active { background: var(--c-surface); color: var(--c-text); box-shadow: 0 1px 2px rgba(0,0,0,0.06); }

.adm-modal-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: var(--s-4) var(--s-6); border-top: 1px solid var(--c-border); background: rgba(0,0,0,0.015); flex-shrink: 0; }

.adm-modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
@media (max-width: 600px) { .adm-modal-grid { grid-template-columns: 1fr; } }
.adm-modal-full { grid-column: 1 / -1; }

.adm-field { display: flex; flex-direction: column; gap: 4px; font-size: var(--fz-sm); }
.adm-field > label { font-weight: 500; color: var(--c-text); }
.adm-field .req { color: #dc2626; }
.adm-field input, .adm-field select, .adm-field textarea { padding: 8px 12px; border: 1px solid var(--c-border); border-radius: var(--r-md); font-family: inherit; font-size: var(--fz-sm); background: var(--c-surface); color: var(--c-text); width: 100%; box-sizing: border-box; }
.adm-field input:focus, .adm-field select:focus, .adm-field textarea:focus { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 3px rgba(247,127,38,0.15); }
.adm-field textarea { resize: vertical; min-height: 60px; line-height: 1.5; }
.adm-field small { font-size: 11px; color: var(--c-text-muted); }

.adm-switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; }
.adm-switch input { display: none; }
.adm-switch-track { width: 36px; height: 20px; background: var(--c-bg-muted); border-radius: 10px; position: relative; transition: background .15s; flex-shrink: 0; }
.adm-switch-thumb { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; background: #fff; border-radius: 50%; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,0.20); }
.adm-switch input:checked + .adm-switch-track { background: var(--c-accent); }
.adm-switch input:checked + .adm-switch-track .adm-switch-thumb { transform: translateX(16px); }

.adm-gallery { display: flex; flex-direction: column; gap: 8px; }
.adm-gallery-row { display: grid; grid-template-columns: 2fr 2fr auto; gap: 8px; align-items: center; }
.adm-gallery-row input { padding: 8px 10px; border: 1px solid var(--c-border); border-radius: var(--r-md); font-size: var(--fz-sm); background: var(--c-surface); color: var(--c-text); }
.adm-gallery-row .adm-gallery-del { width: 32px; height: 32px; padding: 0; background: transparent; border: 1px solid var(--c-border); border-radius: var(--r-md); cursor: pointer; color: var(--c-text-muted); display: inline-flex; align-items: center; justify-content: center; }
.adm-gallery-row .adm-gallery-del:hover { background: rgba(220,38,38,0.10); color: #dc2626; border-color: rgba(220,38,38,0.20); }
