/* ═══════════════════════════════════════════════════════════
   FundraiseCall — Redesign CSS
   Merged from 5 HTML design mockups
   All styles scoped under .fc-frame to avoid Bootstrap conflicts
   ═══════════════════════════════════════════════════════════ */

/* ── TOASTR FIX — prevent Bootstrap 5 .toast from overriding ── */
#toast-container > .toast-success { background-color: #51A351 !important; color: #fff !important; opacity: 1 !important; }
#toast-container > .toast-error   { background-color: #BD362F !important; color: #fff !important; opacity: 1 !important; }
#toast-container > .toast-info    { background-color: #2F96B4 !important; color: #fff !important; opacity: 1 !important; }
#toast-container > .toast-warning { background-color: #F89406 !important; color: #fff !important; opacity: 1 !important; }
#toast-container > div { border-radius: 12px !important; box-shadow: 0 4px 16px rgba(0,0,0,0.18) !important; padding: 14px 18px 14px 50px !important; }
#toast-container .toast-title { font-weight: 700 !important; }
#toast-container .toast-message { font-size: 14px !important; }

/* ── CSS VARIABLES ─────────────────────────────────────── */
:root {
  --fc-bg:        #F2F2F7;
  --fc-bg2:       #FFFFFF;
  --fc-label:     #000000;
  --fc-label-2:   rgba(60,60,67,0.60);
  --fc-label-3:   rgba(60,60,67,0.30);
  --fc-sep:       #C6C6C8;
  --fc-fill-2:    rgba(118,118,128,0.16);
  --fc-fill-3:    rgba(118,118,128,0.12);
  --fc-blue:      #007AFF;
  --fc-green:     #34C759;
  --fc-red:       #FF3B30;
  --fc-orange:    #FF9500;
  --fc-purple:    #AF52DE;
  --fc-gray:      #8E8E93;
  --fc-blue-bg:   rgba(0,122,255,0.10);
  --fc-green-bg:  rgba(52,199,89,0.12);
  --fc-red-bg:    rgba(255,59,48,0.10);
  --fc-orange-bg: rgba(255,149,0,0.10);
  --fc-purple-bg: rgba(175,82,222,0.10);
  --fc-gray-bg:   rgba(142,142,147,0.12);
  --fc-shadow:    0 1px 3px rgba(0,0,0,0.09), 0 1px 2px rgba(0,0,0,0.05);
  --fc-shadow-lg: 0 8px 30px rgba(0,0,0,0.11), 0 2px 8px rgba(0,0,0,0.05);
}

/* ── BASE RESET (scoped) ──────────────────────────────── */
.fc-frame *, .fc-frame *::before, .fc-frame *::after,
.fc-login-frame *, .fc-login-frame *::before, .fc-login-frame *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body.fc-redesign {
  font-family: -apple-system, 'SF Pro Text', BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--fc-bg);
  margin: 0; padding: 0;
  min-height: 100vh;
}

/* ── FRAME ─────────────────────────────────────────────── */
.fc-frame {
  width: 100%;
  min-height: 100vh;
  background: var(--fc-bg2);
  display: flex;
}

/* ══════════════════════════════════════════════════════════
   SIDEBAR
   ══════════════════════════════════════════════════════════ */
.fc-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--fc-blue);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.fc-sidebar::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
  pointer-events: none;
}

.fc-sidebar-top {
  padding: 28px 22px 24px;
  position: relative;
  border-bottom: 0.5px solid rgba(255,255,255,0.18);
}
.fc-sb-time {
  font-size: 12px; font-weight: 500;
  color: rgba(255,255,255,0.68);
  letter-spacing: -0.01em; margin-bottom: 20px;
}
.fc-sb-power {
  position: absolute; top: 24px; right: 20px;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.fc-sb-power:hover { background: rgba(255,255,255,0.25); }
.fc-sb-power svg { width: 14px; height: 14px; }
.fc-sb-name {
  font-size: 22px; font-weight: 700; color: #fff;
  letter-spacing: -0.03em; line-height: 1.15;
}
.fc-sb-org {
  font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,0.60);
  margin-top: 2px; letter-spacing: -0.01em;
}

.fc-sb-nav { padding: 12px 0; flex: 1; }
.fc-nav-item {
  display: flex; align-items: center; gap: 13px;
  padding: 13px 22px;
  font-size: 15px; font-weight: 500;
  color: rgba(255,255,255,0.62);
  cursor: pointer; border: none; background: none;
  font-family: inherit; letter-spacing: -0.01em;
  width: 100%; text-align: left;
  border-left: 3px solid transparent;
  transition: background 0.12s, color 0.12s;
  text-decoration: none;
}
.fc-nav-item:hover { background: rgba(255,255,255,0.10); color: #fff; text-decoration: none; }
.fc-nav-item.active {
  color: #fff; font-weight: 700;
  border-left-color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.15);
}
.fc-nav-item svg { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.80; }
.fc-nav-item.active svg { opacity: 1; }
.fc-sb-ver {
  padding: 16px 22px;
  font-size: 11px; color: rgba(255,255,255,0.32);
  letter-spacing: 0.01em;
}

/* ══════════════════════════════════════════════════════════
   MAIN AREA
   ══════════════════════════════════════════════════════════ */
.fc-main {
  flex: 1; min-width: 0;
  background: var(--fc-bg);
  display: flex; flex-direction: column;
  overflow: hidden;
}

.fc-topbar {
  height: 52px; flex-shrink: 0;
  background: rgba(242,242,247,0.94);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 0.5px solid var(--fc-sep);
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 20px; z-index: 10;
}
.fc-topbar-title {
  font-size: 17px; font-weight: 600;
  color: var(--fc-label); letter-spacing: -0.02em;
}
.fc-topbar-right {
  display: flex; align-items: center; gap: 10px;
}
.fc-topbar-user {
  font-size: 13px; font-weight: 500;
  color: var(--fc-label-2);
}

.fc-body {
  flex: 1; overflow-y: auto;
  padding: 20px 22px 28px;
  display: flex; flex-direction: column; gap: 16px;
}
.fc-body::-webkit-scrollbar { width: 4px; }
.fc-body::-webkit-scrollbar-thumb { background: rgba(60,60,67,0.14); border-radius: 2px; }

/* ══════════════════════════════════════════════════════════
   LOGIN PAGE
   ══════════════════════════════════════════════════════════ */
.fc-login-frame {
  width: 100%; max-width: 1194px;
  margin: 20px auto;
  background: var(--fc-bg2);
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.07), var(--fc-shadow-lg);
  display: flex; min-height: 680px;
}

body.fc-login-body {
  font-family: -apple-system, 'SF Pro Text', BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--fc-bg);
  min-height: 100vh;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 20px 24px;
  margin: 0;
}

/* Left brand panel */
.fc-brand-panel {
  width: 340px; flex-shrink: 0;
  background: var(--fc-blue);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 48px 36px;
  position: relative; overflow: hidden;
}
.fc-brand-panel::before,
.fc-brand-panel::after {
  content: '';
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.09);
  pointer-events: none;
}
.fc-brand-panel::before { width: 340px; height: 340px; bottom: -100px; right: -100px; }
.fc-brand-panel::after  { width: 200px; height: 200px; top: -60px; left: -60px; }

.fc-brand-logo {
  width: 72px; height: 72px; border-radius: 20px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  position: relative; z-index: 1;
}
.fc-brand-logo svg { width: 38px; height: 38px; }
.fc-brand-name {
  font-size: 26px; font-weight: 700; color: #fff;
  letter-spacing: -0.03em; line-height: 1.1;
  text-align: center; position: relative; z-index: 1;
}
.fc-brand-tagline {
  font-size: 13px; font-weight: 400;
  color: rgba(255,255,255,0.65);
  letter-spacing: -0.01em; margin-top: 8px;
  text-align: center; position: relative; z-index: 1;
}

/* Right login panel */
.fc-login-panel {
  flex: 1; min-width: 0;
  background: var(--fc-bg);
  display: flex; flex-direction: column;
}
.fc-login-topbar {
  height: 52px; flex-shrink: 0;
  background: rgba(242,242,247,0.94);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 0.5px solid var(--fc-sep);
  display: flex; align-items: center; padding: 0 20px;
}
.fc-login-topbar-title {
  font-size: 17px; font-weight: 600;
  color: var(--fc-label); letter-spacing: -0.02em;
}
.fc-login-body-inner {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 40px 20px;
}
.fc-login-card {
  width: 100%; max-width: 440px;
  background: var(--fc-bg2);
  border-radius: 20px;
  box-shadow: var(--fc-shadow);
  padding: 36px 32px 32px;
  animation: fcFadeUp 0.35s ease both;
}
.fc-form-heading {
  font-size: 24px; font-weight: 700;
  color: var(--fc-label);
  letter-spacing: -0.03em; margin-bottom: 4px;
}
.fc-form-subheading {
  font-size: 14px; color: var(--fc-label-2);
  letter-spacing: -0.01em; margin-bottom: 28px;
}
.fc-field-group {
  display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 16px;
}
.fc-field-wrap { position: relative; }
.fc-field-icon {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%);
  width: 17px; height: 17px; color: var(--fc-label-3);
  pointer-events: none; transition: color 0.15s;
}
.fc-field-input {
  width: 100%; height: 50px;
  background: var(--fc-bg);
  border: 1.5px solid transparent;
  border-radius: 12px;
  padding: 0 14px 0 42px;
  font-size: 15px; font-family: inherit;
  color: var(--fc-label);
  letter-spacing: -0.01em; outline: none;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.fc-field-input::placeholder { color: var(--fc-label-3); }
.fc-field-input:focus {
  border-color: var(--fc-blue);
  background: var(--fc-bg2);
  box-shadow: 0 0 0 3px rgba(0,122,255,0.10);
}
.fc-field-wrap:focus-within .fc-field-icon { color: var(--fc-blue); }
.fc-field-eye {
  position: absolute; right: 14px; top: 50%;
  transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 8px;
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--fc-label-3);
  transition: color 0.12s, background 0.12s;
}
.fc-field-eye:hover { background: var(--fc-fill-3); color: var(--fc-label-2); }
.fc-field-eye svg { width: 17px; height: 17px; }

.fc-remember-row {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 24px; cursor: pointer; user-select: none;
}
.fc-checkbox {
  width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0;
  border: 1.5px solid var(--fc-sep);
  background: var(--fc-bg2);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.14s, background 0.14s;
}
.fc-checkbox.checked { background: var(--fc-blue); border-color: var(--fc-blue); }
.fc-checkbox svg { width: 13px; height: 13px; opacity: 0; transition: opacity 0.12s; }
.fc-checkbox.checked svg { opacity: 1; }
.fc-remember-label {
  font-size: 14px; font-weight: 500;
  color: var(--fc-label-2); letter-spacing: -0.01em;
}
.fc-btn-login {
  width: 100%; height: 50px;
  background: var(--fc-blue); border: none; border-radius: 12px;
  font-size: 16px; font-weight: 600; color: #fff;
  cursor: pointer; font-family: inherit; letter-spacing: -0.01em;
  box-shadow: 0 4px 14px rgba(0,122,255,0.30);
  transition: background 0.14s, transform 0.1s, box-shadow 0.14s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.fc-btn-login:hover { background: #0066DD; box-shadow: 0 6px 18px rgba(0,122,255,0.38); }
.fc-btn-login:active { transform: scale(0.98); }

.fc-error-msg {
  margin-top: 14px; padding: 10px 14px;
  background: rgba(255,59,48,0.08);
  border: 0.5px solid rgba(255,59,48,0.22);
  border-radius: 10px;
  font-size: 13px; font-weight: 500; color: #C0210F;
  letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 8px;
}
.fc-login-version {
  text-align: center; font-size: 11px;
  color: var(--fc-label-3);
  letter-spacing: 0.01em; margin-top: 20px;
}

/* ══════════════════════════════════════════════════════════
   DASHBOARD — HERO CARD
   ══════════════════════════════════════════════════════════ */
.fc-hero {
  border-radius: 22px; overflow: hidden; position: relative;
  background: linear-gradient(150deg, #1A6FD4 0%, #0E52B8 45%, #093FA0 100%);
  box-shadow: 0 8px 28px rgba(12,58,175,0.32), 0 2px 8px rgba(0,0,0,0.12),
              inset 0 1px 0 rgba(255,255,255,0.14);
  animation: fcFadeUp 0.35s ease both;
}
.fc-orb1, .fc-orb2 { position: absolute; border-radius: 50%; pointer-events: none; }
.fc-orb1 {
  width: 280px; height: 280px; top: -90px; right: -70px;
  background: radial-gradient(circle, rgba(130,170,255,0.20) 0%, transparent 65%);
}
.fc-orb2 {
  width: 220px; height: 220px; bottom: -70px; left: -50px;
  background: radial-gradient(circle, rgba(80,130,255,0.15) 0%, transparent 65%);
}
.fc-hero-top {
  padding: 24px 26px 22px;
  display: flex; align-items: flex-start; justify-content: space-between;
  position: relative; z-index: 1;
}
.fc-hero-eyebrow {
  font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase; letter-spacing: 0.09em; margin-bottom: 10px;
}
.fc-hero-dur {
  display: flex; align-items: baseline;
  font-variant-numeric: tabular-nums;
}
.fc-dn {
  font-size: 54px; font-weight: 200; color: #fff;
  letter-spacing: -0.045em; line-height: 1;
}
.fc-du {
  font-size: 21px; font-weight: 300;
  color: rgba(255,255,255,0.40);
  margin: 0 8px 8px 2px; align-self: flex-end;
  letter-spacing: -0.01em;
}
.fc-hero-div {
  height: 0.5px; position: relative; z-index: 1;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.14) 20%, rgba(255,255,255,0.14) 80%, transparent);
}
.fc-hero-strip {
  display: grid; grid-template-columns: 1fr 0.5px 1fr 0.5px 1fr;
  padding: 18px 0 20px; position: relative; z-index: 1;
}
.fc-hs-sep { background: rgba(255,255,255,0.12); }
.fc-hm { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.fc-hm-val {
  font-size: 28px; font-weight: 700; color: #fff;
  letter-spacing: -0.03em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.fc-hm-val .fc-u { font-size: 16px; font-weight: 600; color: rgba(255,255,255,0.50); }
.fc-hm-lbl {
  font-size: 11px; font-weight: 500;
  color: rgba(255,255,255,0.42); letter-spacing: -0.01em;
}

/* Start calling button */
.fc-start-wrap {
  display: flex; justify-content: center;
  animation: fcFadeUp 0.3s 0.22s ease both;
}
.fc-btn-start {
  padding: 0 56px; height: 50px;
  background: var(--fc-blue); border: none; border-radius: 100px;
  font-size: 16px; font-weight: 600; color: #fff;
  cursor: pointer; font-family: inherit; letter-spacing: -0.02em;
  box-shadow: 0 4px 14px rgba(0,122,255,0.32);
  transition: background 0.14s, transform 0.1s, box-shadow 0.14s;
  display: flex; align-items: center; gap: 9px;
  text-decoration: none;
}
.fc-btn-start:hover { background: #0066DD; box-shadow: 0 6px 18px rgba(0,122,255,0.40); color: #fff; text-decoration: none; }
.fc-btn-start:active { transform: scale(0.97); }
.fc-btn-start svg { width: 17px; height: 17px; }

/* No contacts notice */
.fc-notice {
  background: var(--fc-bg2); border-radius: 16px;
  box-shadow: var(--fc-shadow);
  border: 1px solid rgba(255,59,48,0.14);
  padding: 18px; display: flex;
  align-items: flex-start; gap: 13px;
  animation: fcFadeUp 0.3s ease both;
}
.fc-notice-ico {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: rgba(255,59,48,0.08);
  display: flex; align-items: center; justify-content: center;
}
.fc-notice-ico svg { width: 18px; height: 18px; }
.fc-notice-ttl {
  font-size: 14px; font-weight: 600;
  color: var(--fc-red); letter-spacing: -0.02em; margin-bottom: 3px;
}
.fc-notice-txt {
  font-size: 13px; color: var(--fc-label-2);
  letter-spacing: -0.01em; line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════
   HISTORY — CONTACT CARDS
   ══════════════════════════════════════════════════════════ */
.fc-sec-hdr {
  font-size: 11px; font-weight: 700;
  color: var(--fc-label-3);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 10px; padding: 0 2px;
}

/* Toolbar */
.fc-toolbar {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 12px;
}
.fc-search-wrap {
  flex: 1; display: flex; align-items: center; gap: 9px;
  background: var(--fc-bg2); border-radius: 12px;
  padding: 9px 14px; box-shadow: var(--fc-shadow);
}
.fc-search-wrap svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--fc-gray); }
.fc-search-input {
  flex: 1; border: none; background: transparent; outline: none;
  font-family: inherit; font-size: 15px;
  color: var(--fc-label); letter-spacing: -0.01em;
}
.fc-search-input::placeholder { color: var(--fc-label-3); }

/* Segment control */
.fc-seg {
  display: flex; flex-shrink: 0;
  background: var(--fc-fill-3); border-radius: 9px;
  padding: 2px; gap: 2px;
}
.fc-seg-btn {
  padding: 7px 22px; border-radius: 7px;
  font-size: 14px; font-weight: 500; color: var(--fc-label-2);
  background: transparent; border: none; cursor: pointer;
  font-family: inherit; letter-spacing: -0.01em; white-space: nowrap;
  transition: background 0.14s, color 0.12s, box-shadow 0.14s;
}
.fc-seg-btn.on {
  background: var(--fc-bg2); color: var(--fc-label); font-weight: 600;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12), 0 0.5px 1px rgba(0,0,0,0.06);
}

/* Section header row */
.fc-sec-hdr-row { margin-bottom: 8px; }
.fc-sec-hdr-text {
  font-size: 13px; font-weight: 600;
  color: var(--fc-label-2);
  text-transform: uppercase; letter-spacing: 0.02em;
}

/* Contact card */
.fc-c-card {
  background: var(--fc-bg2);
  border-radius: 14px;
  box-shadow: var(--fc-shadow);
  margin-bottom: 10px;
  overflow: hidden;
  transition: box-shadow 0.18s;
  animation: fcRowIn 0.22s ease both;
}
.fc-c-card.expanded {
  box-shadow: 0 4px 16px rgba(0,0,0,0.10), 0 1px 4px rgba(0,0,0,0.06);
}
@keyframes fcRowIn {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fc-c-summary {
  display: flex; align-items: center; gap: 13px;
  padding: 13px 16px;
  cursor: pointer;
  transition: background 0.1s;
  user-select: none;
}
.fc-c-summary:hover { background: rgba(0,0,0,0.02); }

.fc-c-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(145deg, #5AC8FA, #007AFF);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 700; color: #fff; flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,122,255,0.22);
}
.fc-c-info { flex: 1; min-width: 0; }
.fc-c-name {
  font-size: 15px; font-weight: 600;
  color: var(--fc-label); letter-spacing: -0.02em;
}
.fc-c-meta {
  font-size: 12px; color: var(--fc-label-2);
  margin-top: 2px; letter-spacing: -0.01em;
}

/* Status badge */
.fc-c-badge {
  font-size: 12px; font-weight: 600; letter-spacing: -0.01em;
  border-radius: 100px; padding: 5px 13px;
  white-space: nowrap; flex-shrink: 0;
  border: 0.5px solid transparent;
}
.fc-badge-green  { background: rgba(52,199,89,0.12);  color: #1A7A35;  border-color: rgba(52,199,89,0.28); }
.fc-badge-blue   { background: rgba(0,122,255,0.10);  color: #0055CC;  border-color: rgba(0,122,255,0.20); }
.fc-badge-purple { background: rgba(175,82,222,0.10); color: #7A28C0;  border-color: rgba(175,82,222,0.20); }
.fc-badge-orange { background: rgba(255,149,0,0.10);  color: #B86A00;  border-color: rgba(255,149,0,0.20); }
.fc-badge-gray   { background: rgba(142,142,147,0.12);color: #3A3A3C;  border-color: rgba(142,142,147,0.25); }
.fc-badge-red    { background: rgba(255,59,48,0.10);  color: #C0210F;  border-color: rgba(255,59,48,0.20); }

/* Chevron */
.fc-c-chevron {
  width: 20px; height: 20px; flex-shrink: 0;
  color: var(--fc-label-3);
  transition: transform 0.22s cubic-bezier(0.34,1.3,0.64,1);
}
.fc-c-card.expanded .fc-c-chevron { transform: rotate(180deg); }

/* Expanded panel */
.fc-c-panel {
  max-height: 0; overflow: hidden;
  transition: max-height 0.32s cubic-bezier(0.4,0,0.2,1);
  border-top: 0.5px solid rgba(60,60,67,0.09);
}
.fc-c-card.expanded .fc-c-panel { max-height: 160px; }

/* ── 6-TILE ACTION BAR ── */
.fc-action-bar {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  padding: 12px 14px 14px;
  gap: 8px;
  background: var(--fc-bg);
}
.fc-action-tile {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 6px; padding: 11px 4px;
  border-radius: 12px; border: none; cursor: pointer;
  font-family: inherit; font-size: 11px; font-weight: 600;
  letter-spacing: -0.01em; text-align: center; line-height: 1.2;
  transition: all 0.16s;
}
.fc-action-tile:hover  { transform: translateY(-2px); filter: brightness(0.96); }
.fc-action-tile:active { transform: scale(0.95); }

.fc-tile-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.fc-tile-status        { background: rgba(0,122,255,0.08);  color: #0055CC; }
.fc-tile-status .fc-tile-icon  { background: var(--fc-blue); }
.fc-tile-sms           { background: rgba(0,122,255,0.06);  color: #0044BB; }
.fc-tile-sms .fc-tile-icon     { background: #1a4bc0; }
.fc-tile-whatsapp      { background: rgba(52,199,89,0.10);  color: #1A7A35; }
.fc-tile-whatsapp .fc-tile-icon { background: #25D366; }
.fc-tile-email         { background: rgba(255,59,48,0.08);  color: #C0210F; }
.fc-tile-email .fc-tile-icon    { background: var(--fc-red); }
.fc-tile-redial        { background: rgba(52,199,89,0.10);  color: #1A7A35; }
.fc-tile-redial .fc-tile-icon   { background: #34C759; }
.fc-tile-undo          { background: rgba(255,59,48,0.06);  color: #C0210F; }
.fc-tile-undo .fc-tile-icon     { background: var(--fc-red); }

/* ── STATUS DROPDOWN (7 options) ── */
.fc-status-dropdown {
  display: none; position: fixed;
  width: 210px; background: var(--fc-bg2);
  border: 0.5px solid rgba(0,0,0,0.12);
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.16), 0 2px 8px rgba(0,0,0,0.07);
  overflow: hidden; z-index: 9999;
}
.fc-status-dropdown.fc-sd-open { display: block; }

.fc-status-opt {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; font-family: inherit;
  font-size: 14px; font-weight: 500; color: var(--fc-label);
  cursor: pointer; border-bottom: 0.5px solid rgba(60,60,67,0.10);
  transition: background 0.10s; letter-spacing: -0.01em;
}
.fc-status-opt:last-child { border-bottom: none; }
.fc-status-opt:hover { background: rgba(118,118,128,0.12); }
.fc-status-opt.active { font-weight: 700; }
.fc-sopt-check { width: 15px; height: 15px; flex-shrink: 0; display: none; }
.fc-status-opt.active .fc-sopt-check { display: block; }

.fc-sopt-will.active     { color: #1A7A35; }
.fc-sopt-will .fc-sopt-check     { color: #34C759; }
.fc-sopt-phone.active    { color: #0055CC; }
.fc-sopt-phone .fc-sopt-check    { color: var(--fc-blue); }
.fc-sopt-already.active  { color: #7A28C0; }
.fc-sopt-already .fc-sopt-check  { color: #AF52DE; }
.fc-sopt-callback.active { color: #B86A00; }
.fc-sopt-callback .fc-sopt-check { color: #FF9500; }
.fc-sopt-noanswer.active { color: #555; }
.fc-sopt-noanswer .fc-sopt-check { color: #8E8E93; }
.fc-sopt-wrong.active    { color: var(--fc-label); }
.fc-sopt-wrong .fc-sopt-check    { color: #8E8E93; }
.fc-sopt-notint.active   { color: #C0210F; }
.fc-sopt-notint .fc-sopt-check   { color: var(--fc-red); }

/* Empty state */
.fc-empty-state {
  padding: 60px 24px; text-align: center;
  font-size: 15px; color: var(--fc-label-3);
  letter-spacing: -0.01em;
}

/* List scroll container */
.fc-list-scroll {
  flex: 1; overflow-y: auto;
}

/* ══════════════════════════════════════════════════════════
   CALLBACK MODAL — Modern override
   ══════════════════════════════════════════════════════════ */
#callbackModal .modal-dialog {
  max-width: 400px;
  margin: 80px auto;
}
#callbackModal .modal-content {
  border: none !important;
  border-radius: 20px !important;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.08) !important;
  overflow: hidden;
  font-family: -apple-system, 'SF Pro Text', BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
}
#callbackModal .modal-header {
  background: var(--fc-blue) !important;
  border-bottom: none !important;
  padding: 20px 24px !important;
  display: flex !important;
  align-items: center !important;
  flex-direction: row-reverse !important;
  justify-content: space-between !important;
}
#callbackModal .modal-header .modal-title {
  color: #fff !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  margin: 0 !important;
  order: 1 !important;
}
#callbackModal .modal-header .close,
#callbackModal .modal-header .close-button {
  background: rgba(255,255,255,0.2) !important;
  border: none !important;
  color: #fff !important;
  opacity: 1 !important;
  width: 32px !important; height: 32px !important;
  border-radius: 50% !important;
  font-size: 18px !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  order: 2 !important;
  transition: background 0.15s !important;
  line-height: 1 !important;
  float: none !important;
}
#callbackModal .modal-header .close:hover,
#callbackModal .modal-header .close-button:hover {
  background: rgba(255,255,255,0.35) !important;
}
#callbackModal .modal-body {
  padding: 24px !important;
  background: #fff !important;
}
#callbackModal .modal-body label,
#callbackModal .modal-body .col-form-label {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--fc-label-2) !important;
  letter-spacing: -0.01em !important;
  text-transform: uppercase !important;
  margin-bottom: 6px !important;
  padding: 0 !important;
}
#callbackModal .modal-body .form-control,
#callbackModal .modal-body select,
#callbackModal .modal-body input[type="date"] {
  border: 1.5px solid rgba(60,60,67,0.18) !important;
  border-radius: 12px !important;
  padding: 10px 14px !important;
  font-size: 15px !important;
  font-family: inherit !important;
  color: var(--fc-label) !important;
  background: var(--fc-bg) !important;
  transition: border-color 0.15s !important;
  width: 100% !important;
  height: auto !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  outline: none !important;
}
#callbackModal .modal-body select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238E8E93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  padding-right: 36px !important;
}
#callbackModal .modal-body .form-control:focus,
#callbackModal .modal-body select:focus,
#callbackModal .modal-body input[type="date"]:focus {
  border-color: var(--fc-blue) !important;
  box-shadow: 0 0 0 3px rgba(0,122,255,0.12) !important;
}
#callbackModal .modal-body .form-group.row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
  margin: 0 !important;
}
#callbackModal .modal-body .form-group.row > [class*="col-"] {
  flex: 1 1 calc(50% - 8px) !important;
  max-width: calc(50% - 8px) !important;
  padding: 0 !important;
}
#callbackModal .modal-footer {
  border-top: 0.5px solid rgba(60,60,67,0.12) !important;
  padding: 16px 24px !important;
  background: #fff !important;
  display: flex !important;
  justify-content: flex-end !important;
  gap: 10px !important;
}
#callbackModal .modal-footer .btn-success {
  background: var(--fc-blue) !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 10px 28px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  font-family: inherit !important;
  letter-spacing: -0.01em !important;
  color: #fff !important;
  transition: filter 0.12s !important;
}
#callbackModal .modal-footer .btn-success:hover { filter: brightness(1.08) !important; }
#callbackModal .modal-footer .btn-default,
#callbackModal .modal-footer .btn:not(.btn-success) {
  background: transparent !important;
  border: 1.5px solid rgba(60,60,67,0.18) !important;
  border-radius: 12px !important;
  padding: 10px 22px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  font-family: inherit !important;
  letter-spacing: -0.01em !important;
  color: var(--fc-label-2) !important;
  transition: background 0.12s !important;
}
#callbackModal .modal-footer .btn-default:hover,
#callbackModal .modal-footer .btn:not(.btn-success):hover {
  background: var(--fc-bg) !important;
}

/* ══════════════════════════════════════════════════════════
   DIALPAD
   ══════════════════════════════════════════════════════════ */
.fc-dialpad-wrap {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 28px 20px;
}
.fc-dialpad-card {
  background: var(--fc-bg2);
  border-radius: 24px;
  box-shadow: var(--fc-shadow);
  width: 340px;
  padding: 28px 28px 24px;
  display: flex; flex-direction: column;
  animation: fcFadeUp 0.3s ease both;
  position: relative;
}

.fc-display-area {
  min-height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 0 4px 20px;
  border-bottom: 0.5px solid rgba(60,60,67,0.10);
  margin-bottom: 22px;
}
.fc-display-number {
  flex: 1;
  font-size: 34px; font-weight: 300;
  color: var(--fc-label);
  letter-spacing: 0.04em; line-height: 1;
  font-variant-numeric: tabular-nums;
  min-height: 40px; word-break: break-all;
  transition: font-size 0.1s;
}
.fc-display-number.long { font-size: 26px; }
.fc-display-number.empty {
  color: var(--fc-label-3);
  font-size: 18px; font-weight: 400;
}

.fc-btn-backspace {
  width: 40px; height: 40px; flex-shrink: 0;
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px; color: var(--fc-label-2);
  transition: background 0.12s, color 0.12s, transform 0.1s;
  opacity: 0; pointer-events: none;
}
.fc-btn-backspace.visible { opacity: 1; pointer-events: all; }
.fc-btn-backspace:hover { background: var(--fc-fill-3); color: var(--fc-label); }
.fc-btn-backspace:active { transform: scale(0.90); }
.fc-btn-backspace svg { width: 22px; height: 22px; }

.fc-key-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px; margin-bottom: 16px;
}
.fc-key {
  aspect-ratio: 1;
  background: var(--fc-bg);
  border: none; border-radius: 50%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1px; cursor: pointer; font-family: inherit;
  transition: background 0.1s, transform 0.08s;
  user-select: none;
}
.fc-key:hover { background: rgba(0,0,0,0.05); }
.fc-key:active { background: rgba(0,0,0,0.10); transform: scale(0.94); }

.fc-key-digit {
  font-size: 26px; font-weight: 300;
  color: var(--fc-label);
  letter-spacing: -0.01em; line-height: 1;
}
.fc-key-sub {
  font-size: 9px; font-weight: 600;
  color: var(--fc-label-3);
  letter-spacing: 0.12em; text-transform: uppercase;
  height: 11px;
}

.fc-bottom-row {
  display: flex; align-items: center; justify-content: center;
  position: relative; height: 68px;
}
.fc-btn-call {
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--fc-green); border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(52,199,89,0.38);
  transition: background 0.14s, transform 0.1s, box-shadow 0.14s;
}
.fc-btn-call:hover { background: #28B94E; box-shadow: 0 6px 20px rgba(52,199,89,0.45); }
.fc-btn-call:active { transform: scale(0.94); }
.fc-btn-call svg { width: 28px; height: 28px; }

.fc-btn-del {
  width: 52px; height: 52px;
  background: none; border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--fc-label-2);
  transition: background 0.12s, color 0.12s, transform 0.1s;
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  opacity: 0; pointer-events: none;
}
.fc-btn-del.visible { opacity: 1; pointer-events: all; }
.fc-btn-del:hover { background: var(--fc-fill-3); color: var(--fc-label); }
.fc-btn-del:active { transform: translateY(-50%) scale(0.90); }
.fc-btn-del svg { width: 22px; height: 22px; }

/* Call status strip */
.fc-call-status {
  margin-top: 20px; padding-top: 18px;
  border-top: 0.5px solid rgba(60,60,67,0.10);
  display: none; flex-direction: column; align-items: center; gap: 6px;
}
.fc-call-status.active { display: flex; }
.fc-call-status-pill {
  display: flex; align-items: center; gap: 7px;
  background: rgba(52,199,89,0.12);
  border: 0.5px solid rgba(52,199,89,0.35);
  border-radius: 100px; padding: 7px 14px 7px 10px;
}
.fc-live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--fc-green);
  box-shadow: 0 0 0 3px rgba(52,199,89,0.18);
  animation: fcLivePulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes fcLivePulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(52,199,89,0.18); }
  50%     { box-shadow: 0 0 0 6px rgba(52,199,89,0.06); }
}
.fc-call-status-label {
  font-size: 13px; font-weight: 600; color: #1D8348;
  font-variant-numeric: tabular-nums; letter-spacing: -0.01em;
}
.fc-call-status-timer {
  font-size: 13px; font-weight: 600; color: #1D8348;
  font-variant-numeric: tabular-nums; letter-spacing: 0.02em;
}
.fc-call-vsep { width: 0.5px; height: 13px; background: rgba(52,199,89,0.3); }

/* ══════════════════════════════════════════════════════════
   TOAST
   ══════════════════════════════════════════════════════════ */
.fc-toast {
  position: fixed; bottom: 90px; left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(28,28,30,0.92);
  backdrop-filter: blur(16px);
  color: #fff; font-size: 14px; font-weight: 500;
  padding: 11px 20px; border-radius: 12px;
  white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 100; letter-spacing: -0.01em;
}
.fc-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ══════════════════════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════════════════════ */
@keyframes fcFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fcShake {
  0%,100% { transform: translateX(0); }
  20%     { transform: translateX(-8px); }
  40%     { transform: translateX(8px); }
  60%     { transform: translateX(-5px); }
  80%     { transform: translateX(5px); }
}

/* ══════════════════════════════════════════════════════════
   ACTIVE CALL PAGE
   ══════════════════════════════════════════════════════════ */

/* Contact bar */
.fc-contact-bar {
  flex-shrink: 0;
  background: var(--fc-bg2);
  border-bottom: 0.5px solid rgba(60,60,67,0.16);
  padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.fc-contact-left { display: flex; align-items: center; gap: 12px; }
.fc-contact-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(145deg, #5AC8FA, #007AFF);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 600; color: #fff;
  box-shadow: 0 2px 8px rgba(0,122,255,0.22); flex-shrink: 0;
}
.fc-contact-name { font-size: 17px; font-weight: 600; color: var(--fc-label); letter-spacing: -0.02em; }
.fc-contact-sub  { font-size: 13px; color: var(--fc-label-2); margin-top: 2px; }

/* Call controls */
.fc-contact-controls { display: flex; align-items: center; gap: 6px; }
.fc-ctrl-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--fc-fill-2); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, transform 0.1s;
}
.fc-ctrl-btn:active { transform: scale(0.92); }
.fc-ctrl-btn svg { width: 20px; height: 20px; }

/* Call live pill */
.fc-call-live-pill {
  display: flex; align-items: center; gap: 7px;
  background: rgba(52,199,89,0.12);
  border: 0.5px solid rgba(52,199,89,0.35);
  border-radius: 100px; padding: 8px 15px 8px 10px; flex-shrink: 0;
}
.fc-live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--fc-green);
  box-shadow: 0 0 0 3px rgba(52,199,89,0.18);
  animation: fcPulse 2s ease-in-out infinite;
}
@keyframes fcPulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(52,199,89,0.18); }
  50%      { box-shadow: 0 0 0 6px rgba(52,199,89,0.06); }
}
.fc-call-num { font-size: 13px; font-weight: 500; color: #1D8348; font-variant-numeric: tabular-nums; }
.fc-call-vsep { width: 0.5px; height: 13px; background: rgba(52,199,89,0.3); }
.fc-call-timer { font-size: 13px; font-weight: 600; color: #1D8348; font-variant-numeric: tabular-nums; }

/* Active call body */
.fc-call-body {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column;
  gap: 7px; padding: 8px 14px 8px;
  overflow-y: auto;
}

/* Notes grid */
.fc-notes-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 7px;
  min-height: 120px; flex-shrink: 0;
}
.fc-notes-card {
  background: var(--fc-bg2); border-radius: 12px;
  box-shadow: var(--fc-shadow); overflow: hidden;
  display: flex; flex-direction: column;
}
.fc-notes-admin { border-left: 3px solid var(--fc-orange); }
.fc-notes-user  { border-left: 3px solid var(--fc-blue); }
.fc-notes-header {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 11px 6px;
  border-bottom: 0.5px solid rgba(60,60,67,0.10); flex-shrink: 0;
}
.fc-notes-badge {
  width: 18px; height: 18px; border-radius: 5px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.fc-notes-badge-orange { background: var(--fc-orange-bg); }
.fc-notes-badge-blue   { background: var(--fc-blue-bg); }
.fc-notes-badge svg { width: 10px; height: 10px; }
.fc-notes-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.fc-notes-title-orange { color: #B86A00; }
.fc-notes-title-blue   { color: #0055CC; }
.fc-notes-body {
  flex: 1; padding: 6px 11px 8px;
  font-size: 12px; color: var(--fc-label); line-height: 1.4;
  letter-spacing: -0.01em; overflow: hidden;
}
.fc-notes-textarea {
  flex: 1; padding: 6px 11px; width: 100%;
  font-size: 12px; color: var(--fc-label); line-height: 1.4;
  letter-spacing: -0.01em;
  background: transparent; border: none; outline: none;
  font-family: inherit; resize: none; min-height: 60px;
}
.fc-notes-textarea::placeholder { color: var(--fc-label-3); }

/* Status grid 4x2 */
.fc-status-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 6px;
  min-height: 160px; flex-shrink: 0;
}
.fc-sc {
  background: var(--fc-bg2);
  border: 1.5px solid transparent;
  border-radius: 11px; cursor: pointer;
  box-shadow: var(--fc-shadow);
  display: flex; flex-direction: column;
  padding: 9px 10px 8px;
  position: relative; overflow: hidden;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  user-select: none; text-decoration: none;
  animation: fcPopIn 0.28s ease both;
}
.fc-sc::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(150deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 55%);
  pointer-events: none;
}
.fc-sc:active { transform: scale(0.965); }
@keyframes fcPopIn { from{opacity:0;transform:translateY(5px)} to{opacity:1;transform:translateY(0)} }
.fc-sc:nth-child(1){animation-delay:.03s}.fc-sc:nth-child(2){animation-delay:.06s}
.fc-sc:nth-child(3){animation-delay:.09s}.fc-sc:nth-child(4){animation-delay:.12s}
.fc-sc:nth-child(5){animation-delay:.15s}.fc-sc:nth-child(6){animation-delay:.18s}
.fc-sc:nth-child(7){animation-delay:.21s}.fc-sc:nth-child(8){animation-delay:.24s}

.fc-sc-ico {
  width: 26px; height: 26px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 5px; flex-shrink: 0;
}
.fc-sc-lbl { font-size: 12px; font-weight: 600; color: var(--fc-label); letter-spacing: -0.015em; line-height: 1.2; }
.fc-sc-sub { font-size: 10px; color: var(--fc-label-2); margin-top: 1px; line-height: 1.2; }
.fc-ic-green  { background: var(--fc-green-bg); }
.fc-ic-blue   { background: var(--fc-blue-bg); }
.fc-ic-purple { background: var(--fc-purple-bg); }
.fc-ic-orange { background: var(--fc-orange-bg); }
.fc-ic-gray   { background: var(--fc-gray-bg); }
.fc-ic-red    { background: var(--fc-red-bg); }

/* Enter Donation — blue gradient card */
.fc-sc-enter {
  background: linear-gradient(140deg, #007AFF 0%, #0055CC 100%) !important;
  border-color: transparent !important;
  box-shadow: 0 3px 12px rgba(0,122,255,0.35) !important;
  text-decoration: none;
}
.fc-sc-enter::after {
  background: linear-gradient(160deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 50%);
}
.fc-sc-enter:hover  { filter: brightness(1.07); text-decoration: none; }
.fc-sc-enter:active { transform: scale(0.965); }
.fc-sc-enter.fc-sel-blue {
  background: linear-gradient(140deg, #0055CC 0%, #003B9E 100%) !important;
  box-shadow: 0 3px 12px rgba(0,85,204,0.45), 0 0 0 2px rgba(0,122,255,0.5) !important;
}
.fc-sc-enter .fc-chk { background: rgba(255,255,255,0.3) !important; }

/* Dim call history in post-call state */
.fc-call-ended .fc-history-list { opacity: 0.38; pointer-events: none; transition: opacity 0.35s ease; }

/* ── Bottom Sheet (Donation iframe) ─────────────────── */
.fc-sheet-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.35);
  backdrop-filter: blur(4px); opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease; z-index: 1060;
}
.fc-sheet-backdrop.open { opacity: 1; pointer-events: all; }

.fc-sheet {
  position: fixed; left: 0; right: 0; bottom: 0;
  height: 88vh; background: var(--fc-bg2);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 30px rgba(0,0,0,0.12);
  display: flex; flex-direction: column;
  transform: translateY(100%); transition: transform 0.35s cubic-bezier(0.32,0.72,0,1);
  z-index: 1061;
}
.fc-sheet.open { transform: translateY(0); }

.fc-sheet-handle {
  width: 36px; height: 4px; border-radius: 2px;
  background: rgba(60,60,67,0.22); margin: 10px auto 0; flex-shrink: 0;
}
.fc-sheet-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; border-bottom: 0.5px solid var(--fc-sep); flex-shrink: 0; gap: 10px;
}
.fc-sheet-nav-left {
  display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1;
}
.fc-sheet-favicon {
  width: 20px; height: 20px; border-radius: 5px; flex-shrink: 0;
}
.fc-sheet-title {
  font-size: 14px; font-weight: 600; color: var(--fc-label);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fc-sheet-close {
  font-size: 15px; font-weight: 600; color: var(--fc-blue);
  background: none; border: none; cursor: pointer; padding: 4px 0;
  flex-shrink: 0;
}
.fc-sheet-context {
  display: flex; flex-direction: column; gap: 0;
  border-bottom: 0.5px solid var(--fc-sep); background: var(--fc-bg2); flex-shrink: 0;
}
.fc-sheet-contact {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; min-width: 0;
}
.fc-sheet-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--fc-blue), #5856D6);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; color: #fff; flex-shrink: 0;
}
.fc-sheet-contact-name {
  font-size: 13px; font-weight: 600; color: var(--fc-label);
}
.fc-sheet-contact-sub {
  font-size: 11px; color: var(--fc-label-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fc-sheet-admin-note {
  padding: 14px 18px; border-top: 0.5px solid var(--fc-sep);
  display: flex; flex-direction: column; justify-content: center; width: 100%;
  background: rgba(255,149,0,0.06); box-sizing: border-box;
}
.fc-sheet-note-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: #B86A00; margin-bottom: 6px;
  display: flex; align-items: center; gap: 5px;
}
.fc-sheet-note-text {
  font-size: 15px; font-weight: 500; color: var(--fc-label); line-height: 1.5;
  white-space: pre-wrap; word-break: break-word;
  max-height: 120px; overflow-y: auto;
}
.fc-sheet-body { flex: 1; position: relative; min-height: 0; }
.fc-sheet-iframe { width: 100%; height: 100%; border: none; display: block; }

/* ── Checkmarks on status cards ────────────────────── */
.fc-chk {
  position: absolute; top: 7px; right: 7px;
  width: 17px; height: 17px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(0.4);
  transition: opacity 0.15s, transform 0.18s cubic-bezier(0.34,1.56,0.64,1);
  z-index: 2;
}
.fc-chk svg { width: 9px; height: 7px; }

.fc-sc.fc-sel-green  .fc-chk { background: var(--fc-green);  opacity: 1; transform: scale(1); }
.fc-sc.fc-sel-blue   .fc-chk { background: var(--fc-blue);   opacity: 1; transform: scale(1); }
.fc-sc.fc-sel-purple .fc-chk { background: var(--fc-purple); opacity: 1; transform: scale(1); }
.fc-sc.fc-sel-orange .fc-chk { background: var(--fc-orange); opacity: 1; transform: scale(1); }
.fc-sc.fc-sel-gray   .fc-chk { background: var(--fc-gray);   opacity: 1; transform: scale(1); }
.fc-sc.fc-sel-red    .fc-chk { background: var(--fc-red);    opacity: 1; transform: scale(1); }

/* ── Notes auto-save indicator ─────────────────────── */
.fc-notes-save-tag {
  margin-left: auto; font-size: 10px; color: var(--fc-label-2);
  opacity: 0; transition: opacity 0.2s;
}
.fc-notes-save-tag.visible { opacity: 1; }

/* ── Status section wrapper ────────────────────────── */
.fc-status-section {
  display: flex; flex-direction: column; gap: 5px; flex-shrink: 0;
}

/* Required banner (shown only after call ends) */
.fc-status-required-banner {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 0; overflow: hidden; opacity: 0;
  background: linear-gradient(135deg, rgba(255,59,48,0.08) 0%, rgba(255,149,0,0.08) 100%);
  border: 1px solid rgba(255,59,48,0.18);
  border-radius: 10px;
  transition: height 0.32s cubic-bezier(0.4,0,0.2,1), opacity 0.25s ease, margin 0.32s ease;
  font-size: 13px; font-weight: 600; color: #C0210F;
  letter-spacing: -0.01em;
}
.fc-status-required-banner svg { flex-shrink: 0; }
.fc-call-ended .fc-status-required-banner {
  height: 34px; opacity: 1; margin-bottom: 2px;
}

/* Red ring around status grid in post-call state */
.fc-call-ended .fc-status-grid {
  border-radius: 14px;
  box-shadow: 0 0 0 2px rgba(255,59,48,0.25), 0 0 20px rgba(255,59,48,0.08);
  transition: box-shadow 0.3s ease;
  animation: fc-statusPulse 2.2s ease-in-out 0.4s 2;
}
@keyframes fc-statusPulse {
  0%,100% { box-shadow: 0 0 0 2px rgba(255,59,48,0.25), 0 0 20px rgba(255,59,48,0.08); }
  50%     { box-shadow: 0 0 0 3px rgba(255,59,48,0.45), 0 0 28px rgba(255,59,48,0.16); }
}
/* Once status is picked, switch to green ring */
.fc-call-ended.fc-status-picked .fc-status-grid {
  box-shadow: 0 0 0 2px rgba(52,199,89,0.35), 0 0 18px rgba(52,199,89,0.10);
  animation: none;
}
.fc-call-ended.fc-status-picked .fc-status-required-banner {
  background: linear-gradient(135deg, rgba(52,199,89,0.08) 0%, rgba(0,122,255,0.06) 100%);
  border-color: rgba(52,199,89,0.28);
  color: #1A7A35;
}

/* Call-ended pill (replaces live pill after call ends) */
.fc-call-ended-pill {
  display: none; align-items: center; gap: 7px;
  background: rgba(142,142,147,0.14);
  border: 0.5px solid rgba(142,142,147,0.28);
  border-radius: 100px; padding: 8px 15px 8px 12px;
  font-size: 13px; font-weight: 500; color: var(--fc-gray);
}
.fc-call-ended .fc-call-live-pill  { display: none !important; }
.fc-call-ended .fc-call-ended-pill { display: flex !important; }
.fc-call-ended .fc-ctrl-btn { opacity: 0.35; pointer-events: none; }

/* ── Bottom bar ────────────────────────────────────── */
.fc-bottom-bar {
  flex-shrink: 0; height: 58px;
  background: rgba(242,242,247,0.96);
  backdrop-filter: blur(20px) saturate(180%);
  border-top: 0.5px solid var(--fc-sep);
  padding: 0 20px;
  display: flex; align-items: center; justify-content: center;
}
.fc-btn-end-call {
  display: flex; align-items: center; gap: 7px;
  padding: 0 22px; height: 40px; border-radius: 100px;
  background: var(--fc-red); border: none;
  font-size: 15px; font-weight: 600; color: #fff;
  font-family: inherit; letter-spacing: -0.01em; cursor: pointer;
  box-shadow: 0 3px 10px rgba(255,59,48,0.30);
  transition: background 0.12s, transform 0.1s;
  text-decoration: none;
}
.fc-btn-end-call:hover   { background: #E0291E; color: #fff; text-decoration: none; }
.fc-btn-end-call:active  { transform: scale(0.96); }
.fc-btn-end-call svg { width: 14px; height: 14px; }

/* Disposition bar (hidden until call ends) */
.fc-disposition-bar {
  display: none !important; align-items: center; justify-content: space-between;
  width: 100%; gap: 12px;
}
.fc-disposition-hint {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 500; color: var(--fc-label-2);
  letter-spacing: -0.01em;
}
.fc-disposition-arrow {
  font-size: 16px; animation: fc-bounce-arrow 1.2s ease-in-out infinite;
}
@keyframes fc-bounce-arrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
.fc-post-call-actions {
  display: none; align-items: center; gap: 8px;
}
.fc-status-picked .fc-post-call-actions {
  display: flex;
  animation: fc-buttonPop 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.fc-btn-stop-calls {
  display: flex; align-items: center; gap: 7px;
  padding: 0 20px; height: 40px; border-radius: 100px;
  background: var(--fc-gray); border: none;
  font-size: 15px; font-weight: 600; color: #fff;
  font-family: inherit; letter-spacing: -0.01em;
  cursor: not-allowed; opacity: 0.45;
  transition: background 0.2s, opacity 0.2s, transform 0.1s, box-shadow 0.2s;
}
.fc-btn-stop-calls svg { width: 14px; height: 14px; }
.fc-btn-stop-calls.fc-unlocked {
  background: var(--fc-red); opacity: 1; cursor: pointer;
  box-shadow: 0 3px 10px rgba(255,59,48,0.28);
  animation: fc-buttonPop 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.fc-btn-stop-calls.fc-unlocked:hover  { background: #E0291E; }
.fc-btn-stop-calls.fc-unlocked:active { transform: scale(0.96); }
.fc-btn-next-call {
  display: flex; align-items: center; gap: 7px;
  padding: 0 22px; height: 40px; border-radius: 100px;
  background: var(--fc-gray); border: none;
  font-size: 15px; font-weight: 600; color: #fff;
  font-family: inherit; letter-spacing: -0.01em;
  cursor: not-allowed; opacity: 0.45;
  transition: background 0.2s, opacity 0.2s, transform 0.1s, box-shadow 0.2s;
}
.fc-btn-next-call svg { width: 14px; height: 14px; }
.fc-btn-next-call.fc-unlocked {
  background: var(--fc-green); opacity: 1; cursor: pointer;
  box-shadow: 0 3px 12px rgba(52,199,89,0.38);
  animation: fc-buttonPop 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.fc-btn-next-call.fc-unlocked:active { transform: scale(0.96); }
@keyframes fc-buttonPop {
  from { transform: scale(0.88); opacity:0.6; }
  to   { transform: scale(1);    opacity:1; }
}

/* Call-ended state: swap buttons */
.fc-call-ended .fc-btn-end-call { display: none !important; }
.fc-call-ended .fc-disposition-bar { display: flex !important; }

/* Selected states */
.fc-sc.fc-sel-green  { background:#EDFBF2; border-color:rgba(52,199,89,0.45); }
.fc-sc.fc-sel-blue   { background:#E5F2FF; border-color:rgba(0,122,255,0.38); }
.fc-sc.fc-sel-purple { background:#F5EEFF; border-color:rgba(175,82,222,0.38); }
.fc-sc.fc-sel-orange { background:#FFF5E5; border-color:rgba(255,149,0,0.38); }
.fc-sc.fc-sel-gray   { background:#F2F2F7; border-color:rgba(142,142,147,0.45); }
.fc-sc.fc-sel-red    { background:#FFF0EF; border-color:rgba(255,59,48,0.38); }
.fc-sc.fc-sel-green  .fc-sc-lbl { color:#1A7A35; }
.fc-sc.fc-sel-blue   .fc-sc-lbl { color:#0055CC; }
.fc-sc.fc-sel-purple .fc-sc-lbl { color:#7A28C0; }
.fc-sc.fc-sel-orange .fc-sc-lbl { color:#B86A00; }
.fc-sc.fc-sel-gray   .fc-sc-lbl { color:#3A3A3C; }
.fc-sc.fc-sel-red    .fc-sc-lbl { color:#C0210F; }

/* Messaging row — flex so it adapts when WhatsApp is absent */
.fc-msg-row {
  display: flex; gap: 7px; flex-shrink: 0;
}
.fc-msg-row > .fc-msg-btn { flex: 1; min-width: 0; }
.fc-msg-btn {
  width: 100%; border: none; border-radius: 14px; cursor: pointer;
  font-family: inherit;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 14px 12px; gap: 5px;
  height: 72px;
  position: relative; overflow: hidden;
  transition: filter 0.14s, transform 0.1s;
  text-decoration: none;
}
.fc-msg-btn::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(175deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 50%);
  pointer-events: none;
}
.fc-msg-btn:hover  { filter: brightness(1.06); text-decoration: none; }
.fc-msg-btn:active { transform: scale(0.96); }
.fc-msg-btn-sms      { background: var(--fc-blue);   color: #fff; box-shadow: 0 3px 10px rgba(0,122,255,0.32); }
.fc-msg-btn-whatsapp { background: #25D366;          color: #fff; box-shadow: 0 3px 10px rgba(37,211,102,0.32); }
.fc-msg-btn-email    { background: var(--fc-purple);  color: #fff; box-shadow: 0 3px 10px rgba(175,82,222,0.32); }
.fc-msg-btn-top { display: flex; align-items: center; gap: 6px; }
.fc-msg-btn-title { font-size: 14px; font-weight: 700; color: #fff; letter-spacing: -0.02em; line-height: 1; }
.fc-msg-btn-dest  { font-size: 11px; color: rgba(255,255,255,0.72); letter-spacing: -0.01em; }

/* (duplicate bottom-bar removed — see above) */

/* Call status modal override */
#callStatusModal .modal-content {
  background: var(--fc-bg);
  border-radius: 20px;
  border: none;
  box-shadow: var(--fc-shadow-lg);
  overflow: hidden;
}
#callStatusModal .modal-body {
  padding: 0;
}
#callStatusModal .bg-back {
  background: transparent;
}
#callStatusModal .main-box {
  padding: 0;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — Mobile/Tablet
   ══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .fc-sidebar { display: none; }
  .fc-frame { flex-direction: column; }
  .fc-login-frame { flex-direction: column; min-height: auto; }
  .fc-brand-panel { width: 100%; min-height: 200px; padding: 32px 24px; }
  .fc-login-card { padding: 28px 20px 24px; }
  .fc-hero-top { padding: 18px 18px 16px; }
  .fc-dn { font-size: 38px; }
  .fc-du { font-size: 16px; }
  .fc-hm-val { font-size: 22px; }
  .fc-dialpad-card { width: 100%; max-width: 340px; }
  .fc-toolbar { flex-direction: column; }
  .fc-seg { width: 100%; }
  .fc-seg-btn { flex: 1; text-align: center; }
  .fc-notes-grid { grid-template-columns: 1fr; }
  .fc-status-grid { grid-template-columns: repeat(2, 1fr); }
  .fc-contact-bar { flex-direction: column; gap: 12px; }
  .fc-msg-row { flex-direction: column; }
}

/* ═══════════════════════════════════════════════════════════
   Incoming Call Overlay
   ═══════════════════════════════════════════════════════════ */
.fc-incoming-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: fc-overlay-in 0.3s ease;
}
@keyframes fc-overlay-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.fc-incoming-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 40px 48px 36px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  animation: fc-card-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes fc-card-in {
  from { opacity: 0; transform: scale(0.85) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.fc-incoming-pulse {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(52, 199, 89, 0.25);
  position: absolute;
  margin-top: 10px;
  animation: fc-pulse-ring 1.8s ease-out infinite;
}
@keyframes fc-pulse-ring {
  0%   { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

.fc-incoming-avatar {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.fc-incoming-name {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
  margin-top: 4px;
}

.fc-incoming-number {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  font-variant-numeric: tabular-nums;
}

.fc-incoming-label {
  font-size: 13px;
  font-weight: 600;
  color: #34C759;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 4px;
}

.fc-incoming-actions {
  display: flex;
  gap: 28px;
  margin-top: 20px;
}

.fc-incoming-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
}

.fc-incoming-btn svg {
  width: 28px;
  height: 28px;
  padding: 16px;
  border-radius: 50%;
  transition: transform 0.15s ease;
}
.fc-incoming-btn:active svg {
  transform: scale(0.9);
}

.fc-incoming-btn span {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.fc-incoming-reject svg {
  background: #FF3B30;
  transform: rotate(135deg);
}
.fc-incoming-reject:active svg {
  transform: rotate(135deg) scale(0.9);
}

.fc-incoming-accept svg {
  background: #34C759;
}
