:root {
  --bg: #030812;
  --bg-2: #071424;
  --panel: rgba(8, 23, 40, 0.76);
  --panel-strong: rgba(9, 29, 50, 0.94);
  --line: rgba(130, 183, 238, 0.16);
  --line-strong: rgba(130, 183, 238, 0.32);
  --text: #f4f8ff;
  --muted: #91a5ba;
  --blue: #1688f5;
  --blue-light: #5bb8ff;
  --cyan: #63e8ff;
  --green: #42e4a4;
  --danger: #ff7280;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 12% -10%, rgba(20, 116, 244, .23), transparent 34rem),
    radial-gradient(circle at 100% 26%, rgba(0, 190, 255, .12), transparent 30rem),
    linear-gradient(145deg, var(--bg) 0%, var(--bg-2) 50%, #02060c 100%);
  font-family: "Inter", system-ui, sans-serif;
}

a { color: inherit; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.hidden { display: none !important; }

.page-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.aurora {
  position: fixed;
  z-index: -3;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(110px);
  opacity: .16;
  pointer-events: none;
}

.aurora-a { top: -15rem; right: 5%; background: #1688f5; }
.aurora-b { bottom: -18rem; left: -10rem; background: #00bfd8; }

.background-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: .2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(77, 145, 210, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 145, 210, .07) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.topbar {
  width: min(1260px, calc(100% - 40px));
  min-height: 100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link img {
  display: block;
  width: 155px;
  height: auto;
  filter: drop-shadow(0 10px 28px rgba(24, 116, 224, .25));
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-actions a {
  text-decoration: none;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 700;
}

.top-actions .outline-button {
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--text);
  background: rgba(16, 48, 80, .42);
}

.main-shell {
  width: min(1260px, calc(100% - 40px));
  margin: 0 auto;
  padding-bottom: 54px;
}

.lookup-layout {
  min-height: calc(100vh - 150px);
  padding: 40px 0 90px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(42px, 7vw, 100px);
  align-items: center;
}

.status-label,
.eyebrow {
  color: var(--blue-light);
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .16em;
}

.status-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 21px;
}

.status-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(66, 228, 164, .11), 0 0 20px rgba(66, 228, 164, .85);
}

.hero-panel h1 {
  max-width: 760px;
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(3.5rem, 7vw, 6.7rem);
  line-height: .92;
  letter-spacing: -.065em;
}

.hero-panel h1 span {
  display: block;
  color: transparent;
  background: linear-gradient(105deg, #f6faff 8%, #54b4ff 58%, #66ebff);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-copy {
  max-width: 630px;
  margin: 28px 0 34px;
  color: #a8b8ca;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.75;
}

.feature-grid {
  display: grid;
  gap: 14px;
  max-width: 650px;
}

.feature-grid article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.feature-icon {
  color: var(--blue-light);
  font-family: "Space Grotesk", sans-serif;
  font-size: .85rem;
}

.feature-grid strong { display: block; margin-bottom: 4px; }
.feature-grid p { margin: 0; color: var(--muted); line-height: 1.5; font-size: .88rem; }

.glass-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.045), transparent 38%),
    var(--panel);
  box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.05);
  backdrop-filter: blur(22px);
}

.login-card {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 44px);
}

.login-card::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  top: -80px;
  right: -80px;
  border-radius: 50%;
  background: var(--blue);
  filter: blur(70px);
  opacity: .17;
  pointer-events: none;
}

.login-head {
  display: flex;
  align-items: center;
  gap: 15px;
}

.portal-mark {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(89, 183, 255, .32);
  border-radius: 15px;
  background: rgba(28, 126, 219, .13);
}

.portal-mark svg { width: 26px; fill: var(--blue-light); }

.eyebrow { margin: 0 0 7px; }

.login-card h2,
.welcome-card h2,
.section-title-row h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
}

.login-card h2 { font-size: 2rem; letter-spacing: -.035em; }

.login-copy {
  margin: 20px 0 25px;
  color: var(--muted);
  line-height: 1.6;
}

form { display: grid; gap: 11px; }

label {
  margin-top: 5px;
  color: #cad7e4;
  font-size: .82rem;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 57px;
  padding: 0 16px;
  border: 1px solid rgba(119, 169, 214, .2);
  border-radius: 13px;
  outline: none;
  color: var(--text);
  background: rgba(2, 11, 20, .65);
  transition: border-color .2s, box-shadow .2s;
}

input::placeholder { color: #52687d; }

input:focus {
  border-color: rgba(57, 166, 255, .75);
  box-shadow: 0 0 0 4px rgba(42, 151, 255, .12), 0 12px 30px rgba(0,0,0,.2);
}

.primary-button {
  min-height: 58px;
  margin-top: 10px;
  padding: 0 20px;
  border: 0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  color: white;
  background: linear-gradient(110deg, #0868d2, #178cf7 58%, #22a8f6);
  box-shadow: 0 14px 34px rgba(7, 115, 226, .28), inset 0 1px rgba(255,255,255,.23);
  font-weight: 800;
  transition: transform .2s, filter .2s, box-shadow .2s;
}

.primary-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 18px 42px rgba(7, 115, 226, .36);
}

.primary-button:disabled { cursor: wait; opacity: .75; transform: none; }

.button-arrow { font-size: 1.35rem; }

.spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: white;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

.primary-button.loading .button-arrow { display: none; }
.primary-button.loading .spinner { display: block; }

@keyframes spin { to { transform: rotate(360deg); } }

.form-message {
  min-height: 20px;
  margin: 1px 0 0;
  color: var(--danger);
  font-size: .85rem;
  line-height: 1.45;
}

.secure-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 14px;
  color: #718aa2;
  font-size: .75rem;
}

.secure-row span::before {
  content: "✓";
  color: var(--green);
  margin-right: 7px;
}

.help-box {
  margin-top: 23px;
  padding-top: 19px;
  border-top: 1px solid var(--line);
}

.help-box strong { display: block; font-size: .86rem; }
.help-box p { margin: 5px 0 0; color: var(--muted); font-size: .82rem; }
.help-box a { color: var(--blue-light); font-weight: 700; }

.dashboard { padding: 22px 0 45px; }

.dashboard-toolbar,
.welcome-card,
.section-title-row,
.dashboard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dashboard-toolbar { margin-bottom: 16px; }

.text-button {
  border: 0;
  padding: 10px 0;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  font-weight: 700;
}

.verified-pill,
.count-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 30, 50, .72);
  font-size: .75rem;
  font-weight: 700;
}

.verified-pill { padding: 8px 12px; color: #9eb1c5; }
.verified-pill span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }

.welcome-card {
  gap: 30px;
  padding: clamp(30px, 5vw, 55px);
}

.welcome-card h2 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  letter-spacing: -.06em;
}

.welcome-card p { color: var(--muted); }

.account-badge {
  min-width: 225px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(10, 34, 58, .72);
}

.account-badge span,
.repair-metrics span {
  display: block;
  color: var(--muted);
  font-size: .69rem;
  text-transform: uppercase;
  letter-spacing: .09em;
}

.account-badge strong {
  display: block;
  margin-top: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
  color: var(--blue-light);
}

.dashboard-section { margin-top: 30px; }
.section-title-row { align-items: flex-end; margin-bottom: 15px; }
.section-title-row h3 { font-size: 1.7rem; }
.count-badge { padding: 8px 12px; color: var(--blue-light); }

.repair-grid,
.history-list {
  display: grid;
  gap: 16px;
}

.repair-card { padding: 28px; }

.repair-card-head,
.repair-actions,
.history-card,
.history-right {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.repair-card-head { align-items: flex-start; gap: 18px; }

.repair-number,
.history-number {
  color: var(--blue-light);
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .1em;
}

.repair-device,
.history-device {
  margin: 7px 0 3px;
  font-family: "Space Grotesk", sans-serif;
}

.repair-device { font-size: 1.65rem; }
.history-device { font-size: 1.2rem; }

.repair-service,
.history-service {
  margin: 0;
  color: var(--muted);
}

.repair-status,
.history-status {
  padding: 9px 12px;
  border: 1px solid rgba(62,167,255,.3);
  border-radius: 999px;
  color: var(--blue-light);
  background: rgba(24,136,245,.13);
  font-size: .76rem;
  font-weight: 800;
}

.progress-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}

.progress-bar {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(122,166,205,.11);
}

.progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 0 20px rgba(61,188,255,.35);
  transition: width .8s cubic-bezier(.2,.8,.2,1);
}

.progress-text {
  color: var(--blue-light);
  font-size: .76rem;
  font-weight: 800;
}

.repair-metrics {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 18px;
  margin-top: 22px;
}

.repair-metrics strong { display: block; margin-top: 6px; }

.repair-note {
  margin-top: 21px;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #bacada;
  background: rgba(4,16,29,.5);
  line-height: 1.55;
}

.repair-actions {
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.details-button,
.pay-button {
  padding: 11px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  cursor: pointer;
  color: white;
  background: rgba(14,52,84,.75);
  text-decoration: none;
  font-weight: 800;
}

.pay-button { background: linear-gradient(110deg,#096ad4,#178cf7); }

.repair-details {
  margin-top: 23px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.step-list {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 15px;
}

.step {
  display: flex;
  gap: 10px;
  opacity: .35;
}

.step.complete,
.step.current { opacity: 1; }

.step-dot {
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: #5d748b;
}

.step.complete .step-dot { color: var(--green); border-color: rgba(66,228,164,.3); background: rgba(66,228,164,.1); }
.step.current .step-dot { color: var(--blue-light); border-color: var(--blue); box-shadow: 0 0 0 4px rgba(29,145,245,.1); }
.step strong { display: block; font-size: .8rem; }
.step small { display: block; margin-top: 3px; color: var(--muted); }

.timeline-list {
  position: relative;
  margin-top: 28px;
}

.timeline-list::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 7px;
  bottom: 7px;
  width: 1px;
  background: linear-gradient(var(--blue), rgba(35,121,208,.08));
}

.timeline-entry {
  position: relative;
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 15px;
  padding-bottom: 20px;
}

.timeline-entry:last-child { padding-bottom: 0; }

.timeline-dot {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  margin-top: 3px;
  border: 4px solid #14385a;
  border-radius: 50%;
  background: var(--cyan);
}

.timeline-content time {
  display: block;
  color: var(--blue-light);
  font-size: .71rem;
  font-weight: 700;
}

.timeline-content strong { display: block; margin-top: 4px; }
.timeline-content p { margin: 4px 0 0; color: var(--muted); font-size: .84rem; line-height: 1.5; }

.history-card {
  gap: 20px;
  padding: 20px 24px;
}

.history-right {
  gap: 18px;
}

.history-date {
  color: var(--muted);
  font-size: .78rem;
  white-space: nowrap;
}

.empty-state {
  padding: 30px;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
}

.dashboard-footer {
  gap: 20px;
  margin-top: 24px;
  padding: 22px 5px;
  color: var(--muted);
}

.dashboard-footer > div:first-child { display: grid; gap: 4px; }
.dashboard-footer strong { color: var(--text); }
.dashboard-footer > div:last-child { display: flex; gap: 10px; }
.dashboard-footer a {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(12,35,58,.5);
  text-decoration: none;
  font-weight: 700;
}

@media (max-width: 900px) {
  .lookup-layout { grid-template-columns: 1fr; padding-top: 55px; }
  .hero-panel { text-align: center; }
  .hero-panel h1,
  .hero-copy,
  .feature-grid { margin-left: auto; margin-right: auto; }
  .feature-grid { text-align: left; }
}

@media (max-width: 650px) {
  .topbar { min-height: 84px; width: min(100% - 28px,1260px); }
  .logo-link img { width: 118px; }
  .top-actions > a:not(.outline-button) { display: none; }
  .top-actions .outline-button { font-size: .8rem; padding: 10px 12px; }
  .main-shell { width: min(100% - 24px,1260px); }
  .lookup-layout { min-height: auto; padding: 45px 0 65px; gap: 38px; }
  .hero-panel h1 { font-size: clamp(3.2rem, 17vw, 5.1rem); }
  .login-card { border-radius: 20px; }
  .dashboard-toolbar { align-items: flex-start; }
  .verified-pill { font-size: .66rem; }
  .welcome-card { align-items: flex-start; flex-direction: column; }
  .account-badge { width: 100%; }
  .repair-card-head { flex-direction: column; }
  .repair-status { align-self: flex-start; }
  .repair-metrics { grid-template-columns: 1fr; }
  .step-list { grid-template-columns: 1fr 1fr; }
  .history-card { align-items: flex-start; flex-direction: column; }
  .history-right { width: 100%; justify-content: space-between; }
  .dashboard-footer { align-items: flex-start; flex-direction: column; }
  .dashboard-footer > div:last-child { width: 100%; }
  .dashboard-footer a { flex: 1; text-align: center; }
}
