/* ============================================================
   WAZIFNI DASHBOARD — Base, Layout & Components
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-size: var(--fs-p);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
#root { height: 100%; }
button { font-family: inherit; cursor: pointer; outline: none; }
a { color: var(--brand-primary); text-decoration: none; }
a:hover { color: var(--brand-accent); }
::selection { background: var(--primary-tint-2); color: var(--brand-navy); }
iconify-icon { display: inline-block; vertical-align: middle; }

/* scrollbars */
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--muted) 35%, transparent); border-radius: 100px; border: 2px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--muted) 55%, transparent); background-clip: content-box; }

h1,h2,h3,h4,h5,h6 { color: var(--heading); margin: 0; font-weight: 700; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
h5 { font-size: var(--fs-h5); }
h6 { font-size: var(--fs-h6); }
p { font-size: var(--fs-p); }
small { font-size: var(--fs-small); }

/* ===== App layout ===== */
.app { display: flex; min-height: 100vh; background: var(--sidebar-bg); }
[dir="rtl"] .app { direction: rtl; }

/* ===== Sidebar ===== */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
  transition: width .25s cubic-bezier(.4,0,.2,1);
  z-index: 40;
}
.sidebar.collapsed { width: var(--sidebar-w-collapsed); }
.brand-chip {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  padding: 8px 0;
  margin-inline-start: 12px;
}
.brand-chip img { height: 38px; width: auto; display: block; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15)); }
.sidebar.collapsed .brand-chip { padding: 4px 0; margin-inline-start: 0; }
.sidebar.collapsed .brand-chip img { height: 26px; }

.sidebar__head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--sidebar-border);
  min-height: var(--topbar-h);
  display: flex;
  align-items: center;
}
.sidebar.collapsed .sidebar__head {
  padding: 16px 8px;
}
.sidebar__head-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.sidebar.collapsed .sidebar__head-layout {
  flex-direction: column-reverse;
  gap: 12px;
  align-items: center;
  justify-content: center;
}
.collapse-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--sidebar-text);
  width: 38px;
  height: 38px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  transition: all .15s;
  cursor: pointer;
}
.collapse-btn:hover {
  background: var(--sidebar-active);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(0, 136, 199, 0.25);
}

.sidebar__nav { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 20px 0; }
[dir="rtl"] .sidebar__nav { direction: ltr; }
[dir="rtl"] .sidebar__nav > * { direction: rtl; }
.sidebar__nav::-webkit-scrollbar { width: 6px; }
.sidebar__nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 10px; }
.nav-group-label {
  font-size: var(--fs-small); font-weight: 700; letter-spacing: .06em;
  color: rgba(255,255,255,.28); text-transform: uppercase;
  padding: 20px 18px 8px; white-space: nowrap;
  display: flex; align-items: center; gap: 8px;
}
.nav-group-label::after {
  content: ""; flex: 1; height: 1px; background: linear-gradient(to right, rgba(255,255,255,0.08), transparent);
}
[dir="rtl"] .nav-group-label::after { background: linear-gradient(to left, rgba(255,255,255,0.08), transparent); }
.sidebar.collapsed .nav-group-label { justify-content: center; font-size: 0; padding: 16px 0 8px; }
.sidebar.collapsed .nav-group-label::after { display: none; }
.sidebar.collapsed .nav-group-label::before { content: "—"; font-size: var(--fs-small); color: rgba(255,255,255,.2); }

.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; margin: 4px 0;
  margin-inline-start: 8px;
  border-start-start-radius: 30px;
  border-end-start-radius: 30px;
  color: var(--sidebar-text);
  font-size: var(--fs-p); font-weight: 500; width: calc(100% - 8px); border: none; background: transparent;
  text-align: start; position: relative; transition: all .25s cubic-bezier(.4,0,.2,1);
  white-space: nowrap; overflow: visible;
  outline: none;
}

.nav-item iconify-icon { font-size: 22px; flex-shrink: 0; transition: all .3s cubic-bezier(.175,.885,.32,1.275); }
.nav-item:hover {
  background: rgba(255,255,255,0.04); color: #fff;
}
.nav-item:hover iconify-icon { transform: scale(1.12); }
.nav-item.active {
  background: var(--bg-grad-a);
  color: var(--brand-primary); font-weight: 700;
}
.nav-item.active iconify-icon { filter: drop-shadow(0 2px 4px rgba(0,136,199,0.3)); }

.nav-item.active::before, .nav-item.active::after {
  content: ""; position: absolute;
  width: 20px; height: 20px;
  background: transparent;
  z-index: 10; inset-inline-end: 0;
  pointer-events: none;
}
.nav-item.active::before {
  bottom: 100%;
  background: radial-gradient(circle at top left, transparent 20px, var(--bg-grad-a) 20.5px);
}
.nav-item.active::after {
  top: 100%;
  background: radial-gradient(circle at bottom left, transparent 20px, var(--bg-grad-a) 20.5px);
}

[dir="rtl"] .nav-item.active::before {
  background: radial-gradient(circle at top right, transparent 20px, var(--bg-grad-a) 20.5px);
}
[dir="rtl"] .nav-item.active::after {
  background: radial-gradient(circle at bottom right, transparent 20px, var(--bg-grad-a) 20.5px);
}

.nav-item .nav-badge {
  margin-inline-start: auto; background: var(--brand-secondary); color: #fff;
  font-size: 11px; font-weight: 700; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 100px; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(246,139,41,.4);
  transition: transform .25s;
}
.nav-item.active .nav-badge { background: var(--brand-primary); color: #fff; box-shadow: none; }
.nav-item:hover .nav-badge { transform: scale(1.08); }

.sidebar.collapsed .nav-item { justify-content: center; padding: 11px; margin: 4px 12px; width: calc(100% - 24px); border-radius: 12px; }
.sidebar.collapsed .nav-item::before, .sidebar.collapsed .nav-item::after { display: none; }
.sidebar.collapsed .nav-item .nav-label,
.sidebar.collapsed .nav-item .nav-badge { display: none; }
.sidebar.collapsed .nav-item:hover::after {
  content: attr(data-label); position: absolute; inset-inline-start: calc(100% + 14px);
  background: var(--surface); color: var(--heading); padding: 7px 12px; border-radius: 8px;
  font-size: 13px; font-weight: 600; white-space: nowrap; z-index: 60; 
  box-shadow: var(--shadow-dropdown); pointer-events: none;
  border: 1px solid var(--border);
  display: block;
}

/* sidebar__foot was removed */

/* ===== Main column ===== */
.main {
  flex: 1; min-width: 0; display: flex; flex-direction: column;
  background: var(--bg-grad-a);
  border-start-start-radius: 36px;
  margin: 0;
  box-shadow: inset 1px 0 0 rgba(255,255,255,0.2), -4px 0 24px rgba(0,0,0,0.15);
  overflow-x: hidden;
  overflow-y: auto;
}
[dir="rtl"] .main {
  box-shadow: inset -1px 0 0 rgba(255,255,255,0.2), 4px 0 24px rgba(0,0,0,0.15);
}

/* ===== Topbar ===== */
.topbar {
  height: var(--topbar-h); flex-shrink: 0;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex; align-items: center; gap: 14px; padding: 0 32px;
  z-index: 30;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0;
}
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); display: grid; place-items: center;
  transition: all .2s cubic-bezier(0.4, 0, 0.2, 1); position: relative;
  box-shadow: var(--shadow-card);
}
.icon-btn iconify-icon { font-size: 21px; }
.icon-btn:hover {
  background: var(--surface-2); color: var(--brand-primary);
  border-color: var(--brand-primary); transform: translateY(-1px);
  box-shadow: var(--shadow-raised);
}
.icon-btn .dot { position: absolute; top: 4px; inset-inline-end: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-secondary); border: 2px solid var(--surface); }

.topbar__title { display: flex; flex-direction: column; }
.topbar__title h1 { font-size: 19px; font-weight: 800; line-height: 1.2; color: var(--heading); margin: 0; }
.breadcrumb { font-size: 11.5px; color: var(--faint); display: flex; gap: 6px; align-items: center; margin-bottom: 2px; font-weight: 600; text-transform: uppercase; }
.breadcrumb a { color: var(--faint); }
.breadcrumb a:hover { color: var(--brand-primary); }
.breadcrumb .sep { color: var(--border-strong); }
.breadcrumb .cur { color: var(--brand-primary); font-weight: 700; }

.topbar__search {
  display: flex; align-items: center; gap: 9px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--r-full); padding: 0 16px; height: 40px;
  width: 290px; transition: all .25s cubic-bezier(0.4, 0, 0.2, 1); color: var(--muted);
}
.topbar__search:focus-within {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(0, 136, 199, 0.12);
  background: var(--surface);
  width: 340px;
}
.topbar__search input { border: none; background: none; outline: none; flex: 1; font-family: inherit; font-size: 14px; color: var(--text); min-width: 0; }
.topbar__search input::placeholder { color: var(--placeholder); }
.topbar__spacer { flex: 1; }

.userchip {
  display: flex; align-items: center; gap: 10px; padding: 5px 12px 5px 6px;
  border-radius: var(--r-full); border: 1px solid var(--border);
  background: var(--surface); transition: all .2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-card);
}
[dir="rtl"] .userchip { padding: 5px 6px 5px 12px; }
.userchip:hover {
  background: var(--surface-2); border-color: var(--brand-primary);
  box-shadow: var(--shadow-raised); transform: translateY(-1px);
}
.userchip .avatar { width: 34px; height: 34px; }
.userchip__meta { display: flex; flex-direction: column; line-height: 1.25; text-align: start; }
.userchip__meta b { font-size: 13px; color: var(--heading); font-weight: 700; }
.userchip__meta span { font-size: 11px; color: var(--muted); font-weight: 500; }

/* ===== Content ===== */
.content { padding: 16px 32px 32px; flex: 1; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h2 { font-size: 22px; }
.page-head p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
.head-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ===== Avatar ===== */
.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-weight: 600; font-size: 14px; color: #fff;
  background: var(--brand-primary);
  overflow: hidden;
}
.avatar.sq { border-radius: var(--r-md); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 10px 18px; border-radius: var(--r-md); border: 1px solid transparent;
  font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1;
  transition: all .16s; white-space: nowrap;
}
.btn iconify-icon { font-size: 18px; }
.btn-sm { padding: 7px 13px; font-size: 13px; }
.btn-primary { background: var(--brand-primary); color: #fff; }
.btn-primary:hover { background: var(--brand-primary-700); box-shadow: var(--shadow-btn); transform: translateY(-1px); }
.btn-orange { background: var(--brand-secondary); color: #fff; }
.btn-orange:hover { background: var(--brand-accent); box-shadow: 0 6px 16px rgba(246,139,41,.32); transform: translateY(-1px); }
.btn-success { background: var(--brand-success); color: #fff; }
.btn-success:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-danger { background: var(--brand-danger); color: #fff; }
.btn-danger:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn-outline:hover { border-color: var(--brand-primary); color: var(--brand-primary); background: var(--primary-tint); }
.btn-ghost { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-3); color: var(--heading); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* Elegant Custom Button */
.btn-elegant {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 12px;
  border: none;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-primary), #00A38C);
  box-shadow: 0 4px 14px rgba(0, 136, 199, 0.25);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  white-space: nowrap;
}
.btn-elegant:hover {
  box-shadow: 0 8px 24px rgba(0, 136, 199, 0.4);
  transform: translateY(-2px);
  filter: brightness(1.1);
}
.btn-elegant:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(0, 136, 199, 0.2);
}
.btn-elegant iconify-icon {
  font-size: 20px;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.1));
}

/* ===== Cards ===== */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-card);
}
.card-pad { padding: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.card-head h3 { font-size: 16px; font-weight: 600; }
.card-head .sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.category-card { container-type: inline-size; display: flex; align-items: center; gap: 16px; padding: 24px; flex-wrap: wrap; }
.category-card__body { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 0; }
.category-card__content { flex: 1; min-width: 0; }
.category-card__actions { display: flex; align-items: center; gap: 6px; }
@container (max-width: 360px) {
  .category-card__body { flex: 1 1 100%; }
  .category-card__actions {
    flex: 1 1 100%; justify-content: flex-end;
    margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border);
  }
}

/* ===== KPI cards ===== */
.kpi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 1100px){ .kpi-grid { grid-template-columns: repeat(2,1fr);} }
@media (max-width: 640px){ .kpi-grid { grid-template-columns: 1fr;} }
.kpi {
  background: var(--surface); border: none; border-radius: 14px;
  padding: 24px; box-shadow: 0 4px 20px rgba(0,0,0,0.03); position: relative;
  display: flex; flex-direction: column; gap: 20px; transition: transform .18s, box-shadow .18s;
}
.kpi:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,0.06); }
.kpi__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.kpi__icon { display: flex; }
.kpi__badge {
  display: flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 100px;
  font-size: var(--fs-small); font-weight: 700; color: #fff;
}
.kpi__badge.up { background: var(--brand-success); }
.kpi__badge.down { background: var(--brand-danger); }
.kpi__body { display: flex; flex-direction: column; gap: 8px; }
.kpi__value { font-size: var(--fs-h2); font-weight: 700; color: var(--heading); line-height: 1; }
.kpi__label { font-size: var(--fs-small); color: var(--muted); font-weight: 500; }

/* ===== Grid helpers ===== */
.grid { display: grid; gap: 18px; }
.g-2 { grid-template-columns: repeat(2,1fr); }
.g-3 { grid-template-columns: repeat(3,1fr); }
.g-4 { grid-template-columns: repeat(4,1fr); }
@media (max-width: 1200px){ .g-4 { grid-template-columns: repeat(2,1fr);} }
@media (max-width: 980px){ .g-3, .g-2 { grid-template-columns: 1fr;} }
.row { display: flex; gap: 18px; }
.row > .col { flex: 1; min-width: 0; }

/* ===== Badges ===== */
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px;
  border-radius: var(--r-full); font-size: 12.5px; font-weight: 600; line-height: 1.4; white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.no-dot::before { display: none; }
.b-pending { background: var(--status-pending-bg); color: var(--status-pending-tx); }
.b-scheduled { background: var(--status-scheduled-bg); color: var(--status-scheduled-tx); }
.b-interview { background: var(--status-interview-bg); color: var(--status-interview-tx); }
.b-sent { background: var(--status-sent-bg); color: var(--status-sent-tx); }
.b-hired { background: var(--status-hired-bg); color: var(--status-hired-tx); }
.b-active, .b-approved { background: var(--status-approved-bg); color: var(--status-approved-tx); }
.b-rejected, .b-blocked { background: var(--status-rejected-bg); color: var(--status-rejected-tx); }
.b-closed { background: rgba(90,90,110,0.12); color: #5a5a6e; }
.b-neutral, .b-draft { background: var(--status-neutral-bg); color: var(--status-neutral-tx); }
.b-info { background: var(--status-sent-bg); color: var(--status-sent-tx); }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: var(--r-full);
  font-size: 12.5px; font-weight: 500; background: var(--surface-2); color: var(--text); border: 1px solid var(--border);
}
.chip-primary { background: var(--primary-tint); color: var(--brand-primary); border-color: transparent; }
.chip-off { background: var(--status-neutral-bg); color: var(--status-neutral-tx); border-color: transparent; }

/* ===== Tables ===== */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.tbl thead th {
  background: var(--surface-2); color: var(--heading); font-weight: 600; text-align: start;
  padding: 13px 16px; font-size: 12.5px; white-space: nowrap; border-bottom: 1px solid var(--border);
}
table.tbl thead th:first-child { border-start-start-radius: var(--r-md); }
table.tbl thead th:last-child { border-start-end-radius: var(--r-md); }
table.tbl tbody td { padding: 13px 16px; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: middle; }
table.tbl tbody tr { transition: background .12s; }
table.tbl tbody tr:hover { background: var(--surface-hover); }
table.tbl tbody tr:last-child td { border-bottom: none; }
.td-name { display: flex; align-items: center; gap: 11px; }
.td-name b { color: var(--heading); font-weight: 600; font-size: 13.5px; }
.td-name small { color: var(--muted); font-size: 12px; display: block; }
.td-actions { display: flex; gap: 7px; }
.act {
  width: 33px; height: 33px; border-radius: var(--r-md); display: grid; place-items: center;
  border: none; transition: all .14s;
}
.act iconify-icon { font-size: 17px; }
.act:hover { transform: translateY(-1px); }
.act-view { background: var(--primary-tint); color: var(--brand-primary); }
.act-edit { background: var(--yellow-tint); color: var(--brand-yellow); }
.act-del { background: var(--danger-tint); color: var(--brand-danger); }
.act-more { background: var(--surface-2); color: var(--muted); }

/* ===== Toolbar / filters ===== */
.toolbar { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.search-box { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: 0 12px; height: 40px; min-width: 240px; flex: 1; max-width: 360px; color: var(--muted); }
.search-box:focus-within { border-color: var(--brand-primary); box-shadow: var(--ring); }
.search-box input { border: none; background: none; outline: none; flex: 1; font-family: inherit; font-size: 14px; color: var(--text); min-width: 0; }
.search-box input::placeholder { color: var(--placeholder); }
.select {
  height: 40px; border: 1px solid var(--border); background: var(--surface); border-radius: var(--r-md);
  padding: 0 34px 0 12px; font-family: inherit; font-size: 13.5px; color: var(--text);
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235A5A5A' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
[dir="rtl"] .select { padding: 0 12px 0 34px; background-position: left 12px center; }
.select:focus { outline: none; border-color: var(--brand-primary); box-shadow: var(--ring); }

/* --- Elegant Custom Select CSS --- */
.custom-select-wrapper {
  position: relative;
  font-family: var(--font);
}
.custom-select-trigger.select {
  background-image: none !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  text-align: start;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.custom-select-trigger.select.open {
  border-color: var(--brand-primary);
  box-shadow: var(--ring);
}
.custom-select-options {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-dropdown);
  max-height: 250px;
  overflow-y: auto;
  z-index: 1000;
  padding: 4px;
  animation: select-fade-in 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: color-mix(in srgb, var(--surface) 95%, transparent);
}
@keyframes select-fade-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.custom-select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.12s;
  user-select: none;
}
.custom-select-option:hover {
  background: var(--surface-hover);
  color: var(--brand-primary);
}
.custom-select-option.selected {
  background: var(--primary-tint);
  color: var(--brand-primary);
  font-weight: 600;
}
.custom-select-option .selected-icon {
  font-size: 16px;
  color: var(--brand-primary);
}
.custom-select-search {
  position: sticky;
  top: -4px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  margin: -4px -4px 4px -4px;
  border-bottom: 1px solid var(--border);
  background: inherit;
  z-index: 1;
}
.custom-select-search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--text);
  padding: 6px 0;
}
.custom-select-empty {
  padding: 12px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
[data-theme="dark"] .custom-select-options {
  background: color-mix(in srgb, var(--surface) 90%, transparent);
}

.tbl-foot { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-top: 1px solid var(--border); flex-wrap: wrap; gap: 10px; }
.muted { color: var(--muted); font-size: 13px; }
.pager { display: flex; gap: 5px; }
.pager button { min-width: 34px; height: 34px; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface); color: var(--text); font-family: inherit; font-size: 13px; font-weight: 500; }
.pager button:hover:not(:disabled) { border-color: var(--brand-primary); color: var(--brand-primary); }
.pager button.active { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }
.pager button:disabled { opacity: .4; cursor: not-allowed; }

/* ===== Forms ===== */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13.5px; font-weight: 500; color: var(--muted); }
.field label .req { color: var(--brand-danger); }
.input, .textarea {
  width: 100%; border: 1px solid var(--border); background: var(--surface); border-radius: var(--r-md);
  padding: 11px 13px; font-family: inherit; font-size: 14px; color: var(--text); transition: all .15s;
}
.input::placeholder, .textarea::placeholder { color: var(--placeholder); }
.input:focus, .textarea:focus { outline: none; border-color: var(--brand-primary); box-shadow: var(--ring); }
.textarea { resize: vertical; min-height: 96px; line-height: 1.6; }
.input-icon { position: relative; }
.input-icon iconify-icon { position: absolute; inset-inline-start: 13px; top: 50%; transform: translateY(-50%); color: var(--faint); font-size: 19px; }
.input-icon .input { padding-inline-start: 42px; }

/* toggle switch */
.switch { position: relative; width: 42px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track { position: absolute; inset: 0; background: var(--border-strong); border-radius: 100px; transition: .2s; }
.switch .track::before { content: ""; position: absolute; height: 18px; width: 18px; inset-inline-start: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.switch input:checked + .track { background: var(--brand-primary); }
.switch input:checked + .track::before { transform: translateX(18px); }
[dir="rtl"] .switch input:checked + .track::before { transform: translateX(-18px); }

/* radio cards */
.radio-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 14px; }
.radio-card {
  border: 2px solid var(--border); border-radius: var(--r-lg); padding: 18px; cursor: pointer;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-start; transition: all .16s; background: var(--surface);
}
.radio-card:hover { border-color: var(--brand-primary); }
.radio-card.sel { border-color: var(--brand-primary); background: var(--primary-tint-2); }
.radio-card .rc-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-tint); color: var(--brand-primary); }
.radio-card .rc-icon iconify-icon { font-size: 24px; }
.radio-card b { color: var(--heading); font-size: 14.5px; }
.radio-card span { font-size: 12.5px; color: var(--muted); }

/* ===== Tabs ===== */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); }
.tab { padding: 12px 18px; font-size: 14px; font-weight: 600; color: var(--muted); background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -1px; display: flex; align-items: center; gap: 8px; }
.tab:hover { color: var(--heading); }
.tab.active { color: var(--brand-primary); border-bottom-color: var(--brand-primary); }
.tab .cnt { background: var(--surface-3); color: var(--muted); font-size: 11.5px; font-weight: 700; padding: 1px 8px; border-radius: 100px; }
.tab.active .cnt { background: var(--primary-tint); color: var(--brand-primary); }

/* ===== Modal ===== */
.overlay { position: fixed; inset: 0; background: rgba(8,20,32,.5); backdrop-filter: blur(4px); display: grid; place-items: center; z-index: 100; padding: 24px; animation: fade .18s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-dropdown); width: 100%; max-width: 560px; max-height: 90vh; display: flex; flex-direction: column; animation: pop .2s cubic-bezier(.2,.8,.3,1.1); border: 1px solid var(--border); }
.modal.md { max-width: 720px; } .modal.lg { max-width: 960px; } .modal.sm { max-width: 420px; }
.modal.overflow-visible, .modal.overflow-visible .modal__body { overflow: visible !important; }
@keyframes pop { from { transform: scale(.96) translateY(8px); opacity: 0; } }
.modal__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.modal__head h3 { font-size: 17px; font-weight: 700; }
.modal__body { padding: 22px; overflow-y: auto; }
.modal__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--border); }

/* ===== Toasts ===== */
.toasts { position: fixed; bottom: 22px; inset-inline-end: 22px; display: flex; flex-direction: column; gap: 11px; z-index: 200; }
.toast {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--shadow-dropdown); padding: 13px 16px; display: flex; align-items: center; gap: 12px;
  min-width: 300px; max-width: 380px; border-inline-start: 4px solid var(--brand-primary);
  animation: slidein .25s cubic-bezier(.2,.8,.3,1);
}
@keyframes slidein { from { transform: translateX(40px); opacity: 0; } }
[dir="rtl"] .toast { animation-name: slideinr; }
@keyframes slideinr { from { transform: translateX(-40px); opacity: 0; } }
.toast.success { border-inline-start-color: var(--brand-success); }
.toast.error { border-inline-start-color: var(--brand-danger); }
.toast.warning { border-inline-start-color: var(--brand-yellow); }
.toast.info { border-inline-start-color: var(--brand-primary); }
.toast iconify-icon { font-size: 22px; flex-shrink: 0; }
.toast.success iconify-icon { color: var(--brand-success); }
.toast.error iconify-icon { color: var(--brand-danger); }
.toast.warning iconify-icon { color: var(--brand-yellow); }
.toast.info iconify-icon { color: var(--brand-primary); }
.toast b { display: block; font-size: 13.5px; color: var(--heading); }
.toast span { font-size: 12.5px; color: var(--muted); }

/* ===== Dropdown menu ===== */
.menu { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-dropdown); min-width: 200px; padding: 6px; z-index: 50; animation: pop .15s; }
.menu button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: var(--r-sm); border: none; background: none; font-family: inherit; font-size: 13.5px; color: var(--text); text-align: start; }
.menu button:hover { background: var(--surface-2); color: var(--brand-primary); }
.menu button.danger:hover { background: var(--danger-tint); color: var(--brand-danger); }
.menu button iconify-icon { font-size: 18px; }
.menu .sep { height: 1px; background: var(--border); margin: 5px 0; }

/* ===== Progress ===== */
.progress { height: 8px; border-radius: 100px; background: var(--surface-3); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 100px; background: var(--brand-secondary); }

/* ===== Empty / skeleton ===== */
.empty { text-align: center; padding: 56px 24px; }
.empty .ill { width: 90px; height: 90px; margin: 0 auto 16px; border-radius: 50%; background: var(--primary-tint); display: grid; place-items: center; color: var(--brand-primary); }
.empty .ill iconify-icon { font-size: 44px; }
.empty h4 { font-size: 17px; margin-bottom: 6px; }
.empty p { color: var(--muted); margin: 0 0 18px; font-size: 13.5px; }
.skel { background: var(--surface-3); animation: skelpulse 1.4s ease-in-out infinite; border-radius: var(--r-sm); }
@keyframes skelpulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }

/* ===== Timeline ===== */
.timeline { position: relative; padding-inline-start: 26px; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.tl-item { position: relative; padding-bottom: 22px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; inset-inline-start: -26px; top: 2px; width: 16px; height: 16px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 2px var(--border); }
.tl-dot.info { background: var(--brand-primary); box-shadow: 0 0 0 2px var(--brand-primary); }
.tl-dot.del { background: var(--brand-danger); box-shadow: 0 0 0 2px var(--brand-danger); }
.tl-dot.ok { background: var(--brand-success); box-shadow: 0 0 0 2px var(--brand-success); }
.tl-meta { font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.tl-body { font-size: 13.5px; color: var(--text); }

/* status step indicator */
.steps { display: flex; align-items: center; }
.step { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; position: relative; }
.step .dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); border: 2px solid var(--border); z-index: 2; }
.step .dot iconify-icon { font-size: 18px; }
.step.done .dot { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }
.step.cur .dot { background: var(--brand-secondary); color: #fff; border-color: var(--brand-secondary); box-shadow: 0 0 0 4px var(--secondary-tint); }
.step .lbl { font-size: 12px; color: var(--muted); text-align: center; }
.step.done .lbl, .step.cur .lbl { color: var(--heading); font-weight: 600; }
.step .bar { position: absolute; top: 17px; height: 2px; background: var(--border); inset-inline-start: 50%; width: 100%; z-index: 1; }
.step.done .bar { background: var(--brand-primary); }
.step:last-child .bar { display: none; }

/* misc */
.divider { height: 1px; background: var(--border); margin: 16px 0; }
.dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font-size: 13.5px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; color: var(--heading); font-weight: 500; }
.sect-title { font-size: 13px; font-weight: 700; color: var(--heading); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.sect-title iconify-icon { color: var(--brand-primary); font-size: 18px; }

/* course / banner cards */
.media-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-card); transition: transform .18s, box-shadow .18s; display: flex; flex-direction: column; }
.media-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-raised); }
.media-thumb { aspect-ratio: 16/9; position: relative; display: grid; place-items: center; color: #fff; overflow: hidden; }
.media-thumb .ov { position: absolute; inset: 0; background: rgba(0,0,0,.28); }

/* responsive sidebar */
.scrim { display: none; }
@media (max-width: 900px) {
  .sidebar { position: fixed; inset-inline-start: 0; top: 0; transform: translateX(-100%); box-shadow: var(--shadow-dropdown); }
  [dir="rtl"] .sidebar { transform: translateX(100%); }
  .sidebar.mobile-open { transform: translateX(0); }
  .scrim.show { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 35; }
  .topbar__search { display: none; }
  .main { margin: 0 !important; border-radius: 0; }
  .topbar { padding: 0 16px; height: var(--topbar-h); }
  .content { padding: 16px; }
}
.fade-in { animation: fadein .3s ease; }
.branch-card { transition: transform .18s, box-shadow .18s, border-color .18s; }
.branch-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-raised); border-color: var(--brand-primary); }
.settings-nav-item { width: 100%; display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: var(--r-md); border: none; background: none; font-family: inherit; font-size: 14px; font-weight: 500; color: var(--text); text-align: start; transition: all .14s; margin: 1px 0; }
.settings-nav-item iconify-icon { font-size: 20px; color: var(--faint); }
.settings-nav-item:hover { background: var(--surface-2); color: var(--heading); }
.settings-nav-item[data-active="true"] { background: var(--primary-tint); color: var(--brand-primary); font-weight: 600; }
.settings-nav-item[data-active="true"] iconify-icon { color: var(--brand-primary); }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } }

/* Theme Toggle Pill in Sidebar */
.theme-toggle-pill {
  display: flex;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-full);
  padding: 3px;
  gap: 2px;
  align-items: center;
}
.theme-toggle-pill button {
  background: none;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.45);
  padding: 0;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.theme-toggle-pill button:hover {
  color: #fff;
}
.theme-toggle-pill button.active {
  background: var(--brand-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 136, 199, 0.4);
}
.collapsed-theme-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
  padding: 0;
}
.collapsed-theme-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: scale(1.05);
}

/* --- Sidebar Submenu CSS --- */
.submenu {
  display: flex;
  flex-direction: column;
  position: relative;
  border-inline-start: 1.5px solid rgba(255, 255, 255, 0.14);
  margin-inline-start: 26px !important;
  padding-inline-start: 14px !important;
  margin-top: 4px;
  margin-bottom: 8px;
}
.submenu-item {
  position: relative;
  border-radius: 8px !important;
  margin: 2px 0;
  transition: all 0.2s ease !important;
  width: 100%;
}
.submenu-item::before {
  content: "";
  position: absolute;
  top: 50%;
  inset-inline-start: -17px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: 1.5px solid #003059; /* matches --sidebar-bg */
  transform: translateY(-50%);
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 2;
}
.submenu-item:hover::before,
.submenu-item.active-sub::before {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  transform: translateY(-50%) scale(1.3);
  box-shadow: 0 0 6px var(--brand-primary);
}
.submenu-item:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #fff !important;
  padding-inline-start: 16px !important;
}
.submenu-item.active-sub {
  color: var(--brand-primary) !important;
}
[data-theme="dark"] .submenu-item:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}

.phone-mockup {
  width: 100%;
  max-width: 290px;
  height: 560px;
  background: #000;
  border: 6px solid #0d0d0d;
  border-radius: 44px;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 0 0 1.5px #2a2a2c,
    0 0 0 3.5px #6c6c70,
    0 0 0 4.5px #0d0d0d,
    0 18px 40px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  color: #fff;
  margin: 0 auto;
  font-family: system-ui, -apple-system, sans-serif;
}
.phone-mockup__screen {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  background: linear-gradient(to bottom, #111e14, #12141c);
  border-radius: 38px;
}
/* Notch as Dynamic Island */
.phone-mockup__notch {
  width: 78px;
  height: 24px;
  background: #000;
  border-radius: 14px;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  box-shadow: inset 0 0 2px rgba(255,255,255,0.15);
}
.phone-mockup__status-bar {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 9.5px;
  font-weight: 600;
  padding: 6px 14px 2px;
  margin-top: 6px;
  opacity: 0.9;
  z-index: 5;
}
.phone-mockup__time {
  margin-top: 36px;
  text-align: center;
}
.phone-mockup__time-val {
  font-size: 38px;
  font-weight: 300;
  line-height: 1;
}
.phone-mockup__date-val {
  font-size: 11.5px;
  font-weight: 500;
  opacity: 0.8;
  margin-top: 4px;
}
/* mobile lockscreen notification banner */
.phone-mockup__notification {
  margin-top: auto;
  margin-bottom: 24px;
  width: 100%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  transform: translateY(0);
  animation: notifSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  direction: rtl;
}
[dir="ltr"] .phone-mockup__notification {
  direction: ltr;
}
@keyframes notifSlideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.phone-mockup__notif-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 600;
  opacity: 0.8;
}
.phone-mockup__notif-icon {
  width: 18px;
  height: 18px;
  background: var(--brand-primary);
  border-radius: 4px;
  display: grid;
  place-items: center;
  color: #fff;
}
.phone-mockup__notif-icon img {
  width: 12px;
  height: 12px;
}
.phone-mockup__notif-appname {
  flex: 1;
  text-align: start;
}
.phone-mockup__notif-time {
  opacity: 0.7;
}
.phone-mockup__notif-content {
  text-align: start;
}
.phone-mockup__notif-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
  word-break: break-word;
}
.phone-mockup__notif-body {
  font-size: 11.5px;
  opacity: 0.9;
  line-height: 1.4;
  word-break: break-word;
  max-height: 65px;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* segment control custom */
.notif-segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 6px;
  border-radius: 12px;
  margin-bottom: 16px;
}
@media (max-width: 1200px) {
  .notif-segmented {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 640px) {
  .notif-segmented {
    grid-template-columns: 1fr;
  }
}
.notif-segment-btn {
  background: transparent;
  border: none;
  padding: 10px 6px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.notif-segment-btn iconify-icon {
  font-size: 20px;
  color: var(--faint);
  transition: transform 0.2s;
}
.notif-segment-btn:hover {
  background: var(--surface-hover);
  color: var(--heading);
}
.notif-segment-btn:hover iconify-icon {
  transform: scale(1.1);
}
.notif-segment-btn.active {
  background: var(--surface);
  color: var(--brand-primary);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  margin: -1px;
}
.notif-segment-btn.active iconify-icon {
  color: var(--brand-primary);
}

/* Sent History List updates */
.notif-feed-item {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s, transform 0.2s;
}
.notif-feed-item:hover {
  background: var(--surface-hover);
}
.notif-feed-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.notif-feed-item:hover .notif-feed-icon-box {
  transform: scale(1.05);
}
.notif-feed-body {
  flex: 1;
  min-width: 0;
}
.notif-feed-title {
  font-weight: 700;
  color: var(--heading);
  font-size: 14px;
  margin-bottom: 4px;
}
.notif-feed-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
  align-items: center;
}
.notif-feed-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}
.notif-feed-meta-item iconify-icon {
  font-size: 14px;
}
.notif-feed-actions {
  display: flex;
  align-items: center;
  align-self: center;
  opacity: 0;
  transition: opacity 0.2s;
}
.notif-feed-item:hover .notif-feed-actions {
  opacity: 1;
}

/* --- Redesigned Premium Banner Card Styles --- */
.banner-premium-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.banner-premium-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-raised), 0 10px 24px rgba(0, 0, 0, 0.04);
}
.banner-gradient-thumb {
  aspect-ratio: 16/9;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  color: #fff;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.banner-gradient-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.55) 100%);
  z-index: 1;
}
.banner-badge-order {
  background: rgba(0, 48, 89, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  z-index: 2;
  border: 1px solid rgba(255,255,255,0.15);
}
.banner-status-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 700;
  z-index: 2;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.15);
}
.banner-status-tag.active {
  background: rgba(81, 164, 84, 0.85);
  color: #fff;
}
.banner-status-tag.draft {
  background: rgba(120, 120, 120, 0.8);
  color: #fff;
}
.banner-status-glow {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px #fff;
}
.banner-status-glow.pulse {
  animation: bannerGlow 1.8s infinite ease-in-out;
}
@keyframes bannerGlow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}
.banner-card-content {
  z-index: 2;
  margin-top: auto;
  text-align: start;
}
.banner-card-title {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  margin-bottom: 2px;
}
.banner-card-subtitle {
  font-size: 11.5px;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.banner-analytics-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 12px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  gap: 8px;
}
.banner-stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: start;
}
.banner-stat-item span {
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
}
.banner-stat-item b {
  font-size: 13px;
  color: var(--heading);
  font-weight: 700;
}
.banner-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
}
.banner-drag-handle {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  cursor: grab;
}
.banner-drag-handle iconify-icon {
  font-size: 16px;
  color: var(--faint);
}

