/* 
  Nexifing E-Commerce Web App - Premium Styling System
  Design: Glassmorphism, Space Navy background, neon border glows, modern responsive grids
  Pixel-Perfect Visual Match to the Ofspace LLC reference image
*/

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

/* --- CSS Variables & Design Tokens --- */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');
:root {
  --font-primary: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Colors matching the reference image exactly */
  --bg-deep: #080B16;
  --bg-gradient: linear-gradient(135deg, #06080F 0%, #0B0E1E 50%, #11152B 100%);
  --sidebar-bg: rgba(10, 14, 28, 0.75);
  --card-bg: rgba(15, 20, 39, 0.65);
  --card-bg-hover: rgba(22, 28, 56, 0.85);
  
  /* Primary Glowing Brand Colors */
  --color-primary: #2563EB;       /* Deep Corporate Blue */
  --color-primary-glow: rgba(37, 99, 235, 0.35);
  --color-secondary: #8B5CF6;     /* Electric Purple */
  --color-secondary-glow: rgba(139, 92, 246, 0.35);
  --color-accent: #EC4899;        /* Sunrise Pink/Coral */
  --color-accent-glow: rgba(236, 72, 153, 0.35);
  
  /* State Colors */
  --color-success: #10B981;       /* Neon Green */
  --color-success-glow: rgba(16, 185, 129, 0.3);
  --color-warning: #F59E0B;
  --color-danger: #EF4444;
  
  /* Muted Text / UI Elements */
  --text-main: #FFFFFF;
  --text-secondary: #8E9BAE;
  --text-muted: #53627A;
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-glow: rgba(37, 99, 235, 0.25);
  --border-neon-purple: rgba(139, 92, 246, 0.25);
  
  /* Layout Constants */
  --sidebar-width: 250px;
  --right-panel-width: 320px;
  --header-height: 70px;
  --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.15s ease;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;

  /* Dynamic Backgrounds */
  --hero-bg: url('./assets/hero-dark.png');
}

/* Light Mode Variables Override (Controlled by JS theme switch) */
body.light-theme {
  --bg-deep: #F3F4F6;
  --bg-gradient: linear-gradient(135deg, #F9FAFB 0%, #E5E7EB 100%);
  --sidebar-bg: rgba(255, 255, 255, 0.85);
  --card-bg: rgba(255, 255, 255, 0.7);
  --card-bg-hover: rgba(255, 255, 255, 0.9);
  --text-main: #1F2937;
  --text-secondary: #4B5563;
  --text-muted: #9CA3AF;
  --border-glass: rgba(0, 0, 0, 0.08);
  --border-glass-glow: rgba(37, 99, 235, 0.15);
  --border-neon-purple: rgba(139, 92, 246, 0.15);
  --color-primary-glow: rgba(37, 99, 235, 0.15);
  --color-secondary-glow: rgba(139, 92, 246, 0.15);
  --color-accent-glow: rgba(236, 72, 153, 0.15);
  --hero-bg: url('./assets/hero-light.png');
}

/* --- Base & Scrollbar Reset --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  background: var(--bg-deep);
  background-image: var(--bg-gradient);
  color: var(--text-main);
  width: 100vw;
  height: 100vh;
  overflow: hidden; /* Lock the main body to prevent double scrollbars on desktop! */
  transition: background 0.4s ease, color 0.4s ease;
}

/* Custom Scrollbar styled for dark mode */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: rgba(10, 14, 28, 0.2);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* --- Layout Wrapper --- */
.app-container {
  display: flex;
  height: 100vh;
  width: 100vw;
  position: relative;
  overflow: hidden;
}

/* Background Glowing Ambient Blurs */
.ambient-glow-1 {
  position: fixed;
  top: -15%;
  right: 10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}
.ambient-glow-2 {
  position: fixed;
  bottom: 5%;
  left: 0%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.06) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

/* --- Left Sidebar Component --- */
.left-sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-right: 1px solid var(--border-glass);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  height: 100vh;
  flex-shrink: 0; /* Lock width on desktop */
  overflow-y: auto;
  z-index: 10;
}

/* Hide scrollbar on sidebar */
.left-sidebar::-webkit-scrollbar {
  display: none;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px 35px 8px;
}

.sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
}

.menu-item a {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 13px 18px;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.menu-item a i {
  font-size: 1.15rem;
  transition: var(--transition-fast);
}

.menu-item.active a {
  background: var(--color-primary);
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
  font-weight: 600;
}

.menu-item:not(.active) a:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  padding-left: 21px;
}

.menu-item .badge {
  background: #EF4444;
  color: white;
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 10px;
  margin-left: auto;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

/* Sidebar Balance / Cart Card widget */
.sidebar-balance-card {
  background: linear-gradient(135deg, #1D4ED8 0%, #7C3AED 100%);
  border-radius: var(--radius-lg);
  padding: 22px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(29, 78, 216, 0.25);
  margin-top: 30px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.sidebar-balance-card::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -30%;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.balance-title {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.balance-amount {
  font-size: 1.45rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 12px;
  word-break: break-all;
}

.balance-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 14px;
  border-radius: 30px;
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(5px);
  transition: var(--transition-smooth);
}

.balance-btn:hover {
  background: #FFFFFF;
  color: #1D4ED8;
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.25);
}

/* --- Middle Column (Main Content Area) --- */
.main-content {
  flex-grow: 1;
  padding: 30px 24px;
  height: 100vh;
  overflow-y: auto; /* Independent middle scrolling */
  z-index: 1;
}

/* Search bar & header navigation wrapper */
.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  gap: 20px;
}

.search-bar-container {
  position: relative;
  max-width: 460px;
  width: 100%;
}

.search-input {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--border-glass);
  padding: 12px 18px 12px 46px;
  border-radius: 40px;
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-smooth);
}

.search-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 15px var(--color-primary-glow);
  background: var(--card-bg-hover);
}

.search-bar-container i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
  background-image: var(--hero-bg) !important;
  background-size: cover !important;
  background-position: center !important;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.hero-section::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--color-primary-glow) 0%, rgba(0, 0, 0, 0) 70%);
  border-radius: 50%;
  filter: blur(20px);
}

.hero-tag {
  display: inline-block;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.3);
  color: #60A5FA;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
  background: linear-gradient(90deg, #FFFFFF 0%, #CBD5E1 50%, #93C5FD 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 600px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary);
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 30px;
  box-shadow: 0 4px 15px var(--color-primary-glow);
  transition: var(--transition-smooth);
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.5);
  background: #1D4ED8;
}

/* Grid & Storefront Headline */
.section-headline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.view-all-link {
  color: var(--color-primary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.view-all-link:hover {
  color: #60A5FA;
  text-decoration: underline;
}

/* Product Responsive Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin-bottom: 35px;
}

/* Clean Taycan Solutions Style Service Card */
.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 16px;
  transition: var(--transition-smooth);
  position: relative;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-4px);
  background: var(--card-bg-hover);
  border-color: var(--border-glass);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Dynamic colors within the card based on category */
.service-card[data-theme="blue"] { 
  --card-glow: #3B82F6; 
  --card-glow-bg: rgba(59, 130, 246, 0.08); 
}
.service-card[data-theme="purple"] { 
  --card-glow: #8B5CF6; 
  --card-glow-bg: rgba(139, 92, 246, 0.08); 
}
.service-card[data-theme="coral"] { 
  --card-glow: #F43F5E; 
  --card-glow-bg: rgba(244, 63, 94, 0.08); 
}

.card-header-graphic {
  width: 100%;
  height: 140px;
  border-radius: var(--radius-md);
  background: var(--card-glow-bg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card-icon-container {
  font-size: 3.5rem;
  color: var(--card-glow);
  transition: transform 0.3s ease;
}

.service-card:hover .card-icon-container {
  transform: scale(1.1);
}

/* Floating Glass Price tag */
.floating-price-tag {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(10, 14, 28, 0.65);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-creator-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 0 4px;
}

.creator-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.creator-verified {
  color: var(--color-primary);
  font-size: 0.75rem;
}

.card-likes {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  padding: 0 4px;
  color: var(--text-main);
  line-height: 1.3;
}

.card-features {
  list-style: none;
  margin-bottom: 18px;
  padding: 0 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-features li {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-features li i {
  color: var(--card-glow);
  font-size: 0.8rem;
}

/* Card Add To Cart Action */
.card-action-row {
  margin-top: auto;
  padding: 4px 4px 8px 4px;
}

.add-to-cart-btn {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  padding: 11px 16px;
  border-radius: var(--radius-md);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.add-to-cart-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
  transform: scale(1.02);
}

.add-to-cart-btn.in-cart {
  background: var(--color-success) !important;
  border-color: var(--color-success) !important;
  color: white;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3) !important;
}

/* Table Style: Development Live Stats */
.table-section {
  background: var(--card-bg);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 30px;
  backdrop-filter: blur(12px);
}

.table-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.table-filter-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.table-filter-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  border-color: var(--text-muted);
}

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

.stats-table th {
  padding: 12px 16px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-glass);
}

.stats-table td {
  padding: 16px;
  font-size: 0.88rem;
  vertical-align: middle;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

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

.stats-table tbody tr {
  transition: var(--transition-fast);
}

.stats-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.015);
}

.table-product-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.table-avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.table-product-name {
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.9rem;
}

.volume-data {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-primary);
  font-weight: 500;
}

.text-cyan {
  color: #06B6D4;
}

.text-green {
  color: var(--color-success);
}

.trend-down {
  color: #EF4444;
  font-weight: 600;
}

.trend-badge-plain {
  font-size: 0.85rem;
  font-weight: 600;
}

/* Popular Creators Row Styling */
.popular-creators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.creator-horizontal-card {
  background: var(--card-bg);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
}

.creator-horizontal-card:hover {
  transform: translateY(-3px);
  background: var(--card-bg-hover);
}

.creator-avatar-container {
  position: relative;
}

.creator-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-primary);
}

.creator-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-success);
  position: absolute;
  bottom: 2px;
  right: 2px;
  border: 2px solid var(--bg-deep);
}

.creator-details {
  flex-grow: 1;
}

.creator-name {
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.creator-role {
  font-size: 0.76rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Overlapping followers list in cards */
.followers-overlapping-row {
  display: flex;
  align-items: center;
  margin-top: 6px;
}

.tiny-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--bg-deep);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.followers-text {
  margin-left: 8px;
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.creator-follow-btn {
  background: var(--color-primary);
  border: none;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.creator-follow-btn:hover {
  background: #1D4ED8;
  box-shadow: 0 4px 10px var(--color-primary-glow);
}

/* --- Right Sidebar Column --- */
.right-sidebar {
  width: var(--right-panel-width);
  background: var(--sidebar-bg);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-left: 1px solid var(--border-glass);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  gap: 25px;
  height: 100vh;
  flex-shrink: 0; /* Lock width on desktop */
  overflow-y: auto; /* Independent scrolling column */
  z-index: 10;
}

/* Hide scrollbar on right sidebar */
.right-sidebar::-webkit-scrollbar {
  display: none;
}

/* Dark Mode Control Header */
.dark-mode-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-glass);
}

.theme-toggle-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
}

.theme-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}

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

.theme-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--card-bg);
  border: 1px solid var(--border-glass);
  border-radius: 34px;
  transition: .4s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
}

.theme-slider i {
  font-size: 0.8rem;
  color: var(--text-muted);
  z-index: 1;
}

.theme-slider::before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: var(--color-primary);
  border-radius: 50%;
  transition: .4s;
  z-index: 2;
  box-shadow: 0 2px 8px var(--color-primary-glow);
}

input:checked + .theme-slider::before {
  transform: translateX(24px);
  background-color: #FBBF24; /* Sun Amber */
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
}

/* Architect Profile Card */
.hero-section {
  background-color: var(--card-bg);
  background-image: linear-gradient(rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.95)), url('assets/hero_bg1.png');
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  margin-bottom: 35px;
  border: 1px solid var(--border-glass);
}
.architect-profile-card {
  background: var(--card-bg);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

/* Background blob inside card for image exact match */
.architect-profile-card::after {
  content: '';
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(10px);
  pointer-events: none;
}

.architect-avatar-ring {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  padding: 3px;
  margin: 0 auto 16px auto;
  box-shadow: 0 0 20px var(--color-primary-glow);
  position: relative;
}

.architect-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-deep);
}

.architect-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: var(--color-primary);
  border: 2px solid var(--card-bg);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
}

.architect-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Wallet address design matching exactly */
.token-address-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 14, 28, 0.45);
  border: 1px solid var(--border-glass);
  padding: 8px 16px;
  border-radius: 30px;
  margin: 18px 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #60A5FA;
}

.token-address-bar i {
  cursor: pointer;
  transition: var(--transition-fast);
}

.token-address-bar i:hover {
  color: #FFFFFF;
}

.architect-actions {
  display: flex;
  gap: 8px;
}

.btn-profile-primary {
  flex-grow: 1;
  background: var(--color-primary);
  border: none;
  color: white;
  padding: 10px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-profile-primary:hover {
  background: #1D4ED8;
  box-shadow: 0 4px 15px var(--color-primary-glow);
}

.btn-profile-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-profile-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Recent Deliveries List */
.deliveries-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.deliveries-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.delivery-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

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

.delivery-num {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  width: 14px;
}

.delivery-avatar-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.delivery-info {
  flex-grow: 1;
}

.delivery-client {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-main);
}

.delivery-price {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Dynamic Inline Sparkline graphs */
.sparkline-container {
  width: 60px;
  height: 30px;
}


/* --- Dynamic Slide-out Cart Drawer --- */
.cart-drawer-backdrop {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(4, 6, 14, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.cart-drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0; right: -420px;
  width: 420px; height: 100vh;
  background: rgba(10, 14, 28, 0.95);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-left: 1px solid var(--border-glass);
  z-index: 101;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: -15px 0 35px rgba(0, 0, 0, 0.5);
  transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cart-drawer.open {
  right: 0;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.cart-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.cart-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.cart-items-wrapper {
  flex-grow: 1;
  overflow-y: auto;
  margin-bottom: 24px;
  padding-right: 4px;
}

.empty-cart-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
}

.empty-cart-state i {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  position: relative;
  transition: var(--transition-fast);
}

.cart-item:hover {
  border-color: var(--border-glass-glow);
  background: rgba(255, 255, 255, 0.04);
}

.cart-item-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.cart-item-info {
  flex-grow: 1;
}

.cart-item-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main);
}

.cart-item-price {
  font-size: 0.8rem;
  color: #60A5FA;
  margin-top: 4px;
  font-weight: 700;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.qty-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.qty-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.qty-val {
  font-size: 0.85rem;
  font-weight: 600;
  min-width: 14px;
  text-align: center;
}

.cart-item-remove {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  padding: 6px;
}

.cart-item-remove:hover {
  color: var(--color-danger);
}

.cart-summary-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 20px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.summary-row.total {
  margin-bottom: 0;
  padding-top: 10px;
  border-top: 1px dashed var(--border-glass);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.cart-checkout-btn {
  width: 100%;
  background: var(--color-primary);
  border: none;
  color: white;
  padding: 14px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px var(--color-primary-glow);
  transition: var(--transition-smooth);
}

.cart-checkout-btn:hover {
  background: #1D4ED8;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}


/* --- simulated Egyptian Checkout Overlay / Screen --- */
.checkout-view-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: var(--bg-deep);
  background-image: var(--bg-gradient);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  overflow-y: auto;
  padding: 40px 20px;
}

.checkout-view-overlay.open {
  opacity: 1;
  visibility: visible;
}

.checkout-container {
  max-width: 900px;
  width: 100%;
  background: rgba(10, 14, 28, 0.7);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 35px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
  position: relative;
}

.checkout-close-corner {
  position: absolute;
  top: 15px; right: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  width: 32px; height: 32px;
  border-radius: 50%;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.checkout-close-corner:hover {
  background: rgba(255, 255, 255, 0.1);
}

.checkout-left {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.checkout-right {
  border-left: 1px solid var(--border-glass);
  padding-left: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.checkout-heading {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.checkout-form-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group-row {
  display: flex;
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.form-input {
  width: 100%;
  background: rgba(10, 14, 28, 0.5);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  color: var(--text-main);
  outline: none;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 10px var(--color-primary-glow);
}

/* Custom Payment Switcher buttons matching standard gateway systems */
.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 15px;
}

.payment-method-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
  color: var(--text-secondary);
}

.payment-method-btn i {
  font-size: 1.4rem;
}

.payment-method-btn span {
  font-size: 0.75rem;
  font-weight: 600;
}

.payment-method-btn.active {
  background: rgba(37, 99, 235, 0.1);
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: 0 0 12px var(--color-primary-glow);
}

/* Payment panels dynamic displays */
.payment-panel {
  display: none;
}

.payment-panel.active {
  display: block;
  animation: fadeIn 0.4s ease forwards;
}

/* Credit card container with responsive aspect ratios */
.credit-card-glow-preview {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, #1E4ED8 0%, #3B82F6 100%);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 25px rgba(29, 78, 216, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.credit-card-glow-preview::after {
  content: '';
  position: absolute;
  top: -20px; right: -20px;
  width: 100px; height: 100px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
}

.card-preview-chip {
  width: 32px;
  height: 24px;
  background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
  border-radius: 4px;
}

.card-preview-num {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  color: #FFFFFF;
}

.card-preview-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-preview-holder {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.card-preview-expiry {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #FFFFFF;
}

.fawry-instruction-box {
  background: rgba(245, 158, 11, 0.05);
  border: 1px dashed rgba(245, 158, 11, 0.3);
  padding: 16px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
}

.fawry-ref-code {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(10, 14, 28, 0.6);
  border: 1px solid var(--border-glass);
  padding: 14px;
  border-radius: var(--radius-md);
  margin-top: 15px;
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: #F59E0B;
}

.fawry-copy-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.15rem;
  transition: var(--transition-fast);
}

.fawry-copy-btn:hover {
  color: #FBBF24;
}

/* Meeza panel card preview */
.meeza-preview {
  background: linear-gradient(135deg, #065F46 0%, #10B981 100%);
  box-shadow: 0 8px 25px rgba(6, 95, 70, 0.3);
}

.meeza-logo-text {
  font-size: 1.1rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}

/* Summary items inside checkout */
.checkout-summary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 180px;
  overflow-y: auto;
  padding-right: 4px;
}

.checkout-summary-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

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

.checkout-total-bill {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.complete-order-btn {
  width: 100%;
  background: var(--color-success);
  border: none;
  color: white;
  padding: 14px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  transition: var(--transition-smooth);
  margin-top: 15px;
}

.complete-order-btn:hover {
  background: #059669;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.5);
  transform: translateY(-2px);
}


/* --- Stunning 3D Success Screen --- */
.success-screen-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: #06080F;
  background-image: radial-gradient(circle at center, #0F162B 0%, #05070C 100%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.success-screen-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Success ring and glowing card effects */
.success-card {
  max-width: 480px;
  width: 90%;
  background: rgba(13, 17, 34, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(16, 185, 129, 0.25);
  box-shadow: 0 15px 45px rgba(16, 185, 129, 0.15), 0 0 80px rgba(0, 0, 0, 0.6);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  animation: scaleUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.success-circle-outer {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  border: 2px solid rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.1);
  animation: pulseGreen 2s infinite;
}

.success-circle-inner {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-success);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.8rem;
  box-shadow: 0 4px 15px var(--color-success-glow);
}

.success-title {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: #FFFFFF;
}

.success-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.success-info-table {
  width: 100%;
  background: rgba(10, 14, 28, 0.5);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.success-info-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.success-info-label {
  color: var(--text-secondary);
}

.success-info-val {
  font-weight: 600;
  color: var(--text-main);
  font-family: var(--font-mono);
}

.success-continue-btn {
  background: var(--color-primary);
  border: none;
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px var(--color-primary-glow);
}

.success-continue-btn:hover {
  background: #1D4ED8;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
  transform: translateY(-1px);
}


/* --- CSS Keyframe Animations --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulseGreen {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(16, 185, 129, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}


/* --- RESPONSIVE MEDIA QUERIES BREAKPOINTS --- */

/* Tablet & Smaller Layout adjustments */
@media screen and (max-width: 1200px) {
  /* Release body scrolling constraints on mobile/tablet viewports! */
  html, body {
    height: auto;
    overflow: auto;
  }
  
  .app-container {
    flex-direction: column;
    height: auto;
    overflow: auto;
  }
  
  .left-sidebar {
    width: 100%;
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 1px solid var(--border-glass);
    padding: 16px 20px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  
  .sidebar-logo {
    padding: 0;
  }
  
  .sidebar-menu {
    display: none; /* Collapsed under toggle */
  }
  
  .sidebar-balance-card {
    display: none; /* Hide on mobile left-sidebar */
  }
  
  .main-content {
    height: auto;
    overflow-y: visible;
  }
  
  .right-sidebar {
    width: 100%;
    height: auto;
    position: relative;
    border-left: none;
    border-top: 1px solid var(--border-glass);
    padding: 24px;
    overflow-y: visible;
  }
  
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet / Large Mobile Breakpoint */
@media screen and (max-width: 992px) {
  .checkout-container {
    grid-template-columns: 1fr;
    max-height: 85vh;
    overflow-y: auto;
  }
  
  .checkout-right {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border-glass);
    padding-top: 20px;
  }
}

/* Mobile Breakpoint */
@media screen and (max-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-title {
    font-size: 1.7rem;
  }
  
  .hero-subtitle {
    font-size: 0.88rem;
  }
  
  .content-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .search-bar-container {
    max-width: 100%;
  }
  
  .cart-drawer {
    width: 100%;
    right: -100%;
  }
  
  .popular-creators-grid {
    grid-template-columns: 1fr;
  }
}

/* Touch targets helper for inputs */
input, button, select {
  min-height: 44px;
}
.qty-btn {
  min-height: auto;
}
.fawry-copy-btn {
  min-height: auto;
}
.theme-switch {
  min-height: auto;
}
.cart-item-remove {
  min-height: auto;
}
.checkout-close-corner {
  min-height: auto;
}
.cart-close-btn {
  min-height: auto;
}

/* --- Single Page Application View Toggles --- */
.tab-view {
  display: none;
  animation: fadeInTab 0.4s ease-out forwards;
  position: relative;
  border-radius: var(--radius-lg);
  padding: 10px;
}

.tab-view::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 100% 0%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 0% 100%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
  z-index: -1;
  pointer-events: none;
  border-radius: var(--radius-lg);
}

.tab-view.active {
  display: block;
}

@keyframes fadeInTab {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   LIGHT MODE SPECIFIC OVERRIDES
   ========================================== */
body.light-theme .hero-title {
  background: linear-gradient(90deg, #1E293B 0%, #334155 50%, #2563EB 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light-theme .floating-price-tag {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--text-main);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

body.light-theme .add-to-cart-btn {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-main);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-theme .add-to-cart-btn:hover {
  color: #FFFFFF;
}

body.light-theme .menu-item:not(.active) a:hover {
  background: rgba(0, 0, 0, 0.05);
}

body.light-theme .card-header-graphic {
  border: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-theme .stats-table td {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-theme .stats-table tbody tr:hover {
  background: rgba(0, 0, 0, 0.02);
}

body.light-theme .table-avatar-circle {
  border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .payment-method-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .fawry-instruction-box {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .fawry-ref-code {
  background: rgba(0, 0, 0, 0.05);
}

body.light-theme .fawry-copy-btn {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-main);
}

/* ==========================================
   RTL LANGUAGE SUPPORT (ARABIC)
   ========================================== */

html[dir="rtl"] {
  font-family: 'Cairo', 'Outfit', sans-serif;
  text-align: right;
}

html[dir="rtl"] .sidebar-menu a i, 
html[dir="rtl"] .payment-method-btn i {
  margin-right: 0;
  margin-left: 14px;
}

/* Force logo SVG to stay LTR so text coordinates do not break */
html[dir="rtl"] .sidebar-logo svg,
html[dir="rtl"] .sidebar-logo text {
  direction: ltr;
  unicode-bidi: isolate;
}

/* Adjust absolute positioned elements like badges */
html[dir="rtl"] .badge {
  right: auto;
  left: 20px;
}

/* Language Switcher Button Styling */
.lang-toggle-btn {
  background: var(--card-bg);
  color: var(--text-main);
  border: 1px solid var(--border-glass);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  transition: all 0.2s ease;
}

.lang-toggle-btn:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

@keyframes fadeInTab {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Tab specific clean layouts */
.tab-header {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.tab-content-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .tab-content-grid {
    grid-template-columns: 2fr 1fr;
  }
}

.content-image-wrapper {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  margin-bottom: 20px;
}

.content-image-wrapper img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.rich-text-block {
  background: var(--card-bg);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.rich-text-block h3 {
  color: var(--text-main);
  margin-bottom: 12px;
}

/* Avatar lists */
.avatar-list-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-glass);
}

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

.avatar-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-primary);
}

/* ==========================================
   MOBILE RESPONSIVENESS & NAV BAR
   ========================================== */
.mobile-nav {
  display: none;
}

@media (max-width: 768px) {
  /* Hide sidebars */
  .left-sidebar, .right-sidebar {
    display: none !important;
  }
  
  /* Full width main content, leaving room for mobile nav at the bottom */
  .main-content {
    padding: 20px 20px 100px 20px; 
  }

  html[dir="rtl"] .main-content {
    padding: 20px 20px 100px 20px; 
  }

  /* Horizontal bottom nav */
  .mobile-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    position: fixed;
    left: 15px;
    right: 15px;
    bottom: 15px;
    top: auto;
    transform: none;
    width: auto;
    height: 65px;
    padding: 0 10px;
    gap: 0;
    border-radius: 40px;
    background: rgba(20, 25, 45, 0.65);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
  }

  html[dir="rtl"] .mobile-nav {
    left: 15px;
    right: 15px;
  }

  body.light-theme .mobile-nav {
    background: rgba(220, 230, 255, 0.65);
    border: 1px solid rgba(0, 0, 0, 0.05);
  }

  .mobile-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.15rem;
  }

  .mobile-nav-btn.active {
    background: #FFFFFF;
    color: #111827;
  }

  body.light-theme .mobile-nav-btn.active {
    background: #111827;
    color: #FFFFFF;
  }

  /* Product grid 1 column */
  .product-grid {
    grid-template-columns: 1fr;
  }

  /* Hero adjustments */
  .hero-title {
    font-size: 1.8rem;
  }
}

