/* Download page + admin panel. Builds on app.css (same tokens as the app). */
body { overflow: auto; user-select: text; min-height: 100vh; background:
  repeating-linear-gradient(125deg, rgba(255,255,255,.011) 0 1px, transparent 1px 34px),
  radial-gradient(1100px 520px at 75% -8%, rgba(33,134,220,.12), transparent 60%),
  var(--bg-main); }
.top-hatch { position: fixed; top: 0; left: 0; right: 0; height: 10px; z-index: 5; background: repeating-linear-gradient(-55deg, rgba(54,169,247,.42) 0 7px, transparent 7px 15px); -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 40%, transparent 85%); mask-image: linear-gradient(90deg, #000 0%, #000 40%, transparent 85%); }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.site-head { display: flex; align-items: center; justify-content: space-between; padding: 26px 0 10px; }
.site-head .brand { height: auto; margin: 0; padding: 0; }
.site-head .brand-word { font-size: 38px; }
.site-head .brand-script { font-size: 32px; }
.site-nav { display: flex; gap: 6px; }
.site-nav a { padding: 8px 12px; border-radius: 6px; color: var(--text-2); text-decoration: none; font-weight: 600; }
.site-nav a:hover { background: #15212c; color: #fff; }

.hero2 { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center; padding: 46px 0 40px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border-radius: 999px; background: rgba(54,169,247,.1); border: 1px solid rgba(54,169,247,.3); color: #8fd0fb; font-size: 14px; font-weight: 600; }
.hero2 h1 { margin: 18px 0 12px; font-size: clamp(36px, 5vw, 56px); line-height: 1; letter-spacing: -.5px; }
.hero2 h1 span { background: linear-gradient(180deg, #9be0ff, #2a9df4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero2 p.lead { margin: 0 0 24px; color: var(--text-2); font-size: 18px; line-height: 1.5; max-width: 520px; }
.dl-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.btn-xl { height: 54px; padding: 0 26px; font-size: 19px; border-radius: 8px; text-decoration: none; }
.dl-meta { color: var(--muted); font-size: 14px; line-height: 1.5; }
.dl-meta b { color: var(--text-2); }
.shot { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid #22405c; box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 60px rgba(54,169,247,.12); }
.shot img { display: block; width: 100%; height: auto; }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 10px 0 30px; }
.feature { padding: 18px; border-radius: 10px; background: rgba(21,32,43,.92); border: 1px solid var(--line); }
.feature .stat-ic { margin-bottom: 12px; }
.feature h3 { margin: 0 0 6px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); line-height: 1.45; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-bottom: 30px; }
.step { display: flex; gap: 14px; padding: 18px; border-radius: 10px; background: rgba(21,32,43,.92); border: 1px solid var(--line); }
.step .num { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: linear-gradient(180deg, #3aaefa, #2186dc); color: #fff; font-weight: 700; font-size: 18px; flex: none; }
.step h3 { margin: 2px 0 4px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); line-height: 1.45; font-size: 14.5px; }
.h2 { display: flex; align-items: center; gap: 9px; margin: 18px 0 14px; font-size: 22px; }
.h2 .ic { color: var(--blue); }
.checksum { margin: 0 0 40px; padding: 14px 16px; border-radius: 10px; background: rgba(21,32,43,.92); border: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-foot { padding: 22px 0 34px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; }

/* admin */
.admin-login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card { width: min(420px, 100%); padding: 28px; border-radius: 12px; background: #131f2a; border: 1px solid #27394a; box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.login-card .brand { margin: 0 0 6px; padding: 0; height: auto; }
.field { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.field span { color: var(--muted); font-size: 14px; font-weight: 600; }
.input, select.input { height: 42px; padding: 0 12px; border-radius: 8px; background: #15212c; border: 1px solid #22323f; color: var(--text); font-size: 16px; outline: 0; }
.input:focus { border-color: #2f6fa6; }
.form-err { margin-top: 12px; color: #ff9aa4; min-height: 20px; }
.admin-shell { padding: 24px 0 50px; }
.admin-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.stats6 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.create { display: grid; grid-template-columns: 110px 170px 120px 1fr auto; gap: 10px; align-items: end; }
.created { margin-top: 14px; padding: 12px; border-radius: 8px; background: #0f1922; border: 1px dashed #2c4157; }
.created pre { margin: 0 0 10px; white-space: pre-wrap; font-family: Consolas, monospace; font-size: 14px; color: #bfe3fb; user-select: all; }
table.keys { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
table.keys th { text-align: left; padding: 0 12px; color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
table.keys td { padding: 10px 12px; background: rgba(21,32,43,.92); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); vertical-align: top; }
table.keys td:first-child { border-left: 1px solid var(--line); border-radius: 8px 0 0 8px; }
table.keys td:last-child { border-right: 1px solid var(--line); border-radius: 0 8px 8px 0; }
.keycell { font-family: Consolas, monospace; font-size: 14px; color: #fff; cursor: copy; white-space: nowrap; }
.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 5px; font-size: 12.5px; font-weight: 700; }
.pill.active { background: rgba(67,209,122,.14); color: var(--green); }
.pill.unused { background: rgba(54,169,247,.12); color: #7cc8fb; }
.pill.revoked { background: rgba(255,95,109,.12); color: #ff9aa4; }
.pill.expired { background: rgba(239,176,58,.12); color: var(--amber); }
.dev { color: var(--muted); font-size: 13px; margin-top: 4px; }
.dev button { color: #ff9aa4; font-size: 12px; margin-left: 6px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.events { display: flex; flex-direction: column; gap: 5px; max-height: 360px; overflow: auto; }
.event { display: flex; gap: 10px; padding: 7px 12px; border-radius: 6px; background: rgba(21,32,43,.8); border: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.event b { color: #fff; }
.event time { margin-left: auto; color: var(--dim); white-space: nowrap; }

@media (max-width: 900px) {
  .hero2, .features, .steps { grid-template-columns: 1fr; }
  .stats6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .create { grid-template-columns: 1fr 1fr; }
  table.keys, table.keys tbody, table.keys tr, table.keys td { display: block; }
  table.keys thead { display: none; }
  table.keys td { border: 1px solid var(--line) !important; border-radius: 0 !important; }
  table.keys tr { margin-bottom: 8px; }
  .row-actions { justify-content: flex-start; }
}
