/*
Theme Name:        Collab ERP
Theme URI:         https://collabwebapp.com
Description:       Official enterprise WordPress theme for Collab ERP - a multi-tenant SaaS platform. Features a deep navy design system inspired by the animated logo, full marketing landing page, pricing section, and seamless Collab ERP Plugin integration.
Version:           3.0.0
Requires at least: 6.3
Tested up to:      6.7
Requires PHP:      8.1
Author:            Collab ERP
Author URI:        https://collabwebapp.com
License:           GPL-2.0-or-later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       collab-erp-theme
Tags:              saas, erp, dark, business, full-site-editing, custom-logo, featured-images, sticky-post, two-columns, three-columns, custom-menu
*/

/* ===================================================
   COLLAB ERP DESIGN SYSTEM
   Palette extracted from Collab.gif animated logo:
   Deep navy #050d1a + electric blue glow #388bff
=================================================== */

:root {
  /* Core surface palette  -  Navy blue background per brand spec */
  --c-bg:          #0a1838;   /* Navy blue */
  --c-surface:     #0e2147;
  --c-card:        #122a59;
  --c-card-2:      #173370;
  --c-elevated:    #1d3d85;
  --c-overlay:     rgba(10,24,56,.92);

  /* Borders */
  --c-border:      rgba(255,255,255,.08);
  --c-border-2:    rgba(255,255,255,.14);
  --c-border-3:    rgba(255,255,255,.22);

  /* Brand  -  Sky Blue primary, Orange accent */
  --c-brand:       #38b6ff;   /* Sky blue */
  --c-brand-h:     #5cc5ff;
  --c-brand-dim:   rgba(56,182,255,.14);
  --c-brand-glow:  0 0 28px rgba(56,182,255,.45);
  --c-accent:      #ff8c2a;   /* Orange */
  --c-accent-h:    #ffa550;
  --c-accent-dim:  rgba(255,140,42,.14);
  --c-accent-glow: 0 0 28px rgba(255,140,42,.45);
  --c-navy:        #0a1838;
  --c-navy-2:      #122a59;

  /* Semantic */
  --c-green:       #2ed47a;
  --c-green-dim:   rgba(46,212,122,.12);
  --c-gold:        #ffb340;
  --c-gold-dim:    rgba(255,179,64,.12);
  --c-red:         #ff5c79;
  --c-red-dim:     rgba(255,92,121,.12);
  --c-purple:      #b388ff;
  --c-purple-dim:  rgba(179,136,255,.12);
  --c-cyan:        #00d4ff;

  /* Text */
  --c-text:        #f0f5ff;
  --c-text-2:      #a5b8d6;
  --c-text-3:      #6f85a8;
  --c-text-4:      #3a4e75;

  /* Gradients */
  --g-brand:       linear-gradient(135deg, #38b6ff 0%, #ff8c2a 100%);
  --g-brand-soft:  linear-gradient(135deg, rgba(56,182,255,.18), rgba(255,140,42,.14));
  --g-surface:     linear-gradient(180deg, #0e2147, #0a1838);
  --g-card:        linear-gradient(135deg, #122a59, #173370);
  --g-hero:        radial-gradient(ellipse 90% 70% at 50% 0%, rgba(56,182,255,.22), transparent 60%),
                   radial-gradient(ellipse 70% 50% at 80% 30%, rgba(255,140,42,.14), transparent 60%);

  /* Typography */
  --font-sans:     'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:     'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  /* Spacing scale */
  --sp-1: 4px;   --sp-2: 8px;   --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 20px;  --sp-6: 24px;  --sp-7: 28px;  --sp-8: 32px;
  --sp-10: 40px; --sp-12: 48px; --sp-16: 64px; --sp-20: 80px;

  /* Radius */
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   14px;
  --r-xl:   20px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(0,0,0,.3);
  --shadow-md:  0 4px 24px rgba(0,0,0,.4);
  --shadow-lg:  0 8px 48px rgba(0,0,0,.5);
  --shadow-xl:  0 16px 64px rgba(0,0,0,.6);

  /* Layout */
  --header-h:  68px;
  --sidebar-w: 260px;
  --content-w: 1200px;

  /* Transitions */
  --t-fast:    100ms ease;
  --t-base:    180ms ease;
  --t-slow:    300ms ease;
}

/* ===================================================
   RESET & BASE
=================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  /* Body background uses a radial glow mirroring the logo's signature look:
     deep navy with a soft electric-blue glow emanating from the upper centre. */
  background-color: var(--c-bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(56,182,255,.10), transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(56,182,255,.06), transparent 70%);
  background-attachment: fixed;
  color: var(--c-text);
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--g-hero);
  pointer-events: none;
  z-index: 0;
}

/* ===================================================
   SCROLLBAR
=================================================== */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--c-surface); }
::-webkit-scrollbar-thumb { background: var(--c-border-2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--c-brand-dim); }

/* ===================================================
   TYPOGRAPHY
=================================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--c-text);
}
h1 { font-size: clamp(32px, 5vw, 64px); }
h2 { font-size: clamp(24px, 3.5vw, 44px); }
h3 { font-size: clamp(18px, 2.5vw, 26px); }
h4 { font-size: 18px; }
h5 { font-size: 15px; }
h6 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }

p { margin-bottom: 1em; color: var(--c-text-2); }
p:last-child { margin-bottom: 0; }
a { color: var(--c-brand); text-decoration: none; transition: color var(--t-base); }
a:hover { color: var(--c-brand-h); }
strong, b { font-weight: 700; color: var(--c-text); }
em, i { font-style: italic; }
code { font-family: var(--font-mono); font-size: .88em; background: var(--c-card-2); padding: 2px 6px; border-radius: var(--r-sm); color: var(--c-green); }
pre { background: var(--c-card-2); border: 1px solid var(--c-border); border-radius: var(--r-md); padding: var(--sp-6); overflow-x: auto; font-family: var(--font-mono); font-size: 13px; line-height: 1.6; }
blockquote { border-left: 3px solid var(--c-brand); padding: var(--sp-4) var(--sp-6); background: var(--c-brand-dim); border-radius: 0 var(--r-md) var(--r-md) 0; margin: var(--sp-6) 0; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.5em; color: var(--c-text-2); }
li { margin-bottom: .4em; }
hr { border: none; border-top: 1px solid var(--c-border); margin: var(--sp-8) 0; }

/* ===================================================
   LAYOUT UTILITIES
=================================================== */
.container { max-width: var(--content-w); margin: 0 auto; padding: 0 var(--sp-10); }
.container-sm { max-width: 740px; margin: 0 auto; padding: 0 var(--sp-6); }
.container-lg { max-width: 1400px; margin: 0 auto; padding: 0 var(--sp-10); }

.section { position: relative; z-index: 1; }
.section-pad { padding: var(--sp-20) 0; }
.section-pad-sm { padding: var(--sp-12) 0; }

.grid-2   { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
.grid-3   { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--sp-5); }
.grid-4   { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--sp-5); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: var(--sp-5); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-gap-2 { gap: var(--sp-2); }
.flex-gap-3 { gap: var(--sp-3); }
.flex-gap-4 { gap: var(--sp-4); }

.text-center { text-align: center; }
.text-muted { color: var(--c-text-3); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ===================================================
   SITE HEADER
=================================================== */
#site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--header-h);
  background: #0a1838;
  border-bottom: 1px solid rgba(255,140,42,.2);
  box-shadow: 0 2px 12px rgba(10,24,56,.3);
  /* No transition  -  keeping the header out of a persistent GPU compositing layer
     prevents blur/flash artifacts when child dropdowns open */
}
#site-header.scrolled {
  background: #0a1838;
  border-bottom-color: rgba(255,140,42,.4);
  box-shadow: 0 4px 18px rgba(10,24,56,.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--sp-6);
}

/* Logo */
.site-branding { display: flex; align-items: center; gap: var(--sp-3); flex-shrink: 0; }
.site-branding a { display: flex; align-items: center; gap: var(--sp-3); text-decoration: none; }
.collab-logo-img {
  width: 38px; height: 38px;
  border-radius: var(--r-md);
  border: 1px solid rgba(255,140,42,.3);
  animation: logoGlow 3s ease-in-out infinite;
  object-fit: contain;
}
.site-name {
  font-size: 20px;
  font-weight: 900;
  color: #ff8c2a;  /* Orange */
  letter-spacing: -0.04em;
}
.site-name em { color: #ffb066; font-style: normal; }

/* Primary nav */
#primary-navigation { flex: 1; }
.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  list-style: none;
  padding: 0;
  margin: 0;
  isolation: isolate;
}
.nav-menu li a {
  display: block;
  padding: var(--sp-2) var(--sp-4);
  color: #ff8c2a;  /* Orange */
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--r-md);
  text-decoration: none;
  transition: background var(--t-base), color var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}
.nav-menu li a:hover,
.nav-menu li.current-menu-item > a {
  color: #ffb066;
  background: rgba(255,140,42,.12);
}
.nav-menu li.current-menu-item > a { color: #ffb066; }

/* Turn 46: when a user is logged in, drop the frontpage menu font size
   by 1px so the menu reads as a denser "app shell" rather than the bigger
   marketing header. WordPress adds .logged-in to <body> automatically. */
body.logged-in .nav-menu li a { font-size: 13px; }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: var(--sp-2); flex-shrink: 0; }
.header-actions .collab-notif-wrap { display: flex; align-items: center; }
.header-actions .collab-notif-trigger { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  color: var(--c-text-2);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-md);
  cursor: pointer;
  align-items: center;
  gap: var(--sp-2);
  font-size: 13px;
  font-family: var(--font-sans);
}

/* ===================================================
   BUTTONS
=================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 10px 22px;
  border-radius: var(--r-md);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background var(--t-base), color var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}
.btn:active { transform: scale(.97); }
.btn:focus-visible { outline: 2px solid var(--c-brand); outline-offset: 2px; }

.btn-primary {
  background: var(--c-brand);
  color: #fff;
}
.btn-primary:hover {
  background: var(--c-brand-h);
  color: #fff;
  box-shadow: var(--c-brand-glow);
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--c-elevated);
  color: var(--c-text);
  border: 1px solid var(--c-border-2);
}
.btn-secondary:hover {
  background: var(--c-card-2);
  border-color: var(--c-border-3);
  color: var(--c-text);
}
.btn-ghost {
  background: transparent;
  color: var(--c-text-2);
  border: 1px solid var(--c-border);
}
.btn-ghost:hover { color: var(--c-text); border-color: var(--c-border-2); }

/* Header overrides ghost button to orange on navy */
#site-header .btn-ghost,
.header-actions .btn-ghost {
  color: #ff8c2a;
  border-color: rgba(255,140,42,.3);
  background: rgba(255,140,42,.08);
}
#site-header .btn-ghost:hover,
.header-actions .btn-ghost:hover {
  color: #ffb066;
  border-color: #ff8c2a;
  background: rgba(255,140,42,.18);
}
.btn-success { background: var(--c-green-dim); color: var(--c-green); border: 1px solid rgba(0,229,160,.25); }
.btn-success:hover { background: rgba(0,229,160,.18); }
.btn-danger  { background: var(--c-red-dim);   color: var(--c-red);   border: 1px solid rgba(255,77,109,.25); }
.btn-outline-brand { background: transparent; color: var(--c-brand); border: 1.5px solid var(--c-brand); }
.btn-outline-brand:hover { background: var(--c-brand); color: #fff; }

.btn-sm  { padding: 7px 14px; font-size: 12.5px; border-radius: var(--r-sm); }
.btn-lg  { padding: 14px 32px; font-size: 16px; border-radius: var(--r-lg); }
.btn-xl  { padding: 18px 40px; font-size: 17px; border-radius: var(--r-lg); }
.btn-full { width: 100%; }

.btn-gradient {
  background: var(--g-brand);
  color: #000;
  font-weight: 700;
}
.btn-gradient:hover {
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(56,139,255,.5);
  /* filter:brightness removed  -  creates GPU layer on hover */
}

/* ===================================================
   CARDS
=================================================== */
.card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.card:hover { border-color: var(--c-border-2); }
.card-pad { padding: var(--sp-6); }
.card-header {
  padding: var(--sp-4) var(--sp-6);
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-title { font-size: 15px; font-weight: 700; }
.card-body { padding: var(--sp-6); }

.card-hover {
  transition: transform var(--t-slow), border-color var(--t-slow), box-shadow var(--t-slow);
}
.card-hover:hover {
  transform: translateY(-4px);
  border-color: rgba(56,139,255,.3);
  box-shadow: 0 12px 40px rgba(56,139,255,.12);
}

/* Accent-top cards */
.card-accent { position: relative; overflow: hidden; }
.card-accent::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.card-accent.blue::before   { background: var(--c-brand); }
.card-accent.green::before  { background: var(--c-green); }
.card-accent.gold::before   { background: var(--c-gold); }
.card-accent.red::before    { background: var(--c-red); }
.card-accent.purple::before { background: var(--c-purple); }

/* ===================================================
   BADGES & PILLS
=================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .03em;
  white-space: nowrap;
}
.badge-blue   { background: var(--c-brand-dim); color: var(--c-brand); }
.badge-green  { background: var(--c-green-dim); color: var(--c-green); }
.badge-gold   { background: var(--c-gold-dim);  color: var(--c-gold); }
.badge-red    { background: var(--c-red-dim);   color: var(--c-red); }
.badge-purple { background: var(--c-purple-dim);color: var(--c-purple); }
.badge-gray   { background: rgba(255,255,255,.06); color: var(--c-text-3); }
.badge-outline-brand { background: transparent; color: var(--c-brand); border: 1px solid var(--c-brand); }

/* Section badge (eyebrow) */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--c-brand-dim);
  color: var(--c-brand);
  border: 1px solid rgba(56,139,255,.2);
  border-radius: var(--r-full);
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: var(--sp-5);
}

/* ===================================================
   FORMS
=================================================== */
.form-group { margin-bottom: var(--sp-5); }
.form-label {
  display: block;
  margin-bottom: var(--sp-2);
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text-2);
}
.form-label .req { color: var(--c-red); margin-left: 2px; }
.form-control {
  width: 100%;
  background: var(--c-elevated);
  border: 1px solid var(--c-border-2);
  color: var(--c-text);
  padding: 10px 14px;
  border-radius: var(--r-md);
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.form-control:focus {
  border-color: var(--c-brand);
  box-shadow: 0 0 0 3px rgba(56,139,255,.15);
}
.form-control::placeholder { color: var(--c-text-4); }
select.form-control { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234d6080' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
textarea.form-control { resize: vertical; min-height: 90px; }
.form-hint { margin-top: 5px; font-size: 12px; color: var(--c-text-3); }
.form-error { margin-top: 5px; font-size: 12px; color: var(--c-red); }

/* ===================================================
   ALERTS
=================================================== */
.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-md);
  font-size: 14px;
  margin-bottom: var(--sp-5);
  border: 1px solid;
}
.alert .alert-icon { flex-shrink: 0; margin-top: 1px; }
.alert-info    { background: var(--c-brand-dim);  border-color: rgba(56,139,255,.25);  color: var(--c-brand); }
.alert-success { background: var(--c-green-dim);  border-color: rgba(0,229,160,.25);   color: var(--c-green); }
.alert-warning { background: var(--c-gold-dim);   border-color: rgba(245,166,35,.25);  color: var(--c-gold); }
.alert-danger  { background: var(--c-red-dim);    border-color: rgba(255,77,109,.25);  color: var(--c-red); }
.alert-body strong { display: block; font-weight: 700; }

/* ===================================================
   HERO SECTION
=================================================== */
.hero-section {
  position: relative;
  z-index: 1;
  padding: var(--sp-20) 0 calc(var(--sp-20) * 1.2);
  overflow: hidden;
  text-align: center;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse, rgba(56,139,255,.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(ellipse, rgba(0,229,160,.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-title {
  font-size: clamp(36px, 6vw, 78px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: var(--sp-6);
}
.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--c-brand) 0%, var(--c-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 19px;
  color: var(--c-text-2);
  max-width: 580px;
  margin: 0 auto var(--sp-10);
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: var(--sp-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--sp-12);
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--sp-12);
  flex-wrap: wrap;
  padding-top: var(--sp-10);
  border-top: 1px solid var(--c-border);
  margin-top: var(--sp-12);
}
.hero-stat-num { font-size: 36px; font-weight: 900; color: var(--c-text); font-family: var(--font-mono); }
.hero-stat-lbl { font-size: 12px; color: var(--c-text-3); margin-top: 3px; text-transform: uppercase; letter-spacing: .06em; }

/* Screenshot preview */
.hero-preview {
  position: relative;
  max-width: 900px;
  margin: var(--sp-12) auto 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--c-border-2);
  box-shadow: 0 40px 100px rgba(0,0,0,.6), var(--c-brand-glow);
}
.hero-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, var(--c-bg) 100%);
  z-index: 1;
  pointer-events: none;
}
.preview-bar {
  background: var(--c-card);
  border-bottom: 1px solid var(--c-border);
  padding: var(--sp-3) var(--sp-5);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.preview-dots { display: flex; gap: 6px; }
.preview-dot { width: 10px; height: 10px; border-radius: 50%; }
.preview-dot:nth-child(1) { background: #ff5f57; }
.preview-dot:nth-child(2) { background: #febc2e; }
.preview-dot:nth-child(3) { background: #28c840; }
.preview-url {
  flex: 1;
  background: var(--c-elevated);
  border-radius: 6px;
  padding: 5px 14px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--c-text-3);
  text-align: center;
}

/* ===================================================
   FEATURES / MODULES GRID
=================================================== */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--sp-5); }

.feature-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-7);
  transition: border-color var(--t-slow), box-shadow var(--t-slow);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--g-hero);
  opacity: 0;
  transition: opacity var(--t-slow);
}
.feature-card:hover {
  border-color: rgba(56,139,255,.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(56,139,255,.12);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon-wrap {
  width: 52px; height: 52px;
  border-radius: var(--r-lg);
  background: var(--c-brand-dim);
  border: 1px solid rgba(56,139,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: var(--sp-5);
  position: relative;
  z-index: 1;
}
.feature-card h3 { font-size: 16px; margin-bottom: var(--sp-2); position: relative; z-index: 1; }
.feature-card p  { font-size: 13.5px; color: var(--c-text-3); line-height: 1.6; position: relative; z-index: 1; }
.feature-price   { margin-top: var(--sp-4); font-size: 14px; font-weight: 700; color: var(--c-brand); font-family: var(--font-mono); position: relative; z-index: 1; }

/* ===================================================
   PRICING SECTION
=================================================== */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--sp-6); }

.pricing-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  position: relative;
  transition: border-color var(--t-slow), box-shadow var(--t-slow);
}
.pricing-card.featured {
  border-color: rgba(56,139,255,.4);
  background: linear-gradient(145deg, #0d1f3a, #0d1526);
}
.pricing-card.featured::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-xl);
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(56,139,255,.15), transparent);
  pointer-events: none;
}
.pricing-card:hover:not(.featured) { border-color: var(--c-border-2); transform: translateY(-3px); }
.plan-badge {
  display: inline-block;
  background: var(--c-brand);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: var(--r-full);
  margin-bottom: var(--sp-5);
}
.plan-name  { font-size: 22px; font-weight: 800; margin-bottom: var(--sp-2); }
.plan-desc  { font-size: 13.5px; color: var(--c-text-3); margin-bottom: var(--sp-6); }
.plan-price { margin-bottom: var(--sp-6); }
.plan-amount { font-size: 44px; font-weight: 900; color: var(--c-text); font-family: var(--font-mono); letter-spacing: -2px; }
.plan-amount sup { font-size: 20px; vertical-align: super; }
.plan-cycle  { font-size: 13px; color: var(--c-text-3); margin-top: 3px; }
.plan-features { list-style: none; padding: 0; margin: 0 0 var(--sp-7); }
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-2) 0;
  font-size: 14px;
  color: var(--c-text-2);
  border-bottom: 1px solid var(--c-border);
}
.plan-features li:last-child { border-bottom: none; }
.plan-check { color: var(--c-green); flex-shrink: 0; margin-top: 2px; }
.plan-cross { color: var(--c-text-4); flex-shrink: 0; margin-top: 2px; }

/* ===================================================
   TESTIMONIALS
=================================================== */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--sp-5); }

.testimonial-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-7);
}
.testimonial-body { font-size: 15px; color: var(--c-text-2); font-style: italic; line-height: 1.7; margin-bottom: var(--sp-5); }
.testimonial-author { display: flex; align-items: center; gap: var(--sp-3); }
.testimonial-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--c-brand-dim);
  border: 2px solid var(--c-brand);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px; color: var(--c-brand);
  flex-shrink: 0;
}
.testimonial-name  { font-size: 14px; font-weight: 700; }
.testimonial-role  { font-size: 12px; color: var(--c-text-3); }
.star-rating { color: var(--c-gold); font-size: 14px; margin-bottom: var(--sp-4); letter-spacing: 2px; }

/* ===================================================
   FAQ ACCORDION
=================================================== */
.faq-list { list-style: none; }
.faq-item {
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  margin-bottom: var(--sp-3);
  overflow: hidden;
  transition: border-color var(--t-base);
}
.faq-item.open { border-color: rgba(56,139,255,.3); }
.faq-question {
  width: 100%;
  background: var(--c-card);
  border: none;
  padding: var(--sp-5) var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--c-text);
  text-align: left;
  transition: background var(--t-base);
}
.faq-question:hover { background: var(--c-card-2); }
.faq-icon { color: var(--c-brand); flex-shrink: 0; transition: transform var(--t-base); font-size: 18px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  background: var(--c-card);
  border-top: 1px solid var(--c-border);
  padding: 0 var(--sp-6);
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-slow), padding var(--t-slow);
}
.faq-item.open .faq-answer { max-height: 400px; padding: var(--sp-5) var(--sp-6); }
.faq-answer p { font-size: 14px; }

/* ===================================================
   SITE FOOTER
=================================================== */
#site-footer {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  position: relative;
  z-index: 1;
}
.footer-top {
  padding: var(--sp-16) 0 var(--sp-12);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--sp-10);
}
.footer-brand {}
.footer-logo { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.footer-logo img { width: 34px; height: 34px; border-radius: var(--r-md); animation: logoGlow 3s ease-in-out infinite; }
.footer-logo-text { font-size: 18px; font-weight: 900; color: var(--c-text); }
.footer-logo-text em { color: var(--c-brand); font-style: normal; }
.footer-tagline { font-size: 13.5px; color: var(--c-text-3); line-height: 1.6; margin-bottom: var(--sp-6); max-width: 240px; }
.footer-social { display: flex; gap: var(--sp-3); }
.social-link {
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  background: var(--c-card);
  border: 1px solid var(--c-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-text-3);
  font-size: 16px;
  transition: background var(--t-base), color var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}
.social-link:hover { color: var(--c-brand); border-color: var(--c-brand); }

.footer-col h5 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--c-text-2); margin-bottom: var(--sp-5); }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: var(--sp-3); }
.footer-col a { font-size: 13.5px; color: var(--c-text-3); transition: color var(--t-base); }
.footer-col a:hover { color: var(--c-text); }

.footer-bottom {
  border-top: 1px solid var(--c-border);
  padding: var(--sp-6) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--c-text-3);
  flex-wrap: wrap;
  gap: var(--sp-4);
}
.footer-bottom-links { display: flex; gap: var(--sp-6); }
.footer-bottom-links a { color: var(--c-text-3); }
.footer-bottom-links a:hover { color: var(--c-text); }

/* ===================================================
   PAGE BUILDER BLOCKS
=================================================== */
/* Section with dark bg */
.bg-surface { background: var(--c-surface); }
.bg-card    { background: var(--c-card); }
.border-y   { border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); }

/* Section header block */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--sp-12);
}
.section-header h2 { margin-bottom: var(--sp-4); }
.section-header p  { font-size: 17px; color: var(--c-text-2); }

/* Icon row */
.icon-row { display: flex; gap: var(--sp-8); justify-content: center; flex-wrap: wrap; }
.icon-item { text-align: center; }
.icon-wrap {
  width: 60px; height: 60px;
  border-radius: var(--r-lg);
  background: var(--c-brand-dim);
  border: 1px solid rgba(56,139,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin: 0 auto var(--sp-4);
  transition: background var(--t-base), color var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}
.icon-item:hover .icon-wrap {
  background: var(--c-brand);
  color: #fff;
  transform: translateY(-3px);
}
.icon-item h4 { font-size: 14px; margin-bottom: 4px; }
.icon-item p  { font-size: 12px; color: var(--c-text-3); max-width: 120px; margin: 0 auto; }

/* Numbered steps */
.step-list { display: flex; flex-direction: column; gap: var(--sp-6); }
.step-item { display: flex; gap: var(--sp-5); }
.step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--c-brand-dim);
  border: 2px solid var(--c-brand);
  color: var(--c-brand);
  font-weight: 900;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step-content h3 { font-size: 17px; margin-bottom: var(--sp-2); }
.step-content p  { font-size: 14px; }

/* Comparison table */
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th {
  padding: var(--sp-3) var(--sp-5);
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--c-text-3);
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
}
.compare-table td {
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid rgba(255,255,255,.04);
  font-size: 14px;
  color: var(--c-text-2);
}
.compare-table tr:hover td { background: rgba(255,255,255,.015); }
.compare-table .check { color: var(--c-green); font-weight: 700; }
.compare-table .cross { color: var(--c-red); }

/* Progress bar */
.progress-bar-wrap { margin-bottom: var(--sp-5); }
.progress-label { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: var(--sp-2); }
.progress-label span:last-child { color: var(--c-brand); font-weight: 700; font-family: var(--font-mono); }
.progress-track { background: var(--c-elevated); border-radius: var(--r-full); height: 6px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: var(--r-full); background: var(--g-brand); transition: width 1s ease; }

/* ===================================================
   BLOG / ARCHIVE
=================================================== */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--sp-7); }
.post-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--t-slow), box-shadow var(--t-slow);
}
.post-card:hover { border-color: var(--c-border-2); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.post-card-image { aspect-ratio: 16/9; background: var(--c-elevated); overflow: hidden; }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.post-card:hover .post-card-image img { transform: scale(1.04); }
.post-card-body { padding: var(--sp-6); }
.post-card-meta { display: flex; align-items: center; gap: var(--sp-3); font-size: 12px; color: var(--c-text-3); margin-bottom: var(--sp-3); }
.post-card-title { font-size: 18px; font-weight: 700; margin-bottom: var(--sp-3); line-height: 1.35; }
.post-card-title a { color: var(--c-text); }
.post-card-title a:hover { color: var(--c-brand); }
.post-card-excerpt { font-size: 13.5px; color: var(--c-text-3); line-height: 1.6; }

/* Single post */
.entry-content {
  font-size: 16px;
  line-height: 1.85;
  color: var(--c-text-2);
}
.entry-content > * + * { margin-top: 1.4em; }
.entry-content h2, .entry-content h3, .entry-content h4 {
  color: var(--c-text);
  margin-top: 2em;
  margin-bottom: .5em;
}
.entry-content img { border-radius: var(--r-lg); }
.entry-content ul, .entry-content ol { padding-left: 1.5em; }
.entry-content li { margin-bottom: .5em; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content table th, .entry-content table td { padding: 10px 14px; border-bottom: 1px solid var(--c-border); }
.entry-content table th { font-size: 12px; text-transform: uppercase; color: var(--c-text-3); }

/* ===================================================
   ANIMATIONS
=================================================== */
@keyframes logoGlow {
  /* Use box-shadow instead of filter:drop-shadow  -  box-shadow does NOT create a
     GPU compositing layer, eliminating the blur artifact when nav dropdowns open */
  0%, 100% { box-shadow: 0 0 8px rgba(56,139,255,.5), 0 0 2px rgba(56,139,255,.3); }
  50%       { box-shadow: 0 0 20px rgba(56,139,255,.9), 0 0 8px rgba(56,139,255,.5); }
}
@keyframes fadeUp   { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn   { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse    { 0%,100% { opacity: 1; } 50% { opacity: .5; } }
@keyframes spin     { to { transform: rotate(360deg); } }
@keyframes shimmer  { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

.animate-fade-up { animation: fadeUp .6s ease both; }
.animate-fade-in { animation: fadeIn .4s ease both; }
.spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid rgba(56,139,255,.2); border-top-color: var(--c-brand); border-radius: 50%; animation: spin .7s linear infinite; }

/* ===================================================
   RESPONSIVE
=================================================== */
@media (max-width: 1100px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .container { padding: 0 var(--sp-5); }
  /* Mobile nav is driven by the header's .is-open glass system (header.php).
     The legacy .menu-toggle/.open path is retired to avoid a double hamburger. */
  .menu-toggle { display: none !important; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-stats { gap: var(--sp-6); }
}
@media (max-width: 600px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .grid-4 { grid-template-columns: 1fr; }
}

/* ━━━ User dropdown (v2.8) ━━━ */
.collab-user-dropdown {
  position: relative;
  display: inline-block;
}
.collab-user-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  background: rgba(255,140,42,.1);
  border: 1px solid rgba(255,140,42,.3);
  border-radius: 999px;
  color: #ff8c2a;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: .15s;
}
.collab-user-trigger:hover {
  background: rgba(255,140,42,.2);
  border-color: #ff8c2a;
  color: #ffb066;
}
.collab-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-brand), var(--c-accent));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .02em;
}
.collab-user-name {
  white-space: nowrap;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.collab-user-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  background: var(--c-card);
  border: 1px solid var(--c-border-2);
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(0,0,0,.45);
  padding: 6px;
  display: none;
  z-index: 100000; /* must be above .collab-dropdown-backdrop (99998) */
}
.collab-user-dropdown.is-open .collab-user-menu {
  display: block;
}
.collab-user-menu-header {
  padding: 10px 12px;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.collab-user-menu-header strong { color: var(--c-text); font-size: 14px; }
.collab-user-menu-header span { color: var(--c-text-3); font-size: 12px; }
.collab-user-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  color: var(--c-text-2);
  text-decoration: none;
  font-size: 13px;
  border-radius: 7px;
  transition: .12s;
}
.collab-user-menu a:hover {
  background: var(--c-brand-dim);
  color: var(--c-brand);
}
.collab-user-menu a svg { flex-shrink: 0; opacity: .8; }

/* Turn 45: Mobile responsive  -  fully isolated action-sheet style menu.
   Uses a fixed-position backdrop + high z-index so it can never overlap or
   be hidden behind other page UI. */
.collab-dropdown-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 24, 56, .35);
  display: none;          /* display toggle avoids opacity transition GPU layer */
  z-index: 99998;
}
body.collab-dropdown-open .collab-dropdown-backdrop {
  display: block;         /* shown by JS adding collab-dropdown-open to body */
  opacity: 1;
  visibility: visible;
}

@media (max-width: 600px) {
  .collab-user-trigger { padding: 4px 8px 4px 4px; gap: 4px; }
  .collab-user-name { display: none; }
  .collab-user-menu {
    position: fixed;
    top: auto;
    bottom: 12px;
    left: 12px;
    right: 12px;
    min-width: 0;
    max-width: none;
    max-height: 75vh;
    overflow-y: auto;
    border-radius: 14px;
    box-shadow: 0 -8px 32px rgba(0,0,0,.45);
    transform: translateY(20px);
    z-index: 99999; /* above the backdrop, above the sticky header, above everything */
    background: var(--c-card);
    border: 1px solid var(--c-border-2);
  }
  .collab-user-dropdown.is-open .collab-user-menu {
    transform: translateY(0);
  }
  .collab-user-menu a {
    padding: 13px 14px;
    font-size: 14px;
    white-space: normal;        /* allow wrapping inside narrow phones */
    line-height: 1.35;
  }
  .collab-user-menu-header { padding: 14px; }
  /* Stop body scroll behind the open menu so it feels native */
  body.collab-dropdown-open { overflow: hidden; }
}

/* ━━━ Activity Feed / Community ━━━ */
.activity-feed-wrap { max-width: 720px; margin: 0 auto; padding: 24px 16px; }
.feed-scope-tabs {
  display: flex;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 16px;
}
.feed-scope-tabs button {
  flex: 1;
  padding: 10px 14px;
  background: transparent;
  border: none;
  color: var(--c-text-2);
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  transition: .15s;
}
.feed-scope-tabs button.active {
  background: var(--g-brand);
  color: #fff;
}
.composer {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
}
.composer textarea {
  width: 100%;
  background: var(--c-bg);
  border: 1px solid var(--c-border-2);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--c-text);
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  min-height: 70px;
}
.composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.composer-tools { display: flex; gap: 8px; }
.composer-tools button {
  background: transparent;
  border: 1px solid var(--c-border-2);
  color: var(--c-text-2);
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
}
.composer-tools button:hover { background: var(--c-brand-dim); border-color: var(--c-brand); color: var(--c-brand); }

.feed-post {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 14px;
}
.feed-post.is-ad {
  border-color: var(--c-accent);
  background: linear-gradient(135deg, var(--c-card), var(--c-accent-dim));
}
.feed-post-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.feed-post-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-brand), var(--c-accent));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
}
.feed-post-author { font-weight: 600; color: var(--c-text); }
.feed-post-meta { font-size: 12px; color: var(--c-text-3); }
.feed-post-tenant { color: var(--c-brand); font-weight: 500; }
.feed-ad-badge {
  margin-left: auto;
  background: var(--c-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: .05em;
}
.feed-post-content {
  color: var(--c-text);
  line-height: 1.55;
  margin-bottom: 12px;
  word-wrap: break-word;
}
.feed-post-image {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 12px;
  max-height: 420px;
  object-fit: cover;
}
.feed-post-actions {
  display: flex;
  gap: 8px;
  border-top: 1px solid var(--c-border);
  padding-top: 10px;
}
.feed-post-actions button {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--c-text-2);
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: .12s;
}
.feed-post-actions button:hover { background: var(--c-brand-dim); color: var(--c-brand); }
.feed-post-actions button.liked { color: var(--c-accent); }
.feed-comments { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--c-border); display: none; }
.feed-comments.is-open { display: block; }
.feed-comment {
  display: flex;
  gap: 8px;
  padding: 8px 0;
}
.feed-comment-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--c-brand-dim);
  color: var(--c-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 12px;
  flex-shrink: 0;
}
.feed-comment-body { flex: 1; background: var(--c-bg); border-radius: 12px; padding: 8px 12px; }
.feed-comment-author { font-weight: 600; font-size: 12px; color: var(--c-text); }
.feed-comment-text { font-size: 13px; color: var(--c-text-2); margin-top: 2px; word-wrap: break-word; }
.feed-comment-form { display: flex; gap: 8px; margin-top: 10px; }
.feed-comment-form input { flex: 1; background: var(--c-bg); border: 1px solid var(--c-border-2); border-radius: 999px; padding: 8px 14px; color: var(--c-text); font-size: 13px; }
.feed-comment-form button { background: var(--c-brand); color: #fff; border: none; padding: 8px 16px; border-radius: 999px; cursor: pointer; font-weight: 600; }

/* ━━━ CRM Pipeline (mobile-friendly) ━━━ */
.crm-pipeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(220px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}
@media (max-width: 1100px) { .crm-pipeline { grid-template-columns: repeat(3, minmax(220px, 1fr)); } }
@media (max-width: 720px)  { .crm-pipeline { grid-template-columns: 1fr; } }
.crm-column {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  padding: 12px;
  min-height: 300px;
}
.crm-column-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--c-border); }
.crm-column-title { font-weight: 700; color: var(--c-text); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.crm-column-count { background: var(--c-brand-dim); color: var(--c-brand); padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.crm-deal { background: var(--c-bg); border: 1px solid var(--c-border-2); border-radius: 10px; padding: 12px; margin-bottom: 10px; cursor: grab; transition: .15s; }
.crm-deal:hover { border-color: var(--c-brand); }
.crm-deal-title { font-weight: 600; color: var(--c-text); font-size: 14px; margin-bottom: 6px; }
.crm-deal-value { color: var(--c-accent); font-weight: 700; font-size: 13px; }
.crm-deal-customer { color: var(--c-text-3); font-size: 12px; margin-top: 4px; }

/* ━━━ Marketplace cards ━━━ */
.marketplace-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.marketplace-card { background: var(--c-card); border: 1px solid var(--c-border); border-radius: 14px; padding: 20px; transition: .15s; }
.marketplace-card:hover { border-color: var(--c-brand); transform: translateY(-2px); }
.marketplace-icon { font-size: 32px; margin-bottom: 10px; }
.marketplace-card h3 { margin: 0 0 6px; font-size: 16px; color: var(--c-text); }
.marketplace-card p { font-size: 13px; color: var(--c-text-3); margin: 0 0 12px; line-height: 1.5; }
.marketplace-price { color: var(--c-accent); font-weight: 700; }
.marketplace-status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.marketplace-status.enabled { background: var(--c-green-dim); color: var(--c-green); }
.marketplace-status.disabled { background: rgba(255,255,255,.06); color: var(--c-text-3); }
.marketplace-status.free { background: var(--c-brand-dim); color: var(--c-brand); }

/* -- Company search dropdown on Community page -- */
.company-search-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--c-card);
  border: 1px solid var(--c-border-2);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,.35);
  max-height: 420px;
  overflow-y: auto;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: .15s;
}
.company-search-results.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.csr-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  text-decoration: none !important;
  color: var(--c-text) !important;
  border-bottom: 1px solid var(--c-border);
  transition: .12s;
}
.csr-item:last-child { border-bottom: 0; }
.csr-item:hover { background: var(--c-brand-dim); }
.csr-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.csr-name { font-weight: 600; color: var(--c-text); font-size: 14px; }
.csr-meta { color: var(--c-text-3); font-size: 12px; margin-top: 2px; }
.csr-cta { color: var(--c-brand); font-size: 12px; font-weight: 600; flex-shrink: 0; }
.csr-loading, .csr-empty { padding: 18px; text-align: center; color: var(--c-text-3); font-size: 13px; }

/* ═══════════════════════════════════════════════════════════════
   ████  COLLAB ERP  -  v3.0 "AURORA" ENHANCEMENT LAYER  ████
   Dynamic, brand-aligned visual upgrade. Layered on top of the
   v2.1 system  -  every variable & class name preserved, only the
   visuals are elevated: glass-morphism, animated gradient mesh,
   richer buttons, floating cards, and refined micro-interactions.
   Navy #0a1838 · Sky #38b6ff · Orange #ff8c2a
═══════════════════════════════════════════════════════════════ */

:root {
  /* Extra gradients introduced in v3.0 */
  --g-aurora:    linear-gradient(135deg, #0a1838 0%, #173370 35%, #38b6ff 70%, #ff8c2a 110%);
  --g-mesh:      radial-gradient(at 8% 12%, rgba(56,182,255,.28) 0px, transparent 48%),
                 radial-gradient(at 92% 8%, rgba(255,140,42,.20) 0px, transparent 46%),
                 radial-gradient(at 88% 92%, rgba(56,182,255,.16) 0px, transparent 44%),
                 radial-gradient(at 12% 88%, rgba(255,140,42,.12) 0px, transparent 42%);
  --g-text-tri:  linear-gradient(120deg, #ffffff 0%, #5cc5ff 45%, #ff8c2a 100%);
  --g-glass:     linear-gradient(135deg, rgba(255,255,255,.07) 0%, rgba(255,255,255,.02) 100%);
  --glass-blur:  blur(20px) saturate(170%);
  --sh-brand-lg: 0 18px 50px rgba(56,182,255,.30);
  --sh-accent-lg:0 18px 50px rgba(255,140,42,.32);
}

/* -- Animated body aura  -  slow drifting brand glow ------------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--g-mesh);
  opacity: .55;
  pointer-events: none;
  /* animation removed  -  position:fixed + infinite transform = permanent full-viewport GPU layer */
}
@keyframes auroraDrift {
  /* transform removed  -  infinite transform animations create permanent GPU compositing layers
     causing blur when dropdowns open. Opacity-only animation has no GPU impact. */
  0%   { opacity: .35; }
  50%  { opacity: .55; }
  100% { opacity: .40; }
}
  50%  { opacity: .62; }
  100% { transform: scale(1.18) translate(-2%, 1%); opacity: .5; }
}
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
}

/* -- Gradient text utilities (additive) ------------------------ */
.text-aurora,
.gradient-text-tri {
  background: var(--g-text-tri);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* -- HEADER  -  frosted glass + animated underline nav ----------- */
#site-header {
  background: #0a1838 !important;
  border-bottom: 1px solid var(--c-border);
  /* No transition on header  -  eliminates persistent compositing layer */
}
#site-header.scrolled {
  background: #081428 !important;
  box-shadow: 0 8px 32px rgba(0,0,0,.35);
  border-bottom-color: var(--c-border-2);
}
.collab-logo-img,
.site-branding img.custom-logo {
  border-radius: 10px;
  box-shadow: 0 0 22px rgba(56,182,255,.35);
  transition: transform var(--t-base);
}
.site-branding a:hover .collab-logo-img,
.site-branding a:hover img.custom-logo { transform: rotate(-7deg) scale(1.06); }

.nav-menu li a { position: relative; }
.nav-menu li a::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  background: var(--g-brand);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base);
}
.nav-menu li a:hover::after,
.nav-menu li.current-menu-item > a::after { transform: scaleX(1); }

/* -- BUTTONS  -  shimmer sweep + lift ---------------------------- */
.btn { position: relative; overflow: hidden; letter-spacing: -.01em; }
.btn-primary,
.btn-gradient {
  background: var(--g-brand);
  color: #fff;
  box-shadow: 0 8px 24px rgba(56,182,255,.22), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-primary { background: linear-gradient(135deg,#38b6ff,#2196e3); }
.btn-gradient { color: #fff; }
.btn-primary::before,
.btn-gradient::before {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  transition: left .6s cubic-bezier(.4,0,.2,1);
}
.btn-primary:hover, .btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-brand-lg), inset 0 1px 0 rgba(255,255,255,.2);
}
.btn-primary:hover::before, .btn-gradient:hover::before { left: 120%; }

/* Orange CTA flavour for gradient buttons inside footer CTA banner */
#cta-banner .btn-gradient {
  background: linear-gradient(135deg,#ff8c2a,#ffa550);
  box-shadow: 0 8px 24px rgba(255,140,42,.30), inset 0 1px 0 rgba(255,255,255,.2);
}
#cta-banner .btn-gradient:hover { box-shadow: var(--sh-accent-lg); }

.btn-secondary {
  background: rgba(255,255,255,.08);
  border: 1px solid var(--c-border-2);
  /* backdrop-filter removed  -  causes GPU compositing conflicts with nav dropdowns */
}
.btn-secondary:hover { background: rgba(255,255,255,.10); transform: translateY(-1px); }

/* -- CARDS  -  glass + gradient hairline on hover ---------------- */
.card,
.feature-card,
.pricing-card {
  background: var(--c-card);
  position: relative;
  /* backdrop-filter removed  -  glass effect replaced with solid card background */
}
.card-hover::after,
.feature-card::after,
.pricing-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--g-brand);
  opacity: 0;
  transition: opacity var(--t-base);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.card-hover:hover::after,
.feature-card:hover::after,
.pricing-card:hover::after { opacity: 1; }

/* Feature icon  -  gradient fill + glow on hover */
.feature-card:hover .feature-icon-wrap {
  background: var(--g-brand);
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(56,182,255,.4);
  transform: translateY(-2px) scale(1.05);
  transition: background var(--t-base), color var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}

/* -- HERO  -  animated mesh backdrop + tri-tone title ------------ */
.hero-section::before {
  background: var(--g-mesh);
  width: 1200px; height: 800px;
  opacity: .7;
  border-radius: 0;
  /* animation removed  -  infinite transform on ::before creates GPU layer */
}
.hero-title .gradient-text {
  background: var(--g-text-tri);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  /* textShine animation removed  -  background-position anim on clip:text causes GPU layer */
}
@keyframes textShine {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}
.hero-stat-num {
  background: var(--g-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-preview {
  box-shadow: 0 40px 100px rgba(0,0,0,.6), 0 0 0 1px var(--c-border-2), var(--sh-brand-lg);
  /* floatY animation removed  -  transform animation causes permanent GPU layer → dropdown blur */
}
@keyframes floatY {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-preview, .hero-title .gradient-text { animation: none; }
}

/* -- SECTION EYEBROW  -  pill with pulsing dot ------------------- */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--c-brand-dim);
  border: 1px solid rgba(56,182,255,.3);
  border-radius: var(--r-full);
  padding: 6px 16px;
}
.section-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-brand);
  box-shadow: 0 0 8px var(--c-brand);
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: .4; transform: scale(.7); }
}

/* -- PRICING  -  featured card gets aurora ring ------------------ */
.pricing-card.featured {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--c-card), var(--c-card)) padding-box,
    var(--g-aurora) border-box;
  box-shadow: var(--sh-brand-lg);
}
.pricing-card:hover { transform: translateY(-6px); }

/* -- FOOTER  -  gradient top rule + glowing socials -------------- */
#site-footer {
  position: relative;
  /* background overridden by inline style from customizer; fallback: */
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(56,182,255,.08), transparent 60%),
    var(--c-surface);
}
#site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: min(60%, 700px); height: 2px;
  background: var(--footer-accent, var(--g-aurora));
  opacity: .7;
}
.footer-col h5 { color: var(--footer-accent, var(--c-text-2)); }
.footer-logo-text em { color: var(--footer-accent, #ffb066); font-style: normal; }
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--c-border);
  transition: background var(--t-base), color var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}
.social-link:hover {
  background: var(--c-brand-dim);
  border-color: rgba(56,182,255,.4);
  color: var(--c-brand-h);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(56,182,255,.25);
}

/* -- CTA BANNER  -  animated mesh wash --------------------------- */
#cta-banner {
  position: relative;
  overflow: hidden;
}
#cta-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--g-mesh);
  opacity: .4;
  pointer-events: none;
  /* animation removed  -  infinite transform creates GPU layer */
}
#cta-banner > .container { position: relative; z-index: 1; }

/* -- SCROLL-REVEAL  -  used by footer.js data-animate ------------ */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
}
[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* -- FORM CONTROLS  -  frosted + sky focus ring ------------------ */
.form-control {
  background: rgba(255,255,255,.06);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  /* backdrop-filter removed  -  was causing GPU layer conflicts */
}
.form-control:focus {
  background: rgba(255,255,255,.07);
  border-color: var(--c-brand);
  box-shadow: 0 0 0 3px var(--c-brand-dim);
}

/* -- BADGES  -  subtle ring -------------------------------------- */
.badge { /* backdrop-filter removed */ }

/* -- CUSTOM SCROLLBAR ------------------------------------------ */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--c-bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--c-card-2), var(--c-card));
  border: 2px solid var(--c-bg);
  border-radius: var(--r-full);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--c-brand), var(--c-accent));
}
::selection { background: rgba(56,182,255,.35); color: #fff; }

/* -- FAQ  -  smoother accordion + brand marker ------------------- */
.faq-item { transition: border-color var(--t-base), background var(--t-base); }
.faq-item.open {
  background: linear-gradient(135deg, rgba(56,182,255,.05), transparent);
  border-color: rgba(56,182,255,.35) !important;
}

/* -- User dropdown & notification panels  -  glass --------------- */
/* backdrop-filter removed: panels are above the page backdrop, not behind it.
   Glass blur here would create a double-blur effect on some browsers. */
.collab-user-menu,
.collab-notif-panel {
  /* backdrop-filter intentionally omitted */
}

/* -- Generic section heading spacing polish -------------------- */
.section-pad { padding: clamp(56px, 9vw, 96px) 0; }

/* End v3.0 Aurora layer */
