/* iPhone-framed call widget + Ops dashboard mock */

/* ─── iPhone frame ─── */
.iphone-frame {
  position: relative;
  width: 380px;
  height: 780px;
  max-width: 100%;
  background: #050505;
  border-radius: 52px;
  padding: 6px;
  box-shadow:
    0 0 0 2px #1a1a1a,
    0 0 0 9px #0a0a0a,
    0 0 0 10px #2a2a2a,
    0 40px 80px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.04);
  overflow: hidden;
  margin: 0 auto;
}
.iphone-island {
  position: absolute;
  top: 18px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 32px; border-radius: 20px;
  background: #000;
  z-index: 10;
}
.iphone-status {
  position: absolute; top: 18px; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 32px 0;
  z-index: 5;
  font-family: -apple-system, system-ui, sans-serif;
  color: #fff;
}
.iphone-status-time { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; padding-left: 4px; }
.iphone-status-r { display: flex; align-items: center; gap: 5px; }
.iphone-battery { width: 24px; height: 11px; border: 1px solid rgba(255,255,255,0.7); border-radius: 3px; padding: 1px; position: relative; }
.iphone-battery::after { content:""; position:absolute; right:-3px; top:3px; width:2px; height:5px; background: rgba(255,255,255,0.7); border-radius:0 1px 1px 0; }
.iphone-battery-fill { width: 75%; height: 100%; background: #fff; border-radius: 1px; }
.iphone-screen {
  height: 100%; width: 100%;
  background: linear-gradient(180deg, #0a0a0a, #080808);
  border-radius: 46px;
  overflow: hidden;
  padding-top: 62px;
  display: flex; flex-direction: column;
}
.iphone-call-head { padding: 12px 24px 16px; text-align: center; }
.iphone-call-label { font-size: 10px; letter-spacing: 0.18em; color: var(--flame-500); }
.iphone-call-name { font-family: -apple-system, system-ui, sans-serif; font-size: 26px; font-weight: 500; color: #fff; margin-top: 4px; letter-spacing: -0.01em; }
.iphone-call-sub { font-size: 13px; color: rgba(255,255,255,0.55); margin-top: 2px; }
.iphone-call-timer { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 6px; }

.iphone-stream { flex: 1; overflow: hidden; padding: 4px 18px; display: flex; flex-direction: column; gap: 8px; }
.fl { animation: fadeUp .3s ease-out; }
.fl-sys { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; color: rgba(255,255,255,0.7); font-size: 12px; align-self: center; }
.fl-sys.done { background: rgba(74,222,128,0.08); border-color: rgba(74,222,128,0.25); color: #4ADE80; }
.fl-ai, .fl-user { max-width: 80%; }
.fl-ai { align-self: flex-start; }
.fl-user { align-self: flex-end; }
.fl-who { font-size: 9px; letter-spacing: 0.12em; color: rgba(255,255,255,0.4); margin-bottom: 3px; padding: 0 4px; }
.fl-user .fl-who { text-align: right; }
.fl-bubble { padding: 9px 13px; border-radius: 16px; font-size: 13px; line-height: 1.4; font-family: -apple-system, system-ui, sans-serif; }
.fl-ai .fl-bubble { background: rgba(245,122,43,0.12); border: 1px solid rgba(245,122,43,0.28); color: #fff; border-bottom-left-radius: 5px; }
.fl-user .fl-bubble { background: rgba(255,255,255,0.08); color: #fff; border-bottom-right-radius: 5px; }

.iphone-call-foot { padding: 14px 24px 36px; border-top: 1px solid rgba(255,255,255,0.06); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.iphone-wave { display: flex; gap: 3px; align-items: center; height: 26px; }
.iphone-wave span { display: inline-block; width: 3px; height: 30%; background: #fff; border-radius: 2px; animation: wave 1.2s ease-in-out infinite; opacity: 0.7; }
.iphone-call-status { color: rgba(255,255,255,0.55); }
.iphone-home { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); width: 130px; height: 4px; border-radius: 100px; background: rgba(255,255,255,0.4); z-index: 20; }

/* shrink iPhone in bold hero panel so it fits */
.hero-bold-panel.widget .iphone-frame { width: 320px; height: 660px; }
.hero-bold-panel.widget .iphone-screen { padding-top: 56px; }
.hero-exp .iphone-frame { width: 340px; height: 700px; }

/* ─── Ops Dashboard ─── */
.sec-dash { padding-top: 64px; padding-bottom: 64px; }
.dash { border: 1px solid var(--carbon); border-radius: 14px; overflow: hidden; background: var(--soot-2); box-shadow: 0 30px 80px rgba(0,0,0,0.4); }
.dash-chrome { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; background: var(--ink); border-bottom: 1px solid var(--carbon); }
.dash-chrome-l { display: flex; align-items: center; gap: 14px; }
.dash-dots { display: flex; gap: 6px; }
.dash-dots i { width: 11px; height: 11px; border-radius: 50%; background: #2e2e2e; }
.dash-dots i:first-child { background: #f87171; }
.dash-dots i:nth-child(2) { background: #facc15; }
.dash-dots i:nth-child(3) { background: #4ADE80; }
.dash-url { padding: 5px 12px; background: var(--soot); border: 1px solid var(--carbon); border-radius: 6px; color: var(--bone); font-size: 11px; }
.dash-url svg { color: var(--signal); }
.dash-chrome-r { display: inline-flex; align-items: center; gap: 8px; color: var(--smoke); letter-spacing: 0.1em; }

.dash-body { display: grid; grid-template-columns: 240px 1fr; min-height: 720px; }
.dash-side { background: var(--ink); border-right: 1px solid var(--carbon); padding: 20px 14px; display: flex; flex-direction: column; gap: 18px; }
.dash-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; border-bottom: 1px solid var(--carbon); }
.dash-logo { width: 32px; height: 32px; border-radius: 8px; background: linear-gradient(135deg, var(--flame-300), var(--flame-600)); color: #1a0a00; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.dash-brand strong { display: block; font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 14px; }
.dash-brand .mono { letter-spacing: 0.12em; display: block; margin-top: 2px; }
.dash-nav { display: flex; flex-direction: column; gap: 2px; }
.dash-nav-i { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 7px; color: var(--smoke); font-size: 13px; text-align: left; transition: all .15s; }
.dash-nav-i:hover { color: var(--bone); background: rgba(255,255,255,0.03); }
.dash-nav-i.on { color: var(--paper); background: rgba(59,130,246,0.08); }
.dash-nav-i.on svg { color: var(--intel-500); }
.dash-nav-i svg { color: var(--smoke); flex-shrink: 0; }
.dash-nav-i span { flex: 1; }
.dash-nav-badge { padding: 2px 7px; border-radius: 999px; background: var(--flame-500); color: #1a0a00; font-size: 10px; font-weight: 700; }
.dash-side-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--carbon); letter-spacing: 0.06em; }

.dash-main { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 18px; overflow: hidden; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; }
.dash-h { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 26px; letter-spacing: -0.02em; margin-top: 6px; }
.dash-head-r { display: flex; gap: 8px; }
.dash-btn { padding: 7px 12px; border: 1px solid var(--carbon); border-radius: 7px; color: var(--bone); font-size: 12px; display: inline-flex; align-items: center; gap: 6px; }
.dash-btn:hover { border-color: var(--carbon-2); }
.dash-btn.primary { background: var(--flame-500); color: #1a0a00; border-color: var(--flame-500); font-weight: 600; }

.dash-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.dash-tile { padding: 14px 16px; border: 1px solid var(--carbon); border-radius: 9px; background: var(--ink); display: flex; flex-direction: column; gap: 6px; }
.dash-tile-l { color: var(--smoke); letter-spacing: 0.12em; display: flex; align-items: center; }
.dash-tile-v { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 28px; letter-spacing: -0.025em; color: var(--paper); }
.dash-tile.flame .dash-tile-v { color: var(--flame-500); }
.dash-tile.green .dash-tile-v { color: var(--signal); }
.dash-tile-t { letter-spacing: 0.06em; }

.dash-split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.dash-panel { border: 1px solid var(--carbon); border-radius: 9px; background: var(--ink); display: flex; flex-direction: column; }
.dash-panel-h { padding: 14px 18px; border-bottom: 1px solid var(--carbon); display: flex; justify-content: space-between; align-items: center; font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 14px; }
.dash-link { color: var(--intel-300); }

.dash-conv { list-style: none; padding: 0; margin: 0; }
.dash-conv-row { display: grid; grid-template-columns: 22px 1fr 1.6fr auto 70px; align-items: center; gap: 10px; padding: 11px 18px; border-bottom: 1px dashed var(--carbon); font-size: 13px; }
.dash-conv-row:last-child { border-bottom: none; }
.dash-conv-row.live { background: rgba(74,222,128,0.03); }
.dash-conv-ico { color: var(--intel-500); display: flex; }
.dash-conv-row.live .dash-conv-ico { color: var(--signal); }
.dash-conv-name { color: var(--paper); font-weight: 500; }
.dash-conv-line { color: var(--smoke); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-conv-status { display: inline-flex; align-items: center; gap: 5px; color: var(--smoke); }
.dash-conv-row.live .dash-conv-status { color: var(--signal); }
.dash-conv-t { color: var(--smoke) !important; text-align: right; }

.dash-funnel { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.funnel-row { display: grid; grid-template-columns: 1fr 2fr 40px; align-items: center; gap: 12px; font-size: 12px; }
.funnel-l { color: var(--bone); }
.funnel-bar { height: 6px; background: var(--carbon); border-radius: 3px; overflow: hidden; }
.funnel-fill { height: 100%; background: var(--intel-500); border-radius: 3px; transition: width .5s; }
.funnel-fill.flame { background: var(--flame-500); }
.funnel-fill.alert { background: #F87171; }
.funnel-v { color: var(--paper); text-align: right; }
.dash-funnel-foot { padding: 12px 18px; border-top: 1px solid var(--carbon); display: flex; justify-content: space-between; }

.dash-log { padding: 4px 0; }
.dash-log-row { display: grid; grid-template-columns: 50px 110px 1fr 90px; gap: 14px; padding: 10px 18px; border-bottom: 1px dashed var(--carbon); align-items: center; font-size: 13px; }
.dash-log-row:last-child { border-bottom: none; }
.dash-log-row span:first-child { color: var(--smoke); }
.dash-log-a { color: var(--intel-300) !important; letter-spacing: 0.04em; }
.dash-log-w { color: var(--bone); }
.dash-log-o { text-align: right; padding: 3px 8px; border-radius: 999px; }
.dash-log-o.out-good { background: rgba(74,222,128,0.1); color: var(--signal) !important; }
.dash-log-o.out-bad  { background: rgba(248,113,113,0.1); color: #F87171 !important; }
.dash-log-o.out-neutral { background: rgba(59,130,246,0.08); color: var(--intel-300) !important; }

@media (max-width: 980px) {
  .dash-body { grid-template-columns: 1fr; }
  .dash-side { display: none; }
  .dash-tiles { grid-template-columns: 1fr 1fr; }
  .dash-split { grid-template-columns: 1fr; }
  .dash-conv-row { grid-template-columns: 22px 1fr auto; }
  .dash-conv-line, .dash-conv-t { display: none; }
}
