/* ==========================================================================
   Mabedth Digital Creation (MDC) — E-Commerce Cart, Auth & Interactive Styles
   ========================================================================== */

:root {
  --cart-width: 440px;
  --cart-bg: rgba(255, 255, 255, 0.96);
  --cart-border: rgba(168, 85, 247, 0.18);
  --cart-shadow: 0 25px 50px -12px rgba(112, 0, 255, 0.25);
  --modal-bg: rgba(255, 255, 255, 0.98);
}

.dark {
  --cart-bg: rgba(15, 12, 28, 0.96);
  --cart-border: rgba(168, 85, 247, 0.28);
  --cart-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  --modal-bg: rgba(18, 14, 34, 0.98);
}

/* Floating Cart Button */
.floating-cart-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7000ff 0%, #ff007f 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(112, 0, 255, 0.45);
  cursor: pointer;
  z-index: 9980;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
  border: none;
  outline: none;
}

.floating-cart-btn:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 16px 32px rgba(255, 0, 127, 0.5);
}

.floating-cart-btn svg {
  width: 26px;
  height: 26px;
  stroke: #ffffff;
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ff0055;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cart-badge.pop {
  transform: scale(1.35);
}

/* Cart Slide-Over Drawer */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 20, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9990;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: var(--cart-width);
  background: var(--cart-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid var(--cart-border);
  box-shadow: var(--cart-shadow);
  z-index: 9995;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

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

.cart-drawer-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color, rgba(168, 85, 247, 0.15));
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-color, #1a1a2e);
}

.dark .cart-drawer-header h3 {
  color: #f8fafc;
}

.cart-close-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted, #71717a);
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-close-btn:hover {
  background: rgba(168, 85, 247, 0.12);
  color: #ff007f;
}

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

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: auto;
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-muted, #71717a);
}

.cart-empty svg {
  width: 64px;
  height: 64px;
  stroke: var(--text-muted, #a1a1aa);
  margin-bottom: 1rem;
  opacity: 0.6;
}

.cart-item-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(168, 85, 247, 0.05);
  border: 1px solid var(--border-color, rgba(168, 85, 247, 0.15));
  border-radius: 12px;
  transition: border-color 0.2s, background 0.2s;
}

.cart-item-card:hover {
  border-color: rgba(168, 85, 247, 0.35);
  background: rgba(168, 85, 247, 0.08);
}

.cart-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(112, 0, 255, 0.15), rgba(255, 0, 127, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

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

.cart-item-name {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  color: var(--text-color, #1a1a2e);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dark .cart-item-name {
  color: #f8fafc;
}

.cart-item-price {
  font-size: 0.88rem;
  font-weight: 700;
  color: #9333ea;
  margin: 0;
}

.dark .cart-item-price {
  color: #c084fc;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cart-qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border-color, rgba(168, 85, 247, 0.2));
  background: transparent;
  color: var(--text-color, #1a1a2e);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.dark .cart-qty-btn {
  color: #f8fafc;
}

.cart-qty-btn:hover {
  background: #9333ea;
  color: #fff;
  border-color: #9333ea;
}

.cart-qty-count {
  font-size: 0.9rem;
  font-weight: 600;
  min-width: 22px;
  text-align: center;
}

.cart-remove-btn {
  background: transparent;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 0.35rem;
  margin-left: 0.25rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: all 0.2s;
}

.cart-remove-btn:hover {
  opacity: 1;
  background: rgba(239, 68, 68, 0.1);
}

.cart-drawer-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-color, rgba(168, 85, 247, 0.15));
  background: rgba(168, 85, 247, 0.03);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
  color: var(--text-muted, #71717a);
}

.cart-summary-row.total {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-color, #1a1a2e);
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border-color, rgba(168, 85, 247, 0.2));
}

.dark .cart-summary-row.total {
  color: #f8fafc;
}

.cart-checkout-btn {
  width: 100%;
  margin-top: 1rem;
  padding: 0.95rem;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #7000ff 0%, #ff007f 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 8px 20px rgba(112, 0, 255, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.cart-checkout-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(255, 0, 127, 0.45);
}

.cart-checkout-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Customer Auth Modal */
.customer-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 20, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.customer-modal {
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: auto;
  background: var(--modal-bg, #ffffff);
  border: 1px solid var(--cart-border, rgba(168, 85, 247, 0.25));
  border-radius: 18px;
  padding: 1.35rem 1.45rem 1.15rem;
  box-shadow: var(--cart-shadow, 0 20px 45px -10px rgba(0, 0, 0, 0.3));
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

/* Custom Scrollbar for Modal */
.customer-modal::-webkit-scrollbar {
  width: 5px;
}
.customer-modal::-webkit-scrollbar-track {
  background: rgba(168, 85, 247, 0.05);
  border-radius: 10px;
}
.customer-modal::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.3);
  border-radius: 10px;
}
.customer-modal::-webkit-scrollbar-thumb:hover {
  background: rgba(168, 85, 247, 0.55);
}

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

.customer-modal-header {
  margin-bottom: 0.85rem;
  text-align: center;
  padding-right: 1.5rem;
}

.customer-modal-header h3 {
  font-size: 1.22rem;
  font-weight: 800;
  margin: 0 0 0.25rem;
  background: linear-gradient(135deg, #7000ff 0%, #ff007f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.customer-modal-header p {
  font-size: 0.8rem;
  color: var(--text-muted, #71717a);
  margin: 0;
  line-height: 1.35;
}

.customer-form-group {
  margin-bottom: 0.65rem;
  text-align: left;
}

.customer-form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 0.22rem;
  color: var(--text-color, #27272a);
}

.dark .customer-form-group label {
  color: #e4e4e7;
}

.customer-form-group input,
.customer-form-group textarea {
  width: 100%;
  padding: 0.55rem 0.8rem;
  border-radius: 9px;
  border: 1px solid var(--border-color, rgba(168, 85, 247, 0.25));
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.88rem;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.dark .customer-form-group input,
.dark .customer-form-group textarea {
  background: rgba(25, 20, 45, 0.8);
}

.customer-form-group input:focus,
.customer-form-group textarea:focus {
  outline: none;
  border-color: #9333ea;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.25);
}

.customer-form-group .field-hint {
  font-size: 0.7rem;
  color: #9333ea;
  margin-top: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  line-height: 1.3;
}

.customer-modal-actions {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.btn-secondary-modal {
  flex: 1;
  padding: 0.65rem 0.85rem;
  border-radius: 9px;
  border: 1px solid var(--border-color, rgba(168, 85, 247, 0.2));
  background: transparent;
  color: var(--text-muted, #71717a);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-secondary-modal:hover {
  background: rgba(168, 85, 247, 0.1);
}

.btn-primary-modal {
  flex: 2;
  padding: 0.65rem 0.85rem;
  border-radius: 9px;
  border: none;
  background: linear-gradient(135deg, #7000ff 0%, #ff007f 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(112, 0, 255, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary-modal:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 0, 127, 0.4);
}

/* Auth Tabs & Switcher */
.auth-tabs {
  display: flex;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 10px;
  padding: 3px;
  margin-bottom: 0.75rem;
  gap: 3px;
}

.auth-tab {
  flex: 1;
  padding: 6px 10px;
  border: none;
  background: transparent;
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted, #71717a);
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab.active {
  background: linear-gradient(135deg, #9333ea, #c084fc);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(147, 51, 234, 0.35);
}

.dark .auth-tab:not(.active):hover {
  background: rgba(255, 255, 255, 0.05);
  color: #e4e4e7;
}

/* Google Auth Button */
.btn-google-auth {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(168, 85, 247, 0.3);
  background: #ffffff;
  color: #1f2937;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  margin-bottom: 0.65rem;
}

.dark .btn-google-auth {
  background: #181424;
  color: #f3f4f6;
  border-color: rgba(168, 85, 247, 0.35);
}

.btn-google-auth:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.25);
  border-color: #9333ea;
}

.google-icon {
  flex-shrink: 0;
}

/* Auth Divider */
.auth-divider {
  display: flex;
  align-items: center;
  margin: 0.65rem 0;
  color: var(--text-muted, #71717a);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color, rgba(168, 85, 247, 0.2));
}

.auth-divider span {
  padding: 0 10px;
}

/* Password input with toggle button */
.auth-input-pwd-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-pwd-wrapper input {
  padding-right: 44px !important;
}

.btn-toggle-pwd {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 6px 8px;
  color: var(--text-muted, #71717a);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.btn-toggle-pwd:hover {
  opacity: 1;
}

.auth-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  margin-top: 0.4rem;
  margin-bottom: 0.6rem;
  color: var(--text-muted, #71717a);
}

.auth-meta-row label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  margin: 0;
}

.auth-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(75, 25, 158, 0.08);
  border: 1px solid rgba(75, 25, 158, 0.18);
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #4B199E;
  margin-bottom: 6px;
}

.dark .auth-brand-badge {
  background: rgba(182, 0, 137, 0.16);
  border-color: rgba(182, 0, 137, 0.32);
  color: #f0abfc;
}

.auth-link-sm {
  font-size: 0.72rem;
  color: #4B199E;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.dark .auth-link-sm {
  color: #c084fc;
}

.auth-link-sm:hover {
  text-decoration: underline;
  color: #B60089;
}

.dark .auth-link-sm:hover {
  color: #f0abfc;
}

.auth-link-help {
  font-size: 0.68rem;
  color: #71717a;
  text-decoration: none;
  font-weight: 500;
  opacity: 0.85;
  transition: all 0.2s ease;
}

.dark .auth-link-help {
  color: #a1a1aa;
}

.auth-link-help:hover {
  text-decoration: underline;
  opacity: 1;
  color: #4B199E;
}

.dark .auth-link-help:hover {
  color: #f0abfc;
}

.auth-notice-box {
  background: rgba(75, 25, 158, 0.06);
  border: 1px solid rgba(75, 25, 158, 0.16);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  font-size: 0.75rem;
  color: #351073;
  margin-bottom: 0.85rem;
  line-height: 1.45;
  text-align: left;
}

.dark .auth-notice-box {
  background: rgba(182, 0, 137, 0.12);
  border-color: rgba(182, 0, 137, 0.28);
  color: #f5d0fe;
}

.btn-text-action {
  background: none;
  border: none;
  font-size: 0.72rem;
  font-weight: 600;
  color: #4B199E;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.dark .btn-text-action {
  color: #c084fc;
}

.auth-switch-text {
  text-align: center;
  font-size: 0.8rem;
  margin: 0.75rem 0 0;
  color: var(--text-muted, #71717a);
}

.auth-switch-text a {
  color: #9333ea;
  font-weight: 700;
  text-decoration: none;
}

.dark .auth-switch-text a {
  color: #c084fc;
}

.auth-switch-text a:hover {
  text-decoration: underline;
}

.auth-error-msg {
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  font-size: 0.8rem;
  margin-bottom: 0.65rem;
  text-align: left;
}

/* Modern Enterprise User Account Menu in Header */
.customer-account-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.customer-account-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.65rem 0.28rem 0.35rem;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.22);
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: inherit;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.customer-account-btn:hover {
  background: rgba(168, 85, 247, 0.16);
  border-color: rgba(168, 85, 247, 0.45);
}

.dark .customer-account-btn {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.28);
}

.dark .customer-account-btn:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: #a855f7;
}

.cust-account-name {
  font-size: 0.8rem;
  font-weight: 600;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cust-chevron {
  width: 12px;
  height: 12px;
  opacity: 0.6;
  transition: transform 0.2s ease;
}

.customer-account-btn[aria-expanded="true"] .cust-chevron {
  transform: rotate(180deg);
}

.cust-avatar-img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.cust-avatar-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7000ff, #ff007f);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Floating Account Dropdown Menu */
.customer-account-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 260px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.05);
  padding: 6px;
  z-index: 1000;
  display: none;
  flex-direction: column;
  animation: mdcMenuFade 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: top right;
  backdrop-filter: blur(16px);
}

.dark .customer-account-dropdown {
  background: rgba(18, 14, 30, 0.98);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(168, 85, 247, 0.15);
}

.customer-account-dropdown.show {
  display: flex;
}

@keyframes mdcMenuFade {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(-4px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.cust-dropdown-header {
  padding: 10px 10px 8px;
}

.cust-dropdown-user-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cust-dropdown-avatar-large {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #a855f7;
  flex-shrink: 0;
}

.cust-dropdown-badge-large {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7000ff, #ff007f);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cust-dropdown-user-info {
  flex: 1;
  min-width: 0;
}

.cust-dropdown-name {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-color, #18181b);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cust-dropdown-email {
  font-size: 0.74rem;
  color: var(--text-muted, #71717a);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 1px;
}

.cust-dropdown-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.cust-badge-type {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(168, 85, 247, 0.12);
  color: #9333ea;
  border: 1px solid rgba(168, 85, 247, 0.2);
}

.dark .cust-badge-type {
  color: #c084fc;
}

.cust-badge-phone {
  font-size: 0.7rem;
  color: #10b981;
  font-weight: 500;
}

.cust-dropdown-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.06);
  margin: 4px 0;
}

.dark .cust-dropdown-divider {
  background: rgba(255, 255, 255, 0.08);
}

.cust-dropdown-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cust-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 10px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.cust-dropdown-item svg {
  flex-shrink: 0;
  opacity: 0.75;
}

.cust-dropdown-item:hover {
  background: rgba(168, 85, 247, 0.08);
  color: #9333ea;
}

.dark .cust-dropdown-item:hover {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
}

.cust-dropdown-item.cust-item-danger {
  color: #ef4444;
}

.cust-dropdown-item.cust-item-danger svg {
  opacity: 0.9;
}

.cust-dropdown-item.cust-item-danger:hover {
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
}

.dark .cust-dropdown-item.cust-item-danger:hover {
  background: rgba(239, 68, 68, 0.16);
  color: #f87171;
}

/* Modern Logout Confirmation Modal */
.mdc-confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 10002;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: modalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.mdc-confirm-overlay.show {
  display: flex;
}

.mdc-confirm-card {
  width: 100%;
  max-width: 320px;
  background: #ffffff;
  border-radius: 14px;
  padding: 22px 20px 18px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.08);
  animation: modalZoomIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dark .mdc-confirm-card {
  background: #181424;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
  color: #fff;
}

.mdc-confirm-icon {
  width: 38px;
  height: 38px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mdc-confirm-title {
  font-size: 0.96rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--text-color, #18181b);
}

.dark .mdc-confirm-title {
  color: #ffffff;
}

.mdc-confirm-desc {
  font-size: 0.8rem;
  color: var(--text-muted, #71717a);
  line-height: 1.45;
  margin: 0 0 16px;
}

.mdc-confirm-actions {
  display: flex;
  gap: 8px;
}

.mdc-confirm-btn-cancel {
  flex: 1;
  padding: 7px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.8rem;
  font-weight: 600;
  color: inherit;
  cursor: pointer;
  transition: background 0.15s ease;
}

.dark .mdc-confirm-btn-cancel {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.mdc-confirm-btn-cancel:hover {
  background: rgba(0, 0, 0, 0.08);
}

.dark .mdc-confirm-btn-cancel:hover {
  background: rgba(255, 255, 255, 0.12);
}

.mdc-confirm-btn-danger {
  flex: 1;
  padding: 7px 12px;
  border-radius: 8px;
  background: #ef4444;
  border: 1px solid #dc2626;
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mdc-confirm-btn-danger:hover {
  background: #dc2626;
}

/* Fallback for old customer-chip */
.customer-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.65rem 0.28rem 0.35rem;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #9333ea;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dark .customer-chip {
  color: #c084fc;
}

.customer-chip:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: #9333ea;
}

/* Toast Notifications */
.mdc-toast {
  position: fixed;
  bottom: 100px;
  right: 28px;
  background: rgba(15, 12, 28, 0.95);
  color: #fff;
  padding: 0.8rem 1.25rem;
  border-radius: 10px;
  border-left: 4px solid #ff007f;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 10000;
  transform: translateY(20px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.mdc-toast.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

/* Song Like Button & Hearts */
.song-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 0, 127, 0.25);
  background: rgba(255, 0, 127, 0.06);
  color: #ff007f;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.song-like-btn:hover {
  transform: scale(1.05);
  background: rgba(255, 0, 127, 0.15);
  box-shadow: 0 4px 12px rgba(255, 0, 127, 0.2);
}

.song-like-btn.liked {
  background: #ff007f;
  color: #fff;
  border-color: #ff007f;
}

.song-like-btn.liked svg {
  fill: #fff;
}

.song-play-count {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--text-muted, #71717a);
  margin-left: 0.5rem;
}

/* WhatsApp post-purchase action button */
.btn-whatsapp-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.1rem 2rem;
  border-radius: 14px;
  background: #25D366;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
}

.btn-whatsapp-order:hover {
  background: #20bd5a;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45);
  color: #ffffff;
}

/* ==========================================================================
   Compact 2-Column Marketplace Product Grid (Shopee / Tokopedia Style)
   ========================================================================== */
.market-toolbar {
  margin-bottom: 24px;
}

.market-search-box {
  position: relative;
  margin-bottom: 14px;
}

.market-search-input {
  width: 100%;
  padding: 12px 18px 12px 42px;
  border-radius: 14px;
  border: 1px solid rgba(168, 85, 247, 0.25);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  color: var(--text, #18181b);
  font-size: 0.92rem;
  outline: none;
  transition: all 0.2s ease;
}

.dark .market-search-input {
  background: rgba(24, 18, 44, 0.85);
  border-color: rgba(168, 85, 247, 0.35);
  color: #f4f4f5;
}

.market-search-input:focus {
  border-color: #9333ea;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

.market-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted, #71717a);
  pointer-events: none;
}

.market-filter-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.market-filter-chips::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  white-space: nowrap;
  padding: 7px 15px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid rgba(168, 85, 247, 0.2);
  background: rgba(255, 255, 255, 0.7);
  color: var(--text, #3f3f46);
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.dark .filter-chip {
  background: rgba(26, 20, 48, 0.7);
  color: #d4d4d8;
  border-color: rgba(168, 85, 247, 0.3);
}

.filter-chip.active, .filter-chip:hover {
  background: linear-gradient(135deg, #9333ea, #c084fc);
  color: #ffffff;
  border-color: #9333ea;
  box-shadow: 0 4px 12px rgba(147, 51, 234, 0.25);
}

/* 3-Package Symmetric Responsive Grid */
.compact-market-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .compact-market-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (min-width: 980px) {
  .compact-market-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

/* Compact Card */
.market-card {
  background: #ffffff;
  border: 1px solid rgba(168, 85, 247, 0.16);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.24s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.24s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  position: relative;
}

.dark .market-card {
  background: rgba(20, 15, 38, 0.9);
  border-color: rgba(168, 85, 247, 0.26);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.market-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(112, 0, 255, 0.16);
  border-color: rgba(168, 85, 247, 0.5);
}

.market-card.popular-card {
  border: 2px solid #b60089;
  box-shadow: 0 6px 24px rgba(182, 0, 137, 0.16);
}

.dark .market-card.popular-card {
  border-color: #ec4899;
  box-shadow: 0 6px 28px rgba(236, 72, 153, 0.22);
}

.market-card-thumb {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #f4f4f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dark .market-card-thumb {
  background: #18122c;
}

.market-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.market-card:hover .market-card-thumb img {
  transform: scale(1.05);
}

/* Realistic Mini Mockup Art Inside Card Thumb */
.theme-mockup-canvas {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  position: relative;
  box-sizing: border-box;
}

.phone-mockup-frame {
  width: 68%;
  height: 86%;
  border-radius: 18px;
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  background: #111;
}

.phone-mockup-screen {
  flex: 1;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  position: relative;
}

/* Discount Badge */
.badge-discount {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(254, 242, 242, 0.95);
  color: #ef4444;
  font-weight: 800;
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid rgba(239, 68, 68, 0.25);
  z-index: 2;
}

.dark .badge-discount {
  background: rgba(69, 10, 10, 0.88);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.45);
}

/* Promo Tag Bottom Left */
.badge-campaign {
  position: absolute;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.62rem;
  padding: 3px 8px;
  border-radius: 0 8px 0 0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 2px -2px 6px rgba(0,0,0,0.15);
}

/* Card Body */
.market-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

/* Title */
.market-card-title {
  font-size: 1.15rem;
  line-height: 1.35;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--text, #27272a);
}

.dark .market-card-title {
  color: #f4f4f5;
}

/* Price row */
.market-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(168, 85, 247, 0.12);
}

.market-active-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: #9333ea;
  font-family: 'MuseoModerno', sans-serif;
}

.dark .market-active-price {
  color: #c084fc;
}

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

/* Package feature list */
.package-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.package-features li {
  font-size: 0.85rem;
  color: var(--text-muted, #71717a);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}

.dark .package-features li {
  color: #d4d4d8;
}

.package-features li::before {
  content: "✓";
  color: #9333ea;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.dark .package-features li::before {
  color: #c084fc;
}

/* Action button row */
.market-card-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.btn-card-cart-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(168, 85, 247, 0.3);
  background: rgba(168, 85, 247, 0.08);
  color: #9333ea;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.dark .btn-card-cart-icon {
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.4);
  background: rgba(168, 85, 247, 0.15);
}

.btn-card-cart-icon:hover {
  background: #9333ea;
  color: #ffffff;
  transform: scale(1.05);
}

.btn-card-buy-fast {
  flex: 1;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  background: linear-gradient(135deg, #7000ff, #ff007f);
  color: #ffffff;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: opacity 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-card-buy-fast:hover {
  opacity: 0.94;
  transform: translateY(-1px);
}

/* Responsive Modal Adjustments for Laptops & Mobile screens */
@media (max-height: 740px) {
  .customer-modal-overlay {
    padding: 0.75rem 0.5rem;
  }
  .customer-modal {
    padding: 1.1rem 1.25rem 1rem;
    max-height: calc(100vh - 1.25rem);
    max-height: calc(100dvh - 1.25rem);
  }
  .customer-modal-header {
    margin-bottom: 0.6rem;
  }
  .customer-modal-header h3 {
    font-size: 1.15rem;
  }
  .auth-tabs {
    margin-bottom: 0.6rem;
  }
  .customer-form-group {
    margin-bottom: 0.5rem;
  }
  .customer-form-group input {
    padding: 0.48rem 0.75rem;
    font-size: 0.85rem;
  }
  .customer-modal-actions {
    margin-top: 0.65rem;
  }
  .btn-google-auth {
    padding: 0.52rem 0.8rem;
    margin-bottom: 0.5rem;
    font-size: 0.84rem;
  }
  .auth-divider {
    margin: 0.5rem 0;
  }
}
