/* ——— IdeaMarket design tokens (public site) ——— */
:root {
  --im-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* Flipkart-inspired marketplace blues + CTA orange */
  --fk-blue: #2874f0;
  --fk-blue-dark: #1a5fd1;
  --fk-cta: #fb641b;
  --fk-cta-hover: #e85b00;
  --fk-bg: #f1f3f6;
  --fk-text: #212121;
  --fk-muted: #878787;
  --fk-border: #e0e0e0;
  --fk-card-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.08);
  --im-primary: #2874f0;
  --im-primary-hover: #1a5fd1;
  --seller-sidebar-start: #0c1e35;
  --seller-sidebar-mid: #152a4a;
  --seller-sidebar-end: #0d47a1;
  --im-accent: #7c3aed;
  --im-text: #0f172a;
  --im-muted: #64748b;
  --im-border: rgba(15, 23, 42, 0.08);
  --im-radius: 12px;
  --im-radius-lg: 16px;
  --im-shadow: 0 12px 40px rgba(2, 6, 23, 0.08);
  --im-focus: rgba(37, 99, 235, 0.35);
}

html {
  font-size: 14px;
  height: 100%;
  position: relative;
  min-height: 100%;
}

body.app-body {
  min-height: 100%;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  font-family: var(--im-font);
  color: var(--im-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Flipkart-style page shell (light grey canvas, crisp header) */
body.app-body.fk-store {
  background: var(--fk-bg) !important;
  color: var(--fk-text);
}

body[data-theme="dark"].app-body.fk-store {
  background: #0b1120 !important;
  color: #e2e8f0;
}

body.app-body.fk-store .text-muted {
  color: var(--fk-muted) !important;
}

.app-main-wrap {
  flex: 1 0 auto;
}

.site-footer {
  flex-shrink: 0;
}

/* Brand */
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 4px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-bottom: none;
  border-right: none;
  transform: rotate(-12deg);
  opacity: 0.95;
}
.brand-mark--sm {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}
.brand-mark--sm::after {
  inset: 6px;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-name {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--im-text);
}
.brand-tagline {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--im-muted);
}

.navbar .navbar-brand:hover .brand-name {
  color: var(--im-primary);
}

/* Nav links */
.nav-link-im {
  font-weight: 500;
  color: #334155 !important;
  border-radius: 10px;
  padding: 0.5rem 0.65rem !important;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.nav-link-im:hover {
  background: rgba(37, 99, 235, 0.06);
  color: var(--im-primary) !important;
}
.nav-link-im.active {
  background: rgba(37, 99, 235, 0.12);
  color: var(--im-primary) !important;
  font-weight: 600;
}
.nav-link-admin {
  color: #b91c1c !important;
}
.nav-link-admin:hover,
.nav-link-admin.active {
  background: rgba(239, 68, 68, 0.1) !important;
  color: #991b1b !important;
}

body[data-theme="dark"] .navbar .brand-name {
  color: #f1f5f9;
}
body[data-theme="dark"] .navbar .brand-tagline {
  color: #94a3b8;
}
body[data-theme="dark"] .nav-link-im {
  color: #cbd5e1 !important;
}
body[data-theme="dark"] .nav-link-im:hover {
  background: rgba(59, 130, 246, 0.14);
  color: #fff !important;
}
body[data-theme="dark"] .nav-link-im.active {
  background: rgba(59, 130, 246, 0.22);
  color: #fff !important;
}
body[data-theme="dark"] .nav-link-admin {
  color: #fca5a5 !important;
}
body[data-theme="dark"] .nav-link-admin:hover,
body[data-theme="dark"] .nav-link-admin.active {
  background: rgba(239, 68, 68, 0.18) !important;
  color: #fecaca !important;
}

.nav-search-wrap {
  min-width: 0;
  max-width: 520px;
}
@media (max-width: 991px) {
  .nav-search-wrap .input-group {
    width: 100%;
  }
  .nav-search-wrap .form-control {
    min-width: 0 !important;
  }
}

.navbar-actions .nav-link {
  border-radius: 10px;
}

/* Footer */
.footer-heading {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.95);
}
.footer-brand-name {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: #f1f5f9;
}
.footer-links li {
  margin-bottom: 0.45rem;
}
.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.15s ease;
}
.footer-links a:hover {
  color: #fff;
}
.footer-social-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #cbd5e1;
  font-size: 1.1rem;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.footer-social-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: translateY(-2px);
}
.footer-rule {
  border-color: rgba(148, 163, 184, 0.2) !important;
  opacity: 1;
}

/* Auth pages */
.auth-page {
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.auth-card {
  border-radius: var(--im-radius-lg) !important;
  border: 1px solid var(--im-border) !important;
  box-shadow: var(--im-shadow) !important;
  overflow: hidden;
}
.auth-card .card-body {
  padding: 1.75rem 1.75rem 1.5rem;
}
@media (min-width: 576px) {
  .auth-card .card-body {
    padding: 2rem 2rem 1.75rem;
  }
}
.auth-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--im-muted);
  margin-bottom: 0.35rem;
}
.auth-title {
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.65rem;
  margin-bottom: 0.5rem;
}
.auth-card .form-control {
  border-radius: 10px;
  padding: 0.6rem 0.85rem;
}
.auth-card .btn-primary {
  border-radius: 10px;
  font-weight: 600;
  padding: 0.6rem 1rem;
}

body[data-theme="dark"] .auth-card {
  background: rgba(15, 23, 42, 0.88) !important;
  border: 1px solid rgba(71, 85, 105, 0.45) !important;
  color: #e2e8f0;
}
body[data-theme="dark"] .auth-title {
  color: #f8fafc;
}
body[data-theme="dark"] .auth-card .form-control {
  background: #0f172a;
  border-color: rgba(100, 116, 139, 0.5);
  color: #e2e8f0;
}
body[data-theme="dark"] .auth-card .form-label {
  color: #cbd5e1;
}
body[data-theme="dark"] .auth-card .input-group .btn-password-toggle {
  border-color: rgba(100, 116, 139, 0.5);
  color: #cbd5e1;
}
body[data-theme="dark"] .auth-card .input-group .btn-password-toggle:hover {
  background: rgba(124, 58, 237, 0.15);
  color: #e9d5ff;
  border-color: rgba(167, 139, 250, 0.45);
}

.login-portal-nav-links a {
  color: var(--fk-blue);
  font-weight: 600;
}
.login-portal-nav-links a:hover {
  text-decoration: underline !important;
  color: var(--fk-blue-dark);
}

/* Password field + show/hide toggle */
.auth-card .input-group > .form-control {
  border-radius: 0;
}
.auth-card .input-group > .form-control:first-child {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}
.auth-card .input-group > .btn:last-child {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  border-color: var(--im-border, #dee2e6);
}
.auth-card .input-group .btn-password-toggle {
  color: var(--fk-text, #334155);
}
.auth-card .input-group .btn-password-toggle:hover {
  background: rgba(40, 116, 240, 0.08);
  color: var(--fk-blue);
  border-color: var(--fk-blue);
}

.admin-login-card .input-group > .form-control:first-child {
  border-top-left-radius: 0.5rem;
  border-bottom-left-radius: 0.5rem;
}
.admin-login-card .input-group > .btn:last-child {
  border-top-right-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
}
.admin-login-card .input-group .btn-password-toggle:hover {
  background: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
}

/* Inner pages — shared cards & prose */
.content-card {
  border-radius: var(--im-radius-lg) !important;
  border: 1px solid var(--im-border) !important;
  box-shadow: var(--im-shadow) !important;
  background: #fff;
  overflow: hidden;
}
body[data-theme="dark"] .content-card {
  background: rgba(15, 23, 42, 0.78) !important;
  border-color: rgba(71, 85, 105, 0.45) !important;
  color: #e2e8f0;
}

body[data-theme="dark"] .content-card .form-control,
body[data-theme="dark"] .content-card .form-select,
body[data-theme="dark"] .content-card textarea {
  background-color: #0f172a !important;
  color: #e2e8f0 !important;
  border-color: rgba(100, 116, 139, 0.5);
}

body[data-theme="dark"] .content-card .form-control::placeholder {
  color: rgba(203, 213, 225, 0.5);
}

body[data-theme="dark"] .content-card .profile-business-block.bg-light-subtle {
  background-color: rgba(30, 41, 59, 0.55) !important;
  border-color: rgba(71, 85, 105, 0.45) !important;
}
body[data-theme="dark"] .content-card .card-header {
  background: rgba(2, 6, 23, 0.35) !important;
  border-color: rgba(71, 85, 105, 0.45) !important;
  color: #e2e8f0;
}

.page-head {
  margin-bottom: 1.75rem;
}
.page-head .auth-eyebrow {
  margin-bottom: 0.35rem;
}
.page-head .auth-title {
  margin-bottom: 0.35rem;
}

.letter-spacing-1 {
  letter-spacing: 0.06em;
}

.page-prose {
  line-height: 1.7;
  color: var(--im-text);
}
.page-prose h2,
.page-prose h5 {
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}
body[data-theme="dark"] .page-prose {
  color: #e2e8f0;
}

.table-card .table {
  margin-bottom: 0;
}
.table-card thead th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  border-bottom-width: 1px;
}
body[data-theme="dark"] .table-card .table {
  color: #e2e8f0;
}
body[data-theme="dark"] .table-card thead th {
  color: #94a3b8;
}
body[data-theme="dark"] .table-card .table-light {
  --bs-table-bg: rgba(30, 41, 59, 0.9);
  color: #e2e8f0;
  border-color: rgba(71, 85, 105, 0.5);
}

.order-action-icon {
  width: 2.125rem;
  height: 2.125rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.notification-stack .list-group-item {
  border-radius: var(--im-radius) !important;
  margin-bottom: 0.5rem;
  border: 1px solid var(--im-border) !important;
}
body[data-theme="dark"] .notification-stack .list-group-item {
  background: rgba(15, 23, 42, 0.78);
  border-color: rgba(71, 85, 105, 0.45) !important;
  color: #e2e8f0;
}
body[data-theme="dark"] .notification-stack .list-group-item.bg-light {
  background: rgba(59, 130, 246, 0.12) !important;
}

.stat-pill-card {
  border-radius: var(--im-radius-lg);
  border: 1px solid var(--im-border);
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.stat-pill-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(2, 6, 23, 0.1);
}
body[data-theme="dark"] .stat-pill-card {
  background: rgba(15, 23, 42, 0.78);
  border-color: rgba(71, 85, 105, 0.45);
}

.error-hero {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem 1rem;
  border-radius: var(--im-radius-lg);
  border: 1px solid var(--im-border);
  box-shadow: var(--im-shadow);
  background: #fff;
}
body[data-theme="dark"] .error-hero {
  background: rgba(15, 23, 42, 0.88);
  border-color: rgba(71, 85, 105, 0.45);
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* Premium background */
body {
  background:
    radial-gradient(1000px circle at 15% -10%, rgba(124, 58, 237, 0.10), transparent 55%),
    radial-gradient(900px circle at 85% 10%, rgba(37, 99, 235, 0.10), transparent 55%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.03), rgba(2, 6, 23, 0) 22%),
    #ffffff;
}

body[data-theme="dark"] {
  background:
    radial-gradient(1000px circle at 15% -10%, rgba(124, 58, 237, 0.18), transparent 55%),
    radial-gradient(900px circle at 85% 10%, rgba(37, 99, 235, 0.18), transparent 55%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.65), rgba(2, 6, 23, 1) 32%),
    #020617;
}

/* Dark mode */
body[data-theme="dark"] {
  background-color: #020617;
  color: #e5e7eb;
}

/* Dark theme: navbar clear black bar with visible highlight */
body[data-theme="dark"] .navbar {
  background-color: #0f172a !important;
  border-bottom: 2px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
  color: #e5e7eb;
}

body[data-theme="dark"] .navbar .navbar-brand,
body[data-theme="dark"] .navbar .nav-link {
  color: #f1f5f9 !important;
}

body[data-theme="dark"] .navbar .nav-link:hover,
body[data-theme="dark"] .navbar .navbar-brand:hover {
  color: #fff !important;
}

body[data-theme="dark"] .navbar .form-control,
body[data-theme="dark"] .navbar .form-select {
  background-color: #1e293b;
  border-color: rgba(148, 163, 184, 0.4);
  color: #e5e7eb;
}

body[data-theme="dark"] .navbar .form-control::placeholder {
  color: #94a3b8;
}

body[data-theme="dark"] .navbar .btn-outline-secondary {
  border-color: rgba(148, 163, 184, 0.5);
  color: #cbd5e1;
}

body[data-theme="dark"] .navbar .btn-outline-secondary:hover {
  background-color: #334155;
  border-color: #64748b;
  color: #fff;
}

body[data-theme="dark"] .navbar .dropdown-menu {
  background-color: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body[data-theme="dark"] .navbar .dropdown-item {
  color: #e5e7eb;
}

body[data-theme="dark"] .navbar .dropdown-item:hover {
  background-color: #1e293b;
  color: #fff;
}

body[data-theme="dark"] .navbar .navbar-toggler {
  border-color: rgba(148, 163, 184, 0.5);
  color: #e5e7eb;
}

body[data-theme="dark"] .navbar .form-check-label {
  color: #cbd5e1 !important;
}

/* Sticky navbar polish */
.navbar-premium {
  transition: box-shadow .2s ease, background-color .2s ease, backdrop-filter .2s ease, border-color .2s ease;
}
.navbar-premium.navbar-scrolled {
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.12) !important;
  background-color: rgba(255, 255, 255, 0.86) !important;
  backdrop-filter: blur(10px);
  border-bottom-color: rgba(15, 23, 42, 0.08) !important;
}
body[data-theme="dark"] .navbar-premium.navbar-scrolled {
  background-color: rgba(15, 23, 42, 0.72) !important;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.55) !important;
  border-bottom-color: rgba(255, 255, 255, 0.10) !important;
}

body[data-theme="dark"] .footer,
body[data-theme="dark"] .card {
  background-color: #020617;
  color: #e5e7eb;
}

body[data-theme="dark"] .card {
  border-color: rgba(148, 163, 184, 0.3);
}

body[data-theme="dark"] a.nav-link,
body[data-theme="dark"] .navbar-brand {
  color: #e5e7eb !important;
}

body[data-theme="dark"] .border-top.footer,
body[data-theme="dark"] footer {
  border-color: rgba(148, 163, 184, 0.4) !important;
}

/* Home hero + cards */
.hero-gradient {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  background: radial-gradient(1200px circle at 10% 10%, rgba(99, 102, 241, 0.40), transparent 55%),
              radial-gradient(900px circle at 90% 20%, rgba(16, 185, 129, 0.28), transparent 55%),
              linear-gradient(135deg, #0b1220, #111a2e);
}

.hero-premium {
  background:
    radial-gradient(1200px circle at 10% 10%, rgba(59, 130, 246, 0.42), transparent 60%),
    radial-gradient(1000px circle at 85% 15%, rgba(124, 58, 237, 0.46), transparent 55%),
    linear-gradient(135deg, #0b1534 0%, #2b1166 55%, #0b1534 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.18) 0 1px, transparent 1px 100%),
    radial-gradient(circle at 80% 35%, rgba(255,255,255,0.12) 0 1px, transparent 1px 100%);
  background-size: 28px 28px, 34px 34px;
  pointer-events: none;
}

.hero-glass {
  border-radius: 1.25rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.06));
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
}

.hero-gradient::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(120deg, rgba(255,255,255,0.14), transparent 35%, rgba(255,255,255,0.06));
  transform: translateX(-20%) rotate(-8deg);
  animation: heroSheen 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes heroSheen {
  0%, 100% { transform: translateX(-25%) rotate(-8deg); opacity: 0.55; }
  50% { transform: translateX(25%) rotate(-8deg); opacity: 0.25; }
}

.hero-eyebrow {
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
  font-size: .8rem;
  color: rgba(255,255,255,.70);
}

.hero-title {
  color: #fff;
  line-height: 1.05;
}

.hero-subtitle {
  color: rgba(255,255,255,.78);
  max-width: 56ch;
}

.hero-pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(15,23,42,0.75);
  box-shadow: 0 0 0 1px rgba(148,163,184,0.4);
}

.hero-metrics .hero-metric-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(15,23,42,0.75);
}

.hero-stats-card {
  border-radius: 1rem;
  background: radial-gradient(circle at top left, rgba(59,130,246,0.25), transparent 55%),
              radial-gradient(circle at bottom right, rgba(16,185,129,0.22), transparent 55%),
              #020617;
  color: #e5e7eb;
}

.hero-stat-number {
  font-size: 1.35rem;
  font-weight: 700;
}

.hero-stat-label {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .8;
}

.btn-glow {
  box-shadow: 0 12px 30px rgba(37, 140, 251, 0.18);
}

.card-animate {
  border: 1px solid rgba(15, 23, 42, 0.08);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  transform: translateY(0) scale(1);
}

.card-animate:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 14px 40px rgba(2, 6, 23, 0.12);
  border-color: rgba(37, 140, 251, 0.25);
}

.btn-gradient-primary {
  background-image: linear-gradient(135deg, #2563eb, #7c3aed);
  border: none;
  color: #fff;
}

.btn-gradient-primary:hover {
  filter: brightness(1.05);
  color: #fff;
}

/* Premium CTA buttons */
.btn-premium {
  border-radius: 999px;
  padding: .85rem 1.2rem;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn-premium:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 46px rgba(37, 99, 235, 0.26);
}
.btn-premium-outline {
  border-radius: 999px;
  padding: .85rem 1.2rem;
  border-color: rgba(255,255,255,0.35);
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}
.btn-premium-outline:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 46px rgba(124, 58, 237, 0.24);
  background-color: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.55);
}

.fade-up {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp .6s ease-out forwards;
}

.fade-up.delay-1 { animation-delay: .1s; }
.fade-up.delay-2 { animation-delay: .2s; }
.fade-up.delay-3 { animation-delay: .3s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-gradient::after { animation: none; }
  .card-animate, .card-animate:hover { transition: none; transform: none; }
  .fade-up { animation: none; opacity: 1; transform: none; }
}

/* Home sections */
.trending-list .trending-item {
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 0.85rem;
  margin-bottom: .6rem;
}

.btn-upvote {
  border-radius: 999px;
  padding: .25rem .6rem;
  font-size: .75rem;
  border-color: rgba(148,163,184,0.6);
}

.trending-thumb {
  width: 56px;
  height: 56px;
  border-radius: .75rem;
  overflow: hidden;
  flex-shrink: 0;
  background: #e5e7eb;
}

.trending-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-pill {
  border-radius: 999px;
}

.home-latest-card img.card-img-top {
  height: 140px;
  object-fit: cover;
}

/* How it works */
.how-it-works-premium .how-card {
  border-radius: 1rem;
}
.how-it-works-premium .how-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.10);
  font-size: 1.35rem;
}
body[data-theme="dark"] .how-it-works-premium .how-icon {
  background: rgba(148, 163, 184, 0.10);
}

.home-latest-category {
  font-size: .7rem;
}

.top-seller-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 600;
  color: #0b1120;
}

.top-seller-avatar.avatar-1 {
  background: linear-gradient(135deg, #a5b4fc, #f97316);
}

.top-seller-avatar.avatar-2 {
  background: linear-gradient(135deg, #22c55e, #06b6d4);
}

.top-seller-avatar.avatar-3 {
  background: linear-gradient(135deg, #f97316, #ec4899);
}

.feature-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(37,99,235,0.08);
  color: #1d4ed8;
}

/* Marketplace page: hero and layout */
.market-header {
  background: linear-gradient(135deg, #1d4ed8 0%, #4f46e5 100%);
  color: #fff;
  padding: 2.25rem 1rem;
  margin-bottom: 1.25rem;
  border-radius: 1.25rem;
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.2);
}

.market-header-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.market-header-title {
  font-size: 2.05rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.market-header-subtitle {
  opacity: 0.94;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.btn-market-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.58rem 1.35rem;
  background: #fff;
  color: #334155;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-market-cta:hover {
  color: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.16);
}

.btn-market-primary {
  background: #2575fc;
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  padding: 0.4rem 0.9rem;
}

.btn-market-primary:hover {
  background: #1a62e0;
  color: #fff;
}

/* Search box */
.search-box {
  max-width: 560px;
}

.search-box-inner {
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #fff;
}

.search-box-inner .form-control {
  border: none;
  border-right: none;
  border-radius: 999px 0 0 999px;
  padding-left: 1.25rem;
}

.search-box-inner .form-select {
  border-radius: 0;
  border: none;
  border-left: none;
  border-right: none;
}

.search-box-inner .btn {
  border-radius: 0 999px 999px 0;
  border: none;
  border-left: none;
}

.market-advanced-filters .form-control,
.market-advanced-filters .form-select {
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

body[data-theme="dark"] .market-advanced-filters .form-control,
body[data-theme="dark"] .market-advanced-filters .form-select {
  background: #0f172a;
  color: #e2e8f0;
  border-color: rgba(100, 116, 139, 0.6);
}

/* Faceted marketplace sidebar */
.market-filters-sidebar {
  top: 5.5rem;
}
@media (min-width: 992px) {
  .market-filters-sidebar {
    position: sticky;
  }
}
.market-filters-sidebar .form-check-label {
  cursor: pointer;
}
.idea-detail-page .idea-detail-hero-img {
  max-height: 420px;
  object-fit: cover;
  width: 100%;
}
.idea-detail-main-card {
  border-radius: var(--im-radius-lg) !important;
  box-shadow: var(--im-shadow) !important;
}
.idea-detail-buy-card {
  border-radius: var(--im-radius-lg) !important;
  box-shadow: var(--im-shadow) !important;
  top: 5.5rem;
}
.idea-detail-meta .badge {
  font-weight: 600;
}
.checkout-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--im-muted);
  margin-bottom: 0.75rem;
}
.checkout-pay-card {
  border-radius: var(--im-radius-lg) !important;
  border: 1px solid var(--im-border) !important;
  box-shadow: var(--im-shadow) !important;
}

/* Flipkart-style premium search (navbar + marketplace) */
.navbar .input-group.input-group-sm {
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(2, 6, 23, 0.08);
}
.navbar .input-group.input-group-sm .form-control {
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-right: none;
  padding-left: 1rem;
}
.navbar .input-group.input-group-sm .form-select {
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  border-left: none;
  border-right: none;
}
.navbar .input-group.input-group-sm .btn {
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-left: none;
}

.cart-link {
  color: inherit;
}
.cart-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #ec4899);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 10px 20px rgba(236, 72, 153, 0.25);
}

/* Price highlight */
.price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #28a745;
  margin-bottom: 0;
}

/* Idea cards shared + marketplace grid cards */
.idea-card {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.idea-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.12);
}

.idea-card .card-img-top {
  height: 160px;
  object-fit: cover;
  object-position: center;
}

.idea-card-img-wrap {
  position: relative;
  overflow: hidden;
}

/* Full-size image open from card / carousel (marketplace) */
.idea-card-img-btn {
  position: relative;
  z-index: 1;
}
.idea-card-img-wrap > .idea-badge,
.idea-card-img-wrap > .badge-trending,
.idea-card-img-wrap > .wishlist-btn {
  z-index: 2;
}

.idea-card-img-btn,
.idea-carousel-img-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  line-height: 0;
}
.idea-carousel-img-btn {
  height: 100%;
}
.idea-card-img-btn:focus-visible,
.idea-carousel-img-btn:focus-visible {
  outline: 2px solid var(--fk-blue);
  outline-offset: 2px;
}

/* Marketplace grid: full card opens Details; overlay below toolbar links/buttons */
.idea-card-nav-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}
.idea-card .idea-actions,
.idea-card .idea-card-interactive,
.idea-card .wishlist-btn {
  position: relative;
  z-index: 2;
}

/* Home: featured carousel slide — overlay below text; buttons stay clickable */
.home-featured-badges {
  z-index: 2;
  pointer-events: none;
}
.home-featured-caption {
  z-index: 2;
  pointer-events: none;
}
.home-featured-caption .btn {
  pointer-events: auto;
}

/* Home: trending row — full row opens Details; upvote & View button above overlay */
.home-trending-hit-area {
  pointer-events: none;
}
.home-trending-interactive {
  position: relative;
  z-index: 2;
}

/* Featured hover zoom */
.featured-carousel img {
  transition: transform .5s ease;
  transform: scale(1);
}
.featured-carousel:hover img {
  transform: scale(1.03);
}

.badge-premium {
  border-radius: 999px;
  padding: .35rem .65rem;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: 0 10px 26px rgba(0,0,0,0.22);
}
.badge-hot { background: linear-gradient(135deg, #f97316, #ec4899); color: #fff; }
.badge-new { background: linear-gradient(135deg, #22c55e, #06b6d4); color: #06281a; }
.badge-trending {
  background: rgba(30, 41, 59, 0.86);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.market-shell .section-title {
  font-weight: 700;
  color: #0f172a;
  letter-spacing: .01em;
}

.idea-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(255, 255, 255, 0.95);
  color: #6a11cb;
  font-weight: 600;
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.idea-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.idea-card-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

/* Unified action buttons for marketplace cards */
.idea-actions .btn,
.idea-actions form .btn {
  height: 34px;
  padding: 0.35rem 0.8rem;
  border-radius: 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.idea-actions .btn-market-primary {
  min-width: 86px;
}

.idea-actions .btn-outline-primary,
.idea-actions .btn-outline-secondary,
.idea-actions .btn-outline-success,
.idea-actions .btn-outline-dark {
  border-color: rgba(148, 163, 184, 0.65);
}

.idea-actions .btn:hover {
  transform: translateY(-1px);
}

/* Smart action layout: desktop single row, mobile clean two-row wrap */
.idea-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.idea-actions .action-primary {
  grid-column: 1 / -1;
  order: -1;
}

.idea-actions .action-secondary {
  background: rgba(248, 250, 252, 0.9);
  color: #334155;
  border-color: rgba(148, 163, 184, 0.55);
}

.idea-actions .action-secondary:hover {
  background: #eef2ff;
  color: #1e293b;
}

.idea-actions > .btn,
.idea-actions > form {
  width: 100%;
}

.idea-actions > form .btn {
  width: 100%;
}

@media (min-width: 992px) {
  .idea-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .idea-actions .action-primary {
    grid-column: auto;
    order: 99;
  }
}

.idea-actions .btn.is-loading {
  opacity: 0.9;
  cursor: wait;
  pointer-events: none;
}

/* Small typography consistency pass across card sections */
.market-shell .idea-card .card-title {
  line-height: 1.35;
}

.market-shell .idea-card .small,
.market-shell .idea-card .card-text {
  line-height: 1.45;
}

.market-toast {
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
  border-radius: .8rem;
}

.market-toast .toast-body {
  font-weight: 600;
  color: #0f172a;
}

.market-toast.toast-success {
  border-color: rgba(34, 197, 94, 0.35);
  background: #ecfdf3;
}

.market-toast.toast-info {
  border-color: rgba(37, 99, 235, 0.35);
  background: #eff6ff;
}

.market-toast.toast-warn {
  border-color: rgba(245, 158, 11, 0.45);
  background: #fff7ed;
}

#marketToastIcon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
}

.market-toast.toast-success #marketToastIcon {
  background: rgba(34, 197, 94, 0.16);
  color: #166534;
}

.market-toast.toast-info #marketToastIcon {
  background: rgba(37, 99, 235, 0.14);
  color: #1d4ed8;
}

.market-toast.toast-warn #marketToastIcon {
  background: rgba(245, 158, 11, 0.18);
  color: #b45309;
}

/* Marketplace dark mode polish */
body[data-theme="dark"] .market-shell .idea-card {
  background: rgba(15, 23, 42, 0.78);
  border-color: rgba(71, 85, 105, 0.55);
  box-shadow: 0 12px 24px rgba(2, 6, 23, 0.45);
}

body[data-theme="dark"] .market-shell .idea-card-title,
body[data-theme="dark"] .market-shell .section-title {
  color: #e2e8f0;
}

body[data-theme="dark"] .market-shell .seller-profile-link {
  color: #cbd5e1 !important;
}

body[data-theme="dark"] .idea-actions .action-secondary {
  background: rgba(30, 41, 59, 0.75);
  color: #e2e8f0;
  border-color: rgba(100, 116, 139, 0.6);
}

body[data-theme="dark"] .idea-actions .action-secondary:hover {
  background: rgba(51, 65, 85, 0.88);
}

body[data-theme="dark"] .market-toast {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(100, 116, 139, 0.55);
}

body[data-theme="dark"] .market-toast .toast-body {
  color: #e2e8f0;
}

body[data-theme="dark"] .market-toast.toast-success {
  background: rgba(22, 101, 52, 0.22);
  border-color: rgba(74, 222, 128, 0.4);
}

body[data-theme="dark"] .market-toast.toast-info {
  background: rgba(29, 78, 216, 0.22);
  border-color: rgba(96, 165, 250, 0.4);
}

body[data-theme="dark"] .market-toast.toast-warn {
  background: rgba(180, 83, 9, 0.22);
  border-color: rgba(251, 191, 36, 0.45);
}

body[data-theme="dark"] .market-toast.toast-success #marketToastIcon,
body[data-theme="dark"] .market-toast.toast-info #marketToastIcon,
body[data-theme="dark"] .market-toast.toast-warn #marketToastIcon {
  color: #f8fafc;
}

.upvote-btn.active {
  background-color: #2575fc;
  color: #fff;
  border-color: #2575fc;
}

.wishlist-btn {
  background: rgba(0, 0, 0, 0.35);
  border: none;
  border-radius: 50%;
  padding: 0.25rem;
  line-height: 0;
}
.wishlist-btn:hover {
  background: rgba(0, 0, 0, 0.5);
}
.wishlist-btn.text-danger svg {
  fill: currentColor;
}

@media (prefers-reduced-motion: reduce) {
  .idea-card:hover {
    transform: none;
  }
}

.idea-slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.idea-slider-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: .25rem 0 .75rem;
}

.idea-slider-track::-webkit-scrollbar {
  height: 6px;
}

.idea-slider-track::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.7);
  border-radius: 999px;
}

.idea-slider-item {
  flex: 0 0 min(260px, 80vw);
}

.idea-slider-btn {
  border-radius: 999px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  cursor: pointer;
}

body[data-theme="dark"] .idea-slider-btn {
  background: #020617;
}

/* Footer dark theme */
.footer-dark {
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
  color: #e5e7eb;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.footer-dark .fw-semibold,
.footer-dark .text-muted {
  color: #94a3b8 !important;
}

.footer-dark a {
  color: #cbd5e1;
}

.footer-dark a:hover {
  color: #fff;
}

.footer-dark .border-top {
  border-color: rgba(148, 163, 184, 0.2) !important;
}

body[data-theme="dark"] .price {
  color: #34d399;
}

/* Testimonials */
.testimonial-stars {
  color: #f59e0b;
  letter-spacing: .12em;
  font-size: .9rem;
}

/* Dark mode readability polish */
body[data-theme="dark"] .text-muted { color: rgba(226,232,240,0.70) !important; }
body[data-theme="dark"] .card { background-color: rgba(2,6,23,0.78); }
body[data-theme="dark"] .border-top { border-color: rgba(148, 163, 184, 0.22) !important; }

/* Hero section (alias for hero gradient) */
.hero-section {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
}

/* Vote button on cards */
.vote-button,
.upvote-btn {
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.vote-button:hover,
.upvote-btn:hover {
  transform: scale(1.05);
}

/* Wishlist heart icon */
.wishlist-icon,
.wishlist-btn {
  transition: transform 0.2s ease, color 0.2s ease;
}
.wishlist-icon:hover,
.wishlist-btn:hover {
  transform: scale(1.1);
}

/* Category cards on home */
.category-card {
  border-radius: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
body[data-theme="dark"] .category-card:hover {
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.08);
}

/* Trending section */
.trending-section .trending-list .trending-item {
  transition: background-color 0.2s ease;
}
.trending-section .list-group-item:hover {
  background-color: rgba(0, 0, 0, 0.02);
}
body[data-theme="dark"] .trending-section .list-group-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

/* Admin SaaS dashboard */
.admin-saas-shell {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 1rem;
  padding: 1rem 0 2rem;
}
.admin-saas-sidebar {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  border-radius: 1rem;
  color: #e2e8f0;
  padding: 1rem;
  box-shadow: 0 14px 32px rgba(2, 6, 23, 0.28);
  height: fit-content;
  position: sticky;
  top: 84px;
}
.admin-saas-brand {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: .03em;
  margin-bottom: 1rem;
}
.admin-saas-nav { display: grid; gap: .45rem; }
.admin-saas-nav a {
  color: #cbd5e1;
  text-decoration: none;
  padding: .6rem .7rem;
  border-radius: .65rem;
  transition: all .18s ease;
}
.admin-saas-nav a:hover,
.admin-saas-nav a.active {
  background: rgba(59, 130, 246, 0.22);
  color: #fff;
}
.admin-saas-main { min-width: 0; }
.admin-saas-topbar {
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  background: linear-gradient(120deg, #1d4ed8, #6d28d9);
  color: #fff;
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.24);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
}
.admin-saas-topbar h1 { margin: 0; font-weight: 800; font-size: 1.35rem; }
.admin-saas-topbar p { margin: .2rem 0 0; opacity: .92; }
.admin-topbar-actions { display: flex; gap: .5rem; }
.btn-admin-primary, .btn-admin-soft {
  border-radius: .7rem;
  font-weight: 600;
  padding: .45rem .85rem;
}
.btn-admin-primary {
  background: #fff;
  border: 1px solid #fff;
  color: #1e3a8a;
}
.btn-admin-primary:hover { background: #eef2ff; color: #1e3a8a; }
.btn-admin-soft {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
}
.btn-admin-soft:hover { background: rgba(255, 255, 255, 0.22); color: #fff; }

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .8rem;
  margin-bottom: 1rem;
}
.admin-saas-shell,
.admin-card,
.admin-stat-card,
.admin-saas-topbar,
.admin-table tbody tr {
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.admin-stat-card {
  border-radius: .95rem;
  padding: .85rem;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  gap: .7rem;
  transition: transform .18s ease, box-shadow .18s ease;
}
.admin-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.14);
}
.admin-stat-card .icon {
  width: 38px;
  height: 38px;
  border-radius: .7rem;
  display: grid;
  place-items: center;
  font-weight: 700;
  background: #f8fafc;
}
.admin-stat-card .meta span { color: #64748b; display: block; font-size: .78rem; }
.admin-stat-card .meta strong { font-size: 1.15rem; color: #0f172a; }
.admin-stat-card.users .icon { background: #dbeafe; }
.admin-stat-card.ideas .icon { background: #ede9fe; }
.admin-stat-card.sales .icon { background: #dcfce7; }
.admin-stat-card.revenue .icon { background: #ffedd5; }

.admin-card {
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: .95rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  margin-bottom: 1rem;
  overflow: hidden;
}
.admin-card-header {
  padding: .8rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}
.admin-card-header h2 { font-size: 1rem; font-weight: 800; margin: 0; }
.admin-card-header a { color: #2563eb; text-decoration: none; font-weight: 600; }
.admin-card-header a:hover { text-decoration: underline; }

.admin-table thead th {
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #64748b;
  border-bottom-width: 1px;
}
.admin-table tbody tr:nth-child(even) { background: rgba(248, 250, 252, 0.7); }
.admin-table tbody tr:hover { background: rgba(219, 234, 254, 0.45); }

.admin-topbar-actions { display: flex; gap: .65rem; align-items: center; flex-wrap: wrap; }
.admin-dark-toggle {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: #fff;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  padding: .35rem .75rem;
}
.admin-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
}
.admin-chart-card {
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 14px;
  padding: .85rem;
  min-height: 290px;
}
.admin-chart-card.full { grid-column: span 2; }
.admin-chart-card h3 { font-size: 1rem; margin: 0 0 .8rem; }
.admin-chart-card canvas { width: 100% !important; height: 220px !important; }
.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  align-items: end;
  margin: .7rem 1rem;
}
.admin-filter-group { min-width: 150px; }
.admin-filter-group label { display: block; font-size: .8rem; margin-bottom: .2rem; color: #64748b; }
.admin-search { max-width: 420px; border-radius: 999px; }
.admin-pagination {
  margin: .8rem 1rem 1rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .6rem;
}
.admin-pagination span { color: #64748b; font-size: .9rem; }

.badge-status {
  border-radius: 999px;
  font-size: .72rem;
  padding: .24rem .55rem;
  font-weight: 700;
}
.badge-status.active { background: #dcfce7; color: #166534; }
.badge-status.blocked { background: #fee2e2; color: #991b1b; }
.badge-status.sold { background: #dbeafe; color: #1e40af; }

:root {
  --admin-chart-text: #334155;
  --admin-chart-grid: rgba(148, 163, 184, 0.25);
}
body.admin-dark {
  --admin-chart-text: #e2e8f0;
  --admin-chart-grid: rgba(148, 163, 184, 0.25);
}
body.admin-dark .admin-saas-sidebar {
  background: linear-gradient(180deg, #0f172a, #1e1b4b);
}
body.admin-dark .admin-card,
body.admin-dark .admin-stat-card,
body.admin-dark .admin-chart-card {
  background: #0f172a;
  border-color: rgba(71, 85, 105, 0.55);
  color: #e2e8f0;
}
body.admin-dark .admin-saas-shell {
  background: linear-gradient(180deg, #020617, #0b1120);
}
body.admin-dark .admin-table thead th {
  color: #94a3b8;
  border-color: rgba(51, 65, 85, 0.75);
}
body.admin-dark .admin-table tbody tr:nth-child(even) {
  background: rgba(30, 41, 59, 0.75);
}
body.admin-dark .admin-table tbody tr:hover {
  background: rgba(30, 64, 175, 0.25);
}
body.admin-dark .admin-filter-group label,
body.admin-dark .admin-pagination span {
  color: #94a3b8;
}
body.admin-dark .admin-search,
body.admin-dark .admin-toolbar .form-control {
  background: #111827;
  color: #e2e8f0;
  border-color: #334155;
}

@media (max-width: 991px) {
  .admin-saas-shell { grid-template-columns: 1fr; }
  .admin-saas-sidebar {
    position: static;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .admin-saas-nav { grid-auto-flow: column; overflow-x: auto; gap: .35rem; }
  .admin-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-chart-grid { grid-template-columns: 1fr; }
  .admin-chart-card.full { grid-column: auto; }
}

/* Admin SaaS dashboard - Modern Overrides */
:root {
  --admin-radius: 16px;
  --admin-shadow-soft: 0 10px 28px rgba(2, 6, 23, 0.08);
  --admin-shadow: 0 18px 44px rgba(2, 6, 23, 0.14);
  --admin-chart-text: #334155;
  --admin-chart-grid: rgba(148, 163, 184, 0.25);
  --admin-tooltip-bg: rgba(15, 23, 42, 0.92);
  --admin-tooltip-border: rgba(148, 163, 184, 0.35);
}

body[data-theme="dark"] {
  --admin-chart-text: #e2e8f0;
  --admin-chart-grid: rgba(148, 163, 184, 0.25);
  --admin-tooltip-bg: rgba(2, 6, 23, 0.92);
  --admin-tooltip-border: rgba(148, 163, 184, 0.25);
}

.admin-saas-shell {
  background: transparent;
  font-family: Inter, Poppins, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

body[data-theme="dark"] .admin-saas-shell {
  background: #0f172a;
  border-radius: var(--admin-radius);
}

.admin-saas-sidebar {
  border-radius: var(--admin-radius);
  box-shadow: var(--admin-shadow-soft);
}

.admin-saas-topbar {
  border-radius: var(--admin-radius);
  background: linear-gradient(90deg, #6d28d9 0%, #2563eb 100%);
}

.admin-saas-nav {
  display: grid;
  gap: 10px;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  color: #cbd5e1;
  text-decoration: none;
  transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease, color .18s ease;
  border: 1px solid transparent;
}

.admin-nav-link:hover {
  background: rgba(59, 130, 246, 0.12);
  color: #ffffff;
  transform: translateY(-1px);
}

.admin-nav-link.active {
  background: rgba(59, 130, 246, 0.22);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.18);
  border-color: rgba(59, 130, 246, 0.25);
  color: #ffffff;
}

.admin-nav-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-topbar-left h1 {
  font-weight: 900;
}

.admin-topbar-right {
  display: flex;
  gap: 12px;
  align-items: center;
}

.admin-icon-btn {
  position: relative;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #ffffff;
  padding: 10px 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.12);
  transition: transform .16s ease, background-color .16s ease;
}

.admin-icon-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.20);
}

.admin-icon-wrap {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.10);
}

.admin-notif-dot {
  position: absolute;
  top: 9px;
  right: 11px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.16);
}

.admin-notif-menu {
  width: 330px;
  padding: 8px;
}

.admin-notif-title {
  font-weight: 900;
  padding: 6px 10px;
  color: #0f172a;
}

body[data-theme="dark"] .admin-notif-title {
  color: #e2e8f0;
}

.admin-notif-item {
  display: flex;
  gap: 12px;
  padding: 10px 10px;
  border-radius: 14px;
  transition: background-color .16s ease;
}

.admin-notif-item:hover {
  background: rgba(59, 130, 246, 0.10);
}

.admin-notif-bullet {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-top: 6px;
  background: linear-gradient(135deg, #22c55e, #2563eb);
}

.admin-notif-text {
  font-weight: 900;
  font-size: 13px;
}

.admin-notif-time {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 2px;
}

.admin-profile-label {
  color: #0f172a;
}

body[data-theme="dark"] .admin-profile-label {
  color: #e2e8f0;
}

.admin-dark-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #ffffff;
  padding: 10px 12px;
  cursor: pointer;
  user-select: none;
}

.admin-dark-switch input {
  width: 16px;
  height: 16px;
}

.admin-dark-switch-label {
  font-weight: 900;
  font-size: 13px;
}

.admin-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 18px;
}

.admin-quick-action {
  border-radius: var(--admin-radius);
  padding: 12px 14px;
  font-weight: 900;
}

.btn-admin-primary,
.btn-admin-soft {
  border-radius: 14px;
  font-weight: 900;
}

.btn-admin-primary {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  border: none;
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.18);
}

.btn-admin-primary:hover {
  filter: brightness(1.05);
  color: #ffffff;
}

.btn-admin-soft {
  background: rgba(37, 99, 235, 0.10);
  border: 1px solid rgba(37, 99, 235, 0.22);
  color: #1d4ed8;
  box-shadow: 0 12px 26px rgba(2, 6, 23, 0.06);
}

.btn-admin-soft:hover {
  background: rgba(37, 99, 235, 0.14);
  border-color: rgba(37, 99, 235, 0.30);
  color: #1d4ed8;
}

body[data-theme="dark"] .btn-admin-soft {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(148, 163, 184, 0.35);
  color: #e5e7eb;
}

body[data-theme="dark"] .btn-admin-soft:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.btn-admin-danger {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #ef4444;
  border-radius: 14px;
  font-weight: 900;
  padding: 6px 10px;
}

.btn-admin-danger:hover {
  background: rgba(239, 68, 68, 0.18);
  color: #ffffff;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.admin-stat-card {
  border-radius: var(--admin-radius);
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: var(--admin-shadow-soft);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  position: relative;
  overflow: hidden;
}

.admin-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--admin-shadow);
}

.admin-stat-icon-circle {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.35);
  color: #2563eb;
}

.admin-stat-card.ideas .admin-stat-icon-circle {
  background: rgba(249, 115, 22, 0.12);
  border-color: rgba(249, 115, 22, 0.35);
  color: #f97316;
}

.admin-stat-card.sales .admin-stat-icon-circle {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.35);
  color: #8b5cf6;
}

.admin-stat-card.revenue .admin-stat-icon-circle {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.35);
  color: #22c55e;
}

.admin-stat-meta {
  min-width: 0;
}

.admin-stat-label {
  color: #64748b;
  font-weight: 900;
  font-size: 13px;
}

.admin-stat-value {
  color: #0f172a;
  font-weight: 1000;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin-top: 2px;
}

.admin-growth-pill {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  background: rgba(148, 163, 184, 0.18);
  color: #475569;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.admin-growth-pill.up {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
  border-color: rgba(34, 197, 94, 0.35);
}

.admin-growth-pill.down {
  background: rgba(239, 68, 68, 0.10);
  color: #dc2626;
  border-color: rgba(239, 68, 68, 0.30);
}

.admin-growth-arrow {
  font-size: 11px;
}

.admin-growth-text {
  font-weight: 1000;
}

.badge-admin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 1000;
  font-size: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.badge-admin-active {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.35);
  color: #16a34a;
}

.badge-admin-pending {
  background: rgba(249, 115, 22, 0.12);
  border-color: rgba(249, 115, 22, 0.35);
  color: #f97316;
}

.badge-admin-blocked {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: #ef4444;
}

.admin-card {
  border-radius: var(--admin-radius);
}

.admin-card-header {
  background: rgba(248, 250, 252, 0.75);
  border-bottom: 1px solid rgba(148, 163, 184, 0.20);
  border-radius: 16px 16px 0 0;
  padding: 14px 16px;
}

.admin-card-header h2 {
  font-weight: 1000;
}

.admin-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 14px;
}

.admin-chart-card {
  border-radius: var(--admin-radius);
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: linear-gradient(180deg, rgba(248, 250, 252, 1), rgba(241, 245, 249, 1));
  padding: 12px;
  min-height: 260px;
  transition: transform .18s ease, box-shadow .18s ease;
}

.admin-chart-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.10);
}

.admin-chart-card.full {
  grid-column: span 2;
}

.admin-chart-card h3 {
  margin: 0 0 10px;
  font-weight: 1000;
}

.admin-chart-card canvas {
  width: 100% !important;
  height: 210px !important;
}

.admin-tables-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 16px 0;
}

.admin-table thead th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  border-bottom-color: rgba(148, 163, 184, 0.22);
}

.admin-table tbody tr:hover {
  background: rgba(59, 130, 246, 0.06);
}

.admin-table-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.admin-inline-form {
  display: inline;
}

.admin-activity-card {
  margin-top: 12px;
}

.admin-activity-list {
  padding: 12px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(248, 250, 252, 0.78);
  transition: transform .16s ease, box-shadow .16s ease;
}

.admin-activity-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(2, 6, 23, 0.10);
}

.admin-activity-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-top: 7px;
  background: rgba(148, 163, 184, 0.95);
  box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.12);
}

.admin-activity-dot.info {
  background: rgba(37, 99, 235, 0.95);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16);
}

.admin-activity-dot.success {
  background: rgba(34, 197, 94, 0.95);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.16);
}

.admin-activity-dot.warning {
  background: rgba(245, 158, 11, 0.95);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.admin-activity-dot.danger {
  background: rgba(239, 68, 68, 0.95);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.16);
}

.admin-activity-text {
  font-weight: 1000;
  font-size: 13px;
  color: #0f172a;
}

.admin-activity-time {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 2px;
}

body[data-theme="dark"] .admin-card,
body[data-theme="dark"] .admin-stat-card,
body[data-theme="dark"] .admin-chart-card {
  background: #0f172a;
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.25);
}

body[data-theme="dark"] .admin-card-header {
  background: rgba(2, 6, 23, 0.35);
  border-bottom-color: rgba(148, 163, 184, 0.18);
}

body[data-theme="dark"] .admin-stat-label {
  color: rgba(226, 232, 240, 0.75);
}

body[data-theme="dark"] .admin-stat-value {
  color: #e2e8f0;
}

body[data-theme="dark"] .admin-table thead th {
  color: rgba(148, 163, 184, 0.95);
  border-bottom-color: rgba(148, 163, 184, 0.22);
}

body[data-theme="dark"] .admin-table tbody tr:hover {
  background: rgba(59, 130, 246, 0.10);
}

body[data-theme="dark"] .admin-activity-item {
  background: rgba(2, 6, 23, 0.35);
  border-color: rgba(148, 163, 184, 0.18);
}

body[data-theme="dark"] .admin-activity-text {
  color: #e2e8f0;
}

@media (max-width: 991px) {
  .admin-saas-shell {
    grid-template-columns: 1fr;
    padding: 18px 0 40px;
  }

  .admin-saas-sidebar {
    position: static;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .admin-saas-nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 6px;
  }

  .admin-nav-link {
    min-width: 160px;
    justify-content: flex-start;
  }

  .admin-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-chart-grid {
    grid-template-columns: 1fr;
  }

  .admin-chart-card.full {
    grid-column: auto;
  }

  .admin-tables-grid {
    grid-template-columns: 1fr;
  }

  .admin-quick-actions {
    grid-template-columns: 1fr;
  }
}

/* =============================================================================
   Flipkart-inspired polish (IdeaMarket) + Seller Hub (single source in site.css)
   ============================================================================= */

.fk-header.site-header .navbar-premium {
  background: #fff !important;
  border-bottom: 1px solid var(--fk-border) !important;
  box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.12) !important;
}

.fk-header .brand-name {
  color: var(--fk-blue);
}

.fk-header .brand-mark {
  background: linear-gradient(145deg, var(--fk-blue) 0%, #1565c0 100%);
  box-shadow: 0 4px 12px rgba(40, 116, 240, 0.35);
}

.fk-nav-search .input-group.input-group-sm {
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.fk-nav-search .form-control:focus,
.fk-nav-search .form-select:focus {
  border-color: var(--fk-blue);
  box-shadow: none;
}

.fk-store .cart-badge {
  background: var(--fk-cta);
  box-shadow: 0 2px 6px rgba(251, 100, 27, 0.45);
}

.btn-fk-primary {
  background: var(--fk-cta);
  border: 1px solid var(--fk-cta);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 2px;
  padding: 0.5rem 1.15rem;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.16);
}

.btn-fk-primary:hover {
  background: var(--fk-cta-hover);
  border-color: var(--fk-cta-hover);
  color: #fff !important;
  box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.18);
}

.btn-fk-secondary {
  background: #fff;
  border: 1px solid var(--fk-blue);
  color: var(--fk-blue) !important;
  font-weight: 600;
  border-radius: 2px;
  padding: 0.5rem 1.1rem;
}

.btn-fk-secondary:hover {
  background: rgba(40, 116, 240, 0.06);
  color: var(--fk-blue-dark) !important;
}

.fk-store .price {
  color: #388e3c;
  font-weight: 700;
}

/* Marketplace top banner — white card + blue accent (Flipkart-style) */
.market-header.fk-banner {
  background: #fff;
  color: var(--fk-text);
  border-radius: 2px;
  box-shadow: var(--fk-card-shadow);
  border-top: 3px solid var(--fk-blue);
  padding: 1.75rem 1.25rem;
  margin-bottom: 1rem;
}

.market-header.fk-banner .market-header-title {
  color: var(--fk-text);
  font-size: 1.5rem;
  font-weight: 700;
}

.market-header.fk-banner .market-header-subtitle {
  color: var(--fk-muted);
  opacity: 1;
}

.market-header.fk-banner .auth-eyebrow {
  color: var(--fk-blue) !important;
  opacity: 0.95;
}

.fk-trust-strip {
  background: #fff;
  border: 1px solid var(--fk-border);
  border-radius: 2px;
  box-shadow: var(--fk-card-shadow);
  padding: 0.65rem 1rem;
  font-size: 0.8rem;
  color: var(--fk-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  margin-bottom: 1rem;
}

.fk-trust-strip strong {
  color: var(--fk-text);
  font-weight: 600;
}

/* Seller Hub — professional dashboard (loads site.css) */
body.seller-body {
  background: var(--fk-bg);
  font-family: var(--im-font);
  color: var(--fk-text);
  -webkit-font-smoothing: antialiased;
}

.seller-shell {
  display: flex;
  min-height: 100vh;
}

.seller-sidebar {
  width: 280px;
  background: linear-gradient(180deg, var(--seller-sidebar-start) 0%, var(--seller-sidebar-mid) 42%, var(--seller-sidebar-end) 100%);
  color: #fff;
  padding: 1.15rem 0.9rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
}

.seller-brand {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.seller-sub {
  font-size: 0.78rem;
  opacity: 0.75;
  margin-top: 2px;
}

.seller-profile {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 14px;
  margin: 16px 0;
}

.seller-code {
  font-size: 0.78rem;
  opacity: 0.88;
  margin-top: 6px;
}

.seller-sidebar-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(34, 197, 94, 0.22);
  color: #bbf7d0;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.seller-sidebar-badge i {
  font-size: 0.85rem;
}

.seller-sidebar-badge--pending {
  background: rgba(234, 179, 8, 0.2);
  color: #fef08a;
  border-color: rgba(250, 204, 21, 0.35);
}

.seller-nav-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  padding: 16px 8px 8px 4px;
}

.seller-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.seller-nav a {
  color: #e8edf5;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 8px;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.seller-nav a i {
  opacity: 0.95;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
}

.seller-nav a.active,
.seller-nav a:hover {
  background: rgba(40, 116, 240, 0.35);
  color: #fff;
}

.seller-logout-btn {
  width: 100%;
  margin-top: 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  background: transparent;
  border-radius: 8px;
  padding: 10px;
  font-weight: 600;
  transition: background 0.15s ease;
}

.seller-logout-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.seller-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.seller-topbar {
  background: #fff;
  border-bottom: 3px solid #2874f0;
  padding: 0.9rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.seller-topbar .fw-semibold.text-dark {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--fk-text) !important;
}

.seller-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.verified-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(180deg, #22c55e, #16a34a);
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.35);
}

.verified-badge-pill i {
  font-size: 0.9rem;
}

.seller-content {
  padding: 1.25rem 1.5rem 2.5rem;
}

.seller-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--fk-card-shadow);
  border: 1px solid var(--fk-border);
}

.fk-seller-panel {
  background: #fff;
  border-radius: 2px;
  border: 1px solid var(--fk-border);
  box-shadow: var(--fk-card-shadow);
  overflow: hidden;
}

.fk-seller-panel .card-header,
.fk-seller-panel > .card-header {
  background: #fafafa;
  border-bottom: 1px solid var(--fk-border);
  padding: 0.9rem 1.1rem;
  font-weight: 700;
  color: var(--fk-text);
}

.fk-seller-table thead th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fk-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--fk-border);
  background: #fafafa;
}

.fk-seller-table tbody td {
  font-size: 0.9rem;
  vertical-align: middle;
  border-color: #f0f0f0;
}

.fk-seller-table .btn-fk-outline {
  border: 1px solid var(--fk-blue);
  color: var(--fk-blue);
  background: #fff;
  font-weight: 600;
  font-size: 0.8rem;
  border-radius: 2px;
  padding: 0.28rem 0.75rem;
}

.fk-seller-table .btn-fk-outline:hover {
  background: rgba(40, 116, 240, 0.08);
  color: var(--fk-blue-dark);
}

@media (max-width: 992px) {
  .seller-sidebar {
    position: fixed;
    left: -290px;
    z-index: 40;
    transition: left 0.25s ease;
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.2);
  }

  .seller-sidebar.show {
    left: 0;
  }

  .seller-main {
    width: 100%;
  }
}

.fk-modal .modal-header {
  border-bottom: 1px solid var(--fk-border);
  background: #fafafa;
}

.fk-modal .modal-title {
  font-weight: 700;
  color: var(--fk-text);
}

.btn-fk-outline {
  border: 1px solid var(--fk-blue);
  color: var(--fk-blue);
  background: #fff;
  font-weight: 600;
}

.btn-fk-outline:hover {
  background: rgba(40, 116, 240, 0.08);
  color: var(--fk-blue-dark);
  border-color: var(--fk-blue-dark);
}

.seller-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 35;
}
.seller-sidebar-backdrop.show {
  display: block;
}

@media (min-width: 993px) {
  .seller-sidebar-backdrop {
    display: none !important;
  }
}

/* Keyboard focus: clear ring without changing mouse click focus */
*:focus-visible {
  outline: 2px solid var(--fk-blue);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Vertical fulfilment timeline (seller / admin) */
.fk-vtimeline-track {
  position: relative;
  padding-left: 0.25rem;
}

.fk-vtimeline-item {
  position: relative;
  display: flex;
  gap: 1rem;
  padding-bottom: 1.35rem;
  padding-left: 0.15rem;
}

.fk-vtimeline-item:last-child {
  padding-bottom: 0;
}

.fk-vtimeline-item::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 28px;
  bottom: -4px;
  width: 3px;
  background: #e8e8e8;
  border-radius: 2px;
}

.fk-vtimeline-item:last-child::before {
  display: none;
}

.fk-vtimeline-item.is-done::before {
  background: linear-gradient(180deg, #26a541 0%, #e8e8e8 100%);
}

.fk-vtimeline-node {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #9ca3af;
  z-index: 1;
}

.fk-vtimeline-item.is-done .fk-vtimeline-node {
  border-color: #26a541;
  background: #26a541;
  color: #fff;
}

.fk-vtimeline-item.is-current .fk-vtimeline-node {
  border-color: #2874f0;
  box-shadow: 0 0 0 4px rgba(40, 116, 240, 0.2);
}

.fk-vtimeline-body {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}

.fk-vtimeline-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--fk-text, #212121);
}

.fk-vtimeline-item:not(.is-done):not(.is-current) .fk-vtimeline-title {
  color: #9ca3af;
}

.fk-vtimeline-meta {
  margin-top: 2px;
}

/* Buyer order timeline (Flipkart-style groups) */
.fk-buyer-vtimeline-track {
  position: relative;
  padding-left: 0.2rem;
}

.fk-buyer-vtimeline-group {
  position: relative;
  display: flex;
  gap: 1rem;
  padding-bottom: 1.5rem;
}

.fk-buyer-vtimeline-group:last-child {
  padding-bottom: 0;
}

.fk-buyer-vtimeline-group::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 30px;
  bottom: -6px;
  width: 3px;
  background: #e8e8e8;
  border-radius: 2px;
}

.fk-buyer-vtimeline-group:last-child::before {
  display: none;
}

.fk-buyer-vtimeline-group.is-complete::before {
  background: #26a541;
}

.fk-buyer-vtimeline-node {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #e0e0e0;
  z-index: 1;
}

.fk-buyer-vtimeline-group.is-complete .fk-buyer-vtimeline-node {
  border-color: #26a541;
  background: #26a541;
}

.fk-buyer-vtimeline-group.is-current .fk-buyer-vtimeline-node {
  border-color: #2874f0;
  background: #2874f0;
  box-shadow: 0 0 0 4px rgba(40, 116, 240, 0.18);
}

.fk-buyer-vtimeline-group.is-current:not(.is-complete) .fk-buyer-vtimeline-node {
  background: #fff;
}

.fk-buyer-vtimeline-group-body {
  flex: 1;
  min-width: 0;
}

.fk-buyer-vtimeline-group-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--fk-text, #212121);
}

.fk-buyer-vtimeline-group.is-complete .fk-buyer-vtimeline-group-title {
  color: #1a7f37;
}

.fk-buyer-vtimeline-group-date {
  margin-top: 2px;
  margin-bottom: 6px;
}

.fk-buyer-vtimeline-lines li {
  margin-bottom: 4px;
  line-height: 1.45;
}

/* ——— AI Help chat (buyer layout) ——— */
.help-chat-root {
  position: fixed;
  z-index: 1060;
  right: 1.25rem;
  bottom: 1.25rem;
  font-family: var(--im-font);
}

.help-chat-fab {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--fk-blue, #2874f0), #6366f1);
  color: #fff;
  box-shadow: 0 10px 28px rgba(40, 116, 240, 0.45);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.help-chat-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(40, 116, 240, 0.5);
}

.help-chat-fab:focus-visible {
  outline: 3px solid var(--im-focus, rgba(37, 99, 235, 0.35));
  outline-offset: 2px;
}

.help-chat-panel {
  position: absolute;
  right: 0;
  bottom: 64px;
  width: min(380px, calc(100vw - 2rem));
  max-height: min(520px, 72vh);
  background: #fff;
  border: 1px solid var(--fk-border, #e0e0e0);
  border-radius: var(--im-radius-lg, 16px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body[data-theme="dark"] .help-chat-panel {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.25);
  color: #e2e8f0;
}

body[data-theme="dark"] .help-chat-sub {
  color: #94a3b8 !important;
}

.help-chat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--fk-border, #e0e0e0);
  background: linear-gradient(180deg, rgba(40, 116, 240, 0.06), transparent);
}

body[data-theme="dark"] .help-chat-header {
  border-bottom-color: rgba(148, 163, 184, 0.2);
  background: linear-gradient(180deg, rgba(40, 116, 240, 0.12), transparent);
}

.help-chat-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--fk-text, #212121);
}

body[data-theme="dark"] .help-chat-title {
  color: #f1f5f9;
}

.help-chat-messages {
  flex: 1 1 auto;
  min-height: 200px;
  max-height: 360px;
  overflow-y: auto;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.help-chat-msg {
  max-width: 92%;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.help-chat-msg--user {
  align-self: flex-end;
  background: var(--fk-blue, #2874f0);
  color: #fff;
}

.help-chat-msg--bot {
  align-self: flex-start;
  background: var(--fk-bg, #f1f3f6);
  color: var(--fk-text, #212121);
}

body[data-theme="dark"] .help-chat-msg--bot {
  background: #1e293b;
  color: #e2e8f0;
}

.help-chat-msg--err {
  align-self: stretch;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

body[data-theme="dark"] .help-chat-msg--err {
  background: rgba(127, 29, 29, 0.25);
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.35);
}

.help-chat-footer {
  padding: 0.65rem 0.75rem 0.85rem;
  border-top: 1px solid var(--fk-border, #e0e0e0);
}

body[data-theme="dark"] .help-chat-footer {
  border-top-color: rgba(148, 163, 184, 0.2);
}

.help-chat-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.help-chat-form .form-control {
  flex: 1;
  min-width: 0;
}

@media (max-width: 576px) {
  .help-chat-root {
    right: 1rem;
    bottom: 1rem;
  }

  .help-chat-panel {
    bottom: 58px;
    width: calc(100vw - 2rem);
  }
}