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

/* CSS Variables */
:root {
  --bg-primary: #0a060d;
  --bg-secondary: #140d1a;
  --bg-card: rgba(26, 17, 34, 0.7);
  --bg-input: rgba(15, 9, 20, 0.8);
  --text-primary: #f6f3f8;
  --text-secondary: #b6abbf;
  --text-muted: #7c7087;
  
  /* Candy accents - rebranded to Mango Heaven */
  --accent-pink: #ffb700;
  --accent-purple: #fb8500;
  --accent-blue: #00d2ff;
  --accent-peach: #ff8552;
  --accent-green: #390099; /* custom dark purple */
  --accent-emerald: #06d6a0;
  --accent-yellow: #ffd166;
  --accent-red: #ff5a5f;
  
  /* Gradients */
  --gradient-candy: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-purple) 100%);
  --gradient-blue: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-blue) 100%);
  --gradient-peach: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-peach) 100%);
  --gradient-glow: linear-gradient(135deg, rgba(255, 183, 0, 0.15) 0%, rgba(251, 133, 0, 0.15) 100%);
  
  /* Borders and shadows */
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-border-focus: rgba(255, 183, 0, 0.4);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 0 40px rgba(251, 133, 0, 0.15);
  --shadow-glow: 0 0 15px rgba(255, 183, 0, 0.3);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --font-sans: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

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

button, input, select, textarea {
  font-family: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* Background Candy Glow Blobs */
.bg-glow {
  position: fixed;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
  opacity: 0.12;
  pointer-events: none;
}
.bg-glow-1 {
  background: var(--accent-pink);
  top: -10%;
  right: -10%;
  animation: float-glow-1 25s infinite alternate;
}
.bg-glow-2 {
  background: var(--accent-purple);
  bottom: -15%;
  left: -10%;
  animation: float-glow-2 20s infinite alternate;
}

@keyframes float-glow-1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-10%, 15%) scale(1.1); }
}
@keyframes float-glow-2 {
  0% { transform: translate(0, 0) scale(1.1); }
  100% { transform: translate(15%, -10%) scale(0.9); }
}

/* Navbar Layout */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4%;
  background: rgba(10, 6, 13, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-normal);
}

.navbar.scrolled {
  height: 70px;
  background: rgba(10, 6, 13, 0.85);
  box-shadow: var(--shadow-md);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--gradient-candy);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  font-size: 1.8rem;
  animation: rotate-logo 6s infinite linear;
}

@keyframes rotate-logo {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
  position: relative;
  padding: 8px 0;
  transition: var(--transition-fast);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-candy);
  transition: var(--transition-fast);
  border-radius: 2px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-icon {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 1.1rem;
  transition: var(--transition-normal);
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-pink);
  transform: translateY(-2px);
  box-shadow: 0 0 10px rgba(255, 80, 159, 0.2);
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--gradient-candy);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-primary);
  animation: pulse-count 2s infinite;
}

@keyframes pulse-count {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.btn-premium {
  padding: 10px 22px;
  border-radius: var(--radius-md);
  background: var(--gradient-candy);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font-display);
  box-shadow: 0 4px 15px rgba(255, 80, 159, 0.25);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-normal);
}

.btn-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 80, 159, 0.4), var(--shadow-glow);
}

.btn-secondary {
  padding: 10px 22px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font-display);
  transition: var(--transition-normal);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-secondary);
  transform: translateY(-2px);
}

/* Page Layouts */
main {
  margin-top: 80px;
  padding: 2rem 4%;
  min-height: calc(100vh - 180px);
}

.view-section {
  display: none;
  animation: fadeIn 0.4s ease-out forwards;
}

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

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

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4rem 0;
  gap: 3rem;
  margin-bottom: 3rem;
}

.hero-content {
  flex: 1.2;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(255, 80, 159, 0.08);
  border: 1px solid rgba(255, 80, 159, 0.2);
  color: var(--accent-pink);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: var(--gradient-candy);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  color: var(--text-secondary);
  font-size: 1.15rem;
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-cta {
  display: flex;
  gap: 16px;
}

.hero-image-container {
  flex: 0.8;
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-circle-bg {
  position: absolute;
  width: 320px;
  height: 320px;
  background: var(--gradient-glow);
  border-radius: 50%;
  filter: blur(20px);
  z-index: -1;
  animation: pulse-bg 4s infinite alternate;
}

@keyframes pulse-bg {
  0% { transform: scale(1); filter: blur(20px); }
  100% { transform: scale(1.15); filter: blur(35px); }
}

.hero-img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
  animation: float-hero-img 6s ease-in-out infinite;
}

@keyframes float-hero-img {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(3deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

/* Category Filters & Search */
.store-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 280px;
  max-width: 400px;
}

.search-box input {
  width: 100%;
  padding: 12px 16px 12px 46px;
  background: var(--bg-input);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--transition-normal);
}

.search-box input:focus {
  outline: none;
  border-color: var(--glass-border-focus);
  box-shadow: 0 0 15px rgba(255, 80, 159, 0.15);
}

.search-box .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
}

.category-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition-normal);
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--gradient-candy);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(255, 80, 159, 0.25);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 4rem;
}

/* Candy Card Style */
.candy-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.candy-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-glow);
  opacity: 0;
  transition: var(--transition-normal);
  z-index: -1;
  pointer-events: none;
}

.candy-card:hover {
  transform: translateY(-8px);
  border-color: var(--glass-border-focus);
  box-shadow: var(--shadow-lg);
}

.candy-card:hover::before {
  opacity: 1;
}

.card-img-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.candy-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

.candy-card:hover .candy-card-img {
  transform: scale(1.05);
}

.candy-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.badge-gummy { background: var(--accent-pink); }
.badge-chocolate { background: var(--accent-purple); }
.badge-sour { background: var(--accent-peach); }
.badge-hard { background: var(--accent-blue); }

.card-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-category {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.card-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.8rem;
}

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

.card-price {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-pink);
}

/* Candy Detail Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 4, 8, 0.85);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeInFast 0.3s ease;
}

@keyframes fadeInFast {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  max-width: 780px;
  width: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: slideUpFast 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 1.2rem;
  z-index: 10;
  transition: var(--transition-fast);
}

.modal-close:hover {
  background: var(--accent-red);
  color: #fff;
  border-color: transparent;
  transform: rotate(90deg);
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
}

@media (max-width: 680px) {
  .modal-grid {
    grid-template-columns: 1fr;
  }
  .modal-img-wrapper {
    height: 220px !important;
  }
}

.modal-img-wrapper {
  background: rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  height: 100%;
}

.modal-img {
  max-width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: var(--radius-md);
  filter: drop-shadow(0 15px 25px rgba(0,0,0,0.4));
}

.modal-body {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
}

.modal-category {
  font-size: 0.85rem;
  color: var(--accent-pink);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.2;
}

.modal-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.modal-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--glass-border);
  padding-top: 1.5rem;
}

.modal-price-box {
  display: flex;
  flex-direction: column;
}

.modal-price-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.modal-price {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
}

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

/* Quantity selector */
.qty-selector {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 4px;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-weight: 700;
  transition: var(--transition-fast);
}

.qty-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.qty-val {
  width: 36px;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Authentication Page */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
  padding: 2rem 0;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.auth-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--transition-normal);
}

.form-group input:focus {
  outline: none;
  border-color: var(--glass-border-focus);
  box-shadow: 0 0 15px rgba(255, 80, 159, 0.15);
}

.auth-submit-btn {
  width: 100%;
  padding: 12px;
  margin-top: 1rem;
}

.auth-switch {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.auth-switch-link {
  color: var(--accent-pink);
  font-weight: 600;
  cursor: pointer;
  margin-left: 4px;
}

.auth-switch-link:hover {
  text-decoration: underline;
}

/* Google Auth Custom Styling */
.google-signin-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px 20px;
  background: #ffffff;
  color: #3c4043;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid #dadce0;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.google-signin-btn:hover {
  background: #f8f9fa;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

.google-signin-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.google-account-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.google-account-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-pink);
  transform: scale(1.01);
}

.google-avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.google-account-info {
  flex: 1;
  overflow: hidden;
}

.google-account-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.google-account-email {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.badge-role-pill {
  font-size: 0.68rem;
  background: linear-gradient(135deg, #ff9900, #ff5500);
  color: #fff;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Cart Page / Layout */
.cart-layout {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 30px;
  align-items: start;
}

@media (max-width: 900px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }
}

.cart-items-section {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(10px);
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 1rem;
}

.cart-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
}

.cart-empty-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  display: block;
}

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

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

.cart-item-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  background: rgba(0,0,0,0.15);
  border-radius: var(--radius-md);
}

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

.cart-item-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.cart-item-category {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.cart-item-price {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-pink);
  margin-top: 4px;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

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

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

.cart-summary {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(10px);
  position: sticky;
  top: 100px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--text-secondary);
}

.summary-row.total {
  border-top: 1px solid var(--glass-border);
  padding-top: 16px;
  margin-top: 16px;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1.3rem;
  font-family: var(--font-display);
}

.summary-row.total span:last-child {
  color: var(--accent-pink);
}

.checkout-btn {
  width: 100%;
  padding: 14px;
  margin-top: 1.5rem;
}

/* Admin Dashboard Layout */
.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 30px;
  align-items: start;
}

@media (max-width: 800px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    position: static !important;
  }
}

.admin-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  position: sticky;
  top: 100px;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  text-align: left;
  width: 100%;
}

.admin-nav-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.admin-nav-btn.active {
  background: var(--gradient-candy);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(255, 80, 159, 0.2);
}

.admin-content {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(10px);
  min-height: 500px;
}

.admin-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 1rem;
}

.admin-section-header h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
}

/* Stats Cards Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 2rem;
}

.stats-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 16px;
}

.stats-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: var(--gradient-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-pink);
  font-size: 1.3rem;
}

.stats-info {
  display: flex;
  flex-direction: column;
}

.stats-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.stats-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
}

/* Admin Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

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

.admin-table th {
  background: rgba(0,0,0,0.15);
  padding: 14px 16px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--glass-border);
}

.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--glass-border);
  font-size: 0.95rem;
  vertical-align: middle;
}

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

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

.product-cell-img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  padding: 4px;
  border-radius: var(--radius-sm);
}

.action-row {
  display: flex;
  gap: 8px;
}

.btn-small {
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

.btn-edit {
  background: rgba(157, 78, 221, 0.15);
  border: 1px solid rgba(157, 78, 221, 0.3);
  color: #c77dff;
}

.btn-edit:hover {
  background: var(--accent-purple);
  color: #fff;
}

.btn-delete {
  background: rgba(255, 90, 95, 0.15);
  border: 1px solid rgba(255, 90, 95, 0.3);
  color: #ff8585;
}

.btn-delete:hover {
  background: var(--accent-red);
  color: #fff;
}

/* Form layout for modals */
.admin-form {
  padding: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

@media (max-width: 580px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.file-input-wrapper {
  position: relative;
  width: 100%;
}

/* Image preview box in admin form */
.img-preview-box {
  width: 100%;
  height: 120px;
  border: 2px dashed var(--glass-border);
  border-radius: var(--radius-md);
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.img-preview-box img {
  max-height: 100%;
  max-width: 100%;
  object-fit: cover;
}

.img-preview-placeholder {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}

/* User Account Info Section */
.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 600px;
  margin: 0 auto 3rem;
  backdrop-filter: blur(10px);
  text-align: center;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient-candy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
}

.profile-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.profile-email {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.profile-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.profile-badge.badge-user {
  background: rgba(0, 210, 255, 0.1);
  color: var(--accent-blue);
  border: 1px solid rgba(0, 210, 255, 0.3);
}

.profile-badge.badge-admin {
  background: rgba(255, 80, 159, 0.1);
  color: var(--accent-pink);
  border: 1px solid rgba(255, 80, 159, 0.3);
}

/* Footer style */
footer {
  border-top: 1px solid var(--glass-border);
  padding: 2rem 4%;
  background: rgba(10, 6, 13, 0.9);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  background: var(--gradient-candy);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Footer style */
footer {
  border-top: 1px solid var(--glass-border);
  padding: 2rem 4%;
  background: rgba(10, 6, 13, 0.9);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Toast Notifications - Floating Fix */
#toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2000;
}

.toast {
  background: rgba(26, 17, 34, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-left: 4px solid var(--accent-pink);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  min-width: 280px;
  max-width: 400px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
  animation: toast-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  color: var(--text-primary);
}

.toast-success { border-left-color: var(--accent-emerald); }
.toast-error { border-left-color: var(--accent-red); }
.toast-info { border-left-color: var(--accent-blue); }

.toast.removing {
  animation: toast-out 0.3s ease forwards;
}

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

.toast-message {
  font-size: 0.85rem;
  font-weight: 500;
}

@keyframes toast-in {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes toast-out {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(120%); opacity: 0; }
}

/* Verify Code Screen Digit Inputs */
.verify-code-input {
  width: 48px;
  height: 48px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: bold;
  background: var(--bg-input) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  transition: var(--transition-fast);
}

.verify-code-input:focus {
  outline: none;
  border-color: var(--accent-pink) !important;
  box-shadow: 0 0 10px rgba(255, 80, 159, 0.25);
}

/* Leaderboard Styles */
.podium-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
}
.rank-1 {
  background: rgba(255, 215, 0, 0.15);
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.3);
}
.rank-2 {
  background: rgba(192, 192, 192, 0.15);
  color: #c0c0c0;
  border: 1px solid rgba(192, 192, 192, 0.3);
}
.rank-3 {
  background: rgba(205, 127, 50, 0.15);
  color: #cd7f32;
  border: 1px solid rgba(205, 127, 50, 0.3);
}
.rank-number {
  font-weight: 700;
  color: var(--text-secondary);
  padding-left: 8px;
}
.user-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}
.user-avatar-small {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-candy);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(255, 183, 0, 0.2);
}

/* Loyalty Badge Styles */
.loyalty-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.loyalty-emerald {
  background: rgba(6, 214, 160, 0.1);
  color: #06d6a0;
  border: 1px solid rgba(6, 214, 160, 0.3);
}

.loyalty-diamond {
  background: rgba(0, 180, 216, 0.1);
  color: #00b4d8;
  border: 1px solid rgba(0, 180, 216, 0.3);
}

.loyalty-platinum {
  background: rgba(229, 229, 229, 0.1);
  color: #e5e5e5;
  border: 1px solid rgba(229, 229, 229, 0.3);
}

.loyalty-gold {
  background: rgba(255, 215, 0, 0.1);
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.loyalty-silver {
  background: rgba(192, 192, 192, 0.1);
  color: #c0c0c0;
  border: 1px solid rgba(192, 192, 192, 0.3);
}

.loyalty-bronze {
  background: rgba(205, 127, 50, 0.1);
  color: #cd7f32;
  border: 1px solid rgba(205, 127, 50, 0.3);
}

/* Leaderboard Page Layout Styles */
@media (max-width: 800px) {
  .leaderboard-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
}

/* Custom Scrollbar Styles (Orange Theme) */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--accent-purple);
  border-radius: 8px;
  border: 2px solid var(--bg-primary);
}

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

/* Interactive Checkout Demo Card - Orange themed */
.checkout-demo-card {
  width: 340px;
  min-height: 400px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
  position: relative;
  z-index: 2;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  animation: float-hero-img 6s ease-in-out infinite;
  border-top: 2px solid var(--accent-pink);
}

.demo-screen {
  width: 100%;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.demo-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.demo-card-header h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-badge-step {
  font-size: 0.75rem;
  background: rgba(255, 183, 0, 0.1);
  color: var(--accent-pink);
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 600;
}

.demo-instruction {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* Screen 1: Products */
.demo-products-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.demo-product-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  cursor: default;
  transition: all var(--transition-fast);
  pointer-events: none; /* Disable manual clicks for fully automated loop */
}

.demo-product-item.selected {
  background: rgba(255, 183, 0, 0.08);
  border: 1.5px solid var(--accent-pink) !important;
  box-shadow: 0 0 12px rgba(255, 183, 0, 0.2);
  transform: translateY(-2px);
}

.product-emoji {
  font-size: 1.4rem;
}

.demo-product-info {
  flex-grow: 1;
}

.demo-product-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.demo-product-price {
  font-size: 0.75rem;
  color: var(--accent-pink);
  font-weight: 700;
}

.select-arrow {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

.demo-product-item:hover .select-arrow {
  color: var(--accent-pink);
  transform: translateX(3px);
}

/* Screen 2: Checkout */
.demo-checkout-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
}

.demo-item-details {
  display: flex;
  align-items: center;
  gap: 10px;
}

.demo-item-icon {
  font-size: 1.3rem;
}

.demo-item-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

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

.demo-item-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.demo-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.demo-form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.demo-form-group label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.demo-form-group input {
  width: 100%;
  padding: 8px 12px;
  background: var(--bg-input);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.85rem;
  outline: none;
  font-family: inherit;
}

.demo-input-wrapper {
  position: relative;
}

.demo-input-wrapper i {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.demo-input-wrapper input {
  padding-left: 30px;
}

.demo-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.demo-pay-btn {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  background: var(--gradient-candy);
  border: none;
  border-radius: var(--radius-sm);
  color: #000;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px rgba(255, 183, 0, 0.2);
}

.demo-pay-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 183, 0, 0.4);
}

.demo-pay-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Screen 3: Success */
#demo-screen-success {
  text-align: center;
  justify-content: center;
  align-items: center;
}

.success-icon-container {
  margin-bottom: 1rem;
}

.success-circle {
  width: 60px;
  height: 60px;
  background: rgba(6, 214, 160, 0.1);
  border: 2px solid var(--accent-emerald);
  color: var(--accent-emerald);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto;
  animation: success-pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes success-pop {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

.success-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.success-message {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  max-width: 250px;
  line-height: 1.4;
}

.success-receipt {
  width: 100%;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--glass-border);
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
}

.receipt-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.receipt-value {
  font-family: monospace;
  font-size: 0.78rem;
  color: var(--accent-pink);
  word-break: break-all;
}

.demo-reset-btn {
  width: 100%;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.demo-reset-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-secondary);
}
