/* ═══════════════════════════════════════════════════════════════
   BRIGHT Admin — Kinetic Onyx Design System
   ═══════════════════════════════════════════════════════════════ */

:root {
  --surface:        #131313;
  --surface-c:      #1C1C1C;
  --surface-ch:     #222222;
  --surface-chh:    #2A2A2A;
  --on-surface:     #F0EDE8;
  --on-surface-v:   #9E9890;
  --primary:        #FFB800;
  --primary-dark:   #271900;
  --outline-v:      rgba(255,255,255,0.08);
  --error:          #FF5252;
  --green:          #4CAF50;
  --blue:           #42A5F5;
  --purple:         #AB47BC;
  --radius-sm:      12px;
  --radius-md:      20px;
  --radius-lg:      28px;
  --radius-xl:      40px;
  --sidebar-w:      260px;
  --topbar-h:       64px;
}

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

html { font-size: 16px; }

body {
  font-family: 'Cairo', sans-serif;
  background: var(--surface);
  color: var(--on-surface);
  direction: rtl;
  min-height: 100vh;
  overflow-x: hidden;
}

.hidden { display: none !important; }
.mt-32  { margin-top: 32px; }

/* ── Scrollbar ──────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface-chh); border-radius: 99px; }

/* ═══════════════════════════ LOGIN PAGE ════════════════════════════ */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.login-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.blob-1 {
  width: 500px; height: 500px;
  top: -150px; right: -150px;
  background: radial-gradient(circle, rgba(255,184,0,.06) 0%, transparent 70%);
}
.blob-2 {
  width: 400px; height: 400px;
  bottom: -100px; left: -100px;
  background: radial-gradient(circle, rgba(255,184,0,.04) 0%, transparent 70%);
}

.login-card {
  width: 100%;
  max-width: 440px;
  background: rgba(28,28,28,0.85);
  border: 1px solid var(--outline-v);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  backdrop-filter: blur(24px);
  box-shadow: 0 40px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(255,184,0,.04);
  position: relative;
  z-index: 1;
}

.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 32px;
}
.brand-text {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 8px;
  background: linear-gradient(135deg, #FFBA20, #FFB800);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.brand-sub {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--on-surface-v);
  margin-top: 2px;
}

.login-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--on-surface);
  text-align: center;
}
.login-desc {
  font-size: 13px;
  color: var(--on-surface-v);
  text-align: center;
  margin-top: 6px;
  margin-bottom: 32px;
}
.login-hint {
  font-size: 11px;
  color: var(--on-surface-v);
  text-align: center;
  margin-top: 16px;
  opacity: 0.5;
}
.login-error {
  background: rgba(255,82,82,.12);
  border: 1px solid rgba(255,82,82,.3);
  color: var(--error);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
  text-align: center;
}
.login-line {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(135deg, #FFBA20, #FFB800);
  box-shadow: 0 0 40px rgba(255,184,0,.6);
}

/* ═══════════════════════════ APP SHELL ═════════════════════════════ */
.app-shell {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar ─────────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--surface-c);
  border-left: 1px solid var(--outline-v);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  transition: transform .3s ease;
}

.sidebar-brand {
  padding: 28px 24px 20px;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--outline-v);
  margin-bottom: 8px;
}
.sidebar .brand-text { font-size: 24px; letter-spacing: 6px; }
.sidebar .brand-sub  { font-size: 9px; letter-spacing: 3px; }

.sidebar-nav {
  flex: 1;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  color: var(--on-surface-v);
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: all .2s;
  text-decoration: none;
  position: relative;
  user-select: none;
}
.nav-item svg { width: 20px; height: 20px; flex-shrink: 0; }
.nav-item:hover { background: var(--surface-ch); color: var(--on-surface); }
.nav-item.active {
  background: rgba(255,184,0,.1);
  color: var(--primary);
}
.nav-item.active svg { stroke: var(--primary); }

.nav-badge {
  margin-right: auto;
  background: var(--surface-chh);
  color: var(--on-surface-v);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  min-width: 24px;
  text-align: center;
}
.nav-badge.gold {
  background: rgba(255,184,0,.15);
  color: var(--primary);
}

.btn-logout {
  margin: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: transparent;
  border: 1px solid rgba(255,82,82,.2);
  border-radius: var(--radius-md);
  color: var(--error);
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
}
.btn-logout:hover { background: rgba(255,82,82,.08); }
.btn-logout svg { flex-shrink: 0; }

/* ── Main Content ────────────────────────────────────────────────── */
.main-content {
  flex: 1;
  margin-right: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Topbar ──────────────────────────────────────────────────────── */
.topbar {
  height: var(--topbar-h);
  background: var(--surface-c);
  border-bottom: 1px solid var(--outline-v);
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar-title {
  flex: 1;
  font-size: 17px;
  font-weight: 800;
  color: var(--on-surface);
}
.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--on-surface-v);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
}
.sidebar-toggle:hover { background: var(--surface-ch); color: var(--on-surface); }

.topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--on-surface-v);
}
.user-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFBA20, #FFB800);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 15px;
}

/* ── Sections ────────────────────────────────────────────────────── */
.section {
  display: none;
  padding: 32px 28px;
  flex: 1;
}
.section.active { display: block; }

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}
.page-title {
  font-size: 26px;
  font-weight: 900;
  color: var(--on-surface);
}
.page-sub {
  font-size: 13px;
  color: var(--on-surface-v);
  margin-top: 4px;
}

/* ── Stats Grid ──────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.stat-card {
  background: var(--surface-c);
  border: 1px solid var(--outline-v);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: transform .2s;
}
.stat-card:hover { transform: translateY(-2px); }

.stat-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stat-icon svg { width: 24px; height: 24px; }
.stat-icon.gold   { background: rgba(255,184,0,.12); color: var(--primary); }
.stat-icon.green  { background: rgba(76,175,80,.12);  color: var(--green); }
.stat-icon.blue   { background: rgba(66,165,245,.12); color: var(--blue); }
.stat-icon.purple { background: rgba(171,71,188,.12); color: var(--purple); }
.stat-icon.gold svg   { stroke: var(--primary); }
.stat-icon.green svg  { stroke: var(--green); }
.stat-icon.blue svg   { stroke: var(--blue); }
.stat-icon.purple svg { stroke: var(--purple); }

.stat-value {
  font-size: 28px;
  font-weight: 900;
  color: var(--on-surface);
  line-height: 1;
}
.stat-label {
  font-size: 12px;
  color: var(--on-surface-v);
  margin-top: 6px;
  font-weight: 600;
}

/* ── Card ────────────────────────────────────────────────────────── */
.card {
  background: var(--surface-c);
  border: 1px solid var(--outline-v);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--outline-v);
}
.card-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--on-surface);
}

/* ── Table ───────────────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.data-table th {
  padding: 14px 16px;
  text-align: right;
  font-weight: 700;
  font-size: 12px;
  color: var(--on-surface-v);
  background: var(--surface-ch);
  border-bottom: 1px solid var(--outline-v);
  white-space: nowrap;
}
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--outline-v);
  color: var(--on-surface);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: rgba(255,255,255,.02); }

.product-img-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}
.product-thumb {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--surface-chh);
  object-fit: cover;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  overflow: hidden;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-name { font-weight: 700; }
.product-desc-cell { font-size: 12px; color: var(--on-surface-v); margin-top: 2px; }

/* ── Badges ──────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.badge-active    { background: rgba(76,175,80,.12);  color: var(--green); }
.badge-inactive  { background: rgba(158,152,144,.1); color: var(--on-surface-v); }
.badge-hot       { background: linear-gradient(135deg,#FFBA20,#FFB800); color: var(--primary-dark); }
.badge-pending   { background: rgba(255,184,0,.12);  color: var(--primary); }
.badge-shipping  { background: rgba(66,165,245,.12); color: var(--blue); }
.badge-delivered { background: rgba(76,175,80,.12);  color: var(--green); }
.badge-cancelled { background: rgba(255,82,82,.12);  color: var(--error); }

/* ── Action Buttons ──────────────────────────────────────────────── */
.action-btns { display: flex; gap: 6px; align-items: center; }
.btn-icon {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
}
.btn-icon svg { width: 15px; height: 15px; stroke-width: 2; }
.btn-icon.edit   { background: rgba(66,165,245,.12);  color: var(--blue); }
.btn-icon.delete { background: rgba(255,82,82,.12);   color: var(--error); }
.btn-icon.view   { background: rgba(171,71,188,.12);  color: var(--purple); }
.btn-icon.edit:hover   { background: rgba(66,165,245,.25); }
.btn-icon.delete:hover { background: rgba(255,82,82,.25); }
.btn-icon.view:hover   { background: rgba(171,71,188,.25); }

/* ── Filter Bar ──────────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}
.search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  stroke: var(--on-surface-v);
  pointer-events: none;
}
.search-input {
  width: 100%;
  padding: 0 42px 0 16px;
  height: 44px;
  background: var(--surface-c);
  border: 1px solid var(--outline-v);
  border-radius: 99px;
  color: var(--on-surface);
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  font-weight: 600;
  direction: rtl;
  outline: none;
  transition: border-color .2s;
}
.search-input:focus { border-color: rgba(255,184,0,.3); }
.search-input::placeholder { color: var(--on-surface-v); opacity: .5; }

.select-input {
  height: 44px;
  padding: 0 14px;
  background: var(--surface-c);
  border: 1px solid var(--outline-v);
  border-radius: 99px;
  color: var(--on-surface);
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  font-weight: 600;
  direction: rtl;
  cursor: pointer;
  outline: none;
  appearance: none;
  padding-left: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239E9890' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
}
.select-input:focus { border-color: rgba(255,184,0,.3); }
.select-input option { background: var(--surface-ch); }

/* ── Categories Grid ─────────────────────────────────────────────── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.category-card {
  background: var(--surface-c);
  border: 1px solid var(--outline-v);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  position: relative;
  transition: transform .2s, border-color .2s;
}
.category-card:hover { transform: translateY(-3px); border-color: rgba(255,184,0,.15); }
.category-emoji {
  width: 60px; height: 60px;
  background: rgba(255,184,0,.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.category-name  { font-size: 15px; font-weight: 800; color: var(--on-surface); }
.category-count { font-size: 12px; color: var(--on-surface-v); }
.category-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

/* ═══════════════════════════ BUTTONS ═══════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  height: 44px;
  background: linear-gradient(135deg, #FFBA20, #FFB800);
  color: var(--primary-dark);
  border: none;
  border-radius: 99px;
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
  white-space: nowrap;
}
.btn-primary:hover   { opacity: .9; transform: translateY(-1px); }
.btn-primary:active  { transform: translateY(0); }
.btn-primary.btn-full { width: 100%; justify-content: center; height: 52px; font-size: 16px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  height: 44px;
  background: transparent;
  color: var(--on-surface-v);
  border: 1px solid var(--outline-v);
  border-radius: 99px;
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
}
.btn-ghost:hover { background: var(--surface-ch); color: var(--on-surface); }

.btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  height: 44px;
  background: rgba(255,82,82,.15);
  color: var(--error);
  border: 1px solid rgba(255,82,82,.3);
  border-radius: 99px;
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: all .2s;
}
.btn-danger:hover { background: rgba(255,82,82,.25); }

/* ═══════════════════════════ FORMS ═════════════════════════════════ */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--on-surface-v);
  letter-spacing: 1px;
}

.input-wrap { position: relative; }
.input-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  stroke: var(--on-surface-v);
  pointer-events: none;
}

.field-input {
  width: 100%;
  height: 48px;
  background: var(--surface-chh);
  border: 1px solid var(--outline-v);
  border-radius: 99px;
  color: var(--on-surface);
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  font-weight: 600;
  direction: rtl;
  padding: 0 44px 0 16px;
  outline: none;
  transition: border-color .2s;
}
.input-wrap .field-input { padding-right: 44px; }
.field-input:not(.input-wrap .field-input) { padding-right: 16px; }
.field-input:focus { border-color: rgba(255,184,0,.4); }
.field-input::placeholder { color: var(--on-surface-v); opacity: .4; font-weight: 500; }
.field-input option { background: var(--surface-ch); }

.field-textarea {
  height: auto;
  min-height: 90px;
  border-radius: 20px;
  padding: 12px 16px;
  resize: vertical;
}

.checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--on-surface-v);
}
.checkbox-wrap input { display: none; }
.checkmark {
  width: 20px; height: 20px;
  border: 1.5px solid var(--outline-v);
  border-radius: 6px;
  background: var(--surface-chh);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .15s;
}
.checkbox-wrap input:checked ~ .checkmark {
  background: var(--primary);
  border-color: var(--primary);
}
.checkbox-wrap input:checked ~ .checkmark::after {
  content: '✓';
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 900;
}

/* ═══════════════════════════ MODALS ════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}

.modal {
  background: var(--surface-c);
  border: 1px solid var(--outline-v);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 40px 80px rgba(0,0,0,.6);
  animation: modalIn .25s ease;
}
.modal.modal-sm { max-width: 420px; }

@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--outline-v);
}
.modal-title  { font-size: 18px; font-weight: 900; color: var(--on-surface); }
.modal-close  {
  width: 32px; height: 32px;
  background: var(--surface-chh);
  border: none;
  border-radius: var(--radius-sm);
  color: var(--on-surface-v);
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
}
.modal-close:hover { background: rgba(255,82,82,.15); color: var(--error); }

.modal-body   { padding: 24px 28px; }
.modal-footer {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  padding: 20px 28px 24px;
  border-top: 1px solid var(--outline-v);
}

.confirm-text {
  color: var(--on-surface-v);
  font-size: 14px;
  line-height: 1.7;
}

/* ═══════════════════════════ TOAST ═════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-chh);
  border: 1px solid var(--outline-v);
  color: var(--on-surface);
  padding: 12px 24px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 700;
  z-index: 9999;
  white-space: nowrap;
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
  animation: toastIn .3s ease;
}
.toast.success { border-color: rgba(76,175,80,.4); color: var(--green); }
.toast.error   { border-color: rgba(255,82,82,.4); color: var(--error); }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── Empty State ─────────────────────────────────────────────────── */
.empty-row td {
  text-align: center;
  padding: 48px !important;
  color: var(--on-surface-v);
  font-size: 14px;
}

/* ═══════════════════════════ RESPONSIVE ════════════════════════════ */
@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }

  .sidebar {
    transform: translateX(100%);
    width: 260px;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: -40px 0 80px rgba(0,0,0,.6);
  }
  .sidebar-toggle { display: flex; }
  .main-content { margin-right: 0; }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-row   { grid-template-columns: 1fr; }
  .section    { padding: 20px 16px; }
  .topbar     { padding: 0 16px; }
  .login-card { padding: 32px 24px; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Banners Grid ──────────────────────────────────────────────────────────── */
.banners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 4px;
}

.banner-card {
  background: var(--surface-container);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  transition: border-color .2s;
}
.banner-card:hover { border-color: rgba(255,184,0,.25); }
.banner-card.banner-disabled { opacity: .5; }

.banner-img {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}
.banner-emoji-big {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  background: rgba(255,184,0,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  flex-shrink: 0;
}
.banner-info { flex: 1; min-width: 0; }
.banner-title-text { font-weight: 800; font-size: 15px; color: var(--on-surface); }
.banner-subtitle-text { font-size: 12px; color: var(--on-surface-v); margin-top: 4px; }
.banner-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ── Notification Templates ───────────────────────────────────────────────── */
.template-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface-ch);
  border: 1px solid var(--outline-v);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all .15s;
  font-size: 13px;
  font-weight: 600;
  color: var(--on-surface);
}
.template-item:hover { background: var(--surface-chh); border-color: rgba(255,184,0,.25); }
.template-emoji { font-size: 18px; flex-shrink: 0; }

/* ── Icon Picker (category/subcategory icon) ──────────────────────────────── */
.icon-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.icon-picker-btn {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-ch);
  border: 1.5px solid var(--outline-v);
  border-radius: var(--radius-sm);
  color: var(--on-surface-v);
  cursor: pointer;
  transition: all .15s;
}
.icon-picker-btn svg { width: 22px; height: 22px; stroke-width: 2; }
.icon-picker-btn:hover { background: var(--surface-chh); color: var(--on-surface); }
.icon-picker-btn.active {
  background: rgba(255,184,0,.12);
  border-color: var(--primary);
  color: var(--primary);
}

/* ── Image Upload ──────────────────────────────────────────────────────────── */
.image-upload-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
}
.image-upload-wrap .field-input { flex: 1; }

.btn-upload {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  height: 44px;
  background: rgba(255,184,0,.1);
  border: 1px solid rgba(255,184,0,.3);
  border-radius: 12px;
  color: var(--primary);
  font-family: 'Cairo', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s;
}
.btn-upload:hover { background: rgba(255,184,0,.2); }

.image-preview {
  margin-top: 10px;
  border-radius: 12px;
  overflow: hidden;
  max-height: 160px;
  border: 1px solid rgba(255,255,255,.08);
}
.image-preview img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
