/* ===========================================
   CROMES SHOP — ULTRA PREMIUM DARK UI
   =========================================== */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700;800;900&display=swap');

/* ── RESET ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

:root {
  --bg: #000000;
  --bg-1: #0a0a0a;
  --bg-2: #111111;
  --bg-3: #1a1a1a;
  
  --border: #222222;
  --border-hi: #333333;

  --text-1: #ffffff;
  --text-2: #a1a1aa;
  --text-3: #71717a;

  --blue: #3b82f6;
  --blue-glow: rgba(59, 130, 246, 0.5);
  --cyan: #06b6d4;
  --green: #22c55e;
  --red: #ef4444;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 24px;
  --r-xl: 32px;

  --max-w: 1200px;
}

body {
  font-family: 'Geist', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; }

/* ── GLOWS & BACKGROUNDS ─────────────────────────────────── */
.glow-bg {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 60vh;
  background: radial-gradient(circle at center, rgba(59,130,246,0.15) 0%, rgba(0,0,0,0) 60%);
  pointer-events: none;
  z-index: -1;
}

/* ── NAV ─────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
  height: 72px;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-wrap {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.03em; }
.nav-logo span { color: var(--blue); }
.nav-actions { display: flex; gap: 16px; align-items: center; }
.nav-btn {
  background: transparent; border: 1px solid var(--border);
  padding: 8px 16px; border-radius: 99px;
  font-size: 0.85rem; font-weight: 500; color: var(--text-1);
  transition: all 0.2s;
}
.nav-btn:hover { background: var(--bg-3); border-color: var(--border-hi); }

/* ── HERO ─────────────────────────────────── */
.hero {
  padding: 120px 24px 80px;
  text-align: center;
  max-width: 900px; margin: 0 auto;
  position: relative;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800; letter-spacing: -0.04em;
  line-height: 1.05; margin-bottom: 24px;
  background: linear-gradient(180deg, #fff 0%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p { font-size: 1.25rem; color: var(--text-2); margin-bottom: 40px; font-weight: 400; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ── TRUST BADGES ─────────────────────────────────── */
.trust-bar {
  display: flex; justify-content: center; gap: 32px; margin-bottom: 60px;
  flex-wrap: wrap; opacity: 0.7;
}
.trust-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 500; color: var(--text-2);
}

/* ── GRID ─────────────────────────────────── */
.section { padding: 40px 24px 80px; max-width: var(--max-w); margin: 0 auto; position: relative; }
.section-title { font-size: 2rem; font-weight: 700; margin-bottom: 40px; letter-spacing: -0.03em; text-align: center; }

.accounts-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 32px;
}

/* ── GLASS CARDS ─────────────────────────────────── */
.account-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex; flex-direction: column;
  position: relative;
}
.account-card::before {
  content: ''; position: absolute; inset: 0;
  border-radius: var(--r-lg); padding: 1px;
  background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.account-card:hover { 
  border-color: var(--border-hi); 
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 40px var(--blue-glow);
}
.card-image-wrap {
  width: 100%; height: 280px; position: relative;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
}

@keyframes float {
  0% { transform: translateY(0px) scale(1); filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.4)); }
  50% { transform: translateY(-8px) scale(1.02); filter: drop-shadow(0 0 25px rgba(6, 182, 212, 0.6)); }
  100% { transform: translateY(0px) scale(1); filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.4)); }
}

/* The magic for transparent looking black backgrounds */
.card-image-wrap img {
  width: 90%; height: 90%; object-fit: contain;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
  mix-blend-mode: screen; /* Drops the black bg from the image, keeping only the car! */
  animation: float 4s ease-in-out infinite;
}
.account-card:hover .card-image-wrap img {
  animation-play-state: paused;
  transform: scale(1.15) translateY(-15px);
  filter: drop-shadow(0 0 40px rgba(59, 130, 246, 0.9));
}
.stock-badge {
  position: absolute; top: 16px; right: 16px;
  background: rgba(0,0,0,0.6); border: 1px solid var(--border);
  padding: 6px 12px; border-radius: 99px; font-size: 0.75rem; font-weight: 700;
  backdrop-filter: blur(8px);
}
.card-content {
  padding: 32px;
  display: flex; flex-direction: column; flex: 1; gap: 16px;
  background: var(--bg-1);
  border-top: 1px solid var(--border);
}
.card-name { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.card-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: auto; }
.card-tag { font-size: 0.75rem; font-weight: 500; color: var(--text-2); background: var(--bg-2); padding: 6px 10px; border-radius: var(--r-sm); border: 1px solid var(--border); }
.card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.card-price { font-size: 1.5rem; font-weight: 800; color: var(--text-1); }

/* ── BUTTONS ─────────────────────────────────── */
.btn-primary {
  background: var(--text-1); color: var(--bg);
  padding: 12px 24px; border-radius: 99px;
  font-weight: 600; font-size: 0.95rem;
  transition: all 0.2s;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-primary:hover { opacity: 0.9; transform: scale(1.02); }

.btn-blue {
  background: var(--blue); color: #fff;
  padding: 12px 24px; border-radius: 99px;
  font-weight: 600; font-size: 0.95rem;
  transition: all 0.2s;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}
.btn-blue:hover { background: var(--blue-hover); transform: scale(1.02); box-shadow: 0 0 30px rgba(59, 130, 246, 0.6); }

/* Fade-in Animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

/* ── FORMS & UTILS ─────────────────────────────────── */
.field-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-2); margin-bottom: 8px; }
.field-input { width: 100%; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px 16px; color: var(--text-1); font-size: 1rem; outline: none; margin-bottom: 20px; transition: border-color 0.2s; }
.field-input:focus { border-color: var(--blue); }

.toast-stack { position: fixed; bottom: 24px; right: 24px; z-index: 100; display: flex; flex-direction: column; gap: 12px; }
.toast { background: rgba(20,20,20,0.9); backdrop-filter: blur(10px); padding: 14px 20px; border-radius: var(--r-md); font-size: 0.9rem; font-weight: 500; border: 1px solid var(--border-hi); }
.toast.success { border-left: 3px solid var(--green); }
.toast.error { border-left: 3px solid var(--red); }

/* ── TABLES ─────────────────────────────────── */
.table-wrap { background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th { text-align: left; padding: 16px 24px; background: rgba(255,255,255,0.02); color: var(--text-2); font-weight: 500; border-bottom: 1px solid var(--border); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
td { padding: 24px; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: none; }

@media (max-width: 768px) {
  .accounts-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.5rem; }
}
