:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #171918;
  background: #f4f5f2;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #171918;
  --muted: #69706c;
  --line: #dfe3df;
  --surface: #ffffff;
  --soft: #f4f5f2;
  --green: #8f6bff;
  --green-dark: #6f48d9;
  --green-soft: #f0ebff;
  --payment-green: #168f60;
  --payment-green-dark: #0d5c3f;
  --red: #c33f38;
  --red-soft: #fae9e7;
  --amber: #9a6415;
  --amber-soft: #fff4d9;
  --blue: #326b8c;
  --shadow: 0 14px 40px rgba(16, 25, 20, 0.1);
}

* { box-sizing: border-box; }
html { background: var(--soft); }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--soft); }
button, input, select { font: inherit; }
button { letter-spacing: 0; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid rgba(143, 107, 255, 0.34); outline-offset: 2px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); letter-spacing: 0; }
h1 { font-size: clamp(2rem, 5vw, 3.7rem); line-height: 1; margin-bottom: 14px; }
h2 { font-size: 1.25rem; margin-bottom: 8px; }
p { color: var(--muted); }

.spin { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeRise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fieldDrift {
  from { background-position: 0 0; }
  to { background-position: 190px 190px; }
}
@keyframes rbFadeLift {
  from { opacity: 0; transform: translateY(18px) scale(0.985); filter: blur(5px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes rbBorderSpin {
  to { transform: rotate(360deg); }
}
@keyframes rbSparkPop {
  0%, 72% { opacity: 0; transform: translate3d(0, 0, 0) scale(0.5); }
  82% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(var(--spark-x), var(--spark-y), 0) scale(1); }
}
@keyframes rbAuroraFloat {
  0%, 100% { transform: translate3d(-8%, 4%, 0) rotate(-7deg) scale(1); }
  50% { transform: translate3d(8%, -6%, 0) rotate(5deg) scale(1.08); }
}
@keyframes rbAuroraPulse {
  0%, 100% { opacity: 0.42; filter: blur(28px); }
  50% { opacity: 0.72; filter: blur(34px); }
}
@keyframes rbGallerySweep {
  from { transform: translateX(-35%); opacity: 0.1; }
  50% { opacity: 0.55; }
  to { transform: translateX(35%); opacity: 0.1; }
}
@keyframes rbCardShine {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}
.rb-animated-content { animation: rbFadeLift 680ms cubic-bezier(0.22, 1, 0.36, 1) var(--rb-delay, 0ms) both; will-change: transform, opacity; }
.rb-aurora-flow { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.rb-aurora-flow__beam { position: absolute; width: min(54vw, 620px); height: min(42vw, 450px); border-radius: 999px; mix-blend-mode: screen; opacity: 0.55; filter: blur(30px); animation: rbAuroraFloat 13s ease-in-out infinite, rbAuroraPulse 7s ease-in-out infinite; will-change: transform, opacity; }
.rb-aurora-flow__beam--one { right: -12%; top: -18%; background: radial-gradient(circle, rgba(154,99,255,0.78), rgba(154,99,255,0) 68%); }
.rb-aurora-flow__beam--two { left: 34%; bottom: -28%; background: radial-gradient(circle, rgba(90,119,255,0.62), rgba(90,119,255,0) 66%); animation-delay: -4s; }
.rb-aurora-flow__beam--three { left: -16%; top: 18%; background: radial-gradient(circle, rgba(224,91,183,0.34), rgba(224,91,183,0) 70%); animation-delay: -8s; }
.rb-aurora-flow__mesh { position: absolute; inset: -20%; opacity: 0.12; background-image: linear-gradient(90deg, rgba(255,255,255,0.26) 1px, transparent 1px), linear-gradient(0deg, rgba(255,255,255,0.18) 1px, transparent 1px); background-size: 76px 76px; transform: rotate(-11deg); }
.rb-aurora-flow--gallery { inset: -60px -8% auto; height: 260px; opacity: 0.55; }
.rb-aurora-flow--gallery .rb-aurora-flow__beam { height: 160px; width: 520px; filter: blur(24px); animation-name: rbGallerySweep, rbAuroraPulse; animation-duration: 10s, 7s; }
.rb-aurora-flow--gallery .rb-aurora-flow__beam--one { top: 40px; right: 16%; }
.rb-aurora-flow--gallery .rb-aurora-flow__beam--two { bottom: 20px; left: 10%; }
.rb-aurora-flow--gallery .rb-aurora-flow__beam--three { display: none; }
.rb-aurora-flow--gallery .rb-aurora-flow__mesh { opacity: 0.06; }
.rb-star-border { position: relative; display: inline-flex; border-radius: 8px; padding: 1px; overflow: hidden; isolation: isolate; }
.rb-star-border__glow { position: absolute; inset: -70%; z-index: 0; background: conic-gradient(from 90deg, transparent 0 62%, rgba(154,99,255,0.95), rgba(224,91,183,0.8), transparent 82% 100%); animation: rbBorderSpin 3.4s linear infinite; }
.rb-star-border__content { position: relative; z-index: 1; display: inline-flex; border-radius: 7px; background: #101210; }
.hero-star-action .button { border-color: transparent; }
.rb-click-spark { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.rb-click-spark__spark { position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; border-radius: 50%; pointer-events: none; background: #b69cff; opacity: 0; }
.button:hover .rb-click-spark__spark, .developer-credit button:hover .rb-click-spark__spark { animation: rbSparkPop 680ms ease-out both; }
.rb-click-spark__spark--one { --spark-x: -24px; --spark-y: -20px; }
.rb-click-spark__spark--two { --spark-x: 26px; --spark-y: -14px; background: #e05bb7; animation-delay: 50ms; }
.rb-click-spark__spark--three { --spark-x: 12px; --spark-y: 22px; background: #7a8dff; animation-delay: 90ms; }
.eyebrow { margin: 0 0 8px; color: var(--green); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; }
.muted { color: var(--muted); }

.brand { width: min(300px, 72vw); background: transparent; }
.brand img { display: block; width: 100%; height: auto; }
.brand--compact { width: 184px; height: 70px; }
.brand--compact img { width: 184px; height: 70px; object-fit: contain; object-position: center; }

.button, .icon-button, .add-button, .modal-cart-button, .file-picker {
  border: 0;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease, opacity 160ms ease;
}
.button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 6px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: 0.48; }
.button--primary { background: var(--ink); color: #fff; }
.button--primary:hover:not(:disabled) { background: #303431; }
.button--secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.button--ghost { background: transparent; color: inherit; border: 1px solid currentColor; }
.button--small { min-height: 36px; padding: 7px 11px; font-size: 0.84rem; }
.button--success { background: var(--green); color: #fff; }
.button--danger { background: var(--red); color: #fff; }
.button--danger:hover:not(:disabled) { background: #9e302b; }
.button--download-all { background: var(--ink); color: #fff; }
.button--download-all:hover { background: #303431; }
.button--payment { background: var(--payment-green); color: white; min-width: 230px; }
.button--payment:hover:not(:disabled) { background: var(--payment-green-dark); }
.payment-label--mobile { display: none; }
.icon-button { width: 38px; height: 38px; display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 6px; color: #454b47; background: #edf0ed; }
.icon-button:hover { color: var(--ink); background: #dfe4df; }
.icon-button--light { color: #fff; background: rgba(255,255,255,0.12); }
.icon-button--light:hover { background: rgba(255,255,255,0.22); color: #fff; }
.icon-button--danger { color: var(--red); background: var(--red-soft); }
.icon-button--success { color: var(--green); background: var(--green-soft); }

.loading-screen { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 24px; color: var(--muted); text-align: center; }
.loading-screen p { max-width: 320px; margin: 0; font-size: 0.9rem; line-height: 1.5; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: #101210; }
.login-panel { width: min(820px, 100%); display: grid; grid-template-columns: 1fr 1fr; background: #050505; border: 1px solid #2e332f; box-shadow: 0 28px 80px rgba(0,0,0,0.35); }
.login-panel > .brand { width: 100%; align-self: center; }
.login-form { padding: 54px 42px; display: flex; flex-direction: column; justify-content: center; gap: 22px; background: white; }
.login-form h1 { font-size: 2rem; }
.login-form label, .create-gallery label { display: grid; gap: 7px; color: #4f5652; font-size: 0.78rem; font-weight: 750; }
input { width: 100%; border: 1px solid #cfd5d0; border-radius: 6px; background: #fff; color: var(--ink); padding: 11px 12px; }
select { width: 100%; min-width: 0; border: 1px solid #cfd5d0; border-radius: 6px; background: #fff; color: var(--ink); padding: 11px 34px 11px 12px; }
input::placeholder { color: #a1a7a3; }
.form-error { margin: 0; padding: 10px 12px; border-left: 3px solid var(--red); background: var(--red-soft); color: #892c27; font-size: 0.86rem; }
.server-wakeup { display: flex; align-items: center; gap: 8px; margin-top: -10px; padding: 10px 12px; border: 1px solid #b8dac8; border-radius: 8px; color: var(--green-dark); background: #eff9f4; font-size: 0.86rem; line-height: 1.35; }

.photographer-shell { min-height: 100vh; }
.developer-credit { min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 14px 20px; color: #8f9791; background: #101210; font-size: 0.78rem; }
.developer-credit button { display: inline-flex; align-items: center; gap: 5px; border: 0; padding: 0; color: #dce2dd; background: transparent; font: inherit; font-weight: 750; text-decoration: none; cursor: pointer; }
.developer-credit button:hover { color: #b69cff; }
.developer-credit--compact { min-height: auto; padding: 0; background: transparent; font-size: 0.72rem; white-space: nowrap; }
.developer-credit--compact button { font-weight: 800; }
.credit-overlay, .guide-overlay { position: fixed; inset: 0; z-index: 1400; display: grid; place-items: center; padding: 22px; background: rgba(5,7,6,0.68); backdrop-filter: blur(8px); }
.guide-overlay { z-index: 1700; align-items: center; overflow: hidden; background: rgba(5,7,6,0.78); }
.credit-card, .guide-card { position: relative; width: min(420px, 100%); padding: 26px; color: var(--ink); background: #ffffff; border: 1px solid #d8ddd9; border-radius: 8px; box-shadow: 0 28px 90px rgba(3,7,5,0.32); animation: fadeRise 180ms ease both; }
.credit-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: linear-gradient(135deg, rgba(143,107,255,0.12), transparent 38%, rgba(224,91,183,0.1)); }
.credit-card__close, .guide-card__close { top: 12px; right: 12px; color: #fff; background: #101210; }
.credit-card__badge, .guide-card__badge { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 16px; color: var(--green); background: var(--green-soft); border-radius: 7px; }
.credit-card h2, .guide-card h2 { margin: 0 0 8px; }
.credit-card p:not(.eyebrow) { margin: 0 0 20px; color: var(--muted); }
.credit-card__actions, .guide-card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.guide-card { width: min(700px, 100%); max-height: min(88vh, 780px); overflow-y: auto; padding: 30px; animation: rbFadeLift 260ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.guide-card__intro { max-width: 600px; margin-bottom: 0; line-height: 1.65; }
.guide-steps { display: grid; gap: 10px; margin: 20px 0 18px; padding: 0; list-style: none; counter-reset: guide; }
.guide-steps li { position: relative; min-height: 62px; padding: 12px 12px 12px 52px; border: 1px solid var(--line); border-radius: 8px; background: #fafbfa; counter-increment: guide; }
.guide-steps li::before { content: counter(guide); position: absolute; top: 12px; left: 12px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--green); font-size: 0.8rem; font-weight: 800; }
.guide-steps strong, .guide-steps span { display: block; }
.guide-steps span { margin-top: 3px; color: var(--muted); font-size: 0.82rem; line-height: 1.4; }
.guide-note { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; margin: 0 0 22px; padding: 13px; border: 1px solid #cfc2ff; border-radius: 8px; color: var(--green-dark); background: #f7f3ff; }
.guide-note svg { margin-top: 2px; }
.guide-note p { margin: 0; color: inherit; font-size: 0.86rem; line-height: 1.5; }
.recovery-card, .payment-email-card { width: min(760px, 100%); }
.payment-email-card { width: min(560px, 100%); }
.recovery-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; margin: 22px 0 16px; }
.recovery-form label { display: grid; gap: 7px; color: #4f5652; font-size: 0.78rem; font-weight: 750; }
.payment-email-card .recovery-form { grid-template-columns: 1fr; }
.recovery-empty { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; padding: 13px; border: 1px solid #e6aaa6; border-radius: 8px; color: #892c27; background: var(--red-soft); }
.recovery-empty strong, .recovery-empty span { display: block; }
.recovery-empty span { margin-top: 3px; font-size: 0.82rem; line-height: 1.45; }
.recovery-list { display: grid; gap: 12px; margin-top: 18px; }
.recovery-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fafbfa; }
.recovery-item span, .recovery-item strong, .recovery-item small { display: block; }
.recovery-item span { color: #8f6bff; font-size: 0.72rem; font-weight: 850; text-transform: uppercase; letter-spacing: 0.08em; }
.recovery-item strong { margin-top: 3px; font-size: 1rem; }
.recovery-item small { margin-top: 5px; color: var(--muted); }
.recovery-item__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }

.public-page { position: relative; min-height: 100vh; overflow-x: hidden; background: #f7f8f6; }
.public-page::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.45; background-image: linear-gradient(120deg, transparent 0 43%, rgba(154,99,255,0.07) 43% 44%, transparent 44% 100%), linear-gradient(90deg, rgba(40,104,137,0.05) 1px, transparent 1px); background-size: 190px 190px, 48px 48px; animation: fieldDrift 18s linear infinite; }
.public-page > * { position: relative; z-index: 1; }
.public-page > .guide-overlay { position: fixed; z-index: 1700; }
.public-header { height: 84px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(24px, calc((100vw - 1180px) / 2)); color: white; background: #060706; border-bottom: 1px solid #2b302c; }
.public-header .button--ghost { color: #dfe4df; border-color: #414642; }
.public-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr); gap: 36px; align-items: end; padding: 74px max(24px, calc((100vw - 1180px) / 2)) 58px; overflow: hidden; color: white; background: #101210; isolation: isolate; }
.public-hero::before { content: ""; position: absolute; inset: auto 0 0; height: 52%; opacity: 0.22; background: repeating-linear-gradient(145deg, transparent 0 18px, rgba(255,255,255,0.12) 19px 20px); transform: translateY(22%); animation: fieldDrift 22s linear infinite reverse; }
.public-hero::after { content: ""; position: absolute; left: max(24px, calc((100vw - 1180px) / 2)); right: max(24px, calc((100vw - 1180px) / 2)); bottom: 0; height: 4px; background: linear-gradient(90deg, #9a63ff, #5a77ff, #e05bb7); }
.public-hero__copy, .public-hero__panel { position: relative; z-index: 1; }
.public-hero h1 { max-width: 860px; color: white; }
.public-hero__copy > p:not(.eyebrow) { max-width: 660px; color: #aeb5b0; font-size: 1.02rem; line-height: 1.65; }
.public-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.public-hero__actions .button--ghost { color: #dfe4df; border-color: #414642; }
.public-hero__panel { display: grid; gap: 10px; }
.hero-stat { min-height: 94px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 12px; padding: 16px; border: 1px solid #343934; border-radius: 8px; background: rgba(255,255,255,0.035); box-shadow: 0 18px 40px rgba(0,0,0,0.16); animation: fadeRise 260ms ease both; }
.hero-stat:nth-child(2) { animation-delay: 80ms; }
.hero-stat:nth-child(3) { animation-delay: 150ms; }
.hero-stat svg { grid-row: span 2; color: #b69cff; }
.hero-stat span { color: #aeb5b0; font-size: 0.74rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.hero-stat strong { min-width: 0; overflow: hidden; color: white; font-size: 1rem; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.hero-stat--featured { border-color: rgba(182,156,255,0.36); background: linear-gradient(135deg, rgba(143,107,255,0.24), rgba(224,91,183,0.12)); }
.public-content { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 28px 0 72px; }
.public-content--animated { position: relative; isolation: isolate; }
.public-content--animated > *:not(.rb-aurora-flow) { position: relative; z-index: 1; }
.public-feature-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 34px; }
.public-feature-strip--hero { position: relative; z-index: 1; grid-column: 1 / -1; gap: 18px; margin: 18px 0 0; }
.public-feature-strip article { display: flex; align-items: flex-start; gap: 12px; min-height: 92px; padding: 15px; border: 1px solid var(--line); border-radius: 8px; background: #ffffff; box-shadow: 0 8px 20px rgba(20,25,22,0.05); }
.public-feature-strip--hero article { min-height: 0; padding: 2px 0 2px 14px; border: 0; border-left: 2px solid rgba(182,156,255,0.55); border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; }
.public-feature-strip svg { flex: 0 0 auto; color: var(--green); }
.public-feature-strip--hero svg { width: 18px; height: 18px; margin-top: 2px; color: #b69cff; opacity: 0.9; }
.public-feature-strip strong, .public-feature-strip span { display: block; }
.public-feature-strip strong { margin-bottom: 3px; color: var(--ink); }
.public-feature-strip--hero strong { color: #ffffff; font-size: 0.9rem; }
.public-feature-strip span { color: var(--muted); font-size: 0.78rem; line-height: 1.35; }
.public-feature-strip--hero span { color: #c7c0d8; font-size: 0.72rem; }
.public-gallery-title { align-items: flex-end; }
.public-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.public-gallery-card { position: relative; overflow: hidden; display: grid; grid-template-rows: auto 1fr; min-height: 340px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: 0 8px 24px rgba(20,25,22,0.07); cursor: pointer; transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease; animation: fadeRise 220ms ease both; }
.public-gallery-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; background: linear-gradient(115deg, transparent 12%, rgba(255,255,255,0.5) 34%, transparent 56%); transform: translateX(-120%); transition: opacity 180ms ease; }
.public-gallery-card:hover { transform: translateY(-3px); border-color: #a8b6ae; box-shadow: 0 18px 42px rgba(20,25,22,0.14); }
.public-gallery-card:hover::after, .public-gallery-card:active::after { opacity: 0.28; animation: rbCardShine 850ms ease both; }
.public-gallery-card__media { aspect-ratio: 4 / 3; display: grid; place-items: center; color: var(--blue); background: #e8ece8; overflow: hidden; }
.public-gallery-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 220ms ease; }
.public-gallery-card:hover .public-gallery-card__media img { transform: scale(1.035); }
.public-gallery-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; }
.public-gallery-card__body span { color: var(--green); font-size: 0.74rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.public-gallery-card__body h3 { margin: 0; font-size: 1.12rem; line-height: 1.25; }
.public-gallery-card__body .button { margin-top: auto; }

.app-header { height: 84px; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; color: white; background: #101210; border-bottom: 1px solid #2c302d; }
.app-header__brand { min-width: 0; display: flex; align-items: center; gap: 14px; }
.app-header__copy { min-width: 0; display: flex; flex-direction: column; }
.app-header__copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-header__copy span { color: #a9b0ab; font-size: 0.76rem; }
.app-header .button--ghost { color: #dfe4df; border-color: #414642; }
.workspace { width: min(1060px, calc(100% - 40px)); margin: 0 auto; padding: 54px 0 80px; }
.workspace--wide { width: min(1240px, calc(100% - 40px)); }
.page-heading, .gallery-detail-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 30px; }
.page-heading p:last-child, .gallery-detail-heading p:last-child { max-width: 650px; margin-bottom: 0; }
.notice { position: sticky; top: 12px; z-index: 60; margin: 0 0 20px auto; width: fit-content; max-width: 100%; min-height: 44px; display: flex; align-items: center; gap: 9px; padding: 8px 8px 8px 13px; border: 1px solid; border-radius: 6px; box-shadow: var(--shadow); }
.notice--success { color: var(--green-dark); background: #f0faf5; border-color: #a8d6bf; }
.notice--error { color: #8a2b26; background: #fff3f2; border-color: #e9b5b1; }
.notice .icon-button { margin-left: 4px; width: 30px; height: 30px; background: transparent; color: currentColor; }

.create-gallery { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: end; gap: 14px; padding: 18px; margin-bottom: 36px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 26px rgba(22,29,25,0.05); }
.create-gallery__icon { width: 48px; height: 48px; display: grid; place-items: center; align-self: end; border-radius: 6px; color: var(--green); background: var(--green-soft); }
.gallery-list { display: grid; gap: 8px; }
.gallery-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; min-height: 78px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.gallery-row:hover { border-color: #bdc5bf; }
.gallery-row__main { min-width: 0; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 16px; border: 0; text-align: left; color: var(--ink); background: transparent; cursor: pointer; }
.gallery-row__main > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.gallery-row__main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gallery-row__main small { color: var(--muted); }
.gallery-row__thumb { width: 46px; height: 46px; display: grid; place-items: center; color: var(--blue); background: #eaf2f6; border-radius: 6px; }
.gallery-row__arrow { color: #a3aaa5; }
.gallery-row__actions { display: flex; align-items: center; gap: 7px; padding: 0 14px; border-left: 1px solid var(--line); }

.empty-state { min-height: 230px; display: grid; place-content: center; justify-items: center; text-align: center; padding: 30px; color: #8a918d; background: #fafbfa; border: 1px dashed #cbd1cc; border-radius: 8px; }
.empty-state h2 { margin: 14px 0 6px; font-size: 1.05rem; }
.empty-state p { margin: 0; }

.sales-section, .upload-panel, .photos-section { margin-bottom: 28px; }
.sales-section { padding: 22px; background: #101210; border-radius: 8px; color: white; }
.sales-section h2, .sales-section .section-title { color: white; }
.sales-section .eyebrow { color: #c7b7ff; }
.section-title { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.section-title h2 { margin: 0; }
.section-title > span { color: var(--muted); font-size: 0.82rem; font-weight: 700; }
.stats-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; border: 1px solid #383d39; border-radius: 6px; overflow: hidden; }
.stats-grid > div { min-height: 92px; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 16px 18px; border-right: 1px solid #383d39; }
.stats-grid > div:last-child { border-right: 0; }
.stats-grid span { color: #aab1ac; font-size: 0.75rem; }
.stats-grid strong { color: white; font-size: 1.45rem; }
.sales-list { margin-top: 14px; border-top: 1px solid #343935; }
.sale-row { min-height: 70px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px solid #2d322e; }
.sale-row__images { display: flex; }
.sale-row__images img { width: 42px; height: 42px; object-fit: cover; border: 2px solid #101210; border-radius: 4px; margin-right: -8px; }
.sale-row__copy { display: flex; flex-direction: column; }
.sale-row__copy span { color: #9da49f; font-size: 0.72rem; }

.upload-panel { position: relative; padding: 20px; display: flex; align-items: center; justify-content: space-between; gap: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.upload-panel__copy, .upload-panel__controls { display: flex; align-items: center; gap: 13px; }
.upload-panel__copy h2, .upload-panel__copy p { margin-bottom: 3px; }
.upload-panel__copy p { font-size: 0.82rem; }
.upload-panel__icon { width: 46px; height: 46px; display: grid; place-items: center; flex: 0 0 auto; color: var(--green); background: var(--green-soft); border-radius: 6px; }
.file-picker { min-height: 42px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border: 1px solid #cfd5d0; border-radius: 6px; color: #454b47; background: #fff; font-weight: 700; font-size: 0.82rem; }
.file-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: #e6e9e6; }
.progress span { display: block; height: 100%; background: var(--green); transition: width 180ms ease; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.photo-tile, .client-photo { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 6px; background: #dfe3df; }
.photo-tile { cursor: zoom-in; }
.photo-tile.is-selecting { cursor: pointer; }
.photo-tile.is-selected { box-shadow: inset 0 0 0 4px var(--green); }
.photo-tile.is-selected img { opacity: 0.78; }
.photo-selection-indicator { position: absolute; z-index: 4; top: 9px; left: 9px; width: 28px; height: 28px; display: grid; place-items: center; border: 2px solid white; border-radius: 5px; color: white; background: rgba(10,13,11,0.58); box-shadow: 0 2px 8px rgba(0,0,0,0.2); pointer-events: none; }
.photo-tile.is-selected .photo-selection-indicator { border-color: var(--green); background: var(--green); }
.photo-tile img, .client-photo img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform 220ms ease, opacity 220ms ease; }
.image-loading { width: 100%; height: 100%; display: grid; place-items: center; color: #8d9690; background: #e7eae7; }
.photo-tile:hover img, .client-photo:hover img { transform: scale(1.035); }
.photo-tile__overlay { position: absolute; inset: 0; padding: 8px; display: flex; justify-content: flex-end; align-items: flex-start; opacity: 0; background: rgba(8,10,9,0.24); transition: opacity 160ms ease; }
.photo-tile:hover .photo-tile__overlay { opacity: 1; }
.photos-section__heading { align-items: flex-end; }
.selection-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.selection-actions > strong, .photo-count { color: var(--muted); font-size: 0.8rem; }

.modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 28px; overflow: hidden; }
.modal__backdrop { position: absolute; inset: -30px; background-position: center; background-size: cover; filter: blur(28px); transform: scale(1.08); }
.modal__shade { position: absolute; inset: 0; background: rgba(4,6,5,0.7); }
.modal__content { position: relative; z-index: 2; max-width: 92vw; max-height: 90vh; }
.modal__content > img { display: block; max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 6px; box-shadow: 0 24px 70px rgba(0,0,0,0.45); }
.modal__loading { width: min(560px, 88vw); height: min(420px, 70vh); display: grid; place-items: center; color: white; background: rgba(10,12,11,0.7); border-radius: 6px; }
.modal__close { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer; color: white; background: rgba(5,7,6,0.72); }
.modal__nav { position: fixed; z-index: 4; top: 50%; width: 52px; height: 52px; display: grid; place-items: center; transform: translateY(-50%); border: 1px solid rgba(255,255,255,0.24); border-radius: 50%; cursor: pointer; color: white; background: rgba(5,7,6,0.72); transition: background 160ms ease, transform 160ms ease; }
.modal__nav:hover { background: rgba(143,107,255,0.92); transform: translateY(-50%) scale(1.04); }
.modal__nav--previous { left: 20px; }
.modal__nav--next { right: 20px; }
.modal-cart-button { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 6px; white-space: nowrap; color: white; background: rgba(13,17,15,0.88); font-weight: 800; }
.modal-cart-button.is-selected { background: var(--green); }

.client-page { min-height: 100vh; padding-bottom: 104px; background: #f7f8f6; }
.client-header { height: 84px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(24px, calc((100vw - 1180px) / 2)); color: #abb2ad; background: #060706; }
.client-header span { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; }
.client-back-button { min-height: 38px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid #3b413c; border-radius: 6px; color: #dce2dd; background: transparent; cursor: pointer; font-weight: 800; transition: background 160ms ease, transform 160ms ease, border-color 160ms ease; }
.client-back-button:hover { transform: translateY(-1px); border-color: #5c655e; background: rgba(255,255,255,0.06); }
.client-back-button span { color: inherit; font-size: 0.72rem; letter-spacing: 0.08em; }
.client-hero { padding: 64px max(24px, calc((100vw - 1180px) / 2)) 48px; color: white; background: #101210; border-top: 1px solid #2b302c; }
.client-hero h1 { max-width: 900px; color: white; }
.client-hero > p:not(.eyebrow) { max-width: 620px; color: #aeb5b0; }
.client-hero__meta { width: fit-content; display: flex; align-items: center; gap: 8px; margin-top: 24px; padding: 8px 10px; border: 1px solid #3a3f3b; border-radius: 5px; color: #dbe0dc; font-size: 0.8rem; }
.client-content { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 36px 0 60px; }
.client-grid-title { margin-top: 10px; }
.photo-grid--client { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.client-photo { cursor: zoom-in; box-shadow: 0 6px 18px rgba(20,25,22,0.07); }
.client-photo.is-selected { box-shadow: 0 0 0 3px var(--green), 0 8px 24px rgba(143,107,255,0.18); }
.add-button { position: absolute; left: 10px; right: 10px; bottom: 10px; min-height: 38px; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 10px; border-radius: 5px; color: white; background: rgba(13,17,15,0.84); font-weight: 800; font-size: 0.76rem; }
.add-button:hover { background: #171b18; }
.add-button.is-selected { background: var(--green); }

.cart-bar { position: fixed; z-index: 100; left: 0; right: 0; bottom: 0; min-height: 80px; padding: 13px max(24px, calc((100vw - 1180px) / 2)); display: flex; justify-content: space-between; align-items: center; gap: 18px; color: white; background: #101210; border-top: 1px solid #333834; box-shadow: 0 -14px 34px rgba(7,10,8,0.2); }
.cart-bar__summary, .cart-bar__actions { display: flex; align-items: center; gap: 12px; }
.cart-bar .developer-credit { flex: 0 1 auto; }
.cart-bar__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 6px; color: #aeb5b0; background: #262a27; }
.cart-bar--active .cart-bar__icon { color: #c7b7ff; background: #2c2450; }
.cart-bar__summary > div { display: flex; flex-direction: column; }
.cart-bar__summary span { color: #aab1ac; font-size: 0.76rem; }
.cart-bar .button--ghost { color: #cfd4d0; border-color: #444a45; }

.payment-status { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 22px; margin-bottom: 34px; border: 1px solid; border-radius: 8px; }
.payment-status--approved { background: #eff9f4; border-color: #a9d6c0; }
.payment-status--pending { background: var(--amber-soft); border-color: #ead197; }
.payment-status--failed { background: var(--red-soft); border-color: #e6aaa6; }
.payment-status__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; }
.payment-status--approved .payment-status__icon { color: var(--payment-green); background: #d9efe4; }
.payment-status--pending .payment-status__icon { color: var(--amber); background: #f7e3b6; }
.payment-status--failed .payment-status__icon { color: var(--red); background: #f3cecb; }
.payment-status__content h2 { margin-bottom: 6px; }
.payment-status__content > p:last-of-type { margin-bottom: 0; }
.downloads { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.legal-page { min-height: 100vh; background: var(--soft); }
.legal-page .client-header a { color: #dce2dd; text-decoration: none; font-weight: 700; }
.legal-content { width: min(780px, calc(100% - 40px)); margin: 0 auto; padding: 64px 0 80px; }
.legal-content h1 { max-width: 720px; }
.legal-updated { padding-bottom: 24px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.legal-content section { margin-bottom: 30px; }
.legal-content section h2 { margin-bottom: 9px; }
.legal-content section p { line-height: 1.75; }

@media (max-width: 800px) {
  input { font-size: 16px; }
  .brand--compact { width: 160px; height: 66px; }
  .brand--compact img { width: 160px; height: 66px; }
  h1 { font-size: 2.25rem; }
  .public-header { padding: 0 16px; }
  .public-hero { grid-template-columns: 1fr; padding: 50px 20px 48px; }
  .rb-aurora-flow__beam { width: 76vw; height: 52vw; filter: blur(24px); opacity: 0.48; }
  .rb-aurora-flow__beam--one { right: -32%; top: -10%; }
  .rb-aurora-flow__beam--two { left: 4%; bottom: -16%; }
  .public-hero__panel { grid-template-columns: 1fr; }
  .public-feature-strip { grid-template-columns: 1fr 1fr; margin-top: 0; }
  .public-feature-strip--hero { gap: 14px; margin-top: 14px; }
  .public-feature-strip--hero article { min-height: 0; align-items: flex-start; flex-direction: row; gap: 8px; padding: 2px 0 2px 11px; }
  .public-feature-strip--hero strong { font-size: 0.82rem; line-height: 1.2; }
  .public-feature-strip--hero span { font-size: 0.69rem; }
  .login-panel { grid-template-columns: 1fr; }
  .login-panel > .brand { display: none; }
  .login-form { padding: 40px 28px; }
  .app-header { padding: 0 14px; }
  .app-header__copy { display: none; }
  .app-header .button span { display: none; }
  .workspace, .workspace--wide { width: min(100% - 24px, 700px); padding: 34px 0 60px; }
  .page-heading, .gallery-detail-heading { align-items: flex-start; flex-direction: column; }
  .create-gallery { grid-template-columns: 42px minmax(0, 1fr); }
  .create-gallery__icon { width: 42px; height: 42px; }
  .create-gallery .button { grid-column: 1 / -1; }
  .gallery-row { grid-template-columns: minmax(0, 1fr); }
  .gallery-row__actions { justify-content: flex-end; padding: 9px 12px; border-top: 1px solid var(--line); border-left: 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid > div:first-child { grid-column: 1 / -1; border-bottom: 1px solid #383d39; }
  .stats-grid > div:nth-child(2) { border-right: 1px solid #383d39; }
  .upload-panel { align-items: stretch; flex-direction: column; }
  .upload-panel__controls { justify-content: flex-end; }
  .client-header { padding: 0 16px; }
  .client-header > span { display: none; }
  .client-back-button span { display: inline; }
  .client-hero { padding: 46px 20px 38px; }
  .client-content { width: calc(100% - 24px); padding-top: 26px; }
  .cart-bar { padding: 11px 12px; }
  .developer-credit--compact { flex-direction: column; gap: 1px; font-size: 0.62rem; line-height: 1.15; }
  .cart-bar__actions .button--ghost { display: none; }
  .button--payment { min-width: 0; }
}

@media (max-width: 600px) {
  .guide-overlay { padding: 12px; }
  .guide-card { max-height: 92vh; padding: 24px 18px; }
  .guide-card__actions { grid-template-columns: 1fr; }
  .recovery-form, .recovery-item { grid-template-columns: 1fr; }
  .recovery-form .button, .recovery-item__actions .button { width: 100%; }
  .recovery-item__actions { justify-content: stretch; }
  .guide-steps li { padding-right: 10px; }
  .public-hero__actions .rb-star-border, .public-hero__actions .rb-star-border__content, .public-hero__actions .button { width: 100%; }
  .public-hero__actions .button { white-space: normal; }
  .rb-aurora-flow--gallery { height: 180px; opacity: 0.42; }
  .client-back-button { padding-inline: 9px; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .photo-tile__overlay { opacity: 1; background: transparent; }
  .photo-tile__overlay .icon-button { width: 34px; height: 34px; }
  .photos-section__heading { align-items: stretch; flex-direction: column; }
  .selection-actions { justify-content: flex-start; }
  .selection-actions > strong { width: 100%; }
  .selection-actions .button { flex: 1 1 auto; min-width: 0; }
  .add-button { left: 6px; right: 6px; bottom: 6px; min-height: 34px; padding: 6px; font-size: 0.68rem; }
  .gallery-detail-heading .button { width: 100%; }
  .upload-panel__copy { align-items: flex-start; }
  .upload-panel__controls { display: grid; grid-template-columns: 1fr; }
  .file-picker, .upload-panel__controls .button { width: 100%; }
  .sale-row { grid-template-columns: auto 1fr; }
  .sale-row > strong:last-child { grid-column: 2; }
  .cart-bar__icon { display: none; }
  .cart-bar__summary strong { font-size: 0.85rem; }
  .cart-bar__summary span { font-size: 0.7rem; }
  .developer-credit--compact { font-size: 0.65rem; }
  .cart-bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; }
  .developer-credit--compact { min-width: 0; overflow: hidden; }
  .developer-credit--compact button { overflow: hidden; text-overflow: ellipsis; }
  .payment-label--desktop { display: none; }
  .payment-label--mobile { display: inline; }
  .button--payment { padding-inline: 12px; font-size: 0.76rem; }
  .payment-status { grid-template-columns: 1fr; }
  .modal { padding: 10px; }
  .modal__content > img { max-width: 96vw; max-height: 82vh; }
  .modal__nav { width: 44px; height: 44px; }
  .modal__nav--previous { left: 6px; }
  .modal__nav--next { right: 6px; }
  .credit-card { padding: 22px; }
  .credit-card__actions, .guide-card__actions { grid-template-columns: 1fr; }
  .guide-card { padding: 22px; }
  .public-feature-strip { grid-template-columns: 1fr; }
  .public-feature-strip--hero { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal-content { width: calc(100% - 32px); padding: 42px 0 60px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/*
Theme Name: Pelusa Fotografía
Author: Pelusa / BGN Studio Web
Description: Adaptación del diseño original React de Pelusa a WordPress y WooCommerce.
Version: 0.3.0
Requires at least: 6.6
Requires PHP: 8.2
Text Domain: pelusa
*/
.skip-link{position:absolute;left:-9999px;top:12px;z-index:2000;background:#fff;padding:12px}.skip-link:focus{left:12px}.public-gallery-card{display:block;color:inherit;text-decoration:none}.fm-cover-placeholder{display:grid;place-items:center;height:100%;color:#69706c}.fm-zoom{display:block;width:100%;height:100%;padding:0;border:0;cursor:zoom-in;background:transparent}.fm-add-form{position:absolute;left:10px;right:10px;bottom:10px}.fm-add-form .add-button{position:static;width:100%}.fm-add-form input{display:none}.fm-commerce{width:min(1180px,calc(100% - 32px));margin:40px auto 100px}.fm-commerce .woocommerce{padding:24px;background:#fff;border:1px solid var(--line);border-radius:8px}.fm-commerce input:not([type=checkbox]):not([type=radio]),.fm-commerce select,.fm-commerce textarea{padding:10px;border:1px solid var(--line);border-radius:5px;max-width:100%;font-size:16px}.fm-commerce a{color:var(--green-dark)}.fm-commerce button.button,.fm-commerce a.button{background:var(--ink);color:#fff}.fm-commerce h1{font-size:2.5rem}.fm-pagination{display:flex;gap:12px;flex-wrap:wrap;margin:24px 0}.fm-pagination a,.fm-pagination span{padding:12px;background:#fff;border:1px solid var(--line);border-radius:4px}.fm-lightbox{width:min(1000px,95vw);height:min(850px,90vh);border:0;border-radius:8px;background:#101210;padding:40px 12px 12px;color:#fff}.fm-lightbox::backdrop{background:rgba(4,6,5,.85)}.fm-lightbox img{display:block;width:100%;height:calc(100% - 50px);object-fit:contain}.fm-lightbox nav{display:flex;justify-content:space-between;gap:12px;margin-top:10px}.fm-lightbox button{background:#fff;color:#171918;border:0;border-radius:4px;padding:10px;cursor:pointer}.fm-guide{max-width:650px;padding:30px;border:0;border-radius:10px}.fm-guide::backdrop{background:#000a}.fm-guide li{margin:14px 0}.fm-footer{padding:28px 20px;text-align:center;font-size:13px}.fm-footer nav{display:flex;justify-content:center;gap:18px;flex-wrap:wrap;margin-bottom:18px}.fm-footer a{color:var(--muted)}.fm-cart-link{color:#fff;text-decoration:none}.fm-guide-close{float:right}.public-header nav{display:flex;align-items:center;gap:10px}.fm-event-description p{color:#aeb5b0}.client-page{padding-bottom:85px}.fm-private{max-width:700px;margin:40px auto;padding:20px}.hero-stat svg{width:22px;height:22px}.fm-icon{width:20px;height:20px;flex-shrink:0}@media(max-width:600px){.public-header nav{gap:4px}.public-header nav .button{padding:8px;font-size:11px}.brand--compact,.brand--compact img{width:140px}.fm-commerce .woocommerce{padding:14px}.fm-commerce{width:calc(100% - 20px)}.cart-bar{display:flex}.fm-add-form{left:6px;right:6px;bottom:6px}}
@media(max-width:600px){.public-header{height:auto;min-height:80px;flex-wrap:wrap;gap:8px;padding:8px 12px}.public-header nav{flex-wrap:wrap;max-width:100%}.public-hero__copy{min-width:0}.public-hero__panel{min-width:0}}
