:root {
  --navy: #071b2b;
  --navy-soft: #10283a;
  --gold: #cca65b;
  --gold-dark: #b89045;
  --ivory: #f7f3e8;
  --white: #ffffff;
  --slate: #667085;
  --ink: #0d2030;
  --line: #c8c9c8;
  --danger: #8c2e2e;
  --shadow: 0 22px 60px rgba(7, 27, 43, .13);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--ivory); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
a { color: inherit; }
.shell { width: min(1120px, calc(100% - 36px)); margin: 0 auto; }

.topbar { min-height: 116px; display: flex; align-items: center; justify-content: space-between; gap: 22px; border-bottom: 1px solid rgba(7,27,43,.14); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--navy); text-decoration: none; }
.door { width: 34px; height: 58px; position: relative; border: 2px solid var(--gold); box-shadow: inset 0 0 0 5px var(--white); background: var(--ivory); }
.door::after { content: ""; position: absolute; right: 5px; top: 50%; width: 3px; height: 3px; border-radius: 50%; background: var(--gold); }
.wordmark { font-family: Georgia, "Times New Roman", serif; font-size: 42px; line-height: .82; font-weight: 700; }
.wordmark small { display: block; margin-top: 11px; color: var(--gold); font: 800 13px/1 Inter, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.secure-tag { padding: 10px 13px; color: var(--gold); border: 1px solid rgba(204,166,91,.5); border-radius: 999px; background: var(--navy); font-size: 12px; font-weight: 800; letter-spacing: .04em; }

.hero { padding: 70px 0; }
.hero-grid { display: grid; grid-template-columns: 1.06fr .94fr; align-items: center; gap: 48px; }
.eyebrow { margin: 0 0 16px; color: var(--gold-dark); font-size: 13px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
h1, h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 700; letter-spacing: -.035em; }
h1 { max-width: 800px; color: var(--navy); font-size: clamp(46px, 7vw, 76px); line-height: 1.02; }
h2 { color: var(--navy); font-size: clamp(34px, 5vw, 51px); line-height: 1.06; }
h3 { margin: 0; color: var(--navy); font-size: 19px; }
.lede { max-width: 670px; margin: 22px 0 0; color: var(--slate); font-size: 18px; line-height: 1.65; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 29px; }
.button { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 21px; border: 0; border-radius: 10px; color: var(--white); background: var(--navy); box-shadow: 0 10px 25px rgba(7,27,43,.18); text-decoration: none; font-weight: 850; cursor: pointer; transition: transform .18s, background .18s; }
.button:hover { transform: translateY(-1px); background: var(--navy-soft); }
.button.gold { color: var(--navy); background: var(--gold); }
.button.gold:hover { background: var(--gold-dark); }
.button.outline { color: var(--navy); background: var(--white); border: 2px solid var(--line); box-shadow: none; }
.button.small { min-height: 42px; padding: 9px 14px; font-size: 13px; }
.button.block { width: 100%; }

.feature-card { padding: 34px; color: var(--white); background: var(--navy); border-radius: var(--radius); box-shadow: var(--shadow); }
.feature-card .eyebrow { color: var(--gold); }
.feature-card h2 { color: var(--white); }
.feature-card p { color: #d7dde1; line-height: 1.6; }
.code-box { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 25px; padding: 15px; color: var(--navy); background: var(--white); border-radius: 10px; }
.code-box span { display: block; color: var(--slate); font-size: 11px; }
.code-box strong { display: block; margin-top: 4px; letter-spacing: .07em; }
.reward { margin: 22px 0 4px; color: var(--gold); font-family: Georgia, serif; font-size: 58px; line-height: 1; }

.section { padding: 65px 0 82px; }
.section.navy { color: var(--white); background: var(--navy); }
.section.navy h2, .section.navy h3 { color: var(--white); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 27px; }
.section-head p { max-width: 520px; margin: 0; color: var(--slate); line-height: 1.6; }
.section.navy .section-head p { color: #d7dde1; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.partner-grid { grid-template-columns: repeat(6, 1fr); }
.partner-grid .path-card { grid-column: span 2; }
.partner-grid .path-card.primary { grid-column: span 3; }
.path-card { min-height: 245px; display: flex; flex-direction: column; padding: 25px; border: 1.5px solid var(--line); border-radius: 20px; background: var(--white); }
.path-card .number { width: 44px; height: 44px; display: grid; place-items: center; color: var(--navy); background: var(--gold); border-radius: 50%; font-weight: 900; }
.path-card h3 { margin-top: 24px; }
.path-card p { flex: 1; color: var(--slate); line-height: 1.55; }
.text-link { color: var(--navy); font-weight: 850; text-decoration: none; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.code-entry-section { padding-top: 0; padding-bottom: 0; }
.code-entry-card { padding: 36px; border: 1.5px dashed var(--gold); border-radius: var(--radius); background: var(--ivory); text-align: center; }
.code-entry-card h2 { font-size: clamp(26px, 4vw, 36px); }
.code-entry-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 22px auto 0; max-width: 480px; }
.code-entry-row input { flex: 1; min-width: 220px; min-height: 54px; padding: 12px 16px; color: var(--ink); border: 1.5px solid var(--line); border-radius: 9px; background: var(--white); outline: none; text-transform: uppercase; letter-spacing: .04em; }
.code-entry-row input:focus { border-color: var(--gold-dark); box-shadow: 0 0 0 4px rgba(204,166,91,.18); }
.code-edit-toggle { margin-top: 10px; background: none; border: 0; padding: 0; color: var(--navy); font-weight: 800; font-size: 13px; text-decoration: underline; cursor: pointer; }
.code-edit-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.code-edit-row input { flex: 1; min-width: 160px; min-height: 46px; padding: 10px 14px; color: var(--ink); border: 1.5px solid var(--line); border-radius: 9px; background: var(--white); outline: none; text-transform: uppercase; }

.mini-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mini-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 14px; display: block; }
.package-card { min-height: 210px; }
.package-card .price-tag { display: inline-block; margin-bottom: 10px; padding: 4px 10px; border-radius: 999px; background: var(--ivory); color: var(--gold-dark); font-size: 11px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid rgba(255,255,255,.2); border-radius: 18px; overflow: hidden; }
.step { min-height: 130px; padding: 22px; border-right: 1px solid rgba(255,255,255,.2); }
.step:last-child { border-right: 0; }
.step strong { color: var(--gold); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.step span { display: block; margin-top: 9px; font-weight: 750; line-height: 1.4; }

.form-wrap { width: min(700px, 100%); margin: 0 auto; padding: 40px 0 100px; }
.form-head { margin-bottom: 24px; }
.form-head h1 { font-size: clamp(42px, 7vw, 62px); }
.form-card { padding: 29px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.source-bar { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 24px; padding: 15px 16px; color: var(--white); background: var(--navy); border-radius: 11px; }
.source-bar small { color: #cbd4da; }
.source-bar strong { color: var(--gold); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label, .field-label { display: block; margin-bottom: 8px; color: var(--navy); font-size: 13px; font-weight: 850; }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 14px; color: var(--ink); border: 1.5px solid var(--line); border-radius: 9px; background: var(--white); outline: none; }
.field textarea { min-height: 108px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold-dark); box-shadow: 0 0 0 4px rgba(204,166,91,.18); }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { min-height: 50px; display: grid; place-items: center; padding: 9px; color: var(--slate); border: 1.5px solid var(--line); border-radius: 9px; font-size: 14px; font-weight: 750; text-align: center; cursor: pointer; }
.choice input:checked + span { color: var(--navy); border-color: var(--gold-dark); background: rgba(204,166,91,.22); box-shadow: inset 0 0 0 1px var(--gold-dark); }
.check-row { display: flex; align-items: flex-start; gap: 10px; margin: 7px 0 20px; color: var(--slate); font-size: 13px; line-height: 1.45; }
.check-row input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--navy); }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.notice { display: none; margin: 0 0 16px; padding: 12px 14px; border-radius: 8px; font-size: 13px; line-height: 1.45; }
.notice.error { display: block; color: var(--danger); background: #fff0f0; }
.notice.info { display: block; color: var(--navy); background: rgba(204,166,91,.18); }
.notice.success { display: block; color: #165b3a; background: #e8f7ef; }
.fine { margin: 13px 0 0; color: #7c858d; font-size: 11px; line-height: 1.5; text-align: center; }
.optional { color: var(--slate); font-weight: 600; }
.upload-box { padding: 17px; border: 1.5px dashed var(--gold-dark); border-radius: 12px; background: rgba(204,166,91,.08); }
.upload-box input[type="file"] { padding: 10px; background: var(--white); }
.upload-box .fine { margin: 8px 0 0; text-align: left; }
.photo-list { margin-top: 8px; color: var(--navy); font-size: 13px; font-weight: 750; }
.error-text { color: var(--danger); }
.partner-cta { box-shadow: 0 8px 24px rgba(204,166,91,.3); }

.confirm-card, .login-card { width: min(620px, 100%); margin: 55px auto 90px; padding: 36px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); text-align: center; }
.checkmark { width: 72px; height: 72px; display: grid; place-items: center; margin: 0 auto 22px; color: var(--navy); background: var(--gold); border-radius: 50%; font-size: 34px; font-weight: 900; }
.confirm-card h1, .login-card h1 { font-size: clamp(40px, 7vw, 55px); }
.receipt { margin: 25px 0; padding: 16px; color: var(--white); background: var(--navy); border-radius: 12px; text-align: left; }
.receipt-row { display: flex; justify-content: space-between; gap: 15px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.15); font-size: 13px; }
.receipt-row:last-child { border-bottom: 0; }
.receipt-row span { color: #cbd4da; }
.receipt-row strong { color: var(--gold); }

.dashboard { padding: 38px 0 95px; }
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 24px; }
.dash-head h1 { font-size: clamp(40px, 6vw, 60px); }
.dash-head p { margin: 8px 0 0; color: var(--slate); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 18px; }
.stat { padding: 18px; color: var(--white); background: var(--navy); border-radius: 14px; }
.stat span { color: #cbd4da; font-size: 12px; }
.stat strong { display: block; margin-top: 6px; color: var(--gold); font-family: Georgia, serif; font-size: 34px; }
.reward-banner { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; padding: 20px 22px; color: var(--white); background: linear-gradient(125deg, var(--navy), #12364f); border: 1px solid rgba(204,166,91,.55); border-radius: 15px; }
.reward-banner span { color: #d7dde1; font-weight: 750; }
.reward-banner strong { color: var(--gold); font-family: Georgia, serif; font-size: clamp(30px,5vw,44px); }
.reward-stats { margin-bottom: 24px; }
.reward-state { display: inline-block; margin-top: 5px; padding: 4px 7px; color: var(--navy); background: rgba(204,166,91,.22); border-radius: 999px; font-size: 11px; font-weight: 850; }
.photo-links { display: flex; flex-wrap: wrap; gap: 5px; }
.photo-link { color: var(--navy); font-weight: 800; }
.paid-button { margin-top: 7px; padding: 7px 9px; border: 0; border-radius: 7px; color: var(--navy); background: var(--gold); font-weight: 850; cursor: pointer; }
.payout-card { margin-top: 20px; overflow: hidden; border: 1.5px solid var(--line); border-radius: 17px; background: var(--white); }
.payout-card h2 { padding: 18px 20px 0; font-size: 26px; }

.muted { color: var(--soft); }
.app-status { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.app-status.new { background: rgba(204,166,91,.18); color: var(--gold-dark); }
.app-status.approved { background: rgba(46,125,50,.14); color: #2e7d32; }
.app-status.declined { background: rgba(7,27,43,.08); color: var(--soft); }
.app-panel { padding: 16px; margin: 8px 0; background: var(--ivory); border: 1.5px dashed var(--gold); border-radius: 10px; display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr) auto auto; align-items: end; }
.app-panel label { display: block; font-size: 11px; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.app-panel input, .app-panel select { width: 100%; min-height: 42px; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--white); }
.qr-modal { position: fixed; inset: 0; z-index: 200; background: rgba(7,27,43,.55); display: flex; align-items: center; justify-content: center; padding: 20px; }
.qr-modal-card { background: #fff; border-radius: 14px; padding: 24px; max-width: 420px; width: 100%; text-align: center; }
.qr-modal-card img { width: 100%; max-width: 320px; border: 1px solid var(--line); border-radius: 8px; margin: 10px 0; }
.qr-link-row { display: flex; gap: 8px; margin-top: 10px; }
.qr-link-row input { flex: 1; min-height: 42px; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--ivory); font-size: 12px; }

@media (max-width: 900px) {
  .app-panel { grid-template-columns: 1fr; }
}
.table-card { overflow: hidden; border: 1.5px solid var(--line); border-radius: 17px; background: var(--white); box-shadow: 0 10px 32px rgba(7,27,43,.07); }
.table-toolbar { display: flex; justify-content: space-between; gap: 12px; padding: 16px; border-bottom: 1px solid var(--line); }
.search { width: min(390px,100%); min-height: 44px; padding: 10px 13px; border: 1.5px solid var(--line); border-radius: 8px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; min-width: 800px; border-collapse: collapse; }
th, td { padding: 15px 16px; border-bottom: 1px solid #e8e8e4; text-align: left; font-size: 13px; vertical-align: middle; }
th { color: var(--gold); background: var(--navy); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.person strong { display: block; color: var(--navy); }
.person span, td small { display: block; margin-top: 3px; color: var(--slate); font-size: 11px; }
.status-select { min-height: 39px; padding: 7px 10px; color: var(--navy); border: 1.5px solid var(--line); border-radius: 8px; background: var(--white); font-weight: 750; }
.empty { padding: 55px 24px; color: var(--slate); text-align: center; }
.loading { padding: 40px; color: var(--slate); text-align: center; }
.mobile-cta { display: none; }
.toast { position: fixed; z-index: 9; left: 50%; bottom: 24px; transform: translate(-50%, 18px); padding: 12px 16px; color: var(--white); background: var(--navy); border-radius: 8px; opacity: 0; pointer-events: none; transition: .2s; }
.toast.show { opacity: 1; transform: translate(-50%,0); }

@media (max-width: 820px) {
  .hero { padding: 42px 0; }
  .hero-grid, .cards { grid-template-columns: 1fr; }
  .mini-gallery { grid-template-columns: repeat(2, 1fr); }
  .partner-grid .path-card, .partner-grid .path-card.primary { grid-column: auto; }
  .section-head, .dash-head { align-items: flex-start; flex-direction: column; }
  .stats { grid-template-columns: 1fr 1fr; }
  .reward-banner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 580px) {
  .shell { width: min(100% - 24px, 1120px); }
  .topbar { min-height: 92px; }
  .door { width: 26px; height: 46px; }
  .wordmark { font-size: 32px; }
  .wordmark small { font-size: 10px; }
  .secure-tag { font-size: 9px; }
  .hero { padding: 30px 0 34px; }
  h1 { font-size: 45px; }
  .lede { font-size: 16px; }
  .actions .button { width: 100%; }
  .feature-card, .form-card { padding: 20px; }
  .section { padding: 44px 0 92px; }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: auto; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.2); }
  .step:last-child { border-bottom: 0; }
  .form-wrap { padding-top: 20px; }
  .field-grid { grid-template-columns: 1fr; gap: 0; }
  .source-bar { align-items: flex-start; flex-direction: column; }
  .confirm-card, .login-card { margin-top: 24px; padding: 27px 20px; }
  .receipt-row { align-items: flex-start; flex-direction: column; gap: 4px; }
  .table-toolbar { align-items: stretch; flex-direction: column; }
  .mobile-cta { position: fixed; z-index: 8; right: 0; bottom: 0; left: 0; display: block; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); backdrop-filter: blur(10px); }
  .mobile-cta .button { width: 100%; }
}
.qr-modal[hidden] { display: none; }
