/* ============================================
   天堂2资料站 共享样式
   Dark Fantasy Theme with Gold Accents
   ============================================ */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@300;400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700;900&display=swap');

/* CSS Custom Properties */
:root {
  /* Core Colors */
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-card: #1a1f2e;
  --bg-card-hover: #222840;
  --bg-sidebar: #0d1120;
  --bg-input: #1a1f2e;

  /* Gold Accent System */
  --gold-primary: #d4a853;
  --gold-light: #f0c674;
  --gold-dark: #a07830;
  --gold-glow: rgba(212, 168, 83, 0.3);
  --gold-subtle: rgba(212, 168, 83, 0.1);

  /* Text Colors */
  --text-primary: #e8e6e3;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --text-gold: #f0c674;

  /* Rarity Colors */
  --grade-d: #9ca3af;
  --grade-c: #4ade80;
  --grade-b: #60a5fa;
  --grade-a: #c084fc;
  --grade-s: #fb923c;
  --grade-s80: #f87171;
  --grade-r: #f43f5e;

  /* Border Colors */
  --border-primary: #2a3040;
  --border-gold: rgba(212, 168, 83, 0.3);
  --border-subtle: rgba(255, 255, 255, 0.06);

  /* Status Colors */
  --hp-red: #ef4444;
  --mp-blue: #3b82f6;
  --cp-green: #22c55e;
  --xp-purple: #a855f7;

  /* Spacing */
  --sidebar-width: 260px;
  --header-height: 64px;
  --content-max-width: 1400px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 400ms ease;
}

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-dark);
}

/* ============================================
   Layout System
   ============================================ */

/* App Container */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-primary);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal);
}

.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-primary);
  text-align: center;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  color: var(--gold-light);
}

.sidebar-logo svg {
  width: 36px;
  height: 36px;
  fill: var(--gold-primary);
  filter: drop-shadow(0 0 8px var(--gold-glow));
}

.sidebar-logo-text {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 1px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar-logo-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 4px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

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

.nav-section-title {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 16px 20px 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: all var(--transition-fast);
  border-left: 3px solid transparent;
  cursor: pointer;
}

.nav-item:hover {
  color: var(--text-primary);
  background: rgba(212, 168, 83, 0.05);
  border-left-color: var(--gold-dark);
}

.nav-item.active {
  color: var(--gold-light);
  background: rgba(212, 168, 83, 0.1);
  border-left-color: var(--gold-primary);
}

.nav-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.7;
}

.nav-item.active svg {
  opacity: 1;
  fill: var(--gold-primary);
}

.nav-item-badge {
  margin-left: auto;
  background: var(--gold-primary);
  color: var(--bg-primary);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-primary);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

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

/* Top Header Bar */
.top-header {
  height: var(--header-height);
  background: rgba(10, 14, 23, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-primary);
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
}

/* Search Bar */
.search-bar {
  flex: 1;
  max-width: 560px;
  position: relative;
}

.search-bar input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-primary);
  border-radius: 8px;
  padding: 10px 16px 10px 42px;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition-fast);
}

.search-bar input::placeholder {
  color: var(--text-muted);
}

.search-bar input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px var(--gold-subtle);
}

.search-bar .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-bar .search-icon svg {
  width: 18px;
  height: 18px;
}

.search-bar .search-shortcut {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Global search suggestions */
.global-suggest {
  display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 999;
  background: var(--bg-primary); border: 1px solid var(--border-gold); border-radius: 0 0 10px 10px;
  max-height: 420px; overflow-y: auto; box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  margin-top: 4px;
}
.global-suggest.show { display: block; }
.global-suggest-section {
  padding: 8px 0;
}
.global-suggest-section + .global-suggest-section {
  border-top: 1px solid var(--border-subtle);
}
.global-suggest-label {
  padding: 4px 16px; font-size: 0.65rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1px;
}
.global-suggest-item {
  padding: 7px 16px; font-size: 0.82rem; cursor: pointer;
  display: flex; align-items: center; gap: 6px; transition: background 80ms;
}
.global-suggest-item:hover, .global-suggest-item.active { background: rgba(212,168,83,0.1); }
.global-suggest-item .gs-badges { flex-shrink: 0; display: inline-flex; align-items: center; gap: 3px; min-width: 68px; }
.global-suggest-item .gs-name { flex: 1; min-width: 0; color: var(--text-primary); }
.global-suggest-item .gs-name b { color: var(--gold-light); }
.global-suggest-item .gs-meta { font-size: 0.68rem; color: var(--text-muted); flex-shrink: 0; }

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-btn {
  background: none;
  border: 1px solid var(--border-primary);
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
}

.header-btn:hover {
  border-color: var(--gold-primary);
  color: var(--gold-light);
}

.header-btn svg {
  width: 16px;
  height: 16px;
}

/* Content Container */
.page-content {
  flex: 1;
  padding: 24px;
  max-width: var(--content-max-width);
  width: 100%;
}

/* ============================================
   Common Components
   ============================================ */

/* Breadcrumbs */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--gold-light);
}

.breadcrumb .separator {
  color: var(--text-muted);
}

.breadcrumb .current {
  color: var(--text-primary);
}

/* Page Title */
.page-title {
  font-family: 'Chakra Petch', 'Noto Sans SC', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.page-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* Card System */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: 12px;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.card:hover {
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
}

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

.card-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.card-body {
  padding: 20px;
}

.card-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border-primary);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Gold Border Card - Special */
.card-gold {
  border: 1px solid var(--gold-dark);
  box-shadow: 0 0 20px rgba(212, 168, 83, 0.05);
}

.card-gold .card-header {
  background: linear-gradient(135deg, rgba(212, 168, 83, 0.1), transparent);
  border-bottom-color: var(--border-gold);
}

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

/* Tab System */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border-primary);
  margin-bottom: 20px;
  gap: 4px;
}

.tab-btn {
  padding: 10px 20px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-family: inherit;
  cursor: pointer;
  position: relative;
  transition: color var(--transition-fast);
}

.tab-btn:hover {
  color: var(--text-primary);
}

.tab-btn.active {
  color: var(--gold-light);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold-primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  align-items: center;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.filter-select,
.filter-input {
  background: var(--bg-input);
  border: 1px solid var(--border-primary);
  border-radius: 6px;
  padding: 8px 12px;
  color: var(--text-primary);
  font-size: 0.8rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition-fast);
}

.filter-select:focus,
.filter-input:focus {
  border-color: var(--gold-primary);
}

.filter-select option {
  background: var(--bg-secondary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  color: var(--bg-primary);
  border-color: var(--gold-primary);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
  box-shadow: 0 0 20px var(--gold-glow);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-primary);
}

.btn-secondary:hover {
  border-color: var(--gold-primary);
  color: var(--gold-light);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--gold-light);
  background: var(--gold-subtle);
}

.btn-sm {
  padding: 5px 10px;
  font-size: 0.75rem;
}

/* Badge / Tag System */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-d { background: rgba(156, 163, 175, 0.15); color: var(--grade-d); border: 1px solid rgba(156, 163, 175, 0.3); }
.badge-c { background: rgba(74, 222, 128, 0.15); color: var(--grade-c); border: 1px solid rgba(74, 222, 128, 0.3); }
.badge-b { background: rgba(96, 165, 250, 0.15); color: var(--grade-b); border: 1px solid rgba(96, 165, 250, 0.3); }
.badge-a { background: rgba(192, 132, 252, 0.15); color: var(--grade-a); border: 1px solid rgba(192, 132, 252, 0.3); }
.badge-s { background: rgba(251, 146, 60, 0.15); color: var(--grade-s); border: 1px solid rgba(251, 146, 60, 0.3); }
.badge-s80 { background: rgba(248, 113, 113, 0.15); color: var(--grade-s80); border: 1px solid rgba(248, 113, 113, 0.3); }
.badge-r { background: rgba(244, 63, 94, 0.15); color: var(--grade-r); border: 1px solid rgba(244, 63, 94, 0.3); }

.badge-gold {
  background: rgba(212, 168, 83, 0.15);
  color: var(--gold-light);
  border: 1px solid var(--border-gold);
}

.badge-red {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-green {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-blue {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Data Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.data-table thead th {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-primary);
  white-space: nowrap;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.data-table tbody td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.data-table tbody tr {
  transition: background var(--transition-fast);
}

.data-table tbody tr:hover {
  background: rgba(212, 168, 83, 0.03);
}

.data-table .item-name {
  color: var(--text-primary);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.data-table .item-name:hover {
  color: var(--gold-light);
}

.data-table .item-icon {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  border: 1px solid var(--border-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* Stat Bar */
.stat-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-bar-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  width: 32px;
  text-align: right;
}

.stat-bar-track {
  flex: 1;
  height: 6px;
  background: var(--bg-secondary);
  border-radius: 3px;
  overflow: hidden;
}

.stat-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width var(--transition-normal);
}

.stat-bar-fill.hp { background: linear-gradient(90deg, #dc2626, #ef4444); }
.stat-bar-fill.mp { background: linear-gradient(90deg, #2563eb, #3b82f6); }
.stat-bar-fill.cp { background: linear-gradient(90deg, #16a34a, #22c55e); }

.stat-bar-value {
  font-size: 0.75rem;
  color: var(--text-secondary);
  width: 50px;
}

/* Ornamental Divider */
.divider-ornament {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--gold-dark);
}

.divider-ornament::before,
.divider-ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-gold), transparent);
}

.divider-ornament .diamond {
  width: 8px;
  height: 8px;
  background: var(--gold-primary);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* Section Title */
.section-title {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 20px;
  background: linear-gradient(180deg, var(--gold-primary), var(--gold-dark));
  border-radius: 2px;
}

/* Tooltip */
.tooltip {
  position: relative;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  pointer-events: none;
  z-index: 200;
}

.tooltip:hover::after {
  opacity: 1;
  visibility: visible;
}

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

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

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
}

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

.modal-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  transition: color var(--transition-fast);
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-close svg {
  width: 20px;
  height: 20px;
}

.modal-body {
  padding: 24px;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state svg {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  opacity: 0.3;
}

/* Loading Spinner */
.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border-primary);
  border-top-color: var(--gold-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Notification Dot */
.notification-dot {
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  position: absolute;
  top: -2px;
  right: -2px;
}

/* ============================================
   Responsive Design
   ============================================ */

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

@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5);
  }

  .main-content {
    margin-left: 0;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .page-content {
    padding: 16px;
  }

  .page-title {
    font-size: 1.35rem;
  }

  .grid-5,
  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-group {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-bar .fg {
    min-width: 0 !important;
    width: 100%;
  }

  .filter-bar .cdd {
    min-width: 0 !important;
    width: 100%;
  }

  .filter-bar .cdd-trigger {
    width: 100%;
  }

  .filter-bar .cdd-menu {
    min-width: 0;
    width: 100%;
  }

  .filter-bar input[type="text"],
  .filter-bar select {
    width: 100%;
    min-width: 0;
  }

  .filter-bar .btn-go,
  .filter-bar .btn-rst {
    width: 100%;
  }

  .tabs {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .data-table {
    display: block;
    overflow-x: auto;
  }

  .data-table thead th,
  .data-table tbody td {
    padding: 8px 10px;
    font-size: 0.78rem;
  }

  .search-bar .search-shortcut {
    display: none;
  }

  .card-body {
    padding: 12px;
  }

  .card-header {
    padding: 12px 14px;
  }

  .filter-select,
  .filter-input {
    width: 100%;
  }

  .modal {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 12px 12px 0 0;
    margin: auto 0 0 0;
  }
}

@media (max-width: 480px) {
  :root {
    --sidebar-width: 280px;
  }

  .top-header {
    padding: 0 12px;
  }

  .header-actions {
    gap: 8px;
  }

  .header-btn span {
    display: none;
  }
}

/* Mobile Sidebar Overlay */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
  display: none;
}

.sidebar-overlay.active {
  display: block;
}

/* ============================================
   Utility Classes
   ============================================ */

.text-gold { color: var(--gold-light); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-sm { font-size: 0.8rem; }
.text-xs { font-size: 0.7rem; }

.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }

.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }

.hidden { display: none; }
.cursor-pointer { cursor: pointer; }

/* Ornamental border frame */
.frame-ornament {
  border: 1px solid var(--border-gold);
  position: relative;
}

.frame-ornament::before,
.frame-ornament::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--gold-primary);
}

.frame-ornament::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.frame-ornament::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid;
  border-right: 2px solid;
}

/* Animated gold shimmer effect */
@keyframes gold-shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.text-shimmer {
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold-dark));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gold-shimmer 3s linear infinite;
}

/* Fade in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.4s ease forwards;
}

.fade-in-up-delay-1 { animation-delay: 0.1s; opacity: 0; }
.fade-in-up-delay-2 { animation-delay: 0.2s; opacity: 0; }
.fade-in-up-delay-3 { animation-delay: 0.3s; opacity: 0; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}
