@import "tailwindcss";

:root {
  --ink: #101311;
  --paper: #f4f1e9;
  --cream: #e9e2d2;
  --lime: #c7ff42;
  --line: rgba(16, 19, 17, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-sans), Arial, sans-serif; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.customer-shell { min-height: 100vh; overflow: hidden; }
.customer-header { height: 82px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 5vw; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 900; letter-spacing: .18em; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; background: var(--ink); color: var(--lime); border-radius: 50%; font-family: var(--font-display), serif; font-size: 23px; font-style: italic; letter-spacing: 0; }
.header-action { background: transparent; border: 0; border-bottom: 1px solid var(--ink); padding: 5px 0; text-transform: uppercase; font-size: 11px; font-weight: 800; letter-spacing: .15em; cursor: pointer; }

.hero { min-height: calc(100vh - 82px); display: grid; grid-template-columns: 46% 54%; padding: 5vw; gap: 5vw; align-items: center; position: relative; }
.hero::before { content: "LOYD"; position: absolute; left: -1.5vw; bottom: -6vw; font-size: 20vw; line-height: .8; font-weight: 900; color: rgba(16, 19, 17, .035); letter-spacing: -.08em; pointer-events: none; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow, .modal-kicker, .admin-kicker { font-size: 10px; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 28px; }
.eyebrow i, .live-label i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: var(--lime); box-shadow: 0 0 0 4px rgba(199, 255, 66, .18); }
.hero h1 { margin: 0; font-size: clamp(54px, 6.4vw, 108px); letter-spacing: -.07em; line-height: .84; font-weight: 850; }
.hero h1 em { font-family: var(--font-display), serif; font-weight: 400; }
.hero-copy > p { max-width: 430px; color: #5d625d; font-size: 15px; line-height: 1.7; margin: 32px 0; }
.hero-actions { display: flex; align-items: center; gap: 28px; }
.primary-button, .pay-button, .save-button { border: 0; background: var(--ink); color: white; cursor: pointer; font-weight: 850; }
.primary-button { min-width: 215px; padding: 18px 22px; display: flex; justify-content: space-between; text-transform: uppercase; font-size: 11px; letter-spacing: .12em; }
.primary-button:hover, .pay-button:hover, .save-button:hover { background: #2b312d; }
.price-note { font-family: var(--font-display), serif; font-size: 22px; font-weight: 700; }
.price-note small { display: block; font-family: var(--font-sans); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; color: #777d77; margin-top: 3px; }

.media-stage { min-height: min(70vh, 720px); position: relative; background: #252b27; overflow: hidden; box-shadow: 24px 24px 0 var(--cream); }
.media-stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.66)); pointer-events: none; }
.media-stage img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.media-placeholder { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; background: radial-gradient(circle at 60% 30%, #525c54, #1b201c 65%); color: white; }
.media-placeholder::before { content: ""; position: absolute; inset: 12%; border: 1px solid rgba(255,255,255,.12); }
.play-symbol { width: 68px; height: 68px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); display: grid; place-items: center; margin: auto; padding-left: 4px; }
.media-placeholder p { text-transform: uppercase; letter-spacing: .18em; font-size: 10px; margin-top: 18px; }
.age-badge { position: absolute; z-index: 2; top: 18px; right: 18px; background: var(--lime); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; }
.stage-cta { position: absolute; z-index: 2; left: 24px; bottom: 24px; border: 0; background: white; padding: 13px 18px; text-transform: uppercase; font-weight: 850; font-size: 10px; letter-spacing: .12em; cursor: pointer; }
.stage-cta span { margin-right: 8px; }

.gallery-strip { display: flex; gap: 12px; padding: 24px 5vw 48px; overflow-x: auto; }
.thumb { position: relative; width: 130px; height: 86px; padding: 0; flex: 0 0 auto; border: 2px solid transparent; opacity: .55; background: #ddd; cursor: pointer; }
.thumb.active { border-color: var(--ink); opacity: 1; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb span { position: absolute; left: 6px; bottom: 5px; color: white; font-weight: 900; text-shadow: 0 1px 4px #000; font-size: 10px; }
.trust-row { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 5vw; }
.trust-row div { padding: 28px; display: flex; align-items: center; gap: 16px; border-right: 1px solid var(--line); }
.trust-row div:last-child { border: 0; }
.trust-row strong { color: #9a9f98; font-size: 10px; }
.trust-row span { font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
footer { padding: 32px 5vw; display: flex; justify-content: space-between; color: #777d77; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
footer a:hover { color: var(--ink); }

.modal-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(10, 12, 10, .78); backdrop-filter: blur(9px); display: grid; place-items: center; padding: 20px; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.payment-modal { position: relative; width: min(460px, 100%); background: var(--paper); padding: 42px; box-shadow: 12px 12px 0 var(--lime); }
.modal-close { position: absolute; top: 14px; right: 17px; background: transparent; border: 0; font-size: 25px; cursor: pointer; }
.payment-modal h2 { font-family: var(--font-display), serif; font-size: 40px; line-height: 1; letter-spacing: -.04em; margin: 14px 0; }
.payment-modal > p { font-size: 13px; color: #686d68; line-height: 1.6; }
.amount-line { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; margin: 24px 0; font-size: 12px; }
.amount-line strong { font-size: 21px; }
.payment-modal label { display: block; font-size: 10px; text-transform: uppercase; font-weight: 850; letter-spacing: .1em; margin-bottom: 8px; }
.phone-field { display: flex; align-items: center; border: 1px solid #babdb6; background: white; }
.phone-field span { padding: 0 13px; border-right: 1px solid #ddd; font-size: 13px; font-weight: 700; }
.phone-field input { min-width: 0; flex: 1; border: 0; outline: 0; padding: 15px; background: transparent; }
.pay-button { width: 100%; margin-top: 12px; padding: 16px 18px; display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .1em; }
button:disabled { opacity: .45; cursor: not-allowed; }
.payment-notice { background: #e5e8df; color: var(--ink) !important; padding: 10px 12px; font-size: 11px !important; }
.secure-note { display: block; text-align: center; color: #8a8f89; margin-top: 16px; font-size: 9px; }

/* Admin */
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 244px 1fr; background: #eeece5; }
.admin-sidebar { background: var(--ink); color: white; min-height: 100vh; position: sticky; top: 0; height: 100vh; padding: 28px 22px; display: flex; flex-direction: column; }
.admin-brand { color: white; margin-bottom: 54px; }
.admin-brand .brand-mark { background: var(--lime); color: var(--ink); }
.admin-brand small { display: block; font-size: 7px; font-weight: 500; letter-spacing: .23em; color: #929890; margin-top: 4px; }
.admin-sidebar nav { display: grid; gap: 8px; }
.admin-sidebar nav a { color: #919890; padding: 12px 14px; font-size: 11px; font-weight: 700; border-left: 2px solid transparent; }
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { color: white; border-color: var(--lime); background: rgba(255,255,255,.05); }
.admin-user { display: flex; gap: 10px; align-items: center; margin-top: auto; border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; min-width: 0; }
.admin-user > span { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 50%; background: var(--lime); color: var(--ink); font-weight: 900; }
.admin-user div { min-width: 0; }
.admin-user strong, .admin-user small { display: block; overflow: hidden; text-overflow: ellipsis; }
.admin-user strong { font-size: 10px; }
.admin-user small { font-size: 8px; color: #8d938d; margin-top: 3px; }
.signout { color: #747a74; font-size: 9px; margin: 12px 0 0 44px; }
.admin-main { padding: 38px clamp(24px, 4vw, 64px) 80px; min-width: 0; }
.admin-top { display: flex; justify-content: space-between; align-items: end; margin-bottom: 30px; }
.admin-top h1 { font-family: var(--font-display), serif; font-size: 42px; letter-spacing: -.04em; margin: 5px 0 0; }
.admin-top a { border-bottom: 1px solid var(--ink); padding-bottom: 4px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.admin-message { padding: 12px 15px; background: #dfe7d0; border-left: 3px solid #6e8e32; margin-bottom: 18px; font-size: 12px; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 22px; }
.metric-card { min-height: 172px; background: #fff; padding: 25px; border: 1px solid rgba(0,0,0,.06); }
.metric-card.dark { background: var(--ink); color: white; }
.metric-card.accent { background: var(--lime); }
.metric-card > span { font-size: 9px; letter-spacing: .16em; font-weight: 850; color: #777d77; }
.metric-card.dark > span { color: #8f968f; }
.metric-card strong { display: block; font-size: clamp(30px, 3vw, 47px); letter-spacing: -.06em; margin-top: 26px; }
.metric-card strong small { font-size: 10px; letter-spacing: .08em; margin-right: 8px; }
.metric-card p { font-size: 10px; color: #888e88; margin: 8px 0 0; }
.admin-panel { background: #fff; border: 1px solid rgba(0,0,0,.07); padding: 26px; margin-top: 18px; scroll-margin-top: 20px; }
.panel-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 23px; }
.panel-heading h2 { font-size: 22px; letter-spacing: -.03em; margin: 5px 0 0; }
.panel-heading > span { font-size: 9px; color: #737973; text-transform: uppercase; letter-spacing: .1em; }
.live-label { display: flex; gap: 7px; align-items: center; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th { text-align: left; color: #8b908b; font-size: 8px; text-transform: uppercase; letter-spacing: .15em; border-bottom: 1px solid #ddd; padding: 10px; }
td { font-size: 10px; padding: 14px 10px; border-bottom: 1px solid #eee; white-space: nowrap; }
td strong, td small { display: block; }
td small { color: #999; font-size: 8px; margin-top: 3px; }
.status { display: inline-flex; padding: 5px 8px; font-size: 8px; letter-spacing: .08em; font-weight: 850; background: #eee; }
.status.success, .status.completed { background: #dcf3c2; color: #3f6119; }
.status.pending { background: #fff0bd; color: #795b00; }
.status.failed, .status.cancelled { background: #f7d3d0; color: #7d2219; }
.empty-row { text-align: center; padding: 36px; color: #999; }
.upload-box { border: 1px dashed #a9ada5; background: #f8f7f2; padding: 18px; display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.upload-box input { flex: 1; min-width: 0; font-size: 10px; }
.upload-box button, .media-controls button { border: 1px solid var(--ink); background: var(--ink); color: white; padding: 9px 13px; font-size: 9px; font-weight: 750; cursor: pointer; }
.upload-box small { color: #8b908a; font-size: 8px; }
.media-admin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.media-admin-grid article { border: 1px solid #ddd; padding: 9px; min-width: 0; }
.media-admin-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #ddd; }
.media-admin-grid article > div:not(.media-controls) { padding: 8px 2px; min-width: 0; }
.media-admin-grid strong, .media-admin-grid span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-admin-grid strong { font-size: 10px; }
.media-admin-grid span { font-size: 8px; color: #8a8f89; margin-top: 3px; }
.media-controls { display: flex; gap: 5px; }
.media-controls button { padding: 7px 10px; }
.media-controls .delete { margin-left: auto; border-color: #c8544a; color: #9e342c; background: transparent; }
.settings-panel form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.settings-panel label { font-size: 9px; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }
.settings-panel label.full { grid-column: 1 / -1; }
.settings-panel input, .settings-panel textarea { display: block; width: 100%; margin-top: 7px; border: 1px solid #c8cbc5; padding: 12px; background: #fbfaf7; outline: 0; font-size: 12px; text-transform: none; letter-spacing: normal; }
.settings-panel input:focus, .settings-panel textarea:focus { border-color: var(--ink); }
.save-button { justify-self: start; padding: 14px 20px; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.access-page { min-height: 100vh; display: grid; place-content: center; justify-items: center; text-align: center; padding: 30px; }
.access-page h1 { font-family: var(--font-display), serif; font-size: 44px; margin: 18px 0 8px; }
.access-page p { max-width: 500px; color: #6e746e; }
.access-page a { border-bottom: 1px solid; margin-top: 12px; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr 1fr; gap: 30px; }
  .hero h1 { font-size: clamp(48px, 7vw, 74px); }
  .admin-shell { grid-template-columns: 74px 1fr; }
  .admin-sidebar { padding: 24px 13px; align-items: center; }
  .admin-brand > span:last-child, .admin-sidebar nav a, .admin-user div, .signout { font-size: 0; }
  .admin-brand { margin-bottom: 40px; }
  .admin-sidebar nav a { width: 42px; height: 42px; padding: 0; border: 0; display: grid; place-items: center; }
  .admin-sidebar nav a::first-letter { font-size: 12px; }
  .admin-user { padding-top: 16px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-card:last-child { grid-column: 1 / -1; }
  .media-admin-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .customer-header { height: 70px; padding: 0 20px; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding: 55px 20px 65px; gap: 44px; }
  .hero h1 { font-size: clamp(52px, 17vw, 78px); }
  .hero-copy > p { margin: 25px 0; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 16px; }
  .primary-button { width: 100%; }
  .media-stage { min-height: 64vh; box-shadow: 12px 12px 0 var(--cream); }
  .trust-row { grid-template-columns: 1fr; margin: 0 20px; }
  .trust-row div { border-right: 0; border-bottom: 1px solid var(--line); padding: 20px 8px; }
  .payment-modal { padding: 34px 24px; box-shadow: 7px 7px 0 var(--lime); }
  .payment-modal h2 { font-size: 34px; }
  .admin-shell { display: block; }
  .admin-sidebar { position: static; height: auto; min-height: 0; padding: 14px 18px; flex-direction: row; justify-content: space-between; }
  .admin-brand { margin: 0; }
  .admin-sidebar nav, .admin-user, .signout { display: none; }
  .admin-main { padding: 28px 15px 60px; }
  .admin-top { align-items: start; gap: 20px; }
  .admin-top h1 { font-size: 34px; }
  .admin-top a { max-width: 95px; line-height: 1.5; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric-card:last-child { grid-column: auto; }
  .admin-panel { padding: 18px 14px; }
  .upload-box { align-items: stretch; flex-direction: column; }
  .media-admin-grid { grid-template-columns: 1fr; }
  .settings-panel form { grid-template-columns: 1fr; }
  .settings-panel label.full { grid-column: auto; }
}
