/* EvenPlus ERP - Exact Eventura Style Design System with Native Dark Mode & Elevated Aesthetics */
:root {
  --primary: #483475;
  --primary-hover: #5d4496;
  --primary-light: #ede9f5;
  --accent: #6b4e9f;
  --accent-soft: rgba(107, 78, 159, 0.12);
  --accent-border: rgba(107, 78, 159, 0.25);
  --accent-strong: #8b5cf6;
  --gold: #d97706;
  --gold-soft: rgba(217, 119, 6, 0.12);
  --gold-border: rgba(217, 119, 6, 0.25);
  --teal: #0d9488;
  --teal-soft: rgba(13, 148, 136, 0.12);
  --teal-border: rgba(13, 148, 136, 0.25);
  --coral: #e11d48;
  --coral-soft: rgba(225, 29, 72, 0.12);
  --coral-border: rgba(225, 29, 72, 0.25);
  --indigo: #4f46e5;
  --indigo-soft: rgba(79, 70, 229, 0.12);
  --indigo-border: rgba(79, 70, 229, 0.25);
  --sidebar-bg: #120e24;
  --sidebar-active: #2b2248;
  --sidebar-border: #1e183b;
  --topbar-bg: #ffffff;
  --body-bg: #f8f7fc;
  --card-bg: #ffffff;
  --text-main: #17132b;
  --text-muted: #64748b;
  --border-color: #e4e0ee;
  --border-light: #f1eff7;
  --border-color-strong: #cfc3e4;
  --success: #10b981;
  --success-soft: rgba(16, 185, 129, 0.12);
  --success-border: rgba(16, 185, 129, 0.25);
  --danger: #ef4444;
  --danger-soft: rgba(239, 68, 68, 0.12);
  --danger-border: rgba(239, 68, 68, 0.25);
  --warning: #f59e0b;
  --warning-soft: rgba(245, 158, 11, 0.12);
  --warning-border: rgba(245, 158, 11, 0.25);
  --font-sans: 'IBM Plex Sans', 'Manrope', -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

/* DARK MODE OVERRIDES */
body.dark-mode {
  --body-bg: #0b0818;
  --topbar-bg: #130e26;
  --card-bg: #181230;
  --text-main: #f8fafc;
  --text-muted: #b4abd2;
  --border-color: #2e2454;
  --border-light: #221a42;
  --border-color-strong: #433575;
  --primary-light: #281d4a;
  --sidebar-bg: #0e0921;
  --sidebar-active: #281d4d;
  --sidebar-border: #1f163f;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--body-bg);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* App Shell Layout */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 250px;
  background: var(--sidebar-bg);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  border-right: 1px solid var(--sidebar-border);
  transition: width 0.2s ease;
}

.sidebar-brand-box {
  padding: 24px 20px 18px 20px;
  text-align: center;
  border-bottom: 1px solid var(--sidebar-border);
}

.brand-tulip-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 8px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d946ef;
  filter: drop-shadow(0 0 10px rgba(217, 70, 239, 0.5));
}

.brand-title-text {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #fff;
}

.brand-sub-badge {
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #a5b4fc;
  font-weight: 700;
  margin-top: 2px;
}

.brand-tagline-text {
  font-size: 9px;
  color: #6b6388;
  margin-top: 8px;
  line-height: 1.3;
}

.sidebar-menu {
  padding: 14px 10px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  color: #a098c2;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s ease;
  cursor: pointer;
}

.menu-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.menu-link.active {
  background: var(--sidebar-active);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.menu-link i {
  font-size: 16px;
  width: 18px;
  text-align: center;
}

/* Main Wrapper */
.main-wrapper {
  margin-left: 250px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Topbar */
.topbar {
  height: 64px;
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  background: var(--card-bg);
}

body.dark-mode .pill-badge {
  background: #1e1939;
  border-color: #2f2654;
  color: #e4e0ee;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: flex;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  font-size: 11px;
  font-weight: 700;
}

.lang-opt {
  padding: 4px 8px;
  cursor: pointer;
  background: var(--card-bg);
  color: var(--text-muted);
}

.lang-opt.active {
  background: #483475;
  color: #fff;
}

.topbar-icon-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  width: 34px;
  height: 34px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  cursor: pointer;
  position: relative;
  transition: all 0.15s;
}

body.dark-mode .topbar-icon-btn {
  border-color: #2f2654;
  color: #e4e0ee;
}

.topbar-icon-btn:hover {
  background: rgba(107, 78, 159, 0.15);
  border-color: #6b4e9f;
}

.topbar-icon-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
}

.topbar-user-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid var(--border-color);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
}

body.dark-mode .topbar-user-box {
  border-color: #2f2654;
  background: #1e1939;
}

.topbar-user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}

/* Page Workspace */
.page-content {
  padding: 24px;
  flex: 1;
}

.super-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 800;
  color: #7b7396;
  margin-bottom: 2px;
}

.main-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.main-title-box h1 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.main-title-box p {
  font-size: 13px;
  color: var(--text-muted);
}

.btn-nuevo-evento {
  background: #483475;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s;
}

.btn-nuevo-evento:hover {
  background: #5d4496;
}

/* 3 Stat Top Cards */
.top-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.stat-top-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px 20px;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s;
}

.stat-top-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.stat-top-card.card-purple::before { background: #6b4e9f; }
.stat-top-card.card-green::before { background: #10b981; }
.stat-top-card.card-gold::before { background: #d97706; }

.stat-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.stat-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 4px;
  font-family: var(--font-mono);
}

/* 4 Colored Stat Boxes (CRM) */
.crm-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.crm-stat-box {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 14px 18px;
  position: relative;
}

.crm-stat-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.crm-stat-box.box-purple::before { background: #6b4e9f; }
.crm-stat-box.box-amber::before { background: #f59e0b; }
.crm-stat-box.box-blue::before { background: #3b82f6; }
.crm-stat-box.box-green::before { background: #10b981; }

.crm-stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.crm-stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-main);
  margin: 4px 0 2px 0;
  font-family: var(--font-mono);
}

.crm-stat-caption {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

/* Eventura Dark Calendar Container */
.eventura-calendar-box {
  background: #1b1633;
  border: 1px solid #2d244f;
  border-radius: 12px;
  padding: 20px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

.eventura-calendar-box::after {
  content: '';
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(217, 70, 239, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cal-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.cal-arrows-box {
  display: flex;
  border: 1px solid #3d3266;
  border-radius: 6px;
  overflow: hidden;
}

.cal-arrow-btn {
  background: transparent;
  border: none;
  color: #d1c8ea;
  padding: 6px 12px;
  cursor: pointer;
}

.cal-arrow-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.cal-month-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.cal-view-toggles {
  display: flex;
  border: 1px solid #3d3266;
  border-radius: 6px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 700;
}

.cal-view-opt {
  padding: 5px 12px;
  color: #a098c2;
  cursor: pointer;
  background: transparent;
}

.cal-view-opt.active {
  background: #483475;
  color: #fff;
}

.cal-week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-week-day-title {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #7b719c;
  padding: 6px 0;
  text-transform: uppercase;
}

.cal-day-cell {
  min-height: 96px;
  background: #221b3e;
  border: 1px solid #2d244f;
  border-radius: 6px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: all 0.15s;
  cursor: pointer;
}

.cal-day-cell:hover {
  background: #2a224a;
  border-color: #6b4e9f;
}

.cal-day-cell.other-month {
  opacity: 0.35;
}

.cal-day-num {
  font-size: 11px;
  font-weight: 800;
  color: #a098c2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cal-day-num.is-current {
  color: #fff;
}

.cal-today-badge {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #8b5cf6;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
}

.cal-pill-event {
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: transform 0.1s;
}

.cal-pill-event:hover {
  transform: scale(1.02);
  filter: brightness(1.1);
}

/* Eventura Event Cards (CRM View) */
.eventura-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.eventura-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.eventura-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.badge-client-pill {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-status-pill {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.badge-status-pill.confirmado {
  background: #1e3a8a;
  color: #93c5fd;
}

.badge-status-pill.cotizado {
  background: #78350f;
  color: #fde68a;
}

.eventura-card-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
}

.eventura-specs-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  margin-bottom: 14px;
}

.eventura-spec-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 6px;
  border-radius: 4px;
}

.eventura-spec-row.highlight-pendiente {
  background: #fef3c7;
  color: #b45309;
  font-weight: 700;
}

body.dark-mode .eventura-spec-row.highlight-pendiente {
  background: #3c2f14;
  color: #fde68a;
}

.spec-key {
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.spec-val {
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-main);
}

.eventura-spec-row.highlight-pendiente .spec-val {
  color: inherit;
}

.eventura-card-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding-top: 10px;
}

.card-action-btn {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-main);
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
}

.card-action-btn:hover {
  background: var(--border-light);
  border-color: #6b4e9f;
}

/* Finanzas Banner */
.finanzas-banner {
  background: #e2e8f0;
  border-radius: 8px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
}

body.dark-mode .finanzas-banner {
  background: #17132c;
  border-color: #2b224a;
}

.fin-block {
  padding: 12px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid rgba(0,0,0,0.06);
}

body.dark-mode .fin-block {
  border-right-color: #2b224a;
}

.fin-block-label {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.fin-block-val {
  font-size: 15px;
  font-weight: 800;
  font-family: var(--font-mono);
  margin-top: 2px;
}

.fin-total-dark-block {
  background: #110d21;
  color: #fff;
  padding: 12px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.fin-total-dark-block .fin-block-val {
  font-size: 18px;
  color: #fff;
}

/* =======================================================
   EXACT EVENTURA PAQUETES DESIGN SYSTEM (.paq-)
   ======================================================= */
.paq-container {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.paq-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  align-self: flex-start;
  margin-bottom: 8px;
}

.paq-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  background: transparent;
  color: var(--text-muted);
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.paq-tab.active {
  background: #483475;
  color: #fff;
}

.paq-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: rgba(255, 255, 255, 0.2);
  color: inherit;
  font-size: 10px;
  font-weight: 800;
  border-radius: 10px;
}

.paq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.paq-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.paq-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  border-color: #6b4e9f;
}

.paq-theme-purple { --theme-color: #8b5cf6; --theme-soft: rgba(139, 92, 246, 0.12); }
.paq-theme-amber { --theme-color: #f59e0b; --theme-soft: rgba(245, 158, 11, 0.12); }
.paq-theme-teal { --theme-color: #0d9488; --theme-soft: rgba(13, 148, 136, 0.12); }
.paq-theme-coral { --theme-color: #e11d48; --theme-soft: rgba(225, 29, 72, 0.12); }
.paq-theme-indigo { --theme-color: #4f46e5; --theme-soft: rgba(79, 70, 229, 0.12); }

.paq-card-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px;
  align-items: baseline;
}

.paq-card-number {
  grid-column: 1;
  font-size: 10px;
  font-weight: 800;
  color: var(--theme-color, #8b5cf6);
  background: var(--theme-soft, rgba(139, 92, 246, 0.12));
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-block;
  justify-self: start;
  border: 1px solid var(--theme-color);
}

.paq-card-title {
  grid-column: 1;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 4px;
}

.paq-card-price {
  grid-column: 2;
  font-size: 20px;
  font-weight: 800;
  color: var(--theme-color, #8b5cf6);
  font-family: var(--font-mono);
  white-space: nowrap;
}

.paq-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.paq-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: var(--border-light);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  font-size: 11px;
  font-weight: 700;
}

.paq-card-services {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-color);
}

.paq-service-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: var(--success-soft);
  color: var(--success);
  border: 1px solid var(--success-border);
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
}

.paq-card-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

/* =======================================================
   EXACT EVENTURA INVENTARIO DESIGN SYSTEM (.inv-)
   ======================================================= */
.inv-container {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 8px;
}

.stat {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 3px solid #6b4e9f;
}

.stat.stat--warn { border-top-color: #f59e0b; }
.stat.stat--danger { border-top-color: #ef4444; }
.stat.stat--success { border-top-color: #10b981; }

.stat__label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.stat__value {
  font-size: 26px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-main);
}

.inv-filters {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.inv-search-container {
  position: relative;
  flex: 1 1 260px;
}

.inv-search-input {
  width: 100%;
  height: 38px;
  padding: 0 12px 0 34px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--card-bg);
  color: var(--text-main);
  font-size: 12px;
  outline: none;
  font-family: inherit;
}

.inv-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
}

.inv-filter-select {
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--card-bg);
  color: var(--text-main);
  font-size: 12px;
  font-family: inherit;
  outline: none;
  cursor: pointer;
}

.inv-table-container {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow-x: auto;
}

.inv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

.inv-table th {
  padding: 10px 14px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  background: rgba(0,0,0,0.02);
}

body.dark-mode .inv-table th { background: rgba(255,255,255,0.02); }

.inv-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.inv-categoria-tag {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(107, 78, 159, 0.12);
  color: #8b5cf6;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.inv-estado-stock {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.inv-estado-stock.suficiente { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.inv-estado-stock.bajo-stock { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.inv-estado-stock.agotado { background: rgba(239, 68, 68, 0.15); color: #ef4444; }

/* =======================================================
   EXACT EVENTURA CONFIGURACIÓN DESIGN SYSTEM (.config-)
   ======================================================= */
.config-main-wrapper {
  max-width: 1000px;
  margin: 0 auto;
}

.config-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.config-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.config-section {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.config-section-title {
  padding: 12px 20px;
  background: var(--accent-soft);
  border-bottom: 1px solid var(--accent-border);
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.config-option {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border-light);
}

.config-option:last-child {
  border-bottom: none;
}

.config-theme-options {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.config-theme-buttons {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--border-light);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  align-self: flex-start;
}

.config-theme-btn {
  padding: 7px 16px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.config-theme-btn.config-theme-active {
  background: var(--card-bg);
  color: #8b5cf6;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.config-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.config-checkbox {
  accent-color: #6b4e9f;
  width: 18px;
  height: 18px;
}

.config-select {
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--card-bg);
  color: var(--text-main);
  font-size: 12px;
  font-family: inherit;
  outline: none;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background: var(--card-bg);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-header {
  padding: 16px 22px;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}

.modal-close {
  background: rgba(255,255,255,0.2);
  border: none;
  font-size: 18px;
  color: #fff;
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-body {
  padding: 22px;
}

.modal-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: var(--border-light);
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 5px;
}

.form-control {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--card-bg);
  color: var(--text-main);
  font-family: inherit;
  font-size: 12px;
  outline: none;
}

.form-control:focus {
  border-color: #8b5cf6;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
}

.btn-primary { background: #483475; color: #fff; }
.btn-primary:hover { background: #5d4496; }
.btn-secondary { background: var(--card-bg); border-color: var(--border-color); color: var(--text-main); }
.btn-secondary:hover { background: var(--border-light); }

/* =======================================================
   SHARED UTILITIES & COMMON COMPONENTS
   ======================================================= */
.round-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 8px 16px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.round-search-bar input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  color: var(--text-main);
  width: 100%;
  font-family: inherit;
}

.card-table-wrapper,
.table-responsive {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.eventura-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

.eventura-table th {
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.02);
}

body.dark-mode .eventura-table th {
  background: rgba(255, 255, 255, 0.03);
}

.eventura-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
  color: var(--text-main);
}

.eventura-table tr:hover td {
  background: rgba(107, 78, 159, 0.05);
}

body.dark-mode .eventura-table tr:hover td {
  background: rgba(139, 92, 246, 0.1);
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  margin-bottom: 16px;
}

.card-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 800;
  font-size: 13px;
  color: var(--text-main);
}

.card-body {
  padding: 20px;
}

/* Responsive Stat Grids for Finance & Contracts */
.fin-filter-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.cot-filter-stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

/* =======================================================
   MOBILE OFF-CANVAS SIDEBAR & BACKDROP
   ======================================================= */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 45;
  display: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.sidebar-backdrop.show {
  display: block;
  opacity: 1;
}

/* =======================================================
   MOBILE BOTTOM NAVIGATION BAR
   ======================================================= */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--topbar-bg);
  border-top: 1px solid var(--border-color);
  z-index: 40;
  justify-content: space-around;
  align-items: center;
  padding-bottom: env(safe-area-inset-bottom, 0);
  backdrop-filter: blur(12px);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

body.dark-mode .mobile-bottom-nav {
  box-shadow: 0 -2px 18px rgba(0, 0, 0, 0.45);
}

.mobile-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px 0;
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  transition: all 0.15s ease;
  text-decoration: none;
  position: relative;
}

.mobile-nav-item i {
  font-size: 18px;
  line-height: 1;
  transition: transform 0.15s ease;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
  color: #8b5cf6;
}

.mobile-nav-item.active i {
  transform: scale(1.15);
}

.mobile-nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #8b5cf6;
}

/* =======================================================
   DARK MODE TEXT & HIGH-CONTRAST POLISH
   ======================================================= */
body.dark-mode .form-control,
body.dark-mode .config-select,
body.dark-mode .inv-search-input,
body.dark-mode .inv-filter-select,
body.dark-mode .round-search-bar input {
  background: #110d24;
  border-color: #372a63;
  color: #f8fafc;
}

body.dark-mode .form-control::placeholder,
body.dark-mode .inv-search-input::placeholder,
body.dark-mode .round-search-bar input::placeholder {
  color: #8b82a8;
}

body.dark-mode .form-control:focus,
body.dark-mode .config-select:focus,
body.dark-mode .inv-search-input:focus,
body.dark-mode .inv-filter-select:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
}

body.dark-mode .modal-content {
  background: #181230;
  border-color: #382c66;
  color: #f8fafc;
}

body.dark-mode .modal-footer {
  background: #120e24;
  border-color: #2b214d;
}

body.dark-mode .card-action-btn {
  background: #20183e;
  border-color: #352960;
  color: #e4e0f2;
}

body.dark-mode .card-action-btn:hover {
  background: #2c2156;
  border-color: #8b5cf6;
  color: #fff;
}

body.dark-mode .paq-meta-chip {
  background: #20193e;
  border-color: #362a63;
  color: #e4e0ee;
}

body.dark-mode .btn-secondary {
  background: #1e1738;
  border-color: #372b63;
  color: #f1edfa;
}

body.dark-mode .btn-secondary:hover {
  background: #2b214f;
  border-color: #8b5cf6;
}

body.dark-mode .badge-status-pill.confirmado {
  background: #1e3a8a;
  color: #bfdbfe;
}

body.dark-mode .badge-status-pill.cotizado {
  background: #451a03;
  color: #fde68a;
}

/* =======================================================
   RESPONSIVE DESIGN (TABLET & MOBILE BREAKPOINTS)
   ======================================================= */

/* Medium Devices (Tablets, small laptops, <= 1024px) */
@media (max-width: 1024px) {
  .fin-filter-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .cot-filter-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .top-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .crm-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Small Tablets & Mobile Devices (<= 992px) */
@media (max-width: 992px) {
  .sidebar {
    width: 280px;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 50;
    box-shadow: none;
  }

  .sidebar.mobile-open {
    transform: translateX(0);
    box-shadow: 10px 0 35px rgba(0, 0, 0, 0.6);
  }

  .main-wrapper {
    margin-left: 0;
    width: 100%;
  }

  .topbar {
    padding: 0 16px;
  }
}

/* Phones & Small Screens (<= 768px) */
@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
  }

  .page-content {
    padding: 16px 14px 84px 14px; /* Bottom padding prevents nav overlap */
  }

  /* Topbar Simplification for Clean Mobile Touch */
  .topbar {
    height: 56px;
    padding: 0 12px;
  }

  .topbar-left {
    gap: 8px;
  }

  .topbar-right {
    gap: 6px;
  }

  .topbar-icon-btn {
    width: 38px;
    height: 38px;
  }

  .lang-switch {
    display: none;
  }

  .topbar-user-box {
    padding: 3px 6px;
  }

  .topbar-user-box span {
    display: none;
  }

  .pill-badge {
    padding: 4px 8px;
    font-size: 10px;
  }

  /* Page Headers */
  .main-title-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .main-title-box h1 {
    font-size: 20px;
  }

  .btn-nuevo-evento {
    width: 100%;
    justify-content: center;
    padding: 11px 16px;
    font-size: 14px;
  }

  /* Stat Grids */
  .top-stats-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .crm-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .fin-filter-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .cot-filter-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  /* Financial Banner - Fluid Mobile Stacking */
  .finanzas-banner {
    flex-direction: column;
  }

  .fin-block {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 10px 14px;
  }

  .fin-total-dark-block {
    padding: 14px;
  }

  /* Paquetes & Cards */
  .paq-tabs {
    width: 100%;
    display: flex;
    overflow-x: auto;
  }

  .paq-tab {
    flex: 1;
    justify-content: center;
    padding: 0 10px;
    font-size: 11px;
  }

  .paq-grid {
    grid-template-columns: 1fr;
  }

  .eventura-cards-grid {
    grid-template-columns: 1fr;
  }

  /* Calendar Responsive Overflow */
  .eventura-calendar-box {
    padding: 12px;
    border-radius: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .cal-week-grid {
    min-width: 580px;
  }

  .cal-header-bar {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }

  .cal-arrows-box,
  .cal-month-indicator,
  .cal-view-toggles {
    justify-content: center;
  }

  /* Inventario Filters on Mobile */
  .inv-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .inv-search-container {
    width: 100%;
  }

  .inv-filter-select {
    width: 100%;
  }

  /* Modals on Mobile Devices */
  .modal-overlay {
    padding: 10px;
    align-items: flex-end;
  }

  .modal-content {
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    max-height: 90vh;
  }

  .modal-body {
    padding: 16px;
  }

  .modal-footer {
    padding: 12px 16px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Very Narrow Phones (<= 480px) */
@media (max-width: 480px) {
  .pill-badge:nth-child(3) {
    display: none; /* Hide date on very narrow screens to preserve space */
  }

  .stat-number {
    font-size: 24px;
  }

  .crm-stat-value {
    font-size: 22px;
  }

  .stat__value {
    font-size: 22px;
  }

  .card-action-btn {
    font-size: 9px;
    padding: 6px 2px;
  }

  .config-option {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* =======================================================
   AUTOSELL PÁGINA PÚBLICA & SIMULADOR EN VIVO (.autosell-)
   ======================================================= */
.autosell-section-header {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
}

.autosell-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--accent-border);
  margin-bottom: 6px;
}

.autosell-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}

.autosell-desc {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 650px;
  line-height: 1.5;
}

.autosell-status-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--border-light);
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.autosell-status-indicator {
  font-size: 12px;
  font-weight: 700;
  color: #ef4444;
}

.autosell-status-indicator.active {
  color: #10b981;
}

/* Switch UI */
.config-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.config-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.config-switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #cbd5e1;
  transition: .3s;
  border-radius: 24px;
}

body.dark-mode .config-switch-slider {
  background-color: #332959;
}

.config-switch-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.config-switch input:checked + .config-switch-slider {
  background-color: #10b981;
}

.config-switch input:checked + .config-switch-slider:before {
  transform: translateX(20px);
}

/* AutoSell Link Box */
.autosell-link-box {
  margin: 18px 24px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.autosell-link-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--card-bg);
  border: 1px solid var(--accent-border);
  color: var(--accent-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.autosell-link-input-wrap {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.autosell-link-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-strong);
}

.autosell-link-input {
  width: 100%;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  color: var(--text-main);
  font-size: 13px;
  font-family: var(--font-mono);
  outline: none;
  font-weight: 600;
}

.autosell-link-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  border: none;
}

.btn-whatsapp:hover {
  background: #20ba59;
  color: #fff;
}

/* Settings Grid */
.autosell-settings-grid {
  padding: 0 24px 18px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  border-bottom: 1px solid var(--border-light);
}

/* Preview Header Bar */
.autosell-preview-header-bar {
  padding: 14px 24px;
  background: var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 12px;
}

.preview-title-box {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
}

.preview-title-box i {
  font-size: 20px;
  color: #8b5cf6;
}

.preview-title-box div {
  display: flex;
  flex-direction: column;
}

.preview-title-box strong {
  font-size: 13px;
  font-weight: 800;
}

.preview-title-box span {
  font-size: 11px;
  color: var(--text-muted);
}

.preview-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.preview-device-toggle {
  display: inline-flex;
  padding: 3px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  gap: 2px;
}

.preview-device-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.preview-device-btn.active {
  background: #483475;
  color: #fff;
}

body.dark-mode .preview-device-btn.active {
  background: #6b4e9f;
}

/* Interactive Device Frame */
.autosell-preview-wrapper {
  padding: 24px;
  background: #0f0c1d;
  display: flex;
  justify-content: center;
  overflow: hidden;
  transition: all 0.3s ease;
}

body.dark-mode .autosell-preview-wrapper {
  background: #07050e;
}

/* Mode Mobile (Smartphone Frame) */
.preview-mode-mobile .device-frame {
  width: 100%;
  max-width: 410px;
  background: var(--card-bg);
  border-radius: 38px;
  border: 10px solid #231c3c;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  position: relative;
}

.preview-mode-mobile .device-notch-bar {
  height: 24px;
  background: #231c3c;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.device-camera-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0d0a18;
}

.device-speaker {
  width: 44px;
  height: 4px;
  border-radius: 4px;
  background: #0d0a18;
}

.preview-mode-mobile .device-screen-body {
  max-height: 680px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--body-bg);
}

/* Mode Desktop */
.preview-mode-desktop .device-frame {
  width: 100%;
  max-width: 900px;
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.preview-mode-desktop .device-notch-bar {
  display: none;
}

.preview-mode-desktop .device-screen-body {
  max-height: 720px;
  overflow-y: auto;
  background: var(--body-bg);
}

/* =======================================================
   WIZARD PUBLIC INTERFACE STYLING
   ======================================================= */
.wizard-container {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wizard-hero {
  text-align: center;
  padding: 16px 12px;
  background: linear-gradient(135deg, #261947 0%, #150f28 100%);
  border-radius: 16px;
  color: #fff;
  border: 1px solid rgba(139, 92, 246, 0.25);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-logo-box {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(217, 70, 239, 0.15);
  color: #d946ef;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px auto;
  border: 1px solid rgba(217, 70, 239, 0.4);
}

.hero-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0;
  color: #fff;
}

.hero-subtitle {
  font-size: 11px;
  color: #c4b5fd;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  margin-top: 2px;
}

.wizard-card-step {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.step-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: #8b5cf6;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.step-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}

.wizard-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.field-hint {
  font-size: 10px;
  color: var(--text-muted);
  display: block;
  margin-top: 3px;
}

/* Guests Stepper Control */
.guest-stepper-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--border-light);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 8px;
}

.stepper-btn {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}

.stepper-btn:hover {
  background: #6b4e9f;
  color: #fff;
  border-color: #6b4e9f;
}

.stepper-display {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stepper-number {
  font-size: 24px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #8b5cf6;
  line-height: 1;
}

.stepper-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-range-guests {
  width: 100%;
  accent-color: #8b5cf6;
  cursor: pointer;
}

/* Event Type Pills */
.event-type-section {
  margin-top: 14px;
  border-top: 1px dashed var(--border-color);
  padding-top: 12px;
}

.event-type-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.event-type-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.type-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: var(--border-light);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s;
}

.type-pill:hover {
  border-color: #8b5cf6;
}

.type-pill.active {
  background: #8b5cf6;
  color: #fff;
  border-color: #8b5cf6;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.35);
}

/* Packages Grid */
.wizard-packages-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wizard-package-card {
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 14px;
  background: var(--card-bg);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.wizard-package-card:hover {
  border-color: #8b5cf6;
}

.wizard-package-card.selected {
  border-color: #8b5cf6;
  background: rgba(139, 92, 246, 0.08);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
}

.pkg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.pkg-pill {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: #8b5cf6;
  color: #fff;
}

.pkg-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
  flex: 1;
}

.pkg-check {
  font-size: 18px;
  color: #8b5cf6;
}

.pkg-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.pkg-total-price {
  font-size: 20px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #8b5cf6;
}

.pkg-per-pax {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.pkg-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.4;
}

.pkg-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pkg-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--border-light);
  color: var(--text-main);
}

/* Extras Items */
.wizard-extras-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wizard-extra-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--card-bg);
  cursor: pointer;
  transition: all 0.15s;
}

.wizard-extra-item:hover {
  border-color: #8b5cf6;
}

.wizard-extra-item.active {
  border-color: #8b5cf6;
  background: rgba(139, 92, 246, 0.08);
}

.extra-check input {
  accent-color: #8b5cf6;
  transform: scale(1.2);
}

.extra-icon {
  font-size: 18px;
  color: #8b5cf6;
}

.extra-info {
  flex: 1;
}

.extra-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
}

.extra-desc {
  font-size: 10px;
  color: var(--text-muted);
}

.extra-price {
  font-size: 13px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-main);
}

/* Quote Summary Box */
.wizard-quote-summary {
  background: linear-gradient(135deg, #1e173a 0%, #151028 100%);
  border: 1px solid #3d2f66;
  border-radius: 14px;
  padding: 18px;
  color: #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}

.summary-head {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #a78bfa;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.summary-body {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.summary-col span {
  font-size: 10px;
  color: #94a3b8;
  display: block;
  text-transform: uppercase;
}

.summary-col strong {
  font-size: 12px;
  color: #f8fafc;
}

.summary-totals-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.total-block {
  display: flex;
  flex-direction: column;
}

.total-label {
  font-size: 10px;
  font-weight: 800;
  color: #cbd5e1;
  letter-spacing: 0.5px;
}

.total-val {
  font-size: 24px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #38bdf8;
}

.anticipo-block {
  text-align: right;
  display: flex;
  flex-direction: column;
}

.anticipo-label {
  font-size: 9px;
  font-weight: 800;
  color: #fde68a;
  letter-spacing: 0.5px;
}

.anticipo-val {
  font-size: 16px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #f59e0b;
}

.btn-submit-quote {
  width: 100%;
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 800;
  margin-top: 16px;
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4);
}

.btn-submit-quote:hover {
  background: linear-gradient(135deg, #6d28d9 0%, #4f46e5 100%);
}

/* Success View */
.autosell-success-view {
  padding: 30px 20px;
  text-align: center;
  background: var(--card-bg);
  border-radius: 14px;
}

.success-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px auto;
}

.success-badge {
  font-size: 10px;
  font-weight: 800;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  padding: 3px 10px;
  border-radius: 12px;
  letter-spacing: 0.5px;
}

.success-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  margin: 8px 0;
}

.success-p {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.success-card-summary {
  background: var(--border-light);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 14px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-main);
}

.summary-line span {
  color: var(--text-muted);
}

.summary-line.total-highlight {
  border-top: 1px solid var(--border-color);
  padding-top: 8px;
  font-weight: 800;
  font-size: 14px;
  color: #8b5cf6;
}

/* Standalone Public Page */
.autosell-public-page {
  min-height: 100vh;
  background: var(--body-bg);
  display: flex;
  flex-direction: column;
}

.public-topbar {
  height: 60px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 30;
}

.public-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
}

.public-tulip {
  color: #d946ef;
  display: flex;
  align-items: center;
}

.public-tag {
  font-size: 9px;
  letter-spacing: 1.5px;
  background: rgba(139, 92, 246, 0.15);
  color: #8b5cf6;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.public-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.public-main-content {
  flex: 1;
  max-width: 680px;
  width: 100%;
  margin: 20px auto;
  padding: 0 16px;
}

.public-footer {
  text-align: center;
  padding: 20px;
  font-size: 11px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
}

.paq-filter-chip {
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--border-light);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.paq-filter-chip:hover {
  border-color: #8b5cf6;
}

.paq-filter-chip.active {
  background: #8b5cf6;
  color: #fff;
  border-color: #8b5cf6;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.35);
}



