/* ==========================================================================
   ABONI — MODERN FLAT DESIGN SYSTEM (FLAT UI 2.0)
   Crisp Surfaces, Precision Borders, Vibrant Accents, Clean Typography
   ========================================================================== */

:root {
  /* Flat Dark Theme Surfaces */
  --bg-deep: #090714;
  --bg-main: #0f0c20;
  --bg-surface: #141029;
  --bg-surface-elevated: #1a1634;
  --bg-surface-hover: #221c44;
  --bg-card: #141029;
  --bg-glass: rgba(20, 16, 41, 0.95);

  /* Vibrant Flat Brand Accents */
  --primary: #7c3aed;
  --primary-hover: #6d28d9;
  --primary-light: #a855f7;
  --primary-glow: rgba(124, 58, 237, 0.3);
  --primary-container: rgba(124, 58, 237, 0.14);
  --primary-border: rgba(124, 58, 237, 0.35);

  --accent: #7c3aed;
  --accent-pink: #ec4899;
  --accent-cyan: #06b6d4;
  --accent-amber: #f59e0b;

  /* Typography Colors */
  --text-main: #f8fafc;
  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Precision Flat Borders */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-color: rgba(255, 255, 255, 0.12);
  --border-focus: #7c3aed;

  /* Status Colors */
  --status-success: #10b981;
  --status-success-bg: rgba(16, 185, 129, 0.12);
  --status-warning: #f59e0b;
  --status-warning-bg: rgba(245, 158, 11, 0.12);
  --status-danger: #ef4444;
  --status-danger-bg: rgba(239, 68, 68, 0.12);

  /* Modern Flat Shadows (Subtle, Clean Elevation) */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.1);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.25), 0 2px 4px -1px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.15);
  --shadow-hover: 0 10px 25px -5px rgba(124, 58, 237, 0.25);
  --shadow-focus: 0 0 0 3px rgba(124, 58, 237, 0.25);

  /* Backward Compatibility Aliases (Overriding Neumorphism) */
  --neu-raised: var(--shadow-sm);
  --neu-raised-sm: var(--shadow-xs);
  --neu-raised-lg: var(--shadow-md);
  --neu-raised-hover: var(--shadow-hover);
  --neu-inset: none;
  --neu-inset-focus: var(--shadow-focus);
  --neu-primary: var(--shadow-sm);
  --neu-primary-active: none;
  --neu-border: 1px solid var(--border-color);
  --neu-border-top: 1px solid var(--border-color);

  /* Radius Tokens */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  /* Typography */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-arabic: 'Cairo', 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* Motion */
  --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   MODERN FLAT LIGHT (WHITE) THEME
   ========================================================================== */
[data-theme="light"] {
  --bg-deep: #f8fafc;
  --bg-main: #f1f5f9;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-surface-hover: #f8fafc;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.95);

  --primary: #7c3aed;
  --primary-hover: #6d28d9;
  --primary-light: #7c3aed;
  --primary-container: rgba(124, 58, 237, 0.08);
  --primary-border: rgba(124, 58, 237, 0.25);
  --accent: #7c3aed;

  --text-main: #0f172a;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-dim: #94a3b8;

  --border-subtle: #f1f5f9;
  --border-color: #e2e8f0;
  --border-focus: #7c3aed;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-hover: 0 10px 20px -3px rgba(124, 58, 237, 0.15);
  --shadow-focus: 0 0 0 3px rgba(124, 58, 237, 0.18);

  --neu-raised: var(--shadow-sm);
  --neu-raised-sm: var(--shadow-xs);
  --neu-raised-lg: var(--shadow-md);
  --neu-raised-hover: var(--shadow-hover);
  --neu-inset: none;
  --neu-inset-focus: var(--shadow-focus);
  --neu-primary: var(--shadow-sm);
  --neu-primary-active: none;
  --neu-border: 1px solid var(--border-color);
  --neu-border-top: 1px solid var(--border-color);
}

[data-theme="light"] body {
  background-color: var(--bg-deep);
  background-image: none;
  color: var(--text-main);
}

[data-theme="light"] .brand-text {
  background: linear-gradient(135deg, #0f172a 40%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] h1, 
[data-theme="light"] h2, 
[data-theme="light"] h3, 
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6,
[data-theme="light"] strong,
[data-theme="light"] b,
[data-theme="light"] th,
[data-theme="light"] .product-title,
[data-theme="light"] .product-title a,
[data-theme="light"] .product-price-box .price-val,
[data-theme="light"] [style*="color:#fff"],
[data-theme="light"] [style*="color: #fff"],
[data-theme="light"] [style*="color:white"],
[data-theme="light"] [style*="color: white"] {
  color: #0f172a !important;
}

[data-theme="light"] .btn-primary,
[data-theme="light"] .btn-success,
[data-theme="light"] .action-btn-green,
[data-theme="light"] .action-btn-red,
[data-theme="light"] .btn-primary *,
[data-theme="light"] .btn-success * {
  color: #ffffff !important;
}

[data-theme="light"] .site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  box-shadow: none;
}

[data-theme="light"] .admin-sidebar {
  background: #ffffff;
  border-right: 1px solid var(--border-color);
  box-shadow: none;
}

[data-theme="light"] .admin-main {
  background: var(--bg-main);
}

/* ==========================================================================
   RESET & GLOBAL CANVAS
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  background-color: var(--bg-deep);
  color: var(--text-main);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-main);
  line-height: 1.65;
  letter-spacing: -0.012em;
  background-color: var(--bg-deep);
  background-image: radial-gradient(900px circle at 50% 0%, rgba(124, 58, 237, 0.08), transparent 70%);
  background-attachment: fixed;
  color: var(--text-main);
}

[dir="rtl"], [dir="rtl"] body {
  font-family: var(--font-arabic) !important;
  line-height: 1.75;
  letter-spacing: normal;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  display: block;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Announcement Bar */
.announcement-bar {
  background: linear-gradient(90deg, #7c3aed, #9333ea, #c026d3);
  color: #ffffff;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  letter-spacing: -0.01em;
}

/* Sticky Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1.5rem;
}

/* Brand Logo */
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.brand-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary), #ec4899);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.brand-text {
  background: linear-gradient(135deg, #ffffff 40%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   FLAT SEARCH BAR
   ========================================================================== */
.search-container {
  flex: 1;
  max-width: 440px;
  position: relative;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 0.55rem 1.25rem;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-xs);
}

.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: var(--shadow-focus);
}

.search-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 0.92rem;
  width: 100%;
  margin-left: 0.75rem;
  font-family: inherit;
}

[dir="rtl"] .search-input {
  margin-left: 0;
  margin-right: 0.75rem;
}

.search-input::placeholder {
  color: var(--text-dim);
}

/* Autocomplete Dropdown */
.autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 380px;
  overflow-y: auto;
  z-index: 1100;
  display: none;
}

.autocomplete-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-fast);
  cursor: pointer;
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item:hover {
  background: var(--bg-surface-hover);
}

.autocomplete-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: contain;
  background: var(--bg-surface-elevated);
  padding: 4px;
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dropdown-trigger {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 38px;
  white-space: nowrap !important;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
}

.dropdown-trigger:hover {
  border-color: var(--primary);
  color: var(--text-primary);
  background: var(--bg-surface-hover);
}

/* User Dropdown Component */
.user-dropdown-container {
  position: relative;
  display: inline-block;
}

.user-dropdown-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.85rem 0.35rem 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 40px;
  white-space: nowrap !important;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
}

.user-dropdown-btn:hover {
  border-color: var(--primary);
  background: var(--bg-surface-hover);
}

.user-avatar-pill {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #9333ea);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 250px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
  z-index: 1200;
  display: none;
}

[dir="rtl"] .user-dropdown-menu {
  right: auto;
  left: 0;
}

.user-dropdown-menu.show {
  display: block;
}

.user-menu-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-menu-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 600;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.user-menu-item:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}

.user-menu-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 0.4rem 0;
}

/* ==========================================================================
   FLAT BUTTONS & CONTROLS
   ========================================================================== */
.btn, .btn-primary, .btn-outline, .btn-success, .btn-copy, .chip, .badge, .action-btn-green, .action-btn-red {
  white-space: nowrap !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.65rem 1.45rem;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  text-align: center;
  box-shadow: var(--shadow-xs);
  user-select: none;
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn-primary {
  background: var(--primary);
  color: #ffffff !important;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.btn-outline {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary-light);
  background: var(--bg-surface-hover);
}

.btn-sm {
  min-height: 36px;
  padding: 0.45rem 1.05rem;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
  gap: 0.4rem;
}

.btn-lg {
  min-height: 52px;
  padding: 0.9rem 2.2rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
  gap: 0.65rem;
}

.btn-success {
  background: #10b981;
  color: #ffffff !important;
  border-color: #10b981;
}

.btn-success:hover {
  background: #059669;
  border-color: #059669;
}

/* Action Buttons */
.action-btn-green {
  background: #10b981;
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.25rem;
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.action-btn-green:hover {
  background: #059669;
}

.action-btn-red {
  background: #ef4444;
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.25rem;
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.action-btn-red:hover {
  background: #dc2626;
}

.btn-icon-eye {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--primary-light);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-icon-eye:hover {
  background: var(--primary-container);
  border-color: var(--primary);
  color: #fff;
}

/* ==========================================================================
   FLAT CARDS & SURFACES
   ========================================================================== */
.surface-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.surface-card-elevated {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow-md);
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   MARKETPLACE HERO & HEADER SECTION
   ========================================================================== */
.hero-section {
  padding: 4.5rem 0 3.5rem;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-container);
  border: 1px solid var(--primary-border);
  color: var(--primary-light);
  padding: 0.4rem 1.15rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 1.12rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto 2.25rem;
}

/* Trust Row (4 Pillars) */
.trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: var(--shadow-xs);
}

.trust-item span:first-child {
  color: var(--primary-light);
  font-size: 1.15rem;
}

/* ==========================================================================
   MARKETPLACE TOOLBAR & CATEGORY CHIPS
   ========================================================================== */
.marketplace-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.category-chips-bar {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.25rem 0;
  scrollbar-width: none;
}

.category-chips-bar::-webkit-scrollbar {
  display: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-xs);
}

.chip:hover {
  border-color: var(--primary);
  color: var(--text-primary);
  background: var(--bg-surface-hover);
}

.chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff !important;
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   MARKETPLACE PRODUCT CARDS (HIGH-CONVERSION E-COMMERCE DESIGN)
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
  margin-bottom: 4rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.product-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.product-card-header {
  padding: 1.5rem 1.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-logo-wrap {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 6px;
}

.product-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.like-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-dim);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.like-btn:hover, .like-btn.liked {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
}

.product-body {
  padding: 0.5rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-meta-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.product-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.45rem;
  color: var(--text-primary);
}

.product-title a:hover {
  color: var(--primary-light);
}

.product-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex: 1;
}

.product-footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price-box .price-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.product-price-box .price-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.product-price-box .old-price {
  font-size: 0.88rem;
  color: var(--text-dim);
  text-decoration: line-through;
  margin-left: 0.4rem;
}

/* ==========================================================================
   FLAT BADGES
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.badge-purple {
  background: var(--primary-container);
  color: var(--primary-light);
  border: 1px solid var(--primary-border);
}

.badge-stock-in {
  background: var(--status-success-bg);
  color: var(--status-success);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-stock-out {
  background: var(--status-danger-bg);
  color: var(--status-danger);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.badge-pending {
  background: var(--status-warning-bg);
  color: var(--status-warning);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

/* ==========================================================================
   FLAT FORM INPUTS & RECESSED FIELDS
   ========================================================================== */
.form-group {
  margin-bottom: 1.35rem;
}

.form-label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--text-secondary);
}

.form-input, .form-select, .form-textarea, .form-control {
  width: 100%;
  padding: 0.8rem 1.15rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-xs);
}

.form-input:focus, .form-select:focus, .form-textarea:focus, .form-control:focus {
  border-color: var(--primary);
  box-shadow: var(--shadow-focus);
}

/* Custom Select Dropdowns */
.form-select, select.dropdown-trigger {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%237c3aed'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.25rem;
  padding-right: 2.75rem !important;
  cursor: pointer;
  min-height: 44px;
}

[dir="rtl"] .form-select, [dir="rtl"] select.dropdown-trigger {
  background-position: left 1rem center;
  padding-right: 1.15rem !important;
  padding-left: 2.75rem !important;
}

.form-select option, select.dropdown-trigger option {
  background-color: var(--bg-surface-elevated);
  color: var(--text-primary);
  padding: 0.6rem 0.8rem;
  font-size: 0.92rem;
}

[data-theme="light"] .form-select option, 
[data-theme="light"] select.dropdown-trigger option {
  background-color: #ffffff !important;
  color: #0f172a !important;
}

/* Payment Gateway Info Box */
.payment-info-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 1.5rem 0;
  box-shadow: var(--shadow-sm);
}

.copy-input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.95rem;
  margin-top: 0.4rem;
}

.copy-text {
  font-family: var(--font-mono);
  font-size: 0.96rem;
  color: var(--primary-light);
  flex: 1;
  word-break: break-all;
}

.btn-copy {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--primary-light);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
}

.btn-copy:hover {
  border-color: var(--primary);
  background: var(--primary-container);
  color: #fff;
}

/* ==========================================================================
   DATA TABLES
   ========================================================================== */
.data-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

[dir="rtl"] .data-table {
  text-align: right;
}

.data-table th {
  padding: 0.95rem 1.25rem;
  background: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.data-table td {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.data-table tbody tr:hover {
  background: var(--bg-surface-hover);
}

/* ==========================================================================
   MODAL WINDOWS & ZOOM
   ========================================================================== */
.proof-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.25rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .nav-inner {
    gap: 1rem;
  }
  .search-container {
    display: none;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 1.85rem;
  }
  .marketplace-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
}
