/* ===================================================
   Social Community Marketplace — Design System
   =================================================== */

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

/* ── CSS Variables ── */
:root {
  --primary: #6C63FF;
  --primary-light: #8B85FF;
  --primary-dark: #4F46E5;
  --secondary: #FF6B6B;
  --accent: #FFD93D;
  --success: #6BCB77;
  --warning: #FFD93D;
  --danger: #FF6B6B;

  --bg: #F8F8FC;
  --bg-card: #FFFFFF;
  --bg-input: #F0F0F5;
  --bg-sidebar: #FFFFFF;
  --bg-nav: #FFFFFF;
  --bg-overlay: rgba(0,0,0,0.5);

  --text-primary: #1A1A2E;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --text-inverse: #FFFFFF;

  --border: #E5E7EB;
  --border-strong: #D1D5DB;
  --divider: #F3F4F6;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.16);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --nav-height: 60px;
  --sidebar-width: 240px;
  --right-panel-width: 320px;

  --transition: 0.2s ease;
  --transition-slow: 0.35s ease;
}

[data-theme="dark"] {
  --bg: #0E0E1A;
  --bg-card: #1A1A2E;
  --bg-input: #252540;
  --bg-sidebar: #141428;
  --bg-nav: #141428;

  --text-primary: #F0F0FF;
  --text-secondary: #A0A0C0;
  --text-muted: #6B6B90;

  --border: #2A2A4A;
  --border-strong: #3A3A5A;
  --divider: #1F1F38;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 15px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  transition: background var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; outline: none; border: none; }
ul, ol { list-style: none; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ===================================================
   TOP NAVIGATION
   =================================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition);
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--primary);
  white-space: nowrap;
  text-decoration: none;
}
.navbar-logo .logo-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 18px;
  flex-shrink: 0;
}

.navbar-search {
  flex: 1;
  max-width: 480px;
  position: relative;
}
.navbar-search input {
  width: 100%;
  background: var(--bg-input);
  border: 1.5px solid transparent;
  border-radius: var(--radius-full);
  padding: 8px 16px 8px 40px;
  font-size: 0.875rem;
  color: var(--text-primary);
  transition: border-color var(--transition), background var(--transition);
}
.navbar-search input:focus {
  border-color: var(--primary);
  background: var(--bg-card);
}
.navbar-search input::placeholder { color: var(--text-muted); }
.navbar-search .search-icon {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--radius);
  color: var(--text-secondary);
  transition: all var(--transition);
  position: relative;
  text-decoration: none;
}
.nav-tab:hover { background: var(--bg-input); color: var(--primary); }
.nav-tab.active { color: var(--primary); background: rgba(108,99,255,0.1); }
.nav-tab .badge {
  position: absolute;
  top: 6px; right: 6px;
  width: 16px; height: 16px;
  background: var(--secondary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg-nav);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.btn-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition);
  position: relative;
}
.btn-icon:hover { background: var(--bg-input); color: var(--text-primary); }
.btn-icon .badge {
  position: absolute;
  top: 4px; right: 4px;
  width: 14px; height: 14px;
  background: var(--secondary);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg-nav);
}

.avatar {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  object-fit: cover;
  flex-shrink: 0;
}
.avatar-sm { width: 28px; height: 28px; }
.avatar-md { width: 40px; height: 40px; }
.avatar-lg { width: 52px; height: 52px; }
.avatar-xl { width: 80px; height: 80px; }
.avatar-2xl { width: 100px; height: 100px; }

.avatar-placeholder {
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  font-size: 14px;
}

/* ===================================================
   LAYOUT SHELL
   =================================================== */
.app-shell {
  display: flex;
  padding-top: var(--nav-height);
  min-height: 100vh;
}

/* ── Sidebar ── */
.sidebar {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  width: var(--sidebar-width);
  height: calc(100vh - var(--nav-height));
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background var(--transition);
  z-index: 100;
}

.sidebar-section-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 8px 10px 4px;
  margin-top: 4px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
  text-decoration: none;
}
.sidebar-link:hover { background: var(--bg-input); color: var(--text-primary); }
.sidebar-link.active { background: rgba(108,99,255,0.12); color: var(--primary); }
.sidebar-link .icon { width: 20px; height: 20px; flex-shrink: 0; }
.sidebar-link .count {
  margin-left: auto;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-full);
  padding: 1px 7px;
  min-width: 20px;
  text-align: center;
}

/* ── Main Content ── */
.main-content {
  flex: 1;
  min-width: 0;
  margin-left: var(--sidebar-width);
  margin-right: var(--right-panel-width);
  min-height: calc(100vh - var(--nav-height));
  padding: 24px 20px;
  max-width: 100%;
}

/* ── Right Panel ── */
.right-panel {
  position: fixed;
  top: var(--nav-height);
  right: 0;
  width: var(--right-panel-width);
  height: calc(100vh - var(--nav-height));
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ===================================================
   CARD COMPONENTS
   =================================================== */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.card:hover { box-shadow: var(--shadow); }
.card-padding { padding: 16px; }

/* ===================================================
   STORIES ROW
   =================================================== */
.stories-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.stories-row::-webkit-scrollbar { display: none; }

.story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  flex-shrink: 0;
}
.story-ring {
  width: 64px; height: 64px;
  border-radius: var(--radius-full);
  padding: 2px;
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  flex-shrink: 0;
}
.story-ring.seen {
  background: var(--border);
}
.story-avatar {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--bg-card);
}
.story-avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  color: #fff;
}
.story-label {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
  max-width: 68px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.story-add {
  width: 64px; height: 64px;
  border-radius: var(--radius-full);
  border: 2px dashed var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  background: var(--bg-input);
  flex-shrink: 0;
  font-size: 22px;
  transition: all var(--transition);
}
.story-add:hover { background: rgba(108,99,255,0.1); border-color: var(--primary); }

/* ===================================================
   POST CARD (Feed)
   =================================================== */
.post-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.post-card:hover { box-shadow: var(--shadow); }

.post-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 0;
}
.post-user-info { flex: 1; }
.post-user-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  display: flex; align-items: center; gap: 4px;
}
.post-user-name .verified {
  color: var(--primary);
  font-size: 14px;
}
.post-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.post-menu { color: var(--text-muted); width: 32px; height: 32px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; }
.post-menu:hover { background: var(--bg-input); color: var(--text-primary); }

.post-content { padding: 12px 16px; }
.post-content p { font-size: 0.9rem; line-height: 1.6; color: var(--text-primary); }
.post-content .hashtag { color: var(--primary); font-weight: 500; }
.post-content .mention { color: var(--primary-dark); font-weight: 500; }

.post-media {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--bg-input);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
}
.post-media img { width: 100%; height: 100%; object-fit: cover; }
.post-media-grid {
  display: grid;
  gap: 2px;
}
.post-media-grid.two { grid-template-columns: 1fr 1fr; }
.post-media-grid.three { grid-template-columns: 1fr 1fr; }
.post-media-grid.three .media-item:first-child { grid-column: 1 / -1; }
.media-item {
  aspect-ratio: 1;
  background: var(--bg-input);
  overflow: hidden;
}
.media-item img { width: 100%; height: 100%; object-fit: cover; }

.post-product-embed {
  margin: 0 16px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  gap: 12px;
  overflow: hidden;
  background: var(--bg-input);
  padding: 10px;
  align-items: center;
  cursor: pointer;
  transition: all var(--transition);
}
.post-product-embed:hover { border-color: var(--primary); background: rgba(108,99,255,0.05); }
.post-product-embed img { width: 56px; height: 56px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.embed-info { flex: 1; min-width: 0; }
.embed-info .embed-title { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.embed-info .embed-price { color: var(--primary); font-weight: 700; font-size: 0.9rem; }
.embed-info .embed-store { font-size: 11px; color: var(--text-muted); }

.post-actions {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 8px 8px 12px;
  border-top: 1px solid var(--divider);
  margin-top: 8px;
}
.post-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
  flex: 1;
  justify-content: center;
}
.post-action-btn:hover { background: var(--bg-input); color: var(--text-primary); }
.post-action-btn.liked { color: var(--secondary); }
.post-action-btn.saved { color: var(--primary); }
.post-action-btn span { font-size: 13px; }

/* ===================================================
   PRODUCT CARD
   =================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.product-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.product-img-wrap {
  position: relative;
  aspect-ratio: 1;
  background: var(--bg-input);
  overflow: hidden;
}
.product-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.04); }

.product-badge {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--secondary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}
.product-badge.new { background: var(--success); }
.product-badge.featured { background: var(--primary); }
.product-badge.sale { background: var(--secondary); }

.product-wishlist {
  position: absolute;
  top: 8px; right: 8px;
  width: 30px; height: 30px;
  background: var(--bg-card);
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.product-wishlist:hover, .product-wishlist.active { color: var(--secondary); }

.product-info { padding: 12px; }
.product-store {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; color: var(--text-muted); margin-bottom: 4px;
}
.product-title {
  font-size: 0.875rem; font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 6px;
}
.product-price-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.product-price {
  font-size: 1rem; font-weight: 800;
  color: var(--primary);
}
.product-price-original {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: line-through;
}
.product-ratings {
  display: flex; align-items: center; gap: 4px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 6px;
}
.product-ratings .stars { color: var(--accent); }
.product-sold { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ===================================================
   STORE CARD
   =================================================== */
.store-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  position: relative;
}
.store-card:hover { box-shadow: var(--shadow); }
.store-banner {
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  position: relative;
}
.store-logo-wrap {
  position: absolute;
  top: 56px; /* banner height (80px) - half logo height (24px) */
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.store-logo {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  border: 3px solid var(--bg-card);
  object-fit: cover;
  background: var(--bg-input);
}
.store-logo-placeholder {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  border: 3px solid var(--bg-card);
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.store-info { padding: 32px 12px 14px; }
.store-name { font-size: 0.9rem; font-weight: 700; color: var(--text-primary); display: flex; align-items: center; justify-content: center; gap: 4px; }
.store-followers { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.store-follow-btn {
  margin-top: 10px;
  width: 100%;
  padding: 7px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  background: transparent;
  transition: all var(--transition);
}
.store-follow-btn:hover, .store-follow-btn.following {
  background: var(--primary);
  color: #fff;
}

/* ===================================================
   BUTTONS
   =================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary {
  background: var(--secondary);
  color: #fff;
}
.btn-secondary:hover { opacity: 0.9; }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border-strong);
  color: var(--text-primary);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: rgba(108,99,255,0.05); }
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover { background: var(--bg-input); color: var(--text-primary); }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-lg { padding: 13px 28px; font-size: 1rem; }
.btn-full { width: 100%; }
.btn-pill { border-radius: var(--radius-full); }

/* ===================================================
   COMPOSE POST
   =================================================== */
.compose-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
}
.compose-top {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.compose-input {
  flex: 1;
  background: var(--bg-input);
  border: 1.5px solid transparent;
  border-radius: var(--radius-full);
  padding: 10px 16px;
  font-size: 0.875rem;
  color: var(--text-primary);
  transition: border-color var(--transition);
}
.compose-input:focus { border-color: var(--primary); }
.compose-input::placeholder { color: var(--text-muted); }
.compose-actions {
  display: flex; align-items: center; gap: 4px; border-top: 1px solid var(--divider); padding-top: 12px;
}
.compose-action {
  display: flex; align-items: center; gap: 5px;
  padding: 7px 10px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.compose-action:hover { background: var(--bg-input); color: var(--primary); }
.compose-submit { margin-left: auto; }

/* ===================================================
   CATEGORY CHIPS
   =================================================== */
.chips-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.chips-row::-webkit-scrollbar { display: none; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  background: var(--bg-card);
  transition: all var(--transition);
  flex-shrink: 0;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===================================================
   SECTION HEADER
   =================================================== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex; align-items: center; gap: 8px;
}
.section-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  transition: opacity var(--transition);
  text-decoration: none;
}
.section-link:hover { opacity: 0.8; }

/* ===================================================
   TRENDING / TAGS WIDGET
   =================================================== */
.widget-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
}
.widget-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
  display: flex; align-items: center; gap: 8px;
}

.trending-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--divider);
  cursor: pointer;
}
.trending-item:last-child { border-bottom: none; }
.trending-rank {
  width: 24px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
}
.trending-info { flex: 1; }
.trending-tag { font-size: 0.875rem; font-weight: 600; color: var(--text-primary); }
.trending-count { font-size: 11px; color: var(--text-muted); }

.suggest-user {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0;
}
.suggest-user-info { flex: 1; min-width: 0; }
.suggest-user-name { font-size: 0.875rem; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 4px; }
.suggest-user-sub { font-size: 12px; color: var(--text-muted); }
.follow-btn {
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.follow-btn:hover, .follow-btn.following { background: var(--primary); color: #fff; }

/* ===================================================
   FLASH SALE BANNER
   =================================================== */
.flash-sale-banner {
  background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 60%, #FFD93D 100%);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  color: #fff;
  overflow: hidden;
  position: relative;
  gap: 8px 12px;
}
.flash-sale-banner .flash-timer {
  flex-shrink: 0;
  margin-left: auto;
}
.flash-sale-banner::before {
  content: '⚡';
  position: absolute;
  right: -8px; top: -18px;
  font-size: 90px;
  opacity: 0.12;
  pointer-events: none;
}
.flash-title { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.3px; }
.flash-subtitle { font-size: 0.82rem; opacity: 0.88; margin-top: 3px; }
/* Right-panel widget version */
.flash-widget {
  background: var(--bg-card);
  border: 1px solid rgba(255,107,107,0.25);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 24px rgba(255,107,107,0.14);
}
.flash-widget-header {
  background: linear-gradient(135deg, #FF416C 0%, #FF6B35 55%, #FF9A3C 100%);
  padding: 14px 16px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.flash-widget-header::before {
  content: '⚡';
  position: absolute;
  right: -6px;
  top: -16px;
  font-size: 90px;
  opacity: 0.12;
  pointer-events: none;
  transform: rotate(12deg);
}
.flash-widget-body { padding: 14px 16px; }
.flash-timer {
  display: flex; gap: 6px; align-items: center;
}
.flash-widget-header .flash-timer {
  width: 100%;
  justify-content: space-between;
}
.flash-widget-header .flash-timer .timer-block { flex: 1; }
.flash-widget-header .flash-timer .timer-sep { flex-shrink: 0; }
.timer-block {
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  padding: 6px 10px;
  text-align: center;
  min-width: 44px;
}
.timer-block-dark {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  text-align: center;
  min-width: 52px;
}
.timer-num { font-size: 1.25rem; font-weight: 900; line-height: 1; letter-spacing: -0.5px; }
.timer-num-lg { font-size: 1.6rem; font-weight: 900; line-height: 1; color: var(--danger); }
.timer-label { font-size: 9px; opacity: 0.85; margin-top: 2px; text-transform: uppercase; letter-spacing: 0.5px; }
.timer-label-dark { font-size: 10px; color: var(--text-muted); margin-top: 3px; text-transform: uppercase; letter-spacing: 0.5px; }
.timer-sep { font-size: 1.3rem; font-weight: 800; line-height: 1; animation: timerBlink 1s step-start infinite; }
@keyframes timerBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}
.timer-sep-dark { font-size: 1.5rem; font-weight: 800; color: var(--danger); padding: 0 2px; }

/* ===================================================
   CHAT BUBBLE
   =================================================== */
.chat-layout {
  display: flex;
  height: calc(100vh - var(--nav-height));
  overflow: hidden;
}
.chat-sidebar {
  width: 320px;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  background: var(--bg-card);
}
.chat-sidebar-header {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
  font-weight: 700;
}
.chat-list { overflow-y: auto; flex: 1; }
.chat-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background var(--transition);
  border-bottom: 1px solid var(--divider);
  position: relative;
}
.chat-item:hover, .chat-item.active { background: rgba(108,99,255,0.06); }
.chat-item-info { flex: 1; min-width: 0; }
.chat-item-name { font-size: 0.875rem; font-weight: 600; display: flex; align-items: center; justify-content: space-between; }
.chat-item-preview { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-item-time { font-size: 11px; color: var(--text-muted); }
.chat-unread {
  width: 18px; height: 18px;
  background: var(--primary);
  color: #fff; font-size: 10px; font-weight: 700;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  margin-top: 4px;
}
.online-dot {
  width: 10px; height: 10px;
  border-radius: var(--radius-full);
  background: var(--success);
  border: 2px solid var(--bg-card);
  position: absolute;
  bottom: 10px; left: 38px;
}

.chat-main {
  flex: 1; display: flex; flex-direction: column; overflow: hidden;
}
.chat-header {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}
.chat-header-info { flex: 1; }
.chat-header-name { font-weight: 700; font-size: 0.95rem; }
.chat-header-status { font-size: 12px; color: var(--success); }
.chat-messages {
  flex: 1; overflow-y: auto;
  padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
  background: var(--bg);
}
.msg-row { display: flex; gap: 8px; }
.msg-row.mine { flex-direction: row-reverse; }
.msg-bubble {
  max-width: 70%;
  padding: 10px 14px;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  line-height: 1.5;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.msg-row.mine .msg-bubble {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
}
.msg-time { font-size: 10px; color: var(--text-muted); margin-top: 4px; text-align: right; }
.msg-row.mine .msg-time { text-align: right; }
.chat-input-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}
.chat-input-bar input {
  flex: 1;
  background: var(--bg-input);
  border: 1.5px solid transparent;
  border-radius: var(--radius-full);
  padding: 10px 16px;
  font-size: 0.875rem;
  color: var(--text-primary);
  transition: border-color var(--transition);
}
.chat-input-bar input:focus { border-color: var(--primary); }
.chat-send-btn {
  width: 38px; height: 38px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
  flex-shrink: 0;
}
.chat-send-btn:hover { background: var(--primary-dark); }

/* ===================================================
   PROFILE PAGE
   =================================================== */
.profile-banner {
  height: 200px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  position: relative;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
}
.profile-banner img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar-wrap {
  position: absolute;
  bottom: -40px;
  left: 24px;
}
.profile-avatar-ring {
  width: 84px; height: 84px;
  border-radius: var(--radius-full);
  padding: 3px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}
.profile-info-bar {
  padding: 52px 24px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: none;
}
.profile-name { font-size: 1.2rem; font-weight: 800; color: var(--text-primary); display: flex; align-items: center; gap: 6px; }
.profile-handle { font-size: 0.9rem; color: var(--text-muted); margin-top: 2px; }
.profile-bio { font-size: 0.875rem; color: var(--text-secondary); margin-top: 10px; }
.profile-stats { display: flex; gap: 24px; margin-top: 14px; }
.profile-stat { text-align: center; }
.profile-stat-num { font-size: 1.1rem; font-weight: 800; color: var(--text-primary); }
.profile-stat-label { font-size: 12px; color: var(--text-muted); }
.profile-actions { display: flex; gap: 10px; margin-top: 16px; }

/* ===================================================
   TABS
   =================================================== */
.tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab-item {
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
}
.tab-item:hover { color: var(--primary); }
.tab-item.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ===================================================
   FORM STYLES
   =================================================== */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 0.875rem;
  color: var(--text-primary);
  transition: border-color var(--transition), background var(--transition);
}
.form-input:focus { border-color: var(--primary); background: var(--bg-card); }
.form-input::placeholder { color: var(--text-muted); }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--danger); margin-top: 4px; }

/* ===================================================
   NOTIFICATION ITEM
   =================================================== */
.notif-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--divider);
  cursor: pointer;
  transition: background var(--transition);
}
.notif-item:hover { background: var(--bg-input); }
.notif-item.unread { background: rgba(108,99,255,0.05); }
.notif-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.notif-body { flex: 1; }
.notif-text { font-size: 0.875rem; color: var(--text-primary); line-height: 1.4; }
.notif-text strong { font-weight: 600; }
.notif-time { font-size: 11px; color: var(--text-muted); margin-top: 3px; }
.notif-thumb { width: 40px; height: 40px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; background: var(--bg-input); }

/* ===================================================
   BOTTOM NAV (Mobile)
   =================================================== */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 56px;
  background: var(--bg-nav);
  border-top: 1px solid var(--border);
  z-index: 1000;
  padding: 0 8px;
  align-items: center;
  justify-content: space-around;
}
.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 12px;
  border-radius: var(--radius);
  color: var(--text-muted);
  transition: color var(--transition);
  text-decoration: none;
  position: relative;
}
.bottom-nav-item.active { color: var(--primary); }
.bottom-nav-item span { font-size: 10px; font-weight: 600; }
.bottom-nav-item .badge {
  position: absolute;
  top: 2px; right: 8px;
  width: 14px; height: 14px;
  background: var(--secondary);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg-nav);
}
.bottom-nav-fab {
  width: 48px; height: 48px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(108,99,255,0.4);
  font-size: 22px;
}

/* ===================================================
   MISC UTILITIES
   =================================================== */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 20px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 20px; }
.p-0 { padding: 0; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-muted { color: var(--text-muted); }
.text-primary-color { color: var(--primary); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.divider { height: 1px; background: var(--divider); margin: 12px 0; }
.spacer { flex: 1; }
.overflow-hidden { overflow: hidden; }
.relative { position: relative; }
.w-full { width: 100%; }
.rounded { border-radius: var(--radius); }
.rounded-full { border-radius: var(--radius-full); }

/* Color Avatars */
.color-1 { background: #6C63FF; }
.color-2 { background: #FF6B6B; }
.color-3 { background: #6BCB77; }
.color-4 { background: #FFD93D; color: #333 !important; }
.color-5 { background: #4ECDC4; }
.color-6 { background: #FF8C42; }
.color-7 { background: #C355F5; }
.color-8 { background: #0096FF; }

/* ===================================================
   PAGE HEADER
   =================================================== */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #2D1B69 100%);
  border-radius: var(--radius-xl);
  padding: 32px;
  color: #fff;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 300px; height: 300px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.06);
}
.page-hero h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 8px; }
.page-hero p { font-size: 0.95rem; opacity: 0.85; }

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 1100px) {
  .right-panel { display: none; }
  .main-content { margin-right: 0; }
}
@media (max-width: 768px) {
  .sidebar { display: none; }
  .main-content { margin-left: 0; padding: 16px 12px 72px; }
  .bottom-nav { display: flex; }
  .navbar-nav { display: none; }
  .navbar-search { max-width: 200px; }
}
@media (max-width: 480px) {
  .navbar-search { display: none; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .page-hero { padding: 20px; }
  .page-hero h1 { font-size: 1.4rem; }
}

/* ===================================================
   AVATAR DROPDOWN
   =================================================== */
.avatar-dropdown {
  position: relative;
}
.avatar-dropdown > .avatar {
  border: 2px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.avatar-dropdown.open > .avatar,
.avatar-dropdown > .avatar:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108,99,255,0.18);
}
.avatar-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
  padding: 8px;
  z-index: 1500;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.97);
  transform-origin: top right;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.avatar-dropdown.open .avatar-dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
}
.avatar-dropdown-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 10px;
}
.avatar-dropdown-divider {
  height: 1px;
  background: var(--divider);
  margin: 4px 0;
}
.avatar-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.avatar-dropdown-item:hover {
  background: var(--bg-input);
  color: var(--primary);
}
.avatar-dropdown-item--danger { color: var(--danger); }
.avatar-dropdown-item--danger:hover { background: rgba(255,107,107,0.1); color: var(--danger); }

/* ===================================================
   MODAL
   =================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(10px);
  transition: transform var(--transition);
  border: 1px solid var(--border);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-header {
  padding: 20px 20px 0;
  display: flex; align-items: center; justify-content: space-between;
}
.modal-title { font-size: 1.05rem; font-weight: 700; }
.modal-close { width: 32px; height: 32px; border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; color: var(--text-muted); }
.modal-close:hover { background: var(--bg-input); color: var(--text-primary); }
.modal-body { padding: 20px; }

/* ===================================================
   TOAST
   =================================================== */
.toast-container {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 3000;
  display: flex; flex-direction: column; gap: 10px;
}
.toast {
  background: var(--text-primary);
  color: var(--bg);
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px;
  min-width: 250px;
  transform: translateX(120%);
  transition: transform 0.3s ease;
}
.toast.show { transform: translateX(0); }
.toast.success { background: var(--success); color: #fff; }
.toast.error { background: var(--danger); color: #fff; }
.toast.warning { background: var(--warning); color: #333; }

/* ===================================================
   SKELETON LOADING
   =================================================== */
@keyframes skeleton-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.skeleton {
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}
.skeleton-avatar { border-radius: var(--radius-full); }
.skeleton-text { height: 14px; margin-bottom: 6px; }
.skeleton-text:last-child { width: 70%; }

/* ===================================================
   COMMUNITY POST (Classified)
   =================================================== */
.classified-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
}
.classified-card:hover { box-shadow: var(--shadow); }
.classified-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--bg-input);
}
.classified-body { padding: 12px; }
.classified-price { font-size: 1.1rem; font-weight: 800; color: var(--primary); }
.classified-title { font-size: 0.875rem; font-weight: 600; color: var(--text-primary); margin-top: 2px; }
.classified-location { font-size: 12px; color: var(--text-muted); margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.classified-time { font-size: 11px; color: var(--text-muted); }
.classified-type-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 6px;
}
.type-used { background: rgba(255,107,107,0.15); color: var(--danger); }
.type-new { background: rgba(107,203,119,0.15); color: var(--success); }
.type-service { background: rgba(108,99,255,0.15); color: var(--primary); }
.type-rental { background: rgba(255,217,61,0.2); color: #B8860B; }

/* ===================================================
   PRODUCT DETAIL
   =================================================== */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.product-gallery { position: sticky; top: calc(var(--nav-height) + 20px); }
.gallery-main {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-input);
  margin-bottom: 10px;
  border: 1px solid var(--border);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; }
.gallery-thumb {
  width: 64px; height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
}
.gallery-thumb.active { border-color: var(--primary); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb-placeholder { width: 100%; height: 100%; background: var(--bg-input); }

.product-detail-title { font-size: 1.3rem; font-weight: 800; color: var(--text-primary); line-height: 1.3; }
.product-detail-price { font-size: 1.8rem; font-weight: 900; color: var(--primary); margin: 12px 0; }
.product-detail-price .original { font-size: 1rem; color: var(--text-muted); text-decoration: line-through; font-weight: 500; }
.product-detail-price .discount { font-size: 0.9rem; background: rgba(255,107,107,0.15); color: var(--danger); padding: 2px 8px; border-radius: var(--radius-full); font-weight: 600; }

.variant-options { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.variant-btn {
  padding: 7px 16px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--bg-input);
  color: var(--text-secondary);
}
.variant-btn.active { border-color: var(--primary); color: var(--primary); background: rgba(108,99,255,0.08); }
.variant-btn.out-of-stock { opacity: 0.4; cursor: not-allowed; }

.qty-control {
  display: flex; align-items: center; gap: 0;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  width: fit-content;
}
.qty-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
  transition: background var(--transition);
}
.qty-btn:hover { background: var(--border); }
.qty-num {
  width: 48px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

/* ===================================================
   ORDER STATUS TIMELINE
   =================================================== */
.order-timeline { padding: 0; }
.timeline-step {
  display: flex; gap: 14px;
  padding-bottom: 24px;
  position: relative;
}
.timeline-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 32px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-step.done::before { background: var(--primary); }
.timeline-dot {
  width: 32px; height: 32px;
  border-radius: var(--radius-full);
  background: var(--bg-input);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
  color: var(--text-muted);
}
.timeline-step.done .timeline-dot {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.timeline-step.active .timeline-dot {
  background: var(--bg-card);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 0 4px rgba(108,99,255,0.15);
}
.timeline-info { padding-top: 4px; }
.timeline-status { font-weight: 600; font-size: 0.9rem; color: var(--text-primary); }
.timeline-time { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ===================================================
   SEARCH RESULTS
   =================================================== */
.search-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}
/* Filter bar container */
.filter-bar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.filter-bar-top {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.filter-search-wrap {
  flex: 1;
  min-width: 180px;
  position: relative;
}
.filter-search-wrap i,
.filter-search-wrap svg {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  pointer-events: none; color: var(--text-muted);
}
.filter-search-input {
  width: 100%;
  padding: 9px 12px 9px 34px;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 13px;
  color: var(--text-primary);
  transition: border-color var(--transition);
}
.filter-search-input:focus { border-color: var(--primary); outline: none; }
.filter-bar-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.filter-select {
  padding: 8px 12px;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color var(--transition);
  font-family: inherit;
}
.filter-select:focus { border-color: var(--primary); outline: none; }
.filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.filter-row::-webkit-scrollbar { display: none; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  background: var(--bg-card);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.filter-chip:hover { border-color: var(--primary); color: var(--primary); background: rgba(108,99,255,0.05); }
.filter-chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.filter-results-info { font-size: 13px; color: var(--text-muted); }

/* ===================================================
   DARK MODE TOGGLE — Icon button
   =================================================== */
.theme-toggle {
  width: 36px; height: 36px;
  background: var(--bg-input);
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  transition: all var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--primary); color: var(--primary); background: rgba(108,99,255,0.08); }
/* Show sun in light mode, moon in dark mode */
.theme-icon-dark { display: none; }
.theme-icon-light { display: block; }
[data-theme="dark"] .theme-icon-light { display: none; }
[data-theme="dark"] .theme-icon-dark { display: block; }

/* ===================================================
   PAGE-SPECIFIC: LOGIN
   =================================================== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #6C63FF15 0%, #FF6B6B0A 50%, #FFD93D08 100%);
  padding: 20px;
}
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-xl);
}
.auth-logo {
  text-align: center;
  margin-bottom: 28px;
}
.auth-logo .logo-mark {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 28px;
  color: #fff;
  margin-bottom: 12px;
}
.auth-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 4px; text-align: center; }
.auth-sub { font-size: 0.875rem; color: var(--text-muted); text-align: center; margin-bottom: 24px; }
.social-login { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.social-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 11px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-card);
  cursor: pointer;
  transition: all var(--transition);
}
.social-btn:hover { border-color: var(--border-strong); background: var(--bg-input); }
.or-divider {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; color: var(--text-muted);
  margin-bottom: 20px;
}
.or-divider::before, .or-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-footer { text-align: center; font-size: 0.875rem; color: var(--text-secondary); margin-top: 20px; }
.auth-footer a { color: var(--primary); font-weight: 600; }

/* ===================================================
   ANIMATIONS
   =================================================== */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(108,99,255,0.4); } 70% { box-shadow: 0 0 0 10px rgba(108,99,255,0); } 100% { box-shadow: 0 0 0 0 rgba(108,99,255,0); } }
@keyframes like-pop { 0% { transform: scale(1); } 30% { transform: scale(1.35); } 60% { transform: scale(0.9); } 100% { transform: scale(1); } }

.animate-fade { animation: fadeIn 0.35s ease both; }
.animate-like { animation: like-pop 0.35s ease; }

.page-content { animation: fadeIn 0.3s ease both; }

/* ===================================================
   AUTH EXTRAS
   =================================================== */
.auth-body .app-shell, .auth-body .sidebar, .auth-body .right-panel { display: none !important; }
.auth-page { flex-direction: column; padding-top: 72px; }
.auth-tab-btn {
  flex: 1; padding: 9px 12px; border: none; background: none; border-radius: 8px;
  font-size: 14px; font-weight: 600; color: var(--text-muted); cursor: pointer; transition: all var(--transition);
}
.auth-tab-btn.active {
  background: var(--bg-card); color: var(--primary);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* ===================================================
   PROFILE PAGE EXTRAS
   =================================================== */
.profile-banner { width: 100%; }
.profile-info-bar { background: var(--bg-card); border: 1px solid var(--border); border-top: none; }
.profile-stats { display: flex; gap: 24px; flex-wrap: wrap; }
.profile-stat { cursor: pointer; text-align: center; padding: 4px 8px; border-radius: 8px; transition: background var(--transition); }
.profile-stat:hover { background: var(--bg-input); }
.stat-val { font-size: 1.15rem; font-weight: 800; color: var(--text-primary); }
.stat-label { font-size: 11px; color: var(--text-muted); }

/* ===================================================
   CHAT PAGE EXTRAS
   =================================================== */
.chat-layout {
  display: flex;
  height: calc(100vh - 60px);
  overflow: hidden;
  margin-top: 60px;
}
.chat-sidebar {
  width: 320px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--divider);
  background: var(--bg-card);
  overflow: hidden;
}
.chat-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}
.chat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background var(--transition);
  border-radius: 0;
}
.chat-item:hover { background: var(--bg-input); }
.chat-item.active { background: rgba(108, 99, 255, 0.08); border-left: 3px solid var(--primary); }
.chat-item.unread .chat-item-last { font-weight: 600; color: var(--text-primary); }
.chat-item-avatar { position: relative; flex-shrink: 0; }
.chat-item-info { flex: 1; min-width: 0; }
.chat-item-name { font-size: 14px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-item-last { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-item-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.chat-item-time { font-size: 11px; color: var(--text-muted); }

.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-base);
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--divider);
  background: var(--bg-card);
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.msg-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.msg-row.mine {
  flex-direction: row-reverse;
}
.msg-bubble {
  max-width: 380px;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  word-break: break-word;
}
.msg-row.mine .msg-bubble {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  border-bottom-right-radius: 4px;
  border-bottom-left-radius: 18px;
}
.msg-time {
  font-size: 10px;
  color: var(--text-muted);
  padding: 2px 4px;
  white-space: nowrap;
}
.chat-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid var(--divider);
  background: var(--bg-card);
}
.chat-input {
  flex: 1;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 24px;
  font-size: 14px;
  outline: none;
  color: var(--text-primary);
  transition: border-color var(--transition);
}
.chat-input:focus { border-color: var(--primary); }
.btn-send { border-radius: 20px !important; padding: 8px 14px !important; }
.online-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--success); border: 2px solid var(--bg-card);
  position: absolute; bottom: 1px; right: 1px;
}
.typing-dots { display: flex; align-items: center; gap: 4px; min-height: 20px; }
.typing-dots span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--text-muted);
  animation: typing-bounce 1.2s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* ===================================================
   RESPONSIVE: CHAT & AUTH
   =================================================== */
@media (max-width: 768px) {
  .chat-sidebar { width: 100%; min-width: 0; position: absolute; left: 0; right: 0; top: 56px; bottom: 56px; z-index: 10; }
  .chat-back-btn { display: flex !important; }
  .auth-card { padding: 28px 20px; }
  .auth-card > div[style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
}

/* ===================================================
   CART & CHECKOUT
   =================================================== */
.cart-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 0; border-bottom: 1px solid var(--divider);
}
.cart-item-img {
  width: 80px; height: 80px; border-radius: var(--radius);
  object-fit: cover; background: var(--bg-input);
  flex-shrink: 0; display:flex;align-items:center;justify-content:center;
  font-size: 30px;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.cart-item-store { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.cart-item-price { font-size: 15px; font-weight: 700; color: var(--primary); }
.qty-control {
  display: flex; align-items: center; gap: 0;
  border: 1.5px solid var(--border); border-radius: var(--radius-full);
  overflow: hidden;
}
.qty-btn {
  width: 30px; height: 30px;
  background: var(--bg-input); border: none;
  font-size: 16px; font-weight: 700;
  color: var(--text-primary); cursor: pointer;
  transition: background var(--transition);
  display:flex;align-items:center;justify-content:center;
}
.qty-btn:hover { background: var(--border); }
.qty-num { padding: 0 10px; font-size: 14px; font-weight: 600; min-width: 32px; text-align:center; }
.order-summary-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
  position: sticky; top: 80px;
}
.order-summary-row {
  display: flex; justify-content: space-between;
  font-size: 14px; padding: 7px 0;
  border-bottom: 1px solid var(--divider);
}
.order-summary-row:last-child { border-bottom: none; font-weight: 700; font-size: 16px; color: var(--text-primary); }
.promo-input-row { display: flex; gap: 8px; margin: 12px 0; }
.promo-input { flex: 1; padding: 9px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-full); font-size: 13px; background: var(--bg-input); color: var(--text-primary); font-family: inherit; }
.promo-input:focus { border-color: var(--primary); outline: none; }
.checkout-steps {
  display: flex; align-items: center; gap: 0;
  margin-bottom: 28px; overflow-x: auto;
}
.checkout-step {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  white-space: nowrap;
}
.checkout-step.active { color: var(--primary); }
.checkout-step.done { color: var(--success); }
.step-circle {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--border); display: flex;
  align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; background: var(--bg-card);
  flex-shrink: 0;
}
.checkout-step.active .step-circle { border-color: var(--primary); color: var(--primary); background: rgba(108,99,255,0.1); }
.checkout-step.done .step-circle { border-color: var(--success); background: var(--success); color: #fff; }
.step-line { flex: 1; height: 2px; background: var(--border); min-width: 20px; }
.step-line.done { background: var(--success); }

/* ===================================================
   ORDER LIST & ORDER DETAIL
   =================================================== */
.order-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px 20px;
  margin-bottom: 12px; transition: border-color var(--transition);
  cursor: pointer;
}
.order-card:hover { border-color: var(--primary); }
.order-card-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; flex-wrap:wrap; gap:8px; }
.order-id { font-size: 13px; font-weight: 700; color: var(--primary); }
.status-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: var(--radius-full);
  font-size: 11px; font-weight: 600;
}
.status-pending { background: rgba(255,193,7,0.15); color: #b8860b; }
.status-confirmed { background: rgba(108,99,255,0.12); color: var(--primary); }
.status-shipping { background: rgba(0,150,255,0.12); color: #0096ff; }
.status-delivered { background: rgba(107,203,119,0.15); color: var(--success); }
.status-cancelled { background: rgba(255,107,107,0.12); color: var(--danger); }
.order-timeline { padding: 16px 0; }
.timeline-item { display:flex; gap:14px; align-items:flex-start; position:relative; padding-bottom:16px; }
.timeline-item:last-child { padding-bottom:0; }
.timeline-dot {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--border); display:flex;
  align-items:center; justify-content:center;
  background: var(--bg-card); flex-shrink:0; font-size:16px;
}
.timeline-dot.done { border-color: var(--success); background: rgba(107,203,119,0.1); }
.timeline-dot.active { border-color: var(--primary); background: rgba(108,99,255,0.1); }
.timeline-line {
  position:absolute; left:17px; top:38px;
  width:2px; height:calc(100% - 38px);
  background: var(--border);
}
.timeline-line.done { background: var(--success); }
.timeline-text { font-size: 14px; font-weight: 600; }
.timeline-sub { font-size: 12px; color: var(--text-muted); margin-top: 3px; }

/* ===================================================
   SETTINGS PAGE
   =================================================== */
.settings-layout {
  display: flex; gap: 0;
  min-height: calc(100vh - 60px);
}
.settings-nav {
  width: 220px; min-width: 180px;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  padding: 20px 0;
  flex-shrink: 0;
}
.settings-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px; font-size: 14px;
  font-weight: 500; color: var(--text-secondary);
  cursor: pointer; transition: all var(--transition);
  border-left: 3px solid transparent;
}
.settings-nav-item:hover { background: var(--bg-input); color: var(--text-primary); }
.settings-nav-item.active { color: var(--primary); border-left-color: var(--primary); background: rgba(108,99,255,0.06); font-weight: 600; }
.settings-section { padding: 28px 0; border-bottom: 1px solid var(--divider); }
.settings-section:last-child { border-bottom: none; }
.settings-section-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.settings-section-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.settings-row { display:flex; align-items:center; justify-content:space-between; padding: 10px 0; gap: 16px; }
.toggle-switch {
  width: 44px; height: 24px;
  background: var(--border-strong); border-radius: 12px;
  cursor: pointer; position: relative;
  transition: background var(--transition); flex-shrink:0;
}
.toggle-switch.on { background: var(--primary); }
.toggle-switch::after {
  content:''; width:18px; height:18px; background:#fff;
  border-radius:50%; position:absolute; top:3px; left:3px;
  transition: transform var(--transition);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.toggle-switch.on::after { transform: translateX(20px); }

/* ===================================================
   SELLER DASHBOARD
   =================================================== */
.metric-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
  flex: 1; min-width: 0;
}
.metric-value { font-size: 1.8rem; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.metric-label { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.metric-delta {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600; margin-top: 6px;
  padding: 2px 8px; border-radius: var(--radius-full);
}
.delta-up { background: rgba(107,203,119,0.12); color: var(--success); }
.delta-down { background: rgba(255,107,107,0.12); color: var(--danger); }
.chart-placeholder {
  background: var(--bg-input); border-radius: var(--radius);
  height: 180px; display:flex;align-items:center;justify-content:center;
  color: var(--text-muted); font-size:13px;
  margin-top: 12px;
  background: linear-gradient(180deg, var(--bg-input) 0%, var(--bg-base) 100%);
  position: relative; overflow: hidden;
}
.chart-bars {
  position:absolute; bottom:0; left:0; right:0;
  display:flex; align-items:flex-end; gap:4px;
  padding: 0 16px; height: 140px;
}
.chart-bar {
  flex:1; background:var(--primary); border-radius:4px 4px 0 0;
  opacity:0.7; transition: all var(--transition);
}
.chart-bar:hover { opacity:1; }
.data-table { width:100%; border-collapse:collapse; font-size:13px; }
.data-table th { text-align:left; padding:10px 12px; font-size:11px; text-transform:uppercase; letter-spacing:0.5px; color:var(--text-muted); border-bottom:2px solid var(--divider); font-weight:600; }
.data-table td { padding:11px 12px; border-bottom:1px solid var(--divider); color:var(--text-secondary); }
.data-table tr:last-child td { border-bottom:none; }
.data-table tr:hover td { background:var(--bg-input); }

/* ===================================================
   WALLET
   =================================================== */
.wallet-card {
  background: linear-gradient(135deg, var(--primary), #9b59b6);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  color: #fff; position:relative; overflow:hidden;
  margin-bottom: 20px;
}
.wallet-card::before {
  content:''; position:absolute;
  right:-40px; top:-40px;
  width:200px; height:200px;
  border-radius:50%;
  background:rgba(255,255,255,0.08);
}
.wallet-card::after {
  content:''; position:absolute;
  right:40px; bottom:-60px;
  width:160px; height:160px;
  border-radius:50%;
  background:rgba(255,255,255,0.06);
}
.wallet-balance-label { font-size:13px; opacity:0.8; margin-bottom:4px; }
.wallet-balance { font-size:2.4rem; font-weight:900; line-height:1; margin-bottom:16px; }
.wallet-actions { display:flex; gap:12px; }
.wallet-action-btn {
  flex:1; background:rgba(255,255,255,0.2);
  border:1px solid rgba(255,255,255,0.3);
  border-radius:var(--radius); color:#fff;
  padding:9px 8px; font-size:13px; font-weight:600;
  cursor:pointer; transition:background var(--transition);
  display:flex;align-items:center;justify-content:center;gap:6px;
  font-family:inherit;
}
.wallet-action-btn:hover { background:rgba(255,255,255,0.3); }
.transaction-item {
  display:flex; align-items:center; gap:12px;
  padding:12px 0; border-bottom:1px solid var(--divider);
}
.transaction-icon {
  width:40px;height:40px;border-radius:var(--radius);
  display:flex;align-items:center;justify-content:center;
  font-size:18px; flex-shrink:0;
}
.transaction-info { flex:1; min-width:0; }
.transaction-title { font-size:14px;font-weight:600; }
.transaction-sub { font-size:12px;color:var(--text-muted);margin-top:2px; }
.transaction-amount { font-size:15px;font-weight:700;flex-shrink:0; }
.amount-credit { color:var(--success); }
.amount-debit { color:var(--danger); }

/* ===================================================
   EVENTS, JOBS, RENTALS
   =================================================== */
.event-card {
  background:var(--bg-card);border:1px solid var(--border);
  border-radius:var(--radius-lg);overflow:hidden;
  transition:border-color var(--transition),box-shadow var(--transition);
  cursor:pointer;
}
.event-card:hover { border-color:var(--primary);box-shadow:var(--shadow-lg); }
.event-banner {
  height:140px;background:linear-gradient(135deg,#6C63FF,#FF6B6B);
  display:flex;align-items:flex-end;padding:12px 16px;
  position:relative;overflow:hidden;
}
.event-banner .event-date-badge {
  background:rgba(255,255,255,0.9);backdrop-filter:blur(8px);
  border-radius:8px;padding:6px 12px;text-align:center;
  font-size:13px;font-weight:700;color:var(--text-primary);
}
.event-body { padding:14px 16px; }
.event-title { font-size:15px;font-weight:700;margin-bottom:6px; }
.event-meta-row { display:flex;gap:12px;flex-wrap:wrap;font-size:12px;color:var(--text-muted); }
.event-meta-row span { display:flex;align-items:center;gap:4px; }
.job-card {
  background:var(--bg-card);border:1px solid var(--border);
  border-radius:var(--radius-lg);padding:16px 20px;
  transition:border-color var(--transition);cursor:pointer;
  display:flex;gap:14px;align-items:flex-start;
}
.job-card:hover { border-color:var(--primary); }
.job-logo {
  width:48px;height:48px;border-radius:var(--radius);
  background:var(--bg-input);border:1px solid var(--border);
  display:flex;align-items:center;justify-content:center;
  font-size:20px;flex-shrink:0;
}
.job-title { font-size:15px;font-weight:700;margin-bottom:4px; }
.job-company { font-size:13px;color:var(--text-muted);margin-bottom:8px; }
.job-tags { display:flex;gap:6px;flex-wrap:wrap; }
.job-tag {
  padding:3px 10px;border-radius:var(--radius-full);
  font-size:11px;font-weight:600;
  background:var(--bg-input);color:var(--text-secondary);
  border:1px solid var(--border);
}
.rental-card {
  background:var(--bg-card);border:1px solid var(--border);
  border-radius:var(--radius-lg);overflow:hidden;
  transition:border-color var(--transition),box-shadow var(--transition);
  cursor:pointer;
}
.rental-card:hover { border-color:var(--primary);box-shadow:var(--shadow-lg); }
.rental-img {
  width:100%;height:160px;
  background:var(--bg-input);
  display:flex;align-items:center;justify-content:center;
  font-size:48px; position:relative;
}
.rental-price-badge {
  position:absolute;bottom:10px;left:10px;
  background:var(--primary);color:#fff;
  padding:4px 10px;border-radius:var(--radius-full);
  font-size:13px;font-weight:700;
}
.rental-body { padding:14px 16px; }

/* ===================================================
   LIVE STREAM
   =================================================== */
.live-badge {
  background:var(--danger);color:#fff;
  padding:3px 10px;border-radius:var(--radius-full);
  font-size:11px;font-weight:700;letter-spacing:0.5px;
  animation:pulse-ring 1.5s infinite;
  display:inline-flex;align-items:center;gap:4px;
}
.live-badge::before { content:'•';font-size:14px;line-height:1; }
.live-viewer-count {
  display:inline-flex;align-items:center;gap:6px;
  font-size:13px;font-weight:600;color:#fff;
  background:rgba(0,0,0,0.4);backdrop-filter:blur(6px);
  padding:4px 12px;border-radius:var(--radius-full);
}
.live-chat-msg { padding:6px 12px;font-size:13px; }
.live-chat-msg .msg-author { font-weight:700;color:var(--primary);margin-right:4px; }

/* ===================================================
   HELP CENTER
   =================================================== */
.faq-item { border-bottom:1px solid var(--divider); }
.faq-question {
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 0;cursor:pointer;font-size:14px;font-weight:600;
  color:var(--text-primary);transition:color var(--transition);
  gap:12px;
}
.faq-question:hover { color:var(--primary); }
.faq-answer {
  font-size:14px;color:var(--text-secondary);line-height:1.7;
  padding:0 0 14px 0;display:none;
}
.faq-item.open .faq-answer { display:block; }
.faq-item.open .faq-icon { transform:rotate(180deg); }
.faq-icon { transition:transform var(--transition);flex-shrink:0; }

/* ===================================================
   EXPLORE / DISCOVER
   =================================================== */
.explore-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
  gap:12px;
}
.explore-card {
  border-radius:var(--radius-lg);overflow:hidden;
  position:relative;aspect-ratio:3/4;
  background:var(--bg-input);cursor:pointer;
  transition:transform var(--transition),box-shadow var(--transition);
}
.explore-card:hover { transform:scale(1.02);box-shadow:var(--shadow-lg); }
.explore-card-media { width:100%;height:100%;object-fit:cover;display:flex;align-items:center;justify-content:center;font-size:54px; }
.explore-card-overlay {
  position:absolute;bottom:0;left:0;right:0;
  background:linear-gradient(transparent,rgba(0,0,0,0.75));
  padding:16px 12px 10px;color:#fff;
}
.explore-card-title { font-size:13px;font-weight:700;margin-bottom:2px; }
.explore-card-sub { font-size:11px;opacity:0.8; }

/* ===================================================
   NOTIFICATIONS FULL PAGE
   =================================================== */
.notif-tab-bar {
  display:flex;gap:0;border-bottom:2px solid var(--divider);
  margin-bottom:0;
}
.notif-tab {
  padding:12px 16px;font-size:13px;font-weight:600;
  color:var(--text-muted);cursor:pointer;border-bottom:2px solid transparent;
  margin-bottom:-2px;transition:all var(--transition);white-space:nowrap;
}
.notif-tab.active { color:var(--primary);border-bottom-color:var(--primary); }
.notif-group-header {
  font-size:11px;font-weight:700;text-transform:uppercase;
  letter-spacing:0.6px;color:var(--text-muted);
  padding:14px 20px 8px;
}

/* ===================================================
   PROFILE HIGHLIGHTS
   =================================================== */
.highlights-row {
  display:flex;gap:16px;padding:16px 20px;
  overflow-x:auto;scrollbar-width:none;
}
.highlights-row::-webkit-scrollbar { display:none; }
.highlight-item {
  display:flex;flex-direction:column;align-items:center;
  gap:6px;cursor:pointer;flex-shrink:0;
}
.highlight-ring {
  width:60px;height:60px;
  border-radius:50%;
  border:2px solid transparent;
  background:linear-gradient(var(--bg-card),var(--bg-card)) padding-box,
    linear-gradient(135deg,var(--primary),var(--secondary)) border-box;
  display:flex;align-items:center;justify-content:center;
  font-size:26px;
  transition:transform var(--transition);
}
.highlight-item:hover .highlight-ring { transform:scale(1.08); }
.highlight-label { font-size:11px;color:var(--text-muted);font-weight:500; }
.highlight-item.new-story .highlight-ring {
  background:linear-gradient(var(--bg-input),var(--bg-input)) padding-box,
    linear-gradient(135deg,var(--border),var(--border)) border-box;
}

/* ===================================================
   NOTIFICATION ITEM ALIASES & EXTRAS
   =================================================== */
.notif-content { flex:1; }
.notif-meta { font-size:11px;color:var(--text-muted);margin-top:4px; }
.notif-dot {
  width:9px;height:9px;border-radius:50%;
  background:var(--primary);flex-shrink:0;margin-top:4px;
}
.notif-avatar {
  width:38px;height:38px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-size:13px;font-weight:700;color:#fff;flex-shrink:0;
}

/* ===================================================
   WISHLIST PAGE
   =================================================== */
.wishlist-grid {
  display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));
  gap:16px;
}
.wishlist-card {
  background:var(--bg-card);border-radius:var(--radius-lg);
  overflow:hidden;border:1.5px solid var(--border);
  transition:transform var(--transition),box-shadow var(--transition);
  cursor:pointer;position:relative;
}
.wishlist-card:hover { transform:translateY(-3px);box-shadow:var(--shadow-md); }
.wishlist-card-img {
  width:100%;aspect-ratio:1;
  display:flex;align-items:center;justify-content:center;
  font-size:52px;background:var(--bg-input);
}
.wishlist-card-body { padding:12px; }
.wishlist-remove-btn {
  position:absolute;top:8px;right:8px;
  width:28px;height:28px;border-radius:50%;
  background:rgba(255,255,255,0.9);border:none;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  color:var(--danger);font-size:14px;
  box-shadow:var(--shadow-sm);
  transition:background var(--transition);
}
.wishlist-remove-btn:hover { background:#fff; }

/* ===================================================
   SETTINGS PAGE
   =================================================== */
.settings-section-title {
  font-size:11px;font-weight:700;text-transform:uppercase;
  letter-spacing:0.8px;color:var(--text-muted);
  padding:16px 20px 8px;border-top:1px solid var(--divider);
  margin-top:8px;
}
.settings-item {
  display:flex;align-items:center;gap:12px;
  padding:14px 20px;cursor:pointer;
  transition:background var(--transition);
  border-bottom:1px solid var(--divider);
}
.settings-item:hover { background:var(--bg-input); }
.settings-item-icon {
  width:36px;height:36px;border-radius:var(--radius);
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;font-size:18px;
}
.settings-item-body { flex:1; }
.settings-item-label { font-size:14px;font-weight:600; }
.settings-item-desc { font-size:12px;color:var(--text-muted);margin-top:1px; }

/* ===================================================
   EXPLORE PAGE
   =================================================== */
.explore-hero {
  border-radius:var(--radius-xl);
  padding:36px 28px;
  margin-bottom:24px;
  background:linear-gradient(135deg,var(--primary),#a78bfa);
  color:#fff;
  position:relative;overflow:hidden;
}
.explore-hero::after {
  content:'🌏';
  position:absolute;right:20px;top:50%;transform:translateY(-50%);
  font-size:72px;opacity:0.25;
}
.explore-category-grid {
  display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));
  gap:12px;margin-bottom:24px;
}
.explore-category-card {
  border-radius:var(--radius-lg);padding:20px 16px;
  display:flex;flex-direction:column;align-items:center;gap:8px;
  background:var(--bg-card);border:1.5px solid var(--border);
  cursor:pointer;transition:all var(--transition);text-decoration:none;
}
.explore-category-card:hover { transform:translateY(-2px);box-shadow:var(--shadow-md);border-color:var(--primary); }
.explore-category-icon { font-size:32px; }
.explore-category-label { font-size:13px;font-weight:700;color:var(--text-primary);text-align:center; }
.explore-category-count { font-size:11px;color:var(--text-muted); }

/* ===================================================
   FLASH SALE PAGE
   =================================================== */
.flash-hero {
  background:linear-gradient(135deg,#ff416c,#ff4b2b);
  border-radius:var(--radius-xl);
  padding:32px 24px;
  color:#fff;text-align:center;
  display: flex;
  flex-direction: column;
  margin-bottom:24px;
  position:relative;overflow:hidden;
}
.flash-hero::before {
  content:'';
  position:absolute;inset:0;
  background:url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  flex-wrap: wrap;
  gap: 10px 12px;
}
.flash-timer-lg {
.flash-widget-header > div:first-child {
  flex: 1;
  min-width: 0;
}
.flash-widget-header .flash-timer {
  flex-shrink: 0;
  margin-left: auto;
}
  display:flex;gap:8px;justify-content:center;margin:16px 0;
}
.flash-timer-block {
  background:rgba(0,0,0,0.3);border-radius:10px;
  padding:10px 16px;min-width:60px;text-align:center;
}
.flash-timer-num { font-size:28px;font-weight:900;line-height:1; }
.flash-timer-label { font-size:10px;font-weight:700;opacity:0.8;text-transform:uppercase;letter-spacing:1px; }
.flash-timer-sep { font-size:28px;font-weight:900;align-self:center;opacity:0.6; }
.flash-product-grid {
  display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
  gap:16px;
}
.flash-product-card {
  background:var(--bg-card);border-radius:var(--radius-lg);
  overflow:hidden;border:1.5px solid var(--border);
  position:relative;cursor:pointer;
  transition:all var(--transition);
}
.flash-product-card:hover { transform:translateY(-3px);box-shadow:var(--shadow-md); }
.flash-discount-badge {
  position:absolute;top:8px;left:8px;
  background:linear-gradient(135deg,#ff416c,#ff4b2b);
  color:#fff;font-size:11px;font-weight:800;
  padding:3px 8px;border-radius:20px;
}


/* ===================================================
   WALLET PAGE
   =================================================== */
.transaction-item {
  display:flex;align-items:center;gap:12px;
  padding:12px 0;border-bottom:1px solid var(--divider);
}
.tx-icon {
  width:36px;height:36px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-weight:900;font-size:16px;flex-shrink:0;
}
.tx-body { flex:1; }
.tx-title { font-size:13px;font-weight:600; }
.tx-date { font-size:11px;color:var(--text-muted);margin-top:2px; }
.tx-amount { font-weight:800;font-size:14px; }
.tx-amount.positive { color:var(--success); }
.tx-amount.negative { color:var(--danger); }

/* ===================================================
   FOLLOWERS PAGE
   =================================================== */
.user-list-item {
  display:flex;align-items:center;gap:12px;
  padding:12px 16px;border-bottom:1px solid var(--divider);
  cursor:pointer;transition:background var(--transition);
}
.user-list-item:hover { background:var(--bg-input); }
.user-list-meta { font-size:12px;color:var(--text-muted);margin-top:2px; }

/* ===================================================
   SEARCH PAGE
   =================================================== */
.search-result-item {
  display:flex;gap:14px;padding:16px 0;
  border-bottom:1px solid var(--divider);cursor:pointer;
  transition:background var(--transition);
}
.search-result-item:hover { background:var(--bg-input);padding-left:8px;padding-right:8px;border-radius:var(--radius); }
.search-result-img {
  width:72px;height:72px;border-radius:var(--radius-lg);
  display:flex;align-items:center;justify-content:center;
  font-size:36px;flex-shrink:0;background:var(--bg-input);
}


/* ===================================================
   EVENT CARD EXTRA (image + badge)
   =================================================== */
.event-img {
  width:90px;min-width:90px;height:90px;border-radius:var(--radius-lg);
  display:flex;align-items:center;justify-content:center;font-size:36px;
}
.event-badge {
  display:inline-block;font-size:11px;font-weight:700;
  padding:2px 8px;border-radius:20px;
  background:rgba(108,99,255,0.1);color:var(--primary);margin-bottom:2px;
}
.rental-badge {
  display:inline-block;font-size:11px;font-weight:700;
  padding:2px 8px;border-radius:20px;
  background:rgba(108,99,255,0.1);color:var(--primary);margin-bottom:2px;
}

.event-card { display:flex;align-items:flex-start; }

/* ===================================================
   DESIGN POLISH v2 — Enhanced Visual Language
   =================================================== */

/* ── Navbar: Glassmorphism ── */
.navbar {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(229,231,235,0.65);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 4px 24px rgba(0,0,0,0.04);
}
[data-theme="dark"] .navbar {
  background: rgba(14,14,26,0.88);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 1px 0 rgba(0,0,0,0.3), 0 4px 24px rgba(0,0,0,0.25);
}

/* ── Logo glow ── */
.navbar-logo .logo-icon {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  box-shadow: 0 2px 10px rgba(108,99,255,0.35);
}

/* ── Buttons: Gradient & Depth ── */
.btn-primary {
  background: linear-gradient(135deg, #6C63FF 0%, #8B5CF6 100%);
  box-shadow: 0 2px 12px rgba(108,99,255,0.3);
  transition: all 0.2s ease;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #5B52EE 0%, #7C3AED 100%);
  box-shadow: 0 4px 22px rgba(108,99,255,0.45);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(108,99,255,0.3); }
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(108,99,255,0.05);
  box-shadow: 0 2px 10px rgba(108,99,255,0.1);
}

/* ── Product Cards ── */
.product-card:hover {
  box-shadow: 0 12px 40px rgba(108,99,255,0.13), 0 2px 10px rgba(0,0,0,0.06);
  transform: translateY(-4px);
  border-color: rgba(108,99,255,0.2);
}
/* Product price: gradient text */
.product-price {
  background: linear-gradient(135deg, #6C63FF, #8B5CF6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: var(--primary); /* fallback */
}
/* Product badges: gradients */
.product-badge.featured { background: linear-gradient(135deg, #6C63FF, #8B5CF6); }
.product-badge.sale     { background: linear-gradient(135deg, #FF6B6B, #FF8E53); }
.product-badge.new      { background: linear-gradient(135deg, #6BCB77, #4ECDC4); }
.product-badge { box-shadow: 0 2px 6px rgba(0,0,0,0.18); }
.product-wishlist { transition: all 0.2s ease; }
.product-wishlist:hover { transform: scale(1.12); color: var(--secondary); }

/* ── Post Cards ── */
.post-card:hover { box-shadow: 0 6px 28px rgba(0,0,0,0.09); }

/* ── Store Cards ── */
.store-card:hover {
  box-shadow: 0 10px 32px rgba(108,99,255,0.14);
  transform: translateY(-3px);
}
.store-follow-btn:hover,
.store-follow-btn.following {
  background: linear-gradient(135deg, var(--primary), #8B5CF6);
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(108,99,255,0.3);
}

/* ── Event Cards ── */
.event-card {
  padding: 14px;
  gap: 14px;
  transition: all 0.2s ease;
}
.event-card:hover {
  border-color: rgba(108,99,255,0.35);
  box-shadow: 0 8px 32px rgba(108,99,255,0.12);
  transform: translateY(-2px);
}
.event-body { padding: 0; flex: 1; }

/* ── Job Cards ── */
.job-card {
  transition: all 0.2s ease;
}
.job-card:hover {
  border-color: rgba(108,99,255,0.35);
  box-shadow: 0 6px 24px rgba(108,99,255,0.1);
  transform: translateY(-2px);
}

/* ── Rental Cards ── */
.rental-card {
  transition: all 0.2s ease;
}
.rental-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(108,99,255,0.1);
  border-color: rgba(108,99,255,0.25);
}

/* ── Classified Cards ── */
.classified-card:hover {
  box-shadow: 0 8px 28px rgba(108,99,255,0.12);
  transform: translateY(-2px);
  border-color: rgba(108,99,255,0.2);
}

/* ── Sidebar Active State ── */
.sidebar-link.active {
  background: linear-gradient(90deg, rgba(108,99,255,0.14), rgba(108,99,255,0.03));
  color: var(--primary);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--primary);
}
[data-theme="dark"] .sidebar-link.active {
  background: linear-gradient(90deg, rgba(108,99,255,0.2), rgba(108,99,255,0.04));
}

/* ── Chips/Filters ── */
.chip.active {
  background: linear-gradient(135deg, #6C63FF, #8B5CF6);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 12px rgba(108,99,255,0.3);
}
.chip:hover {
  background: rgba(108,99,255,0.06);
  border-color: var(--primary);
  color: var(--primary);
}
.filter-chip.active {
  background: linear-gradient(135deg, #6C63FF, #8B5CF6);
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(108,99,255,0.28);
}

/* ── Tabs: Gradient text ── */
.tab-item.active {
  background: linear-gradient(90deg, #6C63FF, #8B5CF6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  border-bottom-color: var(--primary);
}

/* ── Widget Cards ── */
.widget-card {
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease;
}
.widget-card:hover { box-shadow: var(--shadow); }

/* ── Follow Button ── */
.follow-btn:hover,
.follow-btn.following {
  background: linear-gradient(135deg, #6C63FF, #8B5CF6);
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(108,99,255,0.3);
}

/* ── Form Focus Rings ── */
.form-input:focus {
  border-color: var(--primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(108,99,255,0.12);
}
.navbar-search input:focus {
  border-color: var(--primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(108,99,255,0.1);
}
.compose-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108,99,255,0.1);
}
.chat-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108,99,255,0.1);
}
.promo-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108,99,255,0.1);
}

/* ── Story Ring Hover ── */
.story-ring { transition: transform 0.2s ease; }
.story-item:hover .story-ring { transform: scale(1.06); }

/* ── Bottom Nav FAB ── */
.bottom-nav-fab {
  background: linear-gradient(135deg, #6C63FF, #8B5CF6);
  box-shadow: 0 4px 18px rgba(108,99,255,0.48);
}

/* ── Metric Cards (Dashboard) ── */
.metric-card { transition: all 0.2s ease; }
.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.09);
  border-color: rgba(108,99,255,0.2);
}

/* ── Order Cards ── */
.order-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 18px rgba(108,99,255,0.1);
}

/* ── Page Hero: Richer Gradient ── */
.page-hero {
  background: linear-gradient(135deg, #6C63FF 0%, #7C3AED 40%, #2D1B69 80%, #1A0A4A 100%);
  box-shadow: 0 8px 36px rgba(108,99,255,0.22);
}

/* ── Explore Category Cards ── */
.explore-category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 26px rgba(108,99,255,0.15);
  border-color: rgba(108,99,255,0.3);
  background: rgba(108,99,255,0.04);
}
.explore-card:hover {
  transform: scale(1.03) translateY(-2px);
  box-shadow: 0 14px 44px rgba(0,0,0,0.22);
}

/* ── Wallet Card: Richer Gradient ── */
.wallet-card {
  background: linear-gradient(135deg, #6C63FF 0%, #9b59b6 35%, #C355F5 65%, #FF6B6B 100%);
  box-shadow: 0 12px 44px rgba(108,99,255,0.32);
}

/* ── Auth Card ── */
.auth-card {
  box-shadow: 0 24px 64px rgba(0,0,0,0.1), 0 4px 20px rgba(108,99,255,0.08);
}

/* ── Flash Sale Hero ── */
.flash-hero {
  box-shadow: 0 10px 40px rgba(255,65,108,0.25);
}
.flash-sale-banner {
  box-shadow: 0 4px 20px rgba(255,107,107,0.2);
}
.live-badge {
  box-shadow: 0 2px 10px rgba(255,107,107,0.45);
}

/* ── Wishlist Card ── */
.wishlist-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(108,99,255,0.12);
  border-color: rgba(108,99,255,0.2);
}

/* ── Dark Mode Refinements ── */
[data-theme="dark"] .product-card:hover {
  box-shadow: 0 12px 40px rgba(108,99,255,0.22), 0 2px 10px rgba(0,0,0,0.4);
  border-color: rgba(108,99,255,0.32);
}
[data-theme="dark"] .widget-card {
  box-shadow: 0 2px 14px rgba(0,0,0,0.25);
}
[data-theme="dark"] .btn-primary {
  box-shadow: 0 2px 14px rgba(108,99,255,0.4);
}

/* ── Compose product embed hover ── */
.post-product-embed:hover {
  border-color: var(--primary);
  background: rgba(108,99,255,0.05);
  box-shadow: 0 2px 10px rgba(108,99,255,0.1);
}

/* ── Nav tab active indicator ── */
.nav-tab.active {
  color: var(--primary);
  background: rgba(108,99,255,0.1);
  box-shadow: inset 0 -2px 0 var(--primary);
}

/* ── Timeline dot (active) glow ── */
.timeline-step.active .timeline-dot {
  box-shadow: 0 0 0 5px rgba(108,99,255,0.15);
}
.timeline-dot.active {
  box-shadow: 0 0 0 5px rgba(108,99,255,0.15);
}

/* ── Smooth card transitions ── */
.card, .post-card, .product-card, .classified-card,
.store-card, .event-card, .job-card, .rental-card,
.order-card, .wishlist-card, .flash-product-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

/* ── Profile stat hover ── */
.profile-stat:hover { background: rgba(108,99,255,0.08); }

/* ── FAQs ── */
.faq-question:hover { color: var(--primary); }

/* ── Data table row hover ── */
.data-table tr:hover td { background: rgba(108,99,255,0.04); }

/* ── Chart bars ── */
.chart-bar {
  background: linear-gradient(0deg, #6C63FF, #a78bfa);
  opacity: 0.8;
}
.chart-bar:hover { opacity: 1; }

/* ── Explore hero ── */
.explore-hero {
  background: linear-gradient(135deg, #6C63FF 0%, #a78bfa 60%, #C355F5 100%);
  box-shadow: 0 8px 32px rgba(108,99,255,0.22);
}

/* ── Chat send button ── */
.chat-send-btn {
  background: linear-gradient(135deg, #6C63FF, #8B5CF6);
  box-shadow: 0 2px 10px rgba(108,99,255,0.3);
}
.chat-send-btn:hover {
  background: linear-gradient(135deg, #5B52EE, #7C3AED);
  box-shadow: 0 4px 16px rgba(108,99,255,0.4);
}

/* ── Section title with gradient icon ── */
.section-link:hover { color: #8B5CF6; opacity: 1; }

/* ── Improved scrollbar ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), #8B5CF6);
  opacity: 0.6;
}

