/* =========================================================
   SellLink main.css
   - Global / Reset
   - Marketing site (index)
   - Auth pages (login / signup)
   - Dashboard layout + sidebar
   - Custom store dropdown
   ========================================================= */

/* -------------------- ROOT & RESET -------------------- */

:root {
  --bg-main: #05070b;
  --bg-card: #0f1218;
  --bg-soft: #141823;
  --bg-soft-alt: #10131d;

  --accent: #e53935;
  --accent-soft: rgba(229, 57, 53, 0.16);

  --text-main: #ffffff;
  --text-muted: #a4a9b7;
  --border-soft: #262b36;

  --radius-lg: 18px;
  --radius-xl: 26px;

  --shadow-soft: 0 22px 60px rgba(0, 0, 0, 0.6);
  --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.55);

  --transition: all 0.25s ease;
}

/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top left, #1b1f2c 0, #05070b 55%);
  color: var(--text-main);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

/* -------------------- BRAND LOGO -------------------- */

.brand-logo-img {
  height: 52px;               /* Bigger logo on nav/auth pages */
  width: auto;
  object-fit: contain;
}

/* -------------------- BUTTONS -------------------- */

.btn {
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: var(--transition);
  background: transparent;
  color: var(--text-main);
}

.btn-primary {
  background: linear-gradient(135deg, #ff5252, #d50000);
  box-shadow: 0 14px 30px rgba(229, 57, 53, 0.55);
}

.btn-primary:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(229, 57, 53, 0.7);
}

.btn-ghost {
  border-color: #343847;
  color: var(--text-muted);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.01);
}

/* =========================================================
   MARKETING SITE (Navbar / Hero / Sections)
   ========================================================= */

/* NAVBAR (top on marketing + auth pages) */
.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(5, 7, 11, 0.92), rgba(5, 7, 11, 0.82));
  border-bottom: 1px solid rgba(50, 53, 64, 0.7);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  font-size: 0.9rem;
}

.nav-links a {
  color: var(--text-muted);
  position: relative;
}

.nav-links a:hover {
  color: #ffffff;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

/* MOBILE NAV TOGGLE */
.nav-toggle {
  display: none;
  padding: 0.5rem;
  border-radius: 999px;
  border: 1px solid #333849;
  background: rgba(10, 12, 20, 0.9);
}

.nav-toggle span {
  display: block;
  width: 17px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
  margin: 3px 0;
}

/* SECTION HEADERS */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: 2.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.section-subtitle {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0.5rem auto 0;
}

/* HERO */
.hero {
  padding: 4.5rem 0 4rem;
}

.hero-inner {
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.18rem 0.7rem;
  border-radius: 999px;
  background: rgba(14, 182, 129, 0.08);
  border: 1px solid rgba(25, 216, 151, 0.35);
  font-size: 0.75rem;
  color: #84f0c8;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 1rem;
}

.hero-title span {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 1.7rem;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 1.3rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-meta strong {
  color: #ffffff;
  font-size: 0.9rem;
}

/* HERO CARD */
.hero-card {
  background: radial-gradient(circle at 0 0, #23283b 0, #10131d 38%, #05070b 100%);
  border-radius: 26px;
  padding: 1.6rem 1.6rem 1.4rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(63, 70, 91, 0.9);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  opacity: 0.12;
  background:
    radial-gradient(circle at 0 0, #ff6f6f, transparent 55%),
    radial-gradient(circle at 100% 0, #f4511e, transparent 55%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.1rem;
  position: relative;
  z-index: 1;
}

.hero-card-title {
  font-size: 0.9rem;
  color: #e3e7ff;
}

.hero-chip {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(4, 214, 174, 0.16);
  border: 1px solid rgba(0, 230, 118, 0.6);
  font-size: 0.7rem;
  color: #95ffd1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0.7rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

.hero-metric-row strong {
  color: #ffffff;
  font-size: 1.05rem;
}

.hero-progress {
  margin-top: 1.2rem;
  position: relative;
  z-index: 1;
}

.hero-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.hero-progress-bar {
  position: relative;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(8, 11, 22, 0.9);
  overflow: hidden;
}

.hero-progress-fill {
  position: absolute;
  inset: 0;
  width: 76%;
  background: linear-gradient(90deg, #4caf50, #ffeb3b, #ff5722);
}

.hero-badges {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

.badge-soft {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(103, 114, 149, 0.8);
  background: rgba(3, 6, 14, 0.85);
}

/* FEATURES GRID */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.3rem;
  border: 1px solid var(--border-soft);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(229, 57, 53, 0.6);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
}

.feature-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

.feature-title {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.feature-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* STEPS */
.steps-grid {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.2rem;
  border: 1px solid var(--border-soft);
  position: relative;
  overflow: hidden;
}

.step-number {
  font-size: 0.85rem;
  opacity: 0.6;
  margin-bottom: 0.4rem;
}

.step-title {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.step-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* PRICING */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.pricing-card {
  background: var(--bg-card);
  border-radius: 22px;
  border: 1px solid var(--border-soft);
  padding: 1.6rem 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.pricing-card.highlight {
  border-color: var(--accent);
  box-shadow: 0 20px 50px rgba(229, 57, 53, 0.6);
  transform: translateY(-3px);
  background: radial-gradient(circle at 0 0, rgba(229, 57, 53, 0.12), var(--bg-card));
}

.pricing-name {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 0.4rem;
}

.pricing-price span {
  font-size: 1.8rem;
  font-weight: 600;
}

.pricing-period {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.pricing-tagline {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.pricing-features {
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.pricing-features li {
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pricing-features li::before {
  content: "•";
  font-size: 1.1rem;
  color: #7ad7a5;
}

.pricing-card .btn {
  margin-top: auto;
  width: 100%;
  justify-content: center;
}

/* FAQ */
.faq-grid {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  background: var(--bg-soft);
  margin-bottom: 0.7rem;
  overflow: hidden;
}

.faq-question {
  padding: 0.95rem 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
}

.faq-toggle {
  font-size: 1.2rem;
  opacity: 0.7;
  transition: transform 0.2s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  font-size: 0.86rem;
  color: var(--text-muted);
  padding: 0 1rem;
}

.faq-answer-inner {
  padding: 0.3rem 0 0.9rem;
}

.faq-item.open .faq-answer {
  max-height: 260px;
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
}

/* CTA FOOTER */
.cta-banner {
  background: radial-gradient(circle at 0 0, rgba(229, 57, 53, 0.2), #111421 55%);
  border-radius: 26px;
  padding: 2.1rem 2rem;
  border: 1px solid rgba(229, 57, 53, 0.5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.7);
}

.cta-title {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}

.cta-text {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* FOOTER */
footer {
  padding: 2.6rem 0 2rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: #ffffff;
}

/* =========================================================
   AUTH PAGES (login.html / signup.html)
   ========================================================= */

.auth-section {
  min-height: calc(100vh - 72px); /* nav height guess */
  display: flex;
  align-items: center;
}

.auth-wrapper {
  max-width: 420px;
  margin: 2rem auto;
  background: var(--bg-card);
  border-radius: 26px;
  padding: 2.2rem 2rem 2rem;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
}

.auth-title {
  font-size: 1.6rem;
  margin-bottom: 1.4rem;
}

.auth-fields {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.4rem;
}

.auth-input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #272b3b;
  background: #05070b;
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.auth-input::placeholder {
  color: #6c7385;
}

.auth-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(229, 57, 53, 0.6);
}

.auth-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.8rem;
}

.auth-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.auth-meta a {
  color: #ff8f8f;
}

.auth-meta a:hover {
  text-decoration: underline;
}

/* Auth message / toast */
.auth-message {
  font-size: 0.8rem;
  margin-top: 0.4rem;
  min-height: 1em;
}

.auth-message.error {
  color: #ff6f6f;
}

.auth-message.success {
  color: #85f5b8;
}

/* =========================================================
   DASHBOARD LAYOUT
   ========================================================= */

/* Wrapper: apply to <body class="dashboard-body"> or main container */
.dashboard-body {
  background: radial-gradient(circle at top left, #161a25 0, #05070b 55%);
}

/* Layout: sidebar + main */
.dashboard-page {
  display: flex;
  min-height: 100vh;
}

/* ---------- Sidebar ---------- */

.sidebar {
  width: 230px;
  background: #05070b;
  border-right: 1px solid #141827;
  display: flex;
  flex-direction: column;
  padding: 1rem 1rem 0.75rem;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 1.5rem;
}

.sidebar-logo img {
  height: 34px;  /* bigger logo on dashboard sidebar */
  width: auto;
}

/* if you had text next to logo and want it hidden */
.sidebar-logo-text {
  display: none;
}

/* Store switcher & navigation */
.sidebar-top-group {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Store switcher (uses .store-switcher + .select-menu below) */
.store-switcher {
  position: relative;
}

.store-switcher-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 999px;
  border: 1px solid #262b36;
  background: #0a0d15;
  padding: 0.5rem 0.8rem;
  font-size: 0.86rem;
  color: var(--text-main);
  cursor: pointer;
}

.store-switcher-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* simple chevron */
.store-switcher-trigger::after {
  content: "";
  border-style: solid;
  border-width: 5px 4px 0 4px;
  border-color: #7c8398 transparent transparent transparent;
  margin-left: 0.3rem;
}

/* Sidebar nav */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  font-size: 0.86rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.sidebar-link:hover {
  background: #10131d;
  color: #ffffff;
}

.sidebar-link.active {
  background: linear-gradient(135deg, #151c2b, #121725);
  color: #ffffff;
  border-left: 3px solid var(--accent);
  padding-left: 0.55rem;
}

/* Sidebar account area (bottom) */
.sidebar-account {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid #141827;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.sidebar-account-email {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* logout button next to email */
.sidebar-logout-btn {
  border-radius: 999px;
  border: 1px solid #272b3b;
  background: #0a0d15;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.sidebar-logout-btn:hover {
  border-color: var(--accent);
  background: #1a1012;
}

/* you can put SVG or simple "⟲" char inside; CSS just handles the circle */

/* ---------- Dashboard main content ---------- */

.dashboard-main {
  flex: 1;
  padding: 1.5rem 1.75rem 2rem;
}

/* Top bar (page title + filters) */
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.4rem;
}

.dashboard-title-group h1 {
  font-size: 1.4rem;
  margin-bottom: 0.15rem;
}

.dashboard-title-group p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* date range buttons container */
.dashboard-filters {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chip-toggle {
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.78rem;
  border: 1px solid #262b36;
  background: #05070b;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.chip-toggle.active,
.chip-toggle:hover {
  color: #ffffff;
  border-color: var(--accent);
  background: #151019;
}

/* Metric cards row */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  margin-bottom: 1.5rem;
}

.metric-card {
  background: var(--bg-card);
  border-radius: 22px;
  padding: 1rem 1rem 0.9rem;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
}

.metric-card-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.metric-card-value {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.metric-card-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Main content grid (chart + side widgets) */
.dashboard-grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 1.1rem;
  margin-bottom: 1.5rem;
}

/* Generic card for dashboard */
.dashboard-card {
  background: var(--bg-card);
  border-radius: 22px;
  padding: 1.1rem 1rem 1rem;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
}

.dashboard-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.7rem;
}

.dashboard-card-title {
  font-size: 0.9rem;
}

.dashboard-card-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* chart container */
.chart-placeholder {
  height: 260px;
  border-radius: 14px;
  background: #05070b;
  border: 1px dashed #262b36;
}

/* Latest orders table stub */
.table-simple {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.table-simple thead {
  text-align: left;
  color: var(--text-muted);
}

.table-simple th,
.table-simple td {
  padding: 0.4rem 0.15rem;
  border-bottom: 1px solid #141827;
}

/* Form card (used on product page) */
.form-card {
  background: var(--bg-card);
  border-radius: 18px;
  border: 1px solid var(--border-soft);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

/* inputs inside dashboard main */
.dashboard-input,
.form-card input,
.form-card textarea,
.form-card select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  border: 1px solid #272b3b;
  background: #05070b;
  color: var(--text-main);
  font-size: 0.84rem;
  outline: none;
  transition: var(--transition);
}

.dashboard-input:focus,
.form-card input:focus,
.form-card textarea:focus,
.form-card select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(229, 57, 53, 0.5);
}

.form-card textarea {
  resize: vertical;
  min-height: 90px;
}

/* =========================================================
   CUSTOM STORE DROPDOWN (.select-menu)
   ========================================================= */

/* The dropdown menu itself */
.select-menu {
  position: absolute;
  top: 110%;
  left: 0;
  min-width: 210px;
  background: #05070b;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.75);
  border: 1px solid #202432;
  padding: 0.3rem;
  display: none;           /* shown when parent has .open */
  flex-direction: column;
  z-index: 60;
}

.select.open .select-menu,
.store-switcher.open .select-menu {
  display: flex;
}

.select-menu button {
  border: none;
  background: transparent;
  color: #d5dcff;
  text-align: left;
  font-size: 0.82rem;
  padding: 0.45rem 0.7rem;
  border-radius: 0.55rem;
  cursor: pointer;
  transition: var(--transition);
}

.select-menu button:hover {
  background: #14182a;
}

.select-menu button[data-action="create-store"] {
  color: #ff8a80;
  font-weight: 500;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 3.4rem;
  }

  .feature-grid,
  .steps-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metrics-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-page {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    flex-direction: row;
    align-items: center;
    border-right: none;
    border-bottom: 1px solid #141827;
  }

  .sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .sidebar-account {
    margin-top: 0;
    margin-left: auto;
    border-top: none;
    padding-top: 0;
  }
}

@media (max-width: 720px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .navbar-menu-open .nav-links,
  .navbar-menu-open .nav-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    padding: 0.6rem 0 0.8rem;
  }

  .navbar-inner {
    flex-wrap: wrap;
  }

  .feature-grid,
  .steps-grid,
  .pricing-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta-banner {
    padding: 1.7rem 1.4rem;
  }

  .auth-wrapper {
    margin-inline: auto;
  }
}
/* =========================================================
   SELLINK DASHBOARD
   ========================================================= */

.dash-body {
  background: radial-gradient(circle at top left, #11131c 0, #05070b 55%);
  color: #f5f7ff;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
}

/* Shell layout */
.dash-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: 100vh;
}

/* Sidebar */
.dash-sidebar {
  background: #05060a;
  border-right: 1px solid rgba(72, 80, 99, 0.8);
  padding: 1.25rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(72, 80, 99, 0.7);
}

.sidebar-logo-img {
  height: 30px;
  width: auto;
  object-fit: contain;
}

/* Store switcher */
.sidebar-store {
  margin-top: 0.6rem;
  position: relative;
}

.store-switcher {
  width: 100%;
  border-radius: 999px;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(103, 114, 149, 0.9);
  background: #0b0d13;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #d5dbff;
  cursor: pointer;
}

.store-switcher:hover {
  border-color: #f34e4e;
}

.store-switcher-caret {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #8891ba;
}

.store-menu {
  position: absolute;
  top: 120%;
  left: 0;
  right: 0;
  background: #0b0d13;
  border-radius: 14px;
  border: 1px solid rgba(86, 96, 130, 0.9);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
  padding: 0.35rem;
  display: none;
  z-index: 30;
}

.store-menu.open {
  display: block;
}

.store-menu button {
  width: 100%;
  border: none;
  background: transparent;
  color: #d5dbff;
  font-size: 0.8rem;
  text-align: left;
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  cursor: pointer;
}

.store-menu button:hover {
  background: rgba(243, 78, 78, 0.15);
}

/* Nav */
.sidebar-nav {
  margin-top: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sidebar-nav .nav-item {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.55rem 0.8rem;
  background: #080a10;
  color: #c1c6df;
  font-size: 0.83rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.18s ease;
}

.sidebar-nav .nav-item span {
  pointer-events: none;
}

.sidebar-nav .nav-item:hover {
  background: #10131f;
}

.sidebar-nav .nav-item.is-active {
  background: linear-gradient(135deg, #ff5252, #d50000);
  border-color: rgba(255, 116, 116, 0.95);
  color: #fff;
  box-shadow: 0 12px 30px rgba(229, 57, 53, 0.6);
}

/* Sidebar footer */
.sidebar-footer {
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(72, 80, 99, 0.7);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.76rem;
  color: #a5accb;
}

.user-email {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 140px;
}

.logout-btn {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(197, 82, 82, 0.95);
  background: radial-gradient(circle at 30% 0, #ff7a74 0, #c91111 60%);
  cursor: pointer;
  position: relative;
}

.logout-btn::before,
.logout-btn::after {
  content: "";
  position: absolute;
  background: #fff;
  border-radius: 999px;
}

.logout-btn::before {
  width: 10px;
  height: 2px;
  left: 7px;
  top: 50%;
  transform: translateY(-50%);
}

.logout-btn::after {
  width: 2px;
  height: 8px;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
}

/* Main area */
.dash-main {
  padding: 1.5rem 1.8rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

/* Topbar */
.dash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.page-title {
  font-size: 1.45rem;
  font-weight: 600;
}

.page-subtitle {
  font-size: 0.85rem;
  color: #a3aac6;
}

.time-range {
  display: inline-flex;
  gap: 0.4rem;
}

.range-pill {
  border-radius: 999px;
  border: 1px solid #34374b;
  background: #080b14;
  padding: 0.3rem 0.8rem;
  font-size: 0.78rem;
  color: #bcc3e1;
  cursor: pointer;
  transition: all 0.15s ease;
}

.range-pill:hover {
  border-color: rgba(255, 121, 121, 0.8);
}

.range-pill.is-active {
  background: #f34e4e;
  border-color: #ff9e9e;
  color: #fff;
}

/* Views */
.dash-view {
  display: none;
}

.dash-view.is-visible {
  display: block;
}

/* Stat cards */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.stat-card {
  background: radial-gradient(circle at top left, rgba(255, 82, 82, 0.18), #111321 60%);
  border-radius: 18px;
  border: 1px solid rgba(63, 70, 91, 0.9);
  padding: 1rem 1.2rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
}

.stat-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #a3aac6;
  margin-bottom: 0.4rem;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.stat-caption {
  font-size: 0.8rem;
  color: #8f96b3;
}

/* Overview grid */
.overview-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
  gap: 1rem;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 500;
}

.card-subtitle {
  font-size: 0.78rem;
  color: #8a92b0;
}

.chart-card,
.table-card {
  background: #0c0f19;
  border-radius: 18px;
  border: 1px dashed rgba(84, 93, 125, 0.9);
  padding: 1rem 1.2rem 1.2rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
}

.chart-placeholder {
  border-radius: 14px;
  border: 1px dashed rgba(84, 93, 125, 0.5);
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #626a8b;
  font-size: 0.83rem;
}

/* Table */
.table-wrapper {
  border-radius: 14px;
  border: 1px solid rgba(66, 74, 104, 0.9);
  overflow: hidden;
}

.table-wrapper table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.table-wrapper thead {
  background: #141829;
}

.table-wrapper th,
.table-wrapper td {
  padding: 0.5rem 0.75rem;
  text-align: left;
}

.table-wrapper tbody tr:nth-child(even) {
  background: #0f1220;
}

.empty-row {
  text-align: center;
  color: #7e86a9;
}

/* Shared surface for cards in other views */
.card-surface {
  background: #0e111c;
  border-radius: 18px;
  border: 1px solid rgba(63, 70, 91, 0.9);
  padding: 1rem 1.2rem;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.7);
}

/* Products view */
.view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}

.view-header h2 {
  font-size: 1.05rem;
}

.product-form {
  margin-bottom: 1rem;
  display: none;
}

.product-form.is-open {
  display: block;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.85rem;
}

.form-field label {
  font-size: 0.8rem;
  color: #c5c9e4;
}

.form-field input,
.form-field textarea,
.form-field select {
  border-radius: 10px;
  border: 1px solid #3b4159;
  background: #050711;
  color: #e5e7ff;
  font-size: 0.82rem;
  padding: 0.45rem 0.55rem;
}

.form-field textarea {
  resize: vertical;
}

.field-hint {
  font-size: 0.75rem;
  color: #858daf;
}

.form-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.8rem;
}

.product-card-main {
  margin-bottom: 0.5rem;
}

.product-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.product-title-row h3 {
  font-size: 0.9rem;
}

.product-price {
  font-size: 0.9rem;
  font-weight: 500;
  color: #ffc96b;
}

.product-description {
  font-size: 0.8rem;
  color: #a0a7c6;
}

.product-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #868eb0;
}

/* Empty state */
.empty-state {
  margin-top: 1.3rem;
  font-size: 0.82rem;
  color: #7f86ab;
  text-align: center;
}

/* Buttons reuse existing .btn but tweak for dash */
.btn {
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-size: 0.82rem;
}

/* Responsive */
@media (max-width: 960px) {
  .dash-shell {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .sidebar-nav .nav-item span {
    display: none;
  }

  .store-switcher span:first-child {
    display: none;
  }

  .user-email {
    display: none;
  }
}

@media (max-width: 780px) {
  .stats-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .overview-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .dash-topbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =======================================================
   DASHBOARD LAYOUT AND STYLING
   ======================================================= */

/* Body on dashboard pages */
.dashboard-body {
  background: #05070b;
  color: #ffffff;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
}

/* Two-column layout: sidebar + main */
.dash-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

/* ---------------- SIDEBAR ---------------- */

.dash-sidebar {
  background: #05070b;
  border-right: 1px solid #181b26;
  display: flex;
  flex-direction: column;
  padding: 1.2rem 1.1rem;
}

.dash-sidebar-top {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* big logo in sidebar */
.dash-logo {
  padding-bottom: 0.5rem;
}

.dash-logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

/* store switcher button */
.store-switcher {
  width: 100%;
  border-radius: 999px;
  border: 1px solid #232634;
  background: #10131c;
  color: #e1e5f4;
  padding: 0.55rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  cursor: pointer;
}

.store-switcher:hover {
  border-color: #ff5252;
  background: #151926;
}

.store-switcher-chevron {
  font-size: 0.7rem;
  opacity: 0.8;
}

/* sidebar nav */
.dash-nav {
  margin-top: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dash-nav-item {
  width: 100%;
  text-align: left;
  border-radius: 0.8rem;
  border: 1px solid transparent;
  background: transparent;
  color: #c3c7d6;
  font-size: 0.85rem;
  padding: 0.5rem 0.85rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.dash-nav-item:hover {
  background: #151926;
  border-color: #232634;
  color: #ffffff;
}

.dash-nav-item.active {
  background: #181c2a;
  border-color: #ff5252;
  color: #ffffff;
}

/* bottom account block: email + logout icon */
.dash-sidebar-bottom {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid #181b26;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.78rem;
}

.sidebar-email {
  color: #a4a9b7;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-logout-btn {
  border: none;
  border-radius: 999px;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #141825;
  color: #f87171;
  cursor: pointer;
  font-size: 0.9rem;
}

.sidebar-logout-btn:hover {
  background: #1b2133;
}

/* ---------------- MAIN AREA ---------------- */

.dash-main {
  padding: 1.5rem 2.2rem;
  overflow-y: auto;
}

/* header row: title + range buttons */
.dash-main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.4rem;
}

.dash-page-title {
  font-size: 1.6rem;
  margin: 0;
}

.dash-page-subtitle {
  margin: 0.25rem 0 0;
  color: #a4a9b7;
  font-size: 0.85rem;
}

/* time range buttons */
.range-switcher {
  display: inline-flex;
  gap: 0.4rem;
  background: #05070b;
}

.range-btn {
  border-radius: 999px;
  border: 1px solid #242838;
  background: #111421;
  color: #d0d4e4;
  font-size: 0.78rem;
  padding: 0.35rem 0.9rem;
  cursor: pointer;
}

.range-btn:hover {
  border-color: #ff5252;
}

.range-btn.active {
  background: #ff5252;
  border-color: #ff5252;
  color: #ffffff;
}

/* top metrics cards */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  margin-bottom: 1.4rem;
}

.metric-card {
  background: #10131c;
  border-radius: 1rem;
  border: 1px solid #1c1f2c;
  padding: 1rem 1.1rem;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
}

.metric-label {
  font-size: 0.78rem;
  color: #9ca2b4;
  margin-bottom: 0.4rem;
}

.metric-value {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.metric-sub {
  font-size: 0.75rem;
  color: #848aa0;
}

/* middle row: chart + recent orders */
.overview-row {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.4fr);
  gap: 1.1rem;
}

.overview-card {
  background: #10131c;
  border-radius: 1rem;
  border: 1px solid #1c1f2c;
  padding: 1rem 1.1rem 1.1rem;
}

.overview-card-header {
  margin-bottom: 0.7rem;
}

.overview-title {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.1rem;
}

.overview-sub {
  font-size: 0.75rem;
  color: #848aa0;
}

/* placeholder chart box */
.chart-placeholder {
  margin-top: 0.3rem;
  height: 220px;
  border-radius: 0.85rem;
  border: 1px dashed #2a2e3d;
  background: radial-gradient(circle at top, #181b2b 0, #05070b 60%);
}

/* recent orders table */
.orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.orders-table thead {
  color: #848aa0;
}

.orders-table th,
.orders-table td {
  text-align: left;
  padding: 0.45rem 0.45rem 0.45rem 0;
  border-bottom: 1px solid #181b26;
}

.orders-empty {
  text-align: center;
  padding: 1.1rem 0;
  color: #848aa0;
}

/* views hidden / shown by JS */
.dash-view {
  /* default style; JS toggles display */
}

/* ---------------- RESPONSIVE ---------------- */

@media (max-width: 960px) {
  .dash-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .metrics-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .dash-layout {
    grid-template-columns: 1fr;
  }

  .dash-sidebar {
    min-height: auto;
    border-right: none;
    border-bottom: 1px solid #181b26;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .dash-sidebar-top {
    flex-direction: row;
    align-items: center;
  }

  .dash-nav {
    flex-direction: row;
    margin-top: 0;
  }

  .dash-main {
    padding: 1.2rem 1.2rem 2rem;
  }

  .dash-sidebar-bottom {
    display: none;
  }
}
