/* =====================================================
   OREX DRIP - DARK THEME v2.0
   Premium Streetwear Style
===================================================== */

/* ===== FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600;700&display=swap');

/* ===== COLOR SYSTEM ===== */
:root {
  --bg-dark: #0a0a0a;
  --bg-card: #141414;
  --bg-hover: #1a1a1a;
  --primary: #ff3c3c;
  --primary-hover: #ff5555;
  --accent: #8B5CF6;
  --text: #ffffff;
  --text-muted: #888888;
  --border: #2a2a2a;
  --success: #22c55e;
  --warning: #f59e0b;
  --info: #3b82f6;
  --error: #ef4444;
}

/* ===== RESET & BASE ===== */
/* MODAL BASE - MUST BE FIRST */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); z-index: 2000; overflow-y: auto; padding: 20px; box-sizing: border-box; }
.modal.active { display: block; }
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-dark);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 2px;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: var(--primary-hover);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 60, 60, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 60, 60, 0.6);
  }
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes numberPop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes float {
  0%, 100% {
    opacity: 0;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-10px);
  }
}

@keyframes floatEmoji {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.12;
  }
  90% {
    opacity: 0.12;
  }
  100% {
    transform: translateY(-100vh) rotate(360deg);
    opacity: 0;
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== HEADER ===== */
.header {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-right {
  display: flex;
  gap: 12px;
}

.header strong {
  color: var(--text);
  font-weight: 600;
}

.header span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 2px;
}

.logo span {
  color: var(--primary);
}

.header-btn {
  background: transparent;
  color: var(--primary) !important;
  border: 1px solid var(--primary);
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
  width: auto;
}

.header-btn:hover {
  background: var(--primary);
  color: white !important;
}

/* ===== STORE HEADER ===== */
.store-header {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a0a0a 100%);
  padding: 40px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.store-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 60, 60, 0.1) 0%, transparent 70%);
}

.store-header.compact {
  padding: 25px 20px;
}

.store-header h1 {
  font-size: 3rem;
  position: relative;
  animation: fadeIn 0.8s ease;
}

.store-header h1 span {
  color: var(--primary);
}

.store-header p {
  color: var(--text-muted);
  margin-top: 10px;
  font-size: 1.1rem;
}

.header-emoji {
  font-size: 2rem;
  animation: bounce 2s ease infinite;
  display: inline-block;
}

.brand-glow {
  color: var(--primary);
  text-shadow: 0 0 30px rgba(255, 60, 60, 0.5), 0 0 60px rgba(255, 60, 60, 0.3);
}

.brand-span {
  color: var(--primary);
  text-shadow: 0 0 30px rgba(255, 60, 60, 0.5);
}

.header-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 400px;
  height: 400px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 60, 60, 0.15) 0%, transparent 70%);
  animation: pulse 4s ease infinite;
}

/* ===== CATEGORY TABS ===== */
.cat-tabs {
  background: var(--bg-card);
  padding: 15px 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
}

.cat-btn {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  color: var(--text-muted) !important;
  padding: 10px 20px;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.3s;
  width: auto;
  font-size: 0.85rem;
}

.cat-btn:hover {
  border-color: var(--primary);
  color: var(--primary) !important;
}

.cat-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white !important;
  animation: pulse 0.3s ease;
}

/* ===== MAIN LAYOUT ===== */
.main {
  display: flex;
  gap: 30px;
  max-width: 1400px;
  margin: 30px auto;
  padding: 0 20px;
}

/* ===== PRODUCTS GRID ===== */
#products {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* ===== PRODUCT CARD ===== */
.product {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: fadeIn 0.5s ease;
  position: relative;
  overflow: hidden;
}

.product:hover {
  border-color: var(--primary);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(255, 60, 60, 0.15);
}

.product img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--bg-dark);
  transition: transform 0.3s;
}

.product:hover img {
  transform: scale(1.05);
}

.product h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin: 12px 0 8px;
  color: var(--text);
}

.product .price {
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 700;
}

.product small {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-actions {
  position: absolute;
  top: 15px;
  right: -60px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: 0.3s ease;
}

.product:hover .product-actions {
  right: 15px;
}

.product-actions button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.product-actions button:hover {
  background: white;
  color: var(--primary);
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-card .product-info {
  flex: 1;
}

.product-card .product-info strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 5px;
}

.product-card .product-info small {
  display: block;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 3px;
}

.product-card-mini {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 15px;
}

.product-card-mini img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--bg-dark);
  margin-bottom: 15px;
}

.product-card-mini h4 {
  font-size: 1rem;
  margin-bottom: 5px;
}

.product-card-mini p {
  color: var(--primary);
  font-weight: 600;
}

.product-card-mini small {
  color: var(--text-muted);
}

/* ===== PRODUCT GALLERY ===== */
.product-gallery {
  position: relative;
  margin-bottom: 20px;
}

.product-gallery img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--bg-dark);
}

.gallery-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.gallery-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  width: auto;
}

.gallery-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.gallery-counter {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
}

.gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
}

.gallery-dot.active {
  background: var(--primary);
}

/* ===== CART SIDEBAR ===== */
.cart {
  width: 380px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 25px;
  position: sticky;
  top: 100px;
  height: fit-content;
  max-height: calc(100vh - 150px);
  overflow-y: auto;
}

.cart h2 {
  color: var(--text);
  font-size: 1.5rem;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-icon {
  font-size: 1.2rem;
}

.cart-items {
  margin-bottom: 20px;
}

.cart-item {
  background: var(--bg-dark);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.cart-item-info {
  flex: 1;
}

.cart-item-info strong {
  display: block;
  font-size: 0.9rem;
}

.cart-item-info small {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.cart-price {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.1rem;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
  border-top: 2px solid var(--border);
  font-weight: 700;
  font-size: 1.2rem;
}

.cart-total span:last-child {
  color: var(--primary);
}

.btn-checkout {
  background: var(--primary);
  color: white;
  padding: 16px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
  width: 100%;
}

.btn-checkout:hover {
  background: var(--primary-hover);
  animation: glow 1s ease infinite;
}

.btn-clear {
  background: transparent;
  color: var(--text-muted) !important;
  border: 1px solid var(--border);
  margin-top: 10px;
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.btn-clear:hover {
  border-color: var(--primary);
  color: var(--primary) !important;
}

.btn-link {
  display: block;
  text-align: center;
  margin-top: 15px;
  color: var(--text-muted);
}

/* ===== MODAL ===== */
.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px;
  width: 90%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  margin: 20px auto;
}

.modal.active {
  display: block;
}

.modal-content img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
}

.modal-content h2 {
  font-family: 'Inter', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
}

.modal-price {
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 10px 0 20px;
}

.modal-field {
  margin-bottom: 15px;
}

.modal-field label {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 5px;
}

.modal-field select,
.modal-field input {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px;
  border-radius: 8px;
  width: 100%;
}

.modal-field select:focus,
.modal-field input:focus {
  outline: none;
  border-color: var(--primary);
}

.btn-add {
  background: var(--primary);
  color: white;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.btn-add:hover {
  background: var(--primary-hover);
}

.btn-cancel {
  background: transparent;
  color: var(--text-muted) !important;
  border: 1px solid var(--border);
  margin-top: 10px;
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
}

/* ===== TOAST NOTIFICATION ===== */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--bg-card);
  border: 1px solid var(--primary);
  border-radius: 10px;
  padding: 15px 25px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 3000;
  transform: translateX(150%);
  transition: 0.4s ease;
}

.toast.show {
  transform: translateX(0);
}

.toast.success {
  border-color: var(--success);
}

.toast-icon {
  font-size: 1.5rem;
  margin-right: 10px;
}

/* ===== FOOTER ===== */
footer {
  background: var(--bg-card);
  padding: 60px 20px 30px;
  margin-top: 60px;
  border-top: 1px solid var(--border);
}

footer.site-footer {
  text-align: center;
  padding: 25px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.footer-col h3 {
  color: var(--text);
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.site-footer strong {
  color: var(--primary);
}

.site-footer .developer {
  color: var(--text);
  margin-top: 5px;
}

/* ===== EMPTY STATE ===== */
.empty {
  color: var(--text-muted);
  text-align: center;
  padding: 60px 20px;
  font-size: 1.1rem;
}

.empty-state-admin {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

/* ===== LOADING SPINNER ===== */
.loader-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.loader-overlay.active {
  display: flex;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--border);
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loader-text {
  position: absolute;
  bottom: calc(50% - 40px);
  color: white;
}

/* ===== UTILITY CLASSES ===== */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}

/* ===== AUTH PAGES ===== */
.auth-container {
  max-width: 420px;
  margin: 60px auto;
  padding: 40px 30px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.auth-container h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 10px;
}

.auth-header {
  text-align: center;
  margin-bottom: 30px;
}

.auth-header h1 {
  font-size: 2.5rem;
}

.auth-header h1 span {
  color: var(--primary);
}

.admin-badge {
  background: var(--primary);
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 4px;
}

.tagline {
  text-align: center;
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 25px;
}

.tagline .highlight {
  color: var(--primary);
  font-weight: 600;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 1rem;
  transition: 0.3s;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary);
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.password-toggle {
  position: relative;
}

.password-toggle input {
  padding-right: 50px;
}

.toggle-eye {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}

.btn-primary {
  width: 100%;
  padding: 16px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  width: 100%;
  padding: 14px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-top: 10px;
  cursor: pointer;
  transition: 0.3s;
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.auth-toggle {
  text-align: center;
  padding: 20px 0;
  color: var(--text-muted);
  cursor: pointer;
  transition: 0.3s;
}

.auth-toggle:hover {
  color: var(--primary);
}

.message {
  text-align: center;
  padding: 12px;
  margin: 15px 0;
  border-radius: 8px;
}

.msg-success {
  background: rgba(34, 197, 94, 0.1);
  color: var(--success);
}

.msg-error {
  background: rgba(255, 60, 60, 0.1);
  color: var(--primary);
}

.success-box {
  text-align: center;
  padding: 25px;
  background: var(--bg-dark);
  border-radius: 12px;
  margin-top: 20px;
}

.success-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.client-id-display {
  background: var(--bg-card);
  padding: 20px;
  border-radius: 10px;
}

.client-id-display .id-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.btn-copy {
  background: var(--primary);
  color: #fff;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.btn-copy:hover {
  background: var(--primary-hover);
}

.id-note {
  font-size: 0.85rem;
  color: var(--warning);
  margin-top: 10px;
}

/* ===== STATS BAR ===== */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  padding: 0 20px;
}

.stat-item {
  position: relative;
  text-align: center;
  background: var(--bg-card);
  border: 2px solid transparent;
  border-radius: 20px;
  padding: 25px 35px;
  min-width: 140px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 60, 60, 0.1) 0%, transparent 50%);
  opacity: 0;
  transition: 0.3s;
}

.stat-item:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 15px 40px rgba(255, 60, 60, 0.2);
}

.stat-item:hover::before {
  opacity: 1;
}

.stat-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff3c3c, #ff6b6b, #ff3c3c);
  background-size: 200% 200%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  animation: gradientMove 3s ease infinite;
  box-shadow: 0 0 25px rgba(255, 60, 60, 0.5);
}

.stat-circle.blue {
  background: linear-gradient(135deg, #3b82f6, #60a5fa, #3b82f6);
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.5);
}

.stat-circle.green {
  background: linear-gradient(135deg, #22c55e, #4ade80, #22c55e);
  box-shadow: 0 0 25px rgba(34, 197, 94, 0.5);
}

.stat-circle.purple {
  background: linear-gradient(135deg, #8b5cf6, #a78bfa, #8b5cf6);
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.5);
}

.stat-circle.gold {
  background: linear-gradient(135deg, #f59e0b, #fbbf24, #f59e0b);
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.5);
}

.stat-emoji {
  font-size: 1.8rem;
}

.stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  text-shadow: 0 0 20px rgba(255, 60, 60, 0.5);
  transition: transform 0.3s;
}

.stat-num.updated {
  animation: numberPop 0.4s ease;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0;
}

.stat-item:hover .stat-particle {
  animation: float 2s ease infinite;
}

.stat-particle:nth-child(1) {
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}

.stat-particle:nth-child(2) {
  top: 30%;
  right: 20%;
  animation-delay: 0.3s;
}

.stat-particle:nth-child(3) {
  bottom: 30%;
  left: 20%;
  animation-delay: 0.6s;
}

.stat-particle:nth-child(4) {
  bottom: 20%;
  right: 20%;
  animation-delay: 0.9s;
}

/* ===== ADMIN PANEL ===== */
.admin-body {
  background: var(--bg-dark);
}

.admin-header {
  background: var(--bg-card);
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 15px;
}

.admin-header h1 {
  font-size: 1.8rem;
}

.admin-header h1 span {
  color: var(--primary);
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 15px;
}

.admin-email {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.admin-nav {
  background: var(--bg-card);
  padding: 15px 30px;
  display: flex;
  gap: 15px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.admin-nav-btn {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: 0.3s;
  width: auto;
}

.admin-nav-btn:hover,
.admin-nav-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.admin-main {
  padding: 30px;
  max-width: 1400px;
  margin: 0 auto;
}

.admin-section {
  display: none;
}

.admin-section.active {
  display: block;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.admin-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
}

.admin-stat-card.green {
  border-color: var(--success);
}

.admin-stat-card.yellow {
  border-color: var(--warning);
}

.admin-stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
}

.admin-stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 5px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stats .stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
}

.stats .stat .label {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.stats .stat .value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.stats .stat.green .value {
  color: var(--success);
}

.stats .stat.yellow .value {
  color: var(--warning);
}

.stats .stat.blue .value {
  color: var(--info);
}

.filter {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter button {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  width: auto;
  font-size: 0.85rem;
  transition: 0.3s;
}

.filter button.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.order-card-admin {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.order-id {
  font-weight: 600;
  color: var(--primary);
}

.status-badge {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-pending {
  background: rgba(245, 158, 11, 0.2);
  color: var(--warning);
}

.status-approved {
  background: rgba(59, 130, 246, 0.2);
  color: var(--info);
}

.status-shipped {
  background: rgba(34, 197, 94, 0.2);
  color: var(--success);
}

.status-delivered {
  background: rgba(139, 92, 246, 0.2);
  color: var(--accent);
}

.status-rejected {
  background: rgba(239, 68, 68, 0.2);
  color: var(--error);
}

.order-details-admin {
  margin-bottom: 10px;
}

.order-details-admin div:first-child {
  font-weight: 600;
}

.order-details-admin small {
  color: var(--text-muted);
}

.order-card-total {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 15px;
}

.action-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.action-btn {
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  width: auto;
  transition: 0.3s;
}

.action-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.action-btn.approve {
  background: var(--success);
  color: #fff;
}

.action-btn.ship {
  background: var(--info);
  color: #fff;
}

.action-btn.done {
  background: var(--accent);
  color: #fff;
}

.action-btn.reject {
  background: var(--error);
  color: #fff;
}

.add-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 30px;
}

.add-form h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 15px;
}

.form-row input,
.form-row select {
  width: 100%;
  padding: 12px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
}

.save-btn {
  background: var(--primary);
  color: #fff;
  padding: 14px 30px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.save-btn:hover {
  background: var(--primary-hover);
}

.add-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 25px;
  margin-top: 30px;
}

.add-box h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.add-box input,
.add-box select {
  width: 100%;
  padding: 12px 15px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  margin-bottom: 12px;
}

.add-box input::placeholder {
  color: var(--text-muted);
}

.add-box button {
  background: var(--primary);
  color: white;
  padding: 14px 25px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  margin-top: 10px;
  transition: 0.3s;
}

.add-box button:hover {
  background: var(--primary-hover);
}

.delete-btn {
  background: var(--error);
  color: #fff;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  margin-top: 10px;
  width: auto;
  transition: 0.3s;
}

.delete-btn:hover {
  background: #dc2626;
}

.order-card-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.order-card-btns button {
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  width: auto;
  transition: 0.3s;
}

.order-card-btns button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.order-card-btns button.green {
  background: var(--success);
  color: white;
}

.order-card-btns button.blue {
  background: var(--info);
  color: white;
}

.order-card-btns button.purple {
  background: var(--accent);
  color: white;
}

.product-card button {
  background: var(--error);
  color: white;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  width: auto;
  transition: 0.3s;
}

.product-card button:hover {
  background: #dc2626;
}

/* ===== TRACKING PAGE ===== */
.user-bar {
  background: var(--bg-card);
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.back-link {
  color: var(--primary);
}

.track-container {
  max-width: 600px;
  margin: 40px auto;
}

.track-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
}

.track-box h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.track-subtitle {
  color: var(--text-muted);
  margin-bottom: 25px;
}

.track-input-group {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.track-input-group input {
  flex: 1;
  padding: 14px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
}

.track-input-group button {
  padding: 14px 25px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
}

.track-input-group button:hover {
  background: var(--primary-hover);
}

.orders-section {
  display: none;
  padding: 20px;
}

.orders-section h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.order-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.order-status {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
}

.order-details {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}

.detail-name {
  color: var(--text-muted);
}

.order-total {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}

.expected-delivery {
  margin-top: 15px;
  padding: 15px;
  border-radius: 8px;
}

.expected-delivery.delivered {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid var(--success);
}

.expected-delivery.shipped {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid var(--success);
}

.expected-delivery.processing {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid var(--warning);
}

.expected-delivery .countdown {
  font-size: 0.9rem;
  margin-top: 5px;
}

.timeline {
  display: flex;
  gap: 15px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--border);
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
}

.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.timeline-dot.completed {
  background: var(--success);
}

.timeline-dot.pending {
  background: var(--border);
}

.timeline-text.completed {
  color: var(--text);
}

.timeline-text.pending {
  color: var(--text-muted);
}

/* ===== PAYMENT PAGE ===== */
.payment-container {
  max-width: 500px;
  margin: 40px auto;
  padding: 30px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.payment-header {
  text-align: center;
  margin-bottom: 30px;
}

.payment-header h1 {
  font-size: 1.8rem;
  margin-bottom: 5px;
}

.form-section {
  margin-bottom: 25px;
}

.delivery-options {
  display: none;
}

.currency-section {
  margin: 20px 0;
}

.currency-section label {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.currency-options {
  display: flex;
  gap: 20px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.radio-label input {
  width: auto;
}

.total-display {
  text-align: center;
  padding: 25px;
  background: var(--bg-dark);
  border-radius: 12px;
  margin-bottom: 25px;
}

.total-label {
  color: var(--text-muted);
}

.total-display h2 {
  font-size: 2rem;
  color: var(--primary);
}

.payment-toggle {
  margin-bottom: 20px;
}

.toggle-btn {
  width: 100%;
  padding: 14px;
  background: var(--bg-dark);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
}

.toggle-btn.viewed {
  background: var(--success);
  color: #fff;
  border-color: var(--success);
}

.payment-details {
  display: none;
  margin-bottom: 25px;
}

.payment-details.show {
  display: block;
}

.details-card {
  background: var(--bg-dark);
  padding: 25px;
  border-radius: 12px;
}

.details-card h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.payment-method {
  text-align: left;
  margin-bottom: 20px;
}

.payment-method h4 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 5px;
}

.method-number {
  font-size: 1.2rem;
  font-weight: 600;
}

.method-name {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.payment-note {
  font-size: 0.85rem;
  color: var(--warning);
  margin-top: 15px;
}

.submit-btn {
  width: 100%;
  padding: 16px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 15px;
  transition: 0.3s;
}

.submit-btn:hover {
  background: var(--primary-hover);
}

.back-btn {
  width: 100%;
  padding: 14px;
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
}

.back-btn:hover {
  background: rgba(255, 60, 60, 0.1);
}

/* ===== FLOATING EMOJIS BACKGROUND ===== */
.floating-emojis {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.floating-emojis span {
  position: absolute;
  font-size: 2rem;
  opacity: 0.12;
  animation: floatEmoji 18s linear infinite;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 900px) {
  .main {
    flex-direction: column;
  }

  .cart {
    width: 100%;
    position: static;
  }
}

@media (max-width: 768px) {
  .admin-header {
    flex-direction: column;
    text-align: center;
  }

  .admin-nav {
    justify-content: flex-start;
  }

  .action-btns {
    flex-direction: column;
  }

  .action-btn {
    width: 100%;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .order-card-header {
    flex-direction: column;
    gap: 10px;
  }

  .order-card-btns {
    flex-direction: column;
  }

  .order-card-btns button {
    width: 100%;
  }

  .product-card {
    flex-direction: column;
    gap: 15px;
  }

  .timeline {
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .header {
    padding: 12px 15px;
    flex-direction: column;
    gap: 10px;
  }

  .header-left {
    width: 100%;
    justify-content: space-between;
  }

  .store-header h1 {
    font-size: 2rem;
  }

  .cat-tabs {
    gap: 8px;
    padding: 12px;
  }

  .cat-btn {
    padding: 8px 14px;
    font-size: 0.75rem;
  }

  .product img {
    height: 220px;
  }

  #products {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .auth-container {
    margin: 20px auto;
    padding: 25px 20px;
  }

  .stats-bar {
    gap: 10px;
  }

  .stat-item {
    padding: 12px 15px;
    min-width: 80px;
  }

  .stat-num {
    font-size: 1.4rem;
  }

  .track-input-group {
    flex-direction: column;
  }

  .track-input-group button {
    width: 100%;
  }

  .orders-section {
    padding: 15px;
  }

  .order-header {
    flex-direction: column;
    gap: 10px;
  }
}
.home-link {
  margin-top: 15px;
  text-align: center;
}

.btn-home {
  display: inline-block;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 500;
  transition: 0.3s;
}

.btn-home:hover {
  border-color: var(--primary);
  color: var(--primary);
}
/* ===== MOBILE INDEX PAGE FIXES ===== */
@media (max-width: 600px) {
  /* Header */
  .header {
    padding: 12px 15px;
    flex-direction: row;
    gap: 8px;
  }
  .header-left {
    width: auto;
    justify-content: flex-start;
  }
  .logo {
    font-size: 1.2rem;
  }
  .header-btn {
    padding: 6px 10px;
    font-size: 0.7rem;
  }
  
  /* Hero */
  .store-header {
    padding: 35px 15px;
  }
  .store-header h1 {
    font-size: 1.8rem;
  }
  .store-header p {
    font-size: 0.9rem;
  }
  .hero-cta {
    gap: 8px;
  }
  .btn-hero, .btn-hero-outline {
    padding: 10px 18px;
    font-size: 0.75rem;
  }
  
  /* About */
  .about-section {
    padding: 20px 12px;
  }
  .about-content {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .about-card {
    padding: 15px 10px;
  }
  .about-icon {
    font-size: 1.6rem;
  }
  .about-card h3 {
    font-size: 0.9rem;
  }
  .about-card p {
    font-size: 0.75rem;
  }
  
  /* Filter */
  .filter-section {
    background: var(--bg-card);
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 50px;
    z-index: 99;
  }
  .search-box {
    position: relative;
    margin-bottom: 10px;
  }
  .search-box i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.8rem;
  }
  .search-box input {
    width: 100%;
    padding: 10px 10px 10px 30px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text);
    font-size: 0.8rem;
  }
  .filter-tags {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 5px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .filter-tags::-webkit-scrollbar {
    display: none;
  }
  .filter-tag {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.65rem;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
  }
  .filter-tag.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
  }
  
  /* Products Grid */
  .main {
    padding: 12px 10px;
    flex-direction: column;
    gap: 12px;
  }
  #products, .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .product {
    padding: 6px;
    border-radius: 8px;
  }
  .product img {
    height: 100px;
    border-radius: 6px;
  }
  .product h3 {
    font-size: 0.7rem;
    margin: 6px 0 3px;
  }
  .product .price {
    font-size: 0.75rem;
  }
  .product small {
    font-size: 0.6rem;
  }
  
  /* Login Sidebar - Hidden on mobile */
  .login-prompt-sidebar {
    display: none;
  }
  
  /* Modal */
  .modal {
    padding: 12px;
  }
  .modal-content {
    padding: 12px;
    border-radius: 12px;
    width: 95%;
  }
  .modal-close {
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }
  .modal-gallery img {
    height: 180px;
    border-radius: 8px;
  }
  .gallery-nav {
    margin-top: 6px;
  }
  .gallery-btn {
    padding: 5px 8px;
    font-size: 0.75rem;
  }
  .gallery-counter {
    font-size: 0.7rem;
  }
  .gallery-dots {
    margin-top: 6px;
    gap: 4px;
  }
  .gallery-dot {
    width: 5px;
    height: 5px;
  }
  .btn-video {
    margin-top: 8px;
    padding: 6px;
    font-size: 0.75rem;
  }
  .modal-details h2 {
    font-size: 1rem;
  }
  .modal-details .modal-price {
    font-size: 1rem;
    margin-bottom: 10px;
  }
  .modal-description {
    padding: 8px;
    font-size: 0.75rem;
  }
  .modal-field {
    margin-bottom: 8px;
  }
  .modal-field label {
    font-size: 0.7rem;
  }
  .color-swatch, .size-swatch {
    padding: 4px 8px;
    font-size: 0.7rem;
  }
  .login-to-add {
    margin: 10px 0;
  }
  .login-cta-box {
    padding: 12px;
  }
  .login-cta-box i {
    font-size: 1rem;
  }
  .login-cta-box p {
    font-size: 0.75rem;
  }
  .btn-login, .btn-signup {
    padding: 8px 14px;
    font-size: 0.75rem;
  }
  .modal-meta {
    padding-top: 10px;
  }
  .meta-item {
    font-size: 0.7rem;
    gap: 4px;
  }
  .meta-item i {
    width: 14px;
  }
  
  /* Video Modal */
  .video-modal {
    padding: 15px;
  }
  .video-close {
    top: 10px;
    right: 10px;
    padding: 6px 12px;
    font-size: 0.75rem;
  }
  
  /* Toast */
  .toast {
    left: 10px;
    right: 10px;
    bottom: 15px;
    padding: 8px 12px;
    font-size: 0.8rem;
    transform: none;
  }
  .toast.show {
    transform: none;
  }
  
  /* Footer */
  .site-footer {
    padding: 15px 12px;
  }
  .footer-links {
    gap: 10px;
    margin-bottom: 10px;
  }
  .footer-links a {
    font-size: 0.75rem;
  }
  .site-footer p {
    font-size: 0.7rem;
  }
  .site-footer .developer {
    font-size: 0.65rem;
  }
}
