/* ============================================
   MEEMON SHOP - Design System
   Theme: Purple-Black-Gold
   Mobile-First E-Commerce
   ============================================ */

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

/* ============================================
   CSS Variables
   ============================================ */
:root {
  /* Primary Purple */
  --primary: #8B35A3;
  --primary-light: #A855C8;
  --primary-dark: #5B1D6E;
  --primary-darker: #3D1249;
  
  /* Gold Accent */
  --accent: #D4AF37;
  --accent-light: #F0D56E;
  --accent-dark: #B8941F;
  --accent-glow: rgba(212, 175, 55, 0.3);
  
  /* Background */
  --bg-primary: #0D0D1A;
  --bg-secondary: #161629;
  --bg-card: #1E1E35;
  --bg-card-hover: #2A2A45;
  --bg-elevated: #252540;
  --bg-input: #1A1A30;
  
  /* Text */
  --text-primary: #FFFFFF;
  --text-secondary: #A0A0BE;
  --text-muted: #6B6B85;
  --text-accent: #D4AF37;
  
  /* Status */
  --success: #2ECC71;
  --error: #E74C3C;
  --warning: #F39C12;
  --info: #3498DB;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #8B35A3 0%, #5B1D6E 100%);
  --gradient-accent: linear-gradient(135deg, #D4AF37 0%, #F0D56E 50%, #D4AF37 100%);
  --gradient-dark: linear-gradient(180deg, #161629 0%, #0D0D1A 100%);
  --gradient-card: linear-gradient(145deg, #1E1E35 0%, #161629 100%);
  --gradient-hero: linear-gradient(135deg, #5B1D6E 0%, #8B35A3 50%, #3D1249 100%);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.2);
  --shadow-purple: 0 4px 20px rgba(139, 53, 163, 0.3);
  
  /* Glass */
  --glass-bg: rgba(30, 30, 53, 0.8);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: blur(20px);
  
  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 50%;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* Layout */
  --header-height: 108px;
  --bottom-nav-height: 64px;
  --max-width: 480px;
}

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

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

body {
  font-family: 'Prompt', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Twinkling Stars Canvas */
#stars-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Ensure content layers above stars */
#main-header,
#main-content,
#bottom-nav,
.modal-overlay,
#toast-container {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

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

ul, ol {
  list-style: none;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 0;
  height: 0;
}

/* ============================================
   App Container
   ============================================ */
#app {
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  background: var(--bg-primary);
  overflow-x: hidden;
}

/* ============================================
   Header
   ============================================ */
#main-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width);
  z-index: 100;
  background: var(--gradient-primary);
  padding: var(--space-sm) var(--space-md);
  padding-top: max(env(safe-area-inset-top), var(--space-sm));
  transition: var(--transition-base);
}

#main-header::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 0;
  right: 0;
  height: 20px;
  background: linear-gradient(180deg, rgba(13, 13, 26, 0.5) 0%, transparent 100%);
  pointer-events: none;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.header-logo .logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
  text-shadow: none;
  filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.3));
}

.header-logo .logo-icon {
  width: 32px;
  height: 32px;
  background: var(--gradient-accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.header-actions button {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  transition: var(--transition-fast);
  position: relative;
}

.header-actions button:active {
  transform: scale(0.9);
  background: rgba(255, 255, 255, 0.1);
}

.header-actions .badge-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: var(--error);
  border-radius: var(--radius-full);
  border: 2px solid var(--primary);
}

/* Search Bar */
.search-bar {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: 0 var(--space-md);
  height: 40px;
  gap: var(--space-sm);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition-base);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.search-bar:focus-within {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.search-bar i {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.search-bar input {
  flex: 1;
  height: 100%;
  color: white;
  font-size: 0.85rem;
  font-weight: 300;
}

.search-bar input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-bar .search-btn {
  background: var(--accent);
  color: var(--bg-primary);
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  transition: var(--transition-fast);
}

.search-bar .search-btn:active {
  transform: scale(0.9);
}

/* ============================================
   Main Content
   ============================================ */
#main-content {
  padding-top: var(--header-height);
  padding-bottom: calc(var(--bottom-nav-height) + 16px);
  min-height: 100vh;
  min-height: 100dvh;
}

/* Views */
.view {
  display: none;
  animation: fadeIn 0.3s ease;
}

.view.active {
  display: block;
}

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

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

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

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

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 5px var(--accent-glow); }
  50% { box-shadow: 0 0 20px var(--accent-glow), 0 0 40px rgba(212, 175, 55, 0.1); }
}

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

@keyframes countdownPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); color: var(--error); }
}

/* ============================================
   Banner Carousel
   ============================================ */
.banner-carousel {
  padding: var(--space-md);
  padding-bottom: var(--space-sm);
  position: relative;
}

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

.banner-container {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 12px rgba(139, 53, 163, 0.2);
}

.banner-slide {
  min-width: 100%;
  height: 160px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.banner-slide .banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-lg);
}

.banner-slide .banner-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: var(--space-xs);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.banner-slide .banner-subtitle {
  font-size: 0.85rem;
  opacity: 0.9;
  font-weight: 300;
}

.banner-slide .banner-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--bg-primary);
  padding: 4px 12px;
  border-radius: var(--radius-xl);
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: var(--space-sm);
  box-shadow: var(--shadow-gold);
}

.banner-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: var(--space-sm);
}

.banner-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--text-muted);
  transition: var(--transition-base);
  cursor: pointer;
}

.banner-dots .dot.active {
  width: 20px;
  background: var(--accent);
}

/* ============================================
   Category Circles
   ============================================ */
.categories-section {
  padding: var(--space-md);
}

.section-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title .see-all {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  padding: var(--space-xs) 0;
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  transition: var(--transition-base);
}

.category-item:active {
  transform: scale(0.92);
}

.category-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  position: relative;
  transition: var(--transition-base);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 8px rgba(139, 53, 163, 0.2);
}

.category-icon::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-full);
  background: var(--gradient-accent);
  z-index: -1;
  opacity: 0;
  transition: var(--transition-base);
}

.category-item:hover .category-icon::after,
.category-item:active .category-icon::after {
  opacity: 1;
}

.category-name {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.2;
}

/* ============================================
   Flash Sale
   ============================================ */
.flash-sale-section {
  padding: var(--space-md);
}

.flash-sale-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.flash-sale-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1rem;
  font-weight: 800;
}

.flash-sale-title i {
  color: var(--accent);
  animation: pulse 2s infinite;
}

.flash-sale-title span {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.countdown {
  display: flex;
  align-items: center;
  gap: 3px;
}

.countdown-item {
  background: var(--error);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 24px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4);
}

.countdown-sep {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.75rem;
}

.flash-sale-scroll {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--space-sm);
}

.flash-sale-scroll::-webkit-scrollbar {
  display: none;
}

.flash-sale-item {
  min-width: 120px;
  max-width: 120px;
  scroll-snap-align: start;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-base);
  cursor: pointer;
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 6px rgba(139, 53, 163, 0.15);
}

.flash-sale-item:active {
  transform: scale(0.96);
}

.flash-sale-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  position: relative;
}

.flash-sale-img .discount-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--error);
  color: white;
  padding: 2px 8px;
  font-size: 0.65rem;
  font-weight: 700;
  border-bottom-left-radius: var(--radius-sm);
}

.flash-sale-info {
  padding: var(--space-sm);
}

.flash-sale-price {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
}

.flash-sale-original {
  color: var(--text-muted);
  font-size: 0.7rem;
  text-decoration: line-through;
}

.flash-sale-progress {
  margin-top: var(--space-xs);
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.flash-sale-progress-bar {
  height: 100%;
  background: var(--gradient-accent);
  border-radius: 2px;
  transition: width 1s ease;
}

.flash-sale-sold {
  font-size: 0.6rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ============================================
   Product Grid
   ============================================ */
.products-section {
  padding: var(--space-md);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-base);
  cursor: pointer;
  border: 1px solid var(--glass-border);
  position: relative;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5), 0 0 8px rgba(139, 53, 163, 0.15);
}

.product-card:active {
  transform: scale(0.97);
  border-color: var(--accent);
}

.product-card .product-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
}

.product-card .product-badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  background: var(--error);
  color: white;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.65rem;
  font-weight: 700;
}

.product-card .product-fav {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: white;
  transition: var(--transition-fast);
}

.product-card .product-fav.active {
  color: var(--error);
}

.product-card .product-info {
  padding: var(--space-sm);
}

.product-card .product-name {
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--space-xs);
  color: var(--text-secondary);
}

.product-card .product-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
}

.product-card .product-price-original {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 4px;
}

.product-card .product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-xs);
  font-size: 0.65rem;
  color: var(--text-muted);
}

.product-card .product-rating {
  display: flex;
  align-items: center;
  gap: 2px;
}

.product-card .product-rating i {
  color: var(--accent);
  font-size: 0.6rem;
}

/* ============================================
   Product Detail View
   ============================================ */
.product-detail {
  padding-bottom: 80px;
}

.product-detail-header {
  position: relative;
}

.product-detail-back {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  color: white;
  transition: var(--transition-fast);
}

.product-detail-back:active {
  transform: scale(0.9);
}

.product-detail-img {
  width: 100%;
  height: 320px;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
}

.product-detail-body {
  padding: var(--space-md);
}

.product-detail-price-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.product-detail-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
}

.product-detail-original-price {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-detail-discount {
  background: var(--error);
  color: white;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
}

.product-detail-name {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: var(--space-md);
}

.product-detail-stats {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
  padding: var(--space-md);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.product-detail-stat {
  text-align: center;
}

.product-detail-stat .stat-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
}

.product-detail-stat .stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.product-detail-section-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--glass-border);
}

.product-detail-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.product-detail-actions {
  position: fixed;
  bottom: var(--bottom-nav-height);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width);
  display: flex;
  gap: 1px;
  background: var(--bg-card);
  border-top: 1px solid var(--glass-border);
  z-index: 90;
}

.product-detail-actions button {
  flex: 1;
  padding: var(--space-md);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.product-detail-actions button:active {
  transform: scale(0.97);
}

.btn-add-cart {
  background: var(--primary);
  color: white;
}

.btn-buy-now {
  background: var(--accent);
  color: var(--bg-primary);
}

/* ============================================
   Bottom Navigation
   ============================================ */
#bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width);
  height: var(--bottom-nav-height);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-bottom: max(env(safe-area-inset-bottom), 0px);
  z-index: 100;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: var(--space-xs) var(--space-md);
  transition: var(--transition-fast);
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.nav-item:active {
  transform: scale(0.9);
}

.nav-item i {
  font-size: 1.2rem;
  transition: var(--transition-fast);
  color: var(--text-muted);
}

.nav-item span {
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.nav-item.active i {
  color: var(--accent);
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

.nav-item.active span {
  color: var(--accent);
}

.nav-item .cart-badge {
  position: absolute;
  top: 0;
  right: 4px;
  min-width: 16px;
  height: 16px;
  background: var(--error);
  color: white;
  font-size: 0.55rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  transform: scale(0);
  transition: var(--transition-bounce);
}

.nav-item .cart-badge.show {
  transform: scale(1);
}

/* ============================================
   Auth Modal
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 200;
  display: none;
  align-items: flex-end;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.modal-overlay.show {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.modal-content {
  width: 100%;
  max-width: var(--max-width);
  background: var(--bg-secondary);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: var(--space-lg);
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(139, 53, 163, 0.15);
}

.modal-handle {
  width: 40px;
  height: 4px;
  background: var(--text-muted);
  border-radius: 2px;
  margin: 0 auto var(--space-lg);
}

.modal-title {
  font-size: 1.3rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: var(--space-xs);
}

.modal-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: var(--space-lg);
}

.modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

/* Auth Tabs */
.auth-tabs {
  display: flex;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: var(--space-lg);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.auth-tab {
  flex: 1;
  padding: var(--space-sm) var(--space-md);
  text-align: center;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-base);
  color: var(--text-muted);
}

.auth-tab.active {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-purple);
}

/* Social Login */
.social-login {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-base);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.social-btn:active {
  transform: scale(0.97);
}

.social-btn.line {
  background: #06C755;
  color: white;
  border-color: #06C755;
}

.social-btn.google {
  background: white;
  color: #333;
}

.social-btn img, .social-btn i {
  width: 20px;
  height: 20px;
  font-size: 1.1rem;
}

.divider {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  color: var(--text-muted);
  font-size: 0.8rem;
}

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

/* Form Styles */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
}

.form-input {
  width: 100%;
  padding: var(--space-md);
  background: var(--bg-input);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: var(--transition-base);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3);
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.form-input::placeholder {
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-base);
  width: 100%;
  cursor: pointer;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 20px rgba(139, 53, 163, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
}

.btn-accent {
  background: var(--gradient-accent);
  color: var(--bg-primary);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.35), 0 2px 8px rgba(0, 0, 0, 0.3);
  font-weight: 700;
}

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

.btn-ghost {
  background: transparent;
  color: var(--accent);
}

.btn-sm {
  padding: var(--space-sm) var(--space-md);
  font-size: 0.8rem;
}

.btn-lg {
  padding: var(--space-md) var(--space-xl);
  font-size: 1rem;
}

.btn:disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* ============================================
   Cart View
   ============================================ */
.cart-view {
  padding: var(--space-md);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.cart-header h2 {
  font-size: 1.2rem;
  font-weight: 700;
}

.cart-empty {
  text-align: center;
  padding: var(--space-2xl);
}

.cart-empty i {
  font-size: 4rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  opacity: 0.5;
}

.cart-empty p {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.cart-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  border: 1px solid var(--glass-border);
  position: relative;
  transition: var(--transition-base);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45), 0 0 6px rgba(139, 53, 163, 0.1);
}

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

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: var(--space-xs);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-item-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.cart-item-qty button {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--text-primary);
  transition: var(--transition-fast);
  border: 1px solid var(--glass-border);
}

.cart-item-qty button:active {
  background: var(--primary);
}

.cart-item-qty span {
  font-size: 0.9rem;
  font-weight: 600;
  min-width: 24px;
  text-align: center;
}

.cart-item-remove {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  color: var(--text-muted);
  font-size: 0.8rem;
  transition: var(--transition-fast);
}

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

/* Cart Summary */
.cart-summary {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  margin-top: var(--space-lg);
  border: 1px solid var(--glass-border);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5), 0 0 10px rgba(212, 175, 55, 0.1);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  font-size: 0.85rem;
}

.cart-summary-row.total {
  border-top: 1px solid var(--glass-border);
  padding-top: var(--space-md);
  margin-top: var(--space-sm);
  font-size: 1.1rem;
  font-weight: 700;
}

.cart-summary-row.total .cart-total-amount {
  color: var(--accent);
}

.cart-checkout-btn {
  margin-top: var(--space-lg);
}

/* ============================================
   Checkout View
   ============================================ */
.checkout-view {
  padding: var(--space-md);
}

.checkout-section {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.checkout-section-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.checkout-section-title i {
  color: var(--accent);
}

.checkout-address {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.checkout-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--glass-border);
}

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

.checkout-item-img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

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

.checkout-item-name {
  font-size: 0.8rem;
  margin-bottom: 2px;
}

.checkout-item-qty {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.checkout-item-price {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--accent);
}

/* ============================================
   Payment View
   ============================================ */
.payment-view {
  padding: var(--space-md);
  text-align: center;
}

.payment-status {
  padding: var(--space-2xl) var(--space-md);
}

.payment-qr-container {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: inline-block;
  margin: var(--space-lg) 0;
  box-shadow: var(--shadow-lg);
}

.payment-qr-container canvas,
.payment-qr-container img {
  display: block;
}

.payment-amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  margin: var(--space-md) 0;
}

.payment-amount-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.payment-timer {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin: var(--space-md) 0;
}

.payment-timer.warning {
  animation: countdownPulse 1s infinite;
}

.payment-instructions {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: var(--space-lg);
}

.payment-success {
  animation: scaleIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.payment-success-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto var(--space-lg);
  animation: float 3s ease-in-out infinite;
  box-shadow: 0 8px 32px rgba(46, 204, 113, 0.3);
}

.payment-success h2 {
  font-size: 1.3rem;
  margin-bottom: var(--space-sm);
}

.payment-success p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.payment-order-id {
  background: var(--bg-card);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin: var(--space-lg) auto;
  max-width: 280px;
  font-family: 'Inter', monospace;
  font-weight: 600;
  color: var(--accent);
  border: 1px dashed var(--accent);
}

/* ============================================
   Profile View
   ============================================ */
.profile-view {
  padding: var(--space-md);
}

.profile-header-card {
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  margin-bottom: var(--space-lg);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 12px rgba(139, 53, 163, 0.3);
}

.profile-header-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto var(--space-sm);
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-gold);
}

.profile-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.profile-email {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

.profile-not-logged-in {
  padding: var(--space-2xl);
  text-align: center;
}

.profile-not-logged-in i {
  font-size: 4rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  opacity: 0.5;
}

.profile-menu {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  transition: var(--transition-base);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.profile-menu-item:active {
  background: var(--bg-card-hover);
  transform: scale(0.98);
}

.profile-menu-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--accent);
}

.profile-menu-text {
  flex: 1;
}

.profile-menu-text .menu-label {
  font-size: 0.9rem;
  font-weight: 500;
}

.profile-menu-text .menu-sublabel {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.profile-menu-arrow {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ============================================
   Orders View
   ============================================ */
.orders-view {
  padding: var(--space-md);
}

.order-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--glass-border);
}

.order-id {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

.order-status {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-xl);
}

.order-status.completed {
  background: rgba(46, 204, 113, 0.15);
  color: var(--success);
}

.order-status.pending {
  background: rgba(243, 156, 18, 0.15);
  color: var(--warning);
}

.order-status.shipping {
  background: rgba(52, 152, 219, 0.15);
  color: var(--info);
}

.order-items-preview {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.order-item-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

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

.order-date {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.order-total {
  font-weight: 700;
  color: var(--accent);
}

/* ============================================
   Search Results View
   ============================================ */
.search-results-header {
  padding: var(--space-md);
  padding-bottom: 0;
}

.search-results-header h3 {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.search-results-header h3 strong {
  color: var(--accent);
}

/* ============================================
   Category Page
   ============================================ */
.category-page-header {
  padding: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.category-page-header button {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.category-page-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
}

/* ============================================
   Toast Notification
   ============================================ */
#toast-container {
  position: fixed;
  top: calc(var(--header-height) + var(--space-sm));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - var(--space-lg) * 2);
  max-width: calc(var(--max-width) - var(--space-lg) * 2);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  pointer-events: none;
}

.toast {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  backdrop-filter: blur(20px);
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  animation: slideDown 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
  pointer-events: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 12px rgba(0, 0, 0, 0.3);
}

.toast.success {
  background: rgba(46, 204, 113, 0.9);
  color: white;
}

.toast.error {
  background: rgba(231, 76, 60, 0.9);
  color: white;
}

.toast.info {
  background: rgba(139, 53, 163, 0.9);
  color: white;
}

@keyframes fadeOut {
  to { opacity: 0; transform: translateY(-10px); }
}

/* ============================================
   Loading Skeleton
   ============================================ */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-elevated) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

.skeleton-text {
  height: 14px;
  margin-bottom: var(--space-sm);
}

.skeleton-text.short {
  width: 60%;
}

.skeleton-img {
  height: 180px;
}

/* ============================================
   Quantity Selector
   ============================================ */
.qty-selector {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin: var(--space-md) 0;
}

.qty-selector button {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition-fast);
}

.qty-selector button:active {
  background: var(--primary);
  border-color: var(--primary);
}

.qty-selector .qty-value {
  font-size: 1.1rem;
  font-weight: 700;
  min-width: 36px;
  text-align: center;
}

/* ============================================
   Back header (reusable)
   ============================================ */
.page-back-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
}

.page-back-header .back-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.page-back-header .back-btn:active {
  transform: scale(0.9);
  background: var(--primary);
}

.page-back-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
}

/* ============================================
   Responsive (Tablet+ fallback)
   ============================================ */
@media (min-width: 481px) {
  body {
    background: var(--bg-primary);
    background-image: 
      radial-gradient(circle at 20% 50%, rgba(139, 53, 163, 0.08) 0%, transparent 50%),
      radial-gradient(circle at 80% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
  }
  
  #app {
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
    border-left: 1px solid var(--glass-border);
    border-right: 1px solid var(--glass-border);
  }
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.8rem; }
.text-xs { font-size: 0.7rem; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.fw-bold { font-weight: 700; }
.hidden { display: none !important; }

/* ============================================
   Admin View & Dashboard Styles
   ============================================ */
.admin-view {
  padding: var(--space-md);
}

.admin-tabs {
  display: flex;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: var(--space-md);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  gap: 2px;
  overflow-x: auto;
}

.admin-tab {
  flex: 1;
  padding: var(--space-sm) var(--space-xs);
  text-align: center;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition-base);
  color: var(--text-muted);
  white-space: nowrap;
}

.admin-tab.active {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-purple);
}

.admin-panel-content {
  animation: fadeIn 0.3s ease;
}

.admin-list-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding-bottom: var(--space-xl);
}

.admin-item-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  position: relative;
  transition: var(--transition-base);
}

.admin-item-card:hover {
  border-color: rgba(139, 53, 163, 0.4);
}

.admin-item-thumb {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.admin-item-info {
  flex: 1;
  min-width: 0;
}

.admin-item-name {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-item-meta {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.admin-item-actions {
  display: flex;
  gap: var(--space-xs);
}

.admin-btn-action {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: var(--transition-fast);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.admin-btn-action.edit {
  background: rgba(212, 175, 55, 0.15);
  color: var(--accent);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.admin-btn-action.edit:active {
  background: var(--accent);
  color: var(--bg-primary);
}

.admin-btn-action.delete {
  background: rgba(231, 76, 60, 0.15);
  color: var(--error);
  border: 1px solid rgba(231, 76, 60, 0.3);
}

.admin-btn-action.delete:active {
  background: var(--error);
  color: white;
}

.admin-flash-badge {
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 4px;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 1px 4px;
  margin-left: var(--space-xs);
  display: inline-block;
}

/* Prevent body scroll when modal open */
body.modal-open {
  overflow: hidden;
}
