:root {
  --primary: #ff2e63;
  --primary-hover: #e01e4f;
  --secondary: #b91c1c;
  --success: #10b981;
  --danger: #ef4444;
  --bg: #090d16;
  --card: #121824;
  --card-border: rgba(255, 46, 99, 0.25);
  --text: #ffffff;
  --muted: #94a3b8;
  --border: rgba(255, 46, 99, 0.3);
  --radius: 14px;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow: 0 8px 25px rgba(255, 46, 99, 0.25);
}

* { box-sizing: border-box; }

html, body {
  background-color: #090d16 !important;
  background: #090d16 !important;
  color: var(--text) !important;
  font-family: 'Segoe UI', system-ui, 'Noto Sans Bengali', sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

body { padding-bottom: 80px; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; }

/* Global Clean White Text (High Visibility) */
p, span, h1, h2, h3, h4, h5, h6, label, div, li, small {
  color: #ffffff;
}

.text-muted {
  color: var(--muted) !important;
}

/* ==========================================
   Header & Navigation
   ========================================== */
.site-header {
  background: rgba(18, 24, 36, 0.95) !important;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.brand-text {
  font-weight: 800;
  font-size: 1.2rem;
  background: linear-gradient(135deg, #ff2e63, #ff6b81);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  text-shadow: 0 0 10px rgba(255, 46, 99, 0.5);
}

.btn-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #1a2234;
  color: #fff !important;
  border: 1px solid var(--border);
}

.notif-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--primary);
  color: #fff !important;
  border-radius: 10px;
  font-size: 10px;
  padding: 1px 5px;
  font-weight: 700;
}

/* Notice Bar */
.notice-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px;
  padding: 8px 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.notice-tag {
  background: var(--primary);
  color: #fff !important;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.notice-scroll { flex: 1; overflow: hidden; white-space: nowrap; }
.notice-scroll .notice-item {
  display: inline-block;
  margin-right: 28px;
  animation: marquee 30s linear infinite;
  font-size: 13px;
  color: #ffffff !important;
}

@keyframes marquee {
  from { transform: translateX(100%); }
  to { transform: translateX(-100%); }
}

/* Banner Slider */
.banner-slider .banner-img {
  height: auto;
  max-height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

@media(min-width: 768px) {
  .banner-slider .banner-img { max-height: 400px; }
}

.banner-cta {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: var(--primary);
  color: #fff !important;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 0 10px rgba(255, 46, 99, 0.6);
}

/* Category Pills */
.category-tabs { scrollbar-width: none; }
.category-tabs::-webkit-scrollbar { display: none; }

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  border-radius: 20px;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  color: #ffffff !important;
  transition: all 0.2s ease;
}

.cat-pill.active, .cat-pill:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
  color: #ffffff !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 12px rgba(255, 46, 99, 0.5);
}

.cat-pill img { width: 20px; height: 20px; object-fit: contain; }

/* ==========================================
   Product Grid & 3D Cards
   ========================================== */
.product-grid .product-card {
  background: var(--card) !important;
  border-radius: var(--radius);
  border: 1px solid var(--border) !important;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease, border-color 0.4s ease !important;
}

.product-grid .product-card:hover {
  transform: perspective(1000px) translateY(-8px) rotateX(2deg) rotateY(-2deg) scale(1.02) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 20px 40px rgba(255, 46, 99, 0.35), 0 0 25px rgba(255, 46, 99, 0.2) !important;
}

.pc-img-wrap {
  display: block;
  position: relative;
  aspect-ratio: 1/1;
  background: #0f1522;
  overflow: hidden;
}

.pc-img-wrap img { width: 100%; height: 100%; object-fit: cover; }

.pc-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--primary);
  color: #fff !important;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: 0 0 8px rgba(255, 46, 99, 0.6);
}

.pc-body { padding: 12px; display: flex; flex-direction: column; flex: 1; }

.pc-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
  min-height: 34px;
  color: #ffffff !important;
}

.pc-price {
  color: var(--success) !important;
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 8px;
}

.pc-actions { display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
.pc-actions .btn { font-size: 11px; padding: 7px 10px; font-weight: 700; border-radius: 8px; }

/* 3D Action Buttons */
.btn-primary, [type="submit"] {
  background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
  border: 0 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(255, 46, 99, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
  transition: all 0.3s ease !important;
}

.btn-primary:hover, [type="submit"]:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 30px rgba(255, 46, 99, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
  filter: brightness(1.1);
}

.btn-outline-primary {
  color: var(--primary) !important;
  border: 1px solid var(--primary) !important;
  background: rgba(255, 46, 99, 0.08) !important;
}

.btn-outline-primary:hover {
  background: var(--primary) !important;
  color: #ffffff !important;
}

/* ==========================================
   Product Detail & 3D Packages
   ========================================== */
.product-hero {
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

.product-hero img { width: 100%; border-radius: 10px; }
.product-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 6px; color: #ffffff !important; }
.feature-list { list-style: none; padding-left: 0; }
.feature-list li { padding: 4px 0; font-size: 14px; color: #e2e8f0 !important; }

/* Package Grid */
.package-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media(min-width: 600px) { .package-grid { grid-template-columns: repeat(3, 1fr); } }

.package-card {
  background: #161e2e !important;
  border: 1.5px solid var(--border) !important;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  overflow: hidden;
  position: relative;
}

.package-card input { display: none; }

.package-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 25px rgba(255, 46, 99, 0.25);
}

.package-card:has(input:checked),
.package-card.active {
  border-color: var(--primary) !important;
  background: rgba(255, 46, 99, 0.18) !important;
  box-shadow: 0 0 18px rgba(255, 46, 99, 0.5) !important;
}

.package-card.disabled { opacity: 0.45; cursor: not-allowed; }
.pc-inner { padding: 12px; text-align: center; }
.pc-name { font-weight: 800; font-size: 13px; color: #ffffff !important; }
.pc-dur { font-size: 11px; color: var(--muted) !important; margin: 2px 0 6px; }
.pc-price-tag { color: var(--success) !important; font-weight: 800; font-size: 16px; }

.pc-status { display: inline-block; margin-top: 4px; font-size: 10px; padding: 2px 6px; border-radius: 6px; font-weight: 700; }
.pc-status.s-stock_out { background: rgba(239, 68, 68, 0.2); color: #f87171 !important; border: 1px solid #ef4444; }
.pc-status.s-limited { background: rgba(245, 158, 11, 0.2); color: #fbbf24 !important; border: 1px solid #f59e0b; }
.pc-status.s-coming_soon { background: rgba(99, 102, 241, 0.2); color: #818cf8 !important; border: 1px solid #6366f1; }

.pc-badge2 {
  position: absolute;
  top: 6px;
  right: 6px;
  background: var(--primary);
  color: #fff !important;
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 700;
}

/* ==========================================
   Quantity Selector Fix
   ========================================== */
.qty-selector {
  display: flex;
  border: 1.5px solid var(--border) !important;
  border-radius: 10px;
  overflow: hidden;
  background: #161e2e !important;
}

.qty-selector .qty-btn {
  background: var(--primary) !important;
  color: #ffffff !important;
  border: 0;
  width: 40px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

.qty-selector input,
input[type="number"].qty {
  background: #0d121d !important;
  color: #ffffff !important;
  width: 60px;
  text-align: center;
  border: 0;
  font-weight: 800 !important;
  font-size: 16px;
}

.live-total { font-weight: 800; color: var(--success) !important; font-size: 20px; }

/* ==========================================
   Modals & Checkout
   ========================================== */
.setup-modal, .modal-content {
  background: var(--card) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 2px solid rgba(255, 46, 99, 0.4) !important;
  border-radius: 18px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(255, 46, 99, 0.25) !important;
  color: #ffffff !important;
}

.setup-modal .modal-header { border-bottom: 0; padding-bottom: 0; }
.setup-modal .modal-title { font-weight: 800; color: #ffffff !important; }

.setup-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  background: #161e2e !important;
  border: 1px solid var(--border) !important;
  margin-bottom: 8px;
  color: #ffffff !important;
  font-weight: 600;
  transition: all 0.2s;
}

.setup-btn:hover {
  background: rgba(255, 46, 99, 0.15) !important;
  border-color: var(--primary) !important;
}

.setup-btn .icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff !important;
  font-size: 18px;
  flex-shrink: 0;
}

.setup-btn .sub { font-size: 12px; color: var(--muted) !important; font-weight: 400; }
.modal-backdrop.show { backdrop-filter: blur(6px); opacity: 0.8; }

/* Support FAB Floating Button */
.support-fab {
  position: fixed;
  bottom: 88px;
  z-index: 99;
  background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
  color: #fff !important;
  padding: 10px 16px;
  border-radius: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 6px 20px rgba(255, 46, 99, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.support-fab:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 30px rgba(255, 46, 99, 0.7) !important;
}

.support-right { right: 14px; }
.support-left { left: 14px; }
.support-fab i { font-size: 18px; }
.support-label { white-space: nowrap; }

/* Bottom Nav (Mobile) */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(18, 24, 36, 0.98) !important;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  padding: 8px 4px env(safe-area-inset-bottom);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
  z-index: 100;
}

.bn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--muted) !important;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  min-width: 60px;
}

.bn-item i { font-size: 20px; }
.bn-item.active { color: var(--primary) !important; }

@media(min-width: 768px) {
  .bottom-nav { display: none; }
  body { padding-bottom: 0; }
  .support-fab { bottom: 20px; }
}

/* Checkout Summary */
.checkout-summary .cs-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; color: #ffffff !important; }
.cs-total { font-size: 18px; color: var(--success) !important; }

.pay-methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media(min-width: 640px) { .pay-methods { grid-template-columns: repeat(3, 1fr); } }

.pay-method {
  cursor: pointer;
  border: 1.5px solid var(--border) !important;
  border-radius: 12px;
  padding: 10px;
  background: #161e2e !important;
  display: block;
}

.pay-method input { display: none; }
.pay-method:has(input:checked) { border-color: var(--primary) !important; background: rgba(255, 46, 99, 0.15) !important; }

.pm-inner { display: flex; flex-direction: column; align-items: center; gap: 4px; font-weight: 700; font-size: 12px; color: #ffffff !important; }
.pm-inner img { max-height: 32px; }
.pm-inner i { font-size: 22px; color: var(--primary) !important; }
.pm-inner small { color: var(--muted) !important; font-weight: 400; }

/* Empty States */
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted) !important; }
.empty-state i { font-size: 52px; opacity: 0.5; display: block; margin-bottom: 12px; }

/* Order Cards & Stat Items */
.order-card {
  display: block;
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px;
  padding: 14px;
  box-shadow: var(--shadow-sm);
  color: #ffffff !important;
  transition: transform 0.2s;
}

.order-card:hover { transform: translateY(-2px); border-color: var(--primary) !important; }

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 22px;
}

.stat { background: #161e2e !important; border: 1px solid var(--border) !important; padding: 12px; border-radius: 12px; }
.stat-num { font-weight: 800; color: var(--primary) !important; font-size: 16px; }
.stat-lbl { font-size: 11px; color: var(--muted) !important; margin-top: 2px; }

/* Footer */
.site-footer {
  background: var(--card) !important;
  margin-top: 30px;
  border-top: 1px solid var(--border) !important;
  text-align: center;
  font-size: 13px;
  color: #ffffff !important;
  padding: 20px 0;
}

/* Product Full Description Card - Black Cyber Theme */
.product-description-card, 
.card:has(.product-description) {
  background: #121824 !important;
  border: 1.5px solid rgba(255, 46, 99, 0.35) !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 46, 99, 0.2) !important;
  backdrop-filter: blur(12px);
}

.product-description-card .card-body,
.card:has(.product-description) .card-body {
  background: transparent !important;
  color: #ffffff !important;
}

/* Description Text High Visibility */
.product-description, 
.product-description p, 
.product-description span, 
.product-description li {
  color: #ffffff !important;
}

/* ==========================================
   Notifications Page - Cyberpunk Dark Theme
   ========================================== */
.notifications-page,
.notification-card,
.list-group-item:has(.bi-bell),
.card:has(.notification-list) {
  background: var(--card) !important;
  border: 1.5px solid var(--border) !important;
  border-radius: 14px !important;
  color: #ffffff !important;
}

/* Notification List Items */
.notification-item, 
.list-group-item-action {
  background: #121824 !important;
  color: #ffffff !important;
  border-color: var(--border) !important;
  transition: all 0.2s ease;
}

.notification-item:hover,
.list-group-item-action:hover {
  background: rgba(255, 46, 99, 0.12) !important;
  border-color: var(--primary) !important;
  color: #ffffff !important;
}

/* Unread Notification Highlight */
.notification-item.unread,
.list-group-item.unread {
  background: rgba(255, 46, 99, 0.08) !important;
  border-left: 4px solid var(--primary) !important;
}

/* Notification Text & Meta */
.notification-title, .notif-title {
  color: #ffffff !important;
  font-weight: 700;
}

.notification-time, .notif-time {
  color: var(--muted) !important;
  font-size: 12px;
}