/* myphotos.tech — app.css (no framework, no build step) */
/* ---------- Fonts: Be Vietnam Pro, self-hosted (SIL Open Font License 1.1, see ../fonts/OFL.txt;
   files from @fontsource/be-vietnam-pro 5.2.5, subsets latin + vietnamese). ?v= must match the preload in layouts/main.php. ---------- */
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/be-vietnam-pro-vietnamese-400-normal.woff2?v=525") format("woff2"); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/be-vietnam-pro-vietnamese-500-normal.woff2?v=525") format("woff2"); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/be-vietnam-pro-vietnamese-600-normal.woff2?v=525") format("woff2"); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/be-vietnam-pro-vietnamese-700-normal.woff2?v=525") format("woff2"); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/be-vietnam-pro-latin-400-normal.woff2?v=525") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/be-vietnam-pro-latin-500-normal.woff2?v=525") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/be-vietnam-pro-latin-600-normal.woff2?v=525") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/be-vietnam-pro-latin-700-normal.woff2?v=525") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
/* ---------- Tokens ---------- */
:root {
  --ink: #111827;
  --muted: #6b7280;
  --bg: #ffffff;
  --surface: #f6f7f9;
  --surface-2: #eef0f4;
  --line: #e5e7eb;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-ink: #ffffff;
  --accent-2: #f59e0b;
  --accent-2-ink: #111827;
  --link: #1d4ed8;
  --danger: #dc2626;
  --success: #16a34a;
  --success-bg: #ecfdf5;
  --danger-bg: #fef2f2;
  --warn-bg: #fffbeb;
  --warn-line: #fcd34d;
  --footer-bg: #111827;
  --footer-ink: #d1d5db;
  --footer-muted: #9ca3af;
  --footer-line: #1f2937;
  --focus: #2563eb;
  --shadow: 0 1px 2px rgba(17, 24, 39, .06), 0 4px 16px rgba(17, 24, 39, .06);
  --radius: 12px;
  --radius-sm: 8px;
  --font: "Be Vietnam Pro", Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1200px;
  --header-h: 64px;
  --row-h: 220px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e5e7eb;
    --muted: #9ca3af;
    --bg: #0b0f17;
    --surface: #131a26;
    --surface-2: #1b2433;
    --line: #273041;
    --accent: #2563eb;
    --accent-hover: #3b82f6;
    --accent-ink: #ffffff;
    --link: #93c5fd;
    --success-bg: #052e1b;
    --danger-bg: #3b0d0d;
    --warn-bg: #2a2006;
    --warn-line: #a16207;
    --footer-bg: #05070c;
    --footer-line: #1b2230;
    --focus: #93c5fd;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 16px rgba(0, 0, 0, .35);
  }
}
/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  min-width: 320px;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); }
h2 { font-size: clamp(1.25rem, 1.1rem + .8vw, 1.6rem); }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1em; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
ul, ol { padding-left: 1.25em; }
code { font-size: .9em; background: var(--surface-2); padding: 1px 6px; border-radius: 4px; }
small, .small { font-size: .875rem; }
.muted { color: var(--muted); }
.lead { font-size: 1.125rem; color: var(--muted); }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}
main:focus { outline: none; }
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
/* Honeypot: visually hidden and out of tab order */
.hp {
  position: absolute !important;
  left: -10000px; top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 1000;
  background: var(--accent); color: var(--accent-ink);
  padding: 8px 16px; border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 8px; }
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 600px) { .container { padding: 0 24px; } }
/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font: inherit; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-accent { background: var(--accent-2); color: var(--accent-2-ink); }
.btn-accent:hover { background: #d97706; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: .9rem; }
.btn-lg { min-height: 52px; padding: 12px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.link-btn {
  background: none; border: 0; padding: 0; font: inherit; color: inherit;
  text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--ink); cursor: pointer;
  position: relative; text-decoration: none;
}
.icon-btn:hover { background: var(--surface); }
/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 16px;
  min-height: var(--header-h);
}
.logo {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.15rem;
  white-space: nowrap; flex-shrink: 0;
}
.logo img { width: 28px; height: 28px; }
.logo-text span { color: var(--accent); }
.header-panel { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 0; }
.header-search {
  display: flex; align-items: center; flex: 1; max-width: 420px; min-width: 160px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding-left: 16px;
}
.header-search:focus-within { border-color: var(--accent); }
.header-search input {
  flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink);
  font: inherit; font-size: .95rem; padding: 8px 0; outline: none;
}
.header-search input::placeholder { color: var(--muted); }
.header-search .icon-btn { width: 40px; height: 40px; border-radius: 999px; }
.main-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 12px; min-height: 40px; border-radius: var(--radius-sm);
  color: var(--ink); text-decoration: none; font: inherit; font-weight: 500; font-size: .95rem;
  background: none; border: 0; cursor: pointer; white-space: nowrap;
}
.nav-link:hover { background: var(--surface); }
.dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 110;
  min-width: 220px; max-height: 70vh; overflow: auto;
  margin: 0; padding: 8px; list-style: none;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.main-nav .dropdown-menu { display: none; }
.dropdown.is-open .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block; padding: 8px 12px; border-radius: var(--radius-sm);
  color: var(--ink); text-decoration: none;
}
.dropdown-menu a:hover { background: var(--surface); }
.dropdown-menu .sep { height: 1px; background: var(--line); margin: 6px 4px; }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; white-space: nowrap; }
.lang-switch a { color: inherit; text-decoration: none; padding: 4px 6px; border-radius: 4px; font-weight: 500; }
.lang-switch a[aria-current] { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.lang-switch span { color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.cart .badge {
  position: absolute; top: 4px; right: 2px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--accent); color: var(--accent-ink);
  font-size: .7rem; font-weight: 700; line-height: 18px; text-align: center;
}
.menu-toggle { display: none; }
@media (max-width: 1023px) {
  .menu-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .header-panel {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 12px;
    padding: 16px; max-height: calc(100vh - var(--header-h)); overflow: auto;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .header-panel.is-open { display: flex; }
  .header-search { max-width: none; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .nav-link { width: 100%; justify-content: space-between; min-height: 44px; }
  .dropdown-menu { position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; max-height: none; min-width: 0; }
  .lang-switch { padding: 0 12px; }
  .signin { align-self: flex-start; }
}
/* Without JS the menu stays reachable */
.no-js .header-panel { position: static; display: flex; box-shadow: none; border: 0; }
.no-js .menu-toggle { display: none; }
.no-js .dropdown:focus-within .dropdown-menu,
.no-js .dropdown:hover .dropdown-menu { display: block; }
/* ---------- Flash / alerts / notices ---------- */
.flash-wrap { padding-top: 16px; }
.flash, .alert {
  padding: 12px 16px; border-radius: var(--radius-sm); margin: 0 0 12px;
  border: 1px solid var(--line); background: var(--surface);
}
.flash-success, .alert-success { background: var(--success-bg); border-color: var(--success); }
.flash-error, .alert-error { background: var(--danger-bg); border-color: var(--danger); }
.alert ul { margin: 0; }
.alert p:last-child { margin-bottom: 0; }
.notice {
  display: inline-block; padding: 8px 14px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line); font-size: .95rem;
}
.notice-warn { background: var(--warn-bg); border-color: var(--warn-line); display: block; }
/* ---------- Sections ---------- */
.section { padding: 48px 0; }
.section-tight { padding-top: 16px; padding-bottom: 48px; }
.section-alt { background: var(--surface); }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.section-head h2 { margin: 0; }
.page-head { padding: 24px 0 16px; }
.page-head h1 { margin-bottom: .3em; }
.split { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.2fr 1fr; } }
.sell-visual svg { width: 100%; height: auto; max-width: 360px; margin: 0 auto; display: block; }
.checklist { list-style: none; padding: 0; margin: 0 0 24px; }
.checklist li { position: relative; padding-left: 28px; margin-bottom: 8px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .35em;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--success);
}
.checklist li::after {
  content: ""; position: absolute; left: 5px; top: calc(.35em + 3px);
  width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 48px;
  background:
    radial-gradient(1200px 400px at 50% -10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero-compact { padding: 32px 0; }
.hero-inner { text-align: center; max-width: 820px; }
.hero-compact .hero-inner { text-align: left; max-width: var(--container); }
.hero-title { font-size: clamp(1.9rem, 1.2rem + 3.2vw, 3.2rem); margin-bottom: .3em; }
.hero-sub { font-size: 1.125rem; color: var(--muted); margin-bottom: 24px; }
.hero-search {
  display: flex; gap: 8px; padding: 6px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow);
}
.hero-search:focus-within { border-color: var(--accent); }
.hero-search input {
  flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink);
  font: inherit; font-size: 1.05rem; padding: 0 16px; outline: none;
}
.hero-search .btn { border-radius: 999px; }
.hero-popular { margin-top: 16px; font-size: .95rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 12px; justify-content: center; }
.hero-popular a { color: var(--ink); }
@media (max-width: 479px) {
  .hero-search { flex-direction: column; border-radius: var(--radius); }
  .hero-search input { min-height: 44px; }
  .hero-search .btn { border-radius: var(--radius-sm); }
}
/* ---------- Category & card grids ---------- */
.cat-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
  list-style: none; margin: 0; padding: 0;
}
@media (min-width: 600px) { .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .cat-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.cat-card {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 64px; padding: 12px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); text-decoration: none; font-weight: 600;
  transition: border-color .15s, transform .15s;
}
.cat-card:hover { border-color: var(--accent); transform: translateY(-1px); }
/* Fixer 5.17 (P5-T02): long category names wrap instead of pushing the card / hero links / footer past the viewport */
.cat-card > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.hero-popular a, .footer-col li a { max-width: 100%; overflow-wrap: anywhere; }
.cat-arrow { color: var(--muted); }
.card-grid {
  display: grid; grid-template-columns: 1fr; gap: 16px;
  list-style: none; margin: 0; padding: 0;
}
@media (min-width: 600px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
}
.card h2, .card h3 { margin-bottom: .4em; }
.card-title { font-size: 1.15rem; }
.card h2 a, .card h3 a { color: var(--ink); text-decoration: none; }
.card h2 a:hover, .card h3 a:hover { color: var(--link); text-decoration: underline; }
.card-link { font-weight: 600; }
/* ---------- Photo grid (justified) ---------- */
.photo-grid {
  display: flex; flex-wrap: wrap; gap: 8px;
  list-style: none; margin: 0; padding: 0;
}
.photo-grid::after { content: ""; flex-grow: 999999; }
.photo-item {
  position: relative;
  flex-grow: var(--r);
  flex-basis: calc(var(--r) * 120px);
  aspect-ratio: var(--r);
  max-height: calc(var(--row-h) * 1.5);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-2);
}
@media (min-width: 600px) { .photo-item { flex-basis: calc(var(--r) * var(--row-h) * .8); } }
@media (min-width: 1024px) { .photo-item { flex-basis: calc(var(--r) * var(--row-h)); } }
.photo-link { display: block; width: 100%; height: 100%; color: #fff; text-decoration: none; }
.photo-link img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.photo-meta {
  position: absolute; inset: auto 0 0 0;
  display: flex; flex-direction: column; gap: 2px;
  padding: 24px 12px 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .75));
  font-size: .85rem; opacity: 0; transition: opacity .2s;
}
.photo-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.photo-link:hover .photo-meta, .photo-link:focus-visible .photo-meta { opacity: 1; }
.photo-link:hover img { transform: scale(1.03); }
@media (hover: none) {
  .photo-meta { opacity: 1; padding-top: 16px; }
  .photo-by, .photo-price { display: none; }
}
.aff-card a {
  display: flex; flex-direction: column; justify-content: center; gap: 12px;
  width: 100%; height: 100%; padding: 16px;
  background: var(--surface); border: 1px dashed var(--accent-2); border-radius: var(--radius-sm);
  color: var(--ink); text-decoration: none; font-weight: 600;
}
.empty-state {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px;
  padding: 40px 16px; color: var(--muted);
  background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius);
}
.empty-state p { margin: 0; }
/* ---------- Affiliate box ---------- */
.tag-sponsored {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  background: var(--accent-2); color: var(--accent-2-ink);
  font-size: .75rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
  vertical-align: middle; white-space: nowrap;
}
.tag-inline { margin-top: 8px; }
.aff-box {
  margin: 32px 0; padding: 20px;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent-2);
  border-radius: var(--radius);
}
.aff-box-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.aff-box-title { margin: 0; font-size: 1.15rem; }
.aff-links {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px;
  list-style: none; margin: 0 0 12px; padding: 0;
}
.aff-link {
  display: flex; flex-direction: column; gap: 4px; height: 100%;
  padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--bg); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none;
  transition: border-color .15s;
}
.aff-link:hover { border-color: var(--accent-2); }
.aff-name { font-weight: 700; }
.aff-note { font-size: .85rem; color: var(--muted); }
.aff-cta { margin-top: auto; font-size: .9rem; font-weight: 600; color: var(--link); }
.aff-disclosure { margin: 0; font-size: .85rem; color: var(--muted); }
.disclosure-note {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 10px 14px; margin: 0 0 16px;
  background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: var(--radius-sm);
  font-size: .95rem;
}
/* ---------- Tables ---------- */
.table-scroll {
  position: relative;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 12px;
}
.table-scroll:focus-visible { outline-offset: 2px; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { background: var(--surface); font-weight: 600; white-space: nowrap; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
.compare-table { min-width: 860px; }
.compare-table tbody th { min-width: 160px; }
.compare-table tbody th a { color: var(--ink); font-weight: 700; }
.compare-table td:last-child { white-space: nowrap; vertical-align: middle; }
.offer-note { display: block; margin-top: 6px; font-size: .85rem; font-weight: 400; color: var(--muted); }
.offer-note small { display: block; }
.num { text-align: right; white-space: nowrap; }
.stats-table td.num { position: relative; min-width: 120px; }
.admin-card .table-scroll { border: 0; }
/* ---------- Breadcrumbs ---------- */
.breadcrumbs ol {
  display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0 0 12px; padding: 0;
  font-size: .875rem; color: var(--muted);
}
.breadcrumbs li + li::before { content: "/"; margin-right: 4px; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--link); }
.hero-compact .breadcrumbs ol { justify-content: flex-start; }
/* ---------- Prose / articles ---------- */
.prose-wrap { max-width: 820px; padding-top: 24px; padding-bottom: 48px; }
.article-head { margin-bottom: 24px; }
.prose { font-size: 1.05rem; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose li { margin-bottom: .4em; }
.review-layout { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 900px) {
  .prose-wrap:has(.review-layout) { max-width: var(--container); }
  .review-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
  .review-facts { position: sticky; top: calc(var(--header-h) + 16px); }
}
.review-facts {
  padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.review-facts h2 { font-size: 1.1rem; }
.review-facts dl { margin: 0 0 16px; }
.review-facts dt { font-weight: 600; font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.review-facts dd { margin: 0 0 12px; }
.legal-nav ul {
  display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 24px;
}
.legal-nav a {
  display: inline-block; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink); text-decoration: none; font-size: .85rem;
}
.legal-nav a:hover { border-color: var(--accent); }
.legal-nav a[aria-current] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
/* ---------- FAQ ---------- */
.faq h2 { margin-top: 1.4em; }
.faq h2:first-child { margin-top: 0; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  margin-bottom: 8px; background: var(--bg);
}
.faq summary {
  cursor: pointer; padding: 14px 44px 14px 16px; font-weight: 600; position: relative; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-size: 1.3rem; color: var(--muted);
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 16px 14px; margin: 0; }
/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; max-width: 640px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea, .search-bar input {
  width: 100%; min-height: 44px; padding: 10px 14px;
  font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid #9ca3af; border-radius: var(--radius-sm);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus, .search-bar input:focus { border-color: var(--accent); outline: 2px solid var(--focus); outline-offset: 0; }
.has-error input, .has-error textarea { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .9rem; margin: 6px 0 0; font-weight: 500; }
.req { color: var(--danger); }
.search-bar { display: flex; gap: 8px; max-width: 640px; margin: 12px 0; }
.search-bar input { flex: 1; min-width: 0; }
@media (prefers-color-scheme: dark) {
  .field input, .field textarea, .search-bar input { border-color: #4b5563; }
  .field-error { color: #f87171; }
}
/* ---------- Error page ---------- */
.error-page { text-align: center; padding-top: 64px; padding-bottom: 64px; max-width: 640px; }
.error-code { font-size: clamp(4rem, 10vw, 7rem); font-weight: 700; line-height: 1; margin: 0 0 8px; color: var(--accent); }
.error-page .search-bar { margin: 24px auto; }
/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg); color: var(--footer-ink);
  margin-top: 48px; padding-top: 48px; font-size: .95rem;
}
.site-footer a { color: var(--footer-ink); text-decoration: none; }
.site-footer a:hover { color: var(--accent-2); text-decoration: underline; }
.footer-grid {
  display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 32px;
  padding-bottom: 40px;
}
.footer-brand .logo { color: #fff; }
.footer-brand .logo-text span { color: var(--accent-2); }
.footer-tagline { margin: 12px 0 20px; color: var(--footer-ink); max-width: 36ch; }
.newsletter { margin-bottom: 20px; }
.newsletter-label { display: block; font-weight: 600; color: #fff; margin-bottom: 8px; }
.newsletter-row { display: flex; gap: 8px; max-width: 400px; }
.newsletter input[type="email"] {
  flex: 1; min-width: 0; min-height: 44px; padding: 10px 14px;
  font: inherit; color: #fff; background: #1f2937;
  border: 1px solid #4b5563; border-radius: var(--radius-sm);
}
.newsletter input[type="email"]::placeholder { color: #9ca3af; }
.newsletter input[type="email"]:focus { outline: 2px solid var(--accent-2); outline-offset: 1px; border-color: var(--accent-2); }
.site-footer :focus-visible { outline-color: var(--accent-2); }
.social { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid #374151; color: var(--footer-ink);
}
.social a:hover { color: var(--accent-2); border-color: var(--accent-2); text-decoration: none; }
.footer-col summary {
  font-weight: 700; color: #fff; font-size: 1rem; margin-bottom: 12px;
  list-style: none; cursor: default; pointer-events: none;
}
.footer-col summary::-webkit-details-marker { display: none; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col li a { display: inline-block; padding: 2px 0; }
.footer-bottom { border-top: 1px solid var(--footer-line); padding: 20px 0 28px; font-size: .875rem; }
.footer-bottom-inner {
  display: grid; grid-template-columns: 1fr auto; gap: 12px 24px; align-items: center;
}
.footer-bottom p { margin: 0; }
.footer-prefs { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-self: end; }
.footer-prefs .lang-switch span { color: var(--footer-muted); }
.currency { padding: 2px 8px; border: 1px solid #374151; border-radius: 4px; font-weight: 600; }
.pay-icons { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; color: var(--footer-ink); }
.pay-icons svg { display: block; }
.footer-bottom .disclosure { grid-column: 1 / -1; color: var(--footer-muted); }
.footer-bottom .disclosure a { text-decoration: underline; color: var(--footer-ink); }
@media (max-width: 899px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 599px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .footer-brand { padding-bottom: 24px; }
  .footer-col { border-top: 1px solid var(--footer-line); }
  .footer-col summary {
    pointer-events: auto; cursor: pointer; margin: 0; padding: 14px 32px 14px 0; position: relative;
  }
  .footer-col summary::after {
    content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    font-size: 1.25rem; color: var(--footer-ink);
  }
  .footer-col[open] summary::after { content: "−"; }
  .footer-col ul { padding-bottom: 12px; }
  .footer-bottom-inner { grid-template-columns: 1fr; }
  .footer-prefs { justify-self: start; }
}
/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: var(--bg); color: var(--ink);
  border-top: 1px solid var(--line); box-shadow: 0 -4px 24px rgba(0, 0, 0, .12);
  padding: 16px 0;
}
.cookie-banner[hidden] { display: none; }
.cookie-inner { display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap; justify-content: space-between; }
.cookie-text { flex: 1 1 420px; }
.cookie-title { font-size: 1rem; margin: 0 0 4px; }
.cookie-text p { margin: 0; font-size: .925rem; }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 479px) {
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; }
}
/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
/* ---------- Pagination ---------- */
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 32px; }
/* =====================================================================
   Phase 2 — accounts, studio, admin, photo page
   ===================================================================== */
/* ---------- Extra buttons ---------- */
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-danger-ghost { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-danger-ghost:hover { background: var(--danger-bg); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.btn-row-center { justify-content: center; }
.text-center { text-align: center; }
.h-small { font-size: 1rem; margin-bottom: .5em; }
@media (prefers-color-scheme: dark) { .btn-danger-ghost { color: #f87171; border-color: #f87171; } }
/* ---------- Header: user menu ---------- */
.avatar {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: .9rem; line-height: 1;
}
.avatar-sm { width: 24px; height: 24px; font-size: .75rem; }
.avatar-lg { width: 72px; height: 72px; font-size: 1.8rem; }
.user-toggle { gap: 8px; }
.user-name { max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropdown-menu-end { left: auto; right: 0; }
.menu-btn {
  display: block; width: 100%; padding: 8px 12px; border: 0; border-radius: var(--radius-sm);
  background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer;
}
.menu-btn:hover { background: var(--surface); }
.user-menu form { margin: 0; }
@media (min-width: 1024px) and (max-width: 1180px) { .user-name { display: none; } }
@media (max-width: 1023px) {
  .user-menu .dropdown-menu { display: block; padding-left: 12px; }
  .user-toggle { justify-content: flex-start; }
  .user-toggle > span[aria-hidden="true"]:last-child { display: none; }
}
/* ---------- Forms (extended) ---------- */
.field select, .filter select, .filter-bar select {
  width: 100%; min-height: 44px; padding: 8px 36px 8px 12px;
  font: inherit; color: var(--ink); background-color: var(--bg);
  border: 1px solid #9ca3af; border-radius: var(--radius-sm);
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236b7280' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.field select:focus, .filter select:focus, .filter-bar select:focus, .filter-bar input:focus { border-color: var(--accent); outline: 2px solid var(--focus); outline-offset: 0; }
.field input[readonly] { background: var(--surface); color: var(--muted); }
.has-error select { border-color: var(--danger); }
.field-hint { margin: 6px 0 0; font-size: .875rem; color: var(--muted); }
.label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.label-row label { margin-bottom: 0; }
.field-check { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: start; }
.field-check input[type="checkbox"] { width: 20px; height: 20px; min-height: 0; margin: 3px 0 0; accent-color: var(--accent); }
.field-check label { font-weight: 500; margin: 0; }
.field-check .field-hint, .field-check .field-error { grid-column: 2; margin-top: 0; }
.input-prefix {
  display: flex; align-items: stretch; border: 1px solid #9ca3af; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg);
}
.input-prefix span { display: flex; align-items: center; padding: 0 10px; background: var(--surface); color: var(--muted); font-size: .9rem; white-space: nowrap; border-right: 1px solid var(--line); }
.field .input-prefix input { border: 0; border-radius: 0; min-width: 0; }
.input-prefix:focus-within { outline: 2px solid var(--focus); border-color: var(--accent); }
.field .input-prefix input:focus { outline: none; }
.has-error .input-prefix { border-color: var(--danger); }
@media (max-width: 479px) { .input-prefix span { max-width: 45%; overflow: hidden; text-overflow: ellipsis; display: block; line-height: 44px; } }
.fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 16px; min-width: 0; }
.fieldset legend { font-weight: 700; font-size: 1.1rem; margin-bottom: 4px; padding: 0; }
.fieldset:disabled { opacity: .7; }
.form-compact .field textarea { min-height: 72px; }
.notice-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.notice-row p { margin: 0; flex: 1 1 280px; }
.note-quote {
  margin: 8px 0 12px; padding: 10px 14px; border-left: 4px solid var(--accent-2);
  background: var(--bg); border-radius: var(--radius-sm); white-space: normal;
}
.alert[tabindex="-1"]:focus { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (prefers-color-scheme: dark) {
  .field select, .filter select, .filter-bar select, .input-prefix { border-color: #4b5563; }
}
/* ---------- Auth ---------- */
.auth-wrap { display: flex; justify-content: center; padding-top: 40px; padding-bottom: 48px; }
.auth-card { width: 100%; max-width: 460px; padding: 28px; }
.auth-card h1 { font-size: 1.75rem; }
.auth-card .form { max-width: none; }
.auth-alt { margin: 20px 0 0; text-align: center; color: var(--muted); }
.result-icon { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 50%; margin-bottom: 12px; }
.result-ok { background: var(--success-bg); color: var(--success); }
.result-bad { background: var(--warn-bg); color: #b45309; }
@media (max-width: 479px) {
  .auth-wrap { padding-top: 16px; }
  .auth-card { padding: 20px 16px; }
}
.account-grid .form { max-width: none; }
/* ---------- Status pills, chips, counts ---------- */
.status {
  display: inline-block; padding: 2px 10px; border-radius: 999px; vertical-align: middle;
  font-size: .78rem; font-weight: 700; line-height: 1.6; white-space: nowrap;
  background: var(--surface-2); color: var(--ink); border: 1px solid var(--line);
}
.status-approved { background: var(--success-bg); color: #166534; border-color: #86efac; }
.status-pending, .status-processing, .status-uploading { background: var(--warn-bg); color: #92400e; border-color: var(--warn-line); }
.status-rejected, .status-removed, .status-suspended { background: var(--danger-bg); color: #991b1b; border-color: #fca5a5; }
@media (prefers-color-scheme: dark) {
  .status-approved { color: #86efac; border-color: #166534; }
  .status-pending, .status-processing, .status-uploading { color: #fcd34d; }
  .status-rejected, .status-removed, .status-suspended { color: #fca5a5; border-color: #7f1d1d; }
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 16px; padding: 0; }
.chip {
  display: inline-block; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font-size: .875rem; text-decoration: none;
}
a.chip:hover { border-color: var(--accent); color: var(--link); }
.chips-sm .chip { padding: 2px 10px; font-size: .8rem; }
/* ---------- Sub-navigation (studio / admin) and tabs ---------- */
.subnav ul, .tabs ul {
  display: flex; gap: 4px; list-style: none; margin: 12px 0 0; padding: 0;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.subnav { border-bottom: 1px solid var(--line); }
.subnav a {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; min-height: 44px;
  color: var(--muted); text-decoration: none; font-weight: 600; white-space: nowrap;
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.subnav a:hover { color: var(--ink); }
.subnav a[aria-current] { color: var(--ink); border-bottom-color: var(--accent); }
.tabs ul { margin: 0 0 16px; flex-wrap: nowrap; }
.tabs a {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; min-height: 36px;
  border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: .9rem; white-space: nowrap;
}
.tabs a:hover { border-color: var(--accent); }
.tabs a[aria-current] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tabs a[aria-current] .count-pill { background: var(--bg); color: var(--ink); }
/* ---------- Steps / meta lists ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.steps li { counter-increment: step; position: relative; padding: 10px 14px 10px 52px; background: var(--surface); border-radius: var(--radius-sm); }
.steps li::before {
  content: counter(step); position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem;
}
.meta-list { margin: 0 0 16px; }
.meta-list dt { font-weight: 600; font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.meta-list dd { margin: 0 0 10px; overflow-wrap: anywhere; }
.meta-grid { display: grid; grid-template-columns: minmax(110px, max-content) 1fr; gap: 6px 16px; }
.meta-grid dt { padding-top: 2px; }
.meta-grid dd { margin: 0; }
.status-card h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
/* ---------- Studio list rows ---------- */
.item-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.item-row {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 16px; align-items: center;
  padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg);
}
.item-thumb img { width: 96px; height: 72px; object-fit: cover; border-radius: 6px; background: var(--surface-2); }
.item-title { font-size: 1rem; margin: 0 0 4px; overflow-wrap: anywhere; }
.item-title a { color: var(--ink); text-decoration: none; }
.item-title a:hover { color: var(--link); text-decoration: underline; }
.item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0; font-size: .875rem; }
.item-reason { margin: 6px 0 0; color: var(--danger); }
@media (max-width: 599px) {
  .item-row { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
  .item-thumb img { width: 72px; height: 54px; }
}
@media (prefers-color-scheme: dark) { .item-reason { color: #f87171; } }
/* ---------- Two-step confirm (<details>) ---------- */
.confirm { position: relative; }
.confirm > summary { list-style: none; }
.confirm > summary::-webkit-details-marker { display: none; }
.confirm[open] > summary { box-shadow: inset 0 0 0 2px currentColor; }
.kw-count.is-bad { color: var(--danger); }
.kw-count.is-ok { color: var(--success); }
.review-actions .confirm { flex: 0 1 auto; }
.review-actions .confirm[open] { flex-basis: 100%; }
@media (max-width: 479px) {
  .meta-grid { grid-template-columns: 1fr; gap: 0; }
  .meta-grid dd { margin-bottom: 8px; }
}
.filter-bar .field { flex: 1 1 200px; }
.filter-bar .field label { font-size: .875rem; }
.admin-table { min-width: 680px; }
.admin-table td, .admin-table th { vertical-align: middle; }
.table-scroll:has(.confirm[open]) { overflow: visible; }
/* ---------- Search filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 4px 0 12px; }
.filter { display: flex; flex-direction: column; gap: 4px; flex: 1 1 160px; max-width: 240px; }
.filter label { font-size: .8rem; font-weight: 600; color: var(--muted); }
.js .filters.is-auto .filter-apply { display: none; }
@media (max-width: 479px) { .filter { max-width: none; flex-basis: calc(50% - 6px); } }
/* ---------- Photo grid: hover meta ---------- */
.photo-sub { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 8px; font-size: .8rem; opacity: .9; }
.photo-price { font-weight: 700; color: #fde68a; }
/* ---------- Contributor profile ---------- */
.profile-head { display: flex; align-items: center; gap: 16px; }
.profile-head h1 { margin-bottom: .1em; overflow-wrap: anywhere; }
.profile-facts { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; }
.profile-bio { max-width: 70ch; margin-top: 16px; }
/* ---------- Photo detail ---------- */
.photo-page { padding-top: 16px; padding-bottom: 32px; }
.photo-layout { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 960px) { .photo-layout { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } }
@media (min-width: 1200px) { .photo-layout { grid-template-columns: minmax(0, 1fr) 380px; } }
.photo-preview { margin: 0; }
.photo-preview img {
  width: 100%; max-width: 1200px; max-height: 80vh; object-fit: contain; margin: 0 auto;
  background: var(--surface-2); border-radius: var(--radius);
}
.photo-preview figcaption { margin-top: 8px; text-align: center; }
@media (min-width: 960px) { .photo-side { position: sticky; top: calc(var(--header-h) + 16px); } }
.photo-h1 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); overflow-wrap: anywhere; }
.photo-author { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.photo-desc { color: var(--muted); }
.buy-box { padding: 16px; margin-bottom: 12px; display: grid; gap: 14px; }
.choice-group { border: 0; margin: 0; padding: 0; display: grid; gap: 6px; min-width: 0; }
.choice-group legend { font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); margin-bottom: 6px; padding: 0; }
.choice {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg);
}
.choice:hover { border-color: var(--accent); }
.choice:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--bg)); }
.choice:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice input { margin: 4px 0 0; accent-color: var(--accent); flex-shrink: 0; }
.choice-body { display: flex; flex-direction: column; }
.choice-title { font-weight: 600; }
.choice-hint { font-size: .8rem; color: color-mix(in srgb, var(--ink) 72%, var(--bg)); }
.choice-row { align-items: center; }
.choice-row input { margin-top: 0; }
.choice-px { margin-left: auto; font-size: .85rem; font-variant-numeric: tabular-nums; }
.choice.is-disabled, .choice:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.price-line { display: flex; align-items: baseline; justify-content: space-between; margin: 0; }
.price { font-size: 1.75rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.price-table { margin-bottom: 16px; font-size: .9rem; }
.price-table summary { cursor: pointer; color: var(--link); font-weight: 600; padding: 4px 0; }
.price-table table { margin-top: 8px; }
.price-table th, .price-table td { padding: 6px 8px; }
.rights { margin-bottom: 16px; }
.rights .checklist { margin-bottom: 8px; }
.photo-info { font-size: .9rem; padding-top: 12px; border-top: 1px solid var(--line); }
.photo-section { margin-top: 32px; }
.report-link { margin-top: 24px; text-align: right; }
.report-link a { color: var(--muted); }
/* ---------- GĐ3: cart, checkout, orders, downloads, pricing ---------- */
.cart .badge:not(.has-items) { background: var(--surface-2); color: var(--muted); }
.cart-empty svg { color: var(--muted); }
.cart-layout { display: grid; gap: 24px; align-items: start; }
@media (min-width: 900px) { .cart-layout { grid-template-columns: minmax(0, 1fr) 340px; } }
.cart-list { margin-bottom: 12px; }
.cart-row { grid-template-columns: 96px minmax(0, 1fr) auto auto; }
.cart-row.is-blocked { border-color: var(--warn-line); background: var(--warn-bg); }
.cart-info { min-width: 0; }
.cart-info .item-meta + .item-meta { margin-top: 2px; }
.cart-price { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cart-price.is-struck { text-decoration: line-through; color: var(--muted); font-weight: 500; }
.cart-remove { margin: 0; }
.cart-summary { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 900px) { .cart-summary { position: sticky; top: calc(var(--header-h) + 16px); } }
.cart-summary .h-small { margin: 0; }
.cart-summary p { margin: 0; }
.cart-summary .notice { display: block; }
.cart-summary .notice form { margin-top: 8px; }
.cart-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 1.05rem; }
.cart-total strong { font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.checkout-form { gap: 12px; }
@media (max-width: 599px) {
  .cart-row { grid-template-columns: 72px minmax(0, 1fr); gap: 8px 12px; align-items: start; }
  .cart-row .item-thumb { grid-row: span 3; }
  .cart-row .item-thumb img { width: 72px; height: 54px; }
  .cart-row .cart-price, .cart-row .cart-remove { grid-column: 2; justify-self: start; }
}
.checkout-box { max-width: 560px; }
.checkout-box .meta-list { margin-bottom: 16px; }
.paypal-buttons { min-height: 48px; margin: 12px 0; }
.checkout-status { margin: 8px 0; font-size: .95rem; }
.checkout-status:empty { display: none; }
.checkout-status.is-error {
  padding: 10px 14px; border-radius: var(--radius-sm);
  background: var(--danger-bg); color: var(--danger); border: 1px solid #fca5a5;
}
.checkout-status.is-busy { color: var(--muted); }
[data-paypal-checkout].is-busy .paypal-buttons { opacity: .5; pointer-events: none; }
.checkout-links { margin-top: 16px; }
.result-card { margin: 0 auto; }
.result-card .lead { margin-bottom: 8px; }
.result-icon { font-size: 2rem; font-weight: 700; }
.result-wait { background: var(--surface-2); }
.spinner {
  display: inline-block; width: 32px; height: 32px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--accent);
  animation: spin 1s linear infinite;
}
.is-timeout .spinner { animation: none; border-top-color: var(--line); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }
.buy-actions { display: grid; gap: 8px; }
@media (min-width: 480px) and (max-width: 899px) { .buy-actions { grid-template-columns: 1fr 1fr; } }
.buy-note { margin: 0; }
.owned-note { margin: 0; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--success-bg); border: 1px solid #86efac; }
.owned-note[hidden] { display: none; }
.owned-box { display: block; margin-bottom: 16px; background: var(--success-bg); border-color: #86efac; }
.owned-box p { margin: 0 0 6px; }
.owned-list { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 4px; }
.owned-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
@media (prefers-color-scheme: dark) {
  .owned-note, .owned-box { border-color: #166534; }
  .cart-row.is-blocked { border-color: var(--warn-line); }
  .checkout-status.is-error { border-color: #7f1d1d; color: #fca5a5; }
}
.pricing-grid { display: grid; gap: 20px; margin-bottom: 12px; }
@media (min-width: 900px) { .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.pricing-card h2 { margin-bottom: 4px; }
.pricing-card-alt { border-color: var(--accent); }
.pricing-from { font-size: 1.05rem; }
.pricing-from strong { font-size: 1.5rem; }
.pricing-table { width: 100%; }
.pricing-table tbody th { font-weight: 600; }
.order-summary .notice { display: block; margin-top: 12px; }
.dl-body .small { margin-top: 8px; }
@media (max-width: 479px) { .order-row .item-thumb img { width: 72px; height: 54px; } }
.status-paid { background: var(--success-bg); color: #166534; border-color: #86efac; }
.status-partially_refunded { background: var(--warn-bg); color: #92400e; border-color: var(--warn-line); }
.status-failed, .status-cancelled, .status-refunded { background: var(--danger-bg); color: #991b1b; border-color: #fca5a5; }
@media (prefers-color-scheme: dark) {
  .status-paid { color: #86efac; border-color: #166534; }
  .status-partially_refunded { color: #fcd34d; }
  .status-failed, .status-cancelled, .status-refunded { color: #fca5a5; border-color: #7f1d1d; }
}
.break { overflow-wrap: anywhere; word-break: break-all; }
.payload {
  margin: 0; max-height: 360px; overflow: auto; padding: 12px; border-radius: 6px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: .8rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere;
}
/* ---------- GĐ4: earnings, payouts, studio settings, admin payouts ---------- */
.status-requested, .status-on_hold { background: var(--warn-bg); color: #92400e; border-color: var(--warn-line); }
.status-available { background: color-mix(in srgb, var(--accent) 10%, var(--bg)); color: #1e40af; border-color: #93c5fd; }
.status-reversed { background: var(--danger-bg); color: #991b1b; border-color: #fca5a5; }
td.is-struck, td.is-struck strong { text-decoration: line-through; color: var(--muted); }
.balance-card .h-small { margin: 0; color: var(--muted); font-weight: 600; }
.balance-card-stack .meta-list { margin: 4px 0 0; }
.admin-table tfoot th, .admin-table tfoot td, .data-table tfoot th, .data-table tfoot td { background: var(--surface); border-bottom: 0; }
.balance-card-stack .notice { margin: 0; }
.open-payout .h-small { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 4px; }
.admin-payout h1 .status, .page-head h1 .status { font-size: .85rem; vertical-align: middle; }
.payout-actions .notice { display: block; }
.adjust-form .confirm { justify-self: start; }
.settings-layout .fieldset + .fieldset { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.earnings-summary-head .card-title, .earnings-summary-head p { margin: 0; }
/* Fixer 4.15: payout alerts, frozen earnings, scrollable sub-navigation (P4-T01) */
.status-attention { background: var(--warn-bg); color: #92400e; border-color: var(--warn-line); white-space: nowrap; }
.subnav { position: relative; }
.subnav::before, .subnav::after {
  content: ""; position: absolute; top: 12px; bottom: 1px; width: 28px; pointer-events: none;
  opacity: 0; transition: opacity .15s ease;
}
.subnav::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.subnav::after { right: 0; background: linear-gradient(to left, var(--bg), transparent); }
.subnav.can-scroll-left::before, .subnav.can-scroll-right::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .subnav::before, .subnav::after { transition: none; } }
@media (prefers-color-scheme: dark) {
  .status-requested, .status-on_hold, .status-attention { color: #fcd34d; }
  .status-available { color: #93c5fd; border-color: #1e3a8a; }
  .status-reversed { color: #fca5a5; border-color: #7f1d1d; }
}
/* ---------- GĐ6b: popular Shutterstock photos (home, sponsored) ---------- */
.sst-head h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; }
.sst-note { margin: 4px 0 0; }
.sst-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 600px) { .sst-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .sst-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .sst-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.sst-item { min-width: 0; }
.sst-card {
  position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius-sm);
  background: var(--surface-2); color: #fff; text-decoration: none;
}
.sst-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
a.sst-card:hover img { transform: scale(1.03); }
a.sst-card:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sst-meta {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 6px;
  padding: 18px 8px 6px; background: linear-gradient(transparent, rgba(0, 0, 0, .62));
  font-size: .75rem; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere;
}
@media (prefers-reduced-motion: reduce) { .sst-card img { transition: none; } a.sst-card:hover img { transform: none; } }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .cookie-banner, .aff-box, .skip-link { display: none !important; }
}

/* ---------- GĐ5: header partner menu, pictures, FAQ, blog, newsletter, /sell ---------- */
.dropdown-menu .dropdown-label { padding: 4px 12px 2px; }
.photo-link picture, .photo-preview picture { display: block; width: 100%; height: 100%; }
.photo-preview picture { height: auto; }
.faq-more { margin: 32px 0 48px; }
.link-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.link-list a { display: inline-block; padding: 6px 0; }
.preview-banner { background: var(--warn-bg); border-bottom: 1px solid var(--warn-line); padding: 10px 0; font-size: .95rem; }
.article-excerpt { color: var(--muted); }
.article-cover { margin: 0 0 24px; }
.article-cover img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); background: var(--surface-2); }
.card-has-cover { padding-top: 0; overflow: hidden; }
.card-cover { display: block; margin: 0 -20px 16px; }
.card-cover img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface-2); }
.nl-result .lead { overflow-wrap: anywhere; }
.nl-result .btn-row { margin-top: 20px; }
.result-icon svg { display: block; }
.sell-facts { list-style: none; margin: 8px 0 24px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) { .sell-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sell-facts li { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.sell-facts strong { font-size: 1.5rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.sell-facts span { color: var(--muted); font-size: .9rem; }
.benefit-grid { list-style: none; padding: 0; margin: 0; }
.benefit p { margin: 0; color: var(--muted); }
.sell-steps { max-width: 820px; }
.calc-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
@media (min-width: 900px) { .calc-layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; } }
.calc-form { max-width: none; }
.calc-range { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 12px; align-items: center; }
.calc-range input[type="range"] { width: 100%; min-height: 44px; accent-color: var(--accent); }
.calc-result { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface); }
.calc-result p { margin: 0; }
.calc-amount { display: block; font-size: 2rem; font-weight: 700; line-height: 1.2; color: var(--ink); font-variant-numeric: tabular-nums; }
.calc-note { margin: 0; padding: 10px 12px; border-left: 4px solid var(--accent-2); background: var(--warn-bg); border-radius: var(--radius-sm); }
.no-js .calc-form { display: none; }
.per-sale td { white-space: nowrap; }
.per-sale { width: 100%; }
.per-sale th { font-weight: 600; }
.sell-cta .lead { max-width: 640px; margin-left: auto; margin-right: auto; }
.nl-result .result-form { margin: 12px 0; }
.choice .choice-px { color: color-mix(in srgb, var(--ink) 72%, var(--bg)); }

/* Fixer 5.17 (R5-03): blog index — post that exists only in another language */
.badge-lang {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); font-size: .8125rem; font-weight: 600;
}
