* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Clean blue palette */
  --primary-color: #2563eb;
  --primary-dark: #1e40af;
  --primary-light: #3b82f6;
  --secondary-color: #0ea5e9;
  --accent-color: #06b6d4;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-light: #94a3b8;
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-accent: #eff6ff;
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
}

*:not(:active) {
  color: var(--text-primary);
}

a:active {
  color: var(--text-primary);
}

body {
  background: var(--bg-secondary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout */
main {
  display: block;
  min-height: 100vh;
  padding-top: 70px;
}

/* Top Navigation */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  height: 70px;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-right {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo {
  width: auto;
  height: 60px;
  /* background: white;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color); */
}

.nav-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.025em;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
}

.nav-links a:hover {
  background: var(--bg-accent);
  color: var(--primary-color);
}

.nav-links a.active {
  background: var(--primary-color);
  color: white;
}

/* Container */
.container {
  flex: 1;
  min-height: calc(100vh - 80px);
  background: var(--bg-secondary);
}

/* Hero Image Section */
.hero-section {
  position: relative;
  height: 280px;
  background: linear-gradient(135deg, var(--bg-accent), var(--bg-secondary));
  overflow: hidden;
  margin-bottom: 2rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.hero-controls {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
}

.hero-btn {
  padding: 0.625rem 0.875rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  backdrop-filter: blur(10px);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}

.hero-btn:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

/* Form Elements */
button,
input,
textarea,
select {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
}

button {
  background: var(--primary-color);
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}

button:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-md);
}

button:active {
  opacity: 0.9;
}

button.secondary {
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

button.secondary:hover {
  background: var(--bg-accent);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* Cards */
.card {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.card-header {
  margin-bottom: 1.5rem;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
}

.card-subtitle {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 400;
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Utilities */
.text-orange-600 { color: #ea580c; }
.text-green-600 { color: #059669; }
.text-purple-600 { color: #9333ea; }
.text-gray-600 { color: #4b5563; }
.text-gray-500 { color: #6b7280; }
.text-gray-700 { color: #374151; }

.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.text-xl { font-size: 1.25rem; }
.text-lg { font-size: 1.125rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-sm { font-size: 0.875rem; }
.italic { font-style: italic; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }

.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }

.shadow { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* Responsive Design */
@media (max-width: 768px) {
  body {
    font-size: 18px;
  }
  
  .nav-container {
    padding: 0 1rem;
  }
  
  .nav-logo {
    height: 50px;
  }
  
  .nav-title {
    font-size: 1rem;
  }
  
  .nav-links {
    gap: 1rem;
  }
  
  .nav-links a {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }
  
  main {
    padding-top: 70px;
  }
  
  .top-nav {
    height: 70px;
  }
  
  .hero-section {
    height: 200px;
    margin-bottom: 1.5rem;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .card-title {
    font-size: 1.375rem;
  }
  
  .card-subtitle {
    font-size: 1rem;
  }
  
  .p-8 {
    padding: 1rem;
  }
  
  button,
  input,
  textarea,
  select {
    font-size: 18px;
    padding: 0.875rem 1rem;
  }
  
  .grid {
    gap: 1.5rem;
  }
  
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .hero-modal {
    padding: 0.5rem;
  }
  
  .hero-modal-content {
    max-height: 95vh;
  }
  
  .hero-modal-header {
    padding: 1rem;
  }
  
  .hero-modal-body {
    padding: 1rem;
  }
  
  .hero-thumbnail-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
  }
  
  .hamburger-menu {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .hamburger-menu span {
    width: 2.5rem;
    height: 0.25rem;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }
  
  .nav-brand {
    gap: 0.5rem;
  }
  
  .nav-logo {
    height: 40px;
  }
  
  .nav-title {
    display: none;
  }
  
  .nav-links {
    gap: 0.5rem;
  }
  
  .nav-links a {
    padding: 0.5rem;
    font-size: 0.8rem;
  }
  
  .hero-section {
    height: 160px;
    border-radius: var(--radius-lg);
  }
  
  .card {
    padding: 1.25rem;
    border-radius: var(--radius-lg);
  }
  
  .card-title {
    font-size: 1.25rem;
  }
  
  .card-subtitle {
    font-size: 0.9rem;
  }
  
  .text-xl {
    font-size: 1.125rem;
  }
  
  .text-2xl {
    font-size: 1.375rem;
  }
  
  .p-8 {
    padding: 0.75rem;
  }
  
  .mb-8 {
    margin-bottom: 1.5rem;
  }
  
  .mb-6 {
    margin-bottom: 1rem;
  }
  
  button,
  input,
  textarea,
  select {
    font-size: 16px;
    padding: 0.75rem 0.875rem;
  }
  
  .grid {
    gap: 1rem;
  }
  
  .hero-thumbnail-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  
  .hero-modal-header h3 {
    font-size: 1.125rem;
  }
  
  .hero-modal-close {
    font-size: 1.75rem;
    padding: 0.5rem;
  }
}

/* Hero Settings Button */
.hero-settings-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(10px);
  font-size: 1.25rem;
  box-shadow: var(--shadow-sm);
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-settings-btn:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

/* Hero Modal */
.hero-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.hero-modal.hidden {
  display: none !important;
}

.hero-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.hero-modal-content {
  position: relative;
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

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

.hero-modal-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.hero-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  line-height: 1;
}

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

.hero-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
}

.hero-thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.hero-thumbnail {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid var(--border-color);
}

.hero-thumbnail:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

.hero-thumbnail.selected {
  border-color: var(--primary-color);
  border-width: 3px;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.hero-thumbnail.selected::after {
  content: '✓';
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--primary-color);
  color: white;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: bold;
}

.hero-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .hero-thumbnail-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

/* Hamburger Menu */
.hamburger-menu {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 2rem;
  height: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
}

.hamburger-menu span {
  width: 2rem;
  height: 0.2rem;
  background: var(--text-primary);
  border-radius: 10px;
  position: relative;
}

.hamburger-menu:hover span {
  background: var(--primary-color);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 150px;
  z-index: 1000;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}

.dropdown-menu a:hover {
  background: var(--bg-accent);
  color: var(--primary-color);
}

.dropdown-menu a:first-child {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.dropdown-menu a:last-child {
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* ============================================
   AUTH PAGES
   ============================================ */

.auth-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem 1rem;
  min-height: 60vh;
}

.auth-card {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  border-radius: var(--radius-md);
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.auth-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.auth-field {
  margin-bottom: 1.25rem;
}

.auth-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
}

.auth-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--bg-primary);
}

.auth-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.auth-input--code {
  text-align: center;
  font-size: 1.5rem;
  font-family: monospace;
  letter-spacing: 0.5rem;
  padding: 0.75rem;
}

.auth-btn {
  display: block;
  width: 100%;
  padding: 0.75rem 1.5rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

.auth-btn:hover {
  background: var(--primary-dark);
}

.auth-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-btn--secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

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

.auth-btn--block {
  display: block;
  text-align: center;
}

.auth-message {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.auth-message--error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.auth-message--success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.auth-message--warning {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.auth-dev-link {
  margin-top: 0.5rem;
  font-size: 0.8rem;
}

.auth-dev-link a {
  color: #166534;
  text-decoration: underline;
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-light);
}

.auth-link {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.875rem;
}

.auth-link:hover {
  text-decoration: underline;
}

.auth-link-btn {
  background: none;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
  font-size: 0.875rem;
  padding: 0;
  text-decoration: underline;
}

.auth-link-btn:hover {
  color: var(--primary-dark);
}

/* TOTP Setup */
.totp-qr-container {
  text-align: center;
  margin-bottom: 1.5rem;
}

.totp-qr-image {
  width: 200px;
  height: 200px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.totp-manual-entry {
  text-align: center;
  margin-bottom: 1.5rem;
}

.totp-manual-label {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.totp-secret-code {
  display: inline-block;
  background: var(--bg-secondary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  letter-spacing: 0.1rem;
  word-break: break-all;
  border: 1px solid var(--border-color);
}

.totp-skip-form {
  margin-top: 0.75rem;
}

.totp-backup-section {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.totp-backup-form {
  margin-top: 1rem;
}

/* Backup Codes */
.backup-codes-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.backup-code-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--bg-secondary);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  width: calc(50% - 0.25rem);
}

.backup-code-number {
  font-size: 0.75rem;
  color: var(--text-light);
  min-width: 1.25rem;
}

.backup-code-value {
  font-family: monospace;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05rem;
}

/* Responsive */
@media (max-width: 768px) {
  .auth-card {
    padding: 1.5rem;
  }

  .backup-code-item {
    width: 100%;
  }
}

/* ============================================
   ADMIN PAGES
   ============================================ */

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  padding: 0 1rem;
}

.admin-nav-item {
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
}

.admin-nav-item:hover {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

.admin-nav-item.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.admin-nav-back {
  margin-left: auto;
  color: var(--text-light);
}

.admin-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem;
}

.admin-page-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.admin-section-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.admin-subtitle {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.admin-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

/* Stats */
.admin-stats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.admin-stat-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
  flex: 1;
  min-width: 120px;
}

.admin-stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.admin-stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* Quick links */
.admin-link-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.admin-action-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.9rem;
}

.admin-action-card:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/* Filters */
.admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  align-items: center;
}

.admin-input,
.admin-select {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  color: var(--text-primary);
  background: var(--bg-primary);
}

.admin-input:focus,
.admin-select:focus,
.admin-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.admin-input--search {
  flex: 1;
  min-width: 200px;
}

.admin-textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--text-primary);
  resize: vertical;
}

/* Buttons */
.admin-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-primary);
  background: var(--bg-primary);
  text-align: center;
}

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

.admin-btn--primary {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.admin-btn--primary:hover {
  background: var(--primary-dark);
}

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

.admin-btn--danger {
  color: #dc2626;
  border-color: #fecaca;
}

.admin-btn--danger:hover {
  background: #fef2f2;
}

.admin-btn--small {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}

/* Table */
.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.admin-table th,
.admin-table td {
  padding: 0.625rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.admin-table th {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--bg-secondary);
}

.admin-table tbody tr:hover {
  background: var(--bg-accent);
}

.admin-cell-text {
  max-width: 300px;
}

.admin-cell-actions {
  display: flex;
  gap: 0.375rem;
  align-items: center;
}

.admin-inline-form {
  display: inline;
}

.admin-empty {
  text-align: center;
  color: var(--text-light);
  padding: 2rem;
}

.admin-badge {
  font-size: 0.75rem;
  color: var(--text-light);
  font-style: italic;
}

/* Form */
.admin-form {
  max-width: 700px;
}

.admin-field {
  margin-bottom: 1rem;
}

.admin-field-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-field-row .admin-field {
  flex: 1;
  margin-bottom: 0;
}

.admin-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.admin-form .admin-input,
.admin-form .admin-textarea {
  width: 100%;
}

.admin-form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Hero images */
.admin-hero-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-hero-card {
  width: calc(33.333% - 0.667rem);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.admin-hero-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.admin-hero-meta {
  padding: 0.5rem 0.75rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.8rem;
}

.admin-hero-index {
  font-weight: 600;
  color: var(--primary-color);
}

.admin-hero-alt {
  color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
  .admin-field-row {
    flex-direction: column;
    gap: 0;
  }

  .admin-field-row .admin-field {
    margin-bottom: 1rem;
  }

  .admin-hero-card {
    width: 100%;
  }

  .admin-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .admin-filters {
    flex-direction: column;
  }

  .admin-input--search {
    width: 100%;
  }
}

/* Donation sticky bar */
.donation-sticky {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-primary, #fff);
  border-bottom: 1px solid var(--border-light, #e5e5e5);
  padding: 8px 16px;
  text-align: center;
}

.donation-sticky-inner {
  max-width: 1200px;
  margin: 0 auto;
}
