/* ═══════════════════════════════════════════════════════════════════════════
   Dunia.cam — app.css
   Consolidated stylesheet for all pages (except the standalone watch page).
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Design tokens ─────────────────────────────────────────────────────────── */
:root {
  --accent:     #E8611A;
  --accent-dim: rgba(232,97,26,0.18);
  --bg:         #0C0C0C;
  --surface:    #161616;
  --surface2:   #1e1e1e;
  --border:     rgba(255,255,255,0.08);
  --text-hi:    #F0EDE8;
  --text-lo:    rgba(240,237,232,0.45);
  --bar-bg:     rgba(12,12,12,0.88);
  --radius:     8px;
}
[data-theme="light"] {
  --bg:      #F2EFE9;
  --surface: #E8E4DC;
  --surface2:#DEDAD2;
  --border:  rgba(0,0,0,0.09);
  --text-hi: #111111;
  --text-lo: rgba(17,17,17,0.45);
  --bar-bg:  rgba(242,239,233,0.90);
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg);
  color: var(--text-hi);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Top nav ────────────────────────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 52px;
  background: var(--bar-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
  gap: 1rem;
}
.site-nav .logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--text-hi);
  text-decoration: none;
  flex-shrink: 0;
}
.site-nav .logo span { color: var(--accent); }
.site-nav .nav-spacer { flex: 1; }
.site-nav .wallet-badge {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
}
.nav-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-lo);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  text-decoration: none;
}
.nav-icon-btn:hover { color: var(--text-hi); border-color: var(--text-lo); text-decoration: none; }
.nav-icon-btn svg { width: 18px; height: 18px; }

/* ── Collapsible nav links (hamburger on mobile) ──────────────────────────────
   Desktop: .nav-links renders inline (icons only, labels hidden, burger hidden).
   Mobile (≤640px): links collapse into a dropdown opened by the burger, so the
   right side of the bar is just the theme toggle + burger. */
.site-nav .nav-links { display: flex; align-items: center; gap: 1rem; }
.nav-label { display: none; }
.nav-burger { display: none; }

@media (max-width: 640px) {
  .site-nav { position: sticky; }
  .nav-burger { display: flex; }
  .site-nav .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 1px);          /* just under the bar's border */
    right: 0.75rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    min-width: 12rem;
    padding: 0.4rem;
    /* Opaque surface (not the translucent bar-bg) so the menu never shows the
       camera grid through it, and a high z-index so it sits above page content. */
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    z-index: 200;
  }
  .site-nav .nav-links.open { display: flex; }
  /* Menu items become full-width rows with clearly-legible labels */
  .nav-links .nav-icon-btn {
    width: auto;
    height: auto;
    justify-content: flex-start;
    gap: 0.6rem;
    padding: 0.6rem 0.7rem;
    border: none;
    border-radius: var(--radius);
    color: var(--text-hi);
  }
  .nav-links .nav-icon-btn:hover { background: var(--bg); }
  .nav-links .nav-label { display: inline; font-size: 0.9rem; }
  .nav-links .nav-login { text-align: center; margin: 0.3rem 0.2rem 0.1rem; }
}

/* ── Page container ─────────────────────────────────────────────────────────── */
.page      { max-width: 1100px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.page-wide { max-width: 1400px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }

/* ── Cards / surfaces ───────────────────────────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: opacity 0.15s;
  text-decoration: none;
}
.btn:hover { opacity: 0.85; text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-outline  { background: transparent; border-color: var(--border); color: var(--text-hi); }
.btn-danger   { background: #c0392b; color: #fff; }
.btn-sm { padding: 0.3rem 0.75rem; font-size: 0.8rem; }

/* ── Forms ──────────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-lo); margin-bottom: 0.35rem; }
.form-label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-lo); margin-bottom: 0.35rem; }
.form-control,
.form-input {
  width: 100%;
  padding: 0.55rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-hi);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.15s;
}
.form-control:focus,
.form-input:focus { outline: none; border-color: var(--accent); }
.form-control::placeholder,
.form-input::placeholder { color: var(--text-lo); }
select.form-input,
select.form-control {
  appearance: none;
  cursor: pointer;
  padding-right: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7l5 5 5-5' stroke='%23888' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  background-size: 12px 12px;
}
select.form-input option,
select.form-control option { background: var(--surface); color: var(--text-hi); }

.form-select {
  padding: 0.55rem 2rem 0.55rem 0.75rem;
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7l5 5 5-5' stroke='%23888' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  background-size: 12px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-hi);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.15s;
}
.form-select:focus { outline: none; border-color: var(--accent); }
.form-select option { background: var(--surface); color: var(--text-hi); }

/* ── Tables ─────────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
th, td { padding: 0.65rem 0.85rem; text-align: left; border-bottom: 1px solid var(--border); }
th { color: var(--text-lo); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--accent-dim); }

/* ── Badges ─────────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.badge-live    { background: var(--accent-dim); color: var(--accent); border: 1px solid var(--accent); }
.badge-offline { background: rgba(255,255,255,0.06); color: var(--text-lo); border: 1px solid var(--border); }
.badge-success { background: rgba(39,174,96,0.15); color: #27ae60; border: 1px solid rgba(39,174,96,0.3); }
.badge-info    { background: rgba(52,152,219,0.15); color: #3498db; border: 1px solid rgba(52,152,219,0.3); }

.live-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

/* ── Grids ──────────────────────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }

/* ── Stat card ──────────────────────────────────────────────────────────────── */
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.stat-card .stat-value { font-size: 2rem; font-family: 'Bebas Neue', sans-serif; letter-spacing: 0.04em; color: var(--text-hi); }
.stat-card .stat-label { font-size: 0.75rem; color: var(--text-lo); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0.15rem; }

/* ── Alerts ─────────────────────────────────────────────────────────────────── */
.alert { padding: 0.75rem 1rem; border-radius: var(--radius); font-size: 0.875rem; margin-bottom: 1rem; }
.alert-error   { background: rgba(192,57,43,0.15); border: 1px solid rgba(192,57,43,0.4); color: #e74c3c; }
.alert-success { background: rgba(39,174,96,0.15);  border: 1px solid rgba(39,174,96,0.4);  color: #27ae60; }
.alert-info    { background: var(--accent-dim);      border: 1px solid rgba(232,97,26,0.35); color: var(--accent); }

/* ── Page heading ───────────────────────────────────────────────────────────── */
.page-heading { font-family: 'Bebas Neue', sans-serif; font-size: 2rem; letter-spacing: 0.04em; margin-bottom: 1.5rem; }

/* ── Footer ─────────────────────────────────────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-lo);
  font-size: 0.78rem;
  border-top: 1px solid var(--border);
  margin-top: 4rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Home page — camera grid
   ═══════════════════════════════════════════════════════════════════════════ */
.cam-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}
@media (max-width: 1100px) { .cam-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .cam-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; } }
@media (max-width: 480px)  { .cam-grid { grid-template-columns: 1fr; } }

.cam-card {
  display: flex; flex-direction: column; gap: 0;
  cursor: pointer; border-radius: var(--radius); overflow: hidden;
  transition: transform .15s; text-decoration: none; color: inherit;
}
.cam-card:hover { transform: translateY(-2px); text-decoration: none; }
.cam-card:hover .cam-thumb { filter: brightness(1.08); }

.cam-thumb-wrap { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #111; border-radius: var(--radius); }
.cam-thumb { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter .2s; }
.cam-thumb-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #161616 0%, #1e1e1e 100%);
  color: var(--text-lo); font-family: 'Bebas Neue', sans-serif; font-size: 1.1rem; letter-spacing: .05em;
}
.cam-badge-wrap { position: absolute; top: .5rem; left: .5rem; display: flex; gap: .35rem; align-items: center; }
.cam-uptime {
  position: absolute; bottom: .5rem; right: .5rem;
  background: rgba(0,0,0,0.65); color: #fff; font-size: .68rem; font-weight: 600;
  padding: .15rem .45rem; border-radius: 4px; backdrop-filter: blur(4px); letter-spacing: .02em;
}
.cam-info { padding: .6rem .25rem .5rem; display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.cam-title {
  font-weight: 600; font-size: .9rem; line-height: 1.3; color: var(--text-hi);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cam-meta { display: flex; align-items: center; gap: .5rem; font-size: .75rem; color: var(--text-lo); }
.cam-handle { font-weight: 500; }
.cam-dot { width: 3px; height: 3px; background: var(--text-lo); border-radius: 50%; flex-shrink: 0; }
.cam-desc {
  font-size: .78rem; color: var(--text-lo);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4;
}
.cam-footer { display: flex; align-items: center; justify-content: space-between; margin-top: .35rem; }
.cam-rate { font-size: .8rem; font-weight: 700; color: var(--accent); }
.cam-rate span { font-weight: 400; color: var(--text-lo); font-size: .7rem; }

.section-label {
  font-family: 'Bebas Neue', sans-serif; font-size: 1.1rem; letter-spacing: .06em;
  color: var(--text-lo); margin: 2rem 0 .8rem;
  display: flex; align-items: center; gap: .6rem;
}
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.filter-bar { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.filter-btn {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .75rem; border-radius: 999px; font-size: .8rem; font-weight: 600;
  border: 1px solid var(--border); background: transparent; color: var(--text-lo);
  cursor: pointer; transition: all .15s; font-family: 'DM Sans', sans-serif;
}
.filter-btn.active, .filter-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.count-pill { background: var(--surface); color: var(--text-lo); padding: .05rem .4rem; border-radius: 999px; font-size: .68rem; }
.filter-btn.active .count-pill { background: var(--accent); color: #fff; }

/* ═══════════════════════════════════════════════════════════════════════════
   Camera profile page
   ═══════════════════════════════════════════════════════════════════════════ */
.cp-hero {
  position: relative; width: 100%; aspect-ratio: 16/9; max-height: 480px;
  background: #111; border-radius: var(--radius); overflow: hidden; margin-bottom: 1.5rem;
}
.cp-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-hero-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #161616 0%, #1e1e1e 100%);
  font-family: 'Bebas Neue', sans-serif; font-size: 3rem; letter-spacing: .08em; color: rgba(240,237,232,.12);
}
.cp-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 50%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem;
}
.cp-hero-title { font-family: 'Bebas Neue', sans-serif; font-size: 2.2rem; letter-spacing: .04em; color: #fff; line-height: 1.1; text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.cp-hero-meta { display: flex; align-items: center; gap: .75rem; margin-top: .4rem; flex-wrap: wrap; }

.cp-layout { display: grid; grid-template-columns: 1fr 300px; gap: 1.5rem; align-items: start; }
@media(max-width: 900px) { .cp-layout { grid-template-columns: 1fr; } }

.cp-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-bottom: 1rem; }
.cp-section-title { font-family: 'Bebas Neue', sans-serif; font-size: 1rem; letter-spacing: .06em; color: var(--text-lo); margin-bottom: .85rem; }

.cp-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
@media(max-width:600px) { .cp-stat-grid { grid-template-columns: repeat(2, 1fr); } }
.cp-stat { background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: .75rem 1rem; }
.cp-stat .sv { font-family: 'Bebas Neue', sans-serif; font-size: 1.6rem; letter-spacing: .03em; color: var(--text-hi); line-height: 1; }
.cp-stat .sl { font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-lo); margin-top: .2rem; }
.cp-stat.accent .sv { color: var(--accent); }

.cp-engage-row { display: flex; gap: .65rem; }
.cp-engage-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .6rem .5rem; border-radius: 6px; font-family: 'DM Sans', sans-serif; font-size: .85rem; font-weight: 600;
  border: 1px solid var(--border); background: var(--bg); color: var(--text-lo); cursor: pointer; transition: all .15s;
}
.cp-engage-btn:hover, .cp-engage-btn.active { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.cp-engage-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.meta-row { display: flex; justify-content: space-between; align-items: center; padding: .45rem 0; border-bottom: 1px solid var(--border); font-size: .84rem; }
.meta-row:last-child { border-bottom: none; }
.meta-row .mk { color: var(--text-lo); }
.meta-row .mv { color: var(--text-hi); font-weight: 600; }

.owner-card { display: flex; align-items: center; gap: .85rem; padding: .75rem 0; text-decoration: none; }
.owner-card:hover { text-decoration: none; }
.owner-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-dim); border: 1px solid var(--accent); display: flex; align-items: center; justify-content: center; font-family: 'Bebas Neue', sans-serif; font-size: 1.1rem; color: var(--accent); flex-shrink: 0; }
.owner-card .on { font-weight: 700; color: var(--text-hi); font-size: .92rem; }
.owner-card .oh { font-size: .76rem; color: var(--accent); }
.owner-card .oa { font-size: .72rem; color: var(--text-lo); margin-top: .1rem; }

.watch-cta { display: flex; flex-direction: column; gap: .65rem; }
.watch-cta .btn { justify-content: center; padding: .7rem 1rem; font-size: .95rem; }
.watch-cta .offline-note { font-size: .78rem; color: var(--text-lo); text-align: center; }

.rel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.rel-card { text-decoration: none; border-radius: 6px; overflow: hidden; background: var(--bg); border: 1px solid var(--border); transition: transform .12s; }
.rel-card:hover { transform: translateY(-2px); text-decoration: none; }
.rel-thumb { position: relative; aspect-ratio: 16/9; background: #111; }
.rel-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rel-thumb-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #1a1a1a; font-size: .65rem; color: var(--text-lo); font-family: 'Bebas Neue', sans-serif; }
.rel-badge { position: absolute; top: .3rem; left: .3rem; font-size: .58rem; font-weight: 700; padding: .1rem .35rem; border-radius: 3px; }
.rel-badge.live { background: var(--accent-dim); color: var(--accent); border: 1px solid var(--accent); }
.rel-badge.off  { background: rgba(255,255,255,.06); color: var(--text-lo); border: 1px solid var(--border); }
.rel-info { padding: .4rem .5rem; }
.rel-title { font-size: .75rem; font-weight: 600; color: var(--text-hi); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rel-rate  { font-size: .68rem; color: var(--accent); font-weight: 700; margin-top: .1rem; }

/* ═══════════════════════════════════════════════════════════════════════════
   Owner profile page
   ═══════════════════════════════════════════════════════════════════════════ */
.op-header { display: flex; align-items: center; gap: 1.5rem; padding: 2rem 0 1.75rem; border-bottom: 1px solid var(--border); margin-bottom: 1.75rem; flex-wrap: wrap; }
.op-avatar { width: 80px; height: 80px; border-radius: 50%; background: var(--accent-dim); border: 2px solid var(--accent); display: flex; align-items: center; justify-content: center; font-family: 'Bebas Neue', sans-serif; font-size: 2.2rem; color: var(--accent); flex-shrink: 0; }
.op-name   { font-family: 'Bebas Neue', sans-serif; font-size: 2rem; letter-spacing: .03em; color: var(--text-hi); line-height: 1.1; }
.op-handle { font-size: .85rem; color: var(--accent); font-weight: 600; margin-top: .2rem; }
.op-since  { font-size: .75rem; color: var(--text-lo); margin-top: .25rem; }
.op-stats  { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-left: auto; }
.op-stat   { text-align: center; }
.op-stat .sv { font-family: 'Bebas Neue', sans-serif; font-size: 1.6rem; letter-spacing: .03em; color: var(--text-hi); }
.op-stat .sl { font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-lo); }
.op-stat.accent .sv { color: var(--accent); }

.op-section-title {
  font-family: 'Bebas Neue', sans-serif; font-size: 1.1rem; letter-spacing: .06em;
  color: var(--text-lo); margin-bottom: .85rem; display: flex; align-items: center; gap: .6rem;
}
.op-section-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.op-cam-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
@media(max-width:1000px) { .op-cam-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width:560px)  { .op-cam-grid { grid-template-columns: 1fr; } }

.op-cam-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: transform .15s; display: flex; flex-direction: column; }
.op-cam-card:hover { transform: translateY(-2px); text-decoration: none; }
.op-cam-thumb { position: relative; aspect-ratio: 16/9; background: #111; overflow: hidden; }
.op-cam-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter .2s; }
.op-cam-card:hover .op-cam-thumb img { filter: brightness(1.08); }
.op-cam-thumb-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #161616 0%, #1e1e1e 100%); font-family: 'Bebas Neue', sans-serif; font-size: 1rem; letter-spacing: .05em; color: var(--text-lo); }
.op-cam-badges { position: absolute; top: .5rem; left: .5rem; display: flex; gap: .3rem; }
.op-cam-uptime { position: absolute; bottom: .4rem; right: .4rem; background: rgba(0,0,0,.65); color: #fff; font-size: .65rem; font-weight: 600; padding: .12rem .4rem; border-radius: 4px; backdrop-filter: blur(4px); }
.op-cam-body   { padding: .75rem 1rem; flex: 1; display: flex; flex-direction: column; gap: .25rem; }
.op-cam-title  { font-weight: 700; font-size: .9rem; color: var(--text-hi); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.op-cam-desc   { font-size: .78rem; color: var(--text-lo); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: .1rem; }
.op-cam-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: .5rem; }
.op-cam-rate   { font-size: .82rem; font-weight: 700; color: var(--accent); }
.op-cam-rate span { font-weight: 400; color: var(--text-lo); font-size: .72rem; }
.op-cam-meta   { display: flex; gap: .65rem; font-size: .72rem; color: var(--text-lo); align-items: center; flex-wrap: wrap; margin-top: .2rem; }
.op-cam-meta svg { width: 11px; height: 11px; flex-shrink: 0; }
.op-empty { text-align: center; padding: 4rem 2rem; color: var(--text-lo); }

/* ═══════════════════════════════════════════════════════════════════════════
   Prose / content pages (about, pricing, terms, privacy)
   ═══════════════════════════════════════════════════════════════════════════ */
.prose h2 { font-family: 'Bebas Neue', sans-serif; font-size: 1.6rem; letter-spacing: .04em; margin: 2rem 0 .75rem; color: var(--text-hi); }
.prose p, .prose li { color: var(--text-lo); line-height: 1.75; margin-bottom: .75rem; }
.prose ul  { padding-left: 1.25rem; }
.prose strong { color: var(--text-hi); }

.legal-prose h2 { font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; letter-spacing: .04em; color: var(--text-hi); margin: 2rem 0 .7rem; padding-top: .5rem; border-top: 1px solid var(--border); }
.legal-prose h2:first-of-type { border-top: none; }
.legal-prose p, .legal-prose li { color: var(--text-lo); line-height: 1.75; font-size: .9rem; margin-bottom: .75rem; }
.legal-prose ul { padding-left: 1.25rem; }
.legal-prose strong { color: var(--text-hi); }
.legal-meta { font-size: .8rem; color: var(--text-lo); margin-bottom: 2rem; }

/* ── About page ─────────────────────────────────────────────────────────── */
.hero-tag { font-family: 'Bebas Neue', sans-serif; font-size: 3.5rem; letter-spacing: .04em; line-height: 1.05; margin-bottom: 1.25rem; }
.hero-tag span { color: var(--accent); }
.value-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.value-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.value-card .vc-icon { font-size: 1.5rem; margin-bottom: .6rem; }
.value-card h3 { font-size: .95rem; font-weight: 700; color: var(--text-hi); margin-bottom: .4rem; }
.value-card p  { font-size: .82rem; color: var(--text-lo); line-height: 1.5; margin: 0; }

/* ── Pricing page ───────────────────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.price-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.price-card.featured { border-color: var(--accent); }
.price-card .pc-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-lo); margin-bottom: .5rem; }
.price-card .pc-label.accent { color: var(--accent); }
.price-card h3 { font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; letter-spacing: .04em; color: var(--text-hi); margin-bottom: .4rem; }
.price-card .pc-amount { font-size: 2rem; font-weight: 700; color: var(--accent); line-height: 1; margin-bottom: .15rem; }
.price-card .pc-unit   { font-size: .8rem; color: var(--text-lo); margin-bottom: 1rem; }
.price-card ul { list-style: none; padding: 0; }
.price-card li { font-size: .83rem; color: var(--text-lo); padding: .25rem 0; border-bottom: 1px solid var(--border); display: flex; gap: .5rem; align-items: baseline; }
.price-card li:last-child { border-bottom: none; }
.price-card li::before { content: '✓'; color: var(--accent); flex-shrink: 0; }
.example-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 1.5rem 0; }
.example-box h3 { font-size: .95rem; font-weight: 700; color: var(--text-hi); margin-bottom: .75rem; }
.calc-row { display: flex; justify-content: space-between; font-size: .85rem; padding: .3rem 0; border-bottom: 1px solid var(--border); }
.calc-row:last-child { border-bottom: none; font-weight: 700; color: var(--text-hi); }
.calc-row span:first-child { color: var(--text-lo); }

/* ── FAQ page ───────────────────────────────────────────────────────────── */
.faq-section { margin-bottom: 2.5rem; }
.faq-section h2 { font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem; letter-spacing: .04em; color: var(--text-hi); margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 1px solid var(--border); }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: .6rem; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: var(--surface); border: none; padding: .9rem 1.1rem; font-family: 'DM Sans', sans-serif; font-size: .9rem; font-weight: 600; color: var(--text-hi); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-q:hover { background: var(--surface2); }
.faq-q svg { flex-shrink: 0; transition: transform .2s; color: var(--text-lo); }
.faq-q[aria-expanded="true"] svg { transform: rotate(180deg); }
.faq-a { display: none; padding: .9rem 1.1rem; font-size: .88rem; color: var(--text-lo); line-height: 1.7; border-top: 1px solid var(--border); background: var(--bg); }
.faq-a.open { display: block; }

/* ── Contact page ───────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; align-items: start; max-width: 900px; }
@media (max-width: 700px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.contact-card h3 { font-size: .95rem; font-weight: 700; color: var(--text-hi); margin-bottom: .75rem; }
.contact-item { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: .85rem; }
.contact-item:last-child { margin-bottom: 0; }
.contact-item svg { flex-shrink: 0; color: var(--accent); margin-top: .1rem; }
.contact-item .ci-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-lo); margin-bottom: .1rem; }
.contact-item .ci-value { font-size: .88rem; color: var(--text-hi); }
.contact-item .ci-value a { color: var(--accent); }

/* ═══════════════════════════════════════════════════════════════════════════
   Admin financials dashboard
   ═══════════════════════════════════════════════════════════════════════════ */
.fin-grid    { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; margin-bottom: 2rem; }
@media(max-width:1100px) { .fin-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width:600px)  { .fin-grid { grid-template-columns: 1fr; } }

.fin-card    { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.5rem; }
.fin-card-sm { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; }
.fin-label   { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-lo); margin-bottom: .4rem; }
.fin-value   { font-family: 'Bebas Neue', sans-serif; font-size: 1.9rem; letter-spacing: .03em; color: var(--text-hi); line-height: 1; }
.fin-sub     { font-size: .72rem; color: var(--text-lo); margin-top: .3rem; }
.fin-accent  { color: var(--accent); }
.fin-green   { color: #4ade80; }
.fin-yellow  { color: #facc15; }
.fin-red     { color: #f87171; }

.fin-section { margin-bottom: 2.5rem; }
.fin-section-title { font-family: 'Bebas Neue', sans-serif; font-size: 1.15rem; letter-spacing: .06em; color: var(--text-lo); margin-bottom: .8rem; display: flex; align-items: center; gap: .6rem; }
.fin-section-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.fin-table    { width: 100%; border-collapse: collapse; font-size: .8rem; }
.fin-table th { text-align: left; padding: .5rem .75rem; color: var(--text-lo); font-weight: 600; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--border); white-space: nowrap; }
.fin-table td { padding: .55rem .75rem; border-bottom: 1px solid var(--border); color: var(--text-hi); vertical-align: middle; }
.fin-table tr:last-child td { border-bottom: none; }
.fin-table tr:hover td { background: rgba(255,255,255,.02); }
.fin-table .num    { text-align: right; font-variant-numeric: tabular-nums; }
.fin-table .accent { color: var(--accent); font-weight: 700; }
.fin-table .green  { color: #4ade80; font-weight: 700; }
.fin-table .muted  { color: var(--text-lo); }
.fin-table-wrap { overflow-x: auto; }
.search-bar { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.search-bar input { flex: 1; min-width: 140px; }
.search-bar button { flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════════════════
   Financial reports
   ═══════════════════════════════════════════════════════════════════════════ */
.rep-card   { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem; }
.rep-section-title { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-lo); margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 1px solid var(--border); }
.rep-row    { display: flex; justify-content: space-between; align-items: baseline; padding: .45rem 0; border-bottom: 1px solid rgba(255,255,255,.04); font-size: .88rem; }
.rep-row:last-child { border-bottom: none; }
.rep-row.total    { font-weight: 700; font-size: .95rem; padding-top: .65rem; border-top: 1px solid var(--border); border-bottom: none; margin-top: .3rem; }
.rep-row.subtotal { font-weight: 600; }
.rep-row .label { color: var(--text-lo); }
.rep-row .val   { font-variant-numeric: tabular-nums; }
.rep-row .sub   { font-size: .72rem; color: var(--text-lo); margin-top: .1rem; }
.rep-indent     { padding-left: 1.25rem; }
.rep-green      { color: #4ade80; }
.rep-red        { color: #f87171; }
.rep-accent     { color: var(--accent); }
.period-btn     { padding: .35rem .8rem; border: 1px solid var(--border); border-radius: 999px; font-size: .78rem; color: var(--text-lo); text-decoration: none; transition: all .15s; white-space: nowrap; }
.period-btn:hover { color: var(--text-hi); border-color: var(--accent); }
.period-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.trend-bar  { display: inline-block; height: 10px; background: rgba(232,97,26,.45); border-radius: 2px; vertical-align: middle; min-width: 1px; }
.stat-mini  { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .75rem 1rem; text-align: center; }
.stat-mini .v { font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; line-height: 1; }
.stat-mini .l { font-size: .7rem; color: var(--text-lo); margin-top: .2rem; }

/* ═══════════════════════════════════════════════════════════════════════════
   Support tickets (admin)
   ═══════════════════════════════════════════════════════════════════════════ */
.tk-tab { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .85rem; border-radius: 999px; font-size: .78rem; font-weight: 600; text-decoration: none; color: var(--text-lo); border: 1px solid transparent; transition: all .15s; }
.tk-tab:hover { color: var(--text-hi); border-color: var(--border); }
.tk-tab.active { background: var(--surface); border-color: var(--border); color: var(--text-hi); }
.tk-badge    { background: rgba(255,255,255,.1); padding: .05rem .4rem; border-radius: 999px; font-size: .68rem; }
.tk-priority { display: inline-block; padding: .12rem .45rem; border-radius: 999px; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.tk-status   { display: inline-block; padding: .12rem .45rem; border-radius: 999px; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }

/* ── Ticket detail (admin) ──────────────────────────────────────────────── */
.msg-bubble   { border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: .75rem; }
.msg-user     { background: var(--surface); }
.msg-staff    { background: rgba(232,97,26,.06); border-color: rgba(232,97,26,.2); }
.msg-system   { background: rgba(255,255,255,.02); border-style: dashed; }
.msg-internal { background: rgba(250,204,21,.04); border-color: rgba(250,204,21,.25); }
.side-form    { margin-bottom: 1.25rem; }
.side-form label { display: block; font-size: .75rem; font-weight: 600; color: var(--text-lo); margin-bottom: .3rem; }
.side-form select,
.side-form input[type=text],
.side-form input[type=email] { width: 100%; padding: .45rem .65rem; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-hi); font-size: .82rem; font-family: 'DM Sans', sans-serif; appearance: none; }
.tab-btn { padding: .45rem .85rem; border: 1px solid var(--border); background: transparent; color: var(--text-lo); border-radius: var(--radius); cursor: pointer; font-size: .82rem; font-family: 'DM Sans', sans-serif; }
.tab-btn.active { background: var(--surface); color: var(--text-hi); border-color: var(--border); }

/* ── Sponsorship / Ad overlay ─────────────────────────────────────────────── */
.spons-status      { font-size: .7rem; padding: .15rem .4rem; border-radius: 3px; font-weight: 600; display: inline-block; }
.spons-pending     { background: var(--surface2); color: var(--text-lo); }
.spons-approved    { background: rgba(59,130,246,.15); color: #60a5fa; }
.spons-active      { background: var(--accent-dim); color: var(--accent); }
.spons-rejected    { background: rgba(239,68,68,.15); color: #f87171; }
.spons-completed   { background: var(--surface2); color: var(--text-lo); }
.ad-preview-img    { max-width: 60px; height: 40px; object-fit: cover; border-radius: 4px; border: 1px solid var(--border); display: block; }
.spons-table-expand { background: var(--surface2); padding: 1rem; border-radius: 6px; margin-top: .5rem; }
.approve-form      { display: flex; gap: .5rem; align-items: flex-end; flex-wrap: wrap; }
.approve-form .form-control { max-width: 120px; }

/* ── Admin camera analytics ───────────────────────────────────────────────── */
.cam-analytics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
@media (max-width: 768px) { .cam-analytics-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .cam-analytics-grid { grid-template-columns: 1fr; } }
.cam-analytics-card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 1rem; text-align: center; }
.cam-analytics-card .cav { font-size: 1.5rem; font-weight: 600; color: var(--text-hi); display: block; }
.cam-analytics-card .cal { font-size: .75rem; color: var(--text-lo); margin-top: .15rem; }
.cam-analytics-card.accent .cav { color: var(--accent); }

/* ── Pagination ───────────────────────────────────────────────────────────── */
.pager {
  display: flex;
  align-items: center;
  width: 100%;
  padding: .9rem 0 .1rem;
  margin-top: .5rem;
  border-top: 1px solid var(--border);
}
/* Three equal columns: left | center | right */
.pager-perpage {
  flex: 1;
  display: flex;
  align-items: center;
  gap: .4rem;
  justify-content: flex-start;
  font-size: .78rem;
  color: var(--text-lo);
  white-space: nowrap;
}
.pager-pages {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  flex-wrap: wrap;
}
.pager-info {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  font-size: .78rem;
  color: var(--text-lo);
  white-space: nowrap;
}
.pager-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 .5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text-hi);
  font-size: .82rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
  white-space: nowrap;
}
.pager-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.pager-btn.pager-current { background: var(--accent); border-color: var(--accent); color: #fff; cursor: default; }
.pager-btn.pager-current:hover { background: var(--accent); color: #fff; }
.pager-btn.pager-disabled { opacity: .3; pointer-events: none; }
.pager-ellipsis { color: var(--text-lo); font-size: .82rem; padding: 0 .15rem; line-height: 34px; }
.pager-select {
  padding: .25rem .45rem;
  font-size: .78rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-hi);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  appearance: none;
  min-width: 52px;
}
.pager-select:focus { outline: none; border-color: var(--accent); }
@media (max-width: 560px) {
  .pager { flex-wrap: wrap; gap: .5rem; }
  .pager-perpage, .pager-info { flex: none; width: 100%; justify-content: center; }
  .pager-pages { flex: none; width: 100%; }
}

/* ── Notifications ────────────────────────────────────────────────────────── */
.notif-item {
  display: flex; gap: .75rem; padding: .85rem 1rem;
  border-bottom: 1px solid var(--border); align-items: flex-start;
}
.notif-item:last-child { border-bottom: none; }
.notif-item.unread { background: rgba(232,97,26,.04); }
.notif-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  flex-shrink: 0; margin-top: .35rem;
}
.notif-dot.read { background: transparent; border: 1px solid var(--border); }
.notif-title { font-weight: 600; font-size: .88rem; color: var(--text-hi); margin-bottom: .15rem; }
.notif-body  { font-size: .8rem; color: var(--text-lo); line-height: 1.45; }
.notif-time  { font-size: .72rem; color: var(--text-lo); margin-top: .2rem; white-space: nowrap; }
