/* ===== TIGER STORE - CSS Design System ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Orbitron:wght@400;500;600;700;800;900&family=Cairo:wght@800;900&display=swap');

:root {
  /* Dark Theme (Default) */
  --bg-primary: #06050b;
  --bg-secondary: #0b0a14;
  --bg-card: #111019;
  --bg-card-hover: #161522;
  --bg-glass: rgba(11, 10, 20, 0.85);
  --bg-input: #0f0e1a;
  --text-primary: #f0f0f5;
  --text-secondary: #9d9db5;
  --text-muted: #6b6b80;
  --accent: #FF9900;
  --accent-hover: #FFB833;
  --accent-glow: rgba(255, 153, 0, 0.25);
  --accent2: #8b5cf6;
  --accent2-glow: rgba(139, 92, 246, 0.25);
  --danger: #ef4444;
  --success: #22c55e;
  --info: #3b82f6;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 153, 0, 0.35);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
  --gradient-hero: linear-gradient(180deg, #161328 0%, #06050b 100%);
  --gradient-accent: linear-gradient(135deg, #FF9900, #FF5500);
  --gradient-card: linear-gradient(145deg, #111019, #0b0a14);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-full: 50px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 80px;
}

[data-theme="light"] {
  --bg-primary: #f5f5fa;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f0f8;
  --bg-glass: rgba(255, 255, 255, 0.9);
  --bg-input: #f0f0f5;
  --text-primary: #1a1a2e;
  --text-secondary: #555570;
  --text-muted: #8888a0;
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(245, 158, 11, 0.4);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --gradient-hero: linear-gradient(135deg, #f5f5fa 0%, #e8e8f0 50%, #dde0f0 100%);
  --gradient-card: linear-gradient(145deg, #ffffff, #f5f5fa);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
  line-height: 1.6;
}

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

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

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

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

ul {
  list-style: none;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 10px;
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
}

.logo-wrap img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
}

.logo-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 15px var(--accent-glow);
  transform: translateY(-1px);
}

.nav-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Theme Toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #111019;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  color: #ff9900;
  font-size: 1rem;
  cursor: pointer;
}

.theme-toggle:hover {
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(255, 153, 0, 0.2);
  transform: scale(1.05);
}

/* Cart Button in Nav */
.cart-btn-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
}

.cart-btn-nav:hover {
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(255, 153, 0, 0.25);
  transform: translateY(-1px);
}

.cart-count {
  background: var(--gradient-accent);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  min-width: 20px;
  text-align: center;
  display: inline-block;
}

/* Admin Button */
.admin-btn {
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
  background: var(--gradient-accent);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 85, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.admin-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 85, 0, 0.35);
}

/* ===== COMPACT CYBERNETIC HERO ===== */
.hero {
  background: var(--gradient-hero);
  padding: 2.25rem 1.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, var(--accent-glow), transparent 75%);
  pointer-events: none;
  opacity: 0.65;
}

.hero h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.4rem, 4vw, 2.3rem);
  font-weight: 900;
  margin-bottom: 0.4rem;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
  text-transform: uppercase;
  filter: drop-shadow(0 2px 8px rgba(255, 153, 0, 0.3));
}

.hero .owner-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem;
  color: var(--text-secondary);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.85;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.hero .owner-text::before,
.hero .owner-text::after {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}

/* ===== CATEGORIES BAR ===== */
.categories-bar {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  padding: 1.2rem 1.5rem;
  background: #06050b;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  position: sticky;
  top: 80px;
  z-index: 99;
  backdrop-filter: blur(10px);
}

.cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1.3rem;
  border-radius: var(--radius-full);
  background: #111019;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
}

.cat-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: transform 0.2s ease;
}

.cat-btn:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  background: #161522;
  transform: translateY(-1px);
}

.cat-btn:hover svg {
  transform: scale(1.1);
}

.cat-btn.active {
  background: var(--gradient-accent);
  color: #ffffff !important;
  border-color: var(--accent);
  box-shadow: 0 4px 15px rgba(255, 153, 0, 0.4);
}

.cat-btn.active svg {
  color: #ffffff !important;
  fill: #ffffff !important;
}

/* Glowing Red Offers Button */
.cat-btn.offers-btn {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #ff6b6b;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.15);
  animation: offersGlow 3s infinite alternate ease-in-out;
}

.cat-btn.offers-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.5), inset 0 0 8px rgba(239, 68, 68, 0.3);
}

.cat-btn.offers-btn.active {
  background: linear-gradient(135deg, #ef4444, #b91c1c) !important;
  color: #ffffff !important;
  border-color: #ef4444 !important;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.75), 0 4px 15px rgba(185, 28, 28, 0.4) !important;
}

@keyframes offersGlow {
  0% {
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.15), inset 0 0 2px rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
  }
  100% {
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.4), inset 0 0 6px rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.6);
  }
}

/* ===== SUBCATEGORIES BAR ===== */
.subcategories-bar {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.8rem 1.5rem 1.2rem;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  z-index: 98;
  animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.sub-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
}

[data-theme="light"] .sub-btn {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.sub-btn:hover {
  color: var(--accent);
  border-color: rgba(255, 153, 0, 0.2);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}

.sub-btn.active {
  background: rgba(255, 153, 0, 0.1);
  color: var(--accent) !important;
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(255, 153, 0, 0.15);
}


/* ===== PRODUCTS GRID ===== */
.products-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-title .icon {
  font-size: 1.6rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.5rem;
}

/* Product Card */
.product-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
  cursor: pointer;
}

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

.product-card-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
  background: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-card-img {
  transform: scale(1.06);
}

.offer-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--danger);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
  }
}

.product-card-body {
  padding: 1rem 1.2rem 1.2rem;
}

.product-card-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card-cat {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.6rem;
}

.product-card-price {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.price-current {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent);
}

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

.countdown-mini {
  display: flex;
  gap: 0.3rem;
  margin-top: 0.5rem;
}

.countdown-mini .cd-unit {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-align: center;
}

/* ===== MODAL / PRODUCT DETAIL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
  position: relative;
}

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

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

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

.modal-img {
  width: 100%;
  aspect-ratio: 16 / 7;
  height: auto;
  object-fit: cover;
  background: var(--bg-input);
}

.modal-body {
  padding: 1.5rem;
}

.modal-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.modal-cat {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1rem;
}

.modal-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
  line-height: 1.7;
}

.modal-price-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.countdown-box {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  margin-bottom: 1.2rem;
  text-align: center;
}

.countdown-box .cd-label {
  font-size: 0.75rem;
  color: var(--danger);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.countdown-box .cd-timer {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.countdown-box .cd-unit {
  background: rgba(239, 68, 68, 0.15);
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  min-width: 50px;
}

.countdown-box .cd-num {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--danger);
}

.countdown-box .cd-txt {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ===== FORMS ===== */
.form-group {
  margin-bottom: 1rem;
}

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

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: border-color var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--gradient-accent);
  color: #000;
  width: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-danger:hover {
  opacity: 0.9;
}

.btn-success {
  background: var(--success);
  color: #fff;
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
}

/* ===== ADMIN PANEL ===== */
.admin-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 3000;
  display: none;
}

.admin-overlay.active {
  display: flex;
}

.admin-login {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.admin-login-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 400px;
  width: 100%;
  text-align: center;
}

.admin-login-box h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.admin-login-box p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.login-error {
  color: var(--danger);
  font-size: 0.8rem;
  margin-top: 0.5rem;
  display: none;
}

/* Admin Dashboard */
.admin-dashboard {
  width: 100%;
  height: 100%;
  display: none;
  flex-direction: column;
}

.admin-dashboard.active {
  display: flex;
}

.admin-topbar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-topbar h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.admin-content {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.admin-sidebar {
  width: 220px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  padding: 1rem 0;
  flex-shrink: 0;
  overflow-y: auto;
}

.admin-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.2rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition);
  cursor: pointer;
}

.admin-sidebar-link:hover,
.admin-sidebar-link.active {
  background: var(--bg-card);
  color: var(--accent);
  border-left: 3px solid var(--accent);
}

.admin-main {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
}

.admin-panel {
  display: none;
}

.admin-panel.active {
  display: block;
}

.admin-panel h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.stat-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
}

.stat-card .stat-num {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-card .stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

/* Data Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
}

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

.data-table th,
.data-table td {
  padding: 0.7rem 1rem;
  text-align: left;
  font-size: 0.82rem;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.data-table tr:hover {
  background: var(--bg-card-hover);
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* Status Badges */
.status-badge {
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
}

.status-pending {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent);
}

.status-processing {
  background: rgba(59, 130, 246, 0.15);
  color: var(--info);
}

.status-completed {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
}

/* Product Form Modal */
.admin-form-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.admin-form-modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 550px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2rem;
}

.admin-form-modal h3 {
  margin-bottom: 1rem;
}

/* ===== TOAST ===== */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.8rem 1.2rem;
  min-width: 260px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  box-shadow: var(--shadow-lg);
  animation: slideInRight 0.3s ease;
  border-left: 3px solid var(--success);
}

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

@keyframes slideInRight {
  from {
    transform: translateX(100px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer a {
  color: var(--accent);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.5rem 1rem;
  }

  .header-nav {
    justify-content: center;
  }

  .hero {
    padding: 2.5rem 1rem 2rem;
  }

  .categories-bar {
    top: auto;
    position: relative;
  }

  .admin-sidebar {
    width: 60px;
  }

  .admin-sidebar-link span {
    display: none;
  }

  .admin-sidebar-link {
    justify-content: center;
    padding: 0.7rem;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
    padding: 0.25rem !important;
  }

  .product-card {
    border-radius: 12px !important;
  }

  .product-card-body {
    padding: 0.6rem 0.6rem 0.8rem !important;
  }

  .product-card-title {
    font-size: 0.85rem !important;
    margin-bottom: 0.25rem !important;
  }

  .product-card-price {
    font-size: 0.95rem !important;
    margin-bottom: 0.4rem !important;
  }

  .price-current {
    font-size: 1rem !important;
  }

  .price-original {
    font-size: 0.75rem !important;
  }

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

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
    padding: 0.1rem !important;
  }

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

  .nav-link span {
    display: none;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.5s ease forwards;
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.empty-state .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.empty-state p {
  font-size: 0.9rem;
}

/* ===== ACCENT & CURRENCY THEME POLISH ===== */
:root {
  --accent: #FF9900;
  --accent-hover: #FFB833;
  --accent-glow: rgba(255, 153, 0, 0.25);
  --gradient-accent: linear-gradient(135deg, #FF9900, #FF5500);
  --border-hover: rgba(255, 153, 0, 0.35);
}

/* ===== QUANTITY SELECTOR IN MODAL ===== */
.qty-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
  max-width: 140px;
}

.qty-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  cursor: pointer;
}

.qty-btn:hover {
  border-color: var(--accent);
  background: rgba(255, 153, 0, 0.1);
  color: var(--accent);
}

.qty-input {
  width: 50px;
  height: 36px;
  text-align: center;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 700;
}

/* Hide numeric arrows */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ===== HEADER & FLOATING CART BUTTONS ===== */

.cart-floating-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: #000;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 8px 30px rgba(255, 153, 0, 0.4);
  transition: all var(--transition);
}

.cart-floating-btn:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 12px 40px rgba(255, 153, 0, 0.6);
}

.cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #ff2222;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-primary);
}

/* ===== CART DRAWER SYSTEM ===== */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2500;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 100vw;
  background: var(--bg-glass);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2600;
}

.cart-drawer-overlay.active .cart-drawer {
  transform: translateX(0);
}

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

.cart-header h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cart-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  cursor: pointer;
}

.cart-close:hover {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}

.cart-items {
  flex: 1;
  padding: 1rem 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem;
  display: flex;
  gap: 0.8rem;
  position: relative;
  align-items: center;
  transition: all var(--transition);
}

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

.cart-item-img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border);
}

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

.cart-item-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.15rem;
}

.cart-item-input {
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 500;
  background: rgba(255, 153, 0, 0.08);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  display: inline-block;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 0.25rem;
}

.cart-item-price {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  margin-left: auto;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.cart-qty-btn {
  width: 24px;
  height: 24px;
  background: transparent;
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
}

.cart-qty-btn:hover {
  background: rgba(255, 153, 0, 0.15);
  color: var(--accent);
}

.cart-qty-val {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0 0.5rem;
  min-width: 22px;
  text-align: center;
}

.cart-item-total {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent);
}

.cart-item-delete {
  position: absolute;
  top: 6px;
  right: 6px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  cursor: pointer;
  transition: color var(--transition);
}

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

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
}

.cart-total-row span:first-child {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.cart-total-price {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent);
  font-family: 'Orbitron', sans-serif;
  text-shadow: 0 0 10px var(--accent-glow);
}

.btn-checkout {
  width: 100%;
  margin-bottom: 0.6rem;
  background: var(--gradient-accent);
  color: #000;
}

.btn-checkout:hover {
  background: var(--gradient-accent);
  box-shadow: 0 6px 22px rgba(255, 153, 0, 0.4);
}

.btn-clear-cart {
  width: 100%;
}

/* ===== DYNAMIC "+ ADD PRODUCT" CARD ===== */
.add-product-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  border: 2px dashed var(--accent) !important;
  background: rgba(255, 153, 0, 0.02) !important;
  text-align: center;
  transition: all var(--transition);
}

.add-product-card:hover {
  background: rgba(255, 153, 0, 0.07) !important;
  border-style: solid !important;
  box-shadow: 0 0 20px var(--accent-glow) !important;
  transform: translateY(-6px);
}

.add-product-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 2rem;
}

.add-product-inner .plus-icon {
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
}

.add-product-inner .add-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== DIRECT HOMEPAGE ADMIN CONTROLS ===== */
.admin-card-actions {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  z-index: 100;
}

.card-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all var(--transition);
  cursor: pointer;
}

.card-action-btn:hover {
  transform: scale(1.15);
}

.card-action-btn.edit-btn:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.card-action-btn.delete-btn:hover {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}

.card-action-btn.move-up-btn:hover,
.card-action-btn.move-down-btn:hover {
  background: var(--info);
  color: #fff;
  border-color: var(--info);
}

@media (max-width: 480px) {
  .cart-btn-text {
    display: none;
  }

  .cart-btn-nav {
    padding: 0.55rem;
  }
}

/* ===== CUSTOM PLAYSTATION & PLAYSTATION PLUS CARD STYLES ===== */

/* PlayStation Card specific theme overrides */
.product-card.playstation-card {
  background: #0c0c12 !important;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.product-card.playstation-card:hover {
  border-color: #ff3b30 !important;
  box-shadow: 0 8px 30px rgba(255, 59, 48, 0.15) !important;
}

.product-card.playstation-card .product-card-title {
  color: #ff3b30 !important;
  white-space: normal !important;
  font-size: 0.95rem !important;
  line-height: 1.3 !important;
  margin-bottom: 0.4rem !important;
  height: 2.6rem !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.product-card.playstation-card .price-current {
  color: #ff3b30 !important;
  font-weight: 800 !important;
  font-size: 1.15rem !important;
}

/* Pre-order badge style */
.pre-order-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #ffcc00;
  color: #000;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  z-index: 5;
}

/* Variations Wrapper */
.card-variations {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.5rem;
  width: 100%;
}

.variation-btn-pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: #06060a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  padding: 0.45rem 0.9rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.variation-btn-pill:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.2);
  background: #0f0f15;
}

.variation-btn-pill.selected {
  background: #ff3b30 !important;
  color: #ffffff !important;
  border-color: #ff3b30 !important;
  box-shadow: 0 4px 12px rgba(255, 59, 48, 0.3);
}

.variation-btn-pill:disabled {
  color: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.03) !important;
  background: #050508 !important;
  cursor: not-allowed;
}

.variation-btn-pill .unavailable-text {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.25);
  font-weight: normal;
}

/* Direct Action Buttons on Card */
.card-actions-row {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.75rem;
  width: 100%;
}

.card-action-cart {
  background: #06060a;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-radius: 20px;
  padding: 0.45rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  transition: all 0.2s ease;
}

.card-action-cart:hover {
  background: #0f0f15;
  border-color: #ffffff;
}

.card-action-buy {
  background: var(--gradient-accent);
  border: none;
  color: #ffffff;
  border-radius: 20px;
  padding: 0.45rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  flex: 1.3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  transition: all 0.2s ease;
}

.card-action-buy:hover {
  background: var(--gradient-accent);
  box-shadow: 0 4px 12px rgba(255, 153, 0, 0.45);
  transform: translateY(-1px);
}

/* ===== PLAYSTATION PLUS SPECIFIC PREMIUM CARD ===== */
.product-card.ps-plus-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #FFF9E6 40%, #FFE680 100%) !important;
  color: #000000 !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.product-card.ps-plus-card:hover {
  border-color: #00439c !important;
  box-shadow: 0 8px 30px rgba(0, 67, 156, 0.15) !important;
}

.product-card.ps-plus-card .product-card-title {
  color: #000000 !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  height: 2.6rem !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.product-card.ps-plus-card .product-card-cat {
  color: #00439c !important;
  font-weight: 700;
}

.product-card.ps-plus-card .price-current {
  color: #000000 !important;
  font-weight: 900 !important;
  font-size: 1.15rem !important;
}

.product-card.ps-plus-card .variation-btn-pill {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #000000;
}

.product-card.ps-plus-card .variation-btn-pill:hover:not(:disabled) {
  background: #f5f5f5;
  border-color: rgba(0, 0, 0, 0.2);
}

.product-card.ps-plus-card .variation-btn-pill.selected {
  background: #00439c !important;
  color: #ffffff !important;
  border-color: #00439c !important;
  box-shadow: 0 4px 12px rgba(0, 67, 156, 0.3);
}

.product-card.ps-plus-card .variation-btn-pill:disabled {
  color: rgba(0, 0, 0, 0.2) !important;
  border-color: rgba(0, 0, 0, 0.05) !important;
  background: rgba(0, 0, 0, 0.02) !important;
}

.product-card.ps-plus-card .variation-btn-pill .unavailable-text {
  color: rgba(0, 0, 0, 0.25);
}

.product-card.ps-plus-card .card-action-cart {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: #000000;
}

.product-card.ps-plus-card .card-action-cart:hover {
  background: #f5f5f5;
}

.product-card.ps-plus-card .card-action-buy {
  background: #00439c;
  color: #ffffff;
}

.product-card.ps-plus-card .card-action-buy:hover {
  background: #00367e;
  box-shadow: 0 4px 12px rgba(0, 67, 156, 0.25);
}

/* ===== PUBG UC & FREE FIRE DIAMONDS COMPACT CARD STYLES ===== */
.pubg-uc-select,
.freefire-diamonds-select,
.giftcard-select {
  width: 100%;
  background: #06060a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.4rem;
  outline: none;
  cursor: pointer;
  transition: all var(--transition);
}

.pubg-uc-select:focus,
.freefire-diamonds-select:focus,
.giftcard-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

[data-theme="light"] .pubg-uc-select,
[data-theme="light"] .freefire-diamonds-select,
[data-theme="light"] .giftcard-select {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #000000;
}

/* ===== FOOTER & DEVELOPER CREDIT ===== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
  transition: background var(--transition), border-color var(--transition);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  text-align: center;
}

.footer p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.5;
}

.footer-store-link {
  color: var(--text-primary);
  font-weight: 600;
  transition: color var(--transition);
}

.footer-store-link:hover {
  color: var(--accent);
}

.developer-credit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.3px;
}

.developer-credit .dev-link {
  color: var(--text-secondary);
  font-weight: 600;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all var(--transition);
}

[data-theme="light"] .developer-credit .dev-link {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.05);
}

.developer-credit .dev-link-arrow {
  font-size: 0.75rem;
  transition: transform var(--transition);
}

.developer-credit .dev-link:hover {
  color: var(--accent);
  background: var(--accent-glow);
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  transform: translateY(-1px);
}

.developer-credit .dev-link:hover .dev-link-arrow {
  transform: translate(1px, -1px);
}

/* ===== PREMIUM CENTERED PRODUCT SEARCH BAR ===== */
.products-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  text-align: center;
  margin-bottom: 2.75rem;
  width: 100%;
}

.search-wrap {
  position: relative;
  max-width: 520px;
  width: 100%;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.search-wrap:hover,
.search-wrap:focus-within {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow), inset 0 0 10px rgba(255, 153, 0, 0.05);
  transform: translateY(-2px);
}

.search-wrap .search-icon {
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
  transition: color 0.3s ease;
  flex-shrink: 0;
}

.search-wrap:focus-within .search-icon {
  color: var(--accent);
}

.search-wrap input {
  background: none;
  border: none;
  padding: 0.85rem 0;
  width: 100%;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  outline: none;
  letter-spacing: 0.2px;
}

.search-wrap input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

/* Light theme support */
[data-theme="light"] .search-wrap {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .search-wrap:hover,
[data-theme="light"] .search-wrap:focus-within {
  background: rgba(0, 0, 0, 0.04);
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

[data-theme="light"] .search-wrap input {
  color: #000000;
}

/* Responsive Search positioning */
@media (max-width: 600px) {
  .products-header {
    gap: 1rem;
    margin-bottom: 2rem;
  }
  .search-wrap {
    max-width: 100%;
    border-radius: 12px;
  }
}

/* ===== PREMIUM DIRECT PURCHASE WHATSAPP BUTTON ===== */
.btn-whatsapp {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #2ae771, #16a090);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4), 0 0 10px rgba(37, 211, 102, 0.2);
  transform: translateY(-2px);
}

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

.btn-whatsapp svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.btn-whatsapp:hover svg {
  transform: scale(1.15) rotate(5deg);
}

/* Light mode support */
[data-theme="light"] .btn-whatsapp {
  color: #ffffff;
}

/* ===== PUBG CONFIG PANEL STYLE ===== */
.pubg-config-row {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  transition: all var(--transition);
}

.pubg-config-row:hover {
  border-color: var(--accent-hover);
  box-shadow: 0 4px 12px var(--accent-glow);
}

/* ===== DRAG AND DROP STYLES ===== */
.product-card[draggable="true"] {
  cursor: grab;
}

.product-card[draggable="true"]:active {
  cursor: grabbing;
}

.product-card.dragging {
  opacity: 0.4;
  border: 2px dashed var(--accent) !important;
  box-shadow: 0 0 15px var(--accent-glow) !important;
}

.product-card.drag-over {
  border: 2px solid var(--info) !important;
  transform: scale(1.02);
  box-shadow: 0 0 20px var(--info) !important;
  transition: all 0.2s ease;
}

/* ===== FLOATING USER TIPS BUTTON & LIGHTBOX MODAL ===== */
.tips-floating-btn {
  position: fixed;
  left: 2rem;
  bottom: 2rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 10px var(--accent-glow);
  transition: all var(--transition);
  outline: none;
}

.tips-floating-btn:hover {
  transform: translateY(-5px) scale(1.08);
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 20px var(--accent-glow);
}

.tips-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tips-svg-icon {
  width: 28px;
  height: 28px;
  fill: var(--accent);
  transition: transform 0.3s ease;
}

.tips-floating-btn:hover .tips-svg-icon {
  transform: rotate(15deg);
}

/* Pulsing outer indicator */
.tips-pulse {
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
  animation: tips-pulsate 2s infinite ease-out;
  pointer-events: none;
}

@keyframes tips-pulsate {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  50% {
    opacity: 0.4;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

/* Tips lightbox modal */
.tips-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  z-index: 10000;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 1.5rem;
}

.tips-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.tips-modal-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  background: rgba(10, 10, 16, 0.95);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 153, 0, 0.05);
  overflow: hidden;
  transform: scale(0.92);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.tips-modal-overlay.active .tips-modal-card {
  transform: scale(1);
}

.tips-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  font-size: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  z-index: 10;
}

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

.tips-modal-header {
  padding: 1.5rem;
  background: linear-gradient(180deg, rgba(255, 153, 0, 0.05) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
}

.tips-modal-header h3 {
  font-family: inherit;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  letter-spacing: 0.5px;
}

.tips-modal-header p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.tips-modal-body {
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  justify-content: flex-start;
  align-items: center;
  background: #020204;
}

.tips-modal-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.tips-custom-notice {
  width: 100%;
  text-align: center;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(255, 153, 0, 0.1) 0%, rgba(255, 102, 0, 0.05) 100%);
  border: 1px solid rgba(255, 153, 0, 0.2);
  border-radius: 12px;
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.6;
  text-shadow: 0 0 10px var(--accent-glow);
  letter-spacing: 0.3px;
  direction: rtl;
}

[data-theme="light"] .tips-custom-notice {
  background: linear-gradient(135deg, rgba(255, 153, 0, 0.08) 0%, rgba(255, 102, 0, 0.03) 100%);
  border-color: rgba(255, 153, 0, 0.3);
  color: #d35400;
}

/* Light Theme overrides */
[data-theme="light"] .tips-floating-btn {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 0 10px rgba(255, 153, 0, 0.1);
}

[data-theme="light"] .tips-modal-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .tips-modal-header {
  background: linear-gradient(180deg, rgba(255, 153, 0, 0.03) 0%, transparent 100%);
}

[data-theme="light"] .tips-modal-body {
  background: #f7f7fa;
}

[data-theme="light"] .tips-modal-close {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.05);
  color: #000000;
}

/* Mobile responsive scaling */
@media (max-width: 480px) {
  .tips-floating-btn {
    left: 1.25rem;
    bottom: 1.25rem;
    width: 48px;
    height: 48px;
  }
  .tips-svg-icon {
    width: 22px;
    height: 22px;
  }
  .tips-modal-card {
    max-height: 80vh;
  }
}

/* ===== SALAWAT BANNER ===== */
.salawat-banner {
  font-family: 'Cairo', sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  padding: 0.5rem 2.25rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
  letter-spacing: 0.5px;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.75), 0 0 20px rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: inline-block;
  direction: rtl;
  animation: salawat-glow 3s infinite ease-in-out;
  transition: all var(--transition);
}

.salawat-banner:hover {
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 255, 255, 0.4);
}

@keyframes salawat-glow {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), 0 0 25px rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.35);
  }
}

[data-theme="light"] .salawat-banner {
  color: #1a1a2e;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.01) 100%);
  border-color: rgba(0, 0, 0, 0.15);
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Mobile scaling for header banner */
@media (max-width: 480px) {
  .salawat-banner {
    font-size: 1.1rem;
    padding: 0.4rem 1.5rem;
    margin-bottom: 1rem;
  }
}