/* ═══════════════════════════════════════════════════════════════
   Velogen AI — Dashboard Styles (Zorq-inspired layout)
   ═══════════════════════════════════════════════════════════════ */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0a0a0a;
  color: #fff;
  min-height: 100vh;
  scrollbar-color: #7c3aed #1a1a1a;
  scrollbar-width: auto;
}

/* ── SCROLLBAR (always visible, purple theme) ── */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: #1a1a1a;
}
::-webkit-scrollbar-thumb {
  background: #7c3aed;
  border-radius: 6px;
  border: 2px solid #1a1a1a;
}
::-webkit-scrollbar-thumb:hover {
  background: #a78bfa;
}
::-webkit-scrollbar-corner {
  background: #1a1a1a;
}

/* ── TOP NAVBAR ── */
.dash-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px;
  background: #0d0d0d;
  border-bottom: 1px solid #1a1a1a;
  position: sticky;
  top: 0;
  z-index: 100;
}
.dash-nav-left { display: flex; align-items: center; gap: 32px; }
.dash-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 700; color: #fff; text-decoration: none;
}
.dash-logo-icon {
  width: 32px; height: 32px; background: #7c3aed; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
}
.dash-logo-icon svg { width: 18px; height: 18px; }
.dash-nav-links { display: flex; gap: 4px; align-items: center; }
.dash-nav-link {
  color: #9ca3af; text-decoration: none; font-size: 13px;
  padding: 8px 12px; border-radius: 8px; transition: color 0.2s, background 0.2s;
}
.dash-nav-link:hover { color: #fff; background: rgba(255,255,255,0.06); }
.dash-nav-link.active { color: #fff; }

/* Dropdown */
/* Dropdown - Mega Menu */
.dash-dropdown { position: relative; }
.dash-dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: #111; border: 1px solid #1f1f1f; border-radius: 12px;
  padding: 0; min-width: 420px; z-index: 200; margin-top: 4px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  overflow: hidden;
}
.dash-dropdown:hover .dash-dropdown-menu { display: flex; }
.dash-mega-left {
  width: 170px; background: #0d0d0d; padding: 8px; border-right: 1px solid #1f1f1f;
  display: flex; flex-direction: column; gap: 2px;
}
.dash-mega-cat {
  display: block; padding: 10px 14px; color: #9ca3af; text-decoration: none;
  font-size: 13px; font-weight: 600; border-radius: 8px; transition: background 0.15s, color 0.15s;
  cursor: pointer; white-space: nowrap;
}
.dash-mega-cat:hover, .dash-mega-cat.active { background: rgba(124,58,237,0.1); color: #fff; }
.dash-mega-right {
  flex: 1; padding: 8px; display: none; flex-direction: column; gap: 2px;
}
.dash-mega-right.active { display: flex; }
.dash-mega-model {
  display: block; padding: 10px 14px; color: #d1d5db; text-decoration: none;
  font-size: 13px; border-radius: 6px; transition: background 0.15s, color 0.15s;
}
.dash-mega-model:hover { background: rgba(124,58,237,0.1); color: #fff; }
/* Legacy simple dropdown support */
.dash-dropdown-item {
  display: block; padding: 10px 14px; color: #d1d5db; text-decoration: none;
  font-size: 13px; border-radius: 6px; transition: background 0.2s, color 0.2s;
}
.dash-dropdown-item:hover { background: rgba(124,58,237,0.1); color: #fff; }

.dash-nav-right { display: flex; align-items: center; gap: 12px; }
.dash-credits-pill {
  background: rgba(124,58,237,0.15); border: 1px solid rgba(124,58,237,0.35);
  color: #a78bfa; padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 600;
}
.dash-btn-logout {
  background: transparent; color: #6b7280; border: 1px solid #2a2a2a;
  padding: 7px 14px; border-radius: 7px; font-size: 13px; cursor: pointer;
  transition: all 0.2s;
}
.dash-btn-logout:hover { color: #fff; border-color: #7c3aed; box-shadow: 0 0 10px rgba(124,58,237,0.1); }

/* ── HERO (centered) ── */
.dash-hero {
  text-align: center;
  padding: 60px 20px 40px;
  max-width: 800px;
  margin: 0 auto;
}
.dash-hero h1 {
  font-size: clamp(42px, 7vw, 68px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
}
.dash-hero h1 .highlight {
  background: #7c3aed;
  color: #fff;
  padding: 2px 16px;
  border-radius: 8px;
  display: inline-block;
}
.dash-hero p { color: #6b7280; font-size: 18px; margin-bottom: 28px; }

/* ── SEARCH BAR ── */
.dash-search {
  display: flex;
  align-items: center;
  max-width: 560px;
  margin: 0 auto 28px;
  background: #111;
  border: 1px solid #1f1f1f;
  border-radius: 12px;
  padding: 4px 4px 4px 18px;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.dash-search:focus-within { border-color: rgba(124,58,237,0.5); box-shadow: 0 4px 16px rgba(124,58,237,0.1); }
.dash-search-icon { color: #4b5563; margin-right: 10px; font-size: 16px; flex-shrink: 0; }
.dash-search input {
  flex: 1; background: transparent; border: none; outline: none;
  color: #fff; font-size: 14px; font-family: inherit;
}
.dash-search input::placeholder { color: #4b5563; }
.dash-search-btn {
  background: transparent; color: #a78bfa; border: 1px solid #7c3aed; border-radius: 8px;
  padding: 10px 20px; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s; flex-shrink: 0;
}
.dash-search-btn:hover { background: rgba(124,58,237,0.1); box-shadow: 0 0 12px rgba(124,58,237,0.2); transform: translateY(-1px); }

/* ── MODEL PILLS (centered) ── */
.dash-pills {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center; margin-bottom: 40px; padding: 0 20px;
}
.dash-pill {
  padding: 9px 20px; border-radius: 24px; font-size: 13px; font-weight: 500;
  background: transparent; border: 1px solid #2a2a2a; color: #9ca3af;
  cursor: pointer; transition: all 0.25s; white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
  letter-spacing: 0.01em;
}
.dash-pill:hover { border-color: rgba(124,58,237,0.5); color: #d1d5db; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.dash-pill.active {
  background: transparent; border-color: #7c3aed; color: #a78bfa;
  box-shadow: 0 0 14px rgba(124,58,237,0.15);
  transform: translateY(-1px);
}
.dash-pill-icon { font-size: 14px; }

/* ── CAROUSEL ── */
.dash-carousel-wrap {
  position: relative;
  padding: 0 20px;
  max-width: 1400px;
  margin: 0 auto;
}
.dash-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-top: 10px;
  padding-bottom: 8px;
}
.dash-carousel::-webkit-scrollbar { height: 0; display: none; }
.dash-carousel { -ms-overflow-style: none; scrollbar-width: none; }

.dash-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  background: rgba(17,17,17,0.9);
  border: 1px solid #2a2a2a;
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.25s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.dash-carousel-arrow:hover { background: #1a1a1a; border-color: #7c3aed; box-shadow: 0 4px 16px rgba(124,58,237,0.15); transform: translateY(-50%) scale(1.1); }
.dash-carousel-arrow.left { left: 4px; }
.dash-carousel-arrow.right { right: 4px; }

/* ── MODEL CARDS (large, horizontal) ── */
.dash-model-card {
  flex: 0 0 520px;
  min-height: 360px;
  background: #111;
  border: 1px solid #1f1f1f;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  scroll-snap-align: start;
  cursor: pointer;
  transition: transform 0.35s ease, border-color 0.3s, box-shadow 0.35s;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.dash-model-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(124,58,237,0.5);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 0 24px rgba(124,58,237,0.1);
}

.dash-model-card-bg {
  flex: 1;
  background: #161616;
  background-size: cover;
  background-position: center;
  min-height: 180px;
  position: relative;
}

.dash-model-card-title {
  position: absolute;
  top: 16px;
  left: 18px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.dash-model-card-btn {
  position: absolute;
  bottom: 16px;
  left: 18px;
  background: transparent;
  color: #a78bfa;
  border: 1px solid #7c3aed;
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}
.dash-model-card-btn:hover { background: rgba(124,58,237,0.15); box-shadow: 0 0 14px rgba(124,58,237,0.25); transform: translateY(-1px); }

/* ── PAGE SHELL ── */
.page-shell {
  max-width: 1100px; margin: 0 auto; padding: 40px 24px;
}
.page-shell h1 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.page-shell p { color: #6b7280; font-size: 14px; margin-bottom: 24px; }
.page-shell-placeholder {
  background: #111; border: 1px solid #1f1f1f; border-radius: 14px;
  padding: 60px; text-align: center; color: #4b5563; font-size: 14px;
}

/* ── GALLERY ── */
.gallery-tabs {
  display: flex; gap: 4px; margin-bottom: 20px;
  border-bottom: 1px solid #1f1f1f;
}
.gallery-tab {
  padding: 10px 18px; font-size: 14px; font-weight: 600; color: #6b7280;
  cursor: pointer; border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  background: none; border-top: none; border-left: none; border-right: none;
}
.gallery-tab:hover { color: #d1d5db; }
.gallery-tab.active { color: #a78bfa; border-bottom-color: #7c3aed; }
.gallery-filters {
  display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap;
}
.gallery-filter {
  padding: 6px 14px; border-radius: 8px; font-size: 12px; font-weight: 600;
  background: #111; border: 1px solid #1f1f1f; color: #9ca3af;
  cursor: pointer; transition: all 0.2s;
}
.gallery-filter:hover { border-color: rgba(124,58,237,0.3); }
.gallery-filter.active { background: rgba(124,58,237,0.1); border-color: #7c3aed; color: #a78bfa; }
.gallery-empty { text-align: center; padding: 60px 20px; color: #4b5563; font-size: 14px; }

/* ── MOBILE ── */
@media (max-width: 768px) {
  .dash-nav-links { display: none; }
  .dash-hero { padding: 40px 16px 28px; }
  .dash-hero h1 { font-size: 28px; }
  .dash-model-card { flex: 0 0 85vw; min-height: 200px; }
  .dash-carousel-arrow { display: none; }
  .dash-search { margin-left: 16px; margin-right: 16px; }
}

/* ── FEATURE BANNERS ── */
.dash-features {
  max-width: 1400px;
  margin: 48px auto 0;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dash-feature-banner {
  background: #111;
  border: 1px solid #1f1f1f;
  border-radius: 20px;
  padding: 40px 44px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.35s, transform 0.3s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.dash-feature-banner:hover {
  border-color: rgba(124,58,237,0.4);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 24px rgba(124,58,237,0.06);
  transform: translateY(-3px);
}

/* Subtle gradient overlay */
.dash-feature-banner::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, transparent 30%, rgba(124,58,237,0.03) 70%);
  pointer-events: none;
}

.dash-feature-badge {
  display: inline-block;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.3);
  color: #a78bfa;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.dash-feature-title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 14px;
  max-width: 480px;
}

.dash-feature-desc {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.6;
  max-width: 440px;
  margin-bottom: 24px;
}

.dash-feature-btn {
  background: transparent;
  color: #a78bfa;
  border: 1px solid #7c3aed;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  z-index: 1;
}
.dash-feature-btn:hover {
  background: rgba(124,58,237,0.1);
  box-shadow: 0 0 16px rgba(124,58,237,0.2);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .dash-features { padding: 0 16px; margin-top: 32px; }
  .dash-feature-banner { padding: 28px 24px; }
  .dash-feature-title { font-size: 22px; }
}

/* ── PRICING SECTION ── */
.dash-pricing {
  max-width: 1200px;
  margin: 64px auto 48px;
  padding: 60px 24px;
  text-align: center;
  background: linear-gradient(180deg, rgba(124,58,237,0.03) 0%, transparent 100%);
  border-radius: 24px;
}

.dash-pricing-badge {
  display: inline-block;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.3);
  color: #a78bfa;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.dash-pricing-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  margin-bottom: 10px;
}
.dash-pricing-title em {
  font-style: italic;
  color: #a78bfa;
}

.dash-pricing-subtitle {
  color: #6b7280;
  font-size: 15px;
  margin-bottom: 40px;
}

.dash-pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
@media (max-width: 1024px) { .dash-pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .dash-pricing-grid { grid-template-columns: 1fr; } }

.dash-price-card {
  background: #111;
  border: 1px solid #1f1f1f;
  border-radius: 16px;
  padding: 28px 24px;
  text-align: left;
  position: relative;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.dash-price-card:hover {
  border-color: rgba(124,58,237,0.3);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  transform: translateY(-3px);
}
.dash-price-card.popular {
  border-color: #7c3aed;
  box-shadow: 0 4px 20px rgba(124,58,237,0.12);
}

.dash-price-popular-tag {
  position: absolute;
  top: -10px;
  right: 20px;
  background: #7c3aed;
  color: #fff;
  padding: 3px 12px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.dash-price-name {
  font-size: 15px;
  font-weight: 700;
  color: #d1d5db;
  margin-bottom: 12px;
}

.dash-price-amount {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 4px;
}
.dash-price-amount span {
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
}

.dash-price-credits {
  font-size: 13px;
  color: #a78bfa;
  font-weight: 600;
  margin-bottom: 18px;
}

.dash-price-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}
.dash-price-features li {
  font-size: 13px;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dash-price-features li::before {
  content: "✓";
  color: #7c3aed;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}

.dash-price-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 11px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s;
  background: transparent;
  color: #a78bfa;
  border: 1px solid #2a2a2a;
}
.dash-price-btn:hover {
  border-color: #7c3aed;
  box-shadow: 0 0 12px rgba(124,58,237,0.15);
  transform: translateY(-1px);
}
.dash-price-btn.filled {
  background: #7c3aed;
  color: #fff;
  border-color: #7c3aed;
}
.dash-price-btn.filled:hover {
  background: #6d28d9;
  box-shadow: 0 0 16px rgba(124,58,237,0.3);
}

.dash-pricing-link {
  color: #6b7280;
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s;
}
.dash-pricing-link:hover { color: #a78bfa; }

/* ── BENTO GRID SECTION ── */
.dash-bento-section {
  max-width: 1200px;
  margin: 64px auto 60px;
  padding: 0 24px;
  text-align: center;
}

.dash-bento-heading {
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 12px;
}
.dash-bento-heading em {
  font-style: italic;
  background: linear-gradient(135deg, #fff, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dash-bento-subtitle {
  color: #6b7280;
  font-size: 16px;
  margin-bottom: 40px;
}

.dash-bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 16px;
}

.dash-bento-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 200px;
  text-decoration: none;
  display: block;
  transition: transform 0.35s, box-shadow 0.35s, border-color 0.3s;
  border: 1px solid #1f1f1f;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.dash-bento-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 12px 36px rgba(0,0,0,0.5), 0 0 20px rgba(124,58,237,0.06);
  border-color: rgba(124,58,237,0.3);
}

.dash-bento-card.large {
  grid-row: span 2;
  min-height: 420px;
}

.dash-bento-bg {
  position: absolute;
  inset: 0;
}

.dash-bento-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  z-index: 1;
}

.dash-bento-tag {
  display: inline-block;
  background: rgba(124,58,237,0.2);
  border: 1px solid rgba(124,58,237,0.3);
  color: #a78bfa;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.dash-bento-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.dash-bento-card-desc {
  font-size: 13px;
  color: #9ca3af;
}

@media (max-width: 768px) {
  .dash-bento-grid { grid-template-columns: 1fr; }
  .dash-bento-card.large { grid-row: span 1; min-height: 220px; }
  .dash-bento-card { min-height: 180px; }
}
