:root {
  --bg-dark: #0a192f;
  --bg-card: rgba(15, 23, 42, 0.85);
  --bg-input: #1e293b;
  --primary-cyan: #00f2fe;
  --primary-blue: #0047ab;
  --accent-gold: #f59e0b;
  --accent-green: #10b981;
  --accent-purple: #8b5cf6;
  --accent-pink: #ec4899;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --font-family: 'Inter', 'Outfit', sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  background-image: radial-gradient(circle at 10% 20%, rgba(0, 242, 254, 0.05) 0%, transparent 40%),
                    radial-gradient(circle at 90% 80%, rgba(0, 71, 171, 0.1) 0%, transparent 40%);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ==================================== */
/* COMMERCIAL SAAS LANDING PAGE STYLES */
/* ==================================== */
.saas-landing-page {
  width: 100%;
  min-height: 100vh;
  background: var(--bg-dark);
}

.saas-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 25, 47, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 2rem;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links {
  display: flex;
  gap: 2rem;

  a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;

    &:hover {
      color: var(--primary-cyan);
    }
  }
}

.nav-actions {
  display: flex;
  gap: 1rem;
}

/* HERO */
.hero-section {
  padding: 6rem 2rem 4rem;
  text-align: center;
}

.hero-container {
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid var(--primary-cyan);
  color: var(--primary-cyan);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff, var(--primary-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.h-stat {
  font-size: 0.9rem;
  color: var(--text-muted);

  strong {
    color: var(--primary-cyan);
    font-size: 1.2rem;
  }
}

/* FEATURES GRID */
.features-section,
.pricing-section,
.payment-section {
  padding: 5rem 2rem;
  border-top: 1px solid var(--border-color);
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

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

.f-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.2s;

  &:hover {
    transform: translateY(-5px);
    border-color: var(--primary-cyan);
  }
}

.f-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}

/* PRICING */
.currency-toggle {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.curr-btn {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  cursor: pointer;
}

.curr-btn.active {
  background: var(--primary-cyan);
  color: var(--bg-dark);
  font-weight: 700;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card.popular {
  border: 2px solid var(--primary-cyan);
  box-shadow: 0 0 30px rgba(0, 242, 254, 0.2);
}

.popular-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-cyan);
  color: var(--bg-dark);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.3rem 1rem;
  border-radius: 12px;
}

.p-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
}

.p-header p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 4px;
}

.p-price {
  margin: 1.5rem 0;
}

.price-val {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-cyan);
}

.price-period {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.p-features {
  list-style: none;
  margin-bottom: 2rem;
  flex: 1;

  li {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
}

/* PAYMENTS & FOOTER */
.payment-logos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.pay-chip {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
}

.saas-footer {
  border-top: 1px solid var(--border-color);
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* MODAL */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 25, 47, 0.85);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  width: 100%;
  max-width: 480px;
  padding: 2.5rem;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: var(--text-muted);
  cursor: pointer;
}

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

  h2 { font-size: 1.5rem; }
  p { color: var(--text-muted); font-size: 0.85rem; }
}

.modal-footer-link {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);

  a { color: var(--primary-cyan); font-weight: 600; text-decoration: none; }
}

.demo-accounts {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* APP DASHBOARD WRAPPER */
.app-wrapper {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 280px;
  background: rgba(10, 25, 47, 0.95);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  backdrop-filter: blur(12px);
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.logo-box {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}

.logo-icon {
  font-size: 1.5rem;
  color: #fff;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.company-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 1px;
  color: #fff;
}

.product-name {
  font-size: 0.75rem;
  color: var(--primary-cyan);
  font-weight: 600;
}

.tenant-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 1.5rem;
}

.subdomain-tag {
  color: var(--primary-cyan);
  font-size: 0.7rem;
  font-weight: 600;
}

.sidebar-menu { flex: 1; }

.sidebar-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-menu li a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-weight: 500;

  i { width: 20px; }
}

.sidebar-menu li:hover a,
.sidebar-menu li.active a {
  background: linear-gradient(90deg, rgba(0, 242, 254, 0.15), rgba(0, 71, 171, 0.2));
  color: #fff;
  border-left: 4px solid var(--primary-cyan);
}

.sidebar-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.user-pill { display: flex; align-items: center; gap: 0.75rem; }

.avatar {
  width: 36px;
  height: 36px;
  background: var(--bg-input);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-cyan);
}

.user-name { font-size: 0.85rem; font-weight: 600; }
.user-role { font-size: 0.7rem; color: var(--text-muted); }

.btn-logout {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;

  &:hover { color: #ef4444; }
}

.main-content { flex: 1; padding: 2rem; overflow-y: auto; }

.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.top-header h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
}

.subtitle { color: var(--text-muted); font-size: 0.9rem; }
.header-right { display: flex; align-items: center; gap: 1rem; }

.ai-status-indicator,
.poster-status-indicator {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-dot { width: 8px; height: 8px; border-radius: 50%; }
.status-dot.green { background: var(--accent-green); box-shadow: 0 0 8px var(--accent-green); }
.status-dot.cyan { background: var(--primary-cyan); box-shadow: 0 0 8px var(--primary-cyan); }

.brand-link {
  color: var(--primary-cyan);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;

  &:hover { text-decoration: underline; }
}

.view-section { display: none; }
.view-section.active { display: block; }

.glass-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(16px);
  box-shadow: var(--glass-shadow);
}

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

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.cyan-glow { background: rgba(0, 242, 254, 0.1); color: var(--primary-cyan); }
.green-glow { background: rgba(16, 185, 129, 0.1); color: var(--accent-green); }
.gold-glow { background: rgba(245, 158, 11, 0.1); color: var(--accent-gold); }
.purple-glow { background: rgba(139, 92, 246, 0.1); color: var(--accent-purple); }

.stat-value { font-size: 1.6rem; font-weight: 700; margin-top: 2px; }
.stat-trend { font-size: 0.75rem; margin-top: 4px; }
.stat-trend.positive { color: var(--accent-green); }

.studio-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.form-input,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: #fff;
  font-size: 0.9rem;
  outline: none;

  &:focus { border-color: var(--primary-cyan); }
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.checkbox-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
.check-item { font-size: 0.85rem; display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary-blue), #002b66);
  border: 1px solid var(--primary-cyan);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;

  &:hover {
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
    transform: translateY(-1px);
  }
}

.btn-secondary {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.btn-block { width: 100%; justify-content: center; }

.btn-accent {
  background: linear-gradient(135deg, var(--accent-gold), #d97706);
  border: none;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.8rem; }

.preview-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;

  i { margin-right: 4px; }
}

.tab-btn.active {
  background: rgba(0, 242, 254, 0.15);
  color: var(--primary-cyan);
  font-weight: 600;
}

.mockup-placeholder { text-align: center; padding: 4rem 2rem; color: var(--text-muted); }
.placeholder-icon { font-size: 3rem; color: var(--primary-cyan); margin-bottom: 1rem; }

.social-card-mockup {
  background: #111827;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
}

.mockup-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.avatar-mockup {
  width: 40px;
  height: 40px;
  background: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
}

.mockup-body { font-size: 0.95rem; line-height: 1.6; white-space: pre-wrap; margin-bottom: 1rem; }
.hashtags-box { color: var(--primary-cyan); font-size: 0.85rem; margin-bottom: 1rem; }

.image-prompt-badge {
  background: rgba(139, 92, 246, 0.15);
  border: 1px dashed var(--accent-purple);
  border-radius: 8px;
  padding: 0.75rem;
  font-size: 0.85rem;
  color: #c084fc;
}

.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--border-color); }
.data-table th { color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; }

.badge { padding: 0.25rem 0.6rem; border-radius: 12px; font-size: 0.75rem; font-weight: 600; }
.badge-success { background: rgba(16, 185, 129, 0.2); color: var(--accent-green); }
.badge-warning { background: rgba(245, 158, 11, 0.2); color: var(--accent-gold); }

.accounts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.account-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.account-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
}

.instagram-bg { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.linkedin-bg { background: #0077b5; }
.twitter-bg { background: #000; }
.tiktok-bg { background: linear-gradient(45deg, #00f2fe, #fe2c55); }

.status-pill.active { color: var(--accent-green); font-size: 0.8rem; }

@media (max-width: 900px) {
  .app-wrapper { flex-direction: column; }
  .sidebar { width: 100%; }
  .studio-layout { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.2rem; }
  .hero-stats { flex-direction: column; gap: 1rem; }
}

/* Connections & AI, API & MCP */
.int-card { background: rgba(255,255,255,0.03); border: 1px solid var(--border-color); border-radius: 12px; padding: 1rem 1.25rem; margin-bottom: 1rem; }
.int-card h3 { margin: 0 0 0.4rem; }
.int-card h4 { margin: 1rem 0 0.4rem; font-size: 0.9rem; }
.int-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 0.75rem; margin-top: 0.5rem; }
.int-tile { border: 1px solid var(--border-color); border-radius: 10px; padding: 0.8rem; display: flex; flex-direction: column; gap: 0.4rem; }
.int-tile p { margin: 0; }
.int-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.int-inline { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 0.5rem 0 0.75rem; }
.int-inline .form-input { flex: 1 1 240px; }
.int-code, .int-result { background: rgba(0,0,0,0.35); border-radius: 8px; padding: 0.75rem; overflow-x: auto; white-space: pre-wrap; word-break: break-all; font-size: 0.78rem; }
.int-newkey { background: rgba(16,185,129,0.12); color: var(--accent-green); border-radius: 8px; padding: 0.75rem; margin-bottom: 0.75rem; word-break: break-all; }
.small { font-size: 0.8rem; }
.text-green { color: var(--accent-green); }
.badge-danger { background: rgba(239, 68, 68, 0.2); color: #f87171; }

/* ---- social hub, analytics, calendar, onboarding ---- */
.badge-info { background: rgba(0, 242, 254, 0.15); color: var(--primary-cyan); }
.badge-secondary { background: rgba(148, 163, 184, 0.18); color: var(--text-muted); }
.form-select-sm { padding: 0.35rem 0.5rem; font-size: 0.8rem; width: auto; max-width: 180px; }
.header-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.tag-campaign { display: inline-block; font-size: 0.7rem; padding: 0.1rem 0.45rem; border-radius: 8px; background: rgba(139, 92, 246, 0.18); color: #c4b5fd; }
.post-item-row { padding: 0.6rem 0; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; gap: 0.75rem; align-items: center; }
.small { font-size: 0.8rem; }
.social-intro.demo { border-color: rgba(245, 158, 11, 0.4); }
.social-tile.linked { border-color: rgba(16, 185, 129, 0.45); }
.social-icon { font-size: 1.2rem; color: var(--primary-cyan); width: 1.4rem; }
.acct-line { display: flex; gap: 0.6rem; align-items: center; }
.acct-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.onboarding { margin-bottom: 1.25rem; }
.onboarding-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0.75rem; padding: 0 1.25rem 1.25rem; }
.onboarding-step { display: flex; gap: 0.7rem; align-items: flex-start; text-align: left; background: var(--bg-input); border: 1px solid var(--border-color); border-radius: 10px; padding: 0.75rem; color: var(--text-main); cursor: pointer; font: inherit; }
.onboarding-step:hover { border-color: var(--primary-cyan); }
.onboarding-step.done { opacity: 0.6; }
.step-num { flex: 0 0 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 242, 254, 0.15); color: var(--primary-cyan); font-weight: 700; font-size: 0.8rem; }
.onboarding-step.done .step-num { background: rgba(16, 185, 129, 0.2); color: var(--accent-green); }
.cal-week { display: grid; grid-template-columns: repeat(7, minmax(110px, 1fr)); gap: 0.5rem; overflow-x: auto; margin-bottom: 1rem; }
.cal-day { background: var(--bg-input); border-radius: 10px; padding: 0.5rem; min-height: 90px; }
.cal-day-head { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.35rem; }
.cal-chip { font-size: 0.72rem; padding: 0.2rem 0.4rem; border-radius: 6px; background: rgba(0, 242, 254, 0.15); margin-bottom: 0.25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-chip.done { background: rgba(16, 185, 129, 0.18); }
.an-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 0.75rem; margin-bottom: 1rem; }
.an-tile { background: var(--bg-input); border-radius: 12px; padding: 0.9rem 1rem; }
.an-label { font-size: 0.75rem; color: var(--text-muted); }
.an-value { font-size: 1.7rem; font-weight: 700; color: var(--text-main); }
.an-sub { font-size: 0.72rem; color: var(--text-muted); }
.an-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 1rem; }
.an-card { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-color); border-radius: 12px; padding: 1rem; margin-bottom: 1rem; overflow-x: auto; }
.an-card h4 { margin: 0 0 0.75rem; font-size: 0.9rem; display: flex; justify-content: space-between; }
.an-total { color: var(--text-muted); font-weight: 400; }
.an-cols { display: flex; align-items: flex-end; gap: 2px; height: 140px; border-bottom: 1px solid var(--border-color); }
.an-col { flex: 1 1 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; position: relative; min-width: 3px; }
.an-col:hover .an-bar { filter: brightness(1.3); }
.an-bar { background: var(--primary-cyan); border-radius: 4px 4px 0 0; opacity: 0.85; }
.an-x { position: absolute; bottom: -18px; left: 0; font-size: 0.6rem; color: var(--text-muted); white-space: nowrap; }
.an-table { margin-top: 1.6rem; font-size: 0.8rem; }
.an-table summary { cursor: pointer; color: var(--text-muted); }
.an-row { display: grid; grid-template-columns: minmax(90px, 30%) 1fr auto; gap: 0.6rem; align-items: center; margin-bottom: 0.45rem; font-size: 0.82rem; position: relative; }
.an-row-track { background: rgba(255, 255, 255, 0.05); border-radius: 4px; height: 10px; }
.an-row-bar { display: block; height: 10px; border-radius: 4px; background: var(--primary-cyan); opacity: 0.85; }
.an-row-val { color: var(--text-main); font-variant-numeric: tabular-nums; }
[data-tip]:hover::after { content: attr(data-tip); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: #0f172a; color: var(--text-main); border: 1px solid var(--border-color); padding: 0.25rem 0.5rem; border-radius: 6px; font-size: 0.72rem; white-space: nowrap; z-index: 5; pointer-events: none; }
.ai-settings .check-item { display: flex; gap: 0.5rem; align-items: flex-start; margin: 0.4rem 0; }
.int-snippet { border: 1px solid var(--border-color); border-radius: 8px; padding: 0.5rem 0.75rem; margin: 0.4rem 0; }
.int-snippet summary { cursor: pointer; }

/* ---- Direct social accounts, WhatsApp inbox, media upload (v3) ---- */
.acct-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid rgba(127,127,127,.18); }
.acct-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.acct-avatar-empty { display: inline-block; background: rgba(127,127,127,.25); }
.social-ok { border-left: 4px solid #30a46c; }
.social-err { border-left: 4px solid #e5484d; }
.media-pick { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.media-pick .form-input { flex: 1 1 100%; min-width: 0; }
.media-upload-btn { cursor: pointer; white-space: nowrap; }
.nav-count { margin-left: auto; background: #30a46c; color: #fff; border-radius: 10px; font-size: .7rem; padding: 0 6px; }
.nav-count:empty { display: none; }
.wa-top { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.wa-layout { display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: 12px; min-height: 480px; }
.wa-list { overflow-y: auto; max-height: 70vh; border: 1px solid rgba(127,127,127,.2); border-radius: 10px; }
.wa-item { display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid rgba(127,127,127,.15); padding: 10px 12px; color: inherit; cursor: pointer; }
.wa-item:hover, .wa-item.active { background: rgba(48,164,108,.12); }
.wa-item-head { display: flex; justify-content: space-between; gap: 8px; }
.wa-preview { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-chat { display: flex; flex-direction: column; border: 1px solid rgba(127,127,127,.2); border-radius: 10px; min-width: 0; }
.wa-empty { padding: 16px; }
.wa-chat-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 10px 12px; border-bottom: 1px solid rgba(127,127,127,.2); }
.wa-flags { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.wa-messages { flex: 1; overflow-y: auto; max-height: 55vh; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.wa-msg { max-width: 78%; padding: 8px 10px; border-radius: 10px; overflow-wrap: anywhere; }
.wa-msg.in { align-self: flex-start; background: rgba(127,127,127,.16); }
.wa-msg.out { align-self: flex-end; background: rgba(48,164,108,.22); }
.wa-meta { font-size: .7rem; opacity: .7; margin-top: 3px; }
.wa-reply { display: flex; gap: 8px; align-items: flex-end; padding: 10px; border-top: 1px solid rgba(127,127,127,.2); flex-wrap: wrap; }
.wa-reply textarea { flex: 1; min-width: 200px; }
.wa-reply p { width: 100%; margin: 0; }
@media (max-width: 760px) { .wa-layout { grid-template-columns: 1fr; } .wa-list { max-height: 34vh; } }

/* ---- Templates, visuals, automation, comments (v4) ---- */
.studio-starters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin-bottom: 10px; }
.tpl-card { display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(127,127,127,.25); background: rgba(127,127,127,.08); color: inherit; cursor: pointer; }
.tpl-card:hover { border-color: #30a46c; background: rgba(48,164,108,.12); }
.vis-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 6px 0; }
.vis-thumbs img, .vis-thumbs video { height: 180px; border-radius: 8px; }
.auto-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 16px; }
.color-pick { display: inline-flex; align-items: center; gap: 6px; margin-right: 12px; }
.color-pick input { width: 44px; height: 32px; border: 0; background: none; padding: 0; }
.slot-list { display: grid; gap: 6px; margin-bottom: 8px; }
.slot-row select, .slot-row input { max-width: 160px; }
.rule-row { display: grid; gap: 6px; margin-bottom: 8px; }
.cm-item { border-bottom: 1px solid rgba(127,127,127,.18); padding: 12px 0; display: grid; gap: 6px; }
.cm-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cm-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.cm-reply { padding-left: 14px; border-left: 3px solid #30a46c; opacity: .9; }
.panel-body a, .int-modal a { color: #4cc9f0; }
.int-modal textarea, #automation-body textarea, .wa-reply textarea { font-family: inherit; }

/* ---- Visual gallery (v5) ---- */
.vis-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 12px; }
.vis-card { position: relative; display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 8px; border-radius: 12px; border: 1px solid rgba(127,127,127,.25); background: rgba(127,127,127,.08); color: inherit; cursor: pointer; }
.vis-card:hover { border-color: #30a46c; }
.vis-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; background: #0b0f19; border-radius: 8px; background: rgba(127,127,127,.2); }
.vis-kind { position: absolute; top: 14px; left: 14px; font-size: .68rem; font-weight: 700; padding: 2px 8px; border-radius: 10px; background: rgba(0,0,0,.65); color: #fff; }
.vis-head { display: flex; gap: 12px; align-items: flex-start; }
.vis-head img { width: 96px; border-radius: 8px; }
