/* ============================================
   DESIGN SYSTEM — Dark Premium + Dourado Neon
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Sora:wght@400;500;600;700;800&display=swap');

:root {
  /* Core Palette */
  --bg-primary: #050505;
  --bg-container: #0B0B0E;
  --bg-surface: #111114;
  --bg-elevated: #18181C;
  --text-primary: #FFFFFF;
  --text-secondary: #B9B9C2;
  --text-muted: #6E6E7A;
  --gold: #FFB800;
  --gold-glow: #FFD35A;
  --gold-dim: #997000;
  --border-color: #1C1C22;
  --green: #00FF88;
  --green-dim: #00994D;
  --red: #FF3B30;
  --red-dim: #991F18;

  /* Spacing */
  --sp-xs: 4px;
  --sp-sm: 8px;
  --sp-md: 16px;
  --sp-lg: 24px;
  --sp-xl: 32px;
  --sp-2xl: 48px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --radius-full: 999px;

  /* Shadows */
  --glow-gold: 0 0 20px rgba(255, 184, 0, 0.3), 0 0 60px rgba(255, 184, 0, 0.1);
  --glow-gold-strong: 0 0 30px rgba(255, 184, 0, 0.5), 0 0 80px rgba(255, 184, 0, 0.2);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.5);
  --shadow-elevated: 0 8px 40px rgba(0, 0, 0, 0.6);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover {
  color: var(--gold-glow);
}

img {
  max-width: 100%;
  display: block;
}

input,
select,
textarea,
button {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

/* ============ TYPOGRAPHY ============ */

h1,
h2,
h3,
h4 {
  font-family: 'Sora', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.text-gold {
  color: var(--gold);
}

.text-glow {
  color: var(--gold);
  text-shadow: 0 0 20px rgba(255, 184, 0, 0.5);
}

/* ============ BUTTONS ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  padding: 14px 28px;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), #E5A600);
  color: #050505;
  box-shadow: var(--glow-gold);
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-glow), var(--gold));
  box-shadow: var(--glow-gold-strong);
  transform: translateY(-2px);
}

.btn-gold:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}

.btn-outline:hover {
  background: rgba(255, 184, 0, 0.1);
  box-shadow: var(--glow-gold);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.btn-danger {
  background: rgba(255, 59, 48, 0.15);
  color: var(--red);
  border: 1px solid rgba(255, 59, 48, 0.3);
}

.btn-danger:hover {
  background: rgba(255, 59, 48, 0.25);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: var(--radius-md);
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ============ INPUTS ============ */

.input-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.input-group label {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.input-field {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.input-field:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 184, 0, 0.15);
}

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

select.input-field {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23B9B9C2' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

textarea.input-field {
  resize: vertical;
  min-height: 80px;
}

/* ============ CARDS ============ */

.card {
  background: var(--bg-container);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: rgba(255, 184, 0, 0.3);
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}

.card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 9/16;
  overflow: hidden;
  background: #111;
}

.fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(4px);
  transition: all 0.2s;
}

.fav-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: white;
  transition: all 0.2s;
}

.fav-btn.active svg {
  fill: #ff4444;
  stroke: #ff4444;
}

.fav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-body {
  padding: var(--sp-md);
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(255, 184, 0, 0.1);
  color: var(--gold);
  border: 1px solid rgba(255, 184, 0, 0.2);
}

.card-actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  margin-top: var(--sp-xs);
}

/* ============ BADGES ============ */

.badge {
  position: absolute;
  top: 12px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 2;
}

.badge-new {
  left: 12px;
  background: var(--green);
  color: #050505;
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
}

.badge-vip {
  right: 12px;
  background: linear-gradient(135deg, var(--gold), #E5A600);
  color: #050505;
  box-shadow: 0 0 15px rgba(255, 184, 0, 0.4);
}

/* ============ FILTER CHIPS ============ */

.filter-bar {
  display: flex;
  gap: var(--sp-sm);
  overflow-x: auto;
  padding: var(--sp-sm) 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

.chip {
  flex-shrink: 0;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  white-space: nowrap;
}

.chip:hover {
  background: rgba(255, 184, 0, 0.1);
  color: var(--gold);
  border-color: rgba(255, 184, 0, 0.3);
}

.chip.active {
  background: var(--gold);
  color: #050505;
  border-color: var(--gold);
  box-shadow: var(--glow-gold);
  font-weight: 600;
}

/* ============ TOPBAR ============ */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 0 var(--sp-md);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-brand {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--gold);
  text-shadow: 0 0 15px rgba(255, 184, 0, 0.3);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
}

.topbar-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
}

.topbar-icon:hover {
  color: var(--gold);
  background: rgba(255, 184, 0, 0.1);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.6);
  animation: pulse-dot 2s infinite;
}

.status-dot.inactive {
  background: var(--red);
  box-shadow: 0 0 8px rgba(255, 59, 48, 0.6);
  animation: none;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

/* ============ NAV TABS ============ */

.nav-tabs {
  display: flex;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-md);
  background: var(--bg-surface);
  padding: 4px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.nav-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.nav-tab.active {
  background: var(--gold);
  color: #050505;
  font-weight: 600;
  box-shadow: var(--glow-gold);
}

/* ============ SEARCH BAR ============ */

.search-container {
  position: relative;
  width: 100%;
}

.search-container svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px 18px 14px 48px;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.search-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 184, 0, 0.15);
}

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

/* ============ GRID ============ */

.models-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-sm);
}

@media (min-width: 900px) {
  .models-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-md);
  }
}

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

/* ============ LOGIN PAGE ============ */

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-lg);
  background: var(--bg-primary);
  position: relative;
}

.login-page::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 40%, rgba(255, 184, 0, 0.06), transparent 60%);
  pointer-events: none;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-container);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--sp-2xl) var(--sp-xl);
  position: relative;
  z-index: 1;
  animation: fadeUp 0.6s ease;
}

.login-logo {
  text-align: center;
  margin-bottom: var(--sp-xl);
}

.login-logo h1 {
  font-family: 'Sora', sans-serif;
  font-size: 1.8rem;
  color: var(--gold);
  text-shadow: 0 0 30px rgba(255, 184, 0, 0.3);
  margin-bottom: var(--sp-sm);
}

.login-logo p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-lg);
}

.login-form .btn-gold {
  margin-top: var(--sp-sm);
  padding: 16px;
  font-size: 1rem;
}

.login-footer {
  text-align: center;
  margin-top: var(--sp-lg);
  padding-top: var(--sp-lg);
  border-top: 1px solid var(--border-color);
}

.login-footer a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.3s;
}

.login-footer a:hover {
  color: var(--gold);
}

.login-error {
  background: rgba(255, 59, 48, 0.1);
  border: 1px solid rgba(255, 59, 48, 0.3);
  color: var(--red);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  display: none;
  animation: shake 0.4s ease;
}

/* ============ BLOCKED PAGE ============ */

.blocked-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-xl);
  text-align: center;
  background: var(--bg-primary);
  position: relative;
}

.blocked-page::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 184, 0, 0.08), transparent 70%);
  pointer-events: none;
}

.blocked-content {
  position: relative;
  z-index: 1;
  max-width: 480px;
  animation: fadeUp 0.6s ease;
}

.blocked-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--sp-lg);
  border-radius: 50%;
  background: rgba(255, 184, 0, 0.1);
  border: 2px solid rgba(255, 184, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.blocked-content h1 {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: var(--sp-md);
  text-shadow: 0 0 20px rgba(255, 184, 0, 0.3);
}

.blocked-content p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: var(--sp-xl);
  line-height: 1.6;
}

/* ============ APP PAGE ============ */

.app-page {
  padding-top: 76px;
  min-height: 100vh;
}

.app-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--sp-md);
}

.app-section-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: var(--sp-lg) 0 var(--sp-md);
  color: var(--text-secondary);
}

.loading-spinner {
  display: flex;
  justify-content: center;
  padding: var(--sp-2xl);
}

.loading-spinner::after {
  content: '';
  width: 36px;
  height: 36px;
  border: 3px solid var(--border-color);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.no-results {
  text-align: center;
  padding: var(--sp-2xl);
  color: var(--text-muted);
}

.no-results svg {
  margin: 0 auto var(--sp-md);
  opacity: 0.3;
}

/* ============ SKELETON LOADING ============ */

.skeleton-card {
  background: var(--bg-container);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.skeleton-image {
  width: 100%;
  aspect-ratio: 9/16;
  background: linear-gradient(90deg, var(--bg-surface) 25%, var(--bg-elevated) 50%, var(--bg-surface) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
}

.skeleton-body {
  padding: var(--sp-md);
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.skeleton-line {
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--bg-surface) 25%, var(--bg-elevated) 50%, var(--bg-surface) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
}

.skeleton-line.short {
  width: 60%;
}

.skeleton-line.medium {
  width: 80%;
}

.skeleton-btn {
  height: 36px;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, var(--bg-surface) 25%, var(--bg-elevated) 50%, var(--bg-surface) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  margin-top: var(--sp-xs);
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* ============ PROFILE DROPDOWN ============ */

.profile-dropdown {
  position: absolute;
  top: 60px;
  right: var(--sp-md);
  background: var(--bg-container);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--sp-sm);
  min-width: 220px;
  box-shadow: var(--shadow-elevated);
  z-index: 200;
  display: none;
  animation: fadeDown 0.2s ease;
}

.profile-dropdown.show {
  display: block;
}

.profile-dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.profile-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.profile-dropdown-item.danger {
  color: var(--red);
}

.profile-dropdown-item.danger:hover {
  background: rgba(255, 59, 48, 0.1);
}

.profile-info {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: var(--sp-xs);
}

.profile-info .email {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.profile-info .role {
  font-size: 0.75rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============ ADMIN LAYOUT ============ */

.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 260px;
  background: var(--bg-container);
  border-right: 1px solid var(--border-color);
  padding: var(--sp-lg) 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.admin-sidebar-brand {
  padding: 0 var(--sp-lg);
  margin-bottom: var(--sp-xl);
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--gold);
  text-shadow: 0 0 15px rgba(255, 184, 0, 0.3);
}

.admin-sidebar-brand small {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 4px;
  text-shadow: none;
}

.admin-nav {
  list-style: none;
  flex: 1;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: 12px var(--sp-lg);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.admin-nav-item:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
}

.admin-nav-item.active {
  background: rgba(255, 184, 0, 0.06);
  color: var(--gold);
  border-left-color: var(--gold);
}

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

.admin-main {
  flex: 1;
  margin-left: 260px;
  padding: var(--sp-xl);
  min-height: 100vh;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-xl);
}

.admin-header h1 {
  font-size: 1.5rem;
}

/* Admin mobile sidebar toggle */
.admin-menu-toggle {
  display: none;
  position: fixed;
  bottom: var(--sp-lg);
  right: var(--sp-lg);
  z-index: 200;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold);
  color: #050505;
  border: none;
  cursor: pointer;
  box-shadow: var(--glow-gold-strong);
  font-size: 1.5rem;
}

.admin-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 99;
}

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

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

  .admin-main {
    margin-left: 0;
    padding: var(--sp-md);
  }

  .admin-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .admin-overlay.show {
    display: block;
  }
}

/* ============ STAT CARDS ============ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-md);
  margin-bottom: var(--sp-xl);
}

.stat-card {
  background: var(--bg-container);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--sp-lg);
  transition: all 0.3s;
}

.stat-card:hover {
  border-color: rgba(255, 184, 0, 0.3);
}

.stat-value {
  font-family: 'Sora', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: var(--sp-xs);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ============ TABLE ============ */

.table-container {
  background: var(--bg-container);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-md) var(--sp-lg);
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: var(--sp-sm);
}

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

.data-table th {
  text-align: left;
  padding: 14px var(--sp-lg);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.data-table td {
  padding: 14px var(--sp-lg);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  vertical-align: middle;
}

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

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ============ STATUS BADGES ============ */

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
}

.status-badge.active {
  background: rgba(0, 255, 136, 0.1);
  color: var(--green);
}

.status-badge.inactive {
  background: rgba(255, 59, 48, 0.1);
  color: var(--red);
}

.status-badge.admin-badge {
  background: rgba(255, 184, 0, 0.1);
  color: var(--gold);
}

/* ============ MODAL ============ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--sp-md);
}

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

.modal {
  background: var(--bg-container);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  animation: fadeUp 0.3s ease;
}

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

.modal-header h2 {
  font-size: 1.2rem;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s;
  background: none;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.modal-body {
  padding: var(--sp-lg);
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--sp-sm);
  padding: var(--sp-lg);
  border-top: 1px solid var(--border-color);
}

/* ============ TOAST ============ */

.toast-container {
  position: fixed;
  top: 76px;
  right: var(--sp-md);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.toast {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  min-width: 280px;
  max-width: 400px;
  box-shadow: var(--shadow-elevated);
  animation: slideInRight 0.3s ease;
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  font-size: 0.9rem;
}

.toast.success {
  border-left: 3px solid var(--green);
}

.toast.error {
  border-left: 3px solid var(--red);
}

.toast.info {
  border-left: 3px solid var(--gold);
}

/* ============ SWITCH ============ */

.switch {
  position: relative;
  width: 48px;
  height: 26px;
  display: inline-block;
}

.switch input {
  display: none;
}

.switch-slider {
  position: absolute;
  inset: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.3s;
}

.switch-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 2px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: all 0.3s;
}

.switch input:checked+.switch-slider {
  background: rgba(255, 184, 0, 0.2);
  border-color: var(--gold);
}

.switch input:checked+.switch-slider::before {
  transform: translateX(22px);
  background: var(--gold);
}

/* ============ ANIMATIONS ============ */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-8px);
  }

  75% {
    transform: translateX(8px);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 0.4s ease;
}

.fade-up {
  animation: fadeUp 0.5s ease both;
}

/* Staggered card animations */
.card:nth-child(1) {
  animation: fadeUp 0.4s ease 0.05s both;
}

.card:nth-child(2) {
  animation: fadeUp 0.4s ease 0.1s both;
}

.card:nth-child(3) {
  animation: fadeUp 0.4s ease 0.15s both;
}

.card:nth-child(4) {
  animation: fadeUp 0.4s ease 0.2s both;
}

.card:nth-child(5) {
  animation: fadeUp 0.4s ease 0.25s both;
}

.card:nth-child(6) {
  animation: fadeUp 0.4s ease 0.3s both;
}

/* ============ COPY TOAST ============ */

.copy-feedback {
  position: fixed;
  bottom: var(--sp-lg);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-elevated);
  color: var(--green);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(0, 255, 136, 0.3);
  box-shadow: var(--shadow-elevated);
  z-index: 1000;
  animation: fadeUp 0.3s ease;
  display: none;
}

/* ============ RESPONSIVE ============ */

@media (max-width: 480px) {
  :root {
    --sp-md: 12px;
    --sp-lg: 16px;
    --sp-xl: 24px;
  }

  .login-card {
    padding: var(--sp-xl) var(--sp-lg);
  }

  .topbar {
    padding: 0 var(--sp-sm);
  }

  .topbar-brand {
    font-size: 0.95rem;
  }

  .admin-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-sm);
  }

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

  .modal {
    max-height: 95vh;
    border-radius: var(--radius-lg);
  }
}

/* ============ NOTIFICATION BADGE ============ */

.badge-count {
  background: var(--red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 6px;
  vertical-align: middle;
  box-shadow: 0 2px 4px rgba(255, 59, 48, 0.4);
  animation: bounceIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-block;
}

@keyframes bounceIn {
  0% {
    transform: scale(0);
  }

  50% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
  }
}