/**
 * SES Loyalty Club — Admin Panel Styles
 */

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

:root {
  --primary: #4CAF50;
  --primary-dark: #388E3C;
  --primary-light: #C8E6C9;
  --secondary: #FF6B35;
  --bg: #F0F2F5;
  --surface: #FFFFFF;
  --text: #1A1A2E;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --border: #E5E7EB;
  --sidebar-bg: #111827;
  --sidebar-text: #D1D5DB;
  --sidebar-active: #1F2937;
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  --info: #3B82F6;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.08);
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow: hidden;
  height: 100vh;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.app-container {
  display: flex;
  height: 100vh;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  width: 260px;
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: transform var(--transition);
  z-index: 100;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
}

.logo-title {
  font-size: 16px;
  font-weight: 800;
  color: white;
}

.logo-subtitle {
  display: block;
  font-size: 11px;
  color: var(--sidebar-text);
  font-weight: 500;
}

.sidebar-close {
  display: none;
  background: none;
  border: none;
  color: var(--sidebar-text);
  font-size: 18px;
  cursor: pointer;
}

/* Nav */
.sidebar-nav {
  flex: 1;
  padding: 12px 8px;
  overflow-y: auto;
}

.nav-section {
  margin-bottom: 20px;
}

.nav-section-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #6B7280;
  letter-spacing: 1.2px;
  padding: 0 12px;
  margin-bottom: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--sidebar-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
  position: relative;
}

.nav-item:hover {
  background: rgba(255,255,255,0.06);
  color: white;
}

.nav-item.active {
  background: var(--primary);
  color: white;
  font-weight: 600;
}

.nav-item i {
  width: 20px;
  text-align: center;
  font-size: 15px;
}

.nav-badge {
  margin-left: auto;
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

.nav-badge.warning {
  background: var(--warning);
}

.nav-item.active .nav-badge {
  background: rgba(255,255,255,0.3);
}

/* Sidebar footer */
.sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--info));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 13px;
  font-weight: 700;
}

.user-name {
  font-size: 14px;
  font-weight: 600;
  color: white;
}

.user-role {
  display: block;
  font-size: 11px;
  color: var(--sidebar-text);
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Top bar */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  gap: 16px;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text);
  cursor: pointer;
}

.page-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-bar {
  display: flex;
  align-items: center;
  background: var(--bg);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  gap: 8px;
  min-width: 240px;
}

.search-bar i {
  color: var(--text-muted);
  font-size: 14px;
}

.search-bar input {
  border: none;
  background: none;
  outline: none;
  font-size: 14px;
  color: var(--text);
  width: 100%;
  font-family: inherit;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 16px;
  position: relative;
  transition: all var(--transition);
}

.icon-btn:hover {
  background: var(--border);
}

.notif-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--error);
}

/* Pages */
.page {
  display: none;
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.page.active {
  display: block;
}

/* ============================================================
   KPI CARDS
   ============================================================ */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.kpi-data {
  display: flex;
  flex-direction: column;
}

.kpi-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}

.kpi-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.kpi-trend {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 8px;
}

.kpi-trend.up {
  color: var(--success);
  background: #10B98115;
}

.kpi-trend.down {
  color: var(--error);
  background: #EF444415;
}

/* ============================================================
   CHARTS
   ============================================================ */
.charts-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.chart-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.chart-header h3 {
  font-size: 16px;
  font-weight: 700;
}

.chart-filter {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text-secondary);
  background: var(--bg);
  cursor: pointer;
  outline: none;
}

/* Bar chart */
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 180px;
  padding-top: 20px;
}

.bar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
  justify-content: flex-end;
}

.bar-item .bar {
  width: 100%;
  max-width: 48px;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, var(--primary), var(--primary-light));
  transition: height 0.6s ease;
  min-height: 8px;
}

.bar-item .bar.active {
  background: linear-gradient(180deg, var(--secondary), #FFB088);
}

.bar-item span {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Center stats */
.center-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.center-stat-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.center-stat-info {
  display: flex;
  justify-content: space-between;
}

.center-stat-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.center-stat-pct {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
}

.progress-bar {
  height: 8px;
  background: var(--bg);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
}

/* ============================================================
   DATA TABLES
   ============================================================ */
.table-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.table-header h3 {
  font-size: 16px;
  font-weight: 700;
}

.view-all-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.view-all-link:hover {
  text-decoration: underline;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid #F3F4F6;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background: #FAFAFA;
}

.user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary-light);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}

.status-badge.pending {
  background: #F59E0B15;
  color: var(--warning);
}

.status-badge.review {
  background: #3B82F615;
  color: var(--info);
}

.status-badge.approved {
  background: #10B98115;
  color: var(--success);
}

.status-badge.rejected {
  background: #EF444415;
  color: var(--error);
}

/* Action buttons */
.action-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all var(--transition);
  margin-right: 4px;
}

.action-btn.approve {
  background: #10B98115;
  color: var(--success);
}

.action-btn.approve:hover {
  background: var(--success);
  color: white;
}

.action-btn.reject {
  background: #EF444415;
  color: var(--error);
}

.action-btn.reject:hover {
  background: var(--error);
  color: white;
}

.action-btn.edit {
  background: #3B82F615;
  color: var(--info);
}

.action-btn.edit:hover {
  background: var(--info);
  color: white;
}

.action-btn.delete {
  background: #EF444415;
  color: var(--error);
}

.action-btn.delete:hover {
  background: var(--error);
  color: white;
}

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

.filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-select {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
  outline: none;
  min-width: 160px;
}

.filter-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
}

.search-input {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  min-width: 200px;
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
}

.primary-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--bg);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
}

.secondary-btn:hover {
  background: var(--border);
}

/* ============================================================
   REWARDS GRID
   ============================================================ */
.rewards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.reward-admin-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all var(--transition);
}

.reward-admin-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.reward-admin-top {
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.reward-admin-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.reward-admin-info h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.reward-admin-info p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

.reward-admin-tags {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.reward-tag {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}

.reward-admin-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--bg);
  border-top: 1px solid #F3F4F6;
}

.reward-admin-points {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
}

.reward-admin-actions {
  display: flex;
  gap: 6px;
}

/* ============================================================
   CENTERS GRID
   ============================================================ */
.centers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

.center-admin-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all var(--transition);
}

.center-admin-card:hover {
  box-shadow: var(--shadow-lg);
}

.center-admin-header {
  padding: 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
}

.center-admin-header h3 {
  font-size: 18px;
  font-weight: 800;
}

.center-admin-header p {
  font-size: 13px;
  opacity: 0.8;
  margin-top: 4px;
}

.center-admin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}

.center-stat {
  background: var(--surface);
  padding: 14px;
  text-align: center;
}

.center-stat-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}

.center-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.center-admin-footer {
  display: flex;
  gap: 8px;
  padding: 14px 20px;
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 200;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--surface);
  border-radius: 20px;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: modalIn 0.3s ease;
}

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

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 {
  font-size: 18px;
  font-weight: 800;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg);
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.modal-close:hover {
  background: var(--border);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}

/* Form */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: all var(--transition);
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
}

textarea.form-input {
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ============================================================
   SETTINGS
   ============================================================ */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 20px;
}

.settings-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.settings-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.settings-card h3 i {
  color: var(--primary);
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #F3F4F6;
  font-size: 14px;
}

.setting-input {
  width: 80px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  text-align: center;
  outline: none;
}

.setting-input:focus {
  border-color: var(--primary);
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
}

.empty-state i {
  font-size: 48px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 400px;
}

/* ============================================================
   TIER BADGES (admin)
   ============================================================ */
.tier-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.tier-badge.bronze { background: #CD7F3220; color: #8B5C1A; }
.tier-badge.silver { background: #C0C0C020; color: #6B6B6B; }
.tier-badge.gold { background: #FFD70020; color: #B8860B; }
.tier-badge.vip { background: #9B59B620; color: #6A1B9A; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .charts-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-close {
    display: block;
  }

  .hamburger {
    display: block;
  }

  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .search-bar {
    display: none;
  }

  .page {
    padding: 16px;
  }

  .rewards-grid,
  .centers-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   CENTER CARDS
   ============================================================ */
.center-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all var(--transition);
}

.center-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.center-card-header {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.center-card-header h3 {
  font-size: 18px;
  font-weight: 700;
}

.center-city {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.center-card-stats {
  display: flex;
  gap: 20px;
  padding: 0 20px 16px;
}

.center-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}

.center-stat i {
  color: var(--text-muted);
  font-size: 12px;
}

.center-stat span {
  font-weight: 700;
  color: var(--text);
}

.center-card-address {
  padding: 12px 20px;
  background: var(--bg);
  font-size: 13px;
  color: var(--text-muted);
}

.center-card-address i {
  margin-right: 6px;
  color: var(--error);
}

#centers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

/* ============================================================
   CATEGORIES LIST
   ============================================================ */
.categories-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}

.category-item {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all var(--transition);
}

.category-item:hover {
  box-shadow: var(--shadow-lg);
}

.category-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.category-info {
  flex: 1;
}

.category-info strong {
  display: block;
  font-size: 15px;
}

.category-info small {
  color: var(--text-muted);
  font-size: 12px;
}

.category-actions {
  display: flex;
  gap: 4px;
}

/* ============================================================
   REWARD CARDS
   ============================================================ */
.reward-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  position: relative;
  transition: all var(--transition);
}

.reward-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.reward-card.inactive {
  opacity: 0.5;
}

.reward-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.reward-type {
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.reward-tier {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.reward-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.reward-card p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.4;
}

.reward-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.reward-points {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

.reward-points i {
  margin-right: 4px;
  color: var(--warning);
}

.reward-center {
  font-size: 12px;
  color: var(--text-muted);
}

.reward-card-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity var(--transition);
}

.reward-card:hover .reward-card-actions {
  opacity: 1;
}

.reward-quantity {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Tier badge */
.tier-badge {
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Center badge in tables */
.center-badge {
  font-size: 13px;
  font-weight: 600;
}
