/* ==========================================================================
   FansQuebec — Dark Theme Stylesheet
   Inspired by bopseeker.vercel.app/explore
   Dark bg, grid cards, blue QC accent (#0066cc), smooth hover effects
   ========================================================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent: #0066cc;
  --accent-light: #3399ff;
  --accent-dark: #0052a3;
  --accent-glow: rgba(0, 102, 204, 0.15);
  --accent-gradient: linear-gradient(135deg, #0066cc, #3399ff);
  --bg: #ffffff;
  --surface: #f8f9fa;
  --surface-hover: #f0f2f5;
  --surface-2: #e9ecef;
  --text: #1a1a2e;
  --text-muted: #6c757d;
  --text-light: #adb5bd;
  --border: #e0e4e8;
  --border-hover: #c8ccd0;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --transition: 0.2s ease;
  --max-width: 1280px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

img { max-width: 100%; display: block; }

/* --- Navbar --- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: #f5f5f7;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-container {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 64px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.3rem; font-weight: 800; color: var(--text);
  letter-spacing: -0.5px;
}
.nav-logo svg { flex-shrink: 0; }
.logo-text { font-size: 22px; letter-spacing: -0.5px; }
.logo-fans { color: #00aff0; font-family: 'Comfortaa', cursive; font-weight: 700; }
.logo-quebec { color: #002495; font-family: 'Cinzel', serif; font-weight: 600; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  color: var(--text-muted); font-weight: 500; font-size: 0.92rem;
  position: relative; transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--accent); transition: width var(--transition);
}
.nav-links a:hover::after { width: 100%; }
.nav-admin {
  padding: 6px 16px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border); color: var(--text-muted) !important;
}
.nav-admin:hover { border-color: var(--accent); color: var(--accent-light) !important; }
.nav-admin::after { display: none; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--text); border-radius: 2px;
  transition: var(--transition);
}

/* --- Flash messages --- */
.flash-container {
  max-width: var(--max-width); margin: 16px auto; padding: 0 24px;
  display: flex; flex-direction: column; gap: 8px;
}
.flash {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; border-radius: var(--radius-sm); font-size: 0.9rem;
  animation: slideDown 0.3s ease; border: 1px solid transparent;
}
.flash-success { background: rgba(16, 185, 129, 0.1); color: #34d399; border-color: rgba(16, 185, 129, 0.3); }
.flash-error   { background: rgba(239, 68, 68, 0.1); color: #f87171; border-color: rgba(239, 68, 68, 0.3); }
.flash-info    { background: rgba(0, 102, 204, 0.1); color: var(--accent-light); border-color: rgba(0, 102, 204, 0.3); }
.flash-close {
  background: none; border: none; font-size: 1.2rem; cursor: pointer;
  color: inherit; opacity: 0.6; line-height: 1;
}
.flash-close:hover { opacity: 1; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* --- Hero --- */
.hero {
  padding: 60px 24px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: ''; position: absolute; top: -30%; right: -10%;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: -20%; left: -5%;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(51, 153, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.hero-title {
  font-size: 2.8rem; font-weight: 800; color: var(--text);
  margin-bottom: 12px; letter-spacing: -1px;
}
.hero-title .accent { color: var(--accent-light); }
.hero-subtitle { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 28px; }

.hero-search {
  display: flex; gap: 0; max-width: 560px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 4px; transition: border-color var(--transition);
}
.hero-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.hero-search input {
  flex: 1; border: none; outline: none; padding: 12px 18px;
  font-size: 1rem; border-radius: var(--radius-sm); background: transparent;
  color: var(--text);
}
.hero-search input::placeholder { color: var(--text-light); }
.hero-search button {
  white-space: nowrap; border-radius: var(--radius-sm);
}

.hero-stats {
  margin-top: 20px; color: var(--text-muted); font-size: 0.85rem;
  display: flex; gap: 12px; justify-content: center; align-items: center;
}
.hero-stats .dot { opacity: 0.4; }
.hero-stats strong { color: var(--accent-light); font-weight: 700; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; border: none; border-radius: var(--radius-sm);
  font-size: 0.92rem; font-weight: 600; cursor: pointer;
  transition: all var(--transition); text-decoration: none;
  font-family: inherit; border: 1px solid transparent;
}
.btn-primary {
  background: var(--accent); color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 16px var(--accent-glow); }
.btn-ghost {
  background: transparent; color: var(--text-muted); border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--border-hover); color: var(--text); background: var(--surface); }
.btn-danger { background: #dc2626; color: #fff; }
.btn-danger:hover { background: #b91c1c; color: #fff; }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; }
.btn-sm { padding: 6px 14px; font-size: 0.82rem; }
.btn-block { width: 100%; }
.btn-icon {
  padding: 6px 10px; min-width: 32px; height: 32px;
  border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border);
}
.btn-icon:hover { background: var(--surface-hover); }

/* --- Filter Pills --- */
.filter-bar {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  position: sticky; top: 64px; z-index: 50;
}
.filter-container {
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
  display: flex; flex-direction: column; gap: 14px;
}
.filter-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.filter-label {
  font-size: 0.75rem; font-weight: 700; color: var(--text-light);
  text-transform: uppercase; letter-spacing: 0.8px;
  flex-shrink: 0; min-width: 70px;
}
.pill {
  display: inline-flex; align-items: center;
  padding: 6px 16px; border-radius: 20px;
  font-size: 0.85rem; font-weight: 500;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-muted); cursor: pointer;
  transition: all var(--transition); white-space: nowrap;
}
.pill:hover { border-color: var(--border-hover); color: var(--text); background: var(--surface-hover); }
.pill-active {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
.pill-active:hover { background: var(--accent-dark); color: #fff; border-color: var(--accent-dark); }
.filter-reset {
  margin-left: auto; flex-shrink: 0;
}

/* --- Model Grid --- */
.model-grid-section { padding: 32px 0 60px; flex: 1; }
.grid-container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.model-card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid var(--border); color: var(--text);
  display: block; position: relative;
}
.model-card:hover {
  border-color: var(--accent);
}
.card-photo {
  position: relative; aspect-ratio: 1; overflow: hidden;
  background: var(--surface-2);
}
.card-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.model-card:hover .card-photo img { transform: none; }
.card-badges {
  position: absolute; top: 10px; left: 10px;
  display: flex; gap: 6px; flex-wrap: wrap;
}
.badge {
  padding: 4px 10px; border-radius: 20px; font-size: 0.7rem;
  font-weight: 700; backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.badge-free { background: rgba(16,185,129,0.85); color: #fff; }
.badge-paid { background: rgba(0,102,204,0.85); color: #fff; }
.badge-verified { background: rgba(51,153,255,0.85); color: #fff; padding: 4px 8px; }
.badge-trial { background: rgba(245,158,11,0.85); color: #fff; }
.badge-verified-lg {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(0,102,204,0.15); color: var(--accent-light);
  font-size: 0.8rem; padding: 4px 12px; border-radius: 20px;
  vertical-align: middle; font-weight: 600;
  border: 1px solid rgba(0,102,204,0.3);
}
.badge-ftl { background: rgba(245,158,11,0.15); color: #fbbf24; border: 1px solid rgba(245,158,11,0.3); }

.card-info { padding: 14px 16px; }
.card-name { font-size: 1.02rem; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.card-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.82rem; color: var(--text-muted); margin-bottom: 8px;
}
.card-category {
  background: var(--surface-2); color: var(--text-muted);
  padding: 2px 8px; border-radius: 12px; font-size: 0.72rem; font-weight: 600;
  border: 1px solid var(--border);
}
.card-stats { display: flex; gap: 12px; align-items: center; font-size: 0.82rem; color: var(--text-muted); }
.card-stat { display: inline-flex; align-items: center; gap: 4px; color: var(--text-muted); }
.card-stat svg { color: var(--text-light); }
.card-of-icon { display: inline-flex; align-items: center; color: var(--text-light); }

/* --- Empty state --- */
.empty-state {
  text-align: center; padding: 80px 24px;
  color: var(--text-muted);
}
.empty-state h2 { margin-bottom: 8px; color: var(--text); }

/* --- CTA --- */
.cta-section {
  background: var(--surface); padding: 50px 24px; text-align: center;
  border-top: 1px solid var(--border);
}
.cta-content h2 { font-size: 1.6rem; margin-bottom: 8px; color: var(--text); }
.cta-content p { color: var(--text-muted); margin-bottom: 24px; }

/* --- Model Detail Page --- */
.model-detail { max-width: 900px; margin: 0 auto; padding: 30px 24px 60px; }
.back-link {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 24px;
  color: var(--text-muted); font-size: 0.9rem;
  transition: color var(--transition);
}
.back-link:hover { color: var(--accent-light); }

.detail-header {
  display: flex; gap: 24px; align-items: flex-end; margin-bottom: 32px;
  flex-wrap: wrap; margin-top: -50px; position: relative; z-index: 1;
  padding: 0 20px;
}
.detail-banner {
  width: 100%; height: 260px; overflow: hidden;
  border-radius: 16px; margin: 0 20px; box-sizing: border-box;
}
.detail-banner img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.detail-photo {
  width: 140px; height: 140px; border-radius: 50%; overflow: hidden;
  flex-shrink: 0; box-shadow: var(--shadow-lg);
  border: 4px solid var(--bg);
}
.detail-photo img { width: 100%; height: 100%; object-fit: cover; }
.detail-name {
  font-size: 1.8rem; font-weight: 800; margin: 0 0 2px;
  color: var(--text);
}
.detail-username {
  font-size: 0.95rem; color: var(--text-muted); margin: 0 0 10px; font-weight: 500;
}
.social-icons { display: flex; gap: 10px; margin-top: 4px; }
.social-flat-icon {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-muted); transition: all 0.15s; flex-shrink: 0;
}
.social-flat-icon:hover { background: var(--accent); color: #fff; border-color: var(--accent); transform: translateY(-2px); }
.of-icon { color: var(--accent); }
.of-icon:hover { background: var(--accent); color: #fff; }
.detail-price {
  display: inline-block; padding: 6px 14px; border-radius: 20px;
  background: var(--accent); color: #fff; font-size: 14px; font-weight: 700;
  margin-top: 8px;
}
.of-link-price {
  display: inline-block; padding: 3px 10px; border-radius: 12px;
  background: var(--accent-dim); color: var(--accent); font-size: 13px; font-weight: 700;
  margin-left: 8px;
}
.detail-info { flex: 1; min-width: 250px; }
}
.detail-meta { display: flex; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.meta-item { color: var(--text-muted); font-size: 1rem; }
.tag-badge {
  background: rgba(0,102,204,0.15); color: var(--accent-light);
  padding: 4px 12px; border-radius: 16px; font-weight: 600;
  border: 1px solid rgba(0,102,204,0.3);
}

.detail-stats {
  display: flex; flex-direction: column; gap: 6px; flex-shrink: 0;
}
.stat-box {
  text-align: right; display: flex; align-items: baseline; gap: 6px;
  justify-content: flex-end;
}
.stat-num { font-size: 0.9rem; font-weight: 700; color: var(--text); }
.stat-label { font-size: 0.75rem; color: var(--text-muted); }

.detail-section { margin-bottom: 36px; }
.section-title {
  font-size: 1.25rem; font-weight: 700; margin-bottom: 16px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
  color: var(--text);
}
.detail-bio { color: var(--text-muted); line-height: 1.7; font-size: 1.02rem; }
.bio-collapse { max-height: 100px; overflow: hidden; position: relative; transition: max-height 0.3s ease; }
.bio-collapse.expanded { max-height: 2000px; }
.bio-collapse::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 40px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.bio-collapse.expanded::after { display: none; }
.bio-toggle {
  background: none; border: none; color: var(--accent); cursor: pointer;
  font-size: 14px; font-weight: 600; padding: 8px 0; margin-top: 4px;
}
.bio-toggle:hover { color: var(--accent-light); }

/* --- OF Links --- */
.of-links { display: flex; flex-direction: column; gap: 12px; }
.of-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-radius: var(--radius); text-decoration: none;
  transition: all var(--transition); border: 2px solid transparent;
  color: #fff;
}
.of-link-free { background: linear-gradient(135deg, #059669, #10b981); }
.of-link-paid { background: var(--accent-gradient); }
.of-link-ppv { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.of-link:hover { transform: translateX(4px); box-shadow: var(--shadow); color: #fff; filter: brightness(1.1); }
.of-link-content { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.of-link-type { font-weight: 700; font-size: 1.05rem; }
.of-link-arrow { font-size: 1.3rem; }

/* --- Social Links --- */
.social-links { display: flex; flex-direction: column; gap: 10px; }
.social-link {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 20px; border-radius: var(--radius); text-decoration: none;
  background: var(--surface); border: 1px solid var(--border);
  transition: all var(--transition); color: var(--text);
}
.social-link:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); transform: translateX(4px); }
.social-icon { font-size: 1.5rem; }
.social-info { flex: 1; display: flex; flex-direction: column; }
.social-platform { font-weight: 700; }
.social-followers { font-size: 0.85rem; color: var(--text-muted); }

/* --- Gallery --- */
.photo-gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.gallery-item {
  aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--border);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* --- Related grid --- */
.related-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

/* --- Apply Page --- */
.apply-page { padding: 40px 24px 60px; }
.apply-container { max-width: 640px; margin: 0 auto; }
.apply-header { text-align: center; margin-bottom: 32px; }
.apply-header h1 { font-size: 1.9rem; margin-bottom: 8px; color: var(--text); }
.apply-header p { color: var(--text-muted); }

.apply-form {
  background: var(--surface); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow); border: 1px solid var(--border);
}

.form-row { display: flex; gap: 16px; margin-bottom: 16px; }
.form-row-4 { display: grid; grid-template-columns: repeat(4, 1fr); }
.form-group { flex: 1; margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.req { color: var(--accent-light); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 14px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.95rem; outline: none;
  transition: border-color var(--transition); font-family: inherit;
  background: var(--bg); color: var(--text);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-light); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.form-group textarea { resize: vertical; }
.form-group select option { background: var(--surface); color: var(--text); }

.of-link-input-row {
  display: flex; gap: 8px; margin-bottom: 8px; align-items: center;
}
.of-link-input-row input { flex: 1; }
.link-type-select { width: 100px; }
.btn-remove { flex-shrink: 0; }

.form-actions { display: flex; gap: 12px; margin-top: 24px; }
.form-note { font-size: 0.8rem; color: var(--text-light); margin-top: 16px; text-align: center; }

/* --- Admin Login --- */
.login-page {
  display: flex; align-items: center; justify-content: center;
  flex: 1; padding: 40px 24px;
}
.login-card {
  background: var(--surface); border-radius: var(--radius-lg);
  padding: 48px 40px; box-shadow: var(--shadow-lg);
  max-width: 400px; width: 100%; text-align: center;
  border: 1px solid var(--border);
}
.login-header { margin-bottom: 32px; }
.login-header svg { margin: 0 auto 12px; }
.login-header h1 { font-size: 1.5rem; margin: 8px 0 4px; color: var(--text); }
.login-header p { color: var(--text-muted); font-size: 0.9rem; }
.login-form { text-align: left; }
.login-form .form-group { margin-bottom: 20px; }

/* --- Admin Panel --- */
.admin-page { max-width: 1000px; margin: 0 auto; padding: 30px 24px 60px; }
.admin-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 32px; flex-wrap: wrap; gap: 12px;
}
.admin-header h1 { font-size: 1.7rem; color: var(--text); }
.admin-header p { color: var(--text-muted); font-size: 0.9rem; }
.admin-header-actions { display: flex; align-items: center; gap: 16px; }
.admin-user { font-size: 0.85rem; color: var(--text-muted); }
.admin-user strong { color: var(--text); }

.admin-section {
  background: var(--surface); border-radius: var(--radius);
  padding: 24px; margin-bottom: 24px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.section-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px;
}
.admin-section .section-title { border-bottom: 1px solid var(--border); color: var(--text); }

.applications-list { display: flex; flex-direction: column; gap: 16px; }
.application-card {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 20px; border-radius: var(--radius); background: var(--bg);
  border: 1px solid var(--border); flex-wrap: wrap;
}
.application-card.approved { opacity: 0.6; }
.app-info h3 { font-size: 1.1rem; margin-bottom: 4px; color: var(--text); }
.app-date { font-size: 0.8rem; color: var(--text-light); font-weight: 400; }
.app-email { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 8px; }
.app-bio { font-size: 0.9rem; color: var(--text-muted); margin: 8px 0; }
.meta-tag {
  display: inline-block; margin-right: 8px; font-size: 0.8rem;
  background: var(--surface-2); color: var(--text-muted);
  padding: 2px 10px; border-radius: 12px;
  border: 1px solid var(--border);
}
.app-links { font-size: 0.85rem; margin-top: 8px; }
.app-links a { display: inline-block; margin-right: 12px; word-break: break-all; }
.app-actions { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }

.empty-msg { color: var(--text-muted); padding: 20px; text-align: center; }

.admin-table {
  width: 100%; border-collapse: collapse; font-size: 0.9rem;
  margin-bottom: 16px;
}
.admin-table th, .admin-table td {
  padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border);
}
.admin-table th { font-weight: 600; color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; }
.admin-table td { color: var(--text); }
.admin-table td a { color: var(--accent-light); }
.admin-table-full { margin-bottom: 0; }
.badge-free, .badge-paid, .badge-ppv, .badge-FREE, .badge-PAID, .badge-PPV {
  padding: 2px 8px; border-radius: 12px; font-size: 0.72rem; font-weight: 700;
}
.badge-free, .badge-FREE { background: rgba(16,185,129,0.15); color: #34d399; }
.badge-paid, .badge-PAID { background: rgba(0,102,204,0.15); color: var(--accent-light); }
.badge-ppv, .badge-PPV { background: rgba(124,58,237,0.15); color: #a78bfa; }

.admin-subsection {
  margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border);
}
.admin-subsection h3 { font-size: 1.1rem; margin-bottom: 12px; color: var(--text); }
.admin-preview-img {
  width: 100px; height: 100px; border-radius: var(--radius-sm);
  object-fit: cover; margin-bottom: 12px; border: 1px solid var(--border);
}

.inline-form {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px;
}
.inline-form input, .inline-form select {
  padding: 8px 12px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.85rem; font-family: inherit;
  background: var(--bg); color: var(--text);
}
.inline-form select option { background: var(--surface); color: var(--text); }
.admin-form { margin-bottom: 0; }
.form-checks { display: flex; gap: 24px; margin-bottom: 16px; }
.form-check { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; cursor: pointer; color: var(--text); }
.form-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.form-check-inline { display: flex; align-items: center; gap: 4px; font-size: 0.85rem; color: var(--text); }

/* --- Footer --- */
.footer {
  background: var(--surface); color: var(--text-muted);
  padding: 48px 24px 24px; margin-top: auto;
  border-top: 1px solid var(--border);
}
.footer-container { max-width: var(--max-width); margin: 0 auto; text-align: center; }
.footer-brand {
  font-size: 1.3rem; font-weight: 800; color: var(--text); margin-bottom: 8px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.footer-brand .accent { color: var(--accent-light); }
.footer-tag { font-size: 0.9rem; margin-bottom: 20px; }
.footer-links { display: flex; gap: 24px; justify-content: center; margin-bottom: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent-light); }
.footer-copy { font-size: 0.8rem; color: var(--text-light); }

/* --- Error page --- */
.error-page {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 60vh; text-align: center; padding: 40px;
}
.error-page h1 { font-size: 4rem; color: var(--accent); margin-bottom: 8px; }
.error-page p { color: var(--text-muted); margin-bottom: 20px; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero { padding: 40px 20px 30px; }
  .hero-search { flex-direction: column; border-radius: var(--radius); }
  .hero-search input { padding: 12px 14px; }
  .hero-search button { width: 100%; }

  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  body.nav-open .nav-links {
    display: flex; flex-direction: column; position: absolute;
    top: 64px; left: 0; right: 0; background: var(--surface);
    padding: 20px; box-shadow: var(--shadow); gap: 16px;
    border-bottom: 1px solid var(--border);
  }

  .filter-container { gap: 12px; }
  .filter-row { flex-wrap: wrap; }
  .filter-label { min-width: auto; }
  .filter-reset { margin-left: 0; width: 100%; justify-content: center; }

  .model-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .grid-container { padding: 0 16px; }

  .detail-header { flex-direction: column; text-align: center; align-items: center; }
  .detail-photo { width: 140px; height: 140px; }
  .detail-name { font-size: 1.4rem; }
  .detail-stats { flex-direction: row; justify-content: center; flex-wrap: wrap; gap: 12px; }
  .stat-box { min-width: 50px; }
  .stat-num { font-size: 1.2rem; }
  .social-icons { justify-content: center; }

  .form-row, .form-row-4 { flex-direction: column; }
  .form-row-4 { display: flex; }

  .apply-form { padding: 20px; }
  .login-card { padding: 32px 24px; }

  .application-card { flex-direction: column; }
  .app-actions { flex-direction: row; }
  .admin-table { font-size: 0.8rem; }
  .admin-table th, .admin-table td { padding: 8px 6px; }
}

@media (max-width: 480px) {
  .model-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card-info { padding: 10px 12px; }
  .card-name { font-size: 0.9rem; }
  .detail-stats { gap: 12px; }
  .stat-box { min-width: 50px; }
  .stat-num { font-size: 1.2rem; }
  .nav-container { padding: 0 16px; }
}
