/* CA24 Design System — Premium SaaS Prototype */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&display=swap');

:root {
  --logo-box-bg: #25B7A7;
  --logo-ca-color: #ffffff;
  --logo-24-color: #000000;
  --primary: #25B7A7;
  --primary-dark: #1e9a8c;
  --primary-light: #3ec9ba;
  --secondary: #25B7A7;
  --secondary-dark: #1e9a8c;
  --secondary-light: #e8f8f6;
  --accent: #F5F7FA;
  --success: #16a34a;
  --success-bg: #f0fdf4;
  --warning: #ea580c;
  --warning-bg: #fff7ed;
  --error: #dc2626;
  --error-bg: #fef2f2;
  --text: #1e293b;
  --text-muted: #475569;
  --text-light: #64748b;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(37, 183, 167, 0.06);
  --shadow: 0 4px 16px rgba(37, 183, 167, 0.08);
  --shadow-md: 0 8px 28px rgba(37, 183, 167, 0.10);
  --shadow-lg: 0 16px 48px rgba(37, 183, 167, 0.14);
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
  --nav-h: 72px;
  --mobile-nav-h: 68px;
  --container: 1180px;
  --transition: 0.2s ease;
  --icon-sm: 16px;
  --icon-md: 18px;
  --icon-lg: 22px;
  /* Type scale */
  --text-h1: clamp(2rem, 4vw, 2.75rem);
  --text-h2: clamp(1.5rem, 2.8vw, 2rem);
  --text-h3: 1.125rem;
  --text-h4: 1rem;
  --text-body: 0.9375rem;
  --text-btn: 0.875rem;
  --text-sm: 0.875rem;
  --text-xs: 0.75rem;
  --lh-tight: 1.25;
  --lh-body: 1.6;
  /* Spacing */
  --space-page: 28px;
  --space-section: 64px;
  --space-card: 20px;
  --input-h: 44px;
  --btn-h: 44px;
  --btn-h-sm: 36px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: var(--text-body);
  color: var(--text);
  background: var(--white);
  line-height: var(--lh-body);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.has-mobile-nav { padding-bottom: calc(var(--mobile-nav-h) + 16px); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: var(--text-body); }
ul, ol { list-style: none; }

/* Typography */
.h1, h1 {
  font-family: var(--font-display); font-size: var(--text-h1); font-weight: 600;
  line-height: 1.15; letter-spacing: -0.02em; color: var(--primary);
}
.h2, h2 {
  font-family: var(--font-display); font-size: var(--text-h2); font-weight: 600;
  line-height: 1.2; letter-spacing: -0.02em; color: var(--primary);
}
.h3, h3 {
  font-family: var(--font); font-size: var(--text-h3); font-weight: 700;
  color: var(--primary); line-height: var(--lh-tight); letter-spacing: -0.01em;
}
.h4, h4 {
  font-family: var(--font); font-size: var(--text-h4); font-weight: 600; color: var(--primary);
}
.lead { font-size: 1.125rem; color: var(--text-muted); line-height: 1.7; }
.muted { color: var(--text-muted); }
.small { font-size: var(--text-sm); }
.xs { font-size: var(--text-xs); }

/* App / SaaS page titles (sans, denser — HubSpot/Stripe style) */
.page-title,
.dash-main > .flex-between h2,
.dash-main > .ad-top h2,
.cmd-main h2,
.ad-main h2,
.ld-page h1,
.rv-layout h1,
.px-hero h1,
.rv-head h1 {
  font-family: var(--font) !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  line-height: var(--lh-tight) !important;
  letter-spacing: -0.02em !important;
  color: var(--primary) !important;
  margin-bottom: 4px;
}
.page-subtitle { font-size: var(--text-sm); color: var(--text-muted); margin-top: 0; }

/* Layout */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--space-section) 0; }
.section-sm { padding: 48px 0; }
.section-accent { background: var(--accent); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.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-wrap { flex-wrap: wrap; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.stack-lg { display: flex; flex-direction: column; gap: 24px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.text-center { text-align: center; }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--btn-h); padding: 10px 20px; border-radius: var(--radius);
  font-weight: 600; font-size: var(--text-btn); letter-spacing: 0;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
  white-space: nowrap; border: 1.5px solid transparent;
  line-height: 1.2;
}
.btn svg { width: var(--icon-md); height: var(--icon-md); flex-shrink: 0; }
.btn-sm svg { width: var(--icon-sm); height: var(--icon-sm); }
.btn:active { transform: scale(0.98); }
.btn:disabled, .btn[disabled] {
  opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; pointer-events: none;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); box-shadow: var(--shadow); }
.btn-secondary { background: var(--secondary); color: white; }
.btn-secondary:hover { background: var(--secondary-dark); box-shadow: 0 4px 16px rgba(37, 183, 167, 0.3); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--primary); }
.btn-outline:hover { border-color: var(--primary); background: var(--accent); }
.btn-ghost { background: transparent; color: var(--primary); }
.btn-ghost:hover { background: var(--accent); }
.btn-whatsapp { background: #25D366; color: white; }
.btn-whatsapp:hover { background: #1ebe57; }
.btn-call { background: var(--primary); color: white; }
.btn-sm { min-height: var(--btn-h-sm); padding: 6px 12px; font-size: 0.8125rem; }
.btn-lg { min-height: 52px; padding: 14px 28px; font-size: 1rem; border-radius: var(--radius-lg); }
.btn-block { width: 100%; }
.btn-icon { width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: var(--radius); }

/* Cards */
.card {
  background: var(--white); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.card:hover { box-shadow: var(--shadow-sm); }
.card-body { padding: var(--space-card); }
.card-interactive { cursor: pointer; }
.card-interactive:hover { transform: translateY(-2px); border-color: #d0d9e6; box-shadow: var(--shadow-md); }

/* Badges */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 600; line-height: 1.4;
}
.badge-primary { background: rgba(37, 183, 167, 0.10); color: var(--primary); }
.badge-secondary { background: var(--secondary-light); color: var(--secondary-dark); }
.badge-premium { background: linear-gradient(135deg, #f59e0b, #d97706); color: white; }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-error { background: var(--error-bg); color: var(--error); }
.badge-verified { background: rgba(37, 183, 167, 0.10); color: var(--primary); }

/* Forms */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-label { font-size: 0.8125rem; font-weight: 600; color: var(--primary); letter-spacing: 0.01em; }
.form-hint { font-size: var(--text-xs); color: var(--text-muted); }
.form-input, .form-select, .form-textarea {
  width: 100%; min-height: var(--input-h); padding: 10px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius); background: var(--white); color: var(--text);
  font-size: var(--text-body); line-height: 1.4;
  transition: border-color var(--transition), box-shadow var(--transition); outline: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-light); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(37, 183, 167, 0.15);
}
.form-input:disabled, .form-select:disabled, .form-textarea:disabled {
  background: var(--accent); color: var(--text-muted); cursor: not-allowed;
}
.form-input.is-error, .form-select.is-error, .form-textarea.is-error {
  border-color: var(--error); box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}
.form-error { font-size: var(--text-xs); color: var(--error); font-weight: 500; }
.form-textarea { min-height: 100px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-check, .filter-check { display: flex; align-items: center; gap: 8px; font-size: var(--text-sm); cursor: pointer; }
.form-check input[type="checkbox"],
.form-check input[type="radio"],
.filter-check input {
  accent-color: var(--secondary); width: 18px; height: 18px; flex-shrink: 0;
}
.search-bar {
  display: flex; align-items: center; gap: 12px;
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-xl); padding: 8px 8px 8px 20px;
  box-shadow: var(--shadow); transition: border-color var(--transition), box-shadow var(--transition);
}
.search-bar:focus-within { border-color: var(--secondary); box-shadow: 0 0 0 4px rgba(37, 183, 167, 0.12), var(--shadow); }
.search-bar input { flex: 1; border: none; outline: none; font-size: 1rem; background: transparent; min-width: 0; }
.search-bar .search-icon { color: var(--text-light); flex-shrink: 0; }

/* Stars */
.stars { display: inline-flex; gap: 2px; color: #f59e0b; }
.stars .empty { color: #e2e8f0; }

/* Avatar */
.avatar {
  width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
  background: var(--accent); border: 2px solid var(--white);
  box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--primary); flex-shrink: 0;
}
.avatar-lg { width: 88px; height: 88px; font-size: 1.5rem; }
.avatar-xl { width: 120px; height: 120px; font-size: 2rem; }
.avatar-sm { width: 36px; height: 36px; font-size: 0.75rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light); height: var(--nav-h);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; font-size: 1.25rem; color: var(--primary); letter-spacing: -0.02em; text-decoration: none; }
.logo-mark {
  width: auto; min-width: 0; height: 24px; padding: 0 6px; border-radius: 5px;
  background: var(--logo-box-bg);
  border: none;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--logo-ca-color);
  font-size: 0.76rem; font-weight: 800; letter-spacing: 0.04em;
  line-height: 1;
  flex-shrink: 0;
}
.logo-ca {
  display: inline-flex; align-items: center; justify-content: center;
  height: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: none;
  font-size: 0.76rem; font-weight: 800; letter-spacing: 0.04em; line-height: 1;
  color: var(--logo-ca-color);
}
.logo-24 {
  display: inline-flex; align-items: center; justify-content: center;
  height: 24px; margin: 0; padding: 0; border: 0; border-radius: 0; background: none;
  font-size: 0.76rem; font-weight: 800; letter-spacing: 0.02em; line-height: 1;
  color: var(--logo-24-color);
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 14px; border-radius: 8px; font-size: 0.9rem; font-weight: 500;
  color: var(--text-muted); transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); background: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 10px; color: var(--primary); }

/* Footer (global light bar — shown on all app pages) */
.ca-foot {
  flex-shrink: 0;
  border-top: 1px solid #ebebeb;
  background: #f8f9fa;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.ca-foot-l, .ca-foot-r { display: flex; align-items: center; flex-wrap: wrap; }
.ca-foot a, .ca-foot button {
  font-family: inherit;
  font-size: 13px;
  color: #70757a;
  background: none;
  border: 0;
  padding: 0;
  margin: 0 12px 0 0;
  cursor: pointer;
  text-decoration: none;
}
.ca-foot a:last-child, .ca-foot button:last-child { margin-right: 0; }
.ca-foot a:hover, .ca-foot button:hover { color: #202124; text-decoration: underline; }
@media (max-width: 640px) {
  .ca-foot { padding: 12px 16px; justify-content: center; }
  .ca-foot-l, .ca-foot-r { justify-content: center; }
}

/* Legacy dark footer (kept for any remaining callers) */
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,0.75); padding: 64px 0 32px; }
.site-footer a { color: rgba(255,255,255,0.75); transition: color var(--transition); }
.site-footer a:hover { color: white; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand .logo { color: white; margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 { color: white; font-size: 0.875rem; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.04em; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col li a { font-size: 0.9rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; flex-wrap: wrap; gap: 12px; }

/* Mobile bottom nav */
.mobile-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: white; border-top: 1px solid var(--border);
  height: var(--mobile-nav-h); padding: 0 8px; padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -4px 20px rgba(37, 183, 167, 0.08);
}
.mobile-nav-inner { display: flex; height: 100%; align-items: stretch; justify-content: space-around; max-width: 480px; margin: 0 auto; }
.mobile-nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; font-size: 0.65rem; font-weight: 600; color: var(--text-light); transition: color var(--transition);
}
.mobile-nav a.active, .mobile-nav a:hover { color: var(--primary); }
.mobile-nav svg { width: 22px; height: 22px; }

/* Floating actions */
.fab-stack {
  position: fixed; right: 20px; bottom: calc(var(--mobile-nav-h) + 20px); z-index: 150;
  display: flex; flex-direction: column; gap: 10px;
}
@media (min-width: 901px) { .fab-stack { bottom: 28px; } }
.fab {
  width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); color: white; transition: transform var(--transition), box-shadow var(--transition);
}
.fab:hover { transform: scale(1.06); box-shadow: var(--shadow-lg); }
.fab-whatsapp { background: #25D366; }
.fab-call { background: var(--primary); }
.sticky-call {
  display: none; position: fixed; bottom: calc(var(--mobile-nav-h) + 12px); left: 16px; right: 80px; z-index: 140;
  background: var(--primary); color: white; padding: 14px; border-radius: var(--radius-lg);
  font-weight: 700; text-align: center; box-shadow: var(--shadow-md); gap: 8px;
  align-items: center; justify-content: center;
}

/* Hero */
.hero {
  position: relative; padding: 72px 0 96px; overflow: hidden;
  background: linear-gradient(160deg, #f8fafc 0%, #eef4f8 40%, #e6f5f3 100%);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(37, 183, 167, 0.12), transparent),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(37, 183, 167, 0.10), transparent);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; position: relative; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; background: white; border-radius: var(--radius-full);
  font-size: 0.8rem; font-weight: 600; color: var(--secondary-dark);
  box-shadow: var(--shadow-sm); margin-bottom: 20px; border: 1px solid var(--border-light);
}
.hero h1 { margin-bottom: 16px; }
.hero .lead { margin-bottom: 32px; max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.hero-stat strong { display: block; font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.hero-stat span { font-size: 0.8rem; color: var(--text-muted); }
.hero-visual {
  position: relative; background: white; border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg); padding: 24px; border: 1px solid var(--border-light);
}
.hero-visual-card {
  display: flex; gap: 14px; align-items: center; padding: 14px;
  border-radius: var(--radius); background: var(--accent); margin-bottom: 12px;
}
.hero-visual-card:last-child { margin-bottom: 0; }
.hero-float {
  position: absolute; background: white; border-radius: var(--radius); padding: 12px 16px;
  box-shadow: var(--shadow-md); border: 1px solid var(--border-light); font-size: 0.8rem; font-weight: 600;
  animation: float 4s ease-in-out infinite;
}
.hero-float.top { top: -16px; right: 24px; color: var(--success); }
.hero-float.bottom { bottom: -12px; left: 20px; color: var(--primary); animation-delay: 1.5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Feature cards */
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--secondary-light); color: var(--secondary-dark);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.feature-card { padding: 28px; height: 100%; }
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 0.925rem; }

/* Section header */
.section-header { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-header .eyebrow { color: var(--secondary); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }

/* CA Cards */
.ca-card { display: flex; flex-direction: column; height: 100%; }
.ca-card-header { padding: 20px 20px 0; display: flex; gap: 14px; align-items: flex-start; }
.ca-card-body { padding: 16px 20px; flex: 1; }
.ca-card-footer { padding: 0 20px 20px; display: flex; gap: 8px; }
.ca-card .firm { font-weight: 700; color: var(--primary); font-size: 1rem; }
.ca-card .name { font-size: 0.875rem; color: var(--text-muted); }
.ca-card .meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 0.8rem; color: var(--text-muted); margin-top: 10px; }
.ca-card .services { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ca-card-list {
  display: flex; gap: 20px; align-items: center; padding: 20px;
}
.ca-card-list .ca-card-body { padding: 0; flex: 1; }
.ca-card-list .ca-card-footer { padding: 0; }

/* Filters */
.filters-panel {
  background: white; border: 1px solid var(--border-light); border-radius: var(--radius-lg);
  padding: 20px; box-shadow: var(--shadow-sm); position: sticky; top: calc(var(--nav-h) + 16px);
}
.filter-group { margin-bottom: 20px; }
.filter-group:last-child { margin-bottom: 0; }
.filter-group h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 10px; color: var(--text-muted); }
.filter-check { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 0.875rem; cursor: pointer; }
.filter-check input { accent-color: var(--secondary); width: 16px; height: 16px; }

/* Directory layout */
.directory-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.directory-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.view-toggle { display: flex; background: var(--accent); border-radius: 10px; padding: 4px; }
.view-toggle button {
  padding: 8px 12px; border-radius: 8px; color: var(--text-muted); display: flex; align-items: center;
}
.view-toggle button.active { background: white; color: var(--primary); box-shadow: var(--shadow-sm); }

/* Profile */
.profile-banner {
  height: 200px; background: linear-gradient(135deg, var(--primary) 0%, #2a5a7a 50%, var(--secondary) 100%);
  position: relative; border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}
.profile-banner::after {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.profile-header-card {
  margin-top: -60px; position: relative; background: white; border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md); padding: 28px; border: 1px solid var(--border-light);
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: start;
}
.profile-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; margin-top: 28px; }
.profile-sidebar .card { margin-bottom: 16px; }
.map-placeholder {
  height: 180px; background: linear-gradient(135deg, #e8eef5, #d4e8e5);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-weight: 600; font-size: 0.875rem; position: relative; overflow: hidden;
}
.map-pin { position: absolute; width: 32px; height: 32px; background: var(--error); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); top: 40%; left: 50%; margin-left: -16px; }
.map-pin::after { content: ''; position: absolute; width: 12px; height: 12px; background: white; border-radius: 50%; top: 10px; left: 10px; }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 24px; overflow-x: auto; }
.tab {
  padding: 12px 18px; font-weight: 600; font-size: 0.9rem; color: var(--text-muted);
  border-bottom: 2px solid transparent; white-space: nowrap; transition: all var(--transition);
}
.tab:hover { color: var(--primary); }
.tab.active { color: var(--primary); border-bottom-color: var(--secondary); }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery-item {
  aspect-ratio: 4/3; border-radius: var(--radius); background: var(--accent);
  display: flex; align-items: center; justify-content: center; color: var(--text-light); overflow: hidden;
}

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 860px; margin: 0 auto; }
.pricing-card {
  padding: 36px; border-radius: var(--radius-xl); border: 1.5px solid var(--border);
  background: white; position: relative; transition: all var(--transition);
}
.pricing-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.pricing-card.featured {
  border-color: var(--secondary); background: linear-gradient(180deg, #f0faf9 0%, white 40%);
  box-shadow: var(--shadow-md);
}
.pricing-card .price { font-size: 2.75rem; font-weight: 800; color: var(--primary); line-height: 1; }
.pricing-card .price span { font-size: 1rem; font-weight: 500; color: var(--text-muted); }
.pricing-features { margin: 28px 0; display: flex; flex-direction: column; gap: 12px; }
.pricing-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.925rem; }
.pricing-features li svg { color: var(--secondary); flex-shrink: 0; margin-top: 2px; }
.popular-tag {
  position: absolute; top: -12px; right: 24px;
  background: var(--secondary); color: white; padding: 4px 14px;
  border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 700;
}

/* FAQ */
.faq-item { border: 1px solid var(--border-light); border-radius: var(--radius); margin-bottom: 10px; background: white; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; padding: 18px 20px; font-weight: 600; color: var(--primary);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 0.95rem;
}
.faq-q:hover { background: var(--accent); }
.faq-a { padding: 0 20px 18px; color: var(--text-muted); font-size: 0.925rem; display: none; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-q svg { transform: rotate(180deg); }

/* Testimonials */
.testimonial-card { padding: 28px; height: 100%; }
.testimonial-card .quote { font-size: 1rem; color: var(--text); margin-bottom: 20px; line-height: 1.7; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }

/* Dashboard */
.dash-layout { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - var(--nav-h)); }
.dash-sidebar {
  background: var(--primary-dark); color: rgba(255,255,255,0.7); padding: 24px 16px;
  position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); overflow-y: auto;
}
.dash-sidebar .logo { color: white; padding: 0 8px; margin-bottom: 32px; }
.dash-nav a {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: var(--radius);
  font-size: var(--text-sm); font-weight: 500; color: rgba(255,255,255,0.65); margin-bottom: 2px;
  transition: all var(--transition);
}
.dash-nav a:hover, .dash-nav a.active { background: rgba(255,255,255,0.1); color: white; }
.dash-nav .nav-section { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; padding: 16px 14px 8px; color: rgba(255,255,255,0.35); font-weight: 700; }
.dash-main { padding: var(--space-page); background: var(--accent); min-height: calc(100vh - var(--nav-h)); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: white; border-radius: var(--radius-lg); padding: var(--space-card); border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}
.stat-card .stat-label { font-size: var(--text-xs); color: var(--text-muted); font-weight: 600; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.03em; }
.stat-card .stat-value { font-size: 1.5rem; font-weight: 700; color: var(--primary); line-height: 1.2; }
.stat-card .stat-change { font-size: var(--text-xs); margin-top: 6px; font-weight: 600; }
.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--error); }
.stat-icon {
  width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-lg); border: 1px solid var(--border-light); background: white; }
table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
th {
  text-align: left; padding: 12px 16px; background: var(--accent); color: var(--text-muted);
  font-weight: 600; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.04em;
  white-space: nowrap; height: 44px;
  position: sticky; top: 0; z-index: 1; box-shadow: 0 1px 0 var(--border-light);
}
td { padding: 12px 16px; border-top: 1px solid var(--border-light); vertical-align: middle; min-height: 52px; }
tr:hover td { background: #fafbfc; }
td .btn-sm { min-height: 32px; }

/* Lead cards */
.lead-card { padding: 18px; cursor: pointer; }
.lead-card .lead-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.status-new .status-dot { background: #3b82f6; }
.status-pending .status-dot { background: #f59e0b; }
.status-followup .status-dot { background: #8b5cf6; }
.status-converted .status-dot { background: var(--success); }

/* Timeline */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 4px; bottom: 4px; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding-bottom: 24px; }
.timeline-item::before {
  content: ''; position: absolute; left: -24px; top: 4px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--secondary); border: 2px solid white; box-shadow: 0 0 0 2px var(--secondary);
}
.timeline-item .time { font-size: 0.75rem; color: var(--text-light); margin-bottom: 4px; }

/* Registration wizard */
.wizard-steps { display: flex; justify-content: space-between; margin-bottom: 40px; position: relative; }
.wizard-steps::before {
  content: ''; position: absolute; top: 18px; left: 10%; right: 10%; height: 2px; background: var(--border); z-index: 0;
}
.wizard-step { display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; z-index: 1; flex: 1; }
.wizard-step .step-num {
  width: 36px; height: 36px; border-radius: 50%; background: white; border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.875rem; color: var(--text-muted);
}
.wizard-step.active .step-num { border-color: var(--secondary); background: var(--secondary); color: white; }
.wizard-step.done .step-num { border-color: var(--secondary); background: var(--secondary-light); color: var(--secondary-dark); }
.wizard-step span { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); text-align: center; }
.wizard-step.active span { color: var(--primary); }
.wizard-panel { background: white; border-radius: var(--radius-xl); padding: 36px; border: 1px solid var(--border-light); box-shadow: var(--shadow); max-width: 720px; margin: 0 auto; }
.upload-zone {
  border: 2px dashed var(--border); border-radius: var(--radius); padding: 28px; text-align: center;
  background: var(--accent); cursor: pointer; transition: all var(--transition);
}
.upload-zone:hover { border-color: var(--secondary); background: var(--secondary-light); }
.service-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.service-chip {
  padding: 10px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-full);
  font-size: 0.875rem; font-weight: 600; color: var(--text-muted); cursor: pointer; transition: all var(--transition);
}
.service-chip:hover, .service-chip.selected { border-color: var(--secondary); background: var(--secondary-light); color: var(--secondary-dark); }
.template-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.template-card {
  border: 2px solid var(--border); border-radius: var(--radius); overflow: hidden; cursor: pointer;
  transition: all var(--transition);
}
.template-card:hover, .template-card.selected { border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(37, 183, 167, 0.2); }
.template-preview { height: 120px; display: flex; align-items: center; justify-content: center; font-weight: 700; color: white; font-size: 0.9rem; }
.template-card p { padding: 10px; font-size: 0.8rem; font-weight: 600; text-align: center; }

/* Web page */
.mw-header { background: white; border-bottom: 1px solid var(--border); padding: 16px 0; }
.mw-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.mw-nav a { padding: 8px 14px; border-radius: 8px; font-size: 0.875rem; font-weight: 500; color: var(--text-muted); }
.mw-nav a:hover, .mw-nav a.active { color: var(--primary); background: var(--accent); }
.mw-hero {
  padding: 80px 0; color: white; text-align: center;
  background: linear-gradient(135deg, var(--primary), #1a4a5c 60%, var(--secondary));
}
.mw-hero h1 { color: white; margin-bottom: 12px; }
.mw-hero .lead { color: rgba(255,255,255,0.85); margin: 0 auto 28px; max-width: 560px; }
.mw-template-bar {
  background: var(--primary-dark); color: white; padding: 10px 16px; display: flex;
  justify-content: space-between; align-items: center; font-size: 0.8rem; flex-wrap: wrap; gap: 8px;
}
.mw-template-bar select { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: white; padding: 6px 10px; border-radius: 8px; }

/* Business card */
.biz-card-page { min-height: calc(100vh - var(--nav-h)); background: var(--accent); display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.biz-card {
  width: 100%; max-width: 420px; background: white; border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--border-light);
}
.biz-card-top {
  background: linear-gradient(135deg, var(--primary), var(--secondary)); padding: 36px 28px 48px; color: white; text-align: center;
}
.biz-card-body { padding: 0 28px 28px; margin-top: -28px; position: relative; }
.biz-card-logo {
  width: 72px; height: 72px; border-radius: 16px; background: white; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow);
  font-weight: 800; color: var(--primary); font-size: 1.1rem;
}
.biz-contact-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--border-light); font-size: 0.9rem;
}
.biz-contact-row:last-of-type { border-bottom: none; }
.biz-contact-icon {
  width: 36px; height: 36px; border-radius: 10px; background: var(--accent);
  display: flex; align-items: center; justify-content: center; color: var(--primary); flex-shrink: 0;
}
.qr-box {
  width: 160px; height: 160px; background: white; border: 1px solid var(--border);
  border-radius: var(--radius); margin: 20px auto; display: flex; align-items: center; justify-content: center;
  padding: 12px;
}
.qr-box svg { width: 100%; height: 100%; }

/* QR page */
.qr-page { max-width: 480px; margin: 0 auto; text-align: center; padding: 48px 24px; }
.qr-large {
  width: 260px; height: 260px; margin: 32px auto; background: white; border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md); padding: 20px; border: 1px solid var(--border-light);
}

/* OTP */
.otp-boxes { display: flex; gap: 10px; justify-content: center; margin: 24px 0; }
.otp-boxes input {
  width: 52px; height: 56px; text-align: center; font-size: 1.5rem; font-weight: 700;
  border: 1.5px solid var(--border); border-radius: var(--radius); outline: none;
}
.otp-boxes input:focus { border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(37, 183, 167, 0.15); }
.rating-input { display: flex; gap: 8px; justify-content: center; margin: 16px 0; }
.rating-input button { font-size: 2rem; color: #e2e8f0; transition: color var(--transition), transform var(--transition); }
.rating-input button.active, .rating-input button:hover { color: #f59e0b; transform: scale(1.1); }

/* Empty state */
.empty-state { text-align: center; padding: 64px 24px; color: var(--text-muted); }
.empty-state .empty-icon {
  width: 72px; height: 72px; border-radius: 20px; background: var(--accent);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; color: var(--text-light);
}

/* Proto banner */
/* .proto-banner removed from UI */

/* Toast */
.toast {
  position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--primary-dark); color: white; padding: 12px 20px; border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 500; z-index: 999; opacity: 0; pointer-events: none;
  transition: opacity var(--transition), transform var(--transition); box-shadow: var(--shadow-lg); white-space: nowrap;
  max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Hours */
.hours-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 0.875rem; border-bottom: 1px solid var(--border-light); }
.hours-row:last-child { border-bottom: none; }
.hours-row .day { font-weight: 600; color: var(--primary); }
.hours-row.open { color: var(--success); }
.hours-row.closed { color: var(--error); }

/* Activity feed */
.activity-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-light); }
.activity-item:last-child { border-bottom: none; }
.activity-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--secondary); margin-top: 6px; flex-shrink: 0; }

/* Responsive */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .directory-layout { grid-template-columns: 1fr; }
  .filters-panel { position: static; display: none; }
  .filters-panel.open { display: block; margin-bottom: 20px; }
  .profile-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dash-layout { grid-template-columns: 1fr; }
  .dash-sidebar { display: none; }
  .dash-sidebar.open { display: block; position: fixed; inset: 0; z-index: 300; height: 100vh; top: 0; }
  .template-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; margin: 0 auto; }
}

@media (max-width: 900px) {
  .nav-links, .nav-actions .btn-ghost { display: none; }
  .menu-toggle { display: flex; }
  .mobile-nav { display: block; }
  body.has-mobile-nav { padding-bottom: calc(var(--mobile-nav-h) + 16px); }
  .sticky-call.show-mobile { display: flex; }
  .profile-header-card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .profile-actions { justify-content: center; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
  .form-row { grid-template-columns: 1fr; }
  .wizard-step span { display: none; }
  .ca-card-list { flex-direction: column; align-items: flex-start; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding: 40px 0 64px; }
  .section { padding: 48px 0; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 20px; }
  .search-bar { flex-direction: column; padding: 12px; border-radius: var(--radius-lg); }
  .search-bar .btn { width: 100%; }
  .template-grid { grid-template-columns: 1fr 1fr; }
  .dash-main { padding: 16px; }
  .wizard-panel { padding: 24px 18px; }
  .container { padding: 0 16px; }
}

/* Mobile menu overlay */
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 250; background: white; padding: 24px;
  flex-direction: column;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 14px 0; font-weight: 600; color: var(--primary); border-bottom: 1px solid var(--border-light); font-size: 1.05rem; }

/* Page transition */
.page-enter { animation: fadeIn var(--transition) ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .page-enter { animation: none; }
  .hero-float { animation: none; }
}

/* Utility colors */
.bg-primary { background: var(--primary); }
.bg-secondary { background: var(--secondary); }
.bg-accent { background: var(--accent); }
.text-secondary { color: var(--secondary); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-error { color: var(--error); }

/* ——— Global SaaS polish (unify module shells without redesign) ——— */
.page-shell {
  padding: var(--space-page) 24px 96px;
  max-width: 1100px;
  margin: 0 auto;
}
.saas-card,
.cmd-stat, .ad-stat, .ad-card, .ld-card, .ld-hero, .rv-card, .rv-panel,
.rv-summary, .rv-feat-card, .px-card, .px-benefit, .px-story, .px-faq {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.cmd-main, .ad-main, .ld-page, .rv-page, .px-page, .tpl-page {
  background: var(--accent) !important;
}
.cmd-main, .ad-main {
  padding: var(--space-page) !important;
}
.empty-state,
.cmd-empty, .ld-empty, .ad-empty, .rv-empty, .px-empty {
  text-align: center;
  padding: 56px 24px;
  background: var(--white);
  border: 2px dashed var(--border);
  border-radius: var(--radius-xl);
}
.cmd-empty-art, .ld-empty-art, .ad-empty-art, .rv-empty-art, .px-empty-art {
  width: 72px; height: 72px; border-radius: 20px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  margin: 0 auto 16px; opacity: 0.85;
}

/* Module card/stat density */
.cmd-stat, .ad-stat { padding: var(--space-card); }
.cmd-stat .val, .ad-stat .val { font-size: 1.5rem; font-weight: 700; color: var(--primary); line-height: 1.2; }
.cmd-stat .lbl, .ad-stat .lbl {
  font-size: var(--text-xs); color: var(--text-muted); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 6px;
}
.ad-card-head { padding: 14px 16px; border-bottom: 1px solid var(--border-light); }
.ad-card-body { padding: var(--space-card); }
.ld-card, .rv-card { padding: var(--space-card); }

/* Focus visibility for accessibility */
:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}
.btn:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}
.form-input:focus-visible, .form-select:focus-visible, .form-textarea:focus-visible {
  outline: none; /* rely on focus box-shadow */
}

/* Touch-friendly icon buttons in toolbars */
.cmd-toolbar .form-input,
.cmd-toolbar .form-select,
.rv-toolbar .form-input,
.rv-toolbar .form-select,
.ad-search .form-input {
  min-height: var(--btn-h-sm);
  padding: 8px 12px;
  font-size: var(--text-sm);
}

/* Reduce dashboard visual noise: quieter secondary actions */
.dash-main .btn-ghost { color: var(--text-muted); }
.dash-main .btn-ghost:hover { color: var(--primary); }

/* Sidebar active consistency */
.dash-nav a svg { width: var(--icon-lg); height: var(--icon-lg); flex-shrink: 0; opacity: 0.9; }
.dash-nav a.active {
  background: rgba(37, 183, 167, 0.2) !important;
  color: #fff !important;
}
.nav-links a { min-height: 36px; display: inline-flex; align-items: center; }
.mobile-nav a { min-height: 44px; }

/* Prevent horizontal overflow on module pages */
.cmd-layout, .ld-grid, .ad-grid, .ad-stats, .cmd-stats, .cmd-analytics {
  max-width: 100%;
}
.ad-stats { gap: 12px; }
@media (max-width: 1100px) {
  .ad-stats { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 640px) {
  .page-title, .dash-main h2, .cmd-main h2, .ad-main h2, .ld-page h1, .rv-layout h1, .px-hero h1 {
    font-size: 1.35rem !important;
  }
  .btn { max-width: 100%; }
  .cmd-lead-actions .btn, .ld-actions .btn, .rv-card-actions .btn {
    min-height: 40px;
  }
}
