:root {
  --main-color: #ff0000;
  --accent: #ff3030;
  --accent-soft: rgba(255, 0, 0, 0.14);
  --background: #070707;
  --background-2: #0f0f0f;
  --surface: #151515;
  --surface-2: #1c1c1c;
  --surface-hover: #242424;
  --border: rgba(255, 72, 72, 0.28);
  --border-soft: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.68);
  --text-faint: rgba(255, 255, 255, 0.46);
  --shadow-red: 0 0 26px rgba(255, 0, 0, 0.24);
  --radius: 10px;
  --radius-lg: 18px;
  --content-width: 780px;
  --font: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% -10%, rgba(255, 0, 0, 0.17), transparent 28rem),
    radial-gradient(circle at 90% 5%, rgba(255, 48, 48, 0.09), transparent 22rem),
    var(--background);
  color: var(--text);
  font-family: var(--font);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  transform: translateY(-160%);
  background: var(--accent);
  color: #000;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 800;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding: 14px clamp(16px, 3vw, 42px);
  background: rgba(12, 8, 9, 0.76);
  border-bottom: 1px solid var(--border-soft);
  backdrop-filter: blur(18px) saturate(140%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  background: #050505;
  overflow: hidden;
  box-shadow: var(--shadow-red);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  line-height: 1;
  font-size: 15px;
}

.brand small {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(18, 10, 12, 0.48);
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.14);
}

.site-nav a,
.menu-button,
.button {
  border: 1.5px solid transparent;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 18px;
  background: transparent;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active,
.menu-button:hover,
.button:hover {
  color: var(--accent);
  border-color: var(--accent);
  text-shadow: 0 0 10px rgba(255, 0, 0, 0.6);
}

.menu-button {
  display: none;
  border-color: var(--border);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 48px clamp(16px, 3vw, 42px) 0;
  padding: 28px 0 36px;
  border-top: 1px solid var(--border-soft);
  color: var(--text-muted);
}

.footer strong {
  color: var(--text);
}

.footer p {
  margin: 8px 0 0;
  max-width: 560px;
}

.footer span {
  color: #9cffb0;
  white-space: nowrap;
}

.dash-auth-nav,
.nav-logout { display: flex; align-items: center; gap: 10px; }
.mobile-auth { display: none; }
.dash-auth-nav a, .dash-auth-nav button, .nav-logout button {
  border: 1px solid var(--border); border-radius: 999px; background: rgba(255, 0, 0, .08); color: var(--text); padding: 8px 13px; font-size: 12px; font-weight: 800; text-decoration: none;
}
.dash-auth-nav button, .nav-logout button { background: transparent; }
.dash-auth-nav a:hover, .dash-auth-nav button:hover, .nav-logout button:hover { border-color: var(--accent); box-shadow: var(--shadow-red); color: var(--accent); }

.login-page, .guide-flow-page { min-height: 100vh; overflow: hidden; background: #060606; }
.login-page .standalone-main, .guide-flow-page .standalone-main { min-height: 100vh; position: relative; isolation: isolate; display: grid; place-items: center; padding: 28px 18px; overflow: hidden; }
.login-aurora { position: absolute; z-index: -2; width: min(65vw, 760px); aspect-ratio: 1; border-radius: 50%; filter: blur(32px); opacity: .55; background: radial-gradient(circle, rgba(255, 20, 20, .32), rgba(150, 0, 0, .13) 32%, transparent 68%); animation: aurora-drift 12s ease-in-out infinite alternate; }
.login-aurora-one { top: -30%; left: -18%; }.login-aurora-two { right: -22%; bottom: -40%; animation-delay: -6s; }
.login-meteors { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }.login-meteors i { position: absolute; width: 150px; height: 1px; opacity: .5; background: linear-gradient(90deg, transparent, #ff3d3d, transparent); transform: rotate(-36deg); animation: meteor 7s linear infinite; }.login-meteors i:nth-child(1){top:12%;left:-20%;}.login-meteors i:nth-child(2){top:32%;left:32%;animation-delay:-3s}.login-meteors i:nth-child(3){top:68%;left:-10%;animation-delay:-5s}.login-meteors i:nth-child(4){top:80%;left:50%;animation-delay:-1s}
.license-login { width: min(100%, 460px); animation: card-enter .65s cubic-bezier(.2,.8,.2,1) both; }
.license-card, .guide-flow-card { position: relative; border: 1px solid rgba(255, 74, 74, .28); border-radius: 22px; background: linear-gradient(145deg, rgba(29, 18, 19, .9), rgba(9, 9, 9, .94)); box-shadow: 0 22px 72px rgba(0,0,0,.58), 0 0 46px rgba(255,0,0,.14), inset 0 1px rgba(255,255,255,.05); backdrop-filter: blur(18px); }
.license-card { padding: clamp(30px, 6vw, 48px); text-align: center; }.license-card::before, .guide-flow-card::before { content:""; position:absolute; inset:0; border-radius:inherit; padding:1px; background:linear-gradient(125deg, rgba(255,80,80,.65), transparent 30%, transparent 70%, rgba(255,0,0,.35)); mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0); mask-composite:exclude; pointer-events:none; }
.license-logo { width: 66px; aspect-ratio: 1; margin: 0 auto 20px; border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 80, 80, .55), 0 0 28px rgba(255,0,0,.38); }.license-logo img { width:100%; height:100%; object-fit:cover; }
.license-eyebrow { margin: 0 0 9px; color: #ff6b6b; letter-spacing: .15em; text-transform: uppercase; font-weight: 800; font-size: 10px; }.license-card h1, .guide-flow-card h1 { margin: 0; font-size: clamp(27px, 5vw, 36px); letter-spacing: -.055em; }.license-subtitle, .guide-flow-card > p { margin: 14px 0 26px; color: var(--text-muted); line-height: 1.65; font-size: 14px; }
.license-form { text-align:left; }.license-form label { display:block; font-size:12px; color:var(--text-muted); font-weight:800; margin: 0 0 9px; }.license-input-wrap { position:relative; }.license-input-wrap::after { content:""; position:absolute; inset:0; pointer-events:none; border-radius:12px; box-shadow: inset 0 0 0 1px transparent; transition:.2s ease; }.license-input-wrap:focus-within::after { box-shadow: inset 0 0 0 1px #ff4040, 0 0 22px rgba(255,0,0,.22); }
.license-input-wrap input { width:100%; height:54px; padding:0 16px; border:1px solid rgba(255,255,255,.13); border-radius:12px; background:#0a0a0a; color:#fff; outline:none; letter-spacing:.055em; font-weight:700; transition:border-color .2s, background .2s; }.license-input-wrap input::placeholder{color:rgba(255,255,255,.28)}.license-input-wrap input:focus{border-color:rgba(255,60,60,.75);background:#0d0909}
.license-submit { width:100%; min-height:53px; border:0; border-radius:12px; margin-top:16px; color:white; background:linear-gradient(135deg, #d80000, #ff3939 52%, #bf0000); box-shadow:0 10px 28px rgba(220,0,0,.3), inset 0 1px rgba(255,255,255,.28); font-weight:900; letter-spacing:.03em; text-transform:uppercase; transition:transform .2s,box-shadow .2s,filter .2s; }.license-submit:hover:not(:disabled){ transform:translateY(-2px); filter:brightness(1.12); box-shadow:0 15px 34px rgba(255,0,0,.42), inset 0 1px rgba(255,255,255,.28);}.license-submit:disabled { cursor:wait; opacity:.85; }.license-spinner { display:none; width:14px; height:14px; margin-left:8px; vertical-align:-2px; border:2px solid rgba(255,255,255,.32); border-top-color:#fff; border-radius:50%; animation:spin .7s linear infinite; }.is-loading .license-spinner{display:inline-block}.license-status{min-height:20px;margin:13px 0 0;text-align:center;color:var(--text-faint);font-size:11px;line-height:1.4}.has-error .license-input-wrap input{border-color:#ff5757}.has-error .license-status{color:#ff7777}.is-success .license-submit{background:linear-gradient(135deg,#a80000,#ff4040)}.is-success .license-status{color:#ffa1a1}.license-privacy{margin:22px 0 0;color:var(--text-faint);font-size:10px}
.guide-flow { width:min(100%, 680px); animation:card-enter .65s cubic-bezier(.2,.8,.2,1) both; }.guide-flow-brand { display:flex; align-items:center; gap:10px; margin:0 0 16px; padding:0 7px; font-size:13px; font-weight:800; }.guide-flow-brand img{width:30px;height:30px;border-radius:8px}.guide-flow-brand form{margin-left:auto}.guide-flow-brand button{border:0;background:transparent;color:var(--text-muted);font-size:12px;font-weight:700}.guide-flow-card{padding:clamp(28px,5vw,48px)}.flow-steps{display:flex;align-items:flex-start;justify-content:center;gap:8px;margin:0 0 35px}.flow-steps span{display:grid;place-items:center;width:28px;height:28px;border:1px solid rgba(255,255,255,.17);border-radius:50%;color:var(--text-faint);font-size:11px;font-weight:900;position:relative}.flow-steps span.active{background:#e60000;border-color:#ff5656;color:#fff;box-shadow:0 0 20px rgba(255,0,0,.45)}.flow-steps small{position:absolute;top:35px;font-size:9px;font-weight:700;color:var(--text-faint)}.flow-steps i{width:min(16vw,95px);height:1px;margin-top:14px;background:rgba(255,255,255,.14)}.guide-flow-options{display:grid;gap:9px;margin:24px 0}.guide-flow-options a{display:flex;align-items:center;justify-content:space-between;padding:15px 16px;border:1px solid rgba(255,255,255,.1);border-radius:11px;background:rgba(255,255,255,.025);text-decoration:none;font-size:13px;font-weight:800;transition:.2s}.guide-flow-options a b{color:var(--accent);font-size:18px}.guide-flow-options a:hover{border-color:var(--border);background:rgba(255,0,0,.08);transform:translateX(3px)}
.perm-setup-page { min-height:100vh; overflow:hidden; background:#060606; }.perm-setup-page .standalone-main{min-height:100vh;position:relative;isolation:isolate;display:grid;place-items:center;padding:30px 18px;overflow:hidden}.perm-setup{width:min(100%,540px);animation:card-enter .55s cubic-bezier(.2,.8,.2,1) both;transition:opacity .3s,transform .3s}.perm-setup-leaving .perm-setup{opacity:0;transform:translateY(-10px) scale(.98)}.perm-setup-brand{display:flex;align-items:center;gap:10px;margin:0 auto 28px;width:min(100%,440px);font-size:12px;font-weight:800;letter-spacing:.02em}.perm-setup-brand a{display:inline-flex}.perm-setup-brand img{width:38px;height:38px;border-radius:11px;box-shadow:0 0 18px rgba(255,0,0,.3)}.perm-setup-brand form{margin-left:auto}.perm-setup-brand button{border:0;background:transparent;color:var(--text-muted);font-size:12px;font-weight:800}.perm-wizard{position:relative}.perm-progress{display:flex;align-items:flex-start;justify-content:center;gap:8px;margin:0 0 35px}.perm-progress span{display:grid;place-items:center;width:30px;height:30px;border:1px solid rgba(255,255,255,.17);border-radius:50%;color:var(--text-faint);position:relative}.perm-progress span b{font-size:11px}.perm-progress span small{position:absolute;top:37px;white-space:nowrap;font-size:9px;font-weight:700}.perm-progress span.is-active{border-color:#ff4f4f;color:#fff;background:#e00000;box-shadow:0 0 21px rgba(255,0,0,.45)}.perm-progress i{width:min(18vw,105px);height:1px;margin-top:15px;background:rgba(255,255,255,.14)}.perm-step{animation:card-enter .42s ease both}.perm-step[hidden]{display:none}.perm-step h1{margin:0;font-size:clamp(30px,6vw,42px);letter-spacing:-.06em;text-transform:uppercase}.perm-step>p:not(.license-eyebrow){margin:9px 0 25px;color:var(--text-muted);font-size:14px}.perm-options{display:grid;gap:8px}.perm-options button{display:grid;grid-template-columns:1fr auto;align-items:center;gap:2px;width:100%;padding:15px 17px;border:1px solid rgba(255,255,255,.1);border-radius:12px;background:rgba(25,18,18,.62);color:var(--text);text-align:left;transition:border-color .2s,background .2s,transform .2s,box-shadow .2s}.perm-options strong{font-size:14px;letter-spacing:.02em}.perm-options small{grid-column:1;color:var(--text-faint);font-size:10px;text-transform:uppercase;font-weight:800}.perm-options b{grid-column:2;grid-row:1 / span 2;color:#ff4040;font-size:21px;transition:transform .2s}.perm-options button:hover{border-color:rgba(255,70,70,.58);background:rgba(255,0,0,.1);box-shadow:0 0 24px rgba(255,0,0,.12);transform:translateX(3px)}.perm-options button:hover b{transform:translateX(4px)}.perm-step em{display:block;margin-top:20px;color:var(--text-faint);font-size:10px;font-style:normal;text-align:center}
@keyframes card-enter{from{opacity:0;transform:translateY(18px) scale(.98)}to{opacity:1;transform:none}}@keyframes aurora-drift{to{transform:translate3d(13%,8%,0) scale(1.12)}}@keyframes meteor{from{transform:translate3d(-20vw,-12vw,0) rotate(-36deg)}to{transform:translate3d(120vw,70vw,0) rotate(-36deg)}}@keyframes spin{to{transform:rotate(360deg)}}

@media (max-width: 860px) {
  .site-nav {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .dash-header-inner { gap: 12px; }
  .dash-auth-nav a { display: none; }
  .mobile-auth { display: flex; align-items: center; }
  .mobile-auth > a { display: none; }
}

@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; scroll-behavior:auto !important; } }
