:root {
  --bg: #121416;
  --surface: rgba(20, 23, 26, 0.82);
  --surface-soft: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f7f4ee;
  --muted: #b0b5bb;
  --accent: #d9b06f;
  --accent-strong: #f0c47d;
  --success: #5db083;
  --danger: #d0726c;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: radial-gradient(circle at top, #20262c 0%, #111315 55%, #0b0c0e 100%); color: var(--text); font-family: Manrope, sans-serif; }
body { position: relative; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
main { width: min(1320px, calc(100% - 32px)); margin: 0 auto; padding: 24px 0 80px; position: relative; z-index: 1; }
.site-backdrop { position: fixed; inset: 0; background: linear-gradient(135deg, rgba(217,176,111,0.08), rgba(255,255,255,0) 50%, rgba(75,114,181,0.12)); pointer-events: none; }
.site-header, .site-footer, .hero, .section, .auth-card, .dashboard-sidebar, .dashboard-main { backdrop-filter: blur(20px); }
.site-header, .site-footer { width: min(1320px, calc(100% - 32px)); margin: 18px auto 0; padding: 18px 22px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); display: flex; justify-content: space-between; align-items: center; gap: 24px; position: relative; z-index: 2; }
.site-footer { margin-top: 24px; margin-bottom: 18px; }
.brand { display: flex; gap: 14px; align-items: center; }
.brand-mark { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; background: linear-gradient(135deg, var(--accent), #90714a); color: #181411; }
.brand small, .site-footer p, .meta-row, small, .flash, .profile-card p, .compact-photo-body small { color: var(--muted); }
.main-nav { display: flex; gap: 16px; flex-wrap: wrap; }
.main-nav a { padding: 10px 14px; border-radius: 999px; transition: .2s ease; }
.main-nav a:hover { background: rgba(255,255,255,0.08); }
.hero, .section, .auth-card, .dashboard-main, .dashboard-sidebar, .admin-form, .reaction-card, .stat-card, .profile-card, .photo-detail-media, .photo-detail-copy, .album-card, .photo-tile-copy, .compact-photo, .data-table, .dropzone { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); }
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; padding: 32px; margin-top: 24px; }
.hero h1, .section h1, .section h2, .auth-card h1, .profile-summary h1 { font-family: "Cormorant Garamond", serif; font-size: clamp(2.4rem, 5vw, 4.8rem); line-height: .92; letter-spacing: -.03em; margin: 10px 0 16px; }
.hero p, .section p, .photo-detail-copy p, .auth-card p { font-size: 1.05rem; line-height: 1.7; max-width: 65ch; color: #dadde2; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); text-transform: uppercase; letter-spacing: .22em; font-size: .75rem; font-weight: 700; }
.hero-panel { display: grid; gap: 16px; align-content: stretch; }
.hero-shot { border-radius: 22px; overflow: hidden; min-height: 180px; position: relative; background: linear-gradient(160deg, rgba(255,255,255,.02), var(--tone, #333)); }
.hero-shot img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: luminosity; opacity: .92; }
.hero-shot span { position: absolute; left: 16px; bottom: 16px; font-weight: 700; background: rgba(0,0,0,.35); padding: 8px 12px; border-radius: 999px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.button { border: 0; cursor: pointer; border-radius: 999px; padding: 12px 18px; font-weight: 700; font-family: inherit; }
.button-primary { background: linear-gradient(135deg, var(--accent), var(--accent-strong)); color: #181411; }
.button-secondary { background: rgba(255,255,255,0.08); color: var(--text); }
.button-ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.button-large { font-size: 1.08rem; padding: 14px 22px; }
.section { padding: 24px; margin-top: 24px; }
.section.narrow { width: min(100%, 900px); margin-left: auto; margin-right: auto; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 22px; }
.card-grid, .album-grid, .stats-grid { display: grid; gap: 18px; }
.photographers-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.album-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.profile-card, .album-card { overflow: hidden; }
.profile-cover, .profile-banner, .album-cover, .scenic-cover, .cover-fallback { min-height: 180px; background: linear-gradient(135deg, rgba(217,176,111,.24), rgba(255,255,255,.06), rgba(89,117,156,.28)); }
.profile-card-body, .album-card-body { padding: 18px; display: grid; gap: 10px; }
.photo-masonry { columns: 3 280px; column-gap: 18px; }
.photo-masonry.compact { columns: 4 180px; }
.photo-tile { position: relative; display: block; margin-bottom: 18px; overflow: hidden; border-radius: 24px; }
.photo-tile img { width: 100%; border-radius: 24px; transition: transform .35s ease, filter .35s ease; }
.photo-tile:hover img { transform: scale(1.03); filter: saturate(1.05); }
.photo-tile-copy { position: absolute; left: 16px; right: 16px; bottom: 16px; padding: 14px; background: rgba(12,13,16,.58); }
.search-form, .form-grid { display: grid; gap: 16px; }
.search-form { grid-template-columns: 1fr auto; margin-bottom: 24px; }
input, select, textarea { width: 100%; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,0.04); color: var(--text); font: inherit; }
textarea { min-height: 120px; resize: vertical; }
label { display: grid; gap: 8px; color: #e7e9ec; font-weight: 600; }
.auth-shell { min-height: calc(100vh - 220px); display: grid; place-items: center; }
.auth-card { width: min(100%, 580px); padding: 34px; }
.feature-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; color: var(--muted); }
.profile-hero, .photo-detail, .dashboard-shell, .compact-photo { display: grid; gap: 22px; }
.profile-hero { grid-template-columns: 1fr .9fr; margin-top: 24px; }
.profile-summary, .profile-banner { border-radius: 28px; overflow: hidden; }
.profile-summary { padding: 28px; background: var(--surface); border: 1px solid var(--line); }
.photo-detail { grid-template-columns: 1.1fr .9fr; align-items: start; }
.photo-detail-media, .photo-detail-copy { padding: 18px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.tag-chip { padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,0.06); border: 1px solid var(--line); }
.reaction-card { padding: 18px; display: grid; gap: 12px; margin-top: 22px; }
.star-row { display: flex; gap: 12px; flex-wrap: wrap; }
.dashboard-shell { grid-template-columns: 260px 1fr; margin-top: 24px; }
.dashboard-sidebar { padding: 20px; display: grid; gap: 10px; align-content: start; position: sticky; top: 18px; height: fit-content; }
.dashboard-sidebar a { padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,0.03); }
.dashboard-main { padding: 24px; min-width: 0; }
.stats-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 24px; }
.stat-card { padding: 20px; display: grid; gap: 10px; }
.stat-card strong { font-size: 2rem; font-family: "Cormorant Garamond", serif; }
.admin-form { padding: 20px; display: grid; gap: 16px; margin-bottom: 22px; }
.dropzone { min-height: 160px; display: grid; place-items: center; text-align: center; border-style: dashed; cursor: pointer; }
.dropzone input { display: none; }
.data-table { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 10px; border-bottom: 1px solid rgba(255,255,255,0.07); text-align: left; vertical-align: top; }
.inline-form { display: inline-flex; gap: 8px; margin: 4px 4px 4px 0; align-items: center; }
.stack-list { display: grid; gap: 18px; }
.compact-photo { grid-template-columns: 160px 1fr; padding: 14px; align-items: start; }
.compact-photo img { width: 160px; height: 120px; object-fit: cover; border-radius: 18px; }
.compact-photo-body { display: grid; gap: 12px; }
.sortable-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin: 18px 0; }
.sortable-card { padding: 12px; border-radius: 22px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); cursor: grab; }
.sortable-card img { height: 140px; width: 100%; object-fit: cover; border-radius: 16px; }
.flash-stack { width: min(1320px, calc(100% - 32px)); margin: 12px auto 0; display: grid; gap: 10px; }
.flash { padding: 14px 18px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,0.05); }
.flash-success { border-color: rgba(93,176,131,.4); }
.flash-error { border-color: rgba(208,114,108,.4); }
.lightbox { position: fixed; inset: 0; background: rgba(4,6,8,.96); z-index: 10; display: grid; place-items: center; padding: 40px; }
.lightbox-image { max-width: min(92vw, 1600px); max-height: 82vh; object-fit: contain; }
.lightbox-caption { position: absolute; left: 40px; right: 40px; bottom: 24px; display: flex; justify-content: space-between; gap: 24px; align-items: end; }
.lightbox-close, .lightbox-nav { position: absolute; border: 0; background: rgba(255,255,255,0.08); color: white; width: 54px; height: 54px; border-radius: 999px; font-size: 1.4rem; cursor: pointer; }
.lightbox-close { top: 28px; right: 28px; }
.lightbox-nav.prev { left: 28px; }
.lightbox-nav.next { right: 28px; }
@media (max-width: 1000px) {
  .hero, .profile-hero, .photo-detail, .dashboard-shell, .search-form { grid-template-columns: 1fr; }
  .dashboard-sidebar { position: static; }
}
@media (max-width: 720px) {
  .site-header, .site-footer { flex-direction: column; align-items: start; }
  main { width: min(100% - 20px, 1320px); }
  .hero, .section, .dashboard-main, .auth-card { padding: 18px; }
  .compact-photo { grid-template-columns: 1fr; }
  .photo-masonry, .photo-masonry.compact { columns: 1; }
}
