/* 
 * ==========================================
 * Sonneta Store Premium Monochrome CSS Style
 * Minimalist, High-Contrast Black & White Design
 * ==========================================
 */

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  overflow-x: hidden;
  position: relative;
}

input, select, textarea, button {
  -webkit-appearance: none;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  width: 100%;
  overflow-x: hidden;
  position: relative;
  scrollbar-gutter: stable;
  overflow-y: scroll !important;
}


/* Custom B&W Variables */
:root {
  --bg-color: #000000;
  --card-bg: #090909;
  --card-bg-hover: #121212;
  --card-border: rgba(255, 255, 255, 0.09);
  --card-border-hover: rgba(255, 255, 255, 0.5);
  
  --bg-card: var(--card-bg);
  --border-color: var(--card-border);
  
  --text-color: #ffffff;
  --text-muted: #8e8e93;
  --text-dark: #48484a;
  
  --primary-color: #ffffff;
  --primary-text: #000000;
  --primary-hover: #e5e5ea;
  --primary-glow: rgba(255, 255, 255, 0.08);
  
  --secondary-color: rgba(255, 255, 255, 0.05);
  --secondary-hover: rgba(255, 255, 255, 0.1);
  --secondary-border: rgba(255, 255, 255, 0.15);
  
  --accent-glow: rgba(255, 255, 255, 0.1);
  
  --container-max-width: 1200px;
  --transition-speed: 0.25s;
  --glass-blur: 14px;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: #2c2c2e;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* Helper Layout Container */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Luxury B&W Ambient Spotlights */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(160px);
  z-index: -1;
  opacity: 0.2;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.orb-1 {
  top: -10%;
  left: 15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, transparent 70%);
}
.orb-2 {
  top: 40%;
  right: 5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
}

/* ==========================================
 * Typography & Headers
 * ==========================================
 */
h1, h2, h3, h4 {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.text-accent {
  color: #ffffff;
  font-weight: 800;
}

/* ==========================================
 * Buttons & Interactions
 * ==========================================
 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px; /* Slightly sharper corner for premium feel */
  cursor: pointer;
  transition: all var(--transition-speed) cubic-bezier(0.25, 0.8, 0.25, 1);
  white-space: nowrap;
  font-size: 0.92rem;
}
.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.btn-large svg {
  width: 20px;
  height: 20px;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--primary-text);
  border: 1px solid var(--primary-color);
  padding: 0.8rem 1.6rem;
}
.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px var(--primary-glow);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: var(--text-color);
  border: 1px solid var(--secondary-border);
  padding: 0.8rem 1.6rem;
}
.btn-secondary:hover {
  background: var(--secondary-hover);
  border-color: #ffffff;
  transform: translateY(-1px);
}

.btn-large {
  padding: 1rem 2rem;
  border-radius: 10px;
  font-size: 1rem;
}

/* ==========================================
 * Header / Navigation Bar
 * ==========================================
 */
/* Global body clearance spacing for floating header on desktop */
body {
  padding-top: 104px;
}

.header {
  position: fixed !important;
  top: 1.5rem !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 92% !important;
  max-width: 1200px !important;
  height: 64px !important;
  z-index: 1000 !important;
  background: rgba(18, 18, 24, 0.6) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 100px !important;
  padding: 0 1.5rem !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6) !important;
  margin: 0 !important;
  transition: all 0.55s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: block !important;
}

/* Auto-hide desktop header when scrolling down */
@media (min-width: 769px) {
  .header.header-hidden {
    transform: translate(-50%, -120px) !important;
    opacity: 0 !important;
    box-shadow: none !important;
    pointer-events: none !important;
  }
}

.header-container {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: center !important;
  height: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}

/* Header Column Wrappers for Perfect Layout Centering */
.header-left {
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center !important;
}

.nav {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.header-right {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 0.8rem !important;
}

/* Mobile Menu Toggle Button base */
.menu-toggle-btn {
  display: none;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.logo-image {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(255, 255, 255, 0.15));
}
.logo-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
}
.logo-link {
  text-decoration: none;
  color: inherit;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}
.nav-link {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.88rem;
  transition: all var(--transition-speed) ease;
  padding: 0.4rem 0.6rem;
  letter-spacing: -0.01em;
  position: relative;
}
.nav-link:hover {
  color: #ffffff;
}
.nav-item.active .nav-link {
  color: #ffffff !important;
  font-weight: 600 !important;
  background: transparent !important; /* Highlighted purely by premium text color */
}

/* Premium White bot button styled like NextSense capsule */
.btn-header {
  background: #ffffff !important;
  color: #0a0a0f !important;
  border: none !important;
  border-radius: 100px !important;
  padding: 0.5rem 1.25rem !important;
  font-family: 'Outfit', sans-serif !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  text-transform: none !important;
  letter-spacing: -0.01em !important;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.12) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  gap: 0.4rem !important;
}
.btn-header:hover {
  background: #f5f5f7 !important;
  transform: translateY(-1px) scale(1.02) !important;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.25) !important;
  color: #0a0a0f !important;
}
.btn-header:active {
  transform: translateY(0) scale(0.98) !important;
}
.btn-header svg {
  width: 13px !important;
  height: 13px !important;
  stroke-width: 3px !important;
}

/* Feather Shopping Bag Button */
.cart-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  text-decoration: none !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer !important;
}
.cart-btn:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  transform: translateY(-1px) scale(1.04) !important;
}
.cart-btn:active {
  transform: translateY(0) scale(0.96) !important;
}
.cart-btn svg {
  width: 16px !important;
  height: 16px !important;
  stroke-width: 2.2px !important;
}

/* ==========================================
 * Hero Section
 * ==========================================
 */
.hero-section {
  padding: 5rem 0 4rem;
  position: relative;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4rem;
  align-items: center;
}

.hero-brand-logo {
  margin-bottom: 2rem;
  text-align: left;
}
.hero-logo-img {
  max-width: 280px;
  height: auto;
  filter: drop-shadow(0 5px 15px rgba(255, 255, 255, 0.08));
  animation: logo-float 6s ease-in-out infinite;
}

@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.hero-badge-container {
  margin-bottom: 1.5rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 0.4rem 1rem;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge-dot {
  width: 8px;
  height: 8px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 6px #ffffff;
  animation: pulse-dot 1.8s infinite;
}

.hero-title {
  font-size: 3.6rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.04em;
}
.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}
.hero-subtitle strong {
  color: var(--text-color);
  font-weight: 600;
}

.hero-ctas {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 3.5rem;
}

.btn-primary.btn-large {
  background: #0ace00 !important;
  color: #ffffff !important;
  border: 1px solid #0ace00 !important;
  font-weight: 700 !important;
  position: relative !important;
  overflow: hidden !important;
  transition: all 0.3s ease-in-out !important;
  z-index: 1 !important;
  animation: pulse-btn-glow-green 2.5s infinite ease-in-out !important;
}

.btn-primary.btn-large span,
.btn-primary.btn-large svg {
  position: relative !important;
  z-index: 2 !important;
}

.btn-primary.btn-large::before,
.btn-primary.btn-large::after {
  content: '' !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 160px !important;
  height: 160px !important;
  background: rgba(255, 255, 255, 0.22) !important;
  border-radius: 50% !important;
  filter: blur(12px) !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

.btn-primary.btn-large::before {
  transform: translate(-50%, -50%) scale(0) !important;
  animation: btn-ripple-bg 3.6s infinite cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.btn-primary.btn-large::after {
  transform: translate(-50%, -50%) scale(0) !important;
  animation: btn-ripple-bg 3.6s infinite cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  animation-delay: 1.8s !important;
}

.btn-primary.btn-large:hover {
  background: #09b800 !important;
  border-color: #09b800 !important;
  color: #ffffff !important;
  transform: translateY(-1px) scale(1.03) !important;
  box-shadow: 0 0 20px 6px rgba(10, 206, 0, 0.8) !important;
  animation: none !important;
}

.hero-benefits {
  display: flex;
  gap: 2.5rem;
}
.benefit-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.benefit-icon {
  width: 18px;
  height: 18px;
  color: #ffffff;
  flex-shrink: 0;
}
.benefit-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ==========================================
 * B&W Interactive Telegram Bot Mockup
 * ==========================================
 */
.hero-mockup {
  display: flex;
  justify-content: center;
  position: relative;
}

/* Fluffy Mascot Premium Presentation */
.mascot-mockup {
  align-items: center;
  width: 100%;
}

.mascot-image {
  max-width: 100%;
  height: auto;
  max-height: 650px;
  aspect-ratio: 639 / 737;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.8));
  animation: floatMascot 5s ease-in-out infinite;
  transform-origin: center bottom;
}

@keyframes floatMascot {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.phone-frame {
  width: 320px;
  height: 610px;
  border-radius: 36px;
  background: #000000;
  border: 8px solid #222222;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9),
              0 0 0 1px rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 16px;
  background: #222222;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  z-index: 10;
}

.phone-screen {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  background: #070707;
  padding-top: 15px;
}

/* B&W Simulated Telegram App Top Bar */
.tg-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.8rem;
  background: #111111;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.tg-header-back svg {
  width: 20px;
  height: 20px;
  color: #ffffff;
}
.tg-header-avatar {
  width: 34px;
  height: 34px;
  background: #ffffff;
  color: #000000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}
.tg-header-info {
  flex-grow: 1;
  min-width: 0;
}
.tg-header-name {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
}
.verified-icon {
  width: 13px;
  height: 13px;
  color: #ffffff;
  flex-shrink: 0;
}
.tg-header-status {
  font-size: 0.68rem;
  color: #8e8e93;
}
.tg-header-more {
  display: flex;
  gap: 2px;
}
.tg-header-more .dot {
  width: 3px;
  height: 3px;
  background: var(--text-muted);
  border-radius: 50%;
}

.tg-chat-area {
  flex-grow: 1;
  padding: 0.8rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  font-size: 0.76rem;
  line-height: 1.4;
  scroll-behavior: smooth;
}

/* Chat Date Indicator */
.chat-date {
  align-self: center;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  font-size: 0.65rem;
}

/* Chat Bubbles B&W */
.msg {
  max-width: 85%;
  border-radius: 12px;
  padding: 0.6rem 0.8rem;
  position: relative;
  animation: message-in 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.bot-msg {
  align-self: flex-start;
  background: #111111;
  color: #ffffff;
  border-bottom-left-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.user-msg {
  align-self: flex-end;
  background: #ffffff;
  color: #000000;
  border-bottom-right-radius: 2px;
}

.msg-time {
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.4);
  text-align: right;
  margin-top: 0.3rem;
}
.user-msg .msg-time {
  color: rgba(0, 0, 0, 0.5);
}

/* Typing indicator */
.typing-msg {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0.6rem 0.8rem;
  background: #111111;
  border-radius: 12px;
  border-bottom-left-radius: 2px;
  align-self: flex-start;
  max-width: 60px;
}
.typing-dot {
  width: 5px;
  height: 5px;
  background: #ffffff;
  border-radius: 50%;
  animation: typing-bounce 1.4s infinite ease-in-out;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

/* Interactive B&W Buttons */
.tg-quick-menu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 0.6rem 0.8rem;
  background: #090909;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.tg-menu-btn {
  background: #111111;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}
.tg-menu-btn:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

/* Chat Input Mock */
.tg-input-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.8rem;
  background: #111111;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.tg-input-placeholder {
  flex-grow: 1;
  font-size: 0.75rem;
  color: var(--text-dark);
}
.tg-input-icon svg, .tg-input-icon-send svg {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}
.tg-input-icon-send svg {
  color: #ffffff;
}

/* ==========================================
 * Advantages / Features Section
 * ==========================================
 */
.advantages-section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3.5rem;
}
.section-title {
  font-size: 2.3rem;
  margin-bottom: 1rem;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.advantage-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 2.2rem 1.8rem;
  border-radius: 12px;
  transition: all var(--transition-speed) ease;
}
.advantage-card:hover {
  background: var(--card-bg-hover);
  border-color: var(--card-border-hover);
}

.adv-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  margin-bottom: 1.5rem;
}
.adv-icon-wrapper svg {
  width: 22px;
  height: 22px;
}

.adv-title {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}
.adv-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ==========================================
 * Catalog Controls (Search & Filters)
 * ==========================================
 */
.catalog-section {
  padding: 4rem 0 5rem;
}

.catalog-controls {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

/* Advanced Search Box */
.search-box {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}
.search-icon {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}
#searchInput {
  width: 100%;
  background: #090909;
  border: 1px solid var(--card-border);
  border-radius: 100px !important;
  padding: 1rem 3rem 1rem 3.2rem;
  color: white;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.95rem;
  transition: all var(--transition-speed) ease;
}
#searchInput:focus {
  outline: none;
  border-color: #ffffff;
  background: #0d0d0d;
}
.clear-search {
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  display: none;
}
.clear-search:hover {
  color: white;
}

/* Category Filter Tabs B&W */
.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.tab-btn {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--secondary-border);
  padding: 0.55rem 1.2rem;
  border-radius: 6px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}
.tab-btn:hover {
  color: var(--text-color);
  border-color: rgba(255, 255, 255, 0.4);
}
.tab-btn.active {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

/* Catalog Grid & Product Cards B&W */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2.2rem;
  min-height: 700px;
}

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  position: relative;
  text-align: left !important;
  transition: all var(--transition-speed) ease;
}
.product-card:hover {
  background: var(--card-bg-hover);
  border-color: var(--card-border-hover);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.02);
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.product-card-image-wrapper {
  width: 100%;
  height: 0;
  padding-bottom: 62.5%;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 1.2rem;
  position: relative;
  background: linear-gradient(90deg, #090909 25%, #151515 50%, #090909 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite linear;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color var(--transition-speed) ease;
}

.product-card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-card-image {
  transform: scale(1.05); /* Beautiful modern micro-zoom */
}

.product-card:hover .product-card-image-wrapper {
  border-color: rgba(255, 255, 255, 0.15);
}

.product-badge {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.2rem;
}

.product-title {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
  text-align: left !important;
}
.product-desc {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  text-align: left !important;
}

/* Dynamic price plan selector B&W */
.price-section {
  position: relative;
  background: #000000;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  margin-bottom: 1.5rem;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.price-section:hover {
  border-color: rgba(255, 255, 255, 0.4);
}
.price-plan-select {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  -webkit-appearance: menulist !important;
}
.price-plan-select option {
  background: #0d0d0d;
  color: white;
}

/* Custom styled visible select elements */
.price-select-custom {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.price-select-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.selected-duration {
  color: var(--text-color);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
}
.select-chevron {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  transition: transform 0.2s ease, color 0.2s ease;
}
.price-section:hover .select-chevron {
  color: white;
  transform: translateY(1px);
}

.price-display {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-top: 0.6rem;
}
.current-price {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: white;
}
.old-price {
  font-size: 0.88rem;
  text-decoration: line-through;
  color: var(--text-dark);
}

.product-features {
  list-style: none;
  margin-bottom: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}
.feature-bullet {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.4;
}
.feature-bullet svg {
  width: 14px;
  height: 14px;
  color: #ffffff;
  flex-shrink: 0;
  margin-top: 2px;
}



/* Catalog Search Fallback B&W */
.no-results {
  text-align: center;
  padding: 4rem 1rem;
}
.no-results-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.no-results h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.no-results p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* ==========================================
 * How It Works Timeline Section
 * ==========================================
 */
.how-it-works-section {
  padding: 5rem 0;
}

.steps-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
  position: relative;
  margin-bottom: 5rem;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  position: relative;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid #ffffff;
  color: #ffffff;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.step-title {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}
.step-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* Timeline Connective Line B&W */
@media (min-width: 900px) {
  .steps-timeline::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 40px;
    right: 40px;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    z-index: -1;
  }
}

.timeline-cta {
  display: flex;
  justify-content: center;
  padding: 1rem 0;
}
.timeline-cta-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 28px !important;
  padding: 3.5rem 3rem;
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
}
.timeline-cta-box h3 {
  font-size: 1.8rem;
  margin-top: 0;
  margin-bottom: 1rem;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
}
.timeline-cta-box p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-top: 0;
  margin-bottom: 2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ==========================================
 * FAQ Accordion Section
 * ==========================================
 */
.faq-section {
  padding: 4rem 0 5rem;
}

.container.faq-container {
  max-width: 800px !important;
}

.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 15px;
  overflow: hidden;
  transition: border-color var(--transition-speed) ease, background var(--transition-speed) ease;
  transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform, background, border-color;
}

.faq-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.3rem 1.8rem;
  background: transparent;
  border: none;
  color: white;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  outline: none;
  transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.faq-trigger:hover {
  background: rgba(255, 255, 255, 0.02);
}

.faq-arrow {
  width: 18px;
  height: 18px;
  color: #ffffff;
  transition: transform var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
  will-change: max-height;
  transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.faq-answer {
  padding: 0 1.8rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Active FAQ state B&W */
.faq-item.active {
  border-color: var(--card-border-hover);
  background: var(--card-bg-hover);
}
.faq-item.active .faq-arrow {
  transform: rotate(180deg);
}

/* ==========================================
 * Reviews Section
 * ==========================================
 */
.reviews-section {
  padding: 4rem 0 5rem;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.review-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 15px;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #000000;
  background-color: #ffffff;
  flex-shrink: 0;
}
.review-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.review-name {
  font-size: 0.95rem;
  font-weight: 700;
}
.review-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
}
.verified-tag {
  color: #ffffff;
  font-weight: 600;
}
.review-date {
  color: var(--text-muted);
}

.rating-stars {
  color: #ffffff;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
}

.review-text {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  font-style: italic;
}

.review-product-badge {
  align-self: stretch !important;
  width: 100% !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  font-size: 0.78rem !important;
  color: var(--text-muted) !important;
  padding: 0.6rem 1rem !important;
  border-radius: 12px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  box-sizing: border-box !important;
  margin-top: auto !important;
}

.reviews-more {
  text-align: center;
}
.reviews-more p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}

/* ==========================================
 * Footer Section
 * ==========================================
 */
.footer {
  background: #000000;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4.5rem 0 calc(2rem + env(safe-area-inset-bottom));
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  max-width: 380px;
}
.footer-tagline {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer-links-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.footer-links-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: white;
}
.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.footer-links-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color var(--transition-speed) ease;
}
.footer-links-col a:hover {
  color: white;
}
.footer-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
}
.footer-status-badge::before {
  content: '';
  width: 5px;
  height: 5px;
  background: #30d158;
  border-radius: 50%;
  box-shadow: 0 0 4px #30d158;
  transition: all var(--transition-speed) ease;
}

.footer-status-badge.offline {
  border-color: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}
.footer-status-badge.offline::before {
  background: #8e8e93;
  box-shadow: none;
}
.footer-status-badge.online::before {
  background: #30d158;
  box-shadow: 0 0 4px #30d158;
}


.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 2rem;
}
.footer-copy {
  color: var(--text-dark);
  font-size: 0.72rem;
  line-height: 1.6;
  text-align: center;
}

/* ==========================================
 * Keyframes & Custom Animations
 * ==========================================
 */
@keyframes pulse-dot {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes typing-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes message-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes chat-fade-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-fade-in {
  animation: chat-fade-in 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

/* ==========================================
 * Responsive Breakpoints (Media Queries)
 * ==========================================
 */
@media (max-width: 1024px) {
  html {
    font-size: 15px;
  }
  .hero-container {
    grid-template-columns: 1fr !important;
    gap: 3.5rem;
    text-align: center;
  }
  .hero-content,
  .hero-mockup {
    width: 100% !important;
  }
  .mascot-mockup {
    margin-top: 2rem;
  }
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-ctas {
    justify-content: center;
  }
  .hero-benefits {
    justify-content: center;
    flex-wrap: nowrap;
    gap: 2.5rem;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .footer-brand {
    max-width: 100%;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem; /* Safe padding for notches and screen edges */
  }
  .reviews-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  .review-status {
    flex-wrap: wrap !important;
  }
  .hero-container {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
    text-align: center;
  }
  .hero-benefits {
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.8rem !important;
  }
  .hero-content,
  .hero-mockup {
    width: 100% !important;
  }
  .mascot-mockup {
    margin-top: 1.5rem;
  }
  body {
    padding-top: 88px !important;
  }
  .header {
    height: auto !important;
    min-height: 56px !important;
    top: 1rem !important;
    width: 92% !important;
    border-radius: 28px !important;
    padding: 0.4rem 1.2rem !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
  }
  .header-container {
    width: 100% !important;
    height: auto !important;
    min-height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .header-left {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }
  .header-right {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0.8rem !important;
  }
  .btn-header {
    display: none !important; /* Hide bot button on mobile to save vertical space */
  }
  
  /* Mobile Menu Toggle Button responsive styles */
  .menu-toggle-btn {
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 110;
  }
  .burger-bar {
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
  }
  .menu-toggle-btn.active .burger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .menu-toggle-btn.active .burger-bar:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle-btn.active .burger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav {
    display: none !important;
    justify-content: center;
    width: 100% !important;
    margin-top: 1rem !important;
  }
  .nav.open {
    display: flex !important;
  }
  .nav::-webkit-scrollbar {
    display: none; /* Hide scrollbar for premium aesthetic */
  }
  .nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 320px;
    gap: 0.5rem;
    padding: 0.4rem 0;
    margin: 0 auto;
  }
  .nav-item {
    width: 100%;
    text-align: center;
  }
  .nav-link {
    display: block;
    width: 100%;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    transition: all 0.2s ease;
  }
  .nav-item.active .nav-link {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
  }

  /* Make all buttons smaller on mobile */
  .btn {
    font-size: 0.8rem !important;
    gap: 0.4rem !important;
  }
  .btn svg {
    width: 14px !important;
    height: 14px !important;
  }
  .btn-primary, .btn-secondary {
    padding: 0.55rem 1.1rem !important;
  }
  .btn-card-buy {
    padding: 0.95rem 1.4rem !important;
    font-size: 0.95rem !important;
    border-radius: 12px !important;
    letter-spacing: 0.03em !important;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15) !important;
  }
  .btn-card-buy:active {
    transform: scale(0.97) !important;
  }
  .checkout-submit-btn {
    padding: 0.95rem 1.4rem !important;
    font-size: 0.95rem !important;
    letter-spacing: 0.03em !important;
  }
  .checkout-submit-btn:active {
    transform: scale(0.97) !important;
  }

  .hero-title {
    font-size: 2.2rem;
  }
  .hero-section {
    padding: 3rem 0 2rem;
  }
  .advantages-grid {
    grid-template-columns: 1fr;
  }
  .catalog-controls {
    gap: 1.2rem;
  }
  .filter-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
  }
  .tab-btn {
    flex-shrink: 0;
    padding: 0.4rem 0.8rem !important;
    font-size: 0.76rem !important;
  }
  .steps-timeline {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-links-group {
    grid-template-columns: 1fr;
    gap: 2.2rem;
    text-align: center;
  }
  .footer-links-col {
    align-items: center;
  }
  .btn-large {
    padding: 1rem 2rem !important;
    font-size: 1rem !important;
    width: auto;
  }
  .hero-ctas {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 1rem;
  }
  
  /* Mobile Typography, Spacing & Left-Aligned Text Alignment Optimization */
  .hero-subtitle {
    text-align: center !important;
  }
  .section-title {
    font-size: 1.85rem !important;
    line-height: 1.3 !important;
  }
  .section-subtitle {
    font-size: 0.95rem !important;
    line-height: 1.55 !important;
    margin-bottom: 2rem !important;
    text-align: center !important;
  }
  [data-content-key="process_section_subtitle"],
  [data-content-key="adv_section_subtitle"] {
    text-align: center !important;
  }
  .timeline-cta-box {
    padding: 2.2rem 1.25rem !important;
    border-radius: 20px !important;
  }
  .timeline-cta-box h3 {
    font-size: 1.45rem !important;
    margin-bottom: 0.7rem !important;
    line-height: 1.3 !important;
  }
  .timeline-cta-box p {
    font-size: 0.88rem !important;
    margin-bottom: 1.6rem !important;
    line-height: 1.55 !important;
    max-width: 100% !important;
    text-align: center !important;
  }
  .deal-empty-state {
    padding: 2.5rem 1.25rem !important;
    margin: 1.5rem auto 1rem !important;
    border-radius: 28px !important;
    width: calc(100% - 2.5rem) !important;
  }
  .deal-empty-state h2 {
    font-size: 1.35rem !important;
  }
  .deal-empty-state p {
    font-size: 0.88rem !important;
    margin-bottom: 1.6rem !important;
    line-height: 1.55 !important;
    text-align: left !important;
  }
  .faq-trigger {
    padding: 1.1rem 1.2rem !important;
  }
  .faq-question {
    font-size: 0.92rem !important;
    line-height: 1.4 !important;
  }
  .faq-answer {
    padding: 0 1.2rem 1.2rem !important;
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
  }
  .review-card {
    padding: 1.4rem 1.1rem !important;
    border-radius: 20px !important;
  }
  .review-text {
    font-size: 0.85rem !important;
    line-height: 1.55 !important;
  }

  /* Safe Scaling for Mascot and Mockups */
  .mascot-image {
    max-height: 480px;
  }
  .phone-frame {
    width: 295px;
    height: 570px;
    border-width: 6px;
  }
  .phone-notch {
    width: 110px;
    height: 14px;
  }

  /* Mobile Sidebar Absolute Overlays */
  .worker-dashboard-container {
    grid-template-columns: 1fr !important;
    position: relative;
    overflow: hidden;
  }
  .worker-ticket-sidebar {
    position: absolute !important;
    left: 0;
    top: 0;
    width: 100% !important;
    height: 100% !important;
    z-index: 50 !important;
    background: #090909 !important; /* Pure opaque panel background */
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex !important; /* Force displays */
    border-right: none !important;
    box-sizing: border-box;
  }
  .worker-dashboard-container.sidebar-open .worker-ticket-sidebar {
    transform: translateX(0) !important;
  }

  /* Stacked CRUD Product manager */
  .product-manager-layout {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto !important;
    overflow-y: auto !important;
    padding: 1rem !important;
    gap: 1rem !important;
  }
  .operator-products-list {
    height: 380px !important;
  }
  .operator-product-editor {
    height: auto !important;
    overflow-y: visible !important;
  }

  /* 2x2 Analytics cards layout */
  .analytics-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.8rem !important;
  }
  #searchInput {
    border-radius: 28px !important; /* Matches mobile header */
  }
}

/* ==========================================
   DEAL WORKSPACE & DUAL CHAT STYLES
   ========================================== */
.deal-section {
  padding: 4rem 0 5rem;
  position: relative;
}

.deal-workspace {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  margin-top: 2.5rem;
  align-items: stretch;
}

@media (max-width: 1024px) {
  .deal-workspace {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.deal-panel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 660px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  position: relative;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color var(--transition-speed) ease;
}

.deal-panel-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.panel-header {
  padding: 1.1rem 1.4rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.panel-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 0.25rem 0.65rem;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 600;
}

.panel-header-badge.active-badge {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.panel-body {
  flex: 1;
  padding: 1.4rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.15);
  min-height: 0; /* Let flex child shrink inside its wrapper */
}

/* Custom Scrollbar for Panel Body */
.panel-body::-webkit-scrollbar {
  width: 6px;
}
.panel-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
.panel-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}
.panel-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

.panel-footer {
  padding: 1.1rem 1.4rem;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border-color);
}

/* Deal Product Spec summary */
.deal-product-summary {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.deal-prod-info h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.deal-prod-info p {
  color: var(--text-muted);
  font-size: 0.8rem;
}
.deal-prod-price {
  text-align: right;
}
.deal-price-val {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  display: block;
}
.deal-price-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Deal status banner */
.deal-status-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1.2rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 1.2rem;
  transition: all var(--transition-speed) ease;
}

.deal-status-banner.status-waiting {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.deal-status-banner.status-active {
  background: #ffffff;
  border: 1px solid #ffffff;
  color: #000000;
}
.deal-status-banner.status-active .status-indicator {
  background: #000000;
}

.status-label-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px currentColor;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}

.status-step-text {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

/* Chat threads */
.chat-thread-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-top: auto; /* Beautiful bottom alignment without the browser overflow scroll bug */
}

.chat-messages-scroll {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

/* Chat System Messages */
.system-msg-bubble {
  align-self: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 90%;
  margin: 0.4rem 0;
}

/* Shared Dual input form */
.deal-input-form {
  display: flex;
  gap: 0.8rem;
}

.deal-chat-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: #ffffff;
  padding: 0.75rem 1.4rem;
  border-radius: 100px !important;
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: border-color var(--transition-speed) ease;
}

.deal-chat-input:focus {
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-deal-send {
  background: #ffffff;
  color: #000000;
  border: 1px solid #ffffff;
  border-radius: 8px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

.btn-deal-send:hover {
  background: #e5e5ea;
  border-color: #e5e5ea;
  transform: translateY(-1px);
}

.btn-deal-send svg {
  width: 18px;
  height: 18px;
}

/* WORKER OPERATOR DASHBOARD INTERNALS */
.worker-dashboard-container {
  display: grid;
  grid-template-columns: 190px 1fr;
  grid-template-rows: 100%; /* Restricts rows to container's remaining height */
  flex: 1 1 0% !important;
  min-height: 0 !important;
  height: auto !important;
}

.worker-ticket-sidebar {
  border-right: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.01);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem 0.8rem;
  overflow-y: auto; /* Enable scrollbar for large queues of active/archive tickets */
  min-height: 0; /* Constraints ticket list within the grid track height */
  height: 100%; /* Guarantees matching heights and triggers sidebar scrolling */
}



.sidebar-heading {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  padding-left: 0.4rem;
}

.ticket-item {
  position: relative;
  padding: 0.65rem 2.8rem 0.65rem 1.4rem;
  border-radius: 100px !important;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  border: 1px solid transparent;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.ticket-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
}

.ticket-item.active-ticket {
  background: #ffffff;
  color: #000000;
  font-weight: 600;
}

.ticket-item.active-ticket .ticket-meta {
  color: rgba(0, 0, 0, 0.6);
}

.ticket-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticket-meta {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.worker-chat-interface {
  display: flex;
  flex-direction: column;
  height: 100%;
  flex: 1;
  min-height: 0; /* Essential to let panel-body shrink and overflow scroll */
  overflow: hidden; /* Avoid any trailing layouts from overflowing the grid slot */
}

.worker-actions-panel {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1rem 1.4rem;
  background: rgba(255, 255, 255, 0.01);
  border-bottom: 1px solid var(--border-color);
}

.actions-heading {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.actions-buttons-grid {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.btn-action {
  font-size: 0.75rem;
  padding: 0.45rem 0.8rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  border: 1px solid var(--border-color);
  background: transparent;
  color: #ffffff;
}

.btn-action:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-action.btn-action-primary {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.btn-action.btn-action-primary:hover {
  background: #e5e5ea;
  border-color: #e5e5ea;
}

.btn-action:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/* Empty State Styles */
.deal-empty-state {
  text-align: center;
  padding: 4.5rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 28px;
  max-width: 580px;
  margin: 3rem auto 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.deal-empty-icon {
  font-size: 3.5rem;
  margin-bottom: 1.2rem;
  animation: logo-float 4s ease-in-out infinite;
}

.deal-empty-state h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.deal-empty-state p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  line-height: 1.5;
}

/* ==========================================
   SINGLE PANEL & OPERATOR CRM CUSTOMIZATIONS
   ========================================== */
.deal-workspace-single {
  display: flex !important;
  justify-content: center;
  margin-top: 2.5rem;
}

.deal-workspace-single .deal-panel-card {
  width: 100%;
  max-width: 780px;
  height: 680px;
  max-height: calc(100vh - 200px); /* Keeps card beautifully within view on smaller screens */
}

.deal-workspace-operator {
  display: block;
  max-width: 1100px;
  margin: 2.5rem auto 0;
}

.deal-workspace-operator .deal-panel-card {
  width: 100%;
  height: 880px;
  max-height: calc(100vh - 120px); /* Keeps card beautifully within view on smaller screens */
}

.deal-workspace-operator .worker-dashboard-container {
  grid-template-columns: 240px 1fr !important; /* Slightly wider sidebar for CRM feel */
}

/* Operator Empty/Inactive Chat View State */
.operator-empty-chat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
}

.operator-empty-chat-icon {
  font-size: 3rem;
  margin-bottom: 1.2rem;
  opacity: 0.5;
}

.operator-empty-chat h3 {
  font-family: 'Outfit', sans-serif;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.operator-empty-chat p {
  font-size: 0.85rem;
  max-width: 320px;
  line-height: 1.4;
}

/* OPERATOR AUTHENTICATION SCREEN STYLES */
.auth-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  min-height: calc(100vh - 250px);
  position: relative;
  z-index: 10;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: center;
  transition: border-color var(--transition-speed) ease;
}

.auth-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.auth-logo-img {
  width: 28px;
  height: 28px;
}

.auth-logo h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.auth-logo h2 span {
  color: var(--text-muted);
  font-weight: 400;
}

.auth-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.4;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  text-align: left;
}

.auth-error-msg {
  background: rgba(255, 59, 48, 0.1);
  border: 1px solid rgba(255, 59, 48, 0.2);
  color: #ff453a;
  font-size: 0.8rem;
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
}

.auth-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.auth-input-group label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.auth-input-group input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: #ffffff;
  font-family: inherit;
  transition: all var(--transition-speed) ease;
  width: 100%;
}

.auth-input-group input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.06);
  border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.auth-submit-btn {
  margin-top: 0.8rem;
  width: 100%;
}

.auth-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 1rem;
  line-height: 1.4;
}

.auth-hint code {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  color: #ffffff;
  font-family: monospace;
}

/* PREMIUM CHECKOUT MODAL AND PROFILE BOX STYLES */
.checkout-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.checkout-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.checkout-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.checkout-modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.2rem 2rem;
  width: 90%;
  max-width: 460px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  position: relative;
  z-index: 10000;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-align: left;
}

.checkout-modal.active .checkout-modal-card {
  transform: scale(1) translateY(0);
}

.checkout-modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.checkout-modal-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.checkout-modal-header {
  margin-bottom: 1.5rem;
}

.checkout-modal-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
}

.checkout-modal-product {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.checkout-modal-product span {
  color: #ffffff;
  font-weight: 500;
}

.checkout-modal-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.checkout-modal-price {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border-color);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checkout-modal-price .price-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.checkout-modal-price .price-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
}

.checkout-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.checkout-input-group label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.checkout-input-group input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  font-size: 0.92rem;
  color: #ffffff;
  font-family: inherit;
  transition: all var(--transition-speed) ease;
  width: 100%;
}

.checkout-input-group input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.06);
  border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.checkout-input-hint {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 0.2rem;
}

.checkout-submit-btn {
  margin-top: 0.5rem;
  width: 100%;
  padding: 0.85rem 1.5rem;
}

/* CLIENT SIDEBAR PROFILE CARD */
.client-profile-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 100px !important;
  padding: 0.8rem 1.4rem;
  margin-bottom: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-align: left;
}

.client-profile-box .profile-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
}

.client-profile-box .profile-email {
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-profile-change {
  background: transparent;
  border: none;
  padding: 0;
  color: var(--text-muted);
  font-size: 0.68rem;
  text-decoration: underline;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s ease;
  width: fit-content;
}

.btn-profile-change:hover {
  color: #ffffff;
}

/* ==========================================================================
   MODULE 5: Simulated Email OTP Verification & Mock Toasts Styles
   ========================================================================== */

/* OTP Verification Modal Overlay */
.otp-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.otp-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.otp-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.otp-modal-card {
  position: relative;
  background: #090909;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  width: 90%;
  max-width: 420px;
  padding: 2.2rem;
  text-align: center;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.8);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

.otp-modal.active .otp-modal-card {
  transform: translateY(0) scale(1);
}

.otp-modal-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}

.otp-modal-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 1.8rem;
}

.otp-modal-card p strong {
  color: #ffffff;
  font-family: monospace;
}

/* Simulated OTP Digital Input Block */
.otp-input-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.otp-input-container input {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  width: 100%;
  max-width: 240px;
  padding: 0.8rem;
  letter-spacing: 0.18em;
  font-family: 'Outfit', monospace;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.otp-input-container input:focus {
  border-color: #ffffff;
  box-shadow: 0 0 0 1px #ffffff;
}

.otp-input-container input::placeholder {
  color: rgba(255, 255, 255, 0.12);
  letter-spacing: 0.1em;
}

.otp-error-msg {
  color: #ff3333;
  font-size: 0.75rem;
  margin-top: -0.5rem;
  margin-bottom: 1.2rem;
  display: none;
  font-weight: 500;
}

.otp-actions {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
}

.otp-actions .btn {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
}

/* Shake Animation Utility for incorrect values */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  15%, 45%, 75% { transform: translateX(-6px); }
  30%, 60%, 90% { transform: translateX(6px); }
}

.shake {
  animation: shake 0.4s ease-in-out;
}

/* ==========================================
   MODULE 6: Backoffice Tabbed Panels & Admin Ledger Styles
   ========================================== */

.operator-tabs-nav {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.5rem;
}

.operator-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 0.6rem 1.2rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.operator-tab-btn svg {
  transition: transform 0.2s ease;
}

.operator-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.03);
}

.operator-tab-btn.active {
  color: #000000;
  background: #ffffff;
  border-color: #ffffff;
}

/* Product Manager Panel Layout */
.product-manager-layout {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr;
  grid-template-rows: 100%;
  gap: 1.5rem;
  flex: 1;
  min-height: 0;
  padding: 1.5rem;
  overflow: hidden;
}

.operator-products-list {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  height: 100%;
  min-height: 0;
}

.operator-product-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.operator-product-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.operator-product-info {
  flex: 1;
  margin-right: 1rem;
}

.operator-product-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}

.operator-product-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.operator-product-category {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
}

.operator-product-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.operator-product-plans {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.operator-plan-tag {
  font-size: 0.68rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 0.15rem 0.35rem;
  font-family: monospace;
  color: #ffffff;
}

.operator-product-actions {
  display: flex;
  gap: 0.4rem;
}

.btn-card-action {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-card-action:hover {
  background: #ffffff;
  color: #000000;
}

.btn-card-action.btn-delete:hover {
  background: #ff453a;
  border-color: #ff453a;
  color: #ffffff;
}

/* Product Editor Form Styling */
.operator-product-editor {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1.2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.editor-heading {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
  color: #ffffff;
}

.editor-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.editor-input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.editor-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.editor-input-group label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
}

.editor-input-group input,
.editor-input-group select,
.editor-input-group textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #ffffff;
  padding: 0.45rem 0.65rem;
  font-size: 0.78rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
  outline: none;
}

.editor-input-group input:focus,
.editor-input-group select:focus,
.editor-input-group textarea:focus {
  border-color: rgba(255, 255, 255, 0.4);
}

/* Pricing Plans editor */
.editor-plans-section {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  background: rgba(255, 255, 255, 0.01);
}

.plans-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.plans-editor-container {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.plan-editor-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr auto;
  gap: 0.4rem;
  align-items: center;
}

.plan-editor-row input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #ffffff;
  padding: 0.3rem 0.5rem;
  font-size: 0.72rem;
  outline: none;
}

.btn-remove-plan {
  background: transparent;
  border: none;
  color: #ff453a;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 0.3rem;
  line-height: 1;
}

.editor-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.editor-actions button {
  flex: 1;
}

/* Purchases Ledger Panel Styles */
#panelPurchases, #panelAnalytics {
  height: auto !important;
  max-height: none !important;
}

#panelPurchases .ledger-dashboard-container, #panelAnalytics .ledger-dashboard-container {
  overflow-y: visible !important;
}

/* Trend color metrics */
.trend-up {
  color: #30d158 !important;
}
.trend-down {
  color: #ff453a !important;
}
.trend-neutral {
  color: #8e8e93 !important;
}

.ledger-dashboard-container {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  flex: 1;
  min-height: 0;
  padding: 1.5rem;
  overflow-y: auto;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.analytics-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  position: relative;
}

.analytics-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

.analytics-card-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.analytics-card-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
}

.analytics-card-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* Search Filters Bar */
.ledger-filters-bar {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.ledger-search-group {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.ledger-search-group svg {
  position: absolute;
  left: 0.8rem;
  pointer-events: none;
}

.ledger-search-group input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #ffffff;
  padding: 0.55rem 0.8rem 0.55rem 2.2rem;
  font-size: 0.82rem;
  transition: all 0.2s ease;
}

.ledger-search-group input:focus {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  outline: none;
}

.ledger-select-group select {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #ffffff;
  padding: 0.55rem 1.8rem 0.55rem 0.8rem;
  font-size: 0.82rem;
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 10px;
}

/* Ledger Table styling */
.ledger-table-wrapper {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.purchases-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.8rem;
}

.purchases-table th {
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.03em;
}

.purchases-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  vertical-align: middle;
}

.purchases-table tbody tr:hover td {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.01);
}

.purchases-table .ticket-id {
  font-family: monospace;
  font-weight: 700;
  color: #ffffff;
}

.purchases-table .client-email {
  font-family: monospace;
}

.purchases-table .deal-price {
  font-weight: 600;
  color: #ffffff;
}

.purchases-table .status-badge {
  font-size: 0.68rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-weight: 500;
  display: inline-block;
}

.purchases-table .status-badge.step-1 {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.purchases-table .status-badge.step-2 {
  background: rgba(255, 214, 10, 0.1);
  border: 1px solid rgba(255, 214, 10, 0.2);
  color: #ffd60a;
}

.purchases-table .status-badge.step-3 {
  background: rgba(10, 132, 255, 0.1);
  border: 1px solid rgba(10, 132, 255, 0.2);
  color: #0a84ff;
}

.purchases-table .status-badge.completed {
  background: rgba(48, 209, 88, 0.1);
  border: 1px solid rgba(48, 209, 88, 0.2);
  color: #30d158;
}

.btn-open-chat {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

.btn-open-chat:hover {
  background: #ffffff;
  color: #000000;
}

/* Mobile Sidebar Utility Toggle Styles */
.mobile-sidebar-toggle {
  display: none !important;
}

@media (max-width: 768px) {
  /* For deal.html, make the deal workspace take the full screen height and remain fixed */
  body.deal-page {
    overflow: hidden !important; /* Prevent double scroll on body */
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
  }
  
  body.deal-page .header {
    display: none !important; /* Hide header on mobile in chat page to maximize space */
  }

  body.deal-page .deal-section {
    padding: 0 !important;
    margin: 0 !important;
    height: 100vh !important;
    height: 100dvh !important;
    width: 100vw !important;
  }

  body.deal-page .deal-section .container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    height: 100% !important;
    width: 100% !important;
  }

  body.deal-page .deal-workspace-operator {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }

  body.deal-page .deal-workspace-operator .deal-panel-card {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100% !important;
    border-radius: 0 !important;
    border: none !important;
    z-index: 9999 !important;
  }

  body.deal-page .deal-chat-input {
    font-size: 16px !important; /* Prevents auto-zoom on iOS Safari when focusing */
  }

  /* Force grid columns to 1fr on mobile even for operator/deal workspace */
  .deal-workspace-operator .worker-dashboard-container {
    grid-template-columns: 1fr !important;
  }

  /* Optimize header spacing and layout to prevent overlap/wrap bugs */
  .panel-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
    padding: 0.8rem 1rem !important;
  }

  .panel-header h2 {
    font-size: 0.95rem !important;
  }

  .panel-header h2 svg {
    width: 16px !important;
    height: 16px !important;
  }

  /* Button and badge wrapper in header */
  .panel-header > div {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 0.35rem !important; /* Slightly tighter gap to prevent overflows */
  }

  /* Ensure button and status badge fit elegantly without vertical squeezing */
  .mobile-sidebar-toggle {
    display: inline-flex !important;
    align-items: center;
    gap: 0.2rem;
    padding: 0.35rem 0.5rem !important; /* Compact padding */
    font-size: 0.7rem !important; /* Compact font size */
    border-radius: 6px !important;
    white-space: nowrap !important;
  }

  body.deal-page .btn-header-home {
    padding: 0.35rem 0.5rem !important; /* Compact padding */
    font-size: 0.7rem !important; /* Compact font size */
  }

  .panel-header-badge {
    padding: 0.3rem 0.45rem !important; /* Compact padding */
    font-size: 0.65rem !important; /* Compact font size */
    white-space: nowrap !important;
    text-align: center !important;
  }

  /* Compact padding in chat container to maximize message bubble space */
  .panel-body {
    padding: 0.9rem !important;
  }

  .panel-footer {
    padding: 0.8rem 0.9rem !important;
  }

  /* Stack product spec summary to look gorgeous on narrow screens */
  .deal-product-summary {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.6rem !important;
    padding: 0.8rem 1rem !important;
    margin-bottom: 0.8rem !important;
  }

  .deal-prod-price {
    text-align: left !important;
  }

  /* Stack current status banner */
  .deal-status-banner {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.4rem !important;
    padding: 0.65rem 1rem !important;
    margin-bottom: 0.8rem !important;
  }

  .status-step-text {
    align-self: flex-end !important;
    font-size: 0.75rem !important;
  }

  /* Ensure input box form stretches nicely on touch devices */
  .deal-input-form {
    gap: 0.5rem !important;
  }

  .deal-chat-input {
    font-size: 0.85rem !important;
    padding: 0.65rem 1.1rem !important;
    border-radius: 28px !important;
  }

  .ticket-item,
  .sidebar-ticket-item {
    padding: 0.65rem 2.4rem 0.65rem 1.1rem !important;
    border-radius: 28px !important;
  }

  .client-profile-box {
    padding: 0.8rem 1.1rem !important;
    border-radius: 28px !important;
  }

  .btn-deal-send {
    width: 38px !important;
    height: 38px !important;
  }
}

/* Sidebar Search Component */
.sidebar-search-container {
  padding: 0.4rem 0.5rem 0.8rem 0.5rem;
}
.sidebar-search-input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
  font-size: 0.82rem;
  color: #ffffff;
  font-family: inherit;
  width: 100%;
  transition: all var(--transition-speed) ease;
  outline: none;
}
.sidebar-search-input:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

/* Traffic Statistics Widget */
.stats-traffic-container {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

.stats-traffic-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 2rem;
  right: 2rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

.panel-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 0.6rem;
}

.panel-section-header h3 {
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  margin: 0;
}

.stats-traffic-chart {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.traffic-row {
  display: grid;
  grid-template-columns: 80px 1fr 140px;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
}

.traffic-date {
  font-weight: 600;
  color: var(--text-muted);
}

.traffic-bars-container {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  background: rgba(255, 255, 255, 0.01);
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.traffic-bar-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.traffic-bar-label {
  font-size: 0.62rem;
  color: var(--text-muted);
  width: 50px;
  text-align: right;
}

.traffic-bar-track {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.traffic-bar-fill-views {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(255,255,255,0.1), rgba(255,255,255,0.25));
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.traffic-bar-fill-uniques {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(255,255,255,0.4), rgba(255,255,255,0.85));
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.traffic-nums {
  text-align: right;
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  color: #fff;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.traffic-num-item {
  background: rgba(255, 255, 255, 0.04);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.traffic-num-item.uniques-badge {
  color: #000;
  font-weight: 700;
  background: #ffffff;
}

/* CMS Editor Layout styles */
.cms-editor-container {
  display: flex;
  gap: 1.5rem;
  flex: 1;
  min-height: 0;
  padding: 1.5rem;
  overflow: hidden;
}

.cms-sidebar {
  width: 200px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding-right: 1.2rem;
}

.cms-tab-item {
  padding: 0.7rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 15px;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  border: 1px solid transparent;
}

.cms-tab-item:hover {
  background: rgba(255, 255, 255, 0.03);
  color: #ffffff;
}

.cms-tab-item.active {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.cms-fields-panel {
  flex: 1;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 1.5rem;
  overflow-y: auto;
}

.cms-fields-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.cms-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.cms-field-group label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cms-field-input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  font-size: 0.82rem;
  color: #ffffff;
  font-family: inherit;
  width: 100%;
  transition: all var(--transition-speed) ease;
  outline: none;
}

.cms-field-input:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: #ffffff;
}

.cms-field-textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  font-size: 0.82rem;
  color: #ffffff;
  font-family: inherit;
  width: 100%;
  height: 80px;
  resize: vertical;
  transition: all var(--transition-speed) ease;
  outline: none;
}

.cms-field-textarea:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: #ffffff;
}

/* Ledger Pagination Styling */
.ledger-pagination-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.pagination-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  min-width: 28px;
  text-align: center;
}

.pagination-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.pagination-btn.active {
  background: #ffffff;
  border-color: #ffffff;
  color: #000000;
  font-weight: 600;
}

.pagination-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   Unified Border Radius Override (15px for soft premium aesthetics)
   ========================================================================== */
.btn,
.btn-large,
.product-card,
.advantage-card,
.timeline-cta-box,
.price-section,
.faq-card,
.faq-item,
.review-card,
.accordion-item,
.otp-card,
.status-banner,
.chat-window,
.chat-input-container,
.operator-dashboard-container,
.worker-ticket-sidebar,
.operator-search-bar,
.ledger-card,
.analytics-card,
.cms-card,
.auth-card,
.auth-input-group input,
.checkout-input-group input,
.otp-input-container input,
.editor-input-group input,
.editor-input-group select,
.editor-input-group textarea,
.plan-editor-row input,
.ledger-search-group input,
.sidebar-search-input,
.cms-field-input,
.panel-purchases,
.checkout-card,
.faq-accordion-list,
.msg,
.pagination-btn,
.operator-tabs-nav,
.tab-btn,
.cms-sidebar-item,
.operator-input,
.cms-textarea {
  border-radius: 15px !important;
}

/* Premium Monochrome Unread Message Badge */
.unread-badge {
  position: absolute;
  right: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  background: #ffffff;
  color: #000000;
  font-size: 0.68rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.25);
  animation: pulse-badge 2.5s infinite;
  transition: all var(--transition-speed) ease;
}

.ticket-item.active-ticket .unread-badge {
  background: #000000;
  color: #ffffff;
  box-shadow: none;
}

@keyframes pulse-badge {
  0%, 100% {
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.5);
  }
}

/* Accessibility Utility: Hide text visually but keep readable for search engines and screen readers */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ==========================================================================
   Desktop Centering & Stickiness for Purchases Cabinet (deal.html)
   ========================================================================== */
@media (min-width: 769px) {
  /* Enable vertical scrollbars on desktop to show the footer naturally */
  body.deal-page {
    overflow-y: auto !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    display: flex !important;
    flex-direction: column !important;
  }

  /* Display the footer on desktop, with clean margin sticky behavior */
  body.deal-page .footer {
    display: block !important;
    margin-top: auto !important;
  }

  /* Center the purchases section dynamically in the viewport below the header */
  body.deal-page .deal-section {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    flex: 1 !important;
    height: calc(100vh - 80px) !important;
    height: calc(100dvh - 80px) !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Override height when the empty state is active to prevent scroll jitter */
  body.deal-page .deal-section:has(#dealEmptyState:not([style*="display: none"])) {
    height: auto !important;
    min-height: calc(100vh - 104px - 280px) !important;
    min-height: calc(100dvh - 104px - 280px) !important;
    padding: 3rem 0 !important;
  }

  /* Center container horizontally and vertically */
  body.deal-page .deal-section .container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    height: 100% !important;
    width: 100% !important;
    max-width: 1200px !important;
    padding: 0 2.5rem !important;
    min-height: 0 !important;
  }

  /* Smooth fade-in scale animation for empty state and chat panels */
  @keyframes fadeInScale {
    from {
      opacity: 0;
      transform: scale(0.96) translateY(10px);
    }
    to {
      opacity: 1;
      transform: scale(1) translateY(0);
    }
  }

  /* Center empty state cleanly */
  body.deal-page .deal-empty-state {
    margin: 0 auto !important;
    animation: fadeInScale 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  /* Dynamic sizing and vertical centering for the chat workspace */
  body.deal-page .deal-workspace-operator {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    height: calc(100vh - 140px) !important;
    height: calc(100dvh - 140px) !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
    animation: fadeInScale 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  /* Prevent panel header squeezing in flex layouts */
  body.deal-page .panel-header {
    flex-shrink: 0 !important;
  }

  /* Beautiful card customization for desktop chat console */
  body.deal-page .deal-workspace-operator .deal-panel-card {
    width: 100% !important;
    max-width: 1000px !important; /* Wide modern layout for desktop messaging */
    height: 100% !important;
    max-height: 100% !important;
    border-radius: 28px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6) !important;
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  }

  body.deal-page .deal-workspace-operator .deal-panel-card:hover {
    border-color: rgba(255, 255, 255, 0.16) !important;
    box-shadow: 0 30px 75px rgba(0, 0, 0, 0.7) !important;
  }

  /* Adjust chat viewport container to scale beautifully */
  body.deal-page .deal-workspace-single .worker-dashboard-container,
  body.deal-page .worker-dashboard-container {
    flex: 1 1 0% !important;
    min-height: 0 !important;
    height: auto !important;
    display: grid !important;
    grid-template-columns: 240px 1fr !important;
    grid-template-rows: 100% !important;
    position: relative !important;
    overflow: visible !important;
  }

  /* Sidebar styling to scroll independently and reset tablet absolute positioning */
  body.deal-page .deal-workspace-single .worker-ticket-sidebar,
  body.deal-page .worker-ticket-sidebar {
    position: static !important; /* Override absolute overlay on tablet (769px-1024px) */
    transform: none !important;  /* Disable overlay translate transform */
    width: auto !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    display: flex !important;
    flex-direction: column !important;
  }

  /* Chat interface styling to scroll independently */
  body.deal-page .worker-chat-interface {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: 0 !important;
  }

  body.deal-page .chat-thread-container {
    flex: 1 !important;
    margin-top: auto !important;
  }

  body.deal-page .panel-body {
    flex: 1 !important;
    min-height: 0 !important;
    overflow-y: auto !important;
  }
}

/* ==========================================================
   GLOBAL CAPSULE BORDER-RADIUS OVERRIDES
   Matches the premium rounded floating capsule header styling
   ========================================================== */

/* 1. Global Pill buttons & interactive actions */
.btn, 
.btn-primary, 
.btn-secondary, 
.btn-large, 
.btn-action, 
.operator-tab-btn, 
.btn-card-action,
.btn-header-home,
#btnSaveProduct,
#btnCancelEdit,
#btnAddNewProduct,
#btnResetProducts,
#operatorLogoutBtn,
.checkout-modal-header button,
.btn-card-buy,
.faq-trigger,
.btn-deal-send,
.btn-profile-change {
  border-radius: 100px !important;
}

/* 2. Global Pill Badges */
.badge,
.product-badge,
.panel-header-badge,
.operator-plan-tag,
.active-badge,
.step-badge,
.status-badge,
.review-rating-badge,
.operator-product-category {
  border-radius: 99px !important;
}

/* 3. Cards & Main Containers (Premium High Curved Pill Style) */
.product-card, 
.deal-panel-card, 
.deal-empty-state, 
.review-card, 
.faq-item, 
.benefit-card, 
.advantage-card,
.timeline-cta-box,
.operator-product-card, 
.operator-product-editor,
.plan-card,
.checkout-modal-content,
.deal-card,
.chat-container,
.purchases-panel,
.stats-card,
.ledger-card,
.analytics-card,
.ticket-sidebar-card,
.chat-interface-card,
.faq-container,
.reviews-container,
.catalog-container,
.otp-container,
.otp-card,
.deal-status-banner,
.deal-product-summary,
.deal-input-form {
  border-radius: 28px !important;
}

/* 3.7 Explicitly round corners of panel sub-elements to prevent browser clipping bugs (e.g. backdrop-filter overflow leaks) */
.deal-panel-card {
  overflow: hidden !important;
  transform: translateZ(0) !important;
  isolation: isolate !important;
}
.panel-header {
  border-top-left-radius: 28px !important;
  border-top-right-radius: 28px !important;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}
.panel-footer {
  border-bottom-left-radius: 28px !important;
  border-bottom-right-radius: 28px !important;
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
}
.worker-ticket-sidebar {
  border-bottom-left-radius: 28px !important;
}

/* 4. Sub-cards, Small Elements & Images */
.product-card-image-wrapper,
.logo-image,
.operator-product-card img,
.mascot-mockup,
.hero-logo-img,
.plan-editor-row,
.adv-icon-wrapper,
.review-header img {
  border-radius: 16px !important;
}

/* 5. Chat bubbles (Very organic rounded pill styling) */
.chat-message,
.message,
.msg,
.user-msg,
.bot-msg,
.system-msg-bubble,
.typing-msg {
  border-radius: 20px !important;
}
/* Ensure tail logic looks smooth with high rounding */
.chat-message.client,
.user-msg {
  border-bottom-right-radius: 4px !important;
}
.chat-message.support,
.chat-message.worker,
.chat-message.system,
.bot-msg,
.typing-msg {
  border-bottom-left-radius: 4px !important;
}

/* 6. Form Inputs & Textareas */
input[type="text"], 
input[type="number"], 
input[type="email"], 
input[type="tel"], 
select, 
textarea,
.chat-input,
.editor-input-group input,
.editor-input-group select,
.editor-input-group textarea,
.plan-editor-row input {
  border-radius: 14px !important;
}

/* Progressive Enhancement: CMS managed text elements are visible immediately by default to prevent blank loading states */
[data-content-key] {
  opacity: 1;
}

/* ==========================================================================
   GLOBAL LEFT ALIGNMENT OVERRIDE
   Ensures all content cards and blocks are beautifully left-aligned for a
   premium, modern SaaS aesthetic, completely overriding any section-level centering.
   This block is placed last to guarantee winning the cascade.
   ========================================================================== */
.product-card,
.product-title,
.product-desc,
.product-features,
.feature-bullet,
.price-section,
.review-card,
.review-text,
.review-author,
.faq-item,
.faq-question,
.faq-answer,
.advantage-card,
.adv-icon-wrapper,
.adv-title,
.adv-desc,
.timeline-step,
.step-card,
.step-number,
.step-title,
.step-desc,
.deal-panel-card,
.deal-product-summary,
.deal-status-banner,
.deal-chat-messages,
.operator-product-card,
.operator-product-desc,
.ledger-card,
.analytics-card,
.chat-message,
.worker-ticket-sidebar,
.sidebar-search-container,
.purchases-table,
.purchases-table td,
.purchases-table th {
  text-align: left !important;
}

/* Ensure flex/inline-flex items inside cards are left-aligned */
.advantage-card .adv-icon-wrapper,
.timeline-step .step-number {
  display: inline-flex !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* ==========================================================================
   STYLE ALIGNMENT: PREMIUM CAPSULE ROUNDINGS
   Explicitly aligns inputs, active tickets, profiles, and send controls to
   the floating capsule header (Desktop: 100px pill shape, Mobile: 28px card shape).
   ========================================================================== */
#searchInput,
input.deal-chat-input,
input[type="text"].deal-chat-input,
.deal-chat-input,
.client-profile-box {
  border-radius: 100px !important;
}

.ticket-item,
.sidebar-ticket-item {
  border-radius: 28px !important;
  font-weight: 600 !important; /* Force a consistent semibold weight for all states to prevent layout shifts */
}

.btn-deal-send {
  border-radius: 50% !important;
}

@media (max-width: 768px) {
  #searchInput,
  input.deal-chat-input,
  input[type="text"].deal-chat-input,
  .deal-chat-input,
  .ticket-item,
  .sidebar-ticket-item,
  .client-profile-box {
    border-radius: 28px !important;
  }
}

/* ==========================================================================
   Visitor Online Support Chat Widget Styles
   ========================================================================== */
.visitor-chat-widget-wrapper {
  position: relative;
  z-index: 99999;
}

/* Floating Circular Button Trigger */
.visitor-chat-trigger {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  border-radius: 50% !important;
  background: #ffffff;
  color: #000000;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 0px rgba(255, 255, 255, 0.15);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  z-index: 99999;
}

.visitor-chat-trigger:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 255, 255, 0.3);
}

.visitor-chat-trigger.trigger-active {
  background: #121217;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}

.visitor-chat-trigger svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  transition: transform 0.3s ease;
}

/* Unread Badge */
.visitor-chat-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ff453a;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 0 10px rgba(255, 69, 58, 0.5);
  animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {
  0% { box-shadow: 0 0 0 0px rgba(255, 69, 58, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(255, 69, 58, 0); }
  100% { box-shadow: 0 0 0 0px rgba(255, 69, 58, 0); }
}

/* Slide-up Chat Window Container */
.visitor-chat-window {
  position: fixed;
  bottom: 6rem;
  right: 2rem;
  width: 360px;
  height: 480px;
  max-height: calc(100vh - 140px);
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 99998;
}

.visitor-chat-window.active {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.btn-card-buy {
  width: 100%;
  padding: 0.8rem 1.2rem;
  background: #ffffff !important;
  color: #000000 !important;
  border: 1px solid #ffffff !important;
  font-weight: 700 !important;
  transition: all 0.3s ease-in-out !important;
}
.btn-card-buy:hover {
  background: transparent !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
}

@keyframes pulse-btn-glow-white {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.25);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 15px 4px rgba(255, 255, 255, 0.55);
    transform: scale(1.02);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    transform: scale(1);
  }
}

@keyframes pulse-btn-glow-green {
  0% {
    box-shadow: 0 0 0 0 rgba(10, 206, 0, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 15px 4px rgba(10, 206, 0, 0.7);
    transform: scale(1.02);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(10, 206, 0, 0);
    transform: scale(1);
  }
}

@keyframes btn-ripple-bg {
  0% {
    transform: translate(-50%, -50%) scale(0) !important;
    opacity: 0.8 !important;
  }
  50% {
    opacity: 0.4 !important;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.6) !important;
    opacity: 0 !important;
  }
}


@keyframes btn-shimmer {
  0% {
    transform: translate(-30%, -30%) rotate(30deg);
  }
  20%, 100% {
    transform: translate(30%, 30%) rotate(30deg);
  }
}

/* Chat Header */
.visitor-chat-header {
  padding: 1rem 1.4rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-profile {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.profile-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.meta-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
}

.meta-status {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #30d158;
  box-shadow: 0 0 6px #30d158;
  display: inline-block;
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}

.btn-close-chat {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  transition: color 0.2s ease;
  padding: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-close-chat:hover {
  color: #ffffff;
}

/* Chat Body (Message Thread) */
.visitor-chat-body {
  flex: 1;
  padding: 1.2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.2);
  min-height: 0;
  scrollbar-width: thin;
}

.visitor-chat-body::-webkit-scrollbar {
  width: 4px;
}
.visitor-chat-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}
.visitor-chat-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
}

.chat-welcome-msg {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 0.9rem 1.1rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  text-align: left;
}

.visitor-messages-container {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

/* Storefront Chat Footer & Inputs */
.visitor-chat-footer {
  padding: 0.9rem 1.2rem;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.visitor-input-form {
  display: flex;
  gap: 0.6rem;
}

.visitor-chat-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  padding: 0.65rem 1.1rem;
  border-radius: 100px !important;
  font-family: inherit;
  font-size: 0.82rem;
  outline: none;
  transition: all 0.2s ease;
}

.visitor-chat-input:focus {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
}

.btn-visitor-send {
  background: #ffffff;
  color: #000000;
  border: 1px solid #ffffff;
  border-radius: 50% !important;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-visitor-send:hover {
  background: #e5e5ea;
  border-color: #e5e5ea;
  transform: translateY(-1px);
}

.btn-visitor-send svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

/* Mobile responsive fixes for chat window */
@media (max-width: 768px) {
  .visitor-chat-window {
    top: 0 !important;
    bottom: 0 !important;
    right: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    height: 100dvh !important;
    max-height: 100% !important;
    border-radius: 0 !important;
    border: none !important;
    transform: translateY(100%) !important;
    opacity: 0 !important;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease !important;
  }
  .visitor-chat-window.active {
    transform: translateY(0) !important;
    opacity: 1 !important;
  }
  .visitor-chat-header {
    padding-top: calc(1.2rem + env(safe-area-inset-top)) !important;
    padding-bottom: 1.2rem !important;
  }
  .visitor-chat-footer {
    padding-bottom: calc(1.2rem + env(safe-area-inset-bottom)) !important;
  }
  .visitor-chat-input {
    font-size: 16px !important; /* Prevents auto-zoom on iOS Safari */
  }
  .btn-close-chat {
    padding: 0.5rem !important;
    font-size: 1.3rem !important;
  }
  .visitor-chat-trigger {
    bottom: 1.5rem !important;
    right: 1.5rem !important;
  }
  .visitor-chat-trigger.trigger-active {
    display: none !important;
  }
}

/* Header Shopping Bag Cart Badge */
.cart-badge {
  position: absolute !important;
  top: -4px !important;
  right: -4px !important;
  background: #ff453a !important; /* iOS premium system red */
  color: #ffffff !important;
  font-size: 0.65rem !important;
  font-weight: 700 !important;
  min-width: 16px !important;
  height: 16px !important;
  border-radius: 50% !important;
  display: flex;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 4px !important;
  border: 1.5px solid #121218 !important; /* Contrast border matching capsule header color */
  box-shadow: 0 0 8px rgba(255, 69, 58, 0.6) !important;
  pointer-events: none !important;
  animation: cart-badge-pulse 2s infinite !important;
  z-index: 10 !important;
}

@keyframes cart-badge-pulse {
  0% { box-shadow: 0 0 0 0px rgba(255, 69, 58, 0.6) !important; }
  70% { box-shadow: 0 0 0 6px rgba(255, 69, 58, 0) !important; }
  100% { box-shadow: 0 0 0 0px rgba(255, 69, 58, 0) !important; }
}

/* Hide pre-sale visitor support chat widget on purchases page (deal.html) to prevent button overlap */
body.deal-page .visitor-chat-trigger,
body.deal-page .visitor-chat-window {
  display: none !important;
}




