/*
 * Enter any custom CSS here.
 * This file will not be overwritten by theme updates.
*/

.container-feedbacks {
  margin-botton: 10px;
}

/* Hide the navbar search trigger button and the search modal popup.
   The JS listeners still exist but can't find their target elements. */
#searchTrigger,
.search-modal-navcobra {
  display: none !important;
}

/* === Branded checkout loading overlay ===
   Used on the product page (Buy Now) and the cart page (Checkout).
   Design: dark backdrop, centered rectangle card, shop logo, item
   name, horizontal progress bar that fills over 2.5s, and a step
   list that updates as the bar fills. */
.checkout-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: checkout-fade-in 240ms ease forwards;
  font-family: 'Poppins', sans-serif;
  padding: 20px;
}
@keyframes checkout-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.checkout-overlay-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: #161616;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 28px 28px 24px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(177, 113, 255, 0.10);
  animation: checkout-card-in 320ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes checkout-card-in {
  0%   { transform: translateY(12px) scale(0.98); opacity: 0; }
  100% { transform: translateY(0)    scale(1);    opacity: 1; }
}
/* Top brand bar — purple gradient line */
.checkout-overlay-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(90deg, transparent 0%, #b171ff 50%, transparent 100%);
  opacity: 0.6;
}

.checkout-overlay-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.checkout-overlay-logo {
  height: 28px;
  max-width: 140px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}
.checkout-overlay-head-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.checkout-overlay-eyebrow {
  color: #a1a1aa;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.checkout-overlay-title {
  color: #f5f5f5;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Progress bar */
.checkout-overlay-progress {
  position: relative;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 20px;
}
.checkout-overlay-progress-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #7c3aed 0%, #b171ff 100%);
  border-radius: inherit;
  transform-origin: left;
  animation: checkout-progress-fill 2500ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
  box-shadow: 0 0 12px rgba(177, 113, 255, 0.6);
}
@keyframes checkout-progress-fill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* Step list */
.checkout-overlay-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.checkout-overlay-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  color: #6b6b75;
  letter-spacing: 0.01em;
  transition: color 0.3s ease;
}
.checkout-overlay-step-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.10);
  transition: all 0.3s ease;
}
.checkout-overlay-step.is-done {
  color: #a1a1aa;
}
.checkout-overlay-step.is-done .checkout-overlay-step-icon {
  background: #b171ff;
  border-color: #b171ff;
  color: #0a0a0a;
}
.checkout-overlay-step.is-done .checkout-overlay-step-icon::after {
  content: '';
  position: absolute;
}
/* Use a checkmark via background-image on the icon */
.checkout-overlay-step.is-done .checkout-overlay-step-icon {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 11px 11px;
  background-position: center;
  background-repeat: no-repeat;
}
.checkout-overlay-step.is-current {
  color: #f5f5f5;
}
.checkout-overlay-step.is-current .checkout-overlay-step-icon {
  border-color: #b171ff;
  color: #b171ff;
  animation: checkout-step-pulse 1.4s ease-in-out infinite;
}
@keyframes checkout-step-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(177, 113, 255, 0.4); }
  50%      { box-shadow: 0 0 0 4px rgba(177, 113, 255, 0); }
}

/* Footer line */
.checkout-overlay-foot {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #6b6b75;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.checkout-overlay-foot .lock {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.checkout-overlay-foot .lock svg {
  width: 11px;
  height: 11px;
  color: #b171ff;
}

/* === Cart page === */
.cart-item-bg {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 14px !important;
  padding: 14px !important;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.cart-item-bg:hover {
  border-color: rgba(177, 113, 255, 0.30) !important;
  background: rgba(177, 113, 255, 0.03) !important;
}

.cart-product-image {
  border: 1px solid rgba(255, 255, 255, 0.05);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  max-width: 90px;
}
.cart-image-container {
  max-width: 100px;
  flex-shrink: 0;
}

.cart-product-link {
  color: #f5f5f5 !important;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  transition: color 0.2s ease;
}
.cart-product-link:hover { color: #d4b3ff !important; }

.cart-variant-text {
  color: #a1a1aa !important;
  font-size: 12px;
  margin-top: 2px;
}
.cart-discount-text {
  color: #d4b3ff;
  font-size: 11px;
  font-weight: 500;
}

.cart-addon-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #d4b3ff;
  background: rgba(177, 113, 255, 0.10);
  border: 1px solid rgba(177, 113, 255, 0.25);
  border-radius: 9999px;
  padding: 2px 8px;
}

.cart-controls {
  align-items: center;
}

/* Quantity controls — themed, larger */
.cart-quantity-controls {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 2px;
  height: 38px;
  align-items: stretch;
}
.cart-qty-btn {
  width: 34px;
  height: 34px;
  color: #a1a1aa;
  background: transparent;
  border-radius: 8px;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.cart-qty-btn:hover:not(:disabled) {
  background: rgba(177, 113, 255, 0.15);
  color: #d4b3ff;
}
.cart-qty-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.cart-qty-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.cart-qty-input {
  background: transparent !important;
  border: none !important;
  color: #f5f5f5 !important;
  font-size: 14px;
  font-weight: 600;
  width: 42px;
  padding: 0 !important;
  height: 34px;
  font-family: 'Poppins', sans-serif;
}
.cart-qty-input:focus {
  box-shadow: none !important;
  outline: none;
  background: rgba(255, 255, 255, 0.04) !important;
}
/* Hide the spinners on the number input */
.cart-qty-input::-webkit-outer-spin-button,
.cart-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.cart-qty-input[type=number] { -moz-appearance: textfield; }

.cart-price-text {
  color: #f5f5f5;
  font-size: 15px;
  font-weight: 700;
  min-width: 70px;
  text-align: right;
}

/* Remove buttons */
.cart-remove-mobile,
.cart-remove-desktop {
  color: #a1a1aa !important;
  transition: color 0.2s ease, transform 0.2s ease;
}
.cart-remove-mobile:hover,
.cart-remove-desktop:hover {
  color: #fca5a5 !important;
  transform: scale(1.1);
}
.cart-remove-icon-sm { width: 16px; height: 16px; fill: currentColor; }
.cart-remove-icon   { width: 18px; height: 18px; fill: currentColor; }

/* Placeholder icon */
.cart-placeholder-icon {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  aspect-ratio: 1 / 1;
  color: #b171ff;
}
.cart-placeholder-svg { width: 32px; height: 32px; }

/* Order summary card */
.cart .form {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 14px !important;
  padding: 20px !important;
}
.cart .section-title h1 {
  color: #f5f5f5;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 24px;
}
.cart .form .form-label {
  color: #f5f5f5;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
}
.cart .form .border-bottom {
  border-color: rgba(255, 255, 255, 0.06) !important;
}
.cart .form .text-muted {
  color: #a1a1aa !important;
}
.cart .form .fw-bold {
  color: #f5f5f5;
  font-weight: 700 !important;
}

/* Checkout button — themed to match the product page */
.cart .form .btn.btn-outline-primary {
  --bs-btn-color: #ffffff !important;
  --bs-btn-border-color: #7c3aed !important;
  --bs-btn-bg: #7c3aed !important;
  --bs-btn-hover-bg: #8b4dd6 !important;
  --bs-btn-hover-border-color: #8b4dd6 !important;
  --bs-btn-hover-color: #ffffff !important;
  --bs-btn-active-bg: #6d28d9 !important;
  --bs-btn-active-border-color: #6d28d9 !important;
  --bs-btn-active-color: #ffffff !important;
  --bs-btn-disabled-bg: rgba(255, 255, 255, 0.04) !important;
  --bs-btn-disabled-border-color: rgba(255, 255, 255, 0.08) !important;
  --bs-btn-disabled-color: rgba(229, 229, 229, 0.4) !important;
  background-color: #7c3aed !important;
  border-color: #7c3aed !important;
  color: #ffffff !important;
  border-radius: 9999px !important;
  height: 56px;
  padding: 0 22px !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.30);
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.cart .form .btn.btn-outline-primary:hover:not(:disabled) {
  background-color: #8b4dd6 !important;
  border-color: #8b4dd6 !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 0 0 3px rgba(177, 113, 255, 0.18), 0 4px 12px rgba(124, 58, 237, 0.35);
}
.cart .form .btn.btn-outline-primary:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
}
.cart .form .btn.btn-outline-primary:disabled {
  background-color: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: rgba(229, 229, 229, 0.4) !important;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
  opacity: 1;
}
.cart .form .btn.btn-outline-primary svg {
  width: 13px;
  height: 13px;
  stroke-width: 1;
}

/* Sticky summary on desktop */
@media (min-width: 992px) {
  .cart .col-lg-4 .form { position: sticky; top: 90px; }
}

/* Empty cart state */
.cart-empty {
  text-align: center;
  padding: 60px 20px;
  border: 1px dashed rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.015);
}
.cart-empty-icon {
  width: 72px;
  height: 72px;
  color: #b171ff;
  margin: 0 auto 16px;
  opacity: 0.7;
}
.cart-empty-title {
  color: #f5f5f5;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 6px;
}
.cart-empty-sub {
  color: #a1a1aa;
  font-size: 14px;
  margin: 0 0 20px;
}
.cart-empty-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 9999px;
  background: rgba(177, 113, 255, 0.10);
  border: 1px solid rgba(177, 113, 255, 0.40);
  color: #d4b3ff;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.15s ease;
}
.cart-empty-cta:hover {
  background: rgba(177, 113, 255, 0.18);
  color: #e2c8ff;
  transform: translateY(-1px);
}

/* === Customer dashboard === */
.customer-dashboard {
  font-family: 'Poppins', sans-serif;
}

/* Welcome / hero */
.cd-welcome {
  margin-bottom: 24px;
  padding: 24px 26px;
  background: linear-gradient(135deg, rgba(177, 113, 255, 0.10) 0%, rgba(177, 113, 255, 0.02) 100%);
  border: 1px solid rgba(177, 113, 255, 0.25);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}
.cd-welcome::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #b171ff 50%, transparent 100%);
  opacity: 0.7;
}
.cd-welcome-eyebrow {
  color: #b171ff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.cd-welcome-title {
  margin: 0 0 4px;
  font-size: clamp(1.4rem, 1rem + 1vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f5f5f5;
  line-height: 1.2;
}
.cd-welcome-sub {
  margin: 0;
  color: rgba(229, 229, 229, 0.65);
  font-size: 14px;
}

/* Stat cards */
.cd-stat {
  position: relative;
  height: 100%;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  overflow: hidden;
}
.cd-stat::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(177, 113, 255, 0.4) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.cd-stat:hover {
  background: rgba(177, 113, 255, 0.04);
  border-color: rgba(177, 113, 255, 0.25);
  transform: translateY(-2px);
}
.cd-stat:hover::before { opacity: 1; }
.cd-stat-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(177, 113, 255, 0.10);
  border: 1px solid rgba(177, 113, 255, 0.25);
  color: #d4b3ff;
  margin-bottom: 4px;
}
.cd-stat-icon svg { width: 20px; height: 20px; }
.cd-stat-label {
  color: rgba(229, 229, 229, 0.55);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cd-stat-value {
  color: #f5f5f5;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

/* Generic panel */
.cd-panel {
  height: 100%;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
}
.cd-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.cd-panel-title {
  margin: 0;
  color: #f5f5f5;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.cd-panel-link {
  color: #d4b3ff;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}
.cd-panel-link:hover { color: #e2c8ff; }

/* Latest order */
.cd-order {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.cd-order-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(177, 113, 255, 0.10);
  color: #d4b3ff;
  flex-shrink: 0;
}
.cd-order-icon svg { width: 20px; height: 20px; }
.cd-order-body { min-width: 0; flex: 1; }
.cd-order-name {
  color: #f5f5f5;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cd-order-variant { color: rgba(229, 229, 229, 0.65); font-weight: 500; }
.cd-order-more   { color: rgba(229, 229, 229, 0.45); font-weight: 500; }
.cd-order-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(229, 229, 229, 0.55);
}
.cd-order-id {
  color: #d4b3ff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}
.cd-order-id:hover { color: #e2c8ff; }
.cd-order-sep { color: rgba(255, 255, 255, 0.15); }

/* Empty state for latest order */
.cd-empty {
  text-align: center;
  padding: 24px 12px;
}
.cd-empty p {
  margin: 0 0 14px;
  color: rgba(229, 229, 229, 0.55);
  font-size: 14px;
}

/* CTA pill */
.cd-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 9999px;
  background: rgba(177, 113, 255, 0.12);
  border: 1px solid rgba(177, 113, 255, 0.30);
  color: #d4b3ff;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.cd-cta:hover {
  background: rgba(177, 113, 255, 0.20);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Balance panel */
.cd-panel-balance {
  background: linear-gradient(135deg, rgba(177, 113, 255, 0.08) 0%, rgba(124, 58, 237, 0.04) 100%);
  border-color: rgba(177, 113, 255, 0.20);
}
.cd-balance {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  justify-content: center;
}
.cd-balance-amount {
  color: #ffffff;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1;
}

/* Danger zone */
.cd-danger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  margin-top: 8px;
  border: 1px solid rgba(239, 68, 68, 0.20);
  background: rgba(239, 68, 68, 0.05);
  border-radius: 12px;
  flex-wrap: wrap;
}
.cd-danger-title {
  color: #f5f5f5;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}
.cd-danger-sub {
  color: rgba(229, 229, 229, 0.55);
  font-size: 12px;
  line-height: 1.4;
  max-width: 480px;
}
.cd-danger-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 9999px;
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fca5a5;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.cd-danger-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ffffff;
  transform: translateY(-1px);
}
.cd-danger-btn:active { transform: translateY(0) scale(0.98); }

/* === Delete-account modal (themed) === */
.cd-modal .modal-content {
  background: #161616 !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  border-radius: 14px !important;
  color: #e5e5e5;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55) !important;
  font-family: 'Poppins', sans-serif;
}
.cd-modal .modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  padding: 18px 22px !important;
}
.cd-modal .modal-title {
  color: #f5f5f5;
  font-size: 16px;
  font-weight: 600;
}
.cd-modal .btn-close {
  filter: invert(1) opacity(0.5);
  transition: opacity 0.2s ease;
}
.cd-modal .btn-close:hover { opacity: 0.9; }
.cd-modal .modal-body { padding: 18px 22px 22px !important; }
.cd-modal-warning {
  color: rgba(229, 229, 229, 0.70);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 18px;
}
.cd-modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 9999px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.cd-modal-btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.10);
  color: #e5e5e5;
}
.cd-modal-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}
.cd-modal-btn--danger {
  background: rgba(239, 68, 68, 0.10);
  border-color: rgba(239, 68, 68, 0.40);
  color: #fca5a5;
}
.cd-modal-btn--danger:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.20);
  border-color: rgba(239, 68, 68, 0.65);
  color: #ffffff;
}
.cd-modal-btn--danger:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.cd-modal-btn:active:not(:disabled) { transform: scale(0.98); }

@media (max-width: 575.98px) {
  .cd-welcome { padding: 18px 18px; }
  .cd-stat { padding: 16px; }
}

/* === Customer sidebar === */
.cd-sidebar {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 14px;
  font-family: 'Poppins', sans-serif;
  position: sticky;
  top: 80px;
}
.cd-sidebar-head {
  padding-bottom: 14px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.cd-sidebar-eyebrow {
  color: rgba(229, 229, 229, 0.50);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.cd-sidebar-email {
  color: #f5f5f5;
  font-size: 13px;
  font-weight: 500;
  word-break: break-all;
  line-height: 1.3;
}
.cd-sidebar-nav {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cd-sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  color: rgba(229, 229, 229, 0.70);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.cd-sidebar-link:hover {
  background: rgba(177, 113, 255, 0.08);
  color: #f5f5f5;
}
.cd-sidebar-link.is-active {
  background: rgba(177, 113, 255, 0.14);
  color: #f5f5f5;
  font-weight: 600;
}
.cd-sidebar-link svg { color: currentColor; flex-shrink: 0; }
.cd-sidebar-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  margin-top: 4px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(229, 229, 229, 0.65);
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.cd-sidebar-logout:hover {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}
.cd-sidebar-logout svg { color: currentColor; flex-shrink: 0; }

/* === Info strip (tickets list) === */
.cd-info-strip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(177, 113, 255, 0.20);
  background: rgba(177, 113, 255, 0.06);
  border-radius: 10px;
  color: rgba(229, 229, 229, 0.80);
  font-size: 12.5px;
  line-height: 1.5;
}
.cd-info-strip svg { color: #b171ff; flex-shrink: 0; margin-top: 2px; }
.cd-info-strip-link { color: #d4b3ff; text-decoration: none; }
.cd-info-strip-link:hover { color: #e2c8ff; text-decoration: underline; }

/* === Generic text muted === */
.cd-text-muted { color: rgba(229, 229, 229, 0.55) !important; font-size: 14px; line-height: 1.5; margin: 0 0 14px; }

/* === Invoice list (orders page) === */
.cd-invoice-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cd-invoice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.cd-invoice:hover { border-color: rgba(177, 113, 255, 0.25); background: rgba(177, 113, 255, 0.04); }
.cd-invoice-main { flex: 1; min-width: 0; }
.cd-invoice-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.cd-invoice-id {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: #f5f5f5;
  font-size: 14px;
  font-weight: 600;
}
.cd-invoice-id a { color: #d4b3ff; text-decoration: none; }
.cd-invoice-id a:hover { color: #e2c8ff; }
.cd-invoice-date { color: rgba(229, 229, 229, 0.55); font-size: 12px; font-weight: 400; }
.cd-invoice-product {
  color: rgba(229, 229, 229, 0.70);
  font-size: 13px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cd-invoice-variant { color: rgba(229, 229, 229, 0.50); }
.cd-invoice-more { color: rgba(229, 229, 229, 0.45); }
.cd-invoice-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
.cd-invoice-price {
  color: #f5f5f5;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.cd-invoice-action {
  background: transparent;
  border: 1px solid rgba(177, 113, 255, 0.30);
  color: #d4b3ff;
  padding: 5px 12px;
  border-radius: 9999px;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.cd-invoice-action:hover { background: rgba(177, 113, 255, 0.12); color: #ffffff; }

/* === Status pill (shared by invoices, tickets, ticket detail) === */
.cd-invoice-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid;
  text-transform: capitalize;
  white-space: nowrap;
}
.cd-invoice-status-dot { width: 6px; height: 6px; border-radius: 50%; }
.cd-invoice-status--neutral {
  color: #a1a1aa;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.10);
}
.cd-invoice-status--neutral .cd-invoice-status-dot { background: #a1a1aa; }

/* === Ticket list === */
.cd-ticket-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cd-ticket { margin: 0; }
.cd-ticket-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.cd-ticket-link:hover { border-color: rgba(177, 113, 255, 0.25); background: rgba(177, 113, 255, 0.04); }
.cd-ticket-icon {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(177, 113, 255, 0.10);
  border: 1px solid rgba(177, 113, 255, 0.25);
  color: #d4b3ff;
  flex-shrink: 0;
}
.cd-ticket-body { flex: 1; min-width: 0; }
.cd-ticket-subject {
  color: #f5f5f5; font-size: 14px; font-weight: 600; line-height: 1.3;
  margin-bottom: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cd-ticket-date { color: rgba(229, 229, 229, 0.55); font-size: 12px; }
.cd-ticket-side { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.cd-ticket-status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 9999px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
  border: 1px solid; white-space: nowrap;
}
.cd-ticket-status-dot { width: 6px; height: 6px; border-radius: 50%; }
.cd-ticket-status--neutral {
  color: #a1a1aa; background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.10);
}
.cd-ticket-arrow { color: rgba(229, 229, 229, 0.45); }

/* === Ticket detail === */
.cd-ticket-detail-subject { font-size: clamp(1.2rem, 1rem + 0.6vw, 1.5rem); }
.cd-ticket-detail-meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  color: rgba(229, 229, 229, 0.55); font-size: 13px; margin-top: 6px;
}
.cd-ticket-detail-sep { color: rgba(255, 255, 255, 0.15); }
.cd-ticket-detail-link { color: #d4b3ff; text-decoration: none; }
.cd-ticket-detail-link:hover { color: #e2c8ff; }

.cd-panel--flush { padding: 0; overflow: hidden; }
.cd-thread {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-height: 520px;
  overflow-y: auto;
}
.cd-msg {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.cd-msg--mine { flex-direction: row-reverse; }
.cd-msg-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; flex-shrink: 0;
  color: #f5f5f5;
}
.cd-msg-avatar--theirs {
  background: linear-gradient(135deg, #b171ff 0%, #7c3aed 100%);
  color: #ffffff;
  overflow: hidden;
}
.cd-msg-avatar--theirs img { width: 100%; height: 100%; object-fit: cover; }
.cd-msg-avatar--mine {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #d4b3ff;
}
.cd-msg-body {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.cd-msg--mine .cd-msg-body { align-items: flex-end; }
.cd-msg-head {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 12px; color: rgba(229, 229, 229, 0.55);
}
.cd-msg-name { color: #f5f5f5; font-weight: 600; font-size: 13px; }
.cd-msg-time { color: rgba(229, 229, 229, 0.40); }
.cd-msg-bubble {
  display: inline-block;
  max-width: 100%;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #e5e5e5;
  font-size: 14px;
  line-height: 1.5;
  word-wrap: break-word;
}
.cd-msg--mine .cd-msg-bubble {
  background: rgba(177, 113, 255, 0.10);
  border-color: rgba(177, 113, 255, 0.25);
  color: #f5f5f5;
}

.cd-reply {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 14px 20px;
}
.cd-reply-input {
  flex: 1;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  color: #f5f5f5;
  font-family: 'Poppins', sans-serif;
  font-size: 13.5px;
  line-height: 1.4;
  resize: none;
  min-height: 40px;
  max-height: 160px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.cd-reply-input:focus {
  outline: none;
  border-color: rgba(177, 113, 255, 0.45);
  background: rgba(177, 113, 255, 0.06);
}
.cd-reply-input:disabled { opacity: 0.5; cursor: not-allowed; }
.cd-reply-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 16px;
  border-radius: 10px;
  background: #7c3aed; border: 1px solid #7c3aed;
  color: #ffffff; cursor: pointer;
  font-family: 'Poppins', sans-serif; font-size: 13px; font-weight: 600;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.30);
  flex-shrink: 0;
}
.cd-reply-btn:hover:not(:disabled) {
  background: #8b4dd6; border-color: #8b4dd6;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.40);
}
.cd-reply-btn:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.cd-reply-error { color: #fca5a5; font-size: 12px; margin: 6px 0 0; }
.cd-reply-closed { text-align: center; color: rgba(229, 229, 229, 0.55); font-size: 13px; margin: 0; }

/* === Top-up buttons (balance page) === */
.cd-topup-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.cd-topup-btn {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  height: 44px;
  border-radius: 10px;
  background: rgba(177, 113, 255, 0.10);
  border: 1px solid rgba(177, 113, 255, 0.30);
  color: #d4b3ff;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.cd-topup-btn:hover:not(:disabled) {
  background: rgba(177, 113, 255, 0.20);
  color: #ffffff;
  transform: translateY(-1px);
}
.cd-topup-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.cd-topup-btn.is-loading { color: transparent; }
.cd-topup-btn.is-loading svg { color: #b171ff; position: absolute; }
@media (max-width: 575.98px) { .cd-topup-grid { grid-template-columns: repeat(3, 1fr); } }

/* === Themed table (transactions, referrals) === */
.cd-table-wrap { overflow-x: auto; }
.cd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  color: rgba(229, 229, 229, 0.80);
}
.cd-table th {
  text-align: left;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.025);
  color: rgba(229, 229, 229, 0.55);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}
.cd-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}
.cd-table tr:last-child td { border-bottom: none; }
.cd-table tr:hover td { background: rgba(177, 113, 255, 0.04); }
.cd-table-link { color: #d4b3ff; text-decoration: none; }
.cd-table-link:hover { color: #e2c8ff; text-decoration: underline; }
.cd-tx-id {
  font-family: 'SFMono-Regular', Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  color: rgba(229, 229, 229, 0.65);
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 8px;
  border-radius: 6px;
}
.cd-tx-type {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(229, 229, 229, 0.75);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: capitalize;
}
.cd-tx-amount { color: #f5f5f5; font-weight: 600; white-space: nowrap; }

/* === Affiliate link box === */
.cd-link-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: rgba(18, 18, 18, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}
.cd-link-text {
  flex: 1;
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px;
  background: transparent; border: none;
  color: #d4b3ff;
  font-family: 'SFMono-Regular', Menlo, Monaco, Consolas, monospace;
  font-size: 12.5px;
  text-align: left;
  cursor: pointer;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cd-link-text:hover { color: #e2c8ff; }
.cd-link-text svg { color: currentColor; flex-shrink: 0; }
.cd-link-copy {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(177, 113, 255, 0.10);
  border: 1px solid rgba(177, 113, 255, 0.30);
  color: #d4b3ff;
  font-family: 'Poppins', sans-serif;
  font-size: 11.5px; font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.cd-link-copy:hover { background: rgba(177, 113, 255, 0.20); color: #ffffff; }
.cd-link-copy.is-copied { background: rgba(34, 197, 94, 0.15); border-color: rgba(34, 197, 94, 0.45); color: #86efac; }
.cd-reward {
  display: flex; align-items: baseline; gap: 6px; margin-top: 4px;
}
.cd-reward-value {
  color: #ffffff;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1;
}
.cd-reward-label {
  color: rgba(229, 229, 229, 0.55);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (max-width: 575.98px) {
  .cd-invoice { flex-direction: column; align-items: flex-start; }
  .cd-invoice-side { align-items: flex-start; flex-direction: row; }
  .cd-thread { max-height: none; }
}