*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #1a1a1a;
  --gray-dark: #555;
  --gray-mid: #888;
  --gray-light: #d4d4d4;
  --gray-bg: #f7f7f5;
  --white: #ffffff;
  --sans: 'Geist', sans-serif;
  --red: #c0392b;
  --green: #2ecc71;
  --maxw: 1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--black);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

a { color: inherit; }

/* ======================================================================
   ADMIN UI (Geist, neutral) — same conventions as fotomica-go-v2
   ====================================================================== */

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 48px;
  border-bottom: 1px solid var(--gray-light);
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 100;
}
.nav-left { display: flex; align-items: center; gap: 32px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--black); font-weight: 600; }
.nav-links { display: flex; gap: 20px; }
.nav-right { display: flex; align-items: center; gap: 24px; font-size: 13px; color: var(--gray-dark); }
.nav-user { font-weight: 500; color: var(--black); text-decoration: none; }
.nav-link { text-decoration: none; color: var(--gray-dark); transition: color 0.15s; font-size: 13px; }
.nav-link:hover { color: var(--black); }

/* Login */
.login-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; padding: 48px 24px; }
.login-logo { margin-bottom: 32px; font-family: 'Alfa Slab One', serif; font-size: 30px; }
.login-box { width: 100%; max-width: 360px; }
.login-title { font-size: 26px; font-weight: 400; text-align: center; margin-bottom: 6px; }
.login-sub { text-align: center; color: var(--gray-mid); font-size: 14px; margin-bottom: 32px; }
.login-error { text-align: center; color: var(--red); font-size: 13px; margin-bottom: 16px; }

/* Forms */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 11px; font-weight: 500; letter-spacing: 0.5px; text-transform: uppercase; color: var(--gray-mid); margin-bottom: 4px; }
.field input, .field select, .filter-select, .field-textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--gray-light); border-radius: 4px;
  font-family: var(--sans); font-size: 14px; color: var(--black); background: var(--white); outline: none; transition: border-color 0.15s;
}
.field input::placeholder { color: var(--gray-mid); }
.field input:focus, .field select:focus, .filter-select:focus, .field-textarea:focus { border-color: var(--black); }
.field-textarea { resize: vertical; min-height: 100px; }
.field-hint { display: block; font-size: 12px; color: var(--gray-mid); margin-top: 4px; }
.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1; }
.field-checkbox { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gray-dark); }

/* Buttons */
.btn-primary { width: 100%; padding: 13px; background: var(--black); color: var(--white); border: none; border-radius: 4px; font-family: var(--sans); font-size: 14px; font-weight: 500; cursor: pointer; transition: opacity 0.15s; margin-top: 4px; }
.btn-primary:hover { opacity: 0.85; }
.btn-outline { padding: 9px 20px; border: 1px solid var(--black); background: transparent; font-family: var(--sans); font-size: 13px; font-weight: 500; cursor: pointer; border-radius: 4px; color: var(--black); transition: all 0.15s; text-decoration: none; display: inline-block; }
.btn-outline:hover { background: var(--black); color: var(--white); }
.btn-sm { padding: 9px 18px; background: var(--black); color: var(--white); border: none; border-radius: 4px; font-family: var(--sans); font-size: 13px; font-weight: 500; cursor: pointer; transition: opacity 0.15s; text-decoration: none; display: inline-block; }
.btn-sm:hover { opacity: 0.8; }
.btn-danger { border-color: var(--red); color: var(--red); }
.btn-danger:hover { background: var(--red); color: var(--white); border-color: var(--red); }

/* Admin shell */
.admin-wrap { padding: 40px 48px; max-width: 1280px; margin: 0 auto; }
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 36px; padding-bottom: 24px; border-bottom: 1px solid var(--gray-light); flex-wrap: wrap; gap: 12px; }
.admin-title { font-size: 30px; font-weight: 400; }
.admin-subnav { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; padding-bottom: 16px; border-bottom: 1px solid var(--gray-light); }
.admin-subnav a { font-size: 13px; color: var(--gray-dark); text-decoration: none; border-bottom: 1px solid transparent; }
.admin-subnav a:hover, .admin-subnav a.active { color: var(--black); border-bottom-color: var(--black); }
.admin-tool-card { border: 1px solid var(--gray-light); border-radius: 4px; padding: 20px 24px; margin-bottom: 28px; }
.admin-tool-card h4 { font-size: 13px; font-weight: 500; margin-bottom: 14px; }
.section-title { font-size: 11px; font-weight: 500; letter-spacing: 0.9px; text-transform: uppercase; color: var(--gray-mid); margin-bottom: 16px; }
.empty-state { text-align: center; padding: 48px 24px; color: var(--gray-dark); font-size: 15px; }
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 40px; }
.stat-card { padding: 20px 24px; border: 1px solid var(--gray-light); border-radius: 4px; }
.stat-num { font-size: 36px; font-weight: 400; line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: 12px; color: var(--gray-mid); letter-spacing: 0.5px; }

/* Tables */
.table-responsive { width: 100%; overflow-x: auto; }
.users-table { width: 100%; border-collapse: collapse; }
.users-table th { text-align: left; font-size: 11px; font-weight: 500; letter-spacing: 0.7px; text-transform: uppercase; color: var(--gray-mid); padding: 0 16px 12px 16px; border-bottom: 1px solid var(--gray-light); }
.users-table td { padding: 14px 16px; font-size: 14px; border-bottom: 1px solid var(--gray-bg); vertical-align: middle; }
.users-table tr:hover td { background: var(--gray-bg); }
.user-name { font-weight: 500; }
.user-email { color: var(--gray-mid); font-size: 13px; }
.table-actions { display: flex; gap: 8px; }
.action-link { font-size: 12px; color: var(--gray-mid); cursor: pointer; text-decoration: none; padding: 4px 0; border: none; background: none; border-bottom: 1px solid transparent; font-family: var(--sans); transition: all 0.15s; }
.action-link:hover { color: var(--black); border-bottom-color: var(--black); }
.action-link.danger:hover { color: var(--red); border-bottom-color: var(--red); }

/* Drag-to-reorder lists (labs, guides, recommendations, film stocks, socials, nav, shots) */
.reorder-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.reorder-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--gray-light); border-radius: 4px; background: var(--white); cursor: default; transition: border-color 0.15s; }
.reorder-item.dragging { opacity: 0.4; border-color: var(--black); }
.reorder-item:hover { border-color: var(--gray-dark); }
.reorder-drag-handle { color: var(--gray-light); cursor: grab; font-size: 16px; user-select: none; flex-shrink: 0; }
.reorder-drag-handle:active { cursor: grabbing; }
.reorder-thumb { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--gray-bg); }
.reorder-info { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.reorder-name { font-weight: 500; font-size: 14px; }
.reorder-sub { font-size: 12px; color: var(--gray-mid); }
.reorder-remove { background: none; border: none; cursor: pointer; font-size: 16px; color: var(--gray-mid); padding: 2px 6px; }
.reorder-remove:hover { color: var(--red); }

/* Image upload */
.upload-row { display: flex; align-items: center; gap: 14px; }
.upload-preview { width: 80px; height: 80px; border-radius: 4px; object-fit: cover; background: var(--gray-bg); flex-shrink: 0; }
.upload-preview.round { border-radius: 50%; }
.upload-btn { position: relative; overflow: hidden; font-size: 12px; padding: 8px 16px; cursor: pointer; }
.upload-btn input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.shots-grid { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.shot-card { width: 110px; position: relative; border-radius: 4px; overflow: hidden; background: var(--gray-bg); }
.shot-card img { width: 100%; height: 80px; object-fit: cover; display: block; }
.shot-remove { position: absolute; top: 2px; right: 2px; background: rgba(0,0,0,.6); color: #fff; border: none; cursor: pointer; font-size: 12px; padding: 1px 6px; border-radius: 3px; }

/* Color swatch pickers */
.swatch-row { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch-option { width: 32px; height: 32px; border-radius: 4px; border: 2px solid var(--gray-light); cursor: pointer; position: relative; }
.swatch-option input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.swatch-option.selected, .swatch-option:has(input:checked) { border-color: var(--black); box-shadow: 0 0 0 2px var(--white) inset; }

/* Confirm delete */
.confirm-modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 1000; align-items: center; justify-content: center; }
.confirm-modal-overlay.open { display: flex; }
.confirm-modal { background: var(--white); border-radius: 6px; padding: 24px; max-width: 360px; width: 90%; box-shadow: 0 8px 32px rgba(0,0,0,0.2); }
.confirm-modal-text { font-size: 14px; color: var(--black); margin-bottom: 20px; line-height: 1.5; }
.confirm-modal-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* ======================================================================
   PUBLIC SITE — "Lentes Feos" brand design
   Tokens from HANDOFF.md: hard offset shadows, paper/blue textures,
   Alfa Slab One wordmark, DM Serif Display headings.
   ====================================================================== */

.lf-page {
  --accent: #e0571e;
  --wm-lentes: #f3b50e;
  --wm-feos: #e0571e;
  background: #eee3c2;
  color: #16140f;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
.lf-page * { box-sizing: border-box; }
.lf-page ::selection { background: #16140f; color: #faf3d9; }

.lf-container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

.lf-paper { background-color: #eee3c2; background-image: radial-gradient(rgba(22,20,15,.06) 1px, transparent 1.5px); background-size: 8px 8px; }
.lf-blue { background-color: #4f86c6; background-image: radial-gradient(rgba(255,255,255,.07) 1.2px, transparent 1.6px); background-size: 6px 6px; }
.lf-section { border-bottom: 2.5px solid #16140f; padding: 68px 0; position: relative; overflow: hidden; }

/* Header */
.lf-header { position: sticky; top: 0; z-index: 50; background: #faf3d9; border-bottom: 2.5px solid #16140f; }
.lf-header-inner { max-width: 1180px; margin: 0 auto; padding: 13px 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.lf-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #16140f; }
.lf-brand-dot { width: 34px; height: 34px; border-radius: 50%; border: 2.5px solid #16140f; background: repeating-linear-gradient(45deg,#cf4631 0 6px,#e0571e 6px 12px); display: block; }
.lf-brand-chip { background: #16140f; color: #faf3d9; font-weight: 800; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 2px; }
.lf-nav { display: flex; align-items: center; gap: 22px; font-size: 13.5px; font-weight: 600; color: #16140f; flex-wrap: wrap; }
.lf-nav a { color: #16140f; text-decoration: none; }
.lf-nav-cta { background: var(--accent); color: #fff; border: 2px solid #16140f; box-shadow: 3px 3px 0 #16140f; padding: 8px 14px; border-radius: 3px; text-decoration: none; font-weight: 800; }

/* Hero */
.lf-hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; padding-bottom: 0; }
.lf-stickers { display: flex; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.lf-sticker { background: #faf3d9; border: 2px solid #16140f; box-shadow: 3px 3px 0 #16140f; padding: 8px 14px; font-weight: 800; font-size: 12.5px; letter-spacing: .04em; border-radius: 3px; display: inline-block; }
.lf-sticker:nth-child(odd) { transform: rotate(-2deg); }
.lf-sticker:nth-child(even) { background: #f3c400; transform: rotate(2deg); }
.lf-wordmark { margin: 0; font-family: 'Alfa Slab One', serif; font-size: 84px; line-height: .9; letter-spacing: -.01em; text-shadow: 4px 4px 0 #16140f; }
.lf-wordmark .lf-w1 { color: var(--wm-lentes); }
.lf-wordmark .lf-w2 { color: var(--wm-feos); }
.lf-tagline { font-family: 'DM Serif Display', serif; font-size: 30px; margin-top: 14px; color: #16140f; }
.lf-tagline em { color: var(--accent); font-style: italic; }
.lf-about-card { background: #faf3d9; border: 2.5px solid #16140f; box-shadow: 7px 7px 0 #16140f; border-radius: 4px; padding: 20px 22px; margin-top: 24px; max-width: 33em; }
.lf-about-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #8c8369; margin-bottom: 8px; }
.lf-about-body { margin: 0; font-size: 16.5px; line-height: 1.55; font-weight: 500; }
.lf-socials { display: flex; gap: 10px; margin-top: 22px; }
.lf-social-chip { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; background: #faf3d9; border: 2px solid #16140f; box-shadow: 3px 3px 0 #16140f; border-radius: 3px; text-decoration: none; color: #16140f; }
.lf-ctas { display: flex; gap: 14px; margin-top: 24px; flex-wrap: wrap; }
.lf-cta-primary { background: #16140f; color: #faf3d9; border: 2.5px solid #16140f; box-shadow: 4px 4px 0 var(--accent); padding: 13px 22px; border-radius: 3px; text-decoration: none; font-weight: 800; font-size: 15px; }
.lf-cta-secondary { background: #faf3d9; color: #16140f; border: 2.5px solid #16140f; box-shadow: 4px 4px 0 #16140f; padding: 13px 22px; border-radius: 3px; text-decoration: none; font-weight: 800; font-size: 15px; }

.lf-portrait-frame { background: #161616; padding: 18px 10px; border-radius: 4px; border: 2.5px solid #16140f; box-shadow: 10px 10px 0 #16140f; transform: rotate(1.5deg); }
.lf-sprocket { height: 14px; background-image: radial-gradient(circle at 9px 7px, #faf3d9 2.3px, transparent 2.8px); background-size: 18px 14px; background-repeat: repeat-x; }
.lf-portrait { position: relative; height: 420px; margin: 10px 0; overflow: hidden; }
.lf-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Section title tab */
.lf-title-tab { display: inline-flex; align-items: center; gap: 14px; background: #faf3d9; border: 2.5px solid #16140f; box-shadow: 7px 7px 0 #16140f; padding: 12px 26px; border-radius: 4px; transform: rotate(-1deg); margin-bottom: 24px; }
.lf-title-tab span.lf-title { font-family: 'DM Serif Display', serif; font-size: 34px; color: #16140f; }
.lf-title-tab .lf-title em { color: var(--accent); font-style: normal; }
.lf-section-intro { font-size: 17px; font-weight: 600; max-width: 46em; margin: 24px 0 36px; }
.lf-section-intro.ink { color: #3a352a; }
.lf-section-intro.blue { color: #0e2a4a; }

/* Labs grid */
.lf-labs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lf-lab-row { background: #faf3d9; border: 2px solid #16140f; box-shadow: 3px 3px 0 #16140f; border-radius: 40px; padding: 11px 16px; display: flex; align-items: center; gap: 14px; text-decoration: none; color: #16140f; }
.lf-lab-logo { width: 46px; height: 46px; flex: none; border-radius: 50%; overflow: hidden; border: 2.5px solid #16140f; background: #fff; display: block; }
.lf-lab-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lf-lab-name { display: block; font-weight: 800; font-size: 16px; }
.lf-lab-sub { display: block; font-size: 12.5px; font-weight: 600; color: #8c8369; }

/* Card grids (guides + recommendations) */
.lf-cards-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.lf-card { text-decoration: none; color: #16140f; background: #faf3d9; border: 2.5px solid #16140f; border-radius: 5px; overflow: hidden; display: flex; flex-direction: column; }
.lf-card-cover { position: relative; height: 160px; background: repeating-linear-gradient(45deg,#e7ddc0,#e7ddc0 11px,#efe7cf 11px,#efe7cf 22px); border-bottom: 2.5px solid #16140f; display: flex; align-items: center; justify-content: center; }
.lf-card-cover.has-img { background: none; }
.lf-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.lf-card-cover-label { font-weight: 800; font-size: 12px; letter-spacing: .1em; color: #a59f8c; }
.lf-card-badge { position: absolute; top: 12px; left: 12px; border: 2px solid #16140f; box-shadow: 2px 2px 0 #16140f; font-weight: 800; font-size: 11px; padding: 5px 10px; border-radius: 3px; transform: rotate(-3deg); }
.lf-card-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.lf-card-title { font-family: 'DM Serif Display', serif; font-size: 23px; line-height: 1.1; }
.lf-card-excerpt { margin: 0; font-size: 14px; line-height: 1.5; font-weight: 500; color: #4a473f; }
.lf-card-link { margin-top: auto; font-weight: 800; font-size: 13px; color: var(--accent); }
.lf-card-cover-solid { height: 150px; border-bottom: 2.5px solid #16140f; display: flex; align-items: center; justify-content: center; }
.lf-card-question { width: 78px; height: 60px; border-radius: 5px; background: #faf3d9; border: 2.5px solid #16140f; box-shadow: 4px 4px 0 #16140f; display: flex; align-items: center; justify-content: center; font-family: 'Alfa Slab One', serif; font-size: 34px; color: #16140f; }

/* Film accordion */
.lf-roll-list { display: flex; flex-direction: column; gap: 16px; }
.lf-roll { background: #faf3d9; border: 2.5px solid #16140f; box-shadow: 5px 5px 0 #16140f; border-radius: 5px; overflow: hidden; }
.lf-roll-toggle { all: unset; cursor: pointer; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 16px; padding: 18px 22px; }
.lf-roll-box { width: 38px; height: 28px; flex: none; border-radius: 3px; border: 2.5px solid #16140f; box-shadow: 2px 2px 0 #16140f; }
.lf-roll-meta { flex: 1; text-align: left; }
.lf-roll-name { display: block; font-weight: 800; font-size: 19px; color: #16140f; }
.lf-roll-iso { display: block; font-size: 12px; font-weight: 700; color: #8c8369; letter-spacing: .03em; }
.lf-roll-sign { font-family: 'DM Serif Display', serif; font-size: 24px; color: #16140f; line-height: 1; }
.lf-roll-panel { border-top: 2.5px solid #16140f; padding: 22px; display: none; }
.lf-roll.open .lf-roll-panel { display: block; }
.lf-roll-desc { margin: 0 0 20px; font-size: 16px; line-height: 1.55; font-weight: 500; color: #2c2a24; max-width: 50em; }
.lf-gal { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 14px; }
.lf-gal::-webkit-scrollbar { height: 10px; }
.lf-gal::-webkit-scrollbar-track { background: #e7ddc0; border-radius: 20px; }
.lf-gal::-webkit-scrollbar-thumb { background: #16140f; border-radius: 20px; }
.lf-shot { flex: none; width: 230px; background: #161616; padding: 12px 8px; border-radius: 4px; border: 2.5px solid #16140f; box-shadow: 4px 4px 0 #16140f; }
.lf-shot-frame { position: relative; height: 170px; margin: 8px 0; display: flex; align-items: center; justify-content: center; overflow: hidden; background: repeating-linear-gradient(45deg,#211e18,#211e18 10px,#262219 10px,#262219 20px); }
.lf-shot-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lf-shot-label { color: #6f6a5e; font-weight: 800; font-size: 11px; letter-spacing: .08em; }
.lf-shot-sprocket { height: 11px; background-image: radial-gradient(circle at 7px 5px, #faf3d9 1.8px, transparent 2.2px); background-size: 14px 11px; background-repeat: repeat-x; }

/* Footer */
.lf-footer { background: #16140f; color: #cfc7ad; }
.lf-footer-inner { max-width: 1180px; margin: 0 auto; padding: 50px 28px; display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.lf-footer-wordmark { font-family: 'Alfa Slab One', serif; font-size: 30px; line-height: .9; }
.lf-footer-url { font-weight: 800; font-size: 13px; color: #f3c400; margin-top: 16px; }
.lf-footer-blurb { font-size: 14px; color: #8c8369; margin-top: 8px; max-width: 30em; }
.lf-footer-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.lf-footer-heading { font-weight: 800; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #6f6a5e; margin-bottom: 14px; }
.lf-footer-links { display: flex; flex-direction: column; gap: 10px; font-size: 14px; font-weight: 600; }
.lf-footer-links a { color: #cfc7ad; text-decoration: none; }
.lf-footer-legal { border-top: 1px solid #2a2620; }
.lf-footer-legal-inner { max-width: 1180px; margin: 0 auto; padding: 16px 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 11px; font-weight: 600; color: #6f6a5e; }

@media (max-width: 900px) {
  .lf-hero-grid, .lf-cards-grid { grid-template-columns: 1fr; }
  .lf-labs-grid { grid-template-columns: 1fr; }
  .lf-wordmark { font-size: 56px; }
  .lf-nav { display: none; }
}
