:root {
  --admin-bg: #f4f7fb;
  --admin-panel: #fff;
  --admin-border: #e2e8f0;
  --admin-primary: #2563eb;
  --admin-primary-dark: #1d4ed8;
  --admin-dark: #0f172a;
  --admin-muted: #64748b;
  --sidebar: #111827;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--admin-bg); color: var(--admin-dark); font-family: Inter, system-ui, sans-serif; }
h1, h2, h3, .admin-brand { font-family: Manrope, Inter, sans-serif; }
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 270px minmax(0, 1fr); }
.admin-sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 1.25rem; background: linear-gradient(180deg, #111827, #0b1220); color: #fff; z-index: 1040; }
.admin-brand { display: flex; align-items: center; gap: .8rem; font-weight: 800; font-size: 1rem; padding: .25rem .3rem 1.5rem; }
.admin-brand small { display: block; color: #94a3b8; font: 500 .7rem Inter, sans-serif; margin-top: .15rem; }
.admin-brand-mark { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(135deg, #3b82f6, #6366f1); box-shadow: 0 10px 24px rgb(37 99 235 / 35%); }
.sidebar-close { margin-left: auto; border: 0; background: transparent; color: #fff; font-size: 1.25rem; }
.admin-nav { display: grid; gap: .25rem; }
.admin-nav-label { margin: 1.1rem .75rem .4rem; color: #64748b; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.admin-nav a { display: flex; align-items: center; gap: .8rem; padding: .72rem .85rem; border-radius: 10px; color: #cbd5e1; text-decoration: none; font-weight: 600; font-size: .9rem; transition: .18s ease; }
.admin-nav a i { width: 20px; font-size: 1rem; }
.admin-nav a:hover, .admin-nav a.active { color: #fff; background: rgb(59 130 246 / 18%); transform: translateX(2px); }
.admin-nav a.active { box-shadow: inset 3px 0 #60a5fa; }
.admin-main { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.topbar { min-height: 72px; padding: .8rem 1.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; position: sticky; top: 0; z-index: 1020; background: rgb(255 255 255 / 92%); border-bottom: 1px solid var(--admin-border); backdrop-filter: blur(16px); }
.sidebar-toggle { width: 40px; height: 40px; border: 1px solid var(--admin-border); border-radius: 10px; background: #fff; font-size: 1.25rem; }
.content-wrap { width: 100%; padding: 1.6rem; flex: 1; }
.admin-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.admin-page-head h1 { margin: .15rem 0; font-size: clamp(1.55rem, 2.5vw, 2.15rem); font-weight: 800; }
.admin-page-head p { margin: 0; color: var(--admin-muted); }
.admin-eyebrow { color: var(--admin-primary); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.card, .admin-card { border: 1px solid var(--admin-border); border-radius: 16px; background: var(--admin-panel); box-shadow: 0 10px 35px rgb(15 23 42 / 5%); overflow: hidden; }
.table { --bs-table-bg: transparent; margin-bottom: 0; }
.table td, .table th { vertical-align: middle; padding: .9rem 1rem; border-color: #edf2f7; }
.table thead th { color: var(--admin-muted); background: #f8fafc; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .055em; }
.admin-actions { display: flex; flex-wrap: nowrap; align-items: center; gap: .4rem; }
.admin-actions form { margin: 0; }
.admin-table td:last-child > form, .admin-table td:last-child > a, .admin-table td:last-child > button { display: inline-flex; vertical-align: middle; margin: .15rem .12rem; }
.admin-table-search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .85rem;
  padding: .85rem 1rem;
  border: 1px solid var(--admin-border);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(180deg, #fff, #f8fbff);
}
.admin-table-search + .table-responsive,
.admin-table-search + .admin-table {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.admin-table-search-field {
  width: min(100%, 420px);
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: .65rem;
  margin: 0;
  padding: 0 .75rem;
  border: 1px solid #dbe7f5;
  border-radius: 11px;
  background: #fff;
  color: var(--admin-muted);
  box-shadow: 0 8px 24px rgb(15 23 42 / 4%);
}
.admin-table-search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--admin-dark);
  font: 600 .92rem Inter, system-ui, sans-serif;
}
.admin-table-search-field input::placeholder { color: #94a3b8; font-weight: 500; }
.admin-table-search-field button {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 8px;
  background: #eff6ff;
  color: var(--admin-primary);
}
.admin-table-search-count {
  flex: 0 0 auto;
  padding: .35rem .65rem;
  border: 1px solid #dbe7f5;
  border-radius: 999px;
  background: #fff;
  color: var(--admin-muted);
  font-size: .78rem;
  font-weight: 800;
}
.admin-table-empty {
  display: grid;
  place-items: center;
  gap: .25rem;
  padding: 2rem 1rem;
  text-align: center;
  color: var(--admin-muted);
}
.admin-table-empty i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #eff6ff;
  color: var(--admin-primary);
  font-size: 1.1rem;
}
.admin-table-empty strong { color: var(--admin-dark); }
.admin-table-empty span { font-size: .86rem; }
.status-pill { display: inline-flex; padding: .3rem .6rem; border-radius: 999px; background: #e2e8f0; font-size: .72rem; font-weight: 800; }
.status-published, .status-active, .status-completed { color: #047857; background: #d1fae5; }
.status-draft, .status-pending { color: #a16207; background: #fef3c7; }
.status-archived, .status-inactive, .status-cancelled { color: #b91c1c; background: #fee2e2; }
.btn { border-radius: 9px; font-weight: 700; }
.btn-primary { background: var(--admin-primary); border-color: var(--admin-primary); }
.btn-primary:hover { background: var(--admin-primary-dark); border-color: var(--admin-primary-dark); }
.form-control, .form-select, .input-group-text { border-color: var(--admin-border); border-radius: 9px; min-height: 44px; }
.form-control:focus, .form-select:focus { border-color: #93c5fd; box-shadow: 0 0 0 .2rem rgb(37 99 235 / 10%); }
.form-label { color: #334155; font-weight: 700; font-size: .86rem; }
.admin-builder-card { border: 1px solid var(--admin-border); border-radius: 16px; padding: 1rem; background: linear-gradient(180deg, #fff, #f8fbff); }
.admin-builder-card h3 { margin: 0 0 .25rem; font-size: 1.02rem; }
.admin-builder-card p { margin: 0 0 1rem; color: var(--admin-muted); font-size: .88rem; }
.admin-repeater-list { display: grid; gap: .85rem; }
.admin-repeater-item { border: 1px solid var(--admin-border); border-radius: 14px; padding: .9rem; background: #fff; box-shadow: 0 6px 18px rgb(15 23 42 / 4%); }
.admin-repeater-actions { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.admin-repeater-handle { color: var(--admin-muted); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.admin-hidden-source { display: none !important; }
.tox-tinymce { border: 1px solid var(--admin-border) !important; border-radius: 10px !important; }
.alert { border-radius: 12px; }
.admin-flash-alert {
  margin-bottom: 1rem;
  box-shadow: 0 12px 28px rgb(15 23 42 / 7%);
}
.sidebar-backdrop { display: none; }
.auth-body { background: radial-gradient(circle at 15% 15%, rgb(37 99 235 / 16%), transparent 28%), radial-gradient(circle at 85% 20%, rgb(249 115 22 / 12%), transparent 26%), #f8fafc; }
.auth-shell { border: 1px solid var(--admin-border); border-radius: 1rem; box-shadow: 0 28px 80px rgb(15 23 42 / 12%); }
.auth-aside { background: linear-gradient(135deg, rgb(15 23 42 / 96%), rgb(30 41 59 / 92%)); color: #fff; }
.auth-brand { width: 42px; height: 42px; border-radius: .65rem; display: inline-grid; place-items: center; background: #fff; color: var(--admin-primary); font-weight: 800; }
.admin-dashboard-hero {
  padding: 1.35rem;
  border: 1px solid var(--admin-border);
  border-radius: 20px;
  background: linear-gradient(135deg, #ffffff, #f8fbff 55%, #eef4ff);
  box-shadow: 0 18px 45px rgb(15 23 42 / 6%);
  margin-bottom: 1.25rem;
}
.admin-kpi-card {
  height: 100%;
}
.admin-kpi-card .card-body {
  padding: 1.2rem;
}
.admin-kpi-card .display-6,
.admin-kpi-card .h2 {
  font-family: Manrope, Inter, sans-serif;
  font-weight: 800;
}
.admin-quick-list {
  display: grid;
  gap: .9rem;
}
.admin-quick-list > div {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  align-items: center;
  padding-bottom: .9rem;
  border-bottom: 1px solid #edf2f7;
}
.admin-quick-list > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.admin-shortcut-grid {
  display: grid;
  gap: .65rem;
}
.admin-shortcut-grid .btn {
  justify-content: flex-start;
}
.hero-admin-head {
  align-items: center;
}
.hero-slide-stats {
  display: flex;
  gap: .7rem;
}
.hero-slide-stats span {
  min-width: 92px;
  padding: .75rem .9rem;
  border: 1px solid var(--admin-border);
  border-radius: 14px;
  background: #fff;
  color: var(--admin-muted);
  font-size: .78rem;
  font-weight: 700;
  box-shadow: 0 10px 28px rgb(15 23 42 / 5%);
}
.hero-slide-stats strong {
  display: block;
  color: #0f172a;
  font-size: 1.35rem;
  line-height: 1;
}
.hero-slider-admin-grid {
  display: grid;
  grid-template-columns: minmax(310px, 390px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}
.hero-upload-card,
.hero-slide-manager {
  padding: 1.15rem;
}
.hero-upload-card {
  position: sticky;
  top: 90px;
}
.hero-admin-card-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.hero-admin-card-head span {
  color: var(--admin-primary);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hero-admin-card-head h2 {
  margin: .15rem 0 0;
  font-size: 1.3rem;
  font-weight: 800;
}
.hero-admin-card-head > i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #eef4ff;
  color: var(--admin-primary);
  font-size: 1.25rem;
}
.manager-head small {
  color: var(--admin-muted);
  font-weight: 700;
}
.hero-upload-drop {
  cursor: pointer;
  display: grid;
  justify-items: center;
  gap: .45rem;
  padding: 1.45rem 1rem;
  border: 1px dashed #b9c9e2;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbff, #fff);
  text-align: center;
  transition: border-color .16s ease, background .16s ease;
}
.hero-upload-drop:hover {
  border-color: var(--admin-primary);
  background: #f5f9ff;
}
.hero-upload-drop input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.hero-upload-drop span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #eaf2ff;
  color: var(--admin-primary);
  font-size: 1.35rem;
}
.hero-upload-drop strong {
  font-weight: 800;
}
.hero-upload-drop small {
  max-width: 260px;
  color: var(--admin-muted);
  font-size: .78rem;
  line-height: 1.5;
}
.hero-upload-preview img {
  width: 100%;
  max-height: 210px;
  border-radius: 14px;
  border: 1px solid var(--admin-border);
}
.hero-slide-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1rem;
}
.hero-slide-admin-card {
  min-width: 0;
  display: grid;
  gap: .85rem;
  padding: .85rem;
  border: 1px solid #e6edf6;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px rgb(15 23 42 / 4%);
}
.hero-slide-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 13px;
  background: #f1f5f9;
}
.hero-slide-thumb img {
  width: 100%;
  height: 100%;
}
.hero-slide-thumb .status-pill {
  position: absolute;
  top: 10px;
  right: 10px;
}
.hero-slide-copy {
  min-width: 0;
  display: grid;
  gap: .18rem;
}
.hero-slide-copy strong {
  overflow: hidden;
  color: #0f172a;
  font-size: .98rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hero-slide-copy small {
  color: var(--admin-muted);
  word-break: break-all;
}
.hero-slide-edit-form {
  display: grid;
  gap: .7rem;
}
.hero-slide-edit-form label {
  display: grid;
  gap: .32rem;
}
.hero-slide-edit-form label span {
  color: #475569;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.hero-slide-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
}
.hero-slide-delete-form {
  margin: 0;
}
.hero-slide-delete-form .btn {
  width: 100%;
}
.hero-slide-empty {
  min-height: 310px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: .5rem;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  background: #f8fafc;
  color: var(--admin-muted);
  text-align: center;
}
.hero-slide-empty i {
  color: #94a3b8;
  font-size: 2.3rem;
}
.hero-slide-empty strong {
  color: #0f172a;
  font-size: 1rem;
}
body[data-theme="dark"] { --admin-bg: #020617; --admin-panel: #111827; --admin-border: #334155; --admin-dark: #e5e7eb; --admin-muted: #94a3b8; --bs-body-color: #e5e7eb; --bs-secondary-color: #b6c3d4; --bs-table-color: #e5e7eb; --bs-card-color: #e5e7eb; --bs-border-color: #334155; }
body[data-theme="dark"],
body[data-theme="dark"] .admin-main,
body[data-theme="dark"] .content-wrap,
body[data-theme="dark"] .card,
body[data-theme="dark"] .admin-card,
body[data-theme="dark"] .admin-dashboard-hero,
body[data-theme="dark"] .table,
body[data-theme="dark"] .table td,
body[data-theme="dark"] .table th { color: #e5e7eb; }
body[data-theme="dark"] p,
body[data-theme="dark"] small,
body[data-theme="dark"] .text-muted,
body[data-theme="dark"] .admin-page-head p,
body[data-theme="dark"] .admin-kpi-card p,
body[data-theme="dark"] .admin-dashboard-hero p,
body[data-theme="dark"] .admin-builder-card p,
body[data-theme="dark"] .admin-repeater-handle { color: #b6c3d4 !important; }
body[data-theme="dark"] h1,
body[data-theme="dark"] h2,
body[data-theme="dark"] h3,
body[data-theme="dark"] h4,
body[data-theme="dark"] h5,
body[data-theme="dark"] h6,
body[data-theme="dark"] .h1,
body[data-theme="dark"] .h2,
body[data-theme="dark"] .h3,
body[data-theme="dark"] .h4,
body[data-theme="dark"] .h5,
body[data-theme="dark"] .h6,
body[data-theme="dark"] .display-6 { color: #f8fafc; }
body[data-theme="dark"] .card,
body[data-theme="dark"] .admin-card,
body[data-theme="dark"] .admin-kpi-card,
body[data-theme="dark"] .admin-builder-card,
body[data-theme="dark"] .admin-repeater-item { background: #111827; border-color: #334155; }
body[data-theme="dark"] .bg-white { background-color: #111827 !important; }
body[data-theme="dark"] .border,
body[data-theme="dark"] .border-dashed,
body[data-theme="dark"] .border-warning-subtle { border-color: #334155 !important; }
body[data-theme="dark"] [style*="background:#f8fbff"],
body[data-theme="dark"] [style*="background: #f8fbff"] { background: #0f172a !important; }
body[data-theme="dark"] .topbar, body[data-theme="dark"] .sidebar-toggle, body[data-theme="dark"] .table thead th { background: #0f172a; color: #e5e7eb; }
body[data-theme="dark"] .table tbody tr { border-color: #334155; }
body[data-theme="dark"] .table tbody tr:hover { background: rgb(59 130 246 / 9%); }
body[data-theme="dark"] .form-control, body[data-theme="dark"] .form-select, body[data-theme="dark"] .input-group-text { background: #0f172a; color: #e5e7eb; border-color: #334155; }
body[data-theme="dark"] .form-control::placeholder,
body[data-theme="dark"] .admin-table-search-field input::placeholder,
body[data-theme="dark"] textarea::placeholder,
body[data-theme="dark"] input::placeholder { color: #74849a; opacity: 1; }
body[data-theme="dark"] .form-label { color: #cbd5e1; }
body[data-theme="dark"] .admin-builder-card,
body[data-theme="dark"] .admin-repeater-item { background: #111827; }
body[data-theme="dark"] .admin-dashboard-hero { background: linear-gradient(135deg, #111827, #172033 60%, #1e293b); }
body[data-theme="dark"] .admin-quick-list > div { border-bottom-color: #243041; }
body[data-theme="dark"] .admin-table-search,
body[data-theme="dark"] .admin-table-search-field,
body[data-theme="dark"] .admin-table-search-count { background: #111827; border-color: #334155; }
body[data-theme="dark"] .admin-table-search-field input { color: #e5e7eb; }
body[data-theme="dark"] .admin-table-empty strong { color: #f8fafc; }
body[data-theme="dark"] .admin-table-search-field button,
body[data-theme="dark"] .admin-table-empty i { background: #172554; color: #93c5fd; }
body[data-theme="dark"] .hero-slide-stats,
body[data-theme="dark"] .hero-slide-admin-card,
body[data-theme="dark"] .hero-upload-drop { background: #111827; }
body[data-theme="dark"] .hero-slide-copy strong,
body[data-theme="dark"] .hero-slide-stats strong,
body[data-theme="dark"] .hero-slide-empty strong { color: #e5e7eb; }
body[data-theme="dark"] .hero-slide-stats span,
body[data-theme="dark"] .hero-slide-copy small,
body[data-theme="dark"] .hero-slide-edit-form label span,
body[data-theme="dark"] .hero-slide-empty { color: #b6c3d4; }
body[data-theme="dark"] .hero-slide-stats span,
body[data-theme="dark"] .hero-slide-empty { background: #0f172a; border-color: #334155; }
body[data-theme="dark"] .btn-outline-secondary { color: #cbd5e1; border-color: #475569; }
body[data-theme="dark"] .btn-outline-secondary:hover { color: #fff; background: #334155; border-color: #64748b; }
@media (max-width: 991.98px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: fixed; left: 0; transform: translateX(-105%); width: min(86vw, 300px); transition: transform .22s ease; box-shadow: 20px 0 60px rgb(2 6 23 / 35%); }
  .sidebar-open .admin-sidebar { transform: translateX(0); }
  .sidebar-backdrop { position: fixed; inset: 0; background: rgb(2 6 23 / 55%); z-index: 1030; }
  .sidebar-open .sidebar-backdrop { display: block; }
  .content-wrap { padding: 1rem; }
  .topbar { padding: .75rem 1rem; }
  .admin-table-search { align-items: stretch; flex-direction: column; }
  .admin-table-search-field { width: 100%; }
  .admin-table-search-count { align-self: flex-start; }
  .hero-slider-admin-grid { grid-template-columns: 1fr; }
  .hero-upload-card { position: static; }
}
@media (max-width: 575.98px) {
  .admin-page-head { align-items: stretch; flex-direction: column; }
  .admin-page-head .btn { width: 100%; }
  .card-body { padding: 1rem !important; }
  .admin-dashboard-hero { padding: 1rem; border-radius: 16px; }
  .hero-slide-stats { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-slide-list { grid-template-columns: 1fr; }
}
.landing-builder-form .nav-tabs{overflow-x:auto;overflow-y:hidden;flex-wrap:nowrap}
.landing-builder-form .nav-link{white-space:nowrap}
.landing-section-card{border-color:#dce6f0}
.landing-section-card .card-header{background:#f8fafc}
.landing-section-card textarea{min-height:110px}
@media (max-width:767.98px){.landing-builder-form .position-sticky{position:static!important}.landing-section-card .card-header{align-items:flex-start!important;flex-direction:column}}
