/* ==================== 珠宝通 · PC管理端 共享样式 ==================== */
/* 设计风格：深色侧边栏 + 金色主调 + 暖白底 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; }
body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f5f3ef;
  color: #333;
  min-height: 100vh;
  display: flex;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }

/* ---------- Sidebar ---------- */
.sidebar {
  width: 220px;
  min-height: 100vh;
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #fff;
  position: fixed;
  left: 0; top: 0; bottom: 0;
  overflow-y: auto;
  z-index: 100;
  transition: width .3s;
}
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(140, 119, 102, 0.2);
  border-radius: 10px;
  transition: background 0.2s ease;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(140, 119, 102, 0.45);
}
.sidebar[data-admin-nav] { visibility: hidden; }
.sidebar[data-admin-nav].nav-ready { visibility: visible; }
.sidebar-logo {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  text-align: center;
}
.sidebar-logo .logo-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, #d4a574, #c9956c);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin: 0 auto 10px;
  box-shadow: 0 4px 15px rgba(212,165,116,.3);
}
.sidebar-logo h1 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #d4a574;
}
.sidebar-logo p {
  font-size: 11px;
  color: rgba(255,255,255,.45);
  margin-top: 4px;
}

/* Nav Groups */
.nav-group {
  padding: 16px 0 8px;
}
.nav-group-title {
  padding: 0 20px;
  font-size: 11.5px;
  color: rgba(255,255,255,.35);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  font-weight: 600;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  color: rgba(255,255,255,.65);
  font-size: 13px;
  cursor: pointer;
  transition: all .25s ease;
  border-left: 3px solid transparent;
}
.nav-item:hover {
  background: rgba(255,255,255,.06);
  color: #fff;
  padding-left: 23px;
  border-left-color: rgba(212, 165, 116, 0.4);
}
.nav-item.active {
  background: rgba(212,165,116,.12);
  color: #d4a574;
  border-left-color: #d4a574;
  padding-left: 23px;
}
.nav-item .icon {
  width: 20px;
  min-width: 20px;
  flex: 0 0 20px;
  overflow: hidden;
  text-align: center;
  font-size: 15px;
}
.nav-badge {
  margin-left: auto;
  background: #e74c3c;
  color: #fff;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 700;
}

/* ---------- Main Content ---------- */
.main {
  margin-left: 220px;
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.admin-main {
  margin-left: 220px;
  flex: 1;
  min-width: 0;
  min-height: 100vh;
  padding: 24px;
}

/* Top Bar */
.topbar {
  height: 56px;
  background: #fff;
  border-bottom: 1px solid #e8e4de;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #999;
}
.breadcrumb span { color: #333; font-weight: 500; }
.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.topbar-btn {
  background: none;
  border: none;
  font-size: 18px;
  color: #666;
  cursor: pointer;
  position: relative;
}
.topbar-btn .dot {
  position: absolute;
  top: -2px; right: -2px;
  width: 8px; height: 8px;
  background: #e74c3c;
  border-radius: 50%;
}
.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.user-avatar {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, #d4a574, #c9956c);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.user-name { font-size: 13px; color: #333; }

/* Content Area */
.content {
  flex: 1;
  padding: 24px;
}
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.page-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
}
.page-subtitle {
  font-size: 13px;
  color: #999;
  margin-top: 4px;
}

/* ---------- Cards & Panels ---------- */
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  overflow: hidden;
}
.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid #f0ece4;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a2e;
}
.card-body { padding: 20px; }

/* Stat Cards */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  transition: transform .2s, box-shadow .2s;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.stat-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.stat-icon.gold { background: linear-gradient(135deg, #fef9ef, #fdebd0); color: #d4a574; }
.stat-icon.blue { background: linear-gradient(135deg, #ebf5fb, #d4e6f1); color: #3498db; }
.stat-icon.green { background: linear-gradient(135deg, #eafaf1, #d5f5e3); color: #27ae60; }
.stat-icon.red { background: linear-gradient(135deg, #fdedec, #fadbd8); color: #e74c3c; }
.stat-icon.purple { background: linear-gradient(135deg, #f4ecf7, #e8daef); color: #8e44ad; }
.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1;
}
.stat-label {
  font-size: 13px;
  color: #999;
  margin-top: 4px;
}
.stat-trend {
  font-size: 12px;
  margin-top: 4px;
}
.stat-trend.up { color: #27ae60; }
.stat-trend.down { color: #e74c3c; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all .2s;
  white-space: nowrap;
}
.btn:disabled {
  cursor: not-allowed;
  opacity: .55;
  box-shadow: none;
  transform: none;
}
.btn-primary {
  background: linear-gradient(135deg, #d4a574, #c9956c);
  color: #fff;
  box-shadow: 0 2px 8px rgba(212,165,116,.3);
}
.btn-primary:hover {
  box-shadow: 0 4px 12px rgba(212,165,116,.4);
  transform: translateY(-1px);
}
.btn-secondary {
  background: #f5f3ef;
  color: #666;
  border: 1px solid #e0dbd2;
}
.btn-secondary:hover { background: #ebe7df; }
.btn-success { background: #27ae60; color: #fff; }
.btn-success:hover { background: #219a52; }
.btn-danger { background: #e74c3c; color: #fff; }
.btn-danger:hover { background: #c0392b; }
.btn-warning { background: #f39c12; color: #fff; }
.btn-warning:hover { background: #d68910; }
.btn-outline {
  background: transparent;
  color: #d4a574;
  border: 1px solid #d4a574;
}
.btn-outline:hover { background: rgba(212,165,116,.08); }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-lg { padding: 12px 28px; font-size: 15px; }
.btn-group { display: flex; gap: 8px; }

/* ---------- Forms ---------- */
.form-group {
  margin-bottom: 16px;
}
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #555;
  margin-bottom: 6px;
}
.form-required::before {
  content: '*';
  color: #e74c3c;
  margin-right: 4px;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 13px;
  transition: border-color .2s, box-shadow .2s;
  background: #fff;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #d4a574;
  box-shadow: 0 0 0 3px rgba(212,165,116,.15);
}
.form-textarea { resize: vertical; min-height: 80px; }
.form-hint {
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* Toggle Switch */
.toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.toggle input { display: none; }
.toggle-track {
  width: 40px; height: 22px;
  background: #ddd;
  border-radius: 11px;
  position: relative;
  transition: background .2s;
}
.toggle input:checked + .toggle-track { background: #d4a574; }
.toggle-track::after {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  top: 2px; left: 2px;
  transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.toggle input:checked + .toggle-track::after { transform: translateX(18px); }

/* Checkbox / Radio */
.checkbox-group,
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.check-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #f9f7f3;
  border: 1px solid #e8e4de;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
}
.check-item:hover { border-color: #d4a574; }
.check-item.active,
.check-item input:checked + span {
  background: rgba(212,165,116,.12);
  border-color: #d4a574;
  color: #b8834a;
}

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  border-bottom: 1px solid #f0ece4;
}
th {
  background: #faf8f4;
  font-weight: 600;
  color: #666;
  white-space: nowrap;
}
tr:hover td { background: #fdfcfa; }
.table-img {
  width: 48px; height: 48px;
  border-radius: 8px;
  object-fit: cover;
  background: #f0ece4;
}
.table-actions {
  display: flex;
  gap: 8px;
}

/* ---------- Tags / Badges ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}
.tag-gold { background: #fef9ef; color: #b8834a; border: 1px solid #fdebd0; }
.tag-blue { background: #ebf5fb; color: #2980b9; border: 1px solid #d4e6f1; }
.tag-green { background: #eafaf1; color: #1e8449; border: 1px solid #d5f5e3; }
.tag-red { background: #fdedec; color: #c0392b; border: 1px solid #fadbd8; }
.tag-purple { background: #f4ecf7; color: #7d3c98; border: 1px solid #e8daef; }
.tag-orange { background: #fef5e7; color: #ca6f1e; border: 1px solid #fdebd0; }
.tag-gray { background: #f2f3f4; color: #7f8c8d; border: 1px solid #e5e8e8; }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}
.status-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
}
.status-pending { background: #fef9ef; color: #b8834a; }
.status-pending::before { background: #f39c12; }
.status-confirmed { background: #ebf5fb; color: #2980b9; }
.status-confirmed::before { background: #3498db; }
.status-shipped { background: #eafaf1; color: #1e8449; }
.status-shipped::before { background: #27ae60; }
.status-cancelled { background: #fdedec; color: #c0392b; }
.status-cancelled::before { background: #e74c3c; }
.status-weighing { background: #f4ecf7; color: #7d3c98; }
.status-weighing::before { background: #8e44ad; }

/* Hot Badge */
.hot-badge {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
}
.incentive-badge {
  background: linear-gradient(135deg, #8e44ad, #6c3483);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
}

/* ---------- Tabs ---------- */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #f0ece4;
  margin-bottom: 20px;
}
.tab-item {
  padding: 10px 20px;
  font-size: 14px;
  color: #999;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all .2s;
}
.tab-item:hover { color: #666; }
.tab-item.active {
  color: #d4a574;
  font-weight: 600;
  border-bottom-color: #d4a574;
}

/* ---------- Filter Bar ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  align-items: center;
}
.filter-bar .form-input,
.filter-bar .form-select {
  width: auto;
  min-width: 140px;
}
.search-box {
  position: relative;
}
.search-box .form-input {
  padding-left: 36px;
  min-width: 240px;
}
.search-box::before {
  content: '🔍';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
}

/* ---------- Upload Area ---------- */
.upload-area {
  border: 2px dashed #d4a574;
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  background: #fefbf6;
}
.upload-area:hover {
  background: #fdf6eb;
  border-color: #c9956c;
}
.upload-icon {
  font-size: 48px;
  margin-bottom: 12px;
}
.upload-text {
  font-size: 15px;
  color: #666;
  margin-bottom: 4px;
}
.upload-hint {
  font-size: 12px;
  color: #999;
}

/* Image Grid */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.image-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1;
  background: #f0ece4;
}
.image-item img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.image-item .remove-btn {
  position: absolute;
  top: 6px; right: 6px;
  width: 24px; height: 24px;
  background: rgba(0,0,0,.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.modal-overlay.active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}
body.modal-open .modal-overlay.active,
body.modal-open .modal-overlay.active .modal,
body.modal-open .modal-overlay.active .modal * {
  pointer-events: auto;
}
body.modal-open .main,
body.modal-open .sidebar {
  pointer-events: none;
}
body.modal-open {
  overflow: hidden;
}
body.modal-open .modal-overlay {
  pointer-events: auto;
}
.modal {
  position: relative;
  z-index: 2001;
  isolation: isolate;
  background: #fff;
  border-radius: 16px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  transform: translateY(20px);
  transition: transform .3s;
}
.modal-overlay.active .modal { transform: translateY(0); }
.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #f0ece4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  background: #fff;
  position: relative;
  z-index: 2;
}
.modal-title {
  font-size: 17px;
  font-weight: 700;
}
.modal-close {
  background: none;
  border: none;
  font-size: 20px;
  color: #999;
  cursor: pointer;
}
.modal-body {
  padding: 24px;
  overflow-y: auto;
}
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #f0ece4;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-shrink: 0;
  background: #fff;
  position: relative;
  z-index: 2;
}

/* ---------- Toast ---------- */
.admin-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  min-width: 240px;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 12px;
  color: #fff;
  font-size: 13px;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease;
  z-index: 1200;
}
.admin-toast.show {
  opacity: 1;
  transform: translateY(0);
}
.admin-toast.success { background: linear-gradient(135deg, #1e8449, #27ae60); }
.admin-toast.error { background: linear-gradient(135deg, #c0392b, #e74c3c); }
.admin-toast.info { background: linear-gradient(135deg, #7d3c98, #8e44ad); }

/* ---------- Empty State ---------- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}
.empty-state .icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: .5;
}
.empty-state p { font-size: 14px; }

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 24px;
}
.pagination button {
  min-width: 36px; height: 36px;
  border: 1px solid #e0dbd2;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  color: #666;
  transition: all .2s;
}
.pagination button:hover { border-color: #d4a574; color: #d4a574; }
.pagination button.active {
  background: #d4a574;
  color: #fff;
  border-color: #d4a574;
}
.pagination button:disabled {
  opacity: .4;
  cursor: not-allowed;
}

/* ---------- Charts Placeholder ---------- */
.chart-placeholder {
  width: 100%;
  height: 260px;
  background: linear-gradient(135deg, #fefbf6 0%, #f5f0e8 100%);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #b8834a;
}
.chart-placeholder .bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 120px;
  margin-bottom: 12px;
}
.chart-placeholder .bar {
  width: 24px;
  background: linear-gradient(180deg, #d4a574, #c9956c);
  border-radius: 4px 4px 0 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .sidebar { width: 60px; }
  .sidebar .nav-item span:not(.icon),
  .sidebar .nav-group-title,
  .sidebar .nav-badge,
  .sidebar-logo h1,
  .sidebar-logo p { display: none; }
  .sidebar-logo { padding: 16px 8px; }
  .nav-item { padding: 12px; justify-content: center; }
  .main { margin-left: 60px; }
  .admin-main { margin-left: 60px; }
}

@media (max-width: 600px) {
  .sidebar { width: 56px; }
  .main { margin-left: 56px; min-width: 0; }
  .admin-main { margin-left: 56px; padding: 16px 12px; overflow-x: hidden; }
  .content { padding: 16px 12px; min-width: 0; overflow-x: hidden; }
  .topbar { height: 52px; padding: 0 12px; }
  .breadcrumb { font-size: 12px; gap: 5px; }
  .user-name { max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .page-header { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 16px; }
  .page-title { font-size: 18px; }
  .page-subtitle { line-height: 1.5; }
  .page-header .btn-group { flex-wrap: wrap; width: 100%; }
  .page-header .btn-group .btn { flex: 1 1 auto; justify-content: center; }
  .card-header { padding: 14px 16px; gap: 10px; flex-wrap: wrap; }
  .card-body { padding: 16px; }
  .stat-grid { grid-template-columns: 1fr; gap: 12px; margin-bottom: 16px; }
  .stat-card { padding: 16px; }
  .form-row { grid-template-columns: 1fr; gap: 12px; }
  .filter-bar { align-items: stretch; gap: 8px; }
  .filter-bar .form-input, .filter-bar .form-select, .search-box, .search-box .form-input { width: 100%; min-width: 0; }
  .tabs { overflow-x: auto; white-space: nowrap; }
  .tab-item { padding: 9px 14px; }
  .table-wrap { max-width: 100%; overflow-x: auto; }
  .table-actions { flex-wrap: wrap; }
  .modal { width: calc(100% - 24px); max-height: 88vh; }
  .modal-header, .modal-body, .modal-footer { padding-left: 16px; padding-right: 16px; }
  .modal-footer { flex-wrap: wrap; }
  .modal-footer .btn { flex: 1 1 120px; justify-content: center; }
  .upload-area { padding: 24px 16px; }
  .image-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pagination { flex-wrap: wrap; }
  .sidebar-session { margin: 12px 8px 18px; text-align: center; }
  .session-user { display: none; }
  .session-logout { width: 36px; height: 30px; padding: 0; font-size: 0; }
  .session-logout::after { content: '>'; font-size: 16px; }
}

/* ---------- Animations ---------- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn .4s ease; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}
.pulse { animation: pulse 2s infinite; }

/* ---------- Grid Layouts ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

@media (max-width: 1200px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Misc Utilities ---------- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-gold { color: #d4a574; }
.text-red { color: #e74c3c; }
.text-green { color: #27ae60; }
.text-muted { color: #999; }
.text-sm { font-size: 12px; }
.text-lg { font-size: 16px; }
.font-bold { font-weight: 700; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-1 { flex: 1; }
.w-full { width: 100%; }
.sidebar-session { margin: 12px 16px 18px; padding: 10px 0 14px; border-bottom: 1px solid rgba(255,255,255,.12); }
.session-user { color: rgba(255,255,255,.75); font-size: 12px; margin-bottom: 8px; }
.session-logout { border: 1px solid rgba(255,255,255,.3); background: transparent; color: rgba(255,255,255,.85); padding: 6px 10px; cursor: pointer; font-size: 12px; }
