:root {
  --bg-primary: #0b1020;
  --bg-secondary: #121b2d;
  --bg-panel: rgba(17, 24, 39, 0.78);
  --bg-card: rgba(28, 39, 57, 0.82);
  --border-soft: rgba(148, 163, 184, 0.2);
  --text-primary: #edf3ff;
  --text-muted: #a5b3c9;
  --brand: #6ee7d2;
  --brand-strong: #55d4ff;
  --success: #7ae4b7;
  --warning: #ffce6d;
  --danger: #ff7a7a;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  font-family: "Segoe UI", "Hiragino Sans", "Yu Gothic", sans-serif;
  background: radial-gradient(circle at top, #101d35 0%, var(--bg-primary) 28%, #070b13 100%);
  color: var(--text-primary);
}

body {
  min-height: 100vh;
}

button, input {
  font: inherit;
}

.navbar-brand.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  text-decoration: none;
}

.brand-logo {
  width: 32px;
  height: 32px;
  display: inline-block;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(122, 228, 183, 0.25);
}

.app-view {
  display: none;
}

.app-view.active {
  display: block;
}

.text-gradient {
  background: linear-gradient(135deg, #7ef0d4 0%, #4ec6ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.badge {
  display: inline-block;
  letter-spacing: 0.12em;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: rgba(110, 231, 210, 0.12);
  color: var(--brand);
}

.glass-card,
.card.glass-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.hero-section {
  padding-top: 2rem;
}

.min-vh-75 {
  min-height: 75vh;
}

.mini-stat {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border-soft);
  border-radius: 1rem;
  padding: 1rem;
  text-align: center;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand);
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.device-mockup {
  position: relative;
  max-width: 360px;
  margin: 0 auto;
  padding: 1rem;
  border-radius: 2rem;
  background: linear-gradient(180deg, rgba(8, 14, 25, 0.9), rgba(20, 28, 41, 0.95));
  border: 1px solid rgba(146, 163, 184, 0.26);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

.mock-screen {
  background: rgba(15, 23, 42, 0.96);
  border-radius: 1.5rem;
  overflow: hidden;
  min-height: 440px;
}

.mock-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(11, 16, 32, 0.7);
}

.dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background: #ff5e57; }
.dot-yellow { background: #ffbd2f; }
.dot-green { background: #28c840; }

.mock-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.1rem;
}

.message {
  max-width: 80%;
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  line-height: 1.5;
  font-size: 0.95rem;
}

.bubble-you {
  align-self: flex-end;
  background: rgba(94, 234, 212, 0.2);
  border: 1px solid rgba(94, 234, 212, 0.3);
}

.bubble-them {
  align-self: flex-start;
  background: rgba(80, 132, 255, 0.1);
  border: 1px solid rgba(80, 132, 255, 0.2);
}

.section-kicker {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--brand);
}

.form-control,
.form-select {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: var(--text-primary);
  border-radius: 0.9rem;
}

.form-control::placeholder {
  color: rgba(165, 179, 201, 0.72);
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(110, 231, 210, 0.8);
  box-shadow: 0 0 0 0.2rem rgba(110, 231, 210, 0.18);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-primary);
}

.tracking-lg {
  letter-spacing: 0.35rem;
}

.recovery-key {
  font-size: 1.2rem;
  letter-spacing: 0.16rem;
  color: var(--brand);
  word-break: break-all;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-strong), var(--brand));
  border: none;
  color: #06121f;
  font-weight: 700;
}

.btn-primary:hover {
  filter: brightness(1.04);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

.btn-hero {
  min-height: 170px;
  border-radius: 1.4rem;
  background: linear-gradient(135deg, rgba(62, 96, 219, 0.94), rgba(85, 212, 255, 0.7));
  border: none;
  box-shadow: 0 20px 35px rgba(31, 65, 182, 0.35);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(122, 228, 183, 0.1);
  border: 1px solid rgba(122, 228, 183, 0.3);
  color: var(--success);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-size: 0.9rem;
}

.pwa-guide-box {
  background: rgba(13, 19, 31, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 1.25rem;
  padding: 1.5rem;
}

.guide-list {
  padding-left: 1.2rem;
  color: var(--text-muted);
}

.device-share-guide {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.2rem;
  padding: 1rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.02);
}

.share-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(110, 231, 210, 0.14);
  color: var(--brand);
  font-weight: 700;
}

.share-arrow {
  color: var(--brand);
  font-size: 1.2rem;
}

.notification-panel {
  background: rgba(18, 27, 45, 0.86);
  border: 1px solid var(--border-soft);
  border-radius: 1rem;
}

.qr-box {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.qr-code {
  width: 160px;
  height: 160px;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--brand);
  background: rgba(110, 231, 210, 0.1);
  border: 1px solid rgba(110, 231, 210, 0.3);
  border-radius: 1.3rem;
}

.toast {
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(6, 14, 26, 0.9);
  color: var(--text-primary);
}

@media (max-width: 767.98px) {
  .display-4 {
    font-size: 2.5rem;
  }

  .device-mockup {
    margin-top: 1rem;
  }

  .btn-hero {
    min-height: 120px;
  }
}
