:root {
  --bg: #07110f;
  --panel: rgba(14, 29, 25, .82);
  --panel-solid: #0e1d19;
  --line: rgba(173, 255, 220, .13);
  --text: #ecfff7;
  --muted: #93aaa2;
  --green: #4cf0a4;
  --green-deep: #153f30;
  --red: #ff7e87;
  --shadow: 0 24px 80px rgba(0, 0, 0, .34);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 48% -10%, rgba(57, 199, 138, .12), transparent 34%),
    linear-gradient(180deg, #081310 0%, #06100e 100%);
  font: 15px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

button, input { font: inherit; }
button { color: inherit; }
.hidden { display: none !important; }
.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; }

.ambient { position: fixed; pointer-events: none; border-radius: 50%; filter: blur(100px); opacity: .18; }
.ambient-one { width: 380px; height: 380px; background: #25ef9a; left: -240px; top: 20%; }
.ambient-two { width: 420px; height: 420px; background: #087b54; right: -280px; bottom: -80px; }

.shell { position: relative; width: min(1120px, calc(100% - 36px)); margin: 0 auto; padding: 30px 0 70px; }
.masthead { display: flex; align-items: center; justify-content: space-between; min-height: 48px; margin-bottom: 58px; }
.brand { display: inline-flex; gap: 12px; align-items: center; color: var(--text); text-decoration: none; font-weight: 720; letter-spacing: -.02em; font-size: 17px; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid rgba(76, 240, 164, .48); border-radius: 9px; background: rgba(76, 240, 164, .08); box-shadow: inset 0 0 16px rgba(76, 240, 164, .08); }
.brand-mark span { width: 10px; height: 10px; border: 2px solid var(--green); border-radius: 50%; box-shadow: 0 0 10px rgba(76, 240, 164, .65); }
.session-actions { display: flex; align-items: center; gap: 12px; }
.private-badge { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.private-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 9px var(--green); }

h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 14px; max-width: 760px; font-size: clamp(35px, 5vw, 59px); line-height: 1.02; letter-spacing: -.055em; font-weight: 660; }
h2 { margin: 0; font-size: 18px; letter-spacing: -.025em; font-weight: 650; }
.eyebrow { margin-bottom: 14px; color: var(--green); text-transform: uppercase; letter-spacing: .15em; font-weight: 720; font-size: 11px; }
.lede { max-width: 680px; margin-bottom: 0; color: var(--muted); font-size: 16px; }

.center-card { width: min(460px, 100%); margin: 9vh auto 0; }
.auth-card { padding: 34px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.auth-card h1 { font-size: 38px; }
.auth-card .lede { margin-bottom: 28px; }
.stack { display: grid; gap: 16px; }
label { display: grid; gap: 7px; color: #c8d9d3; font-size: 13px; font-weight: 580; }
input[type="text"], input[type="password"], input[type="url"] {
  width: 100%; min-height: 48px; padding: 0 14px; color: var(--text); background: rgba(2, 10, 8, .65); border: 1px solid rgba(183, 255, 224, .16); border-radius: 10px; outline: none; transition: border .18s, box-shadow .18s;
}
input:focus { border-color: rgba(76, 240, 164, .65); box-shadow: 0 0 0 3px rgba(76, 240, 164, .09); }
input::placeholder { color: #5f756d; }

.button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 42px; padding: 0 17px; border: 1px solid transparent; border-radius: 10px; cursor: pointer; font-weight: 650; font-size: 13px; transition: transform .16s, opacity .16s, border .16s, background .16s; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .42; }
.button-primary, .button-launch { color: #032016; background: var(--green); box-shadow: 0 10px 30px rgba(76, 240, 164, .15); }
.button-primary { margin-top: 5px; min-height: 48px; }
.button-secondary { border-color: rgba(76, 240, 164, .3); color: #baffdd; background: rgba(76, 240, 164, .08); }
.button-quiet { min-height: 34px; border-color: var(--line); color: var(--muted); background: transparent; }
.button-danger { border-color: rgba(255, 126, 135, .25); color: #ffb3b9; background: rgba(255, 126, 135, .06); }
.full { width: 100%; }

.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 38px; margin: 0 0 52px; }
.button-launch { flex: 0 0 auto; min-height: 52px; padding: 0 23px; font-size: 14px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.panel { padding: 25px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); box-shadow: 0 15px 45px rgba(0, 0, 0, .16); backdrop-filter: blur(18px); }
.panel-wide { grid-column: 1 / -1; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 14px; }
.panel-heading > div { display: flex; align-items: center; gap: 12px; }
.step { display: grid; place-items: center; width: 31px; height: 25px; color: var(--green); border: 1px solid rgba(76, 240, 164, .22); border-radius: 7px; background: rgba(76, 240, 164, .05); font: 680 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.status { color: var(--muted); font-size: 12px; }
.status.good { color: var(--green); }
.panel-copy { max-width: 750px; margin-bottom: 20px; color: var(--muted); font-size: 13px; }
.panel-copy code { color: #c5eadb; }
.inline-form { display: flex; align-items: end; gap: 10px; }
.grow { flex: 1; }

.upload-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: stretch; }
.file-picker { display: flex; align-items: center; gap: 13px; min-height: 62px; padding: 9px 14px; border: 1px dashed rgba(183, 255, 224, .2); border-radius: 10px; background: rgba(2, 10, 8, .38); cursor: pointer; }
.file-picker:hover { border-color: rgba(76, 240, 164, .5); }
.file-picker input { position: absolute; opacity: 0; pointer-events: none; }
.file-picker strong, .file-picker small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-picker strong { max-width: 480px; color: #dcede6; font-size: 13px; }
.file-picker small { margin-top: 2px; color: #6f867d; font-weight: 450; font-size: 11px; }
.file-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 9px; color: var(--green); background: rgba(76, 240, 164, .08); font-size: 17px; }

.summary { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.metrics div { padding: 12px 14px; border-radius: 10px; background: rgba(2, 10, 8, .38); }
.metrics strong, .metrics span { display: block; }
.metrics strong { font-size: 21px; font-weight: 620; }
.metrics span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.expiry { margin: 12px 0; color: var(--muted); font-size: 11px; }
.domain-list { display: flex; flex-wrap: wrap; gap: 7px; }
.domain-pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 100px; color: #a9bbb4; font: 11px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; }
.domain-pill.match { border-color: rgba(76, 240, 164, .25); color: #baffdd; background: rgba(76, 240, 164, .05); }
.domain-pill i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.privacy-note { display: flex; align-items: center; gap: 9px; padding: 13px; border-radius: 10px; color: #a7c8bc; background: rgba(76, 240, 164, .05); font-size: 12px; }
.privacy-note span { color: var(--green); font-size: 8px; }
.test-result { margin-top: 12px; padding: 11px 13px; border-radius: 9px; background: rgba(76, 240, 164, .06); color: #baffdd; font-size: 12px; }
.test-result.bad { color: #ffc1c6; background: rgba(255, 126, 135, .07); }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 20; transform: translateX(-50%); max-width: min(520px, calc(100% - 32px)); padding: 11px 16px; border: 1px solid rgba(76, 240, 164, .25); border-radius: 10px; color: #dffff0; background: #10271f; box-shadow: var(--shadow); font-size: 13px; }
.toast.error { border-color: rgba(255, 126, 135, .32); color: #ffd7da; background: #2b1518; }
.loader { width: 28px; height: 28px; margin: 0 auto 14px; border: 2px solid rgba(76, 240, 164, .16); border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
#loading-view p { margin: 0; color: var(--muted); text-align: center; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 760px) {
  .shell { width: min(100% - 24px, 1120px); padding-top: 18px; }
  .masthead { margin-bottom: 40px; }
  .private-badge { display: none; }
  .hero { display: block; margin-bottom: 34px; }
  .hero .button-launch { width: 100%; margin-top: 24px; }
  .grid { grid-template-columns: 1fr; }
  .panel-wide { grid-column: auto; }
  .inline-form, .upload-row { display: grid; grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .file-picker strong { max-width: 210px; }
  .auth-card { padding: 25px; }
}
