/* ==========================================================================
   OFchicks theme (OF-01) — shared design tokens and base styles.
   Loaded on every page via app/templates/_theme_head.html.
   See docs/THEME_PLAN.md for the design rules and build steps.

   Step 1 (foundation): tokens and the self-hosted Inter font only.
   Nothing here changes how a page looks until a later step uses the tokens.
   ========================================================================== */

/* --- Inter, self-hosted (OFL-1.1, see fonts/LICENSE-Inter-OFL.txt) ------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Inter-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/Inter-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/Inter-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/Inter-Bold.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/Inter-ExtraBold.woff2') format('woff2');
}

/* --- Design tokens --------------------------------------------------------- */
:root {
  /* surfaces */
  --of-bg: #0a0a0a;
  --of-card: #121212;
  --of-secondary: #1f1f1f;
  --of-border: #242424;
  --of-border-strong: #3a3a3a;

  /* text */
  --of-fg: #f2f2f2;
  --of-muted: #8c8c8c;
  --of-dim: #6b6b6b;

  /* the one accent: main action per screen */
  --of-accent: #f59e0b;
  --of-accent-hover: #fbbf24;
  --of-accent-soft: rgba(245, 158, 11, 0.3);
  --of-on-accent: #0a0a0a;

  /* colours that carry meaning */
  --of-vip: #f5c542;
  --of-vip-gradient: linear-gradient(135deg, #fbd96a 0%, #f5c542 50%, #e0ad1f 100%);
  --of-on-vip: #1a1206;
  --of-ok: #4ade80;
  --of-bad: #f87171;
  --of-bad-strong: #dc2626;
  --of-bad-soft: rgba(220, 38, 38, 0.12);
  --of-warn: #fbbf24;

  /* shape */
  --of-radius: 0.75rem;
  --of-radius-card: 1rem;
  --of-radius-modal: 1.25rem;
  --of-radius-pill: 9999px;

  /* type */
  --of-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --of-shadow-pop: 0 20px 60px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   Component layer (steps 2-8). Every rule is prefixed with `html body` so it
   outranks the older per-page styles, which load after this file and use
   !important a lot. The !important here only exists to win against those
   older rules; once a page's legacy CSS is cleaned out they can go.

   Never set `display` on #signupButton, #registerButton or #authButton: the
   site's own JS/classes show and hide them by login state.
   ========================================================================== */

/* --- Base ------------------------------------------------------------------ */
html { background: var(--of-bg); }
html body {
  background: var(--of-bg) !important;
  background-image: none !important;
  color: var(--of-fg);
  font-family: var(--of-font) !important;
}
html body h1, html body h2, html body h3 {
  font-family: var(--of-font) !important;
  letter-spacing: -0.03em;
}
html body a { text-decoration: none; }
html body ::selection { background: var(--of-accent); color: var(--of-on-accent); }
html body input::placeholder, html body textarea::placeholder { color: var(--of-dim) !important; }
html body input:focus, html body select:focus, html body textarea:focus {
  border-color: var(--of-accent) !important;
  outline: none !important;
  box-shadow: none !important;
}

/* --- Step 2: navbar (homepage copy + shared navbar.html) ---------------- */
html body nav.navbar {
  background: rgba(10, 10, 10, 0.85) !important;
  background-image: none !important;
  border-bottom: 1px solid var(--of-border) !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
html body .navbar-brand a,
html body .navbar-brand .brand-word {
  background: none !important;
  -webkit-text-fill-color: var(--of-fg) !important;
  color: var(--of-fg) !important;
  font-family: var(--of-font) !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
  text-shadow: none !important;
  filter: none !important;
}
html body .navbar .vip-access-button,
html body .navbar .free-access-button {
  background: none !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--of-muted) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  padding: 0.5rem 0.75rem !important;
  border-radius: 0.6rem !important;
}
html body .navbar .vip-access-button span:not(.vip-icon),
html body .navbar .free-access-button span:not(.free-icon) { color: inherit !important; }
html body .navbar .vip-access-button:hover,
html body .navbar .free-access-button:hover {
  background: var(--of-secondary) !important;
  color: var(--of-fg) !important;
}
html body .navbar-center > div { gap: 4px !important; }

/* Register: solid amber pill. Login: outlined pill. (no display rules!) */
html body #signupButton,
html body #registerButton {
  background: var(--of-accent) !important;
  background-image: none !important;
  color: var(--of-on-accent) !important;
  border: 1px solid var(--of-accent) !important;
  border-radius: var(--of-radius-pill) !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}
html body #signupButton:hover,
html body #registerButton:hover { background: var(--of-accent-hover) !important; }
html body #authButton {
  background: transparent !important;
  background-image: none !important;
  color: var(--of-fg) !important;
  border: 1px solid var(--of-border-strong) !important;
  border-radius: var(--of-radius-pill) !important;
  box-shadow: none !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}
html body #authButton:hover { border-color: var(--of-accent) !important; }
html body #signupButton svg, html body #authButton svg,
html body #registerButton svg { color: inherit !important; }

/* logged-in user chip + dropdown */
html body .user-info-section {
  background: none !important;
  background-image: none !important;
  border: 1px solid var(--of-border) !important;
  border-radius: var(--of-radius-pill) !important;
  box-shadow: none !important;
}
html body .user-avatar {
  background: var(--of-accent) !important;
  background-image: none !important;
  color: var(--of-on-accent) !important;
  box-shadow: none !important;
}
html body .user-avatar * { color: var(--of-on-accent) !important; }
html body .user-greeting { color: var(--of-muted) !important; }
html body .username-display { color: var(--of-fg) !important; }
html body .user-menu-dropdown {
  background: var(--of-card) !important;
  background-image: none !important;
  border: 1px solid var(--of-border) !important;
  border-radius: var(--of-radius) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}
html body .user-menu-dropdown .dropdown-item { color: var(--of-fg) !important; }
html body .user-menu-dropdown .dropdown-item:hover { background: var(--of-secondary) !important; }
html body .dropdown-divider { background: var(--of-border) !important; }

/* phone menu */
html body .navbar .mobile-menu-button,
html body .mobile-menu-close {
  background: transparent !important;
  background-image: none !important;
  border: 1px solid var(--of-border) !important;
  color: var(--of-fg) !important;
  border-radius: 0.6rem !important;
  box-shadow: none !important;
}
html body .navbar .mobile-menu-button span { background: var(--of-fg) !important; }
html body .mobile-menu-panel {
  background: rgba(10, 10, 10, 0.97) !important;
  background-image: none !important;
  border-color: var(--of-border) !important;
  box-shadow: none !important;
}
html body .mobile-menu-header span { color: var(--of-fg) !important; }
html body .mobile-login-button {
  background: var(--of-accent) !important;
  background-image: none !important;
  color: var(--of-on-accent) !important;
  border: 0 !important;
  border-radius: var(--of-radius-pill) !important;
  box-shadow: none !important;
  font-weight: 600 !important;
}
html body .mobile-menu-item a {
  background: transparent !important;
  background-image: none !important;
  color: var(--of-fg) !important;
  border: 1px solid var(--of-border) !important;
  border-radius: var(--of-radius) !important;
  box-shadow: none !important;
}
html body .mobile-menu-item a:hover { background: var(--of-secondary) !important; border-color: var(--of-border-strong) !important; }

/* --- Step 2: footer ---------------------------------------------------- */
html body .site-footer {
  background: var(--of-bg) !important;
  background-image: none !important;
  border-top: 1px solid var(--of-border) !important;
  box-shadow: none !important;
}
html body .foot-col, html body .foot-col a,
html body .foot-disclaimer, html body .foot-contact-label, html body .foot-copy { color: var(--of-muted) !important; }
html body .foot-col a:hover { color: var(--of-fg) !important; }
html body .foot-col h4 {
  color: var(--of-fg) !important;
  font-size: 11px !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
}
html body .foot-brand, html body .foot-contact { color: var(--of-fg) !important; }

/* --- Step 3: homepage -------------------------------------------------- */
html body .home-hero .hero-title {
  font-family: var(--of-font) !important;
  font-weight: 600 !important;
  letter-spacing: -0.035em !important;
  line-height: 1.1 !important;
  color: var(--of-fg) !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  text-shadow: none !important;
}
html body .hero-stats-line { color: var(--of-muted) !important; }

html body .search-bar {
  background: var(--of-card) !important;
  background-image: none !important;
  border: 1px solid var(--of-border) !important;
  box-shadow: none !important;
}
html body .search-bar:focus-within { border-color: var(--of-accent) !important; }
html body .search-bar input[type=text] {
  background: transparent !important;
  border: 0 !important;
  color: var(--of-fg) !important;
  box-shadow: none !important;
}
html body .search-bar input[type=submit] {
  background: var(--of-accent) !important;
  background-image: none !important;
  color: var(--of-on-accent) !important;
  border: 0 !important;
  border-radius: var(--of-radius-pill) !important;
  box-shadow: none !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  font-size: 12px !important;
}
html body .search-suggestions {
  background: var(--of-card) !important;
  background-image: none !important;
  border: 1px solid var(--of-border) !important;
  border-radius: var(--of-radius) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}
html body .suggestion-item { color: var(--of-fg) !important; background: transparent !important; border-color: var(--of-border) !important; }
html body .suggestion-item:hover { background: var(--of-secondary) !important; }

/* grid: fixed 4 / 3 / 2 / 1 columns, max 1400px (OF-06) */
html body .links-container {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 20px !important;
  align-items: start !important;
  max-width: 1400px !important;
  margin-inline: auto !important;
}
@media (max-width: 1024px) { html body .links-container { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@media (max-width: 768px)  { html body .links-container { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 420px)  { html body .links-container { grid-template-columns: 1fr !important; } }

/* cards (OF-07): no crop, no lift, faint amber border on hover */
html body .link-item {
  background: var(--of-card) !important;
  background-image: none !important;
  border: 1px solid var(--of-border) !important;
  border-radius: var(--of-radius-card) !important;
  box-shadow: none !important;
  transition: border-color 0.3s !important;
}
html body .link-item:hover { border-color: var(--of-accent-soft) !important; transform: none !important; }
html body .link-item img {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
}
html body .thumbnail-placeholder { background: var(--of-secondary) !important; background-image: none !important; color: var(--of-muted) !important; }
html body .creation-time { color: var(--of-muted) !important; background: none !important; border: 0 !important; }
html body .links-container .ad-slot {
  background: var(--of-card) !important;
  border: 1px solid var(--of-border) !important;
  border-radius: var(--of-radius-card) !important;
  overflow: hidden !important;
}
html body .link-item .destination-button {
  background: var(--of-secondary) !important;
  background-image: none !important;
  border: 1px solid var(--of-border) !important;
  color: var(--of-accent) !important;
  box-shadow: none !important;
}
html body .link-item .destination-button:hover { border-color: var(--of-accent) !important; }

/* pagination (OF-11) */
html body .pagination { gap: 6px !important; justify-content: center !important; }
html body .pagination a, html body .pagination strong, html body .pagination span {
  min-width: 40px !important;
  height: 40px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 0.75rem !important;
  border-radius: var(--of-radius) !important;
  background: var(--of-card) !important;
  background-image: none !important;
  border: 1px solid var(--of-border) !important;
  color: var(--of-muted) !important;
  box-shadow: none !important;
}
html body .pagination span { background: none !important; border-color: transparent !important; }
html body .pagination a:hover { border-color: var(--of-accent) !important; color: var(--of-fg) !important; }
html body .pagination strong { background: var(--of-accent) !important; border-color: var(--of-accent) !important; color: var(--of-on-accent) !important; }

/* toasts */
html body .toast-notification {
  background: var(--of-card) !important;
  background-image: none !important;
  border: 1px solid var(--of-border) !important;
  border-left: 3px solid var(--of-accent) !important;
  color: var(--of-fg) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6) !important;
}
html body .toast-notification::before { display: none !important; }
html body .toast-notification .toast-close { color: var(--of-muted) !important; }

/* --- Steps 3/4/7: popups and modals ------------------------------------ */
html body .login-modal { background: rgba(0, 0, 0, 0.7) !important; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
html body .login-form, html body .key-info-form, html body .vtp-card {
  background: var(--of-card) !important;
  background-image: none !important;
  border: 1px solid var(--of-border) !important;
  border-radius: var(--of-radius-modal) !important;
  box-shadow: var(--of-shadow-pop) !important;
  color: var(--of-fg) !important;
}
html body .login-form label { color: var(--of-muted) !important; }
html body .btn-primary, html body .vtp-activate, html body #homeVipTrialActivateBtn,
html body .login-form button[type=submit] {
  background: var(--of-accent) !important;
  background-image: none !important;
  color: var(--of-on-accent) !important;
  border: 0 !important;
  border-radius: var(--of-radius-pill) !important;
  box-shadow: none !important;
  font-weight: 600 !important;
}
html body .close-btn, html body .vtp-close { background: transparent !important; background-image: none !important; color: var(--of-muted) !important; box-shadow: none !important; }
html body .vtp-later { background: transparent !important; color: var(--of-muted) !important; border: 1px solid var(--of-border) !important; }

/* Goontasy "Featured now" promo (homepage + model page): the CTA must stay prominent */
html body .goontasy-home-promo-card, html body .goontasy-model-promo-card {
  background: var(--of-card) !important;
  background-image: none !important;
  border: 1px solid var(--of-border) !important;
  box-shadow: var(--of-shadow-pop) !important;
}
html body .goontasy-home-promo-body, html body .goontasy-model-promo-body { background: var(--of-card) !important; background-image: none !important; }
html body .goontasy-home-promo-overline, html body .goontasy-model-promo-overline,
html body .goontasy-home-promo-kicker, html body .goontasy-model-promo-kicker { color: var(--of-accent) !important; }
html body .goontasy-home-promo-title, html body .goontasy-model-promo-title,
html body .goontasy-home-promo-media-title, html body .goontasy-model-promo-media-title { color: var(--of-fg) !important; }
html body .goontasy-home-promo-open, html body .goontasy-model-promo-open {
  background: var(--of-accent) !important;
  background-image: none !important;
  color: var(--of-on-accent) !important;
  border: 0 !important;
  border-radius: var(--of-radius-pill) !important;
  box-shadow: none !important;
}
html body .goontasy-home-promo-close, html body .goontasy-model-promo-close {
  background: transparent !important;
  border: 1px solid var(--of-border) !important;
  border-radius: var(--of-radius-pill) !important;
  color: var(--of-muted) !important;
}
html body .goontasy-home-promo-close-fill, html body .goontasy-model-promo-close-fill { background: var(--of-secondary) !important; background-image: none !important; }
html body .goontasy-home-promo-close-label, html body .goontasy-model-promo-close-label { color: var(--of-muted) !important; }
html body .ad-link-popup-open { background: var(--of-accent) !important; background-image: none !important; color: var(--of-on-accent) !important; border-radius: var(--of-radius-pill) !important; }
html body .ad-link-popup-close-timer-fill { background: var(--of-accent) !important; }

/* VIP keeps gold */
html body .vip-price-card { background: var(--of-bg) !important; background-image: none !important; border: 1px solid var(--of-border) !important; box-shadow: none !important; }

/* --- Step 4: model page, Option B on desktop --------------------------- */
html body .model-page-shell .card,
html body main.page > article.card { background: transparent !important; }
html body main.page .content h1 {
  color: var(--of-fg) !important;
  -webkit-text-fill-color: var(--of-fg) !important;
  background: none !important;
  font-family: var(--of-font) !important;
  letter-spacing: -0.03em !important;
}
html body main.page .title-rule, html body main.page .thumb-name-overlay { display: none !important; }
html body main.page .primary-btn {
  background: var(--of-accent) !important;
  background-image: none !important;
  color: var(--of-on-accent) !important;
  border: 0 !important;
  border-radius: var(--of-radius-pill) !important;
  box-shadow: none !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}
html body main.page .primary-btn.is-vip {
  background: var(--of-vip-gradient) !important;
  color: var(--of-on-vip) !important;
}
html body main.page .secondary-btn {
  background: transparent !important;
  background-image: none !important;
  color: var(--of-fg) !important;
  border: 1px solid var(--of-border-strong) !important;
  border-radius: var(--of-radius-pill) !important;
  box-shadow: none !important;
  text-decoration: none !important;
}
html body main.page .secondary-btn:hover { border-color: var(--of-accent) !important; }
html body main.page .hint { background: none !important; border: 0 !important; color: var(--of-muted) !important; padding: 0 !important; }
html body main.page .model-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; padding: 0; list-style: none; }
html body main.page .model-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--of-radius-pill);
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--of-fg); font-size: 13px; font-weight: 500;
}
html body main.page .model-pill.is-vip { color: var(--of-vip); border-color: rgba(245, 197, 66, 0.5); }
html body main.page .bio-card {
  background: none !important; background-image: none !important; border: 0 !important;
  border-top: 1px solid var(--of-border) !important; border-radius: 0 !important; box-shadow: none !important;
}
html body main.page .bio-card-title { color: var(--of-muted) !important; -webkit-text-fill-color: var(--of-muted) !important; background: none !important; }
html body main.page .bio-text { color: #c9c9c9 !important; }
html body main.page .bio-tag { background: transparent !important; border: 1px solid var(--of-border) !important; color: var(--of-muted) !important; border-radius: var(--of-radius-pill) !important; }

@media (min-width: 901px) {
  html:has(main.page > article.card), html body:has(main.page > article.card) { height: auto !important; overflow: auto !important; }
  html body main.page {
    height: auto !important; min-height: 0 !important;
    max-width: 1120px !important; padding: 64px 32px 80px !important; position: relative;
  }
  html body main.page > article.card {
    height: auto !important; display: grid !important;
    grid-template-columns: 420px minmax(0, 1fr) !important; gap: 56px !important;
    border: 0 !important; overflow: visible !important; align-items: center !important;
  }
  /* position: relative keeps the admin image tools (admin-overlay.js, .ofca-bar)
     anchored to the picture; the blurred .thumb-bg is position: fixed, so it is
     unaffected. */
  html body main.page .thumb-wrap {
    position: relative !important; height: auto !important; min-height: 0 !important;
    background: transparent !important; box-shadow: none !important; overflow: visible !important; display: block !important;
  }
  html body main.page .thumb-bg {
    position: fixed !important; inset: 0 0 auto 0 !important; height: 78vh !important; width: 100vw !important;
    filter: blur(60px) brightness(0.32) saturate(1.2) !important; transform: scale(1.15) !important; z-index: -1 !important;
    -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent) !important;
    mask-image: linear-gradient(to bottom, #000 40%, transparent) !important;
  }
  html body main.page .thumb-wrap img:not(.thumb-bg) {
    width: 100% !important; max-width: 420px !important; max-height: none !important; height: auto !important;
    border-radius: 18px !important; border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55) !important;
  }
  html body main.page .content {
    height: auto !important; overflow: visible !important; background: transparent !important;
    border: 0 !important; padding: 0 !important; gap: 16px !important; max-width: 520px !important;
  }
  html body main.page .content h1 { font-size: 3.2rem !important; line-height: 1 !important; margin: 0 0 6px !important; }
  html body main.page .primary-btn { padding: 16px 22px !important; font-size: 16px !important; margin: 6px 0 0 !important; }
  html body main.page .secondary-btn { padding: 14px 22px !important; font-size: 15px !important; margin: 0 !important; }
}

/* --- Step 5: model listings (/models, /models/<slug>, /models/unbound) - */
html body .chip, html body .psort, html body .md-tag, html body .mtag, html body .stat, html body .of-badge {
  background: var(--of-secondary) !important;
  background-image: none !important;
  border: 1px solid var(--of-border) !important;
  color: var(--of-muted) !important;
  box-shadow: none !important;
}
html body .chip:hover, html body .psort:hover { color: var(--of-fg) !important; border-color: var(--of-border-strong) !important; }
html body .chip.active, html body .psort.active { background: var(--of-accent) !important; border-color: var(--of-accent) !important; color: var(--of-on-accent) !important; }
html body .filter-label, html body .ps-label { color: var(--of-muted) !important; }
html body .model-card, html body .pack-card, html body .md-hero {
  background: var(--of-card) !important;
  background-image: none !important;
  border: 1px solid var(--of-border) !important;
  box-shadow: none !important;
}
html body .model-card:hover, html body .pack-card:hover { border-color: var(--of-accent-soft) !important; transform: none !important; }
html body .random-btn, html body .load-more-btn {
  background: var(--of-accent) !important; background-image: none !important;
  color: var(--of-on-accent) !important; border: 0 !important;
  border-radius: var(--of-radius-pill) !important; box-shadow: none !important; font-weight: 600 !important;
}
/* Open pack: outlined, so a page of packs is not all amber (decision 5) */
html body .pack-card .popen span {
  background: transparent !important; color: var(--of-fg) !important;
  border: 1px solid var(--of-border-strong) !important; border-radius: var(--of-radius-pill) !important;
}
html body .pack-card:hover .popen span { border-color: var(--of-accent) !important; background: transparent !important; }
html body .mage, html body .mpacks, html body .pposted, html body .md-sub,
html body .models-head p, html body .lead, html body .count { color: var(--of-muted) !important; }
html body table th { color: var(--of-muted) !important; }
html body .md-back, html body .back { color: var(--of-muted) !important; }
html body .md-back:hover, html body .back:hover { color: var(--of-fg) !important; }

/* --- Step 6: account pages (login, register, password, verify, unsubscribe) */
/* stack the card above the footer (fixes the footer-beside-card bug) */
html body:has(> .card) { flex-direction: column !important; align-items: center !important; }
html body:has(> .card) > .site-footer { width: 100% !important; align-self: stretch !important; margin-top: 48px !important; }
html body > .card {
  background: var(--of-card) !important;
  background-image: none !important;
  border: 1px solid var(--of-border) !important;
  box-shadow: none !important;
}
html body > .card .btn, html body .login-btn, html body .register-btn {
  background: var(--of-accent) !important;
  background-image: none !important;
  color: var(--of-on-accent) !important;
  border: 0 !important;
  border-radius: var(--of-radius-pill) !important;
  box-shadow: none !important;
}
html body > .card .btn.ghost, html body > .card .btn.quiet, html body > .card .btn.secondary {
  background: transparent !important;
  color: var(--of-fg) !important;
  border: 1px solid var(--of-border-strong) !important;
}
html body > .card a:not(.btn) { color: var(--of-fg); text-decoration: underline; text-decoration-color: #444; }
html body .error-message {
  background: var(--of-bad-soft) !important;
  border: 1px solid rgba(220, 38, 38, 0.35) !important;
  color: #fecaca !important;
}

/* --- Step 8: admin bar ------------------------------------------------- */
html body .adminbar {
  background: rgba(10, 10, 10, 0.9) !important;
  border-bottom: 1px solid var(--of-border) !important;
  box-shadow: none !important;
}
html body .adminbar .brand i { background: var(--of-accent) !important; box-shadow: none !important; }
html body .adminbar .nav { color: var(--of-muted) !important; }
html body .adminbar .nav.on, html body .adminbar .nav:hover { color: var(--of-fg) !important; border-color: var(--of-accent) !important; }

/* --- Fixes after checking the real pages ------------------------------- */
/* logo: the homepage rule `.navbar .navbar-brand .brand-word` outranks the base rule */
html body nav.navbar .navbar-brand .brand-word,
html body nav.navbar .navbar-brand a {
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: var(--of-fg) !important;
  color: var(--of-fg) !important;
  filter: none !important;
}
/* "Free HD Videos": plain nav link like the others (id rules + inline style on the live markup) */
html body nav.navbar #freeVideosBtn {
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--of-muted) !important;
}
html body nav.navbar #freeVideosBtn:hover { background: var(--of-secondary) !important; color: var(--of-fg) !important; }
/* headings are white; colour is for actions and meaning, not titles */
html body h1, html body h2 {
  color: var(--of-fg) !important;
  -webkit-text-fill-color: currentColor !important;
  background-image: none !important;
  text-shadow: none !important;
}
html body h1 *, html body h2 * { -webkit-text-fill-color: currentColor !important; }
/* empty search state */
html body .of-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 16px;
  color: var(--of-muted);
}
html body .of-empty-title { color: var(--of-fg); font-size: 1.35rem; font-weight: 600; margin: 0 0 6px; }
html body .of-empty-text { margin: 0 0 20px; }
html body .of-empty-cta {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--of-radius-pill);
  background: var(--of-accent);
  color: var(--of-on-accent) !important;
  font-weight: 600;
}

/* --- Model profile photos (OF-12) --------------------------------------- */
html body .md-photos { margin: 0 0 32px; }
html body .md-photos[hidden] { display: none !important; }
html body .md-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
html body .md-photo {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: var(--of-radius);
  overflow: hidden;
  background: var(--of-secondary);
  border: 1px solid var(--of-border);
}
html body .md-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
html body .md-photo:hover img { transform: scale(1.03); }
@media (max-width: 640px) {
  html body .md-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}
html body .md-lightbox {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0, 0, 0, 0.92);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  cursor: zoom-out;
}
html body .md-lightbox[hidden] { display: none !important; }
html body .md-lightbox img { max-width: 100%; max-height: 100%; border-radius: var(--of-radius); }
html body .md-lightbox button {
  position: absolute; top: 16px; right: 16px; width: 40px; height: 40px;
  border-radius: var(--of-radius-pill); border: 1px solid var(--of-border-strong);
  background: var(--of-card); color: var(--of-fg); font-size: 22px; cursor: pointer;
}
