:root {
  color-scheme: dark;
  --bg: #0a0814;
  --surface: #14102a;
  --surface-2: #1b1636;
  --muted: #110e24;
  --text: #f6f3ff;
  --text-soft: #c6bdf2;
  --primary: #a78bfa; /* purple */
  --primary-strong: #7c3aed; /* deeper purple */
  --success: #7de2c4;
  --danger: #ff7c99;
  --outline: #3a2d72;
  --radius: 14px;
  --elev: 0 10px 26px rgba(0, 0, 0, 0.35);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f4ff;
  --surface: #ffffff;
  --surface-2: #f2efff;
  --muted: #ede9ff;
  --text: #1a1530;
  --text-soft: #4a3f73;
  --primary: #7c3aed;
  --primary-strong: #5b21b6;
  --success: #0f766e;
  --danger: #be123c;
  --outline: #d7cff9;
  --elev: 0 12px 28px rgba(25, 16, 55, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Roboto", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  transition: background 0.25s ease, color 0.25s ease;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--outline);
  z-index: 20;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.4px;
}

nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 14px;
}

.nav-actions {
  display: flex;
  gap: 10px;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.12s ease, filter 0.2s ease, background 0.2s ease;
}

.btn:hover {
  filter: brightness(1.05);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(180deg, var(--primary), var(--primary-strong));
  color: white;
  box-shadow: 0 4px 14px rgba(95, 133, 255, 0.38);
}

.btn-outline {
  background: transparent;
  border: 1px solid #40548d;
  color: var(--text-soft);
}

.hero {
  padding: 80px 0 60px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 30px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 58px);
  margin: 0 0 16px;
}

.hero p {
  color: var(--text-soft);
  max-width: 620px;
}

.hero-actions {
  margin-top: 20px;
  display: flex;
  gap: 12px;
}

.hero-card {
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 25%, var(--surface)), var(--surface));
  border: 1px solid color-mix(in srgb, var(--outline) 70%, var(--primary));
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--elev);
}

.section {
  padding: 55px 0;
}

.section-muted {
  background: var(--muted);
}

h2 {
  margin: 0 0 20px;
  font-size: 30px;
}

.grid {
  display: grid;
  gap: 14px;
}

.cards-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.cards-4 {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.cards-5 {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--elev);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.price {
  font-size: 28px;
  margin: 8px 0;
  color: var(--success);
}

.center {
  text-align: center;
  font-weight: 700;
}

details {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
}

.dashboard {
  margin-top: 16px;
  background: var(--surface-2);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--elev);
}

.dashboard-top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.inline-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
}

.chart-card {
  margin: 12px 0;
}

.profile-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 14px;
}

.avatar-preview {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--outline);
  background: #0f1630;
  display: block;
  margin-bottom: 10px;
}

.avatar-form {
  display: grid;
  gap: 8px;
}

.profile-form {
  display: grid;
  gap: 10px;
}

.verify-block {
  margin-top: 12px;
  background: #1d1a2f;
  border: 1px solid #6a3c57;
  border-radius: 14px;
  padding: 14px;
  color: #ffd3dd;
}

.hint {
  margin: 8px 0 0;
  color: var(--text-soft);
  font-size: 13px;
}

input {
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--outline) 75%, var(--primary));
  background: color-mix(in srgb, var(--surface) 70%, var(--bg));
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 156, 255, 0.2);
}

.watchlist {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: grid;
  gap: 8px;
}

.watch-item {
  display: flex;
  justify-content: space-between;
  background: #0f1731;
  border: 1px solid var(--outline);
  border-radius: 10px;
  padding: 10px 12px;
}

.danger {
  background: transparent;
  border: 1px solid #875066;
  color: #ff9eb3;
  border-radius: 8px;
  cursor: pointer;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  display: grid;
  place-items: center;
  z-index: 30;
}

.modal-content {
  width: min(420px, 92%);
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 18px;
  position: relative;
  box-shadow: var(--elev);
}

.modal-close {
  position: absolute;
  right: 10px;
  top: 10px;
  border: none;
  background: transparent;
  color: var(--text-soft);
  font-size: 18px;
  cursor: pointer;
}

.full {
  width: 100%;
  margin-top: 10px;
}

.message {
  min-height: 22px;
  color: var(--text-soft);
}

.footer {
  border-top: 1px solid var(--outline);
  padding: 20px 0;
  color: var(--text-soft);
  font-size: 14px;
}

.hidden {
  display: none !important;
}

@media (max-width: 860px) {
  .hero-content {
    grid-template-columns: 1fr;
  }

  .inline-form {
    grid-template-columns: 1fr;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

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