/* ============ HERO (normal flow, huge MacBook centerpiece) ============ */
.hero{
  position: relative; overflow: hidden;
  background: radial-gradient(120% 70% at 50% 0%, #131722 0%, var(--black) 60%);
  color: var(--white);
  padding: 150px 0 40px;
}
.hero__grid{
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(55% 45% at 50% 12%, #000 10%, transparent 75%);
  mask-image: radial-gradient(55% 45% at 50% 12%, #000 10%, transparent 75%);
}
.hero__glow{
  position: absolute; border-radius: 50%; filter: blur(130px); pointer-events: none; z-index: 0;
}
.hero__glow--blue{ width: 520px; height: 520px; background: rgba(37,99,235,.09); top: 80px; left: 50%; transform: translateX(-80%); }
.hero__glow--purple{ display: none; }

.hero__content{
  position: relative; z-index: 2; text-align: center; max-width: 760px; margin: 0 auto;
  padding: 0 24px 12px;
}
.hero__title{ font-size: clamp(30px, 4.6vw, 52px); line-height: 1.1; color: var(--white); margin-bottom: 16px; }
.hero__subtitle{ font-size: 16px; color: var(--gray-400); max-width: 540px; margin: 0 auto 28px; }
.hero__actions{ display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }

.macbook-stage{
  position: relative; width: 100%;
  display: flex; align-items: flex-start; justify-content: center;
  perspective: 2600px; z-index: 1;
  margin-top: 46px; padding-bottom: 90px;
}

/* ============ MACBOOK BODY ============ */
.macbook{
  width: min(1620px, 96vw);
  transform-style: preserve-3d;
  will-change: transform;
  transform-origin: 50% 100%;
  opacity: 0;
  transform: translateY(50px) scale(.95) rotateX(8deg);
  transition: opacity 1.1s cubic-bezier(.16,1,.3,1), transform 1.1s cubic-bezier(.16,1,.3,1);
}
.macbook.is-visible{
  opacity: 1;
  transform: translateY(0) scale(1) rotateX(3deg);
}
@media (prefers-reduced-motion: reduce){
  .macbook{ transition: opacity .4s ease; transform: rotateX(2deg) !important; }
}

.macbook__screen-wrap{
  position: relative;
  /* Modern MacBook lid: near-black glass face with a thin bright aluminum rim */
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), transparent 8%),
    linear-gradient(180deg, #141517 0%, #0c0d0f 45%, #101113 100%);
  border-radius: 1.5% 1.5% 8px 8px / 16px 16px 8px 8px;
  padding: 1.1% 1.1% 1.5%;
  box-shadow:
    0 0 0 1.5px #55575c,
    0 0 0 2px rgba(0,0,0,.55),
    inset 0 0 14px rgba(0,0,0,.65),
    0 55px 100px -30px rgba(0,0,0,.72),
    0 14px 30px -14px rgba(0,0,0,.55);
}
.macbook__screen-wrap::before{
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(80% 40% at 50% -8%, rgba(255,255,255,.06), transparent 70%);
}
.macbook__notch{
  position: relative; width: 12%; max-width: 150px; height: 22px; margin: 0 auto -22px;
  background: #060606; border-radius: 0 0 11px 11px; z-index: 3;
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 4px;
}
.macbook__cam{
  width: 4px; height: 4px; border-radius: 50%;
  background: #0a0f16; box-shadow: 0 0 0 1.5px rgba(255,255,255,.025);
}
.macbook__screen{
  position: relative; border-radius: 9px; overflow: hidden;
  aspect-ratio: 1280 / 800; background: #05060a;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.65);
}
.macbook__glare{
  position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background:
    linear-gradient(118deg, rgba(255,255,255,.035) 0%, rgba(255,255,255,.008) 16%, transparent 28%, transparent 100%),
    radial-gradient(120% 60% at 50% 108%, rgba(0,0,0,.14), transparent 55%);
}
.macbook__display{
  position: absolute; top: 0; left: 0;
  width: 1280px; height: 800px;
  transform-origin: top left;
  display: flex; flex-direction: column;
  will-change: transform;
}

/* --- base / keyboard deck --- */
.macbook__hinge{
  height: 8px; margin: 0 1.2%;
  background: linear-gradient(180deg, #2c2d30, #141517 60%, #08090a);
  border-radius: 0 0 2px 2px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
}
.macbook__deck{
  height: 3.3vw; min-height: 32px; max-height: 52px; position: relative;
  background:
    /* faint cool light spilling from the screen onto the aluminum */
    radial-gradient(60% 130% at 50% -20%, rgba(147,180,235,.16), transparent 62%),
    linear-gradient(180deg, #a9abaf 0%, #8f9195 6%, #77797d 40%, #606266 78%, #4c4e51 96%, #3a3b3e 100%);
  clip-path: polygon(-4% 0, 104% 0, 100.6% 100%, -0.6% 100%);
  /* sharp contact shadow + wider falloff, like a product photo on a surface */
  box-shadow:
    0 10px 18px -6px rgba(0,0,0,.55),
    0 34px 60px -18px rgba(0,0,0,.45);
}
.macbook__deck::before{
  content: ''; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: rgba(255,255,255,.5); opacity: .5;
}
.macbook__deck::after{
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 11%; height: 6px;
  background: linear-gradient(180deg, #5a5c5f, #77797d);
  border-radius: 0 0 10px 10px;
  box-shadow: inset 0 -1px 1px rgba(0,0,0,.3);
}
.macbook__trackpad{
  position: absolute; top: 16%; left: 50%; transform: translateX(-50%);
  width: 21%; height: 62%; border-radius: 5px;
  border: 1px solid rgba(0,0,0,.28);
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(0,0,0,.10));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.macbook__speaker{
  position: absolute; top: 32%; bottom: 32%; width: 6.5%;
  background-image: radial-gradient(circle, rgba(0,0,0,.35) 1px, transparent 1.3px);
  background-size: 4.5px 4.5px;
  opacity: .55;
}
.macbook__speaker--l{ left: 5.5%; }
.macbook__speaker--r{ right: 5.5%; }
.macbook__shadow{
  position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%);
  width: 78%; height: 44px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.5), transparent 68%);
  filter: blur(10px); z-index: -1;
}

/* ============ DASHBOARD UI (fixed 1280x800 canvas, scaled to fit) ============ */
/* macOS menu bar — sits under the physical notch; items hug the edges so the
   center stays clear, exactly like a real MacBook with a notched display. */
.db-menubar{
  display: flex; align-items: center; justify-content: space-between;
  height: 30px; padding: 0 16px; flex-shrink: 0;
  background: #060709;
  border-bottom: 1px solid rgba(255,255,255,.04);
  font-size: 11.5px; color: #b8bec9;
}
.db-menubar__left, .db-menubar__right{ display: flex; align-items: center; gap: 15px; }
.db-menubar__left strong{ color: #e8ebf0; font-weight: 700; }
.db-menubar__left span{ color: #9aa1ad; }
.db-menubar__apple{ width: 13px; height: 13px; color: #d5d9e0; }
.db-menubar__right svg{ height: 11px; width: auto; color: #b8bec9; }
.db-menubar__right span{ font-size: 11px; color: #c6ccd6; }

.db-topbar{
  display: flex; align-items: center; padding: 12px 18px; background: #0f1117;
  border-bottom: 1px solid rgba(255,255,255,.06); flex-shrink: 0;
}
.db-topbar__left{ display: flex; gap: 7px; }
.db-dot{ width: 10px; height: 10px; border-radius: 50%; }
.db-dot--red{ background: #ff5f57; } .db-dot--yellow{ background: #febc2e; } .db-dot--green{ background: #28c840; }
.db-topbar__title{
  flex: 1; text-align: center; font-size: 12.5px; font-weight: 600; color: var(--gray-500);
  letter-spacing: .02em;
}
.db-topbar__right{ width: 50px; }

.db-body{ display: flex; flex: 1; min-height: 0; }
.db-sidebar{
  width: 74px; background: #0d0f15; display: flex; flex-direction: column; align-items: center;
  gap: 8px; padding-top: 20px; flex-shrink: 0; border-right: 1px solid rgba(255,255,255,.05);
}
.db-sidebar__logo{
  width: 30px; height: 30px; padding: 7px; box-sizing: border-box; border-radius: 8px; background: var(--blue-600); color: #fff;
  display: flex; align-items: center; justify-content: center; margin-bottom: 10px; flex-shrink: 0;
}
.db-sidebar__logo svg{ width: 100%; height: 100%; display: block; }
.db-sidebar__icon{
  position: relative; width: 42px; height: 36px; border-radius: 9px; border: none; cursor: pointer;
  background: transparent; color: #5b6270; display: flex; align-items: center; justify-content: center;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.db-sidebar__icon svg{ width: 18px; height: 18px; }
.db-sidebar__icon:hover{ background: rgba(255,255,255,.06); color: #cbd5e1; transform: translateY(-1px); }
.db-sidebar__icon.is-active{ background: rgba(59,130,246,.18); color: #60a5fa; }
.db-sidebar__badge{
  position: absolute; top: 2px; right: 6px; width: 14px; height: 14px; border-radius: 50%;
  background: #ef4444; color: #fff; font-size: 8px; font-weight: 800; line-height: 14px; text-align: center;
  box-shadow: 0 0 0 2px #0d0f15;
}

.db-main{ flex: 1; min-width: 0; padding: 22px 28px 20px; display: flex; flex-direction: column; gap: 16px; background: #0a0c11; overflow: hidden; }
.db-header{ display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.db-header__greet{ display: block; font-size: 15px; font-weight: 700; color: #fff; }
.db-header__sub{ display: block; font-size: 11.5px; color: var(--gray-500); margin-top: 3px; }
.db-header__right{ display: flex; align-items: center; gap: 8px; }
.db-header__badge{
  font-size: 10.5px; font-weight: 700; color: #34d399; background: rgba(52,211,153,.12);
  padding: 5px 11px; border-radius: 999px; flex-shrink: 0;
}

.db-filter{ position: relative; }
.db-filter__btn{
  display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: #cbd5e1;
  background: #12151d; border: 1px solid rgba(255,255,255,.08); border-radius: 8px; padding: 7px 11px;
  cursor: pointer; transition: background .18s ease, border-color .18s ease;
}
.db-filter__btn svg{ width: 12px; height: 12px; transition: transform .18s ease; }
.db-filter__btn:hover{ background: #171b25; border-color: rgba(255,255,255,.16); }
.db-filter.is-open .db-filter__btn svg{ transform: rotate(180deg); }
.db-filter__menu{
  position: absolute; top: calc(100% + 6px); right: 0; min-width: 130px; z-index: 20;
  background: #12151d; border: 1px solid rgba(255,255,255,.1); border-radius: 9px; padding: 5px;
  box-shadow: 0 18px 40px rgba(0,0,0,.5);
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; transform: translateY(-6px) scale(.97); pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
}
.db-filter.is-open .db-filter__menu{ opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.db-filter__menu button{
  font-size: 11.5px; font-weight: 600; color: #94a3b8; background: none; border: none; text-align: left;
  padding: 7px 9px; border-radius: 6px; cursor: pointer; transition: background .15s ease, color .15s ease;
}
.db-filter__menu button:hover{ background: rgba(255,255,255,.06); color: #fff; }
.db-filter__menu button.is-active{ color: #60a5fa; background: rgba(59,130,246,.12); }

.db-btn-new{
  font-size: 11.5px; font-weight: 700; color: #fff; background: var(--blue-600);
  border: none; border-radius: 8px; padding: 8px 13px; cursor: pointer; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.db-btn-new:hover{ transform: translateY(-2px); background: var(--blue); box-shadow: 0 4px 12px rgba(0,0,0,.35); }
.db-btn-new:active{ transform: translateY(0); }
.db-btn-new.is-pulsing{ animation: dbNewPulse .5s ease; }
@keyframes dbNewPulse{ 50%{ transform: scale(.94); } }

.db-stats{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.db-stat{
  background: #11141c; border: 1px solid rgba(255,255,255,.06); border-radius: 12px; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 5px; cursor: default;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.db-stat:hover{ transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.35); border-color: rgba(59,130,246,.35); }
.db-stat.is-flash{ animation: dbStatFlash .6s ease; }
@keyframes dbStatFlash{ 0%{ box-shadow: 0 0 0 0 rgba(59,130,246,.5);} 100%{ box-shadow: 0 0 0 14px rgba(59,130,246,0);} }
.db-stat__label{ font-size: 10.5px; color: var(--gray-500); text-transform: uppercase; letter-spacing: .04em; }
.db-stat__num{ font-size: 22px; font-weight: 800; color: #fff; font-family: var(--font-head); }
.db-stat__delta{ font-size: 11px; color: #34d399; font-weight: 700; }

.db-panels{ display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; flex: 1; min-height: 0; }
.db-chart{ background: #11141c; border: 1px solid rgba(255,255,255,.06); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.db-chart__head{ display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--gray-400); }
.db-chart__tag{ font-size: 10.5px; font-weight: 700; color: #34d399; }
.db-chart__line{
  flex: 1; width: 100%; min-height: 0; display: block;
  opacity: 0; transform: scaleX(.88) translateY(6px); transform-origin: left center;
  transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1);
}
.is-visible .db-chart__line{ opacity: 1; transform: scaleX(1) translateY(0); }

.db-side{ display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.db-leads{ background: #11141c; border: 1px solid rgba(255,255,255,.06); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow: hidden; flex: 1; }
.db-leads__head{ font-size: 12px; font-weight: 700; color: var(--gray-400); }
.db-lead-row{
  display: flex; align-items: center; gap: 10px; padding: 5px 6px; border-radius: 7px; cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.db-lead-row:hover{ background: rgba(255,255,255,.05); transform: translateX(2px); }
.db-lead-avatar{
  width: 24px; height: 24px; border-radius: 50%; background: #1d2432; color: var(--blue);
  font-size: 9px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-family: var(--font-head);
}
.db-lead-info{ flex: 1; min-width: 0; }
.db-lead-info strong{ display: block; font-size: 12px; color: #fff; font-weight: 600; }
.db-lead-info small{ display: block; font-size: 10px; color: var(--gray-500); }
.db-pill{ font-size: 9.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px; flex-shrink: 0; }
.db-pill--new{ background: rgba(59,130,246,.16); color: #60a5fa; }
.db-pill--booked{ background: rgba(52,211,153,.14); color: #34d399; }
.db-pill--contacted{ background: rgba(251,191,36,.14); color: #fbbf24; }

.db-mini-row{ display: flex; gap: 12px; }
.db-campaign, .db-ai{
  flex: 1; background: #11141c; border: 1px solid rgba(255,255,255,.06); border-radius: 12px;
  padding: 11px 12px; display: flex; align-items: center; gap: 10px; min-width: 0; cursor: pointer;
  transition: transform .18s ease, border-color .18s ease;
}
.db-campaign:hover, .db-ai:hover{ transform: translateY(-3px); border-color: rgba(37,99,235,.35); }
.db-campaign__ring{
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: conic-gradient(#1d4ed8 0% 40%, #60a5fa 40% 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 4px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 4px));
  transition: transform .3s ease;
}
.db-campaign:hover .db-campaign__ring{ transform: rotate(90deg); }
.db-ai__dot{
  width: 9px; height: 9px; border-radius: 50%; background: #34d399; flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(52,211,153,.18);
  animation: dbAiPulse 1.8s ease-in-out infinite;
}
@keyframes dbAiPulse{ 0%,100%{ box-shadow: 0 0 0 3px rgba(52,211,153,.18); } 50%{ box-shadow: 0 0 0 6px rgba(52,211,153,.06); } }
.db-campaign strong, .db-ai strong{ display: block; font-size: 10.5px; color: #fff; font-weight: 700; }
.db-campaign small, .db-ai small{ display: block; font-size: 9.5px; color: var(--gray-500); }

.db-pipeline{ background: #11141c; border: 1px solid rgba(255,255,255,.06); border-radius: 12px; padding: 14px 16px; flex-shrink: 0; }
.db-pipeline__head{ display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--gray-400); margin-bottom: 10px; }
.db-pipeline__total{ font-size: 10.5px; font-weight: 600; color: var(--gray-500); }
.db-pipeline__row{ display: flex; align-items: center; gap: 10px; padding: 4px 0; }
.db-pipeline__label{ width: 66px; flex-shrink: 0; font-size: 10.5px; font-weight: 600; color: #cbd5e1; }
.db-pipeline__bar{ flex: 1; height: 6px; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden; }
.db-pipeline__fill{
  display: block; height: 100%; border-radius: 999px; width: 0;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  transition: width 1.1s cubic-bezier(.16,1,.3,1);
}
.db-pipeline__bar--done .db-pipeline__fill{ background: linear-gradient(90deg, #34d399, #22c55e); }
.is-visible .db-pipeline__fill{ width: var(--w); }
.db-pipeline__count{ width: 26px; flex-shrink: 0; text-align: right; font-size: 11.5px; font-weight: 800; color: #fff; font-family: var(--font-head); }

/* ============ DASHBOARD PAGES (sidebar switching) ============ */
.db-page{ display: none; flex: 1; min-height: 0; flex-direction: column; gap: 14px; }
.db-page.is-active{ display: flex; }

/* --- App header widgets (search / bell / avatar) --- */
.db-search{
  display: flex; align-items: center; gap: 8px;
  width: 210px; padding: 8px 12px; border-radius: 8px;
  background: #12151d; border: 1px solid rgba(255,255,255,.07);
  font-size: 11px; color: #64748b; cursor: text;
}
.db-search svg{ width: 13px; height: 13px; flex-shrink: 0; }
.db-iconbtn{
  position: relative; width: 34px; height: 34px; border-radius: 8px; border: 1px solid rgba(255,255,255,.07);
  background: #12151d; color: #94a3b8; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: color .15s ease, border-color .15s ease;
}
.db-iconbtn:hover{ color: #e2e8f0; border-color: rgba(255,255,255,.16); }
.db-iconbtn svg{ width: 16px; height: 16px; }
.db-iconbtn__dot{
  position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; border-radius: 50%;
  background: #ef4444; box-shadow: 0 0 0 2px #12151d;
}
.db-avatar{
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #1d4ed8, #3b82f6); color: #fff;
  font-size: 11.5px; font-weight: 800; font-family: var(--font-head);
  display: flex; align-items: center; justify-content: center;
}

/* --- Overview: KPI row --- */
.db-stats--five{ grid-template-columns: repeat(5, 1fr); }
.db-stats--five .db-stat{ padding: 12px 14px; gap: 4px; }
.db-stats--five .db-stat__num{ font-size: 19px; }
.db-stats--five .db-stat__label{ font-size: 9.5px; }
.db-stat__delta--muted{ color: var(--gray-500); font-weight: 600; }

/* --- Overview: mid grid (table + side column) --- */
.db-overview-mid{ display: grid; grid-template-columns: 1.9fr 1fr; gap: 14px; flex-shrink: 0; }
.db-ovr-side{ display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.db-mini-chart{
  background: #11141c; border: 1px solid rgba(255,255,255,.06); border-radius: 12px;
  padding: 12px 14px 8px; display: flex; flex-direction: column; gap: 6px;
}
.db-mini-chart__head{ display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 700; color: #cbd5e1; }
.db-mini-chart__svg{ width: 100%; height: 58px; display: block; }
.db-schedule{
  background: #11141c; border: 1px solid rgba(255,255,255,.06); border-radius: 12px;
  padding: 12px 14px; flex: 1; display: flex; flex-direction: column; gap: 7px; min-height: 0; overflow: hidden;
}
.db-schedule__head{ display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 700; color: #cbd5e1; padding-bottom: 4px; border-bottom: 1px solid rgba(255,255,255,.06); }
.db-schedule__date{ font-size: 9.5px; font-weight: 600; color: var(--gray-500); }
.db-schedule__row{ display: flex; align-items: center; gap: 10px; padding: 3px 0; }
.db-schedule__time{
  width: 38px; flex-shrink: 0; text-align: right;
  font-size: 10px; font-weight: 800; color: #93c5fd; font-family: var(--font-head);
}
.db-schedule__info{ flex: 1; min-width: 0; }
.db-schedule__info strong{ display: block; font-size: 10.5px; color: #fff; font-weight: 700; }
.db-schedule__info small{ display: block; font-size: 9px; color: var(--gray-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-schedule .db-pill{ font-size: 8px; padding: 3px 7px; }

/* --- Overview: campaign performance table --- */
.db-camp-table{
  background: #11141c; border: 1px solid rgba(255,255,255,.06); border-radius: 12px;
  padding: 4px 18px 8px; flex-shrink: 0;
}
.db-camp-table__toolbar{ display: flex; align-items: center; justify-content: space-between; padding: 12px 0 10px; }
.db-camp-table__title{ font-size: 12.5px; font-weight: 700; color: #e2e8f0; }
.db-camp-table__filters{ display: flex; gap: 6px; }
.db-chip{
  font-size: 10px; font-weight: 600; color: #94a3b8; padding: 4px 11px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.09); cursor: pointer; transition: all .15s ease;
}
.db-chip:hover{ color: #e2e8f0; border-color: rgba(255,255,255,.2); }
.db-chip.is-active{ background: rgba(37,99,235,.16); color: #93c5fd; border-color: rgba(59,130,246,.35); }
.db-camp-table__head, .db-camp-table__row{
  display: grid; grid-template-columns: 2.6fr .9fr .8fr .6fr .7fr .6fr; align-items: center; gap: 10px;
  padding: 9px 4px;
}
.db-camp-table__head{
  font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--gray-500);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.db-camp-table__row{
  font-size: 11.5px; color: #cbd5e1; border-top: 1px solid rgba(255,255,255,.045);
  cursor: pointer; transition: background .15s ease;
}
.db-camp-table__row:first-of-type{ border-top: none; }
.db-camp-table__row:hover{ background: rgba(255,255,255,.035); }
.db-camp-table__name{ display: flex; align-items: center; gap: 9px; font-weight: 600; color: #f1f5f9; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-camp-table__booked{ color: #34d399; font-weight: 700; }
.db-src{
  width: 20px; height: 20px; border-radius: 6px; flex-shrink: 0; font-style: normal;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10.5px; font-weight: 800; font-family: var(--font-head);
}
.db-src--g{ background: rgba(255,255,255,.09); color: #e2e8f0; }
.db-src--f{ background: rgba(37,99,235,.2); color: #93c5fd; }

/* --- Overview: CRM pipeline kanban --- */
.db-kanban{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; flex: 1; min-height: 0; }
.db-kanban__col{
  background: #0e1118; border: 1px solid rgba(255,255,255,.05); border-radius: 12px;
  padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 0; overflow: hidden;
}
.db-kanban__head{
  display: flex; align-items: center; justify-content: space-between;
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #94a3b8;
  padding: 2px 4px 6px; border-bottom: 1px solid rgba(255,255,255,.06);
}
.db-kanban__count{ font-family: var(--font-head); font-size: 11.5px; color: #fff; }
.db-kanban__col--won .db-kanban__head{ color: #34d399; }
.db-kanban__card{
  background: #151926; border: 1px solid rgba(255,255,255,.06); border-radius: 9px; padding: 8px 10px;
  cursor: pointer; transition: transform .16s ease, border-color .16s ease;
}
.db-kanban__card:hover{ transform: translateY(-2px); border-color: rgba(59,130,246,.3); }
.db-kanban__card strong{ display: block; font-size: 11px; color: #fff; font-weight: 700; }
.db-kanban__card small{ display: block; font-size: 9.5px; color: var(--gray-500); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* --- Leads table --- */
.db-table{
  background: #11141c; border: 1px solid rgba(255,255,255,.06); border-radius: 12px;
  padding: 4px 16px; flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column;
}
.db-table__head, .db-table__row{
  display: grid; grid-template-columns: 1.7fr 1.3fr 1fr .9fr .8fr; align-items: center; gap: 10px; padding: 10px 4px;
}
.db-table__head{ font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--gray-500); border-bottom: 1px solid rgba(255,255,255,.06); }
.db-table__row{ font-size: 12px; color: #cbd5e1; border-top: 1px solid rgba(255,255,255,.05); border-radius: 7px; cursor: pointer; transition: background .15s ease; }
.db-table__row:hover{ background: rgba(255,255,255,.045); }
.db-table__name{ display: flex; align-items: center; gap: 8px; font-weight: 700; color: #fff; }

/* --- Campaigns list --- */
.db-campaign-list{ display: flex; flex-direction: column; gap: 10px; flex: 1; min-height: 0; }
.db-campaign-row{
  display: flex; align-items: center; gap: 14px; background: #11141c; border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px; padding: 12px 16px; cursor: pointer; transition: transform .18s ease, border-color .18s ease;
}
.db-campaign-row:hover{ transform: translateY(-2px); border-color: rgba(37,99,235,.3); }
.db-campaign-row__icon{
  width: 34px; height: 34px; border-radius: 9px; background: rgba(59,130,246,.14); color: #60a5fa;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.db-campaign-row__icon svg{ width: 17px; height: 17px; }
.db-campaign-row__info{ flex: 1; min-width: 0; }
.db-campaign-row__info strong{ display: block; font-size: 12.5px; color: #fff; font-weight: 700; }
.db-campaign-row__info small{ display: block; font-size: 10.5px; color: var(--gray-500); margin-top: 2px; }
.db-campaign-row__metric{ text-align: right; flex-shrink: 0; min-width: 50px; }
.db-campaign-row__metric strong{ display: block; font-size: 13px; color: #fff; font-family: var(--font-head); font-weight: 800; }
.db-campaign-row__metric small{ display: block; font-size: 9px; color: var(--gray-500); }
.db-pill--paused{ background: rgba(148,163,184,.14); color: #94a3b8; }
.db-pill--quoted{ background: rgba(96,165,250,.14); color: #93c5fd; }

/* --- Inbox list --- */
.db-inbox-list{
  background: #11141c; border: 1px solid rgba(255,255,255,.06); border-radius: 12px; padding: 6px;
  flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 2px; overflow: hidden;
}
.db-inbox-row{ display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 8px; cursor: pointer; transition: background .15s ease; }
.db-inbox-row:hover{ background: rgba(255,255,255,.05); }
.db-inbox-row__info{ flex: 1; min-width: 0; }
.db-inbox-row__info strong{ display: block; font-size: 12.5px; color: #fff; font-weight: 600; }
.db-inbox-row.is-unread .db-inbox-row__info strong{ font-weight: 800; }
.db-inbox-row__info small{ display: block; font-size: 11px; color: var(--gray-500); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-inbox-row__meta{ display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.db-inbox-row__meta span:first-child{ font-size: 10px; color: var(--gray-500); }
.db-inbox-dot{ width: 7px; height: 7px; border-radius: 50%; background: var(--blue); opacity: 0; }
.db-inbox-row.is-unread .db-inbox-dot{ opacity: 1; }

/* --- Bar chart (Analytics channel breakdown) --- */
.db-bar-chart{ background: #11141c; border: 1px solid rgba(255,255,255,.06); border-radius: 12px; padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.db-bar-chart__head{ font-size: 12px; font-weight: 700; color: var(--gray-400); }
.db-bar-row{ display: flex; align-items: center; gap: 10px; }
.db-bar-row__label{ width: 66px; flex-shrink: 0; font-size: 10.5px; font-weight: 600; color: #cbd5e1; }
.db-bar-row__bar{ flex: 1; height: 6px; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden; }
.db-bar-row__bar span{ display: block; height: 100%; border-radius: 999px; width: 0; background: linear-gradient(90deg, #3b82f6, #60a5fa); transition: width 1.1s cubic-bezier(.16,1,.3,1); }
.is-active .db-bar-row__bar span{ width: var(--w); }
.db-bar-row__val{ width: 30px; flex-shrink: 0; text-align: right; font-size: 11px; font-weight: 800; color: #fff; font-family: var(--font-head); }

/* --- Workflow rows (Automations / Settings) --- */
.db-workflow-list{ display: flex; flex-direction: column; gap: 10px; flex: 1; min-height: 0; }
.db-workflow-row{ display: flex; align-items: center; gap: 14px; background: #11141c; border: 1px solid rgba(255,255,255,.06); border-radius: 12px; padding: 12px 16px; }
.db-workflow-row__icon{ width: 32px; height: 32px; border-radius: 9px; background: rgba(59,130,246,.14); color: #60a5fa; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.db-workflow-row__icon svg{ width: 16px; height: 16px; }
.db-workflow-row__info{ flex: 1; min-width: 0; }
.db-workflow-row__info strong{ display: block; font-size: 12.5px; color: #fff; font-weight: 700; }
.db-workflow-row__info small{ display: block; font-size: 10.5px; color: var(--gray-500); margin-top: 2px; }
.db-workflow-row__stat{ text-align: right; flex-shrink: 0; min-width: 56px; }
.db-workflow-row__stat strong{ display: block; font-size: 13px; color: #fff; font-family: var(--font-head); font-weight: 800; }
.db-workflow-row__stat small{ display: block; font-size: 9px; color: var(--gray-500); }

.db-toggle{ position: relative; width: 34px; height: 19px; border-radius: 999px; background: rgba(255,255,255,.14); border: none; cursor: pointer; flex-shrink: 0; transition: background .2s ease; padding: 0; }
.db-toggle__thumb{ position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: #94a3b8; transition: transform .2s ease, background .2s ease; }
.db-toggle.is-on{ background: rgba(59,130,246,.9); }
.db-toggle.is-on .db-toggle__thumb{ transform: translateX(15px); background: #fff; }

/* --- Settings profile card --- */
.db-settings-card{ background: #11141c; border: 1px solid rgba(255,255,255,.06); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 2px; }
.db-settings-card__row{ display: flex; align-items: center; justify-content: space-between; font-size: 12px; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.05); }
.db-settings-card__row:first-child{ border-top: none; }
.db-settings-card__row span{ color: var(--gray-500); }
.db-settings-card__row strong{ color: #fff; font-weight: 700; }

/* ============ TRUST BAR (below hero) ============ */
.trust-bar{ position: relative; z-index: 1; background: var(--near-black); padding: 30px 0; }
.trust-bar__row{ display: flex; align-items: center; justify-content: center; gap: 56px; flex-wrap: wrap; }
.trust-bar__stat{ display: flex; align-items: baseline; gap: 8px; }
.trust-bar__num{ font-family: var(--font-head); font-weight: 800; font-size: 24px; color: var(--blue); }
.trust-bar__label{ font-size: 12.5px; color: var(--gray-400); }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px){
  .db-panels{ grid-template-columns: 1fr; }
  .db-side{ display: none; }
  .db-pipeline{ display: none; }
  .hero__glow{ display: none; }
}

@media (max-width: 720px){
  .hero{ padding: 130px 0 20px; }
  .hero__actions{ margin-bottom: 4px; }
  .macbook-stage{ margin-top: 30px; padding-bottom: 60px; }
  .macbook{ width: 94vw; }
}
