:root {
  --bg: #070b18;
  --card: #0d1430;
  --card2: #0b1026;
  --text: #eaf0ff;
  --muted: #afc1ff;

  /* Subaru-ish blues */
  --primary: #0033a0;
  --primary2: #0047d6;
  --accent: #2ea8ff;

  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial;
  background:
    radial-gradient(
      900px 500px at 10% -10%,
      rgba(46, 168, 255, 0.18),
      transparent 60%
    ),
    radial-gradient(
      900px 500px at 110% 10%,
      rgba(0, 71, 214, 0.18),
      transparent 60%
    ),
    var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3 {
  margin: 0;
}
p {
  margin: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(7, 11, 24, 0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
}
.logo-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--primary2));
  box-shadow: 0 0 0 6px rgba(46, 168, 255, 0.08);
}
.brand-title {
  font-weight: 700;
  letter-spacing: 0.2px;
}
.brand-subtitle {
  font-size: 12px;
  color: var(--muted);
  opacity: 0.95;
}

.tabs {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.tab {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  transition: 0.15s ease;
}
.tab:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.18);
}
.tab.active {
  border-color: rgba(46, 168, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(46, 168, 255, 0.1);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
}

.view {
  display: none;
}
.view.active {
  display: block;
}

.card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.01)
  );
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.grid3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 860px) {
  .grid2 {
    grid-template-columns: 1fr 1fr;
  }
  .grid3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.row {
  display: flex;
  gap: 12px;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
}

.field label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(11, 16, 38, 0.75);
  color: var(--text);
  outline: none;
}
.field input:focus {
  border-color: rgba(46, 168, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(46, 168, 255, 0.12);
}

button {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(46, 168, 255, 0.35);
  background: linear-gradient(135deg, var(--primary2), var(--primary));
  color: #fff;
  cursor: pointer;
  transition: 0.15s ease;
}
button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}
button:active {
  transform: translateY(0px);
}

button.ghost {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  color: var(--text);
}

.btn-file {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: 0.15s ease;
}
.btn-file:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.18);
}

.list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.item:first-child {
  border-top: 0;
}

.badge {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
  white-space: nowrap;
}

.muted {
  color: var(--muted);
}
.footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 16px;
  border-top: 1px solid var(--line);
}

.sep {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 14px 0;
}

.app-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  box-shadow: 0 0 0 6px rgba(46, 168, 255, 0.08);
}
.app-icon svg {
  display: block;
}
