/* ================================================================
   JONOSHAD Seller Panel — Ultra Premium Dark Glassmorphism UI
   Complete Redesign: Deep dark + glass + soft neumorphism + glow
   ================================================================ */

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

:root {
  /* Core accent */
  --pk:         #7c6fff;
  --pk-dark:    #5a4fd8;
  --pk-light:   #a78bfa;
  --pk-glow:    rgba(124,111,255,.35);
  --pk-soft:    rgba(124,111,255,.12);
  --pk-ultra:   rgba(124,111,255,.06);

  /* Layout */
  --sidebar-w:  256px;
  --header-h:   64px;

  /* Background layers */
  --bg:         #080810;
  --bg2:        #0e0e1a;
  --bg3:        #13131f;
  --bg4:        #181828;

  /* Card surfaces */
  --card:       rgba(20,20,36,.8);
  --card-solid: #14142480;
  --card-border: rgba(255,255,255,.06);
  --card-border-hover: rgba(124,111,255,.22);
  --card-hover: rgba(28,28,50,.9);

  /* Glass */
  --glass:      rgba(255,255,255,.04);
  --glass-border: rgba(255,255,255,.08);
  --glass-strong: rgba(255,255,255,.07);

  /* Typography */
  --text:       #eaeaf5;
  --text-soft:  rgba(234,234,245,.55);
  --text-muted: rgba(234,234,245,.3);
  --text-faint: rgba(234,234,245,.18);

  /* Semantic colors */
  --success:       #22c55e;
  --success-soft:  rgba(34,197,94,.13);
  --success-glow:  rgba(34,197,94,.25);
  --danger:        #ef4444;
  --danger-soft:   rgba(239,68,68,.13);
  --warning:       #f59e0b;
  --warning-soft:  rgba(245,158,11,.13);
  --info:          #3b82f6;
  --info-soft:     rgba(59,130,246,.13);

  /* Radius */
  --radius:    16px;
  --radius-md: 12px;
  --radius-sm: 9px;
  --radius-xs: 6px;

  /* Shadows */
  --shadow-xs:   0 2px 8px rgba(0,0,0,.35);
  --shadow-sm:   0 4px 16px rgba(0,0,0,.4);
  --shadow:      0 8px 32px rgba(0,0,0,.5);
  --shadow-lg:   0 16px 48px rgba(0,0,0,.6);
  --shadow-glow: 0 0 32px var(--pk-glow), 0 8px 24px rgba(0,0,0,.5);
  --shadow-inner: inset 0 1px 0 rgba(255,255,255,.06), inset 0 -1px 0 rgba(0,0,0,.2);

  /* Transitions */
  --t-fast: .15s ease;
  --t-base: .2s ease;
  --t-slow: .35s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* Global animated background mesh */
body::before {
  content: '';
  position: fixed;
  top: -30%;
  left: -20%;
  width: 80vw;
  height: 80vw;
  background: radial-gradient(ellipse at center,
    rgba(124,111,255,.07) 0%,
    rgba(139,92,246,.04) 40%,
    transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: bgPulse 12s ease-in-out infinite alternate;
}

body::after {
  content: '';
  position: fixed;
  bottom: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(ellipse at center,
    rgba(59,130,246,.05) 0%,
    transparent 65%);
  pointer-events: none;
  z-index: 0;
  animation: bgPulse 16s ease-in-out infinite alternate-reverse;
}

@keyframes bgPulse {
  0%   { opacity: .5; transform: scale(1); }
  100% { opacity: 1;  transform: scale(1.06); }
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(124,111,255,.35);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(124,111,255,.6);
}

/* ════════════════════════════════════════════════
   LAYOUT
════════════════════════════════════════════════ */
.seller-wrap {
  display: flex;
  min-height: 100vh;
  position: relative;
  /* z-index removed: was creating a stacking context that trapped the sidebar
     below the sidebar-overlay (z-index 150), blocking navigation and causing
     the full-screen dark overlay when the mobile menu was open */
}

/* ── SIDEBAR OVERLAY (mobile) ── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 150;
}

/* ── SIDEBAR ── */
.sidebar {
  width: var(--sidebar-w);
  background: rgba(10,10,20,.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-right: 1px solid var(--glass-border);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 100;
  transition: transform var(--t-slow);
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 40px rgba(0,0,0,.4);
}

/* Sidebar inner glow accent */
.sidebar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 300px;
  background: linear-gradient(180deg,
    rgba(124,111,255,.07) 0%,
    transparent 100%);
  pointer-events: none;
}

.sidebar-brand {
  padding: 24px 20px 20px;
  border-bottom: 1px solid var(--glass-border);
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--pk), #8b5cf6);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px var(--pk-glow);
}

.sidebar-brand-icon svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
  stroke-width: 2;
  fill: none;
}

.sidebar-brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .3px;
  background: linear-gradient(135deg, #fff 30%, #c4b5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.brand-sub {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 2px;
}

.sidebar-nav {
  padding: 12px 0;
  flex: 1;
}

.sidebar-nav .sep {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-faint);
  padding: 14px 20px 6px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  margin: 2px 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
  transition: all var(--t-base);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}

.sidebar-nav a svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  flex-shrink: 0;
  transition: all var(--t-base);
}

.sidebar-nav a:hover {
  color: var(--text);
  background: rgba(124,111,255,.08);
}

.sidebar-nav a:hover svg {
  stroke: var(--pk-light);
}

.sidebar-nav a.active {
  color: #fff;
  background: linear-gradient(135deg,
    rgba(124,111,255,.22),
    rgba(139,92,246,.12));
  font-weight: 600;
  box-shadow: 0 2px 16px rgba(124,111,255,.18);
}

.sidebar-nav a.active svg {
  stroke: var(--pk-light);
  filter: drop-shadow(0 0 6px var(--pk-glow));
}

.sidebar-nav a.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 3px;
  background: linear-gradient(180deg, var(--pk), var(--pk-light));
  border-radius: 0 3px 3px 0;
}

/* Nav badge */
.nav-badge {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  background: var(--pk-soft);
  color: var(--pk-light);
  border: 1px solid rgba(124,111,255,.2);
}

.sidebar-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--glass-border);
}

.sidebar-footer a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  transition: color var(--t-fast);
  padding: 6px 0;
}

.sidebar-footer a svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.sidebar-footer a:hover { color: var(--pk-light); }

/* ── MAIN CONTENT ── */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

/* ── TOPBAR / HEADER ── */
.seller-header {
  height: var(--header-h);
  background: rgba(10,10,20,.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 99;
  box-shadow: 0 4px 24px rgba(0,0,0,.3);
}

.seller-header h1 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .2px;
  background: linear-gradient(135deg, #fff 40%, #c4b5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.header-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-badge-wrap {
  display: flex;
  align-items: center;
}

.avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--pk), #8b5cf6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  box-shadow: 0 0 16px var(--pk-glow);
  border: 2px solid rgba(124,111,255,.3);
  letter-spacing: 0;
  flex-shrink: 0;
}

.header-username {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.content-area {
  padding: 28px;
  flex: 1;
}

/* ════════════════════════════════════════════════
   CARDS
════════════════════════════════════════════════ */
.card {
  background: var(--card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
  animation: fadeInUp .3s ease both;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg,
    rgba(255,255,255,.025) 0%,
    transparent 50%,
    rgba(0,0,0,.02) 100%);
  pointer-events: none;
}

.card:hover {
  border-color: var(--card-border-hover);
  box-shadow: 0 8px 32px rgba(0,0,0,.5), 0 0 0 1px rgba(124,111,255,.08);
}

.card-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,.015);
}

.card-head h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: .1px;
}

.card-head h3 svg {
  width: 16px;
  height: 16px;
  stroke: var(--pk-light);
  stroke-width: 2;
  fill: none;
}

.card-body { padding: 20px; }

/* ════════════════════════════════════════════════
   STATS GRID
════════════════════════════════════════════════ */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px 18px 18px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  cursor: default;
  animation: fadeInUp .3s ease both;
}

/* Top accent stripe */
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  border-radius: var(--radius) var(--radius) 0 0;
}

/* Inner top sheen */
.stat-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,.03) 0%, transparent 100%);
  pointer-events: none;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(124,111,255,.25);
}

/* Color variants */
.stat-card.green::before { background: linear-gradient(90deg, #22c55e, #10b981); }
.stat-card.green:hover   { box-shadow: 0 0 28px rgba(34,197,94,.22), 0 8px 24px rgba(0,0,0,.5); border-color: rgba(34,197,94,.3); }

.stat-card.blue::before  { background: linear-gradient(90deg, var(--pk), #8b5cf6); }

.stat-card.orange::before{ background: linear-gradient(90deg, #f59e0b, #ef4444); }
.stat-card.orange:hover  { box-shadow: 0 0 28px rgba(245,158,11,.2), 0 8px 24px rgba(0,0,0,.5); border-color: rgba(245,158,11,.3); }

.stat-card.red::before   { background: linear-gradient(90deg, #ef4444, #dc2626); }
.stat-card.red:hover     { box-shadow: 0 0 28px rgba(239,68,68,.2), 0 8px 24px rgba(0,0,0,.5); border-color: rgba(239,68,68,.3); }

.stat-card.purple::before{ background: linear-gradient(90deg, #8b5cf6, #d946ef); }
.stat-card.purple:hover  { box-shadow: 0 0 28px rgba(139,92,246,.22), 0 8px 24px rgba(0,0,0,.5); border-color: rgba(139,92,246,.3); }

.stat-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
  margin-bottom: 10px;
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  letter-spacing: -.5px;
}

.stat-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 10px;
  font-weight: 500;
}

.stat-sub a {
  color: var(--pk-light);
  transition: color var(--t-fast);
}

.stat-sub a:hover { color: #fff; }

/* ════════════════════════════════════════════════
   TABLE
════════════════════════════════════════════════ */
.table-wrap { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; }

th {
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 10px 16px;
  border-bottom: 1px solid var(--card-border);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  background: rgba(255,255,255,.015);
  white-space: nowrap;
}

td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255,255,255,.035);
  font-size: 13px;
  vertical-align: middle;
  color: var(--text);
  transition: background var(--t-fast);
}

tr:last-child td { border-bottom: none; }

tr:hover td {
  background: rgba(124,111,255,.05);
}

/* ════════════════════════════════════════════════
   BUTTONS
════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--t-base);
  text-decoration: none;
  white-space: nowrap;
  font-family: inherit;
  position: relative;
  overflow: hidden;
  letter-spacing: .1px;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--t-fast);
}

.btn:hover::before { background: rgba(255,255,255,.06); }
.btn:active::before { background: rgba(0,0,0,.1); }

.btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
}

.btn-primary {
  background: linear-gradient(135deg, var(--pk) 0%, #8b5cf6 100%);
  color: #fff;
  box-shadow: 0 4px 16px var(--pk-glow), var(--shadow-inner);
}

.btn-primary:hover {
  box-shadow: 0 6px 24px var(--pk-glow), var(--shadow-inner);
  transform: translateY(-1px);
}

.btn-primary:active { transform: translateY(0); }

.btn-success {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(34,197,94,.3), var(--shadow-inner);
}

.btn-success:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(34,197,94,.35), var(--shadow-inner); }

.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(239,68,68,.3), var(--shadow-inner);
}

.btn-danger:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(239,68,68,.35), var(--shadow-inner); }

.btn-warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(245,158,11,.28), var(--shadow-inner);
}

.btn-warning:hover { transform: translateY(-1px); }

.btn-info {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(59,130,246,.3), var(--shadow-inner);
}

.btn-info:hover { transform: translateY(-1px); }

.btn-light {
  background: rgba(255,255,255,.055);
  color: var(--text);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-xs);
  backdrop-filter: blur(8px);
}

.btn-light:hover {
  background: rgba(255,255,255,.09);
  border-color: rgba(124,111,255,.25);
  transform: translateY(-1px);
}

.btn-sm { padding: 5px 12px; font-size: 12px; border-radius: var(--radius-xs); }
.btn-sm svg { width: 13px; height: 13px; }
.btn-block { width: 100%; justify-content: center; }

/* ════════════════════════════════════════════════
   FORMS
════════════════════════════════════════════════ */
.form-group { margin-bottom: 18px; }

label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--text-soft);
  letter-spacing: .2px;
  text-transform: uppercase;
}

input[type=text],
input[type=email],
input[type=number],
input[type=password],
input[type=url],
input[type=tel],
select,
textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid rgba(255,255,255,.08);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  outline: none;
  font-family: inherit;
  background: rgba(255,255,255,.04);
  color: var(--text);
  transition: all var(--t-base);
  backdrop-filter: blur(8px);
}

input::placeholder, textarea::placeholder { color: var(--text-faint); }

input:focus, select:focus, textarea:focus {
  border-color: var(--pk);
  box-shadow: 0 0 0 3px var(--pk-soft), 0 2px 12px rgba(124,111,255,.12);
  background: rgba(124,111,255,.06);
}

/* Readonly inputs */
input[readonly] {
  background: rgba(255,255,255,.02);
  color: var(--text-soft);
  cursor: default;
  border-color: rgba(255,255,255,.05);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(234,234,245,0.4)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

select option { background: #1a1a2e; color: var(--text); }

textarea { min-height: 90px; resize: vertical; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 5px;
  font-weight: 400;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
}

.form-check input[type=checkbox] {
  width: 16px;
  height: 16px;
  accent-color: var(--pk);
  border-radius: 4px;
}

/* ════════════════════════════════════════════════
   ALERTS
════════════════════════════════════════════════ */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 13px;
  border: 1px solid;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  backdrop-filter: blur(8px);
}

.alert-success {
  background: var(--success-soft);
  color: #4ade80;
  border-color: rgba(34,197,94,.22);
}

.alert-error {
  background: var(--danger-soft);
  color: #f87171;
  border-color: rgba(239,68,68,.22);
}

.alert-info {
  background: var(--info-soft);
  color: #60a5fa;
  border-color: rgba(59,130,246,.22);
}

.alert-warning {
  background: var(--warning-soft);
  color: #fbbf24;
  border-color: rgba(245,158,11,.22);
}

/* ════════════════════════════════════════════════
   BADGES
════════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .3px;
  white-space: nowrap;
}

.badge svg {
  width: 11px;
  height: 11px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}

.badge-success  { background: var(--success-soft);  color: #4ade80; border: 1px solid rgba(34,197,94,.22); }
.badge-danger   { background: var(--danger-soft);   color: #f87171; border: 1px solid rgba(239,68,68,.22); }
.badge-warning  { background: var(--warning-soft);  color: #fbbf24; border: 1px solid rgba(245,158,11,.22); }
.badge-info     { background: var(--info-soft);     color: #60a5fa; border: 1px solid rgba(59,130,246,.22); }
.badge-secondary{ background: rgba(255,255,255,.06); color: var(--text-soft); border: 1px solid var(--card-border); }
.badge-purple   { background: rgba(139,92,246,.14); color: #c4b5fd; border: 1px solid rgba(139,92,246,.22); }

/* ════════════════════════════════════════════════
   PAGINATION
════════════════════════════════════════════════ */
.pagination {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
  padding: 14px 0;
}

.pagination a,
.pagination span {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-soft);
  transition: all var(--t-fast);
  background: rgba(255,255,255,.03);
}

.pagination a:hover {
  background: rgba(124,111,255,.1);
  border-color: rgba(124,111,255,.3);
  color: var(--text);
}

.pagination .active {
  background: linear-gradient(135deg, var(--pk), #8b5cf6);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px var(--pk-glow);
}

/* ════════════════════════════════════════════════
   AUTH PAGES (Login / Register / KYC)
════════════════════════════════════════════════ */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 24px 20px;
  position: relative;
  overflow: hidden;
}

/* Animated orbs */
.auth-wrap::before {
  content: '';
  position: fixed;
  top: -35%;
  left: -15%;
  width: 70vw;
  height: 70vw;
  background: radial-gradient(circle,
    rgba(124,111,255,.13) 0%,
    transparent 65%);
  pointer-events: none;
  z-index: 0;
  animation: bgPulse 8s ease-in-out infinite alternate;
}

.auth-wrap::after {
  content: '';
  position: fixed;
  bottom: -25%;
  right: -10%;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle,
    rgba(139,92,246,.09) 0%,
    transparent 65%);
  pointer-events: none;
  z-index: 0;
  animation: bgPulse 10s ease-in-out infinite alternate-reverse;
}

.auth-box {
  background: rgba(15,15,28,.82);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 22px;
  padding: 44px 38px;
  width: 100%;
  max-width: 460px;
  box-shadow:
    0 32px 80px rgba(0,0,0,.65),
    0 0 0 1px rgba(124,111,255,.08),
    inset 0 1px 0 rgba(255,255,255,.06);
  position: relative;
  z-index: 1;
  animation: fadeInUp .45s ease both;
}

/* Top gradient accent */
.auth-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 180px;
  background: linear-gradient(180deg,
    rgba(124,111,255,.07) 0%,
    transparent 100%);
  border-radius: 22px 22px 0 0;
  pointer-events: none;
}

.auth-logo {
  text-align: center;
  margin-bottom: 32px;
  position: relative;
}

.auth-logo-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--pk), #8b5cf6);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  box-shadow: 0 8px 32px var(--pk-glow);
}

.auth-logo-icon svg {
  width: 28px;
  height: 28px;
  stroke: #fff;
  stroke-width: 1.8;
  fill: none;
}

.auth-logo h2 {
  font-size: 23px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.3px;
  background: linear-gradient(135deg, #fff 40%, #c4b5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-logo p {
  font-size: 13px;
  color: var(--text-soft);
  margin-top: 5px;
}

.auth-box .btn-primary {
  width: 100%;
  padding: 13px;
  font-size: 15px;
  justify-content: center;
  margin-top: 8px;
  border-radius: var(--radius-md);
}

.auth-switch {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 22px;
}

.auth-switch a {
  color: var(--pk-light);
  font-weight: 600;
  transition: color var(--t-fast);
}

.auth-switch a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ════════════════════════════════════════════════
   STEPS INDICATOR
════════════════════════════════════════════════ */
.steps-bar {
  display: flex;
  align-items: center;
  margin-bottom: 28px;
}

.step-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
}

.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 19px;
  left: 60%;
  width: 80%;
  height: 2px;
  background: var(--card-border);
  z-index: 0;
  border-radius: 2px;
}

.step-item.done::after {
  background: linear-gradient(90deg, var(--pk), #8b5cf6);
}

.step-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  z-index: 1;
  border: 2px solid var(--card-border);
  background: var(--bg3);
  color: var(--text-muted);
  transition: all var(--t-slow);
}

.step-item.done .step-circle {
  background: linear-gradient(135deg, var(--pk), #8b5cf6);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 18px var(--pk-glow);
}

.step-item.active .step-circle {
  background: var(--bg3);
  border-color: var(--pk);
  color: var(--pk-light);
  box-shadow: 0 0 0 4px var(--pk-soft);
}

.step-label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: .3px;
}

.step-item.done .step-label,
.step-item.active .step-label {
  color: var(--pk-light);
}

/* ════════════════════════════════════════════════
   IMAGE PREVIEW BOX
════════════════════════════════════════════════ */
.img-preview-box {
  width: 100%;
  aspect-ratio: 4/3;
  border: 2px dashed rgba(124,111,255,.25);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  font-size: 13px;
  overflow: hidden;
  background: rgba(124,111,255,.04);
  cursor: pointer;
  position: relative;
  transition: all var(--t-base);
}

.img-preview-box:hover {
  border-color: var(--pk);
  background: rgba(124,111,255,.08);
  box-shadow: 0 4px 20px var(--pk-soft);
}

.img-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-preview-box .placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

/* ════════════════════════════════════════════════
   TOGGLE SWITCH
════════════════════════════════════════════════ */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
}

.toggle-switch input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--bg3);
  border: 1.5px solid rgba(255,255,255,.08);
  border-radius: 26px;
  transition: .3s;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: var(--text-soft);
  border-radius: 50%;
  transition: .3s;
}

.toggle-switch input:checked + .toggle-slider {
  background: linear-gradient(135deg, var(--pk), #8b5cf6);
  border-color: transparent;
  box-shadow: 0 0 14px var(--pk-glow);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(20px);
  background: #fff;
}

/* ════════════════════════════════════════════════
   MOBILE HAMBURGER
════════════════════════════════════════════════ */
.hamburger {
  display: none;
  width: 36px;
  height: 36px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xs);
  background: var(--glass);
  padding: 0;
  transition: all var(--t-fast);
  flex-shrink: 0;
}

.hamburger:hover {
  background: rgba(124,111,255,.1);
  border-color: rgba(124,111,255,.25);
}

.hamburger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text-soft);
  border-radius: 2px;
  transition: all var(--t-base);
}

/* ════════════════════════════════════════════════
   VERIFICATION BANNERS (dark-themed)
════════════════════════════════════════════════ */
.verification-banner {
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border: 1px solid;
  backdrop-filter: blur(12px);
  animation: fadeInUp .3s ease both;
}

.verification-banner .vb-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.verification-banner.pending {
  background: linear-gradient(135deg,
    rgba(245,158,11,.09) 0%,
    rgba(251,191,36,.05) 100%);
  border-color: rgba(245,158,11,.22);
}

.verification-banner.pending .vb-icon {
  background: rgba(245,158,11,.15);
}

.verification-banner.approved {
  background: linear-gradient(135deg,
    rgba(34,197,94,.09) 0%,
    rgba(16,185,129,.05) 100%);
  border-color: rgba(34,197,94,.22);
}

.verification-banner.approved .vb-icon {
  background: rgba(34,197,94,.15);
}

.verification-banner.unverified {
  background: linear-gradient(135deg,
    rgba(124,111,255,.09) 0%,
    rgba(139,92,246,.05) 100%);
  border-color: rgba(124,111,255,.22);
}

.verification-banner.unverified .vb-icon {
  background: rgba(124,111,255,.15);
}

.verification-banner .vb-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 5px;
}

.verification-banner.pending .vb-title   { color: #fbbf24; }
.verification-banner.approved .vb-title  { color: #4ade80; }
.verification-banner.unverified .vb-title{ color: var(--pk-light); }

.verification-banner .vb-text {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.65;
  margin-bottom: 12px;
}

/* ════════════════════════════════════════════════
   SHIMMER / SKELETON LOADING
════════════════════════════════════════════════ */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.skeleton {
  background: linear-gradient(90deg,
    rgba(255,255,255,.04) 0%,
    rgba(255,255,255,.09) 50%,
    rgba(255,255,255,.04) 100%);
  background-size: 400px 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: var(--radius-xs);
}

/* ════════════════════════════════════════════════
   INFO BOX (dark-themed, replaces light boxes)
════════════════════════════════════════════════ */
.info-box {
  background: rgba(59,130,246,.07);
  border: 1px solid rgba(59,130,246,.18);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 13px;
  color: #93c5fd;
  line-height: 1.65;
}

.info-box.success {
  background: rgba(34,197,94,.07);
  border-color: rgba(34,197,94,.18);
  color: #86efac;
}

.info-box.warning {
  background: rgba(245,158,11,.07);
  border-color: rgba(245,158,11,.18);
  color: #fcd34d;
}

.info-box.purple {
  background: rgba(124,111,255,.07);
  border-color: rgba(124,111,255,.18);
  color: #c4b5fd;
}

/* ════════════════════════════════════════════════
   QUICK ACTION BUTTONS BAR
════════════════════════════════════════════════ */
.quick-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

/* ════════════════════════════════════════════════
   INSTRUCTION STEPS (face verify)
════════════════════════════════════════════════ */
.instruction-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(124,111,255,.06);
  border: 1px solid rgba(124,111,255,.14);
  border-radius: var(--radius-md);
  padding: 13px 15px;
  margin-bottom: 9px;
  transition: border-color var(--t-fast);
}

.instruction-step:hover {
  border-color: rgba(124,111,255,.25);
}

.inst-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pk), #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(124,111,255,.3);
}

.inst-text strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 2px;
  color: var(--text);
}

.inst-text span {
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.5;
}

/* ════════════════════════════════════════════════
   VIDEO UPLOAD DROP ZONE
════════════════════════════════════════════════ */
.video-drop {
  width: 100%;
  min-height: 160px;
  border: 2px dashed rgba(124,111,255,.3);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all var(--t-base);
  background: rgba(124,111,255,.04);
  padding: 20px;
  text-align: center;
}

.video-drop:hover {
  border-color: var(--pk);
  background: rgba(124,111,255,.08);
  box-shadow: 0 4px 24px var(--pk-soft);
}

.video-drop.has-file {
  border-color: #22c55e;
  background: rgba(34,197,94,.06);
}

/* ════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    z-index: 200;
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: 8px 0 40px rgba(0,0,0,.7);
  }

  .sidebar-overlay.open { display: block; }

  .main-content { margin-left: 0; }
  .hamburger { display: flex; }
  .content-area { padding: 16px; }
  .form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .auth-box { padding: 28px 20px; }
  .seller-header { padding: 0 16px; }
  .header-username { display: none; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .quick-actions .btn { font-size: 12px; padding: 7px 12px; }
}

/* ════════════════════════════════════════════════
   UTILITY CLASSES
════════════════════════════════════════════════ */
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-info    { color: var(--info); }
.text-soft    { color: var(--text-soft); }
.text-muted   { color: var(--text-muted); }
.fw-700       { font-weight: 700; }
.fw-800       { font-weight: 800; }
.d-flex       { display: flex; }
.align-center { align-items: center; }
.gap-8        { gap: 8px; }
.gap-12       { gap: 12px; }
.mt-0         { margin-top: 0; }
.mb-0         { margin-bottom: 0; }

/* ════════════════════════════════════════════════
   ANIMATIONS
════════════════════════════════════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(.96); }
  to   { opacity: 1; transform: scale(1); }
}

/* Card stagger animation */
.card { animation: fadeInUp .3s ease both; }
.card:nth-child(2) { animation-delay: .05s; }
.card:nth-child(3) { animation-delay: .1s; }

.stat-card { animation: fadeInUp .3s ease both; }
.stats-grid .stat-card:nth-child(1) { animation-delay: .04s; }
.stats-grid .stat-card:nth-child(2) { animation-delay: .08s; }
.stats-grid .stat-card:nth-child(3) { animation-delay: .12s; }
.stats-grid .stat-card:nth-child(4) { animation-delay: .16s; }
.stats-grid .stat-card:nth-child(5) { animation-delay: .2s; }

/* Smooth page transitions for content area */
.content-area { animation: fadeIn .25s ease both; }

/* ════════════════════════════════════════════════
   VARIANT ROW COMPONENT
════════════════════════════════════════════════ */
.variant-row {
  background: rgba(255,255,255,.03);
  border: 1.5px solid rgba(255,255,255,.07);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color var(--t-fast);
}

.variant-row:hover {
  border-color: rgba(124,111,255,.2);
}

/* ════════════════════════════════════════════════
   REFERRAL LINK INPUT
════════════════════════════════════════════════ */
.reflink-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.reflink-wrap input {
  background: rgba(255,255,255,.04);
  cursor: pointer;
  font-family: 'Courier New', monospace;
  font-size: 12.5px;
  color: var(--pk-light);
  border-color: rgba(124,111,255,.18);
}

.reflink-wrap input:hover {
  border-color: rgba(124,111,255,.35);
}

/* ════════════════════════════════════════════════
   PRODUCT IMAGE THUMBNAILS
════════════════════════════════════════════════ */
.product-thumb {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-xs);
  object-fit: cover;
  border: 1px solid var(--card-border);
}

.product-thumb-placeholder {
  width: 46px;
  height: 46px;
  background: var(--bg3);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border: 1px solid var(--card-border);
}

/* ════════════════════════════════════════════════
   BALANCE DISPLAY
════════════════════════════════════════════════ */
.balance-amount {
  font-size: 32px;
  font-weight: 800;
  color: var(--success);
  letter-spacing: -.5px;
  line-height: 1;
  margin-bottom: 4px;
}

/* ════════════════════════════════════════════════
   ZIP UPLOAD
════════════════════════════════════════════════ */
.zip-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 28px 16px;
  border: 2px dashed rgba(167,139,250,.3);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--t-base);
  background: rgba(167,139,250,.04);
  text-align: center;
}

.zip-upload-label:hover {
  border-color: rgba(167,139,250,.5);
  background: rgba(167,139,250,.08);
}
