/* ================================================
   SİPARİŞ EXPRESS - Modern Light Theme CSS
   Premium, Professional, Light-Based Design System
   ================================================ */

/* ---- 1. CSS VARIABLES ---- */
:root {
  --primary: #FF3B4E;
  --primary-dark: #E0202F;
  --primary-light: #FF6B78;
  --primary-lighter: #FFF0F1;
  --secondary: #1E293B;
  --background: #F8FAFC;
  --surface: #FFFFFF;
  --border: #E2E8F0;
  --border-light: #F1F5F9;
  --text: #1E293B;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --success: #10B981;
  --success-light: #D1FAE5;
  --warning: #F59E0B;
  --warning-light: #FEF3C7;
  --danger: #EF4444;
  --danger-light: #FEE2E2;
  --info: #3B82F6;
  --info-light: #DBEAFE;
  --white: #FFFFFF;

  --gradient-primary: linear-gradient(135deg, #FF3B4E 0%, #FF6B78 100%);
  --gradient-hero: linear-gradient(135deg, #FFF5F5 0%, #FFF0F0 50%, #FFFFFF 100%);
  --gradient-card: linear-gradient(145deg, #FFFFFF, #FAFAFA);
  --gradient-dark: linear-gradient(135deg, #1E293B 0%, #334155 100%);

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.12), 0 8px 24px rgba(0,0,0,0.06);
  --shadow-primary: 0 8px 24px rgba(255,59,78,0.30);
  --shadow-card-hover: 0 12px 40px rgba(0,0,0,0.14);

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-xs: 0.75rem;
  --font-sm: 0.8125rem;
  --font-base: 0.875rem;
  --font-md: 1rem;
  --font-lg: 1.125rem;
  --font-xl: 1.25rem;
  --font-2xl: 1.5rem;
  --font-3xl: 2rem;
  --font-4xl: 2.5rem;
  --font-5xl: 3rem;

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

  --transition: all 0.2s ease;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- 2. RESET & BASE ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

ul, ol { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- 3. PAGE LOADER ---- */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ---- 4. SCROLLBAR ---- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--background);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ---- 5. ANIMATION KEYFRAMES ---- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

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

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes ripple {
  0% { transform: scale(0); opacity: 0.6; }
  100% { transform: scale(4); opacity: 0; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes bounceIn {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.05); }
  70% { transform: scale(0.95); }
  100% { transform: scale(1); opacity: 1; }
}

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

/* Animation utility classes */
.animate-fadeIn { animation: fadeIn 0.6s ease forwards; }
.animate-fadeInUp { animation: fadeInUp 0.6s ease forwards; }
.animate-fadeInDown { animation: fadeInDown 0.5s ease forwards; }
.animate-scaleIn { animation: scaleIn 0.5s ease forwards; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }
.animate-bounce { animation: bounceIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- 6. NAVBAR ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--secondary);
  white-space: nowrap;
  text-decoration: none;
}

.navbar-logo-icon {
  width: 38px;
  height: 38px;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(255, 59, 78, 0.3);
}

.navbar-logo span {
  color: var(--primary);
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar-menu a {
  color: var(--text-muted);
  font-size: var(--font-base);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.navbar-menu a:hover {
  color: var(--primary);
}

.navbar-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transition: var(--transition-smooth);
}

.navbar-menu a:hover::after {
  width: 100%;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--primary-lighter);
  color: var(--primary);
  font-size: var(--font-sm);
  font-weight: 600;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--secondary);
  font-size: 1.4rem;
  padding: 8px;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 999;
  padding: 24px;
  flex-direction: column;
  gap: 8px;
  animation: fadeIn 0.2s ease;
  overflow-y: auto;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  display: block;
  padding: 14px 16px;
  font-size: var(--font-md);
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.mobile-menu a:hover {
  background: var(--primary-lighter);
  color: var(--primary);
}

.mobile-menu .btn-primary {
  margin-top: 12px;
  text-align: center;
}

/* ---- 7. HERO SECTION ---- */
.hero {
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  padding: 80px 0 60px;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,59,78,0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255,59,78,0.04) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: var(--primary-lighter);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: var(--font-sm);
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: var(--font-4xl);
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  font-size: var(--font-lg);
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-search {
  display: flex;
  align-items: center;
  max-width: 520px;
  margin: 0 auto;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-md);
}

.hero-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255,59,78,0.1), var(--shadow-md);
}

.hero-search input {
  flex: 1;
  padding: 16px 20px;
  border: none;
  background: none;
  font-size: var(--font-base);
  color: var(--text);
}

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

.hero-search button {
  padding: 12px 24px;
  margin: 4px;
  background: var(--gradient-primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--font-base);
  cursor: pointer;
  transition: var(--transition);
}

.hero-search button:hover {
  box-shadow: var(--shadow-primary);
}

/* ---- 8. SLIDER / BANNER ---- */
.slider-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.slider-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
  min-width: 100%;
  padding: 48px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 220px;
  position: relative;
  overflow: hidden;
}

.slide-content {
  position: relative;
  z-index: 2;
  max-width: 60%;
}

.slide-content h2 {
  font-size: var(--font-2xl);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.2;
}

.slide-content p {
  font-size: var(--font-base);
  color: rgba(255,255,255,0.85);
  margin-bottom: 20px;
}

.slide-emoji {
  font-size: 5rem;
  position: relative;
  z-index: 2;
  animation: float 3s ease-in-out infinite;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.slider-dot.active {
  background: var(--primary);
  width: 28px;
  border-radius: var(--radius-full);
}

.slider-prev,
.slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  color: var(--secondary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  z-index: 5;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.slider-prev:hover,
.slider-next:hover {
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.slider-prev { left: 16px; }
.slider-next { right: 16px; }

/* ---- 9. CATEGORY GRID ---- */
.categories-section {
  padding: 60px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: var(--font-3xl);
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.section-header p {
  font-size: var(--font-md);
  color: var(--text-muted);
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 16px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  color: inherit;
}

.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: transparent;
}

.cat-card-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  transition: var(--transition-smooth);
}

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

.cat-card-icon.market { background: #E0F2FE; }
.cat-card-icon.restoran { background: #FEF3C7; }
.cat-card-icon.manav { background: #D1FAE5; }
.cat-card-icon.kasap { background: #FEE2E2; }
.cat-card-icon.eczane { background: #EDE9FE; }
.cat-card-icon.firin { background: #FFEDD5; }

.cat-card-name {
  font-size: var(--font-base);
  font-weight: 600;
  color: var(--text);
}

/* ---- 10. SHOP CARDS ---- */
.shop-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition-smooth);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

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

.shop-card-img {
  height: 160px;
  background: linear-gradient(135deg, #F1F5F9, #E2E8F0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
  overflow: hidden;
}

.shop-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-status {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: var(--font-xs);
  font-weight: 700;
}

.shop-status.open {
  background: rgba(16,185,129,0.12);
  color: var(--success);
  border: 1px solid rgba(16,185,129,0.25);
}

.shop-status.closed {
  background: rgba(239,68,68,0.1);
  color: var(--danger);
  border: 1px solid rgba(239,68,68,0.2);
}

.shop-card-body {
  padding: 16px 20px;
  flex: 1;
}

.shop-name {
  font-size: var(--font-md);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.shop-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: var(--font-sm);
  color: var(--text-muted);
  flex-wrap: wrap;
}

.shop-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.shop-rating {
  color: var(--warning);
  font-weight: 700;
}

.shop-card-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.shop-min-order {
  font-size: var(--font-xs);
  color: var(--text-muted);
}

.shop-min-order strong {
  color: var(--text);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ---- 11. PRODUCT CARDS ---- */
.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.product-card-img {
  height: 130px;
  background: var(--background);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  overflow: hidden;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card-body {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-name {
  font-size: var(--font-base);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-desc {
  font-size: var(--font-xs);
  color: var(--text-muted);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.product-price {
  font-size: var(--font-md);
  font-weight: 700;
  color: var(--primary);
}

.product-add-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--gradient-primary);
  color: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(255,59,78,0.25);
}

.product-add-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

/* ---- 12. STEPS SECTION ---- */
.steps-section {
  padding: 80px 0;
  background: var(--white);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: var(--white);
  font-size: var(--font-xl);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: var(--shadow-primary);
}

.step-card h3 {
  font-size: var(--font-md);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.step-card p {
  font-size: var(--font-sm);
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---- 13. FEATURES SECTION ---- */
.features-section {
  padding: 80px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--border);
  transition: var(--transition-smooth);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: var(--primary-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 16px;
  transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon {
  background: var(--gradient-primary);
  transform: scale(1.1);
}

.feature-card h3 {
  font-size: var(--font-md);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: var(--font-sm);
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---- 14. ROLE CARDS ---- */
.roles-section {
  padding: 80px 0;
  background: var(--white);
}

.role-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.role-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 0;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.role-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.role-card-top {
  padding: 32px 28px 24px;
  border-bottom: 3px solid var(--primary);
  background: linear-gradient(180deg, var(--primary-lighter) 0%, var(--white) 100%);
}

.role-card-top .role-emoji {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}

.role-card-top h3 {
  font-size: var(--font-xl);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}

.role-card-top p {
  font-size: var(--font-sm);
  color: var(--text-muted);
}

.role-card-body {
  padding: 24px 28px;
  flex: 1;
}

.role-card-body ul {
  list-style: none;
}

.role-card-body li {
  padding: 8px 0;
  font-size: var(--font-sm);
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.role-card-body li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.role-card-footer {
  padding: 0 28px 28px;
}

/* ---- 15. BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: var(--font-base);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.4;
}

.btn::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 10%, transparent 10.01%);
  transform: scale(0);
  opacity: 0;
  transition: transform 0.4s, opacity 0.4s;
}

.btn:active::after {
  transform: scale(10);
  opacity: 0;
  transition: 0s;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(255,59,78,0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

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

.btn-secondary {
  background: var(--secondary);
  color: var(--white);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--background);
  color: var(--text);
  border-color: var(--text-light);
}

.btn-sm {
  padding: 8px 16px;
  font-size: var(--font-sm);
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 16px 32px;
  font-size: var(--font-md);
  border-radius: var(--radius-md);
}

.btn-full {
  width: 100%;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-sm);
}

.btn-red {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: var(--font-base);
  font-weight: 700;
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(255,59,78,0.25);
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.btn-red:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

.btn-order {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  background: var(--gradient-primary);
  color: var(--white);
  font-size: var(--font-sm);
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-order:hover {
  box-shadow: 0 4px 12px rgba(255,59,78,0.35);
}

/* ---- 16. CART DRAWER ---- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  max-width: 90vw;
  height: 100vh;
  background: var(--white);
  z-index: 2001;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.cart-drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer-header h3 {
  font-size: var(--font-lg);
  font-weight: 700;
  color: var(--text);
}

.cart-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--background);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.cart-close:hover {
  background: var(--danger-light);
  color: var(--danger);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}

.cart-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
  align-items: center;
}

.cart-item-img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--background);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

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

.cart-item-name {
  font-size: var(--font-base);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: var(--font-sm);
  color: var(--primary);
  font-weight: 700;
}

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

.cart-qty-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text);
  transition: var(--transition);
}

.cart-qty-btn:hover {
  background: var(--primary-lighter);
  border-color: var(--primary);
  color: var(--primary);
}

.cart-qty-num {
  font-weight: 600;
  font-size: var(--font-base);
  min-width: 20px;
  text-align: center;
}

.cart-empty {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
}

.cart-empty-icon {
  font-size: 3.5rem;
  margin-bottom: 12px;
  opacity: 0.5;
}

.cart-empty h4 {
  font-size: var(--font-md);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.cart-empty p {
  font-size: var(--font-sm);
}

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  background: var(--background);
}

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

.cart-total-label {
  font-size: var(--font-base);
  color: var(--text-muted);
}

.cart-total-amount {
  font-size: var(--font-xl);
  font-weight: 800;
  color: var(--text);
}

/* ---- 17. MODAL ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: scale(0.9) translateY(20px);
  transition: var(--transition-smooth);
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: var(--font-lg);
  font-weight: 700;
  color: var(--text);
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--background);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--danger-light);
  color: var(--danger);
}

.modal-body {
  padding: 24px 28px;
}

.modal-footer {
  padding: 20px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

/* ---- 18. TOAST NOTIFICATIONS ---- */
.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--info);
  min-width: 300px;
  max-width: 420px;
  animation: slideInRight 0.3s ease, fadeIn 0.3s ease;
  font-size: var(--font-sm);
  color: var(--text);
}

.toast.success { border-left-color: var(--success); }
.toast.warning { border-left-color: var(--warning); }
.toast.error   { border-left-color: var(--danger); }
.toast.info    { border-left-color: var(--info); }

.toast-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.toast-message {
  flex: 1;
  font-weight: 500;
}

.toast-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1rem;
  padding: 4px;
}

/* ---- 19. FORMS ---- */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: var(--font-sm);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--font-base);
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
}

.form-control::placeholder {
  color: var(--text-light);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,59,78,0.1);
}

.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--font-base);
  color: var(--text);
  background: var(--white);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  transition: var(--transition);
  cursor: pointer;
}

.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,59,78,0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

.form-hint {
  font-size: var(--font-xs);
  color: var(--text-muted);
  margin-top: 4px;
}

.form-error {
  font-size: var(--font-xs);
  color: var(--danger);
  margin-top: 4px;
}

.form-control.error {
  border-color: var(--danger);
}

/* Radio group */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.radio-option:hover {
  border-color: var(--primary-light);
  background: var(--primary-lighter);
}

.radio-option.selected {
  border-color: var(--primary);
  background: var(--primary-lighter);
}

.radio-option input[type="radio"] {
  accent-color: var(--primary);
}

/* ---- 20. DASHBOARD LAYOUT ---- */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  background: var(--white);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: var(--transition-smooth);
}

.sidebar-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-nav {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  font-size: var(--font-base);
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  margin-bottom: 2px;
  cursor: pointer;
  text-decoration: none;
}

.nav-item:hover {
  background: var(--background);
  color: var(--text);
}

.nav-item.active {
  background: var(--primary-lighter);
  color: var(--primary);
  font-weight: 600;
}

.nav-item i {
  width: 20px;
  text-align: center;
  font-size: 1rem;
}

.nav-badge {
  margin-left: auto;
  background: var(--primary);
  color: var(--white);
  font-size: var(--font-xs);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  min-width: 20px;
  text-align: center;
}

.sidebar-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}

.main-content {
  flex: 1;
  margin-left: 260px;
  min-height: 100vh;
  background: var(--background);
}

.topbar {
  height: 64px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 90;
}

.topbar-title {
  font-size: var(--font-lg);
  font-weight: 700;
  color: var(--text);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.content-area {
  padding: 28px;
}

/* ---- 21. DASHBOARD CARDS ---- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: var(--transition-smooth);
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.stat-icon.primary { background: var(--primary-lighter); color: var(--primary); }
.stat-icon.success { background: var(--success-light); color: var(--success); }
.stat-icon.warning { background: var(--warning-light); color: var(--warning); }
.stat-icon.info    { background: var(--info-light); color: var(--info); }
.stat-icon.danger  { background: var(--danger-light); color: var(--danger); }

.stat-info { flex: 1; }

.stat-label {
  font-size: var(--font-sm);
  color: var(--text-muted);
  margin-bottom: 4px;
}

.stat-value {
  font-size: var(--font-2xl);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.stat-change {
  font-size: var(--font-xs);
  font-weight: 600;
  margin-top: 4px;
}

.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--danger); }

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header h3 {
  font-size: var(--font-md);
  font-weight: 700;
  color: var(--text);
}

.card-body {
  padding: 24px;
}

/* ---- 22. TABLE ---- */
.table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-base);
}

.table thead {
  background: var(--background);
}

.table th {
  padding: 12px 16px;
  text-align: left;
  font-size: var(--font-sm);
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text);
  vertical-align: middle;
}

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

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

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

/* ---- 23. STATUS BADGES ---- */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: var(--font-xs);
  font-weight: 600;
  white-space: nowrap;
}

.status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-badge.pending {
  background: var(--warning-light);
  color: #B45309;
}
.status-badge.pending::before { background: #B45309; }

.status-badge.confirmed {
  background: var(--info-light);
  color: #1D4ED8;
}
.status-badge.confirmed::before { background: #1D4ED8; }

.status-badge.preparing {
  background: #FEF3C7;
  color: #92400E;
}
.status-badge.preparing::before { background: #92400E; }

.status-badge.ready {
  background: #D1FAE5;
  color: #065F46;
}
.status-badge.ready::before { background: #065F46; }

.status-badge.on_way {
  background: #DBEAFE;
  color: #1E40AF;
}
.status-badge.on_way::before { background: #1E40AF; }

.status-badge.delivered {
  background: var(--success-light);
  color: #047857;
}
.status-badge.delivered::before { background: #047857; }

.status-badge.cancelled {
  background: var(--danger-light);
  color: #B91C1C;
}
.status-badge.cancelled::before { background: #B91C1C; }

/* ---- 24. BADGE ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: var(--font-xs);
  font-weight: 600;
}

.badge-primary {
  background: var(--primary-lighter);
  color: var(--primary);
}

.badge-success {
  background: var(--success-light);
  color: var(--success);
}

.badge-warning {
  background: var(--warning-light);
  color: #B45309;
}

.badge-danger {
  background: var(--danger-light);
  color: var(--danger);
}

.badge-info {
  background: var(--info-light);
  color: var(--info);
}

.badge-gray {
  background: #F1F5F9;
  color: var(--text-muted);
}

/* ---- 25. EARNINGS HIGHLIGHT ---- */
.earnings-highlight {
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  padding: 32px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.earnings-highlight::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}

.earnings-highlight h3 {
  font-size: var(--font-base);
  font-weight: 500;
  opacity: 0.9;
  margin-bottom: 8px;
}

.earnings-highlight .amount {
  font-size: var(--font-4xl);
  font-weight: 800;
  line-height: 1.1;
}

.earnings-highlight .period {
  font-size: var(--font-sm);
  opacity: 0.8;
  margin-top: 4px;
}

/* ---- 26. EMPTY STATE ---- */
.empty-state {
  text-align: center;
  padding: 80px 24px;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  opacity: 0.6;
}

.empty-title {
  font-size: var(--font-xl);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.empty-desc {
  font-size: var(--font-base);
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

/* ---- 27. CHART CONTAINER ---- */
.chart-container {
  position: relative;
  width: 100%;
  min-height: 280px;
  padding: 16px 0;
}

.chart-container canvas {
  width: 100% !important;
}

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

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

.switch .slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--border);
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.switch .slider::before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.switch input:checked + .slider {
  background: var(--primary);
}

.switch input:checked + .slider::before {
  transform: translateX(22px);
}

/* ---- 29. FOOTER ---- */
.footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 48px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
}

.footer-brand .footer-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.footer-brand .footer-logo span {
  color: var(--primary);
}

.footer-brand p {
  font-size: var(--font-sm);
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--background);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary-lighter);
  color: var(--primary);
}

.footer-col h4 {
  font-size: var(--font-base);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  font-size: var(--font-sm);
  color: var(--text-muted);
  transition: var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: var(--font-sm);
  color: var(--text-muted);
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--font-sm);
  color: var(--text-muted);
}

.footer-bottom-right a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-weight: 500;
  transition: var(--transition);
}

.footer-bottom-right a:hover {
  color: var(--primary);
}

/* ---- 30. RESPONSIVE ---- */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .role-cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --font-3xl: 1.75rem;
    --font-4xl: 2rem;
    --font-5xl: 2.5rem;
  }

  .container { padding: 0 16px; }

  /* Navbar mobile */
  .navbar-menu { display: none; }
  .hamburger { display: flex; }

  .hero {
    padding: 48px 0 40px;
  }

  .hero h1 { font-size: var(--font-3xl); }

  .hero-search {
    flex-direction: column;
  }

  .hero-search input {
    width: 100%;
    text-align: center;
  }

  .hero-search button {
    width: 100%;
    margin: 0 4px 4px;
  }

  /* Categories */
  .cat-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .cat-card {
    padding: 20px 12px;
  }

  .cat-card-icon {
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
  }

  /* Sections */
  .categories-section,
  .features-section,
  .steps-section,
  .roles-section {
    padding: 48px 0;
  }

  .section-header h2 { font-size: var(--font-2xl); }

  .features-grid { grid-template-columns: 1fr; }
  .role-cards { grid-template-columns: 1fr; }
  .shop-grid { grid-template-columns: 1fr; }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .steps-grid::before { display: none; }

  /* Slider */
  .slide {
    padding: 32px 24px;
    flex-direction: column;
    text-align: center;
    min-height: 180px;
  }

  .slide-content {
    max-width: 100%;
  }

  .slide-emoji {
    font-size: 3rem;
  }

  .slider-prev,
  .slider-next { display: none; }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  /* Dashboard */
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  .content-area {
    padding: 16px;
  }

  .stat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  /* Market layout */
  .market-layout {
    grid-template-columns: 1fr !important;
  }

  .cart-panel {
    position: fixed !important;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto !important;
    max-height: 60vh;
    z-index: 100;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  }
}

@media (max-width: 480px) {
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .slide {
    padding: 24px 16px;
    min-height: 160px;
  }

  .slide-content h2 {
    font-size: var(--font-lg);
  }

  .slide-emoji {
    font-size: 2.2rem;
  }

  .navbar-actions .btn-ghost { display: none; }
}

/* ---- 31. UTILITY CLASSES ---- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted) !important; }
.text-primary { color: var(--primary) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-white { color: var(--white) !important; }
.text-sm { font-size: var(--font-sm) !important; }
.text-xs { font-size: var(--font-xs) !important; }
.text-lg { font-size: var(--font-lg) !important; }
.font-bold { font-weight: 700 !important; }
.font-semibold { font-weight: 600 !important; }

.mt-0 { margin-top: 0 !important; }
.mt-4 { margin-top: 4px !important; }
.mt-8 { margin-top: 8px !important; }
.mt-12 { margin-top: 12px !important; }
.mt-16 { margin-top: 16px !important; }
.mt-20 { margin-top: 20px !important; }
.mt-24 { margin-top: 24px !important; }
.mt-32 { margin-top: 32px !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-4 { margin-bottom: 4px !important; }
.mb-8 { margin-bottom: 8px !important; }
.mb-12 { margin-bottom: 12px !important; }
.mb-16 { margin-bottom: 16px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mb-24 { margin-bottom: 24px !important; }
.mb-32 { margin-bottom: 32px !important; }
.ml-auto { margin-left: auto !important; }
.mr-auto { margin-right: auto !important; }

.p-0 { padding: 0 !important; }
.p-8 { padding: 8px !important; }
.p-12 { padding: 12px !important; }
.p-16 { padding: 16px !important; }
.p-24 { padding: 24px !important; }

.rounded { border-radius: var(--radius-md) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }
.rounded-full { border-radius: var(--radius-full) !important; }

.w-full { width: 100%; }
.h-full { height: 100%; }
.overflow-hidden { overflow: hidden; }
.relative { position: relative; }
.hidden { display: none !important; }
.block { display: block; }
.inline-flex { display: inline-flex; }

.bg-white { background: var(--white) !important; }
.bg-light { background: var(--background) !important; }
.bg-primary { background: var(--primary) !important; }

.border { border: 1px solid var(--border); }
.border-b { border-bottom: 1px solid var(--border); }

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- 32. PRODUCT GRID ---- */
/* Already defined in section 11 as .product-grid */

/* ---- 33. AUTH PAGES ---- */
.auth-layout {
  min-height: 100vh;
  display: flex;
}

.auth-left {
  flex: 1;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  position: relative;
  overflow: hidden;
}

.auth-left::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 600px;
  height: 600px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}

.auth-left::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -20%;
  width: 500px;
  height: 500px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.auth-left-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  text-align: center;
  max-width: 400px;
}

.auth-left-content h2 {
  font-size: var(--font-3xl);
  font-weight: 800;
  margin-bottom: 12px;
}

.auth-left-content p {
  font-size: var(--font-md);
  opacity: 0.9;
  line-height: 1.7;
}

.auth-left-content .auth-emoji {
  font-size: 4rem;
  margin-bottom: 20px;
  display: block;
}

.auth-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background: var(--white);
}

.auth-form-wrap {
  width: 100%;
  max-width: 420px;
}

.auth-form-wrap h1 {
  font-size: var(--font-2xl);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}

.auth-form-wrap .auth-subtitle {
  font-size: var(--font-base);
  color: var(--text-muted);
  margin-bottom: 32px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  font-size: var(--font-sm);
  color: var(--text-muted);
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-footer-text {
  text-align: center;
  font-size: var(--font-sm);
  color: var(--text-muted);
  margin-top: 24px;
}

.auth-footer-text a {
  color: var(--primary);
  font-weight: 600;
}

@media (max-width: 768px) {
  .auth-layout { flex-direction: column; }
  .auth-left {
    padding: 32px 24px;
    min-height: auto;
  }
  .auth-left-content h2 { font-size: var(--font-2xl); }
  .auth-right { padding: 32px 24px; }
}

/* ---- ADDITIONAL: Page header for category/inner pages ---- */
.page-header {
  background: var(--gradient-hero);
  padding: 32px 0;
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255,59,78,0.05) 0%, transparent 60%);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--font-sm);
  color: var(--text-muted);
  margin-bottom: 12px;
  position: relative;
}

.breadcrumb a {
  color: var(--text-muted);
  transition: var(--transition);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb-sep {
  color: var(--text-light);
}

.page-title {
  font-size: var(--font-3xl);
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.page-subtitle {
  color: var(--text-muted);
  margin-top: 6px;
  font-size: var(--font-base);
  position: relative;
}

/* Filters bar */
.filters-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  position: sticky;
  top: 64px;
  z-index: 90;
}

.filters-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-label {
  font-size: var(--font-sm);
  color: var(--text-muted);
  font-weight: 500;
}

.filter-btn {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: var(--font-sm);
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: var(--white);
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-muted);
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-lighter);
}

.filter-count {
  margin-left: auto;
  font-size: var(--font-sm);
  color: var(--text-muted);
}

/* Shop section for inner pages */
.shop-section {
  padding: 32px 0 60px;
}

/* Market layout */
.market-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  padding: 28px 0 60px;
  align-items: start;
}

/* Category tabs */
.cat-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  position: sticky;
  top: 72px;
  background: var(--background);
  padding: 12px 0;
  z-index: 50;
}

.cat-tab {
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: var(--font-sm);
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: var(--white);
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-muted);
}

.cat-tab:hover,
.cat-tab.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-lighter);
}

/* Cart panel (inline for market page) */
.cart-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  position: sticky;
  top: 80px;
  overflow: hidden;
}

.cart-panel-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-panel-header h3 {
  font-size: var(--font-md);
  font-weight: 700;
  color: var(--text);
}

.cart-panel-body {
  max-height: 400px;
  overflow-y: auto;
  padding: 12px 20px;
}

.cart-panel-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: var(--background);
}

/* Shop hero for market page */
.shop-hero {
  background: var(--gradient-hero);
  padding: 32px 0;
  position: relative;
  overflow: hidden;
}

.shop-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255,59,78,0.05) 0%, transparent 60%);
}

.shop-hero-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
}

.shop-logo {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  flex-shrink: 0;
  border: 2px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.shop-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-info { flex: 1; }

.shop-hero .shop-name {
  font-size: var(--font-2xl);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.shop-hero .shop-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.shop-hero .shop-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: var(--font-sm);
  color: var(--text-muted);
}

.shop-hero .shop-meta-item strong {
  color: var(--text);
}

.shop-open-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: var(--font-xs);
  font-weight: 700;
}

.shop-open-badge.open {
  background: rgba(16,185,129,0.1);
  color: var(--success);
  border: 1px solid rgba(16,185,129,0.25);
}

.shop-open-badge.closed {
  background: rgba(239,68,68,0.08);
  color: var(--danger);
  border: 1px solid rgba(239,68,68,0.2);
}

.breadcrumb-sm {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: var(--font-xs);
  color: var(--text-muted);
  margin-bottom: 10px;
}

.breadcrumb-sm a {
  color: var(--text-muted);
}

.breadcrumb-sm a:hover {
  color: var(--primary);
}

/* Product list item (horizontal for market page) */
.product-list-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: var(--transition-smooth);
  align-items: center;
}

.product-list-item:hover {
  box-shadow: var(--shadow-sm);
  border-color: transparent;
}

.product-list-img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  background: var(--background);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
  overflow: hidden;
}

.product-list-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-list-info {
  flex: 1;
}

.product-list-name {
  font-size: var(--font-base);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.product-list-desc {
  font-size: var(--font-xs);
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-list-price {
  font-size: var(--font-md);
  font-weight: 700;
  color: var(--primary);
  margin-top: 6px;
}

/* ---- PROMO SLIDER ---- */
.promo-slider { position: relative; overflow: hidden; background: #fff; }
.promo-track { display: flex; transition: transform 0.6s cubic-bezier(0.4,0,0.2,1); will-change: transform; }
.promo-slide {
  min-width: 100%; position: relative; overflow: hidden;
  padding: 40px 0; display: flex; align-items: center; justify-content: center;
}
.promo-slide-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; width: 100%; margin: 0 auto; padding: 0 40px; gap: 40px;
}
.promo-slide-text { flex: 1; }
.promo-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.2); color: #fff;
  padding: 6px 14px; border-radius: 50px; font-size: .8rem; font-weight: 600;
  margin-bottom: 12px; backdrop-filter: blur(10px);
}
.promo-slide-text h2 {
  font-size: 2rem; font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 10px;
}
.promo-slide-text p { color: rgba(255,255,255,0.85); font-size: 1rem; margin-bottom: 20px; }
.promo-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--primary); padding: 12px 28px;
  border-radius: 50px; font-weight: 700; font-size: .9rem;
  text-decoration: none; transition: var(--transition);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.promo-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.promo-slide-visual {
  font-size: 6rem; line-height: 1; animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.2));
}
.promo-slide-1 { background: linear-gradient(135deg, #FF3B4E 0%, #FF6B78 100%); }
.promo-slide-2 { background: linear-gradient(135deg, #FF6B35 0%, #FFD166 100%); }
.promo-slide-3 { background: linear-gradient(135deg, #1E293B 0%, #334155 100%); }
.promo-controls {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px; z-index: 10;
}
.promo-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4); border: none; cursor: pointer;
  transition: var(--transition); padding: 0;
}
.promo-dot.active { width: 24px; border-radius: 4px; background: #fff; }
.promo-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.2); border: none; color: #fff;
  width: 40px; height: 40px; border-radius: 50%; font-size: 1rem;
  cursor: pointer; transition: var(--transition); z-index: 10;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(10px);
}
.promo-arrow:hover { background: rgba(255,255,255,0.35); }
.promo-arrow-prev { left: 16px; }
.promo-arrow-next { right: 16px; }
@media (max-width: 768px) {
  .promo-slide-inner { flex-direction: column; text-align: center; padding: 24px 20px; }
  .promo-slide-text h2 { font-size: 1.4rem; }
  .promo-slide-visual { font-size: 4rem; }
  .promo-slide { padding: 32px 0 48px; }
}

/* ---- FOOTER CAGAPPS ---- */
.footer-cagapps {
  display: flex; align-items: center; gap: 8px; text-decoration: none;
  color: rgba(255,255,255,0.5); font-size: .8rem; transition: var(--transition);
}
.footer-cagapps:hover { color: rgba(255,255,255,0.85); }
.footer-cagapps img { height: 22px; width: auto; border-radius: 4px; opacity: .7; transition: var(--transition); }
.footer-cagapps:hover img { opacity: 1; }

/* ---- END OF CSS ---- */
