:root {
  --ink: #151515;
  --soft-ink: #686868;
  --line: #e4e4e4;
  --danger: #a33c3c;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
}

a { color: inherit; }
.page { min-height: 100vh; display: flex; flex-direction: column; padding: 30px 38px 38px; }
.site-header { display: flex; justify-content: space-between; align-items: center; }
.logo { color: var(--ink); font-size: 18px; font-weight: 700; letter-spacing: .34em; text-decoration: none; }
.age { color: var(--soft-ink); font-size: 11px; letter-spacing: .12em; }
.landing { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px 0; }
.landing-content { width: min(100%, 980px); text-align: center; }
.hero-image { width: 100%; aspect-ratio: 16 / 9; display: block; object-fit: cover; object-position: center; border-radius: 2px; }
.button-row { display: flex; justify-content: center; gap: 12px; margin-top: 28px; }
.button {
  min-width: 132px; padding: 13px 28px; border: 1px solid var(--ink); border-radius: 999px;
  color: var(--ink); background: #fff; font: inherit; font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-decoration: none; cursor: pointer; transition: .2s ease;
}
.button:hover { color: #fff; background: var(--ink); }
.button-primary { color: #fff; background: var(--ink); }
.button-primary:hover { color: var(--ink); background: #fff; }
.button-full { width: 100%; margin-top: 28px; }
.text-button { display: block; margin: 18px auto 0; padding: 4px; border: 0; color: var(--soft-ink); background: none; font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; }
.form-message.error { color: var(--danger); }
footer { flex: 0 0 auto; color: #999; font-size: 10px; letter-spacing: .08em; text-align: center; }

.modal { position: fixed; inset: 0; z-index: 10; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(255,255,255,.8); backdrop-filter: blur(10px); }
.modal.open { display: flex; }
.modal-card { position: relative; width: min(100%, 390px); padding: 38px; border: 1px solid var(--line); background: #fff; box-shadow: 0 20px 70px rgba(0,0,0,.12); }
.modal-card h1, .page-title { margin: 0 0 8px; font-size: 26px; font-weight: 500; letter-spacing: -.03em; }
.modal-card p, .muted { color: var(--soft-ink); font-size: 13px; }
.modal-card label { display: block; margin: 16px 0 7px; color: var(--soft-ink); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.modal-card input, .admin-form input, .admin-form textarea { width: 100%; padding: 13px 0; border: 0; border-bottom: 1px solid var(--line); outline: 0; color: var(--ink); background: transparent; font: inherit; }
.modal-card input:focus, .admin-form input:focus, .admin-form textarea:focus { border-color: var(--ink); }
.close-button { position: absolute; top: 15px; right: 17px; border: 0; color: var(--soft-ink); background: transparent; font-size: 22px; cursor: pointer; }
.form-message { min-height: 18px; margin: 14px 0 0; text-align: center; }
.site-shell { width: auto; margin: 0; padding: 30px 38px 60px; }
.site-shell .site-header { margin-bottom: 70px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.account-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 999px; color: #fff; background: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-decoration: none; transition: .2s ease; }
.account-button:hover { color: var(--ink); background: #fff; }
.account-button svg { width: 16px; height: 16px; fill: currentColor; }
.content-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; width: 100%; margin-top: 30px; }
.content-card { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.content-card img, .content-card video { width: 100%; height: 360px; display: block; aspect-ratio: 4 / 3; object-fit: cover; object-position: center; cursor: zoom-in; user-select: none; -webkit-user-drag: none; }
.empty-state { padding: 48px 0; color: var(--soft-ink); text-align: center; }
.admin-form { max-width: 560px; margin-top: 28px; }
.admin-form label { display: block; margin: 18px 0 7px; font-size: 12px; font-weight: 700; }
.admin-form textarea { min-height: 90px; resize: vertical; }
.status { min-height: 20px; margin-top: 14px; color: var(--soft-ink); font-size: 13px; }
.status.error { color: var(--danger); }
.account-dashboard { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 900px; margin-top: 28px; align-items: start; }
.account-panel { min-width: 0; margin: 0; padding: 26px; border: 1px solid var(--line); }
.account-section-title { margin: 0; font-size: 16px; font-weight: 600; }
.subscription-status-badge { display: inline-block; margin: 18px 0 0; padding: 7px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.subscription-status-badge.is-active { color: #176b36; background: #e8f5ec; }
.subscription-status-badge.is-inactive { color: #a33c3c; background: #fbecec; }
#accountMessage:empty { display: none; }
.subscription-panel { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 28px; padding: 18px 20px; border: 1px solid var(--line); }
.subscription-panel[hidden] { display: none; }
.account-subscription-panel { min-height: 100%; margin: 0; }
.subscription-label { margin: 0 0 5px; color: var(--soft-ink); font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.subscription-remaining { margin: 0; font-size: 16px; font-weight: 600; }
.subscription-note { margin: 5px 0 0; color: var(--soft-ink); font-size: 12px; }
.subscription-manage { flex: 0 0 auto; }
.pricing-shell { min-height: 100vh; display: flex; flex-direction: column; }
.pricing-main { width: min(100%, 900px); margin: auto; padding: 48px 0 70px; }
.back-link { color: var(--soft-ink); font-size: 12px; text-decoration: none; }
.back-link:hover { color: var(--ink); }
.eyebrow { margin: 48px 0 12px; color: var(--soft-ink); font-size: 10px; font-weight: 700; letter-spacing: .18em; }
.pricing-title { margin: 0; font-size: clamp(34px, 6vw, 54px); font-weight: 400; letter-spacing: -.055em; }
.pricing-intro { margin: 14px 0 36px; color: var(--soft-ink); font-size: 14px; }
.membership-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.membership-card { padding: 30px; border: 1px solid var(--line); background: #fff; }
.membership-featured { border-color: var(--ink); }
.membership-period { margin: 0 0 28px; color: var(--soft-ink); font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.membership-card h2 { margin: 0; font-size: 22px; font-weight: 500; }
.membership-price { margin: 18px 0 8px; font-size: 32px; font-weight: 500; letter-spacing: -.04em; }
.membership-price span { color: var(--soft-ink); font-size: 12px; font-weight: 400; letter-spacing: 0; }
.membership-description { min-height: 20px; margin: 0 0 28px; color: var(--soft-ink); font-size: 12px; }
.membership-button { width: 100%; display: flex; }
.pricing-message { margin-bottom: 0; font-size: 11px; }
.pricing-footnote { margin-top: 22px; color: #999; font-size: 11px; text-align: center; }
.lightbox { position: fixed; inset: 0; z-index: 20; display: none; align-items: center; justify-content: center; padding: 70px 90px; background: rgba(0, 0, 0, .92); }
.lightbox.open { display: flex; }
.lightbox-media { position: relative; max-width: 100%; max-height: 100%; }
.lightbox-image { display: block; max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; }
.lightbox-watermark { position: absolute; right: 14px; bottom: 12px; color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .04em; text-shadow: 0 1px 4px rgba(0, 0, 0, .8); pointer-events: none; }
.lightbox-close, .lightbox-arrow { position: absolute; z-index: 1; border: 0; color: #fff; background: transparent; cursor: pointer; }
.lightbox-close { top: 18px; right: 28px; font-size: 42px; font-weight: 200; line-height: 1; }
.lightbox-arrow { top: 50%; transform: translateY(-50%); padding: 20px; font-size: 62px; font-weight: 200; line-height: 1; }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }
.lightbox-close:hover, .lightbox-arrow:hover { color: #cfcfcf; }

@media (max-width: 600px) {
  .page { padding: 22px 18px 24px; }
  .site-shell { width: auto; margin: 0; padding: 22px 18px 24px; }
  .landing { padding: 34px 0; }
  .hero-image { aspect-ratio: 16 / 10; }
  .button { min-width: 118px; padding: 12px 20px; }
  .modal-card { padding: 32px 26px; }
  .header-actions { gap: 7px; }
  .account-button { min-height: 40px; padding: 0 12px; }
  .pricing-main { padding: 20px 0 44px; }
  .eyebrow { margin-top: 38px; }
  .membership-grid, .account-dashboard { grid-template-columns: 1fr; }
  .membership-card { padding: 24px; }
  .subscription-panel { align-items: flex-start; flex-direction: column; gap: 14px; }
  .content-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .content-card img, .content-card video { height: 260px; }
}

@media (max-width: 420px) {
  .content-grid { grid-template-columns: 1fr; }
  .content-card img, .content-card video { height: 300px; }
  .lightbox { padding: 60px 45px; }
  .lightbox-arrow { padding: 12px; font-size: 48px; }
  .lightbox-close { right: 16px; }
}
