/* ============================================================================
 * SMM-SALSABILMUS — Official Modern Design System (Red & Dark VIP Edition)
 * Website: https://salsabilmus.com
 * ============================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg-primary: #0a0d14;
  --bg-secondary: #10141f;
  --bg-card: #151a28;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-red: rgba(229, 9, 20, 0.25);
  --accent-red: #E50914;
  --accent-red-hover: #b91c1c;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: #f1f5f9;
  -webkit-font-smoothing: antialiased;
}

.font-mono-code {
  font-family: 'JetBrains Mono', monospace;
}

/* Red Brand Gradient */
.brand-gradient {
  background: linear-gradient(135deg, #e50914 0%, #b91c1c 50%, #7f1d1d 100%);
}

.brand-gradient-hover:hover {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #991b1b 100%);
}

.brand-text-gradient {
  background: linear-gradient(135deg, #ff4d4d 0%, #e50914 50%, #b91c1c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glassmorphism Surface Cards */
.surface-card {
  background: rgba(21, 26, 40, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.surface-card:hover {
  border-color: rgba(229, 9, 20, 0.4);
  transform: translateY(-2px);
}

.surface-card-clean {
  background: rgba(21, 26, 40, 0.95);
  border: 1px solid var(--border-subtle);
}

/* Light Card Style for Service Showcase */
.showcase-card-light {
  background: #ffffff;
  color: #0f172a;
  border-radius: 1.25rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
}

.showcase-card-light:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 35px -10px rgba(229, 9, 20, 0.18), 0 10px 15px -3px rgba(0, 0, 0, 0.06);
  border-color: rgba(229, 9, 20, 0.35);
}

/* Red Buttons */
.btn-red-primary {
  background: linear-gradient(135deg, #e50914 0%, #c81e1e 100%);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 10px 20px -5px rgba(229, 9, 20, 0.4);
  transition: all 0.2s ease;
}

.btn-red-primary:hover {
  background: linear-gradient(135deg, #f02828 0%, #dc2626 100%);
  box-shadow: 0 14px 28px -5px rgba(229, 9, 20, 0.55);
  transform: translateY(-1px);
}

/* Inputs & Form Controls */
.form-input-dark {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #f8fafc;
  border-radius: 0.75rem;
  padding: 0.65rem 0.95rem;
  font-size: 0.875rem;
  outline: none;
  transition: all 0.2s ease;
}

.form-input-dark:focus {
  border-color: #e50914;
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.2);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0a0d14;
}
::-webkit-scrollbar-thumb {
  background: #262e42;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #e50914;
}

/* Printable Invoice Styles (Standard Order Invoice & Corporate Subscriptions Open Bill Invoice) */
@media print {
  body * {
    visibility: hidden !important;
  }
  #orderInvoicePrintContainer, #orderInvoicePrintContainer *,
  #subInvoicePrintArea, #subInvoicePrintArea * {
    visibility: visible !important;
  }
  #orderInvoicePrintContainer, #subInvoicePrintArea {
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    width: 100vw !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 32px !important;
    background: #ffffff !important;
    color: #0f172a !important;
    box-shadow: none !important;
    border: none !important;
    z-index: 999999 !important;
  }
  .no-print, .print\:hidden {
    display: none !important;
  }
}


/* ============================================================================
 * CUSTOM DRAGGABLE CIRCULAR FLOATING TAWK.TO BUBBLE (MOBILE & DESKTOP)
 * ============================================================================ */

/* Hide default bulky rectangular Tawk.to launcher completely */
.tawk-min-container,
#tawk-default-container,
div[id^="tawk-"] button,
.tawk-button-circle,
.tawk-badge,
iframe[title*="chat widget" i]:not([style*="width: 100%"]):not([style*="width: 3"]),
iframe[title*="chat" i][style*="height: 4"],
iframe[title*="chat" i][style*="height: 5"],
iframe[title*="chat" i][style*="height: 60px"] {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Floating Circular Chat Bubble */
#tawkDraggableBubble {
  position: fixed;
  z-index: 99998;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e50914 0%, #b20710 100%);
  box-shadow: 0 10px 25px -4px rgba(229, 9, 20, 0.55), 0 0 0 2px rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.15s ease;
}

#tawkDraggableBubble:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 30px -4px rgba(229, 9, 20, 0.7), 0 0 0 2.5px rgba(255, 255, 255, 0.35);
}

#tawkDraggableBubble.bubble-dragging {
  cursor: grabbing !important;
  transform: scale(1.15) !important;
  box-shadow: 0 18px 40px 0 rgba(229, 9, 20, 0.8), 0 0 0 3.5px rgba(255, 255, 255, 0.5) !important;
  transition: none !important;
}

#tawkDraggableBubble .bubble-icon {
  color: #ffffff;
  font-size: 22px;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

/* Online Pulse Dot */
#tawkDraggableBubble .online-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #0a0d14;
  box-shadow: 0 0 8px #10b981;
  pointer-events: none;
}

#tawkDraggableBubble .online-dot::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid #10b981;
  animation: tawk-pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  pointer-events: none;
}

@keyframes tawk-pulse-ring {
  0% { transform: scale(0.9); opacity: 1; }
  70% { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1.7); opacity: 0; }
}

@media (max-width: 640px) {
  #tawkDraggableBubble {
    width: 52px;
    height: 52px;
  }
  #tawkDraggableBubble .bubble-icon {
    font-size: 20px;
  }
}

/* ============================================================================
 * RESPONSIVE DATA TABLES & TOUCH SLIDING FOR MOBILE
 * ============================================================================ */
.table-responsive {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  display: block !important;
  position: relative !important;
}

.table-responsive table {
  min-width: 720px !important;
  width: 100% !important;
  border-collapse: collapse !important;
}

.table-responsive th,
.table-responsive td {
  white-space: nowrap !important;
}

.table-responsive td.cell-wrap,
.table-responsive th.cell-wrap {
  white-space: normal !important;
  min-width: 180px !important;
}

/* Hard Mobile Isolation (< 1024px): prevent desktop navigation leakage */
@media (max-width: 1023px) {
  #guestDesktopNav,
  #customerDesktopNav {
    display: none !important;
  }
}

/* Hide cluttered top info bar on mobile screens (< 768px) */
@media (max-width: 767px) {
  #topContactInfoBar {
    display: none !important;
  }
}

