/* --------------------------------------------------
   LemonDrip Modern SaaS Theme
   Accent: Blue (#00ABE2)
   -------------------------------------------------- */

/* Theme tokens */
:root {
  --bg: #f3f5fa;
  --panel: #ffffff;
  --text: #222;
  --muted: #666;
  --accent: #00ABE2;
  --accent-soft: #e0f5ff;
  --border: #dde3f0;
  --shadow-soft: 0 4px 10px rgba(15, 23, 42, 0.08);

  /* VenView brand palette */
  --vv-navy: #0B2A4A;
  --vv-navy-2: #0A3A67;
  --vv-green: #19B37A;
  --vv-green-2: #0F8F63;
  --vv-lemon: #FFD84D;
  --vv-lemon-2: #FFC72C;
  --vv-ink: #0B1B2B;
  --vv-muted: #5B6B7C;
  --vv-bg: #F6FBFF;
  --vv-card: #FFFFFF;
  --vv-border: rgba(11,42,74,0.12);
  --vv-shadow: 0 12px 30px rgba(11,42,74,0.12);
  --vv-shadow-soft: 0 10px 20px rgba(11,42,74,0.10);
  --vv-radius: 16px;
}

/* Reset-ish */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}
/* iOS-style cards */
.ios-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  margin: 12px 0;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

.ios-card-header {
  width: 100%;
  border: none;
  background: #f7f7f9;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: #222;
}

.ios-card-header:hover {
  background: #ececf0;
}
.hidden {
  display: none !important;
}
/* -----------------------------
   Home Card
----------------------------- */

.home-card {
  max-width: 1100px;
}

.home-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.home-text h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;

}

.home-tagline {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.home-description {
  color: #444;
  margin-bottom: 1.25rem;
}

.home-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.home-image img {
  width: 100%;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  object-fit: cover;
}

.home-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.feature {
  background: #f7fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  font-size: 0.9rem;
}

.feature strong {
  display: block;
  margin-bottom: 0.25rem;
}

/* Mobile */
@media (max-width: 800px) {
  .home-hero {
    grid-template-columns: 1fr;
  }
}
/* -----------------------------
   Home – Recent Activity
----------------------------- */
/* ============================================
   VenView Landing Page Theme
============================================ */
.home-landing {
  width: 100%;
  padding: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
  transform: translateY(0);
  opacity: 1;
  color: var(--vv-ink);
  background:
    radial-gradient(1200px 700px at 15% 5%, rgba(25,179,122,0.18), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(255,216,77,0.18), transparent 55%),
    radial-gradient(1100px 700px at 60% 95%, rgba(10,58,103,0.14), transparent 60%),
    var(--vv-bg);
}

.home-landing.slide-down {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  position: absolute;
  max-height: 0;
  overflow: hidden;
}

/* Container */
.home-landing .container {
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 0 8px;
}

/* Sections */
.home-landing section {
  padding: 72px 0;
}

/* Hero */
.hero {
  padding: 64px 0;
}
.home-landing .eyebrow {
  display: inline-block;
  font-weight: 700;
  color: var(--vv-green-2);
  background: rgba(25,179,122,0.10);
  border: 1px solid rgba(25,179,122,0.22);
  padding: 7px 12px;
  border-radius: 999px;
  letter-spacing: 0.4px;
  font-size: 13px;
}
.home-landing .hero h1 {
  margin: 14px 0 10px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.8px;
  color: var(--vv-navy);
}
.home-landing .subheadline {
  margin: 0 0 18px;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.6;
  color: var(--vv-muted);
  max-width: 64ch;
}
.home-landing .microcopy {
  margin-top: 14px;
  font-size: 13px;
  color: rgba(11,27,43,0.70);
}

/* CTA row */
.home-landing .cta-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 14px;
}

/* Buttons (scoped to landing page) */
.home-landing .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  user-select: none;
}
.home-landing .btn:active {
  transform: translateY(1px);
}
.home-landing .btn-primary {
  color: var(--vv-navy);
  background: linear-gradient(135deg, var(--vv-lemon) 0%, var(--vv-lemon-2) 55%, #FFE788 100%);
  border-color: rgba(255,199,44,0.65);
  box-shadow: 0 10px 24px rgba(255,199,44,0.25);
}
.home-landing .btn-primary:hover {
  box-shadow: 0 14px 30px rgba(255,199,44,0.30);
}
.home-landing .btn-secondary {
  color: var(--vv-navy);
  background: rgba(11,42,74,0.06);
  border-color: rgba(11,42,74,0.18);
}
.home-landing .btn-secondary:hover {
  background: rgba(11,42,74,0.09);
  box-shadow: var(--vv-shadow-soft);
}

/* Grids */
.home-landing .grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.home-landing .grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}
@media (max-width: 900px) {
  .home-landing .grid-3 { grid-template-columns: 1fr; }
  .home-landing .grid-2 { grid-template-columns: 1fr; }
}

/* Cards */
.home-landing .card,
.home-landing .feature,
.home-landing .pricing-card {
  background: var(--vv-card);
  border: 1px solid var(--vv-border);
  border-radius: var(--vv-radius);
  padding: 18px;
  box-shadow: 0 10px 22px rgba(11,42,74,0.07);
}
.home-landing .card h3,
.home-landing .feature h3,
.home-landing .pricing-card h3 {
  margin: 0 0 8px;
  color: var(--vv-navy);
  letter-spacing: -0.2px;
}
.home-landing .card p,
.home-landing .feature p,
.home-landing .pricing-card p {
  margin: 0;
  color: var(--vv-muted);
  line-height: 1.55;
}

/* Section titles */
.home-landing h2 {
  font-size: clamp(22px, 2.2vw, 30px);
  margin: 0 0 10px;
  color: var(--vv-navy);
  letter-spacing: -0.4px;
}
.home-landing section p {
  color: var(--vv-muted);
  line-height: 1.65;
}

/* Section accent glows */
.home-landing .problem,
.home-landing .benefits,
.home-landing .pricing,
.home-landing .final-cta {
  position: relative;
}
.home-landing .problem::before,
.home-landing .benefits::before,
.home-landing .pricing::before,
.home-landing .final-cta::before {
  content: "";
  position: absolute;
  inset: -30px 0;
  background:
    radial-gradient(700px 240px at 15% 20%, rgba(25,179,122,0.14), transparent 62%),
    radial-gradient(650px 220px at 85% 30%, rgba(255,216,77,0.18), transparent 62%);
  pointer-events: none;
  z-index: 0;
}
.home-landing .problem .container,
.home-landing .benefits .container,
.home-landing .pricing .container,
.home-landing .final-cta .container {
  position: relative;
  z-index: 1;
}

/* Pricing cards */
.home-landing .pricing-card ul {
  margin: 14px 0 16px;
  padding-left: 18px;
  color: var(--vv-muted);
}
.home-landing .pricing-card li {
  margin: 8px 0;
}
.home-landing .pricing-note {
  color: rgba(11,27,43,0.70) !important;
}
.home-landing .pricing-card.featured {
  border-color: rgba(25,179,122,0.35);
  box-shadow: 0 18px 44px rgba(25,179,122,0.12);
  background:
    linear-gradient(180deg, rgba(25,179,122,0.06) 0%, rgba(255,216,77,0.05) 100%),
    var(--vv-card);
}
.home-landing .pricing-card.featured h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.home-landing .pricing-card.featured h3::after {
  content: "PRO";
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.6px;
  color: var(--vv-navy);
  background: linear-gradient(135deg, var(--vv-lemon), var(--vv-lemon-2));
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,199,44,0.7);
}

/* Final CTA */
.home-landing .final-cta {
  padding-top: 86px;
  padding-bottom: 86px;
}
.home-landing .final-cta h2 {
  font-size: clamp(26px, 3vw, 40px);
}

/* Landing page header */
.landing-page header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(246,251,255,0.80);
  border-bottom: 1px solid var(--vv-border);
}
.landing-page header .brand-title {
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: 48px;
  background: linear-gradient(135deg, var(--vv-green) 0%, var(--vv-lemon-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.landing-page header .brand-subtitle {
  font-size: 18px;
  color: var(--vv-muted);
}

/* Links */
.home-landing a { color: var(--vv-navy-2); }
.home-landing a:hover { color: var(--vv-green-2); }

/* Un-scoped fallbacks for pages without .home-landing */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.home-activity {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.home-activity h3 {
  margin: 0 0 0.75rem 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.activity-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.activity-list li {
  padding: 0.55rem 0.25rem;
  font-size: 0.9rem;
  border-bottom: 1px solid #eef1f7;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.activity-list li:last-child {
  border-bottom: none;
}

.activity-time {
  color: #777;
  font-size: 0.8rem;
  white-space: nowrap;
}

.activity-muted {
  color: #777;
  font-style: italic;
}

.activity-footer {
  margin-top: 0.75rem;
}

.tax-row {
  color: #b45309;
}

.profit-summary {
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 0.95rem;
  max-width: 460px;
}

.psr {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 4px 0;
  line-height: 1.6;
}

.psr .psr-label {
  flex: 1;
}

.psr .psr-value {
  text-align: right;
  font-variant-numeric: tabular-nums;
  min-width: 100px;
}

.psr.psr-indent {
  padding-left: 20px;
}

.psr.psr-section {
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #374151;
  margin-top: 12px;
  margin-bottom: 2px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 4px;
}

.psr.psr-subtotal {
  font-weight: 700;
  border-top: 1px solid #aaa;
  margin-top: 4px;
  padding-top: 6px;
}

.psr.psr-final {
  font-weight: 700;
  font-size: 1.15rem;
  border-top: 3px double #333;
  margin-top: 8px;
  padding-top: 10px;
}

.margin-row {
  font-weight: 600;
  color: #0f766e;
}

.ios-card-header-main {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ios-card-title {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ios-card-chevron .chevron-icon {
  display: inline-block;
  transition: transform 0.2s ease-out;
  font-size: 1rem;
}

.ios-card.card-open .chevron-icon {
  transform: rotate(180deg);
}

.ios-card-content {
  padding: 10px 16px 14px;
  background: #ffffff;
  font-size: 0.9rem;
  color: #333;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.25s ease-out,
    opacity 0.2s ease-out;
}

/* info list styling inside cards */
.info-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.info-key {
  font-weight: 600;
  color: #555;
}

.info-value {
  text-align: right;
  color: #222;
}

/* table inside cards */
.card-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.card-table th,
.card-table td {
  padding: 4px 6px;
  font-size: 0.85rem;
}

.card-table thead {
  border-bottom: 1px solid #ddd;
}

.card-table tbody tr:nth-child(odd) {
  background: #fafafa;
}

body {
  font-family: 'Segoe UI', Roboto, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* App shell */
.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --------------------------------------------------
   Header / Brand / Nav
   -------------------------------------------------- */

header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

header .brand-logo {
  height: 140px;
  width: auto;
  object-fit: contain;
}

header .brand-text {
  display: flex;
  flex-direction: column;
}

header .brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--vv-green) 0%, var(--vv-lemon-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

header .brand-subtitle {
  font-size: 0.8rem;
  color: var(--vv-muted);
  letter-spacing: 0.2px;
}

header .nav-buttons {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Hamburger – hidden on desktop */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border: none;
  background: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Plain text nav links */
.header-buttons .nav-link {
  background: none;
  border: none;
  color: #4b5563;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  border-radius: 4px;
  transition: color 0.15s ease;
  white-space: nowrap;
  text-decoration: none;
}

.header-buttons .nav-link:hover {
  color: var(--vv-green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.header-buttons .nav-link.active {
  color: var(--vv-green);
  font-weight: 600;
}

/* Primary CTA — Add Event */
.header-buttons .nav-cta {
  background: var(--vv-green);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.45rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  margin-left: 0.5rem;
  transition: background 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}

.header-buttons .nav-cta:hover {
  background: #1d6936;
  transform: translateY(-1px);
}

.header-buttons .nav-cta:active {
  transform: translateY(0);
}

/* Mobile nav drawer */
@media (max-width: 640px) {
  header {
    position: relative;
  }

  .hamburger {
    display: flex;
  }

  .header-buttons {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    z-index: 9999;
  }

  .header-buttons.is-open {
    display: flex;
  }

  .header-buttons .nav-link,
  .header-buttons .nav-cta {
    width: 100%;
    text-align: left;
    border-radius: 8px;
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
    margin-left: 0;
  }

  .header-buttons .nav-cta {
    margin-top: 0.25rem;
    text-align: center;
  }
}

/* --------------------------------------------------
   Main layout / sections / cards
   -------------------------------------------------- */

main {
  flex: 1;
  padding: 1.25rem;
}

section {
  max-width: 1100px;
  margin: 0 auto;
}

/* Generic card container */
.card {
  background: var(--panel);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  padding: 1.25rem 1.5rem;
  margin: 1.0rem auto;
}

/* Hide/show helper */
.hidden {
  display: none;
}

/* Headings inside sections */
section h2,
section h3 {
  margin-top: 0;
}

/* Simple fade-in for section transitions */
section {
  animation: fadeIn 0.25s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------
   Buttons (global)
   -------------------------------------------------- */

button,
.btn {
  font-family: inherit;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0.45rem 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: background 0.15s ease, color 0.15s ease,
    box-shadow 0.15s ease, transform 0.05s ease;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 171, 226, 0.35);
}

.btn-primary:hover {
  background: #0092c2;
  box-shadow: 0 3px 8px rgba(0, 146, 194, 0.4);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-secondary {
  background: #ffffff;
  color: #333;
  border: 1px solid #d0d7e5;
}

.btn-secondary:hover {
  background: #f4f6fb;
}

.btn-secondary:active {
  transform: translateY(1px);
}

.btn-danger {
  background: #dc3545;
  color: #fff;
  border: 1px solid #dc3545;
}

.btn-danger:hover {
  background: #c82333;
}

.btn-ghost {
  background: transparent;
  color: #555;
}

.btn-ghost:hover {
  background: #edf2ff;
}

/* Generic form buttons that use type attribute */
button[type='submit'] {
  background-color: var(--accent);
  border-radius: 999px;
  border: none;
  color: #fff;
  padding: 0.45rem 1.2rem;
  font-weight: 500;
}

button[type='submit']:hover {
  background-color: #0092c2;
}

button[type='button'] {
  background-color: #ffffff;
  border-radius: 999px;
  border: 1px solid #d0d7e5;
  color: #222;
  padding: 0.45rem 1.2rem;
  font-weight: 500;
}

button[type='button']:hover {
  background-color: #f4f6fb;
}

/* --------------------------------------------------
   Forms (Add Event, Company, etc.)
   -------------------------------------------------- */

form label {
  display: block;
  margin: 0.4rem 0;
  font-size: 0.86rem;
  color: #444;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  border: 1px solid #ccd4e5;
  font-size: 0.95rem;
  font-family: inherit;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(0, 171, 226, 0.15);
}

textarea {
  min-height: 80px;
  resize: vertical;
}

select {
  background-color: #fff;
}

select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 4px rgba(0, 171, 226, 0.4);
}

/* Add Event form container */
#eventForm {
  background: var(--panel);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* File input for permits */
#permitFiles {
  margin-top: 0.5rem;
}

/* Template selector row in Add Event */
.template-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}

.template-selector label {
  margin: 0;
}

/* Multi-day event rows */
#eventDaysContainer {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.event-day-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #f8f9fb;
  border: 1px solid #e2e6ed;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  flex-wrap: wrap;
}

.day-row-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: #555;
  min-width: 42px;
  flex-shrink: 0;
}

.event-day-row input[type="date"] {
  border: 1px solid #d0d7e5;
  border-radius: 6px;
  padding: 0.3rem 0.5rem;
  font-size: 0.85rem;
  flex: 1;
  min-width: 140px;
}

.day-time-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: #666;
  flex-shrink: 0;
}

.day-time-select {
  border: 1px solid #d0d7e5;
  border-radius: 6px;
  padding: 0.3rem 0.4rem;
  font-size: 0.82rem;
  background: #fff;
}

/* Form buttons row */
.form-buttons {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

/* Required field marker */
.required {
  color: red;
  font-weight: bold;
  margin-left: 3px;
}

/* --------------------------------------------------
   Company section
   -------------------------------------------------- */

.company-fields {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* --------------------------------------------------
   Design Event Form (Builder)
   -------------------------------------------------- */

.form-builder-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0.75rem 0 1.25rem;
}

.form-builder-controls label {
  display: flex;
  flex-direction: column;
  font-size: 0.86rem;
  color: #444;
}

.preview-card {
  border: 1px solid #e1e5f0;
  background: #f9fafb;
  padding: 10px;
  border-radius: 8px;
}

.preview-card label {
  display: block;
  margin: 6px 0;
}

#formPreview {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field-warning {
  color: var(--accent);
  font-size: 0.9rem;
}

/* --------------------------------------------------
   Manage Events - Filters / Search / Table
   -------------------------------------------------- */

.manage-filter-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.search-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.search-fields input {
  max-width: 190px;
}

/* Table container around results */
.table-container {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Base table styles reused for results + report tables */
.lemondrip-table,
.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: #ffffff;
}

.lemondrip-table thead,
.results-table thead {
  background: #f5f7fd;
}

.lemondrip-table th,
.lemondrip-table td,
.results-table th,
.results-table td {
  padding: 0.55rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid rgba(221, 227, 240, 0.75);
}

.lemondrip-table th,
.results-table th {
  font-weight: 600;
  color: #444;
}

/* Row hover effect */
.lemondrip-table tbody tr:hover,
.results-table tbody tr:hover {
  background: #eef7ff;
  cursor: pointer;
}

.results-table {
  border-radius: 12px;
  overflow: hidden;
}

/* --------------------------------------------------
   Dashboard Section (legacy dashboard if used)
   -------------------------------------------------- */

#dashboardContainer {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-wrap: wrap;
  width: 100%;
  gap: 1.5rem;
  padding: 1rem 2rem;
}

#searchResults {
  flex: 1 1 55%;
  min-width: 400px;
}

#dashboard {
  flex: 1 1 40%;
  background: var(--panel);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  padding: 1.5rem;
  max-height: 80vh;
  overflow-y: auto;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

#dashboard:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

#dashTitle {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

#dashDate {
  font-weight: 500;
  color: #333;
}

#dashDetails {
  background-color: #fff;
  border-radius: 12px;
  padding: 10px 15px;
  margin-top: 15px;
  font-size: 0.95em;
  max-height: 400px;
  overflow-y: auto;
}

/* --------------------------------------------------
   New Event Dashboard (eventDashboardSection)
   -------------------------------------------------- */

.dashboard-page {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dashboard-header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.dashboard-title-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: nowrap;
}

.dashboard-title-row button {
  border-radius: 8px;
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.dashboard-header .event-title,
#dashEventName {
  font-size: 1.6rem;
  font-weight: 700;
  color: #222;
}

.dashboard-header .event-date,
#dashEventDate {
  font-size: 0.95rem;
  color: #555;
}

.dashboard-header .finalized-badge-large {
  display: inline-block;
  margin-top: 0.35rem;
  background: var(--accent);
  color: #fff;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: bold;
  border-radius: 8px;
}

/* Small finalized chip */
.finalized-badge {
  background: var(--accent);
  color: white;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: bold;
  margin-left: 6px;
}

/* Metadata strip under title */
.dashboard-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  padding: 0.35rem 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.82rem;
  color: #444;
}

.meta-chip-label {
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.03em;
}

.meta-chip-value {
  color: #222;
}


.dashboard-danger {
  display: flex;
  justify-content: flex-start;
}

/* Dashboard grid of cards */
#eventDashboardContainer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  margin-top: 0.25rem;
}

@media (min-width: 900px) {
  #eventDashboardContainer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Collapsible cards */
.collapsible-card {
  background: #ffffff;
  border-radius: 10px;
  margin-bottom: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  overflow: visible;
}

.collapsible-header {
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  background: #e8f5ff;
  border: none;
  outline: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  cursor: pointer;
}

.collapsible-header::after {
  content: '▾';
  font-size: 0.75rem;
  opacity: 0.7;
}

.collapsible-title {
  font-size: 0.95rem;
}

.collapsible-icon {
  font-size: 0.9rem;
}

.collapsible-content {
  padding: 0.75rem 0.9rem 0.9rem;
  background: #fff;
  color: #222;
  max-height: 600px;
  overflow-y: auto;
}

/* Info list inside cards */
.info-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
}

/* --------------------------------------------------
   Post-Event Report (new layout)
   -------------------------------------------------- */

.report-page {
  padding: 20px 25px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

.report-title {
  font-size: 1.6rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
}

.report-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 15px;
  background: #f7fafc;
  border: 1px solid #e4e4e4;
  border-radius: 10px;
  margin-bottom: 20px;
}

.file-upload-block {
  display: flex;
  flex-direction: column;
  margin-right: 20px;
}

.file-upload-block input {
  margin-top: 6px;
}

.report-buttons {
  display: flex;
  gap: 14px;
}

/* Report content */
.report-content {
  padding: 10px 5px;
}

/* Individual sections */
.report-section {
  margin: 22px 0;
  padding: 15px;
  border-radius: 8px;
  background: #fdfdfd;
  border: 1px solid #e6e6e6;
}

.report-section-header {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: #222;
  font-weight: 600;
}

/* Tables inside report sections */
.report-section table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.report-section th,
.report-section td {
  padding: 8px 10px;
  border: 1px solid #dcdcdc;
}

.report-section th {
  background: #f0f7ff;
  font-weight: bold;
}

/* Key/value row style (if used) */
.info-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px solid #f0f0f0;
}

.info-row:last-child {
  border-bottom: none;
}

.info-key {
  font-weight: 600;
  color: #333;
}

.info-value {
  text-align: right;
  color: #444;
}

/* --------------------------------------------------
   Misc small helpers
   -------------------------------------------------- */

.star-container {
  display: inline-flex;
  gap: 0.15rem;
}

.star {
  font-size: 1rem;
  color: #d4d7e5;
  cursor: pointer;
}

.star.filled {
  color: #ffc107;
}
/* --------------------------------------------
   Report: Upgraded Styling
--------------------------------------------- */

.report-block {
  background: #ffffff;
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid var(--border, #cfd6e4);
  margin-bottom: 25px;
}

.report-section-title {
  background:#f1f5fb;
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
  border: 1px solid #dce3f2;
}

.report-content section {
  display: block !important;
}
.report-icon {
  font-size: 1.3rem;
}

.kv-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 2px;
  border-bottom: 1px solid #e1e5ef;
  font-size: 0.95rem;
}

.kv-row:last-child {
  border-bottom: none;
}

.kv-label {
  font-weight: 600;
  color: #555;
}

.kv-value {
  color: #111;
  font-weight: 500;
}

.kv-empty {
  color: #777;
  font-style: italic;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.report-table thead {
  background: var(--accent-soft);
}

.report-table th,
.report-table td {
  padding: 10px;
  border: 1px solid #dce1ee;
}

.report-table th {
  font-weight: 700;
  text-align: left;
  color: #444;
}

.report-table tbody tr:hover {
  background: #f5fbff;
}

.money {
  color: #008040;
  font-weight: 700;
}

.totals-block .kv-label {
  color: var(--accent);
}

/* Mobile tweaks */
@media (max-width: 800px) {
  #dashboardContainer {
    flex-direction: column;
    padding: 1rem;
  }

  section {
    padding: 0 0.75rem;
  }

  .report-controls {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .report-buttons {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}
/* ---------------------------------
   Modern Sheet Cards
----------------------------------*/
.sheet-card {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin: 16px 0;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.sheet-card:hover {
  box-shadow: 0 3px 14px rgba(0,0,0,0.12);
}

/* Header */
.sheet-header {
  width: 100%;
  background: #ffffff;
  padding: 16px 20px;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: #222;
  transition: background 0.2s ease;
}

.sheet-header:hover {
  background: #f5f5f5;
}

.sheet-header .arrow {
  font-size: 18px;
  transition: transform 0.25s ease;
}

/* Content */
.sheet-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.35s ease, opacity 0.35s ease, padding 0.35s ease;
}

.sheet-content.expanded {
  max-height: 1000px;   /* enough for large lists */
  opacity: 1;
  padding: 16px 20px 24px;
}

.sheet-content.collapsed {
  padding: 0 20px;
}

/* Event Profit Summary Ledger Styles */
.profit-summary {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.95rem;
}

.ledger-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
}

.ledger-label {
  color: #444;
}

.ledger-amount {
  min-width: 110px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.section-divider {
  border-top: 1px solid #ddd;
  margin: 12px 0;
}

.section-title {
  font-weight: 600;
  margin-top: 10px;
  margin-bottom: 6px;
}

.total-row {
  font-weight: 600;
}

.final-row {
  font-size: 1.05rem;
  font-weight: 700;
  border-top: 2px solid #000;
  padding-top: 8px;
}

.ledger-row-info {
  color: #888;
  font-style: italic;
  font-size: 0.88rem;
}

.ledger-note {
  margin-top: 10px;
  font-size: 0.78rem;
  color: #aaa;
  line-height: 1.4;
}

.profit-positive .ledger-amount {
  color: #16a34a;
  font-weight: 700;
}

.profit-negative .ledger-amount {
  color: #dc2626;
  font-weight: 700;
}
/* ================================
   Scrollable Card Table Wrapper
================================ */
.card-table-wrapper {
  width: 100%;
  max-height: 400px;          /* Vertical scroll limit */
  overflow-x: auto;           /* Horizontal scroll */
  overflow-y: auto;           /* Vertical scroll */
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

/* Prevent table from shrinking */
.card-table-wrapper table {
  min-width: 900px;           /* Forces horizontal scroll if wide */
  border-collapse: collapse;
}

/* Optional: sticky header */
.card-table-wrapper thead th {
  position: sticky;
  top: 0;
  background: white;
  z-index: 2;
}

/* Button spinner */
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
}

.btn-loading {
  opacity: 0.7;
  cursor: wait;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 260px;
  max-width: 420px;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.92rem;
  line-height: 1.4;
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast-visible {
  opacity: 1;
  transform: translateX(0);
}

.toast-success {
  background: #16a34a;
}

.toast-error {
  background: #dc2626;
}

.toast-warning {
  background: #d97706;
}

.toast-info {
  background: var(--accent, #00ABE2);
}

.toast-retry {
  margin-left: 12px;
  padding: 3px 12px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 6px;
  background: transparent;
  color: #fff;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
}

.toast-retry:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Inline error banner */
.inline-error {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 0.93rem;
  margin: 16px 0;
}

.inline-error-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.inline-error-retry {
  margin-left: auto;
  padding: 6px 16px;
  border: 1px solid #dc2626;
  border-radius: 8px;
  background: #fff;
  color: #dc2626;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.inline-error-retry:hover {
  background: #fef2f2;
}

/* Post-Finalize Feedback Banner */
.feedback-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px 24px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1a1a1a;
  font-size: 0.95rem;
  font-weight: 500;
  z-index: 10000;
  transform: translateY(100%);
  transition: transform 0.35s ease;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
}
.feedback-banner-visible {
  transform: translateY(0);
}
.feedback-banner a {
  color: #1a1a1a;
  font-weight: 700;
  text-decoration: underline;
}
.feedback-banner-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: #1a1a1a;
  padding: 0 4px;
  line-height: 1;
  opacity: 0.7;
}
.feedback-banner-close:hover {
  opacity: 1;
}

/* Auth Section */
.auth-container {
  max-width: 400px;
  margin: 60px auto;
  padding: 2rem;
  text-align: center;
}

.auth-brand {
  margin-bottom: 2rem;
}

.auth-brand .brand-title {
  font-size: 1.5rem;
  display: block;
}

.auth-brand .brand-subtitle {
  display: block;
  margin-top: 0.25rem;
}

.auth-subtitle {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.auth-fields {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.auth-fields input {
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  width: 100%;
  box-sizing: border-box;
}

.auth-fields input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.auth-submit {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border-radius: 10px;
  margin-top: 0.5rem;
}

.auth-error {
  color: #dc2626;
  font-size: 0.85rem;
  min-height: 1.2em;
  margin-bottom: 0.5rem;
}

.auth-toggle {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.auth-toggle a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.auth-toggle a:hover {
  text-decoration: underline;
}

#authSection {
  border: none;
  box-shadow: none;
  background: transparent;
}

#authSection .auth-container {
  background: var(--panel);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
}

/* Empty states */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--muted);
}
.empty-state h3 {
  margin: 0.5rem 0 0.25rem;
  color: var(--text);
  font-size: 1.25rem;
}
.empty-state p {
  margin: 0 0 1.25rem;
}
.empty-state-icon {
  font-size: 2.5rem;
  line-height: 1;
}
.empty-state-cell {
  text-align: center;
  padding: 1.5rem !important;
  color: var(--muted);
}
.empty-state-inline {
  text-align: center;
  padding: 1rem 0;
  color: var(--muted);
}

/* ============================================
   Upgrade to Pro Modal
============================================ */
:root {
  --accent-dark: #0085b0;
  --accent-glow: rgba(0, 171, 226, 0.25);
  --gold: #f5a623;
  --gold-light: #fff8ec;
  --pro-gradient: linear-gradient(135deg, #0085b0 0%, #00ABE2 50%, #00c9ff 100%);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 30, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.upgrade-modal {
  background: var(--panel);
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  box-shadow:
    0 4px 6px rgba(0,0,0,0.04),
    0 20px 60px rgba(0,0,0,0.18),
    0 0 0 1px rgba(255,255,255,0.9);
  overflow: hidden;
  transform: scale(0.92) translateY(16px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
  opacity: 0;
  position: relative;
}

.modal-overlay.open .upgrade-modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.upgrade-modal .modal-header {
  background: var(--pro-gradient);
  padding: 28px 28px 24px;
  position: relative;
  overflow: hidden;
}

.upgrade-modal .modal-header::before,
.upgrade-modal .modal-header::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.upgrade-modal .modal-header::before {
  width: 200px; height: 200px;
  top: -80px; right: -60px;
}
.upgrade-modal .modal-header::after {
  width: 120px; height: 120px;
  bottom: -40px; left: -30px;
}

.upgrade-modal .modal-close {
  position: absolute;
  top: 14px; right: 14px;
  background: rgba(255,255,255,0.2);
  border: none;
  border-radius: 50%;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: white;
  font-size: 1rem;
  transition: background 0.15s ease;
  z-index: 2;
  line-height: 1;
}
.upgrade-modal .modal-close:hover { background: rgba(255,255,255,0.35); }

.pro-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}

.upgrade-modal .modal-header h2 {
  font-size: 1.7rem;
  color: #fff;
  line-height: 1.2;
  position: relative;
  z-index: 2;
  margin-bottom: 6px;
}

.upgrade-modal .modal-header p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.5;
  position: relative;
  z-index: 2;
}

.trigger-reason {
  background: #fff8ec;
  border-bottom: 1px solid #ffe8b8;
  padding: 10px 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: #92540a;
  font-weight: 500;
}

.trigger-reason .reason-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.upgrade-modal .modal-body {
  padding: 24px 28px 0;
}

.features-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 12px;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  padding: 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.4;
}

.feature-check {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
}

.feature-list li strong {
  font-weight: 600;
  color: var(--text);
}

.feature-list li span {
  color: var(--muted);
  font-size: 0.85rem;
}

.starter-note {
  background: #f8faff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 24px;
}
.starter-note .lock-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.upgrade-modal .modal-divider {
  height: 1px;
  background: var(--border);
  margin: 0 28px 24px;
}

.upgrade-modal .modal-footer {
  padding: 0 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cta-btn {
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: -0.01em;
  font-family: inherit;
}

.cta-primary {
  background: var(--pro-gradient);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 171, 226, 0.4);
  position: relative;
  overflow: hidden;
}
.cta-primary:hover {
  box-shadow: 0 6px 20px rgba(0, 171, 226, 0.55);
  transform: translateY(-1px);
}
.cta-primary:active { transform: translateY(0); }

.cta-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  animation: shimmer 2.5s infinite;
}
@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 200%; }
}

.cta-secondary {
  background: transparent;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px;
}
.cta-secondary:hover { color: var(--text); background: var(--bg); border-radius: 8px; }

.price-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2px;
}

.fi-reports { background: #eef9ff; color: var(--accent); }
.fi-events  { background: #f0fff4; color: #22a559; }
.fi-pdf     { background: #fff4f0; color: #e05c2a; }
.fi-history { background: #f5f0ff; color: #7c3aed; }
.fi-square  { background: #fff8ec; color: #d97706; }
.fi-design  { background: #fdf0ff; color: #a020a0; }

/* ============================================
   Welcome Beta Modal
============================================ */
.welcome-modal {
  background: var(--panel);
  border-radius: 20px;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow:
    0 4px 6px rgba(0,0,0,0.04),
    0 20px 60px rgba(0,0,0,0.18);
  transform: scale(0.92) translateY(16px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
  opacity: 0;
}

.modal-overlay.open .welcome-modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.welcome-header {
  background: linear-gradient(135deg, var(--vv-navy) 0%, var(--vv-navy-2) 100%);
  padding: 32px 28px 24px;
  position: relative;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

.welcome-header::before {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  top: -80px; right: -60px;
  border-radius: 50%;
  background: rgba(25,179,122,0.15);
}

.welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,216,77,0.2);
  border: 1px solid rgba(255,216,77,0.4);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--vv-lemon);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}

.welcome-header h2 {
  font-size: 1.6rem;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 8px;
  position: relative;
  z-index: 2;
}

.welcome-subtitle {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
  position: relative;
  z-index: 2;
  margin-bottom: 8px;
}

.welcome-note {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
  position: relative;
  z-index: 2;
  margin: 4px 0;
}

.welcome-body {
  padding: 24px 28px 0;
}

.welcome-section-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 14px;
}

.welcome-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

@media (max-width: 640px) {
  .welcome-steps { grid-template-columns: 1fr; }
  .welcome-modal { max-width: 95vw; }
}

.welcome-step {
  background: #f8faff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.step-number {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--vv-green);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.welcome-step h3 {
  font-size: 0.95rem;
  color: var(--text);
  margin: 0 0 6px;
}

.welcome-step p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
  margin: 0 0 8px;
}

.welcome-step ul {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  font-size: 0.8rem;
  color: var(--muted);
}

.welcome-step ul li::before {
  content: "• ";
  color: var(--vv-green);
  font-weight: 700;
}

.welcome-action {
  margin-top: auto;
  font-size: 0.82rem;
  padding: 8px 12px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}

.welcome-discover {
  background: #f0fff4;
  border: 1px solid rgba(25,179,122,0.2);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 20px;
}

.welcome-discover h3 {
  font-size: 0.95rem;
  color: var(--vv-navy);
  margin: 0 0 10px;
}

.welcome-discover ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.welcome-discover li {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.8;
}

.welcome-feedback {
  text-align: center;
  padding: 16px 0 20px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

.welcome-feedback h3 {
  font-size: 0.95rem;
  color: var(--vv-navy);
  margin: 0 0 6px;
}

.welcome-feedback p {
  font-size: 0.84rem;
  color: var(--muted);
  margin: 0 0 12px;
}

.welcome-guardrails {
  padding: 12px 0 4px;
}

.welcome-guardrails p {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.6;
  text-align: center;
  font-style: italic;
}

.welcome-footer {
  padding: 0 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ============================================================
   📦 Vendor Inventory Section
   ============================================================ */

.inv-header h2 { margin: 0 0 4px; }
.inv-subtitle   { margin: 0 0 20px; color: var(--muted); font-size: 0.9rem; }

/* Toolbar */
.inv-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}
.inv-upload-group,
.inv-search-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.inv-file-label {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--vv-border);
  background: var(--panel);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  transition: background 0.15s;
}
.inv-file-label:hover { background: var(--accent-soft); }
.inv-file-name {
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.inv-search-group input,
.inv-search-group select {
  padding: 7px 10px;
  border: 1px solid var(--vv-border);
  border-radius: 8px;
  font-size: 0.85rem;
  background: var(--panel);
  color: var(--text);
}

/* Table */
.inv-table-wrap { overflow-x: auto; }
.inv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.inv-table th {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 2px solid var(--vv-border);
  font-weight: 600;
  color: var(--vv-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.inv-table td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--vv-border);
  vertical-align: middle;
}
.inv-row:hover td { background: var(--accent-soft); }
.inv-cell-input {
  width: 100%;
  padding: 5px 7px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  font-size: 0.875rem;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}
.inv-cell-input:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
}
.inv-cost { width: 90px; text-align: right; }
.inv-save-btn,
.inv-delete-btn {
  padding: 4px 8px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: opacity 0.15s;
}
.inv-save-btn   { background: var(--vv-green);  color: #fff; margin-right: 4px; }
.inv-delete-btn { background: #ff4d4f; color: #fff; }
.inv-save-btn:hover,
.inv-delete-btn:hover { opacity: 0.85; }

.inv-empty {
  color: var(--muted);
  font-style: italic;
  padding: 24px 0;
  text-align: center;
}

/* ============================================================
   🛒 Inventory Picker Modal
   ============================================================ */
.inv-picker-modal {
  background: var(--panel);
  border-radius: 16px;
  width: 100%;
  max-width: 560px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--vv-shadow);
  overflow: hidden;
  transform: scale(0.93) translateY(14px);
  transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1), opacity 0.22s ease;
  opacity: 0;
}
.modal-overlay.open .inv-picker-modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.inv-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--vv-border);
}
.inv-picker-header h3 { margin: 0; font-size: 1.05rem; }

.inv-picker-search {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--vv-border);
}
.inv-picker-search input,
.inv-picker-search select {
  flex: 1;
  padding: 7px 10px;
  border: 1px solid var(--vv-border);
  border-radius: 8px;
  font-size: 0.85rem;
  background: var(--panel);
  color: var(--text);
}

.inv-picker-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.picker-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  cursor: pointer;
  transition: background 0.12s;
  border-bottom: 1px solid var(--vv-border);
}
.picker-row:hover { background: var(--accent-soft); }
.picker-check { width: 16px; height: 16px; cursor: pointer; flex-shrink: 0; }
.picker-name  { flex: 1; font-size: 0.9rem; font-weight: 500; }
.picker-cat   {
  font-size: 0.75rem;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
}
.picker-cost  { font-size: 0.82rem; color: var(--muted); white-space: nowrap; }
.picker-qty   {
  width: 58px;
  padding: 4px 6px;
  border: 1px solid var(--vv-border);
  border-radius: 6px;
  font-size: 0.85rem;
  text-align: right;
}

.inv-picker-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid var(--vv-border);
  background: #fafbff;
}
.picker-count  { flex: 1; font-size: 0.85rem; color: var(--muted); }

.inv-picker-empty {
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-style: italic;
}
.inv-picker-empty a {
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
}

/* ============================================================
   🔔 Part B — Alerts Bell, Badge & Panel
   ============================================================ */

.alerts-bell {
  position: relative;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
  margin-left: 0.25rem;
  transition: background 0.15s;
  line-height: 1;
}
.alerts-bell:hover       { background: #f3f4f6; }
.alerts-bell-active      { animation: bell-ring 0.4s ease; }

@keyframes bell-ring {
  0%, 100% { transform: rotate(0deg); }
  25%       { transform: rotate(-18deg); }
  75%       { transform: rotate(18deg); }
}

.alerts-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ff4d4f;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
  pointer-events: none;
}

/* Alerts drop-down panel */
.alerts-panel {
  position: fixed;
  top: 58px;
  right: 16px;
  width: 340px;
  max-height: 480px;
  background: var(--panel);
  border: 1px solid var(--vv-border);
  border-radius: 14px;
  box-shadow: var(--vv-shadow);
  display: flex;
  flex-direction: column;
  z-index: 8000;
  overflow: hidden;
}

.alerts-panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--vv-border);
  background: #fafbff;
}
.alerts-panel-header strong { flex: 1; font-size: 0.9rem; }

.alerts-mark-all {
  font-size: 0.75rem;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  transition: background 0.12s;
}
.alerts-mark-all:hover { background: var(--accent-soft); }

.alerts-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--muted);
  padding: 2px 6px;
  border-radius: 6px;
}
.alerts-close:hover { background: #f0f0f0; }

.alerts-panel-list {
  flex: 1;
  overflow-y: auto;
  padding: 6px 0;
}

.alert-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--vv-border);
  transition: background 0.12s;
}
.alert-row:last-child { border-bottom: none; }
.alert-row:hover      { background: #fff8f0; }

.alert-icon {
  font-size: 1.1rem;
  color: #fa8c16;
  flex-shrink: 0;
  padding-top: 1px;
}
.alert-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.alert-body strong { font-size: 0.88rem; }
.alert-msg         { font-size: 0.78rem; color: var(--muted); line-height: 1.4; }

.alert-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}
.alert-dismiss {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 2px 6px;
  border-radius: 6px;
  align-self: flex-end;
}
.alert-dismiss:hover { background: #f0f0f0; color: #ff4d4f; }

.alerts-empty {
  padding: 24px 16px;
  text-align: center;
  color: var(--muted);
  font-style: italic;
  font-size: 0.875rem;
}

/* ============================================================
   📦 Part B — Pro Inventory Table additions
   ============================================================ */

/* Low-stock row highlight */
.inv-row-low td          { background: #fff8f0 !important; }
.inv-row-low:hover td    { background: #fff0e0 !important; }

.inv-low-flag {
  color: #fa8c16;
  font-size: 0.85rem;
  margin-left: 4px;
  vertical-align: middle;
}

/* Stock number inputs (narrower than name inputs) */
.inv-stock { width: 70px; text-align: right; }

/* Restock button */
.inv-restock-btn {
  padding: 4px 8px;
  border: 1px solid var(--vv-border);
  border-radius: 6px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  font-size: 0.78rem;
  white-space: nowrap;
  transition: background 0.12s;
}
.inv-restock-btn:hover { background: var(--accent-soft); border-color: var(--accent); }

/* ============================================================
   ⚙ Admin Panel
   ============================================================ */

#btnAdmin {
  background: var(--vv-lemon);
  color: var(--vv-ink);
  font-weight: 600;
  border-radius: 8px;
  padding: 6px 14px;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.15s;
}
#btnAdmin:hover { background: var(--vv-lemon-2); }

/* -----------------------------------------------
   📊 Manage Events KPI Cards
----------------------------------------------- */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
@media (max-width: 700px) {
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 400px) {
  .kpi-row { grid-template-columns: 1fr; }
}
.kpi-card {
  background: #fff;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.kpi-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
}
.kpi-value {
  font-size: 1.55rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kpi-sub {
  font-size: 0.76rem;
  color: #9ca3af;
}
.kpi-positive .kpi-value { color: #16a34a; }
.kpi-negative .kpi-value { color: #dc2626; }
.kpi-best {
  border-color: var(--vv-green, #4caf50);
  background: #f0fdf4;
}
.kpi-best-name {
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-header h2 { margin: 0 0 4px; }
.admin-subtitle   { margin: 0 0 20px; color: var(--muted); font-size: 0.9rem; }

/* Stat chips */
.admin-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.admin-stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--vv-navy);
  font-size: 0.85rem;
  border: 1px solid var(--vv-border);
}
.admin-chip-pro { background: #f0fdf4; border-color: var(--vv-green); color: var(--vv-green-2); }

/* Toolbar */
.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}
.admin-toolbar input,
.admin-toolbar select {
  padding: 7px 10px;
  border: 1px solid var(--vv-border);
  border-radius: 8px;
  font-size: 0.85rem;
  background: var(--panel);
  color: var(--text);
}
.admin-toolbar input { flex: 1; min-width: 200px; }

/* Table */
.admin-table-wrap { overflow-x: auto; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.admin-table th {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 2px solid var(--vv-border);
  font-weight: 600;
  color: var(--vv-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--vv-border);
  vertical-align: middle;
}
.admin-row:hover td { background: var(--accent-soft); }

.admin-email  { font-weight: 500; }
.admin-id     { font-size: 0.78rem; color: var(--muted); font-family: monospace; }
.admin-joined { font-size: 0.82rem; color: var(--muted); }

/* Plan badges */
.admin-plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}
.badge-pro     { background: #f0fdf4; color: var(--vv-green-2); border: 1px solid var(--vv-green); }
.badge-starter { background: var(--accent-soft); color: var(--vv-navy); border: 1px solid var(--vv-border); }

/* Action buttons */
.admin-actions { text-align: right; }
.admin-btn {
  padding: 5px 12px;
  border-radius: 7px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  transition: opacity 0.15s, background 0.15s;
  white-space: nowrap;
}
.admin-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.admin-btn-upgrade   { background: var(--vv-green); color: #fff; }
.admin-btn-upgrade:hover { opacity: 0.85; }
.admin-btn-downgrade { background: #fff; color: #666; border-color: var(--vv-border); }
.admin-btn-downgrade:hover { background: #fafafa; }

.admin-empty {
  text-align: center;
  color: var(--muted);
  font-style: italic;
  padding: 32px 0;
}


/* Inline Add Recipe row — collapse to 2-column grid on narrow screens */
@media (max-width: 768px) {
  #inlineAddRecipeContainer > div > div:nth-child(2) {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* ── Square Settings UI ──────────────────────────────────────────────────── */

.sq-page-header { margin-bottom: 16px; }
.sq-page-header h2 { margin-top: 0; color: var(--vv-navy); font-size: 1.3rem; font-weight: 700; }
.sq-page-header p  { color: var(--muted); font-size: 0.88rem; margin-top: 2px; }

.sq-section-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; color: #9ca3af; margin-bottom: 10px; display: block;
}

/* Post-OAuth return banner */
.sq-return-banner {
  background: #f0fdf4; border: 1px solid var(--vv-green);
  border-radius: 12px; padding: 13px 17px;
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 1rem; animation: fadeIn 0.3s ease;
}
.sq-return-banner p { font-size: 0.87rem; color: #14532d; margin: 0; }

/* Onboarding banner */
.sq-onboarding-banner {
  background: linear-gradient(135deg, var(--accent-soft, #e0f5ff) 0%, #d0f0ff 100%);
  border: 1px solid #b3e6f9 !important;
  display: flex; align-items: flex-start; gap: 14px;
  position: relative;
}
.sq-banner-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: #fff; border-radius: 10px; border: 1px solid #b3e6f9;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; box-shadow: 0 2px 6px rgba(0,171,226,0.12);
}
.sq-banner-body { flex: 1; }
.sq-banner-body strong { display: block; color: var(--vv-navy); font-size: 0.92rem; font-weight: 700; margin-bottom: 4px; }
.sq-banner-body p { color: #0077a8; font-size: 0.84rem; line-height: 1.5; margin: 0; }
.sq-banner-actions { display: flex; gap: 10px; margin-top: 12px; align-items: center; flex-wrap: wrap; }
.sq-btn-banner {
  background: var(--accent); color: #fff; border: none; cursor: pointer;
  padding: 7px 18px; border-radius: 999px; font-size: 0.85rem;
  font-family: inherit; font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,171,226,0.35);
  transition: background 0.15s, transform 0.1s;
  display: inline-flex; align-items: center; gap: 7px;
}
.sq-btn-banner:hover { background: var(--accent-hover); transform: translateY(-1px); }
.sq-btn-banner-dismiss {
  background: none; border: none; color: #0077a8; cursor: pointer;
  font-size: 0.82rem; font-family: inherit; font-weight: 500; padding: 0;
}
.sq-btn-banner-dismiss:hover { color: var(--vv-navy); }
.sq-banner-close {
  position: absolute; top: 10px; right: 12px;
  background: none; border: none; cursor: pointer;
  color: #7dd3ee; font-size: 15px; transition: color 0.15s; padding: 2px;
}
.sq-banner-close:hover { color: var(--vv-navy); }

/* Integration card */
.sq-integration-item {
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
  transition: box-shadow 0.15s;
}
.sq-integration-item:hover { box-shadow: 0 4px 14px rgba(11,42,74,0.09); }
.sq-integration-header {
  padding: 16px 18px; display: flex; align-items: center; gap: 14px;
  border-bottom: 1px solid var(--border); background: #fafbff;
}
.sq-logo {
  width: 44px; height: 44px; flex-shrink: 0; background: #000;
  border-radius: 9px; display: flex; align-items: center; justify-content: center;
}
.sq-integration-meta { flex: 1; }
.sq-integration-meta h3 { font-size: 0.97rem; font-weight: 700; color: var(--vv-navy); margin: 0 0 2px; }
.sq-integration-meta p  { font-size: 0.80rem; color: var(--muted); margin: 0; }
.sq-integration-body { padding: 18px; }

/* Status badges */
.sq-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 11px; border-radius: 999px;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.03em; white-space: nowrap;
}
.sq-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.sq-badge-off  { background: #f1f5f9; color: #64748b; border: 1px solid #cbd5e1; }
.sq-badge-off::before  { background: #94a3b8; }
.sq-badge-on   { background: #f0fdf4; color: var(--vv-green-2); border: 1px solid var(--vv-green); }
.sq-badge-on::before   { background: var(--vv-green); animation: sq-pulse 2s infinite; }
.sq-badge-warn { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.sq-badge-warn::before { background: #f59e0b; }
@keyframes sq-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* Disconnected panel */
.sq-features-list { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; gap: 9px; }
.sq-features-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.86rem; color: var(--muted); }
.sq-feat-check {
  width: 18px; height: 18px; flex-shrink: 0; background: #f0fdf4;
  border: 1px solid var(--vv-green); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: var(--vv-green-2); margin-top: 1px;
}
.sq-reassurance { font-size: 0.77rem; color: #9ca3af; display: flex; align-items: center; gap: 6px; margin-top: 12px; }

/* Connected panel */
.sq-connected-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.sq-conn-stat { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 10px 13px; }
.sq-conn-stat-label { font-size: 0.70rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #9ca3af; margin-bottom: 3px; }
.sq-conn-stat-value { font-size: 0.9rem; font-weight: 600; color: var(--vv-navy); }
.sq-conn-footer { display: flex; align-items: center; justify-content: space-between; }
.sq-conn-footer span { font-size: 0.82rem; color: var(--muted); }
.sq-btn-disconnect {
  background: none; border: none; color: #9ca3af; font-size: 0.79rem;
  font-family: inherit; cursor: pointer; padding: 2px 0;
  text-decoration: underline; text-underline-offset: 3px; transition: color 0.15s;
}
.sq-btn-disconnect:hover { color: #dc2626; }

/* Expired / error panel */
.sq-warn-notice {
  background: #fffbeb; border: 1px solid #fde68a;
  border-radius: 8px; padding: 13px 15px; margin-bottom: 16px;
  display: flex; gap: 11px;
}
.sq-warn-icon { font-size: 17px; flex-shrink: 0; margin-top: 1px; }
.sq-warn-text strong { display: block; color: #92400e; font-size: 0.87rem; margin-bottom: 3px; }
.sq-warn-text p { color: #78350f; font-size: 0.81rem; line-height: 1.5; margin: 0; }

/* Location prompt (Add Event form) */
.sq-prompt {
  background: var(--accent-soft, #e0f5ff); border: 1px dashed #7dd3ee;
  border-radius: 8px; padding: 13px 15px;
  display: flex; align-items: flex-start; gap: 11px; margin-top: 4px;
}
.sq-prompt-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.sq-prompt-text { flex: 1; }
.sq-prompt-text strong { display: block; font-size: 0.86rem; color: var(--vv-navy); margin-bottom: 2px; }
.sq-prompt-text p { font-size: 0.79rem; color: #0077a8; margin: 0; }
.sq-btn-prompt-link {
  background: none; border: none; color: var(--accent); cursor: pointer;
  font-size: 0.81rem; font-family: inherit; font-weight: 600;
  padding: 0; margin-top: 5px; display: inline-block;
  text-decoration: underline; text-underline-offset: 2px; transition: color 0.15s;
}
.sq-btn-prompt-link:hover { color: var(--accent-hover); }

@media (max-width: 540px) {
  .sq-connected-stats { grid-template-columns: 1fr; }
}
/* ─────────────────────────────────────────────────────────────────────────── */
