/* ==========================================================================
   Galaxy Store — Luxury Emerald Green (#1d7048) Dark Theme CSS
   ========================================================================== */

:root {
  /* Dark Luxury Backgrounds with Deep Emerald Undertone */
  --bg-main: #060b08;
  --bg-surface: #0a130e;
  --bg-card: rgba(11, 22, 15, 0.88);
  --bg-card-hover: rgba(16, 33, 23, 0.96);
  
  /* Borders */
  --border-subtle: rgba(29, 112, 72, 0.22);
  --border-card: rgba(29, 112, 72, 0.35);
  --border-focus: #2ecc71;
  --border-glow: rgba(46, 204, 113, 0.5);
  
  /* Brand Green Palette (#1d7048) */
  --primary-brand: #1d7048;
  --primary-blue: #1d7048; /* For backward-compatibility */
  --primary-green: #1d7048;
  --primary-dark: #134e2f;
  
  --sky-blue: #2ecc71; /* Accent vibrant green */
  --emerald-bright: #2ecc71;
  --emerald-light: #34d399;
  --cyan-bright: #34d399;
  
  --blue-glow: rgba(29, 112, 72, 0.45);
  --emerald-glow: rgba(29, 112, 72, 0.45);
  --emerald-glow-bright: rgba(46, 204, 113, 0.35);
  
  /* Typography */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  /* Status */
  --accent-green: #2ecc71;
  --danger-red: #ef4444;
  --warning-amber: #f59e0b;
  
  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --font-family: 'Cairo', 'Tajawal', 'Outfit', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-family);
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  direction: rtl;
  line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: rgba(29, 112, 72, 0.35);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--emerald-bright);
}

/* Background Ambient Glows & Dots */
.bg-dots-pattern {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(29, 112, 72, 0.15) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}
.glow-bg {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.38;
}
.glow-blue-1, .glow-green-1 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #1d7048, transparent);
  top: -150px;
  right: -100px;
}
.glow-blue-2, .glow-green-2 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #14532d, #092c17, transparent);
  bottom: 5%;
  left: -100px;
}

.store-wrapper {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 24px 36px 60px;
  position: relative;
  z-index: 1;
}

/* Top Banner Card */
.store-banner-container {
  width: 100%;
  margin-bottom: 24px;
}
.store-banner {
  width: 100%;
  aspect-ratio: 1920 / 640;
  max-height: 360px;
  min-height: 200px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.9), 0 0 35px var(--blue-glow);
  background: #040805;
}
.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}
.store-banner:hover .banner-img {
  transform: scale(1.02);
}
.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(6, 11, 8, 0.85) 100%);
  pointer-events: none;
}

/* Store Profile Header */
.store-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.store-profile-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 780px;
}
.store-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.store-avatar {
  width: 66px;
  height: 66px;
  background: #0a130e;
  border: 2px solid #2ecc71;
  border-radius: 18px;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(29, 112, 72, 0.4);
}
.store-avatar:hover {
  /* بدون أي انيميشن أو دوران - ثابت وهادئ */
}
.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.store-name {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #ffffff;
}
.store-name span {
  color: #2ecc71;
}
.store-tag {
  display: block;
  font-size: 13px;
  color: #a7f3d0;
}
.store-description {
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.8;
}

/* Decorative Line Divider (خط فاصل تزييني - ثابت بدون انيميشن) */
.decorative-line-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 28px 0 34px;
  position: relative;
  overflow: hidden;
}
.decorative-line-img {
  max-width: 100%;
  width: 100%;
  height: auto;
  max-height: 44px;
  object-fit: contain;
  opacity: 0.85;
}

.btn-admin-link {
  background: rgba(29, 112, 72, 0.12);
  border: 1px solid var(--border-card);
  color: #2ecc71;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}
.btn-admin-link:hover {
  background: rgba(29, 112, 72, 0.28);
  border-color: #2ecc71;
  box-shadow: 0 0 15px var(--blue-glow);
  transform: translateY(-2px);
}

/* Section Title */
.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 14px;
}
.section-title-row h2 {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title-row h2 i {
  color: #2ecc71;
}
.live-badge {
  font-size: 12px;
  background: rgba(29, 112, 72, 0.18);
  border: 1px solid rgba(46, 204, 113, 0.4);
  color: #2ecc71;
  padding: 4px 12px;
  border-radius: 20px;
  box-shadow: 0 0 12px rgba(29, 112, 72, 0.25);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 360px));
  justify-content: center;
  gap: 24px;
  margin-bottom: 40px;
}

/* Product Card */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  backdrop-filter: blur(12px);
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: #2ecc71;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 25px var(--blue-glow);
  background: var(--bg-card-hover);
}

.product-image-container {
  width: 100%;
  height: 200px;
  background: #050b07;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}
.product-real-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(46, 204, 113, 0.3));
}
.product-logo-graphic {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.product-logo-graphic i {
  font-size: 52px;
  color: #2ecc71;
  filter: drop-shadow(0 0 15px var(--blue-glow));
  margin-bottom: 8px;
}
.product-logo-graphic span {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #2ecc71;
}

/* Product Badges */
.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  z-index: 2;
}
.badge-available {
  background: rgba(29, 112, 72, 0.25);
  border: 1px solid #2ecc71;
  color: #2ecc71;
  box-shadow: 0 0 10px rgba(29, 112, 72, 0.35);
}
.badge-out {
  background: rgba(100, 116, 139, 0.2);
  border: 1px solid #64748b;
  color: #94a3b8;
}

.product-content {
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-grow: 1;
}
.product-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}
.product-desc-short {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-price {
  font-size: 20px;
  font-weight: 900;
  color: #2ecc71;
  margin-bottom: 16px;
  text-shadow: 0 0 12px rgba(46, 204, 113, 0.35);
}

/* Action Buttons */
.btn-buy {
  width: 100%;
  background: linear-gradient(135deg, #134e2f 0%, #1d7048 50%, #258f5c 100%);
  color: #ffffff;
  border: 1px solid rgba(46, 204, 113, 0.35);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(29, 112, 72, 0.4);
}
.btn-buy:hover {
  background: linear-gradient(135deg, #1d7048 0%, #279e65 50%, #2ecc71 100%);
  border-color: #2ecc71;
  box-shadow: 0 6px 22px rgba(46, 204, 113, 0.55);
  transform: translateY(-2px);
}
.btn-out {
  background: #141c17;
  border: 1px solid #2d3e33;
  color: #64748b;
  cursor: not-allowed;
  box-shadow: none;
}

/* Loading State */
.loading-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: var(--text-muted);
  font-size: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.loading-state i {
  font-size: 32px;
  color: #2ecc71;
}

/* Store Footer */
.store-footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 36px;
  margin-top: 20px;
}
.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.footer-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(46, 204, 113, 0.4));
}
.footer-brand {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
}
.footer-brand span {
  color: #2ecc71;
}
.footer-about p {
  color: #94a3b8;
  font-size: 12.5px;
  line-height: 1.8;
}

.footer-links h4, .footer-payments h4 {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 14px;
}
.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: #2ecc71;
}

.payment-badges-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pay-badge {
  background: #ffffff;
  color: #0f172a;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 32px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}
.pay-badge i { font-size: 18px; }
.pay-badge.mada-badge {
  font-family: sans-serif;
  font-size: 12px;
  color: #00847f;
  font-weight: 900;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(29, 112, 72, 0.15);
  font-size: 12px;
  color: #64748b;
  flex-wrap: wrap;
  gap: 10px;
}
.tampay-logo {
  color: #2ecc71;
}

/* Modal Core Styles */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 5, 0.88);
  backdrop-filter: blur(12px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}
.modal-card {
  background: #0a140f;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px var(--blue-glow);
  transform: scale(0.96);
  transition: var(--transition);
}
.modal-backdrop.open .modal-card {
  transform: scale(1);
}
.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}
.modal-icon {
  width: 40px;
  height: 40px;
  background: rgba(29, 112, 72, 0.2);
  border: 1px solid #2ecc71;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2ecc71;
  font-size: 18px;
}
.modal-title-group h3 {
  font-size: 18px;
  font-weight: 800;
}
.modal-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  display: block;
}
.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  transition: var(--transition);
}
.modal-close:hover { color: white; }
.modal-body { padding: 24px; }

/* Admin Modal Specifics */
.admin-lock-banner {
  text-align: center;
  padding: 20px 0;
  margin-bottom: 16px;
}
.admin-lock-banner i {
  font-size: 42px;
  color: #2ecc71;
  margin-bottom: 12px;
}
.admin-lock-banner h4 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 4px;
}
.admin-lock-banner p {
  font-size: 13px;
  color: var(--text-muted);
}

.admin-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}
.admin-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.status-dot {
  width: 10px;
  height: 10px;
  background: #2ecc71;
  border-radius: 50%;
  box-shadow: 0 0 10px #2ecc71;
}

.admin-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.admin-tab-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.admin-tab-btn.active, .admin-tab-btn:hover {
  background: rgba(29, 112, 72, 0.25);
  border-color: #2ecc71;
  color: #ffffff;
}

/* Image Upload Dropzone */
.file-input-hidden {
  display: none;
}
.upload-dropzone {
  border: 2px dashed var(--border-card);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: rgba(0, 0, 0, 0.25);
}
.upload-dropzone:hover {
  border-color: #2ecc71;
  background: rgba(29, 112, 72, 0.12);
}
.upload-dropzone i {
  font-size: 32px;
  color: #2ecc71;
  margin-bottom: 8px;
}
.upload-dropzone p {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
}
.upload-dropzone small {
  font-size: 11px;
  color: var(--text-dim);
}

.image-preview-box {
  position: relative;
  margin-top: 10px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  max-height: 140px;
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #040805;
}
.image-preview-box img {
  max-height: 130px;
  object-fit: contain;
}
.btn-remove-img {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--danger-red);
  color: white;
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
}

/* Form Styles */
.form-group {
  margin-bottom: 16px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #e2e8f0;
}
.form-label .req { color: var(--danger-red); }
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: #ffffff;
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: #2ecc71;
  box-shadow: 0 0 12px var(--blue-glow);
}
.form-select option {
  background: #0a140f;
  color: white;
}
.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.btn-primary-blue {
  background: linear-gradient(135deg, #134e2f 0%, #1d7048 50%, #258f5c 100%);
  color: white;
  border: 1px solid rgba(46, 204, 113, 0.35);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-primary-blue:hover {
  background: linear-gradient(135deg, #1d7048 0%, #279e65 50%, #2ecc71 100%);
  border-color: #2ecc71;
  box-shadow: 0 0 18px var(--blue-glow);
}
.btn-glass-sm {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  cursor: pointer;
}
.btn-glass-sm:hover { color: white; border-color: var(--danger-red); }
.w-100 { width: 100%; }

/* Admin Product List Table */
.admin-products-table {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 400px;
  overflow-y: auto;
}
.admin-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  gap: 12px;
}
.admin-item-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.admin-item-thumb {
  width: 44px;
  height: 44px;
  background: #040805;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.admin-item-thumb img { width: 100%; height: 100%; object-fit: contain; }
.admin-item-thumb i { color: #2ecc71; font-size: 20px; }
.admin-item-details strong { display: block; font-size: 14px; }
.admin-item-details span { font-size: 13px; color: #2ecc71; }
.admin-item-actions {
  display: flex;
  gap: 8px;
}
.btn-action-edit {
  background: rgba(29, 112, 72, 0.2);
  border: 1px solid #2ecc71;
  color: #2ecc71;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
}
.btn-action-delete {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid var(--danger-red);
  color: var(--danger-red);
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
}

/* Alerts & Messages */
.alert-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 14px;
}
.alert-msg {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 14px;
}
.alert-msg.success {
  background: rgba(29, 112, 72, 0.2);
  border: 1px solid #2ecc71;
  color: #6ee7b7;
}

/* Redirect Overlay */
.redirect-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 5, 0.94);
  backdrop-filter: blur(14px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.redirect-overlay.active {
  opacity: 1;
  visibility: visible;
}
.redirect-card {
  background: #0a140f;
  border: 1px solid #2ecc71;
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 35px var(--blue-glow);
}
.redirect-spinner {
  font-size: 44px;
  color: #2ecc71;
  margin-bottom: 18px;
  text-shadow: 0 0 20px var(--blue-glow);
}
.redirect-card h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #ffffff;
}
.redirect-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.redirect-card p strong {
  color: #2ecc71;
}
.redirect-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(29, 112, 72, 0.2);
  border: 1px solid var(--border-card);
  color: #2ecc71;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: #0c1b12;
  border: 1px solid #2ecc71;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(29, 112, 72, 0.35);
}

@media (max-width: 768px) {
  .store-banner { aspect-ratio: 16 / 9; max-height: 220px; }
  .footer-container { grid-template-columns: 1fr; gap: 30px; }
  .form-row { grid-template-columns: 1fr; }
}

/* Discord Widget Styles */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn-discord-link {
  background: linear-gradient(135deg, #134e2f 0%, #1d7048 50%, #258f5c 100%);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(46, 204, 113, 0.35);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(29, 112, 72, 0.35);
}
.btn-discord-link:hover {
  background: linear-gradient(135deg, #1d7048 0%, #279e65 50%, #2ecc71 100%);
  border-color: #2ecc71;
  box-shadow: 0 6px 20px rgba(46, 204, 113, 0.5);
  transform: translateY(-2px);
}
.btn-discord-link i {
  color: #5865F2;
  background: #ffffff;
  border-radius: 50%;
  padding: 3px;
  font-size: 11px;
}
.discord-connected-box {
  background: rgba(29, 112, 72, 0.18);
  border: 1px solid rgba(46, 204, 113, 0.4);
  padding: 6px 14px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 10px;
}
.discord-avatar-mini {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid #2ecc71;
  object-fit: cover;
}
.discord-user-info {
  display: flex;
  flex-direction: column;
}
.discord-name {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
}
.discord-verified {
  font-size: 10.5px;
  color: #34d399;
}
.btn-disconnect {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
}
.btn-disconnect:hover {
  color: var(--danger-red);
}

.btn-discord-oauth {
  background: #5865F2;
  color: #ffffff;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(88, 101, 242, 0.35);
}
.btn-discord-oauth:hover {
  background: #4752c4;
  box-shadow: 0 6px 20px rgba(88, 101, 242, 0.5);
  transform: translateY(-2px);
}

.divider-text {
  text-align: center;
  position: relative;
  margin: 22px 0 18px;
}
.divider-text::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-subtle);
}
.divider-text span {
  position: relative;
  background: #0a140f;
  padding: 0 12px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   Easy Store Layout & Sidebar Styles (Matches Reference Screenshot)
   ========================================================================== */

/* Top Navbar */
.easy-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 24px;
}
.easy-nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.easy-brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.easy-brand-text {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
}
.easy-brand-text span {
  color: #10b981;
}
.easy-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lang-switcher {
  display: flex;
  background: #16191b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 3px;
  gap: 2px;
}
.lang-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.lang-btn.active {
  background: #14b8a6;
  color: #ffffff;
}
.btn-admin-gear {
  background: #16191b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-admin-gear:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

/* Promotional Banner */
.promo-banner-container {
  margin-bottom: 24px;
}
.promo-banner-card {
  background: radial-gradient(circle at 10% 50%, rgba(20, 184, 166, 0.25) 0%, rgba(13, 26, 20, 0.95) 70%);
  border: 1px solid rgba(20, 184, 166, 0.3);
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8), 0 0 25px rgba(20, 184, 166, 0.15);
}
.promo-title {
  color: #2dd4bf;
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 6px;
}
.promo-subtitle {
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.6;
  max-width: 800px;
}

/* Filter & Categories Toolbar */
.filter-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.view-toggles {
  display: flex;
  gap: 6px;
}
.view-btn {
  background: #16191b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.view-btn.active {
  background: #14b8a6;
  color: #ffffff;
  border-color: #14b8a6;
}
.category-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.cat-pill {
  background: #16191b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.cat-pill:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}
.cat-pill.active {
  background: #14b8a6;
  color: #ffffff;
  border-color: #14b8a6;
}
.search-box-pill {
  display: flex;
  align-items: center;
  background: #16191b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 6px 14px;
  gap: 8px;
  min-width: 170px;
}
.search-box-pill .search-icon {
  color: #64748b;
  font-size: 13px;
}
.search-box-pill input {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 13px;
  width: 100%;
  direction: ltr;
}
.search-box-pill input::placeholder {
  color: #64748b;
}

/* ==========================================================================
   Main Store Layout & Products Showcase (Clean & Focused)
/* ==========================================================================
   Main Store Layout & Products Showcase (Clean, Simple & Focused)
   ========================================================================== */
.store-top-line-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 28px 0 34px;
  position: relative;
  overflow: hidden;
}
.store-top-line-img {
  max-width: 100%;
  width: 100%;
  height: auto;
  max-height: 44px;
  object-fit: contain;
  opacity: 0.85;
}

.store-main-layout {
  width: 100%;
  max-width: 100%;
  margin: 0 auto 40px;
  padding: 0;
}

.products-section {
  width: 100%;
}

.products-grid-view {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  width: 100%;
}
.products-grid-view.list-mode {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Navbar Cart Button & User Badge */
.nav-cart-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(29, 112, 72, 0.2);
  border: 1px solid rgba(46, 204, 113, 0.4);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}
.nav-cart-btn:hover {
  background: rgba(46, 204, 113, 0.25);
  border-color: #2ecc71;
  box-shadow: 0 4px 16px rgba(46, 204, 113, 0.25);
  transform: translateY(-1px);
}
.nav-cart-btn i {
  color: #2ecc71;
  font-size: 14px;
}
.nav-cart-badge {
  background: #272d32;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 900;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}
.nav-cart-badge.has-items {
  background: #2ecc71;
  color: #05160d;
  box-shadow: 0 0 10px rgba(46, 204, 113, 0.6);
}

.nav-user-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(88, 101, 242, 0.15);
  border: 1px solid rgba(88, 101, 242, 0.35);
  border-radius: 20px;
  padding: 4px 12px 4px 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.nav-user-badge:hover {
  background: rgba(88, 101, 242, 0.25);
  border-color: #5865f2;
}
.nav-avatar-img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #5865f2;
}
.nav-user-name {
  color: #f1f5f9;
  font-size: 12.5px;
  font-weight: 700;
}

/* Floating Quick Cart Button */
.floating-cart-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1d7048, #2ecc71);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8), 0 0 25px rgba(46, 204, 113, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  cursor: pointer;
  z-index: 990;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}
.floating-cart-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.9), 0 0 35px rgba(46, 204, 113, 0.7);
}
.floating-cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #272d32;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 900;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #060b08;
  transition: all 0.25s ease;
}
.floating-cart-badge.has-items {
  background: #ef4444;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.7);
}

/* Products Grid (3 items per row on desktop, wrapping downwards) */
.products-grid-view {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  width: 100%;
  align-items: stretch;
}

.products-grid-view:has(> .easy-product-card:only-child) {
  grid-template-columns: minmax(0, 360px);
  justify-content: center;
}

.products-grid-view .loading-state,
.products-grid-view .no-products-msg {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
}

@media (max-width: 1280px) {
  .products-grid-view {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 640px) {
  .products-grid-view {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Compact, Calm & Transparent Glass Product Card */
.easy-product-card {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: rgba(13, 20, 16, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 24px 20px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.2s ease, background-color 0.2s ease;
  min-height: 380px;
}
.easy-product-card::before {
  display: none;
}
.easy-product-card:hover {
  background: rgba(17, 26, 21, 0.65);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45);
}
.easy-product-card.selected-card {
  background: rgba(17, 26, 21, 0.7);
  border-color: rgba(46, 204, 113, 0.35);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45);
}

.card-top-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-bottom: 8px;
}
.card-badges-row {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.badge-pill {
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}
.badge-pill.new {
  background: #06b6d4;
  color: #ffffff;
}
.badge-pill.max {
  background: #ef4444;
  color: #ffffff;
}
.badge-pill.pro {
  background: #f59e0b;
  color: #000000;
}
.badge-pill.vip {
  background: #8b5cf6;
  color: #ffffff;
}
.save-pill {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #ef4444;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 8px;
}

.card-icon-graphic {
  width: 100px;
  height: 100px;
  margin: 8px auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-prod-img {
  max-height: 96px;
  max-width: 96px;
  object-fit: contain;
}

.card-product-title {
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.35;
}

.card-price-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}
.price-stack {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.price-old {
  color: #64748b;
  text-decoration: line-through;
  font-size: 14px;
  font-weight: 500;
}
.price-current {
  color: #34d399;
  font-size: 22px;
  font-weight: 800;
}

.card-action-wrap {
  width: 100%;
  margin-top: auto;
  padding-top: 10px;
}
.btn-card-action {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-card-action.buy-now {
  background: #1d7048;
  color: #ffffff;
  box-shadow: none;
}
.btn-card-action.buy-now:hover {
  background: #248b59;
  opacity: 0.96;
}
.btn-card-action.in-cart {
  background: rgba(46, 204, 113, 0.1);
  border: 1px solid rgba(46, 204, 113, 0.25);
  color: #34d399;
}
.btn-card-action.in-cart:hover {
  background: rgba(46, 204, 113, 0.18);
}
.btn-card-action.owned {
  background: rgba(22, 33, 27, 0.85);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #f1f5f9;
  cursor: not-allowed;
  box-shadow: none;
}
.btn-card-action.owned i {
  color: #fbbf24;
}
.btn-card-action.owned:hover {
  background: rgba(22, 33, 27, 0.95);
  border-color: rgba(251, 191, 36, 0.5);
}
.btn-card-action.out-stock {
  background: #272d32;
  color: #94a3b8;
  cursor: not-allowed;
}

.easy-product-card.owned-card {
  border-color: rgba(251, 191, 36, 0.28);
}
.easy-product-card.owned-card:hover {
  border-color: rgba(251, 191, 36, 0.45);
}

.owned-pill {
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fbbf24;
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.owned-pill i {
  font-size: 10px;
}

/* ==========================================================================
   Slide-Out Cart Drawer (قائمة السلة الخفيفة على اليمين دون فتح صفحة جديدة)
   ========================================================================== */
.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 5, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.cart-drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  left: auto;
  width: 100%;
  max-width: 380px;
  background: #09120c;
  border-left: 1px solid rgba(46, 204, 113, 0.25);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.85), 0 0 25px rgba(29, 112, 72, 0.15);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
.cart-drawer.open {
  transform: translateX(0);
}

/* Drawer Header */
.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: #0c1610;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.cart-drawer-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 16.5px;
  font-weight: 800;
}
.cart-drawer-title i {
  color: #2ecc71;
  font-size: 17px;
}
.btn-drawer-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-drawer-close:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #ef4444;
  transform: rotate(90deg);
}

/* Drawer Body */
.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
}

/* Section titles inside drawer */
.drawer-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f1f5f9;
  font-size: 13.5px;
  font-weight: 800;
  margin: 16px 0 10px;
}
.drawer-section-title i {
  color: #2ecc71;
  font-size: 14px;
}

/* User Discord Card inside Drawer */
.sidebar-user-card {
  background: #101a13;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 14px;
}
.drawer-auth-prompt {
  margin-bottom: 10px;
}
.auth-prompt-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(88, 101, 242, 0.15);
  color: #5865f2;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 6px;
}
.drawer-auth-prompt p {
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.45;
}
.btn-discord-login {
  width: 100%;
  background: #5865f2;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.btn-discord-login:hover {
  background: #4752c4;
  box-shadow: 0 4px 15px rgba(88, 101, 242, 0.35);
}

.sidebar-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-avatar-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #5865f2;
}
.user-info-text {
  display: flex;
  flex-direction: column;
}
.sidebar-username {
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
}
.user-connected-badge {
  color: #34d399;
  font-size: 11.5px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.btn-sidebar-logout {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
}
.btn-sidebar-logout:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
}

/* Selected Product Item Card */
.cart-items-wrap {
  margin-bottom: 14px;
}
.cart-item-card {
  background: #101a13;
  border: 1px solid rgba(46, 204, 113, 0.25);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cart-item-media {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.cart-thumb-img {
  max-width: 36px;
  max-height: 36px;
  object-fit: contain;
}
.cart-thumb-emoji {
  font-size: 24px;
}
.cart-item-info {
  flex: 1;
}
.cart-item-name {
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 2px;
}
.cart-item-badge {
  color: #2ecc71;
  font-size: 11px;
  font-weight: 700;
}
.cart-item-price-col {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cart-item-price {
  color: #2ecc71;
  font-size: 16px;
  font-weight: 900;
}
.cart-item-trash {
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
  transition: color 0.2s;
}
.cart-item-trash:hover {
  color: #ef4444;
}

/* Empty Cart State */
.cart-empty-msg {
  text-align: center;
  padding: 24px 16px;
  background: #101a13;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 14px;
}
.cart-empty-icon {
  font-size: 36px;
  color: #64748b;
  margin-bottom: 8px;
}
.cart-empty-title {
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 4px;
}
.cart-empty-sub {
  color: #94a3b8;
  font-size: 12px;
}

/* Server IP Section inside Drawer */
.server-ip-section {
  margin-bottom: 14px;
}
.drawer-field-label {
  display: block;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}
.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}
.input-with-icon i {
  position: absolute;
  right: 12px;
  color: #64748b;
  font-size: 13px;
}
.sidebar-input {
  width: 100%;
  background: #142018;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #ffffff;
  padding: 10px 38px 10px 14px;
  font-size: 13px;
  outline: none;
  text-align: right;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.sidebar-input:focus {
  border-color: #2ecc71;
  box-shadow: 0 0 12px rgba(46, 204, 113, 0.2);
}
.sidebar-input::placeholder {
  color: #64748b;
}
.ip-notice-text {
  display: block;
  color: #94a3b8;
  font-size: 11px;
  margin-top: 6px;
  line-height: 1.4;
}
.ip-notice-text i {
  color: #2ecc71;
}

.ip-locked-container {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 14px;
}
.ip-locked-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.ip-title-label {
  color: #94a3b8;
  font-size: 12px;
}
.ip-fixed-pill {
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}
.ip-locked-code {
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  font-family: monospace;
  direction: ltr;
  text-align: right;
}
.ip-locked-server-name {
  color: #64748b;
  font-size: 11px;
  margin-top: 2px;
}

/* Payment Method Card */
.payment-method-section {
  margin-bottom: 14px;
}
.pay-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f1f5f9;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}
.pay-section-title i {
  color: #34d399;
}
.payment-card-method {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(46, 204, 113, 0.25);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.pay-method-icon {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #34d399;
  font-size: 15px;
}
.pay-method-info {
  flex: 1;
}
.pay-method-title {
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
}
.pay-method-sub {
  color: #64748b;
  font-size: 11px;
}
.pay-method-price {
  color: #34d399;
  font-size: 14.5px;
  font-weight: 800;
}

/* Terms Checkbox */
.terms-row {
  margin-bottom: 14px;
}
.terms-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
  font-size: 12.5px;
  cursor: pointer;
}
.terms-checkbox-label input {
  accent-color: #2ecc71;
  width: 16px;
  height: 16px;
}
.terms-link {
  color: #2ecc71;
  text-decoration: underline;
}

/* Drawer Footer */
.cart-drawer-footer {
  padding: 18px 22px 24px;
  background: #0c1610;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.cart-total-row .total-label {
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
}
.cart-total-row .total-value {
  color: #2ecc71;
  font-size: 22px;
  font-weight: 900;
  text-shadow: 0 0 12px rgba(46, 204, 113, 0.3);
}

.btn-checkout-submit {
  width: 100%;
  background: linear-gradient(135deg, #1d7048, #2ecc71);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(46, 204, 113, 0.35);
}
.btn-checkout-submit:hover {
  background: linear-gradient(135deg, #248b59, #34d399);
  box-shadow: 0 6px 25px rgba(46, 204, 113, 0.5);
  transform: translateY(-1px);
}

.drawer-security-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
}
.drawer-security-badges .sec-item {
  color: #64748b;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.drawer-security-badges .sec-item i {
  color: #2ecc71;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .cart-drawer {
    max-width: 100%;
  }
  .floating-cart-btn {
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
  }
}

/* ==========================================================================
   Persistent Cart & Checkout Sidebar (Positioned on the Far Right / أقصى اليمين)
   ========================================================================== */
.store-layout-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  direction: rtl !important;
  gap: 32px;
  align-items: start;
  width: 100%;
}

.cart-sidebar-col {
  width: 100%;
  position: sticky;
  top: 24px;
  z-index: 10;
  grid-column: 1; /* FAR RIGHT in RTL */
  direction: rtl !important;
}

.products-section {
  width: 100%;
  min-width: 0;
  grid-column: 2; /* Main Products Grid Area */
  display: flex;
  flex-direction: column;
}

.cart-spacer-col {
  display: none !important;
}

.order-summary {
  background: rgba(13, 20, 16, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 22px;
  color: #ffffff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.2s ease;
  direction: rtl;
  text-align: right;
}

.order-summary.pulse-highlight {
  border-color: rgba(46, 204, 113, 0.35);
}

/* Discord Section in Desktop Sidebar */
.order-summary .login-section {
  margin-bottom: 16px;
}

.order-summary .discord-info-container {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 14px;
}

.discord-prompt-text {
  margin-bottom: 12px;
}

.discord-prompt-text p {
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.5;
  margin-top: 6px;
}

/* Cart Title */
.order-summary .cart-title {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.order-summary .cart-title i {
  color: #2ecc71;
  font-size: 17px;
}

/* Selected Scripts List */
.selected-scripts-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 50px;
}

.selected-script-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 14px;
  transition: all 0.25s ease;
}

.selected-script-item:hover {
  border-color: rgba(46, 204, 113, 0.3);
  background: rgba(29, 112, 72, 0.08);
}

.selected-script-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.selected-script-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.selected-script-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.selected-script-name {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.selected-script-price {
  font-size: 13.5px;
  font-weight: 800;
  color: #2ecc71;
}

.remove-item {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.remove-item:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #ffffff;
  transform: scale(1.05);
}

.desktop-cart-empty {
  padding: 24px 16px;
  text-align: center;
  background: rgba(0, 0, 0, 0.2);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #94a3b8;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.desktop-cart-empty i {
  font-size: 24px;
  color: #475569;
}

/* Cart Totals */
.cart-totals {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.total-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #94a3b8;
}

.total-line.grand-total {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  padding-top: 8px;
  margin-top: 4px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.total-line.grand-total .total-value {
  color: #34d399;
  font-size: 18px;
  font-weight: 800;
}

/* Server IPv4 Field */
.change-ip-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 14px;
  color: #ffffff;
  font-size: 13.5px;
  transition: border-color 0.2s ease;
  font-family: inherit;
  box-sizing: border-box;
}

.change-ip-input:focus {
  border-color: rgba(46, 204, 113, 0.4);
  box-shadow: none;
  outline: none;
  background: rgba(0, 0, 0, 0.35);
}

.tos-container {
  margin: 14px 0 10px;
}

/* Checkout Button */
.checkout-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
  border: none;
  text-decoration: none;
  margin-top: 14px;
}

.checkout-button-primary {
  background: #1d7048;
  color: #ffffff;
  box-shadow: none;
}

.checkout-button-primary:hover {
  background: #248b59;
  box-shadow: none;
  transform: none;
  opacity: 0.96;
}

/* Responsive display conditions */
@media (max-width: 991px) {
  .store-layout-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }
  .products-section {
    order: 1;
    width: 100%;
  }
  .cart-sidebar-col {
    order: 2;
    width: 100%;
    position: static;
    display: block !important;
  }
  .cart-spacer-col {
    display: none !important;
  }
}

/* Completely remove cart drawer & floating button */
.floating-cart-btn,
.cart-drawer,
.cart-drawer-backdrop {
  display: none !important;
}



