/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: #0d0d0d;
  color: #e8e8e8;
  min-height: 100vh;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
img { max-width: 100%; display: block; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* ========== NAV ========== */
#main-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,13,13,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 2rem;
  padding: 0.75rem 1.5rem;
}
.nav-logo {
  font-size: 1.25rem; font-weight: 800;
  color: #e74c3c; letter-spacing: -0.5px;
  white-space: nowrap;
}
.nav-links { display: flex; gap: 1.5rem; }
.nav-links a {
  font-size: 0.9rem; font-weight: 500;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
  padding: 0.25rem 0;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.nav-burger { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; padding: 0.25rem; }
.nav-mobile { display: none; flex-direction: column; gap: 0.75rem; padding: 0.75rem 1.5rem 1rem; border-top: 1px solid rgba(255,255,255,0.06); }
.nav-mobile a { color: rgba(255,255,255,0.7); font-size: 0.95rem; padding: 0.25rem 0; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-right { display: none; }
  .nav-burger { display: block; margin-left: auto; }
  .nav-mobile.open { display: flex; }
}

/* Nav auth buttons */
.nav-auth-btn {
  background: none; border: 1px solid rgba(255,255,255,0.2);
  color: #fff; padding: 0.4rem 1rem; border-radius: 20px;
  font-size: 0.85rem; font-weight: 500;
  transition: all 0.2s;
}
.nav-auth-btn:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.4); }
.nav-auth-btn.primary { background: #e74c3c; border-color: #e74c3c; }
.nav-auth-btn.primary:hover { background: #c0392b; }
.nav-user-menu { position: relative; display: flex; align-items: center; gap: 0.5rem; }
.nav-user-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: #e74c3c; display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700; color: #fff;
}
.nav-user-name { font-size: 0.85rem; color: rgba(255,255,255,0.8); }
.nav-dropdown {
  position: absolute; top: 100%; right: 0; margin-top: 0.5rem;
  background: #1a1a1a; border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; padding: 0.5rem 0; min-width: 180px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  display: none; z-index: 200;
}
.nav-dropdown.open { display: block; }
.nav-dropdown a, .nav-dropdown button {
  display: block; width: 100%; text-align: left;
  padding: 0.5rem 1rem; font-size: 0.85rem;
  color: rgba(255,255,255,0.8); background: none; border: none;
  transition: background 0.15s;
}
.nav-dropdown a:hover, .nav-dropdown button:hover { background: rgba(255,255,255,0.05); }
.nav-dropdown .divider { height: 1px; background: rgba(255,255,255,0.08); margin: 0.25rem 0; }

.nav-coins {
  display: flex; align-items: center; gap: 0.35rem;
  background: rgba(243,156,18,0.15); border: 1px solid rgba(243,156,18,0.3);
  padding: 0.3rem 0.75rem; border-radius: 20px;
  font-size: 0.8rem; font-weight: 600; color: #f39c12;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.6rem 1.5rem; border-radius: 8px; font-size: 0.9rem; font-weight: 600;
  border: none; transition: all 0.2s; cursor: pointer;
}
.btn-primary { background: #e74c3c; color: #fff; }
.btn-primary:hover { background: #c0392b; transform: translateY(-1px); }
.btn-secondary { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.15); }
.btn-secondary:hover { background: rgba(255,255,255,0.12); }
.btn-ghost { background: none; color: rgba(255,255,255,0.7); padding: 0.4rem 0.75rem; }
.btn-ghost:hover { color: #fff; background: rgba(255,255,255,0.05); }
.btn-gold { background: linear-gradient(135deg, #f39c12, #e67e22); color: #fff; }
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(243,156,18,0.3); }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.8rem; }
.btn-lg { padding: 0.75rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-danger { background: #c0392b; color: #fff; }
.btn-danger:hover { background: #a93226; }
.btn-success { background: #27ae60; color: #fff; }
.btn-success:hover { background: #219a52; }

/* ========== HERO ========== */
.hero {
  position: relative; overflow: hidden;
  min-height: 400px; display: flex; align-items: flex-end;
  padding: 3rem 1.5rem; margin-bottom: 2rem;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(0.4);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, #0d0d0d 0%, transparent 60%);
}
.hero-content { position: relative; z-index: 1; max-width: 600px; }
.hero-content h1 { font-size: 2.5rem; font-weight: 800; line-height: 1.2; margin-bottom: 0.75rem; }
.hero-content p { font-size: 1rem; color: rgba(255,255,255,0.7); margin-bottom: 1.5rem; line-height: 1.5; }
.hero-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

@media (max-width: 768px) {
  .hero { min-height: 300px; padding: 2rem 1rem; }
  .hero-content h1 { font-size: 1.75rem; }
}

/* ========== SECTION CAROUSEL ========== */
.section { margin-bottom: 2.5rem; padding: 0 1.5rem; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.section-header h2 { font-size: 1.35rem; font-weight: 700; }
.section-header a { font-size: 0.85rem; color: #e74c3c; font-weight: 500; }
.section-header a:hover { text-decoration: underline; }
.carousel {
  display: flex; gap: 1rem; overflow-x: auto;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem; scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }

/* ========== DRAMA CARD ========== */
.drama-card {
  flex: 0 0 180px; scroll-snap-align: start;
  border-radius: 12px; overflow: hidden;
  background: #1a1a1a; transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer; position: relative;
}
.drama-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.drama-card-poster {
  width: 100%; aspect-ratio: 2/3; object-fit: cover;
  background: #222;
}
.drama-card-body { padding: 0.75rem; }
.drama-card-title {
  font-size: 0.85rem; font-weight: 600; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 0.35rem;
}
.drama-card-meta {
  display: flex; flex-wrap: wrap; gap: 0.25rem;
  font-size: 0.7rem; color: rgba(255,255,255,0.5);
}
.drama-card-meta span { background: rgba(255,255,255,0.06); padding: 0.15rem 0.4rem; border-radius: 4px; }
.drama-card-episodes {
  font-size: 0.7rem; color: rgba(255,255,255,0.4); margin-top: 0.3rem;
}
.drama-card-fav {
  position: absolute; top: 0.5rem; right: 0.5rem;
  background: rgba(0,0,0,0.6); border: none; color: #fff;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: all 0.2s;
}
.drama-card-fav:hover { background: rgba(231,76,60,0.8); }
.drama-card-fav.active { color: #e74c3c; background: rgba(231,76,60,0.2); }

@media (max-width: 768px) {
  .drama-card { flex: 0 0 140px; }
  .section { padding: 0 1rem; }
}

/* ========== DRAMA DETAIL ========== */
.drama-detail { max-width: 1000px; margin: 0 auto; padding: 0 1.5rem 3rem; }
.drama-banner {
  position: relative; width: 100%; aspect-ratio: 2.5/1;
  border-radius: 16px; overflow: hidden; margin-bottom: 2rem;
}
.drama-banner img { width: 100%; height: 100%; object-fit: cover; }
.drama-banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,13,13,0.95) 0%, transparent 70%);
  display: flex; align-items: flex-end; padding: 2rem;
}
.drama-info { display: flex; gap: 2rem; margin-bottom: 2rem; }
.drama-poster {
  flex: 0 0 200px; border-radius: 12px; overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.drama-poster img { width: 100%; aspect-ratio: 2/3; object-fit: cover; }
.drama-meta { flex: 1; }
.drama-meta h1 { font-size: 2rem; font-weight: 800; margin-bottom: 0.5rem; }
.drama-genres { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.genre-tag {
  background: rgba(231,76,60,0.15); color: #e74c3c;
  padding: 0.3rem 0.75rem; border-radius: 20px;
  font-size: 0.8rem; font-weight: 500;
}
.drama-description { color: rgba(255,255,255,0.7); font-size: 0.95rem; line-height: 1.6; margin-bottom: 1.5rem; }
.drama-stats { display: flex; gap: 2rem; margin-bottom: 1.5rem; }
.drama-stat { text-align: center; }
.drama-stat-value { font-size: 1.25rem; font-weight: 700; color: #e74c3c; }
.drama-stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.5); }

@media (max-width: 768px) {
  .drama-info { flex-direction: column; align-items: center; text-align: center; }
  .drama-poster { flex: 0 0 180px; }
  .drama-genres { justify-content: center; }
  .drama-stats { justify-content: center; }
  .drama-meta h1 { font-size: 1.5rem; }
}

/* ========== EPISODE LIST ========== */
.episode-list { margin-top: 2rem; }
.episode-list h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; }
.episode-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem; background: #1a1a1a; border-radius: 10px;
  margin-bottom: 0.5rem; transition: background 0.15s; cursor: pointer;
}
.episode-item:hover { background: #222; }
.episode-num {
  width: 40px; height: 40px; border-radius: 8px;
  background: rgba(231,76,60,0.15); color: #e74c3c;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; flex-shrink: 0;
}
.episode-info { flex: 1; min-width: 0; }
.episode-title { font-weight: 600; font-size: 0.9rem; }
.episode-duration { font-size: 0.75rem; color: rgba(255,255,255,0.4); margin-top: 0.15rem; }
.episode-status {
  padding: 0.3rem 0.75rem; border-radius: 20px;
  font-size: 0.75rem; font-weight: 600; white-space: nowrap;
}
.episode-status.free { background: rgba(39,174,96,0.15); color: #27ae60; }
.episode-status.locked { background: rgba(243,156,18,0.15); color: #f39c12; }
.episode-status.unlocked { background: rgba(52,152,219,0.15); color: #3498db; }

/* ========== PLAYER ========== */
.player-container {
  max-width: 480px; margin: 0 auto; padding: 1rem;
}
.player-video {
  width: 100%; aspect-ratio: 9/16; background: #000;
  border-radius: 16px; overflow: hidden; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.player-video video { width: 100%; height: 100%; object-fit: contain; }
.player-placeholder {
  text-align: center; color: rgba(255,255,255,0.4);
  font-size: 1rem;
}
.player-placeholder .play-icon { font-size: 3rem; margin-bottom: 1rem; }
.player-controls {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0; gap: 1rem;
}
.player-nav {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 0; justify-content: center;
}
.lock-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.85);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1rem; z-index: 10;
}
.lock-overlay .lock-icon { font-size: 3rem; }
.lock-overlay p { color: rgba(255,255,255,0.7); text-align: center; }

/* ========== GENRES PAGE ========== */
.genres-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem; padding: 0 1.5rem; max-width: 1280px; margin: 2rem auto;
}
.genre-card {
  background: #1a1a1a; border-radius: 12px; padding: 1.5rem;
  text-align: center; transition: all 0.2s; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.06);
}
.genre-card:hover { transform: translateY(-2px); border-color: rgba(231,76,60,0.3); background: #1f1f1f; }
.genre-card-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.genre-card-name { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.25rem; }
.genre-card-count { font-size: 0.75rem; color: rgba(255,255,255,0.4); }

/* ========== SHOWS GRID (genre detail, favorites) ========== */
.shows-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem; padding: 0 1.5rem; max-width: 1280px; margin: 2rem auto;
}

/* ========== AUTH PAGES ========== */
.auth-page {
  max-width: 420px; margin: 4rem auto; padding: 0 1.5rem;
}
.auth-card {
  background: #1a1a1a; border-radius: 16px; padding: 2.5rem;
  border: 1px solid rgba(255,255,255,0.08);
}
.auth-card h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; text-align: center; }
.auth-card .subtitle { color: rgba(255,255,255,0.5); text-align: center; margin-bottom: 2rem; font-size: 0.9rem; }

/* ========== FORMS ========== */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; font-size: 0.85rem; font-weight: 500;
  color: rgba(255,255,255,0.7); margin-bottom: 0.4rem;
}
.form-input {
  width: 100%; padding: 0.7rem 1rem; background: #0d0d0d;
  border: 1px solid rgba(255,255,255,0.12); border-radius: 8px;
  color: #fff; font-size: 0.9rem; transition: border-color 0.2s;
}
.form-input:focus { outline: none; border-color: #e74c3c; }
.form-input::placeholder { color: rgba(255,255,255,0.25); }
textarea.form-input { min-height: 100px; resize: vertical; }
select.form-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23999' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }
.form-checkbox { display: flex; align-items: center; gap: 0.5rem; }
.form-checkbox input[type="checkbox"] { width: 18px; height: 18px; accent-color: #e74c3c; }
.form-error { color: #e74c3c; font-size: 0.8rem; margin-top: 0.25rem; }
.form-row { display: flex; gap: 1rem; }
.form-row .form-group { flex: 1; }

/* ========== WALLET ========== */
.wallet-balance {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border-radius: 16px; padding: 2rem; text-align: center;
  margin-bottom: 2rem; border: 1px solid rgba(243,156,18,0.2);
}
.wallet-balance-label { font-size: 0.9rem; color: rgba(255,255,255,0.6); margin-bottom: 0.5rem; }
.wallet-balance-amount { font-size: 3rem; font-weight: 800; color: #f39c12; }
.wallet-balance-amount::before { content: '🪙 '; }
.wallet-tx-list { max-width: 600px; margin: 0 auto; }
.wallet-tx {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 0; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.wallet-tx-desc { font-size: 0.9rem; }
.wallet-tx-date { font-size: 0.75rem; color: rgba(255,255,255,0.3); }
.wallet-tx-amount { font-weight: 600; font-size: 0.9rem; }
.wallet-tx-amount.credit { color: #27ae60; }
.wallet-tx-amount.debit { color: #e74c3c; }
.wallet-topup { display: flex; gap: 0.75rem; justify-content: center; margin: 1.5rem 0; flex-wrap: wrap; }

/* ========== ADMIN ========== */
.admin-layout {
  display: flex; min-height: calc(100vh - 60px);
}
.admin-sidebar {
  width: 240px; background: #111; border-right: 1px solid rgba(255,255,255,0.06);
  padding: 1.5rem 0; flex-shrink: 0;
}
.admin-sidebar a {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.7rem 1.5rem; font-size: 0.9rem;
  color: rgba(255,255,255,0.6); transition: all 0.15s;
}
.admin-sidebar a:hover { background: rgba(255,255,255,0.03); color: #fff; }
.admin-sidebar a.active { background: rgba(231,76,60,0.1); color: #e74c3c; border-right: 2px solid #e74c3c; }
.admin-sidebar-title {
  padding: 0 1.5rem; font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 1px; color: rgba(255,255,255,0.3); margin-bottom: 0.5rem; margin-top: 1rem;
}
.admin-content { flex: 1; padding: 2rem; overflow-x: auto; }
.admin-content h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; }

@media (max-width: 768px) {
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); display: flex; overflow-x: auto; padding: 0; }
  .admin-sidebar a { white-space: nowrap; padding: 0.75rem 1rem; border-right: none; }
  .admin-sidebar-title { display: none; }
  .admin-content { padding: 1.5rem 1rem; }
}

/* Stats cards */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem; margin-bottom: 2rem;
}
.stat-card {
  background: #1a1a1a; border-radius: 12px; padding: 1.25rem;
  border: 1px solid rgba(255,255,255,0.06);
}
.stat-card-value { font-size: 2rem; font-weight: 800; color: #e74c3c; }
.stat-card-label { font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-top: 0.25rem; }

/* Data table */
.data-table-wrap { overflow-x: auto; }
.data-table {
  width: 100%; border-collapse: collapse;
  background: #1a1a1a; border-radius: 12px; overflow: hidden;
}
.data-table th {
  text-align: left; padding: 0.75rem 1rem;
  font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.5px; color: rgba(255,255,255,0.4);
  background: #141414; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.data-table td {
  padding: 0.75rem 1rem; font-size: 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.data-table tr:hover td { background: rgba(255,255,255,0.02); }
.badge {
  display: inline-block; padding: 0.2rem 0.6rem; border-radius: 12px;
  font-size: 0.7rem; font-weight: 600;
}
.badge-published { background: rgba(39,174,96,0.15); color: #27ae60; }
.badge-draft { background: rgba(243,156,18,0.15); color: #f39c12; }
.badge-admin { background: rgba(231,76,60,0.15); color: #e74c3c; }
.badge-user { background: rgba(52,152,219,0.15); color: #3498db; }
.badge-free { background: rgba(39,174,96,0.15); color: #27ae60; }
.badge-locked { background: rgba(243,156,18,0.15); color: #f39c12; }

/* Admin toolbar */
.admin-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem; gap: 1rem; flex-wrap: wrap;
}
.admin-toolbar h2 { font-size: 1.1rem; font-weight: 600; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; padding: 1rem;
}
.modal {
  background: #1a1a1a; border-radius: 16px; padding: 2rem;
  width: 100%; max-width: 560px; max-height: 85vh; overflow-y: auto;
  border: 1px solid rgba(255,255,255,0.08);
}
.modal h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 1.5rem; }
.modal-actions { display: flex; gap: 0.75rem; justify-content: flex-end; margin-top: 1.5rem; }

/* ========== USER PAGES ========== */
.user-page { max-width: 800px; margin: 2rem auto; padding: 0 1.5rem; }
.user-page h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; }
.profile-header {
  display: flex; align-items: center; gap: 1.5rem;
  padding: 1.5rem; background: #1a1a1a; border-radius: 16px;
  margin-bottom: 2rem; border: 1px solid rgba(255,255,255,0.06);
}
.profile-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: #e74c3c; display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.profile-info h2 { font-size: 1.25rem; font-weight: 700; }
.profile-info p { color: rgba(255,255,255,0.5); font-size: 0.9rem; }

/* ========== TOAST ========== */
#toast-container {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  z-index: 9999; display: flex; flex-direction: column; gap: 0.5rem;
}
.toast {
  padding: 0.75rem 1.25rem; border-radius: 8px;
  font-size: 0.85rem; font-weight: 500;
  animation: toast-in 0.3s ease;
  max-width: 360px;
}
.toast-success { background: #27ae60; color: #fff; }
.toast-error { background: #e74c3c; color: #fff; }
.toast-info { background: #3498db; color: #fff; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ========== EMPTY STATE ========== */
.empty-state {
  text-align: center; padding: 3rem 1rem; color: rgba(255,255,255,0.4);
}
.empty-state-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state h3 { font-size: 1.1rem; color: rgba(255,255,255,0.6); margin-bottom: 0.5rem; }
.empty-state p { font-size: 0.9rem; }

/* ========== FOOTER ========== */
#main-footer {
  background: #111; border-top: 1px solid rgba(255,255,255,0.06);
  padding: 3rem 1.5rem; margin-top: 4rem;
}
.footer-inner { max-width: 1280px; margin: 0 auto; display: flex; gap: 2rem; flex-wrap: wrap; align-items: flex-start; }
.footer-brand { flex: 1; min-width: 200px; }
.footer-logo { font-size: 1.25rem; font-weight: 800; color: #e74c3c; }
.footer-brand p { color: rgba(255,255,255,0.4); font-size: 0.85rem; margin-top: 0.5rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: rgba(255,255,255,0.5); font-size: 0.85rem; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-copy { width: 100%; }
.footer-copy p { color: rgba(255,255,255,0.25); font-size: 0.75rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.06); }

/* ========== UTILITY ========== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.page-header { padding: 2rem 0 1rem; }
.page-header h1 { font-size: 1.75rem; font-weight: 800; }
.page-header p { color: rgba(255,255,255,0.5); margin-top: 0.25rem; }
.loading { text-align: center; padding: 3rem; color: rgba(255,255,255,0.4); }
.loading::after { content: '...'; animation: dots 1.5s steps(3, end) infinite; }
@keyframes dots { 0% { content: '.'; } 33% { content: '..'; } 66% { content: '...'; } }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 0.5rem; } .gap-2 { gap: 1rem; }
.hidden { display: none !important; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
