/* ==========================================================================
   Centimetar — Admin panel (BAU design system: teal + red)
   ========================================================================== */

:root {
  --teal: #0f5157;
  --teal-dark: #082c30;
  --teal-light: #1a7a82;
  --teal-50:  #e7f0f1;
  --teal-100: #cfe1e3;
  --red: #d92b19;
  --red-dark: #b91c1c;
  --white: #ffffff;
  --bg: #f4f4f1;
  --bg-soft: #fafaf8;
  --text: #1a1a1a;
  --text-mid: #555;
  --text-muted: #8a8a8a;
  --border: #e5e5e2;
  --border-strong: #d6d6d2;
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #dc2626;
  --info: #2563eb;
  --shadow-sm: 0 1px 2px rgba(15, 81, 87, 0.04), 0 1px 3px rgba(15, 81, 87, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 81, 87, 0.08);
  --shadow-lg: 0 8px 28px rgba(15, 81, 87, 0.12);
  --radius: 6px;
  --radius-lg: 10px;
}

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

body {
  font-family: 'DM Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--teal); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--teal-light); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea {
  font-family: inherit; font-size: 14px;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  width: 100%;
  outline: none;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 81, 87, 0.12);
}
textarea { resize: vertical; min-height: 80px; }
label { font-weight: 500; font-size: 13px; color: var(--text-mid); }
hr { border: 0; border-top: 1px solid var(--border); margin: 16px 0; }

/* ===== LOGIN ===== */
.login-body {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  padding: 24px;
  font-family: 'DM Sans', sans-serif;
}
.login-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 24px 60px rgba(8, 44, 48, 0.4);
}
.login-card h1 {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 28px;
  margin-bottom: 4px;
  text-align: center;
  color: var(--teal);
}
.login-card h1::after {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
  margin-left: 6px;
  vertical-align: middle;
  margin-bottom: 4px;
}
.login-card > p { text-align: center; color: var(--text-mid); margin-bottom: 30px; font-size: 14px; }
.login-card .form-group { margin-bottom: 18px; }
.login-card label { display: block; font-weight: 500; margin-bottom: 6px; font-size: 13px; color: var(--text); }
.login-footer { text-align: center; margin-top: 24px; font-size: 13px; }
.login-footer a { color: var(--text-muted); }
.login-footer a:hover { color: var(--teal); }

/* ===== ADMIN LAYOUT ===== */
.admin-body { display: flex; min-height: 100vh; background: var(--bg); }

.admin-backdrop,
.admin-menu-btn { display: none; }

/* ===== SIDEBAR ===== */
.admin-sidebar {
  width: 260px;
  background: var(--teal);
  color: rgba(255, 255, 255, 0.85);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  flex-shrink: 0;
}

.admin-logo {
  padding: 24px 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.admin-logo a {
  font-family: 'Archivo', sans-serif;
  color: var(--white);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: block;
}
.admin-logo a::after {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--red);
  border-radius: 50%;
  margin-left: 6px;
  vertical-align: middle;
}
.admin-logo small {
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}
.admin-nav-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 6px;
}

.admin-nav { padding: 14px 0; flex: 1; }
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 24px;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.admin-nav a .i,
.admin-nav a svg { color: inherit; opacity: 0.85; flex-shrink: 0; }
.admin-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}
.admin-nav a:hover .i,
.admin-nav a:hover svg { opacity: 1; }
.admin-nav a.active {
  background: var(--teal-dark);
  color: var(--white);
  font-weight: 600;
  border-left-color: var(--red);
}
.admin-nav a.active .i,
.admin-nav a.active svg { opacity: 1; color: var(--white); }
.admin-nav .logout {
  color: rgba(255, 200, 200, 0.85);
  margin-top: 4px;
}
.admin-nav .logout:hover { color: #ffd6d2; background: rgba(217, 43, 25, 0.18); }
.admin-nav hr {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 14px 24px;
}

/* ===== MAIN ===== */
.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.admin-header {
  background: var(--white);
  padding: 18px 30px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.admin-header h1 {
  font-family: 'Archivo', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--teal);
  flex: 1;
}
.admin-user {
  font-size: 14px;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-user::before {
  content: "";
  display: inline-block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--teal-50);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f5157' stroke-width='2'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
  background-size: 18px;
  background-position: center;
  background-repeat: no-repeat;
}

.admin-content { padding: 28px 30px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--white);
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s;
  line-height: 1.2;
}
.btn:hover { background: var(--bg); border-color: var(--text-muted); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.6; cursor: not-allowed; }

.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--white);
}

.btn-danger {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-danger:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: var(--white);
}

.btn-success {
  background: var(--success);
  color: var(--white);
  border-color: var(--success);
}
.btn-success:hover { background: #15803d; border-color: #15803d; color: var(--white); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--teal);
  color: var(--teal);
}
.btn-outline:hover {
  background: var(--teal-50);
  color: var(--teal-dark);
}

.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-large { padding: 12px 24px; font-size: 15px; }
.btn-block { display: block; width: 100%; }

/* ===== CARDS ===== */
.card,
.admin-card,
.panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.card h3 {
  font-family: 'Archivo', sans-serif;
  font-size: 17px;
  margin-bottom: 16px;
  color: var(--text);
  font-weight: 700;
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 12px;
}
.card-header h3 { margin: 0; }

/* ===== STATS GRID ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.15s;
  border-left: 4px solid var(--teal);
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.stat-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  background: var(--teal-50);
  color: var(--teal);
  flex-shrink: 0;
}
.stat-info { flex: 1; min-width: 0; }
.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 600;
}
.stat-value {
  font-family: 'Archivo', sans-serif;
  font-size: 26px;
  font-weight: 800;
  margin-top: 4px;
  color: var(--text);
}

.stat-card.primary {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: var(--white);
  border-left-color: var(--red);
}
.stat-card.primary .stat-icon { background: rgba(255, 255, 255, 0.15); color: var(--white); }
.stat-card.primary .stat-label { color: rgba(255, 255, 255, 0.7); }
.stat-card.primary .stat-value { color: var(--white); }

.stat-card.success { border-left-color: var(--success); }
.stat-card.success .stat-icon { background: #d1fae5; color: var(--success); }

.stat-card.warning { border-left-color: var(--warning); }
.stat-card.warning .stat-icon { background: #fef3c7; color: #92400e; }

.stat-card.danger,
.stat-card.error { border-left-color: var(--danger); }
.stat-card.danger .stat-icon,
.stat-card.error .stat-icon { background: #fee2e2; color: var(--danger); }

/* ===== TABLES ===== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.data-table th {
  text-align: left;
  padding: 12px 16px;
  background: var(--bg-soft);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-mid);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover { background: var(--teal-50); }
.data-table .thumb {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--bg);
}

.table-scroll {
  overflow-x: auto;
  margin: -4px;
  padding: 4px;
  border-radius: var(--radius-lg);
}

.table-input {
  width: 100%;
  padding: 6px 8px;
  font-size: 13px;
}
.table-input-sm { min-width: 78px; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--text);
}
.form-group small,
.form-help {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.checkbox { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 500; }
.checkbox input { width: auto; }
.compact-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  font-size: 13px;
  cursor: pointer;
}

/* ===== BADGES ===== */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.badge-blue { background: #dbeafe; color: #1e40af; }
.badge-gray { background: #f3f4f6; color: #374151; }
.badge-green { background: #d1fae5; color: #065f46; }
.badge-orange { background: #fed7aa; color: #9a3412; }
.badge-purple { background: #ede9fe; color: #5b21b6; }
.badge-red { background: #fee2e2; color: #991b1b; }
.badge-yellow { background: #fef3c7; color: #92400e; }
.badge-teal { background: var(--teal-50); color: var(--teal-dark); }

/* ===== FLASH MESSAGES ===== */
.flash {
  padding: 14px 18px;
  margin: 20px 30px 0;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  border-left: 4px solid var(--teal);
  background: var(--teal-50);
  color: var(--teal-dark);
}
.flash-success { border-left-color: var(--success); background: #d1fae5; color: #065f46; }
.flash-error,
.flash-danger { border-left-color: var(--danger); background: #fee2e2; color: #991b1b; }
.flash-warning { border-left-color: var(--warning); background: #fef3c7; color: #92400e; }
.flash-info { border-left-color: var(--info); background: #dbeafe; color: #1e40af; }

/* ===== SEARCH BAR ===== */
.search-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: center;
}
.search-bar input { flex: 1; min-width: 220px; }
.search-bar select { width: auto; min-width: 140px; }

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  gap: 4px;
  margin-top: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.pagination a {
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 500;
  font-size: 14px;
  background: var(--white);
  transition: all 0.15s;
}
.pagination a:hover { background: var(--teal-50); border-color: var(--teal); color: var(--teal); }
.pagination a.active {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

/* ===== PAGE ACTIONS ===== */
.page-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

/* ===== DASHBOARD ===== */
.dashboard-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.dashboard-analytics-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.dashboard-analytics-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
  gap: 12px;
}
.dashboard-analytics-header h3 {
  font-family: 'Archivo', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.dashboard-analytics-header p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.dashboard-chart-shell {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 16px;
}
.dashboard-line-chart { width: 100%; }
.dashboard-line-chart svg { width: 100%; height: auto; }

.chart-bg { fill: var(--bg-soft); }
.chart-grid-line { stroke: var(--border); stroke-width: 1; }
.chart-line { fill: none; stroke-width: 2; }
.chart-line-blue { stroke: var(--info); }
.chart-line-green { stroke: var(--success); }
.chart-dot { stroke: var(--white); stroke-width: 2; }
.chart-dot-blue { fill: var(--info); }
.chart-dot-green { fill: var(--success); }
.chart-axis-label { fill: var(--text-muted); font-size: 11px; }
.chart-empty { fill: var(--text-muted); font-size: 12px; }

.dashboard-chart-legend {
  display: flex;
  gap: 18px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-mid);
}
.dashboard-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dashboard-chart-legend span::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: currentColor;
}

.dashboard-memory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.memory-card {
  background: var(--bg-soft);
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.memory-card small {
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 600;
}
.memory-card strong {
  display: block;
  font-family: 'Archivo', sans-serif;
  font-size: 22px;
  font-weight: 800;
  margin-top: 4px;
  color: var(--text);
}
.memory-card span { font-size: 12px; color: var(--text-mid); }
.memory-purchases strong { color: var(--success); }
.memory-registrations strong { color: var(--info); }

/* ===== ORDER BOARD (kanban) ===== */
.order-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.order-lane {
  background: var(--white);
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.order-lane h4 {
  font-family: 'Archivo', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-mid);
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}
.order-lane h4 span {
  background: var(--bg);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 11px;
  color: var(--text-mid);
}
.order-lane-new       { border-left: 4px solid var(--red); }
.order-lane-on_hold   { border-left: 4px solid #eab308; }
.order-lane-processing{ border-left: 4px solid var(--warning); }
.order-lane-shipped   { border-left: 4px solid var(--info); }

.order-mini-card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 8px;
  border: 1px solid var(--border);
}
.order-mini-card b { font-size: 13px; color: var(--text); }
.order-mini-card span { color: var(--text-muted); font-size: 13px; }
.order-mini-card select { padding: 6px 8px; font-size: 12px; margin-top: 6px; }

.order-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg);
  font-size: 12px;
}
.order-status-chip strong { font-weight: 600; }
.order-status-chip span { color: var(--text-muted); }

.order-status-new        { border-left: 4px solid var(--red); }
.order-status-on_hold    { border-left: 4px solid #eab308; }
.order-status-processing { border-left: 4px solid var(--warning); }
.order-status-shipped    { border-left: 4px solid var(--info); }
.order-status-strip { padding: 12px 16px; background: var(--bg-soft); border-radius: var(--radius); margin-bottom: 16px; }

.order-totals { background: var(--bg-soft); padding: 16px; border-radius: var(--radius); }
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
}
.summary-row.total {
  border-top: 1px solid var(--border-strong);
  margin-top: 8px;
  padding-top: 12px;
  font-weight: 700;
  font-size: 16px;
  color: var(--teal);
}

/* ===== RECENT ORDERS LIST (dashboard) ===== */
.recent-orders-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.recent-order-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  font-size: 13px;
  border-left: 3px solid var(--teal);
}
.recent-order-row span { color: var(--text); font-weight: 500; }
.recent-order-row em { font-style: normal; color: var(--text-mid); }
.recent-order-row small { color: var(--text-muted); font-size: 11px; }

/* ===== REVIEWS ===== */
.admin-stars {
  display: inline-flex;
  gap: 1px;
  color: var(--border-strong);
  font-size: 13px;
}
.admin-stars .filled { color: var(--warning); }

.admin-reviews-table .td-actions {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.admin-reviews-table small { color: var(--text-muted); display: block; margin-top: 2px; }
.review-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

/* ===== SETTINGS ===== */
.settings-image-preview {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 8px;
}
.settings-image-preview img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.smtp-status {
  background: var(--bg-soft);
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.smtp-status p { margin: 4px 0; font-size: 13px; color: var(--text-mid); }
.field-action-link {
  color: var(--teal);
  font-size: 13px;
  text-decoration: underline;
}

/* ===== PRODUCT SETS (related) ===== */
.set-admin-product {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  margin-bottom: 6px;
}
.set-admin-product img {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  object-fit: cover;
}
.set-admin-product small { color: var(--text-muted); font-size: 11px; }

/* ===== ADMIN ORDERS PANEL ===== */
.admin-orders-panel { grid-column: 1 / -1; }

/* ===== MAIN TAG ===== */
.main-tag {
  display: inline-block;
  padding: 3px 8px;
  background: var(--teal);
  color: var(--white);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.25s;
    z-index: 100;
    width: 80%;
    max-width: 280px;
  }
  .admin-sidebar.open { transform: translateX(0); box-shadow: var(--shadow-lg); }
  .admin-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(8, 44, 48, 0.5);
    z-index: 90;
  }
  .admin-backdrop.show { display: block; }
  .admin-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--teal);
    padding: 6px;
    cursor: pointer;
  }
  .admin-nav-close { display: inline-flex; }
  .admin-content { padding: 20px 16px; }
  .admin-header { padding: 14px 16px; }
  .admin-header h1 { font-size: 18px; }
  .flash { margin-left: 16px; margin-right: 16px; }
}

@media (min-width: 901px) {
  .admin-nav-close { display: none; }
}
