:root {
  --teal-900: #0f766e;
  --teal-700: #0d9488;
  --teal-600: #14b8a6;
  --teal-soft: #e3f5f2;
  --blue-600: #3b6fe0;
  --blue-soft: #e8edfc;
  --green-600: #1f9d55;
  --green-soft: #e3f7ea;
  --purple-600: #8b5cf6;
  --purple-soft: #f0e9fe;
  --ink-900: #0f2a2a;
  --ink-700: #1e293b;
  --ink-500: #64748b;
  --ink-300: #94a3b8;
  --line: #eef1f2;
  --bg: #fef8f8;
  --card: #ffffff;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  font-family:
    "Manrope",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  color: var(--ink-700);
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.app-shell {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
}

/* ===== Header ===== */
.app-header {
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 20;
  padding-bottom: 2px;
}

.brand-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(155deg, var(--teal-600), var(--teal-900));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  flex: 0 0 auto;
  box-shadow: 0 6px 14px -6px rgba(15, 118, 110, 0.55);
}

.brand-title {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink-900);
  line-height: 1.15;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--ink-500);
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--ink-700);
}

.notif-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--teal-700);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
}

/* ===== Hero ===== */
.hero-section {
  min-height: 130px;
}

.hero-text {
  position: relative;
  z-index: 2;
  max-width: 70%;
}

.hero-greeting {
  font-size: 0.85rem;
  color: var(--ink-500);
}

.hero-name {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}

.wave {
  display: inline-block;
  animation: wave 2.2s ease-in-out infinite;
}
@keyframes wave {
  0%,
  60%,
  100% {
    transform: rotate(0deg);
  }
  10% {
    transform: rotate(14deg);
  }
  20% {
    transform: rotate(-8deg);
  }
  30% {
    transform: rotate(14deg);
  }
  40% {
    transform: rotate(-4deg);
  }
}

.hero-tag {
  font-size: 0.82rem;
  color: var(--ink-500);
}

.hero-skyline {
  position: absolute;
  right: -10px;
  top: 0;
  width: 62%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* ===== Scan CTA ===== */
.scan-cta {
  display: flex;
  background: linear-gradient(120deg, var(--teal-600) 0%, var(--teal-900) 100%);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 14px 26px -12px rgba(13, 148, 136, 0.55);
}

.scan-cta-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  flex: 0 0 auto;
}

.scan-cta-title {
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.scan-cta-sub {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.78rem;
  line-height: 1.35;
  max-width: 190px;
}

.scan-cta-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex: 0 0 auto;
}

/* ===== Stat cards ===== */
.stat-card {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 10px 8px;
  height: 100%;
  border: 1px solid var(--line);
}

.stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-bottom: 10px;
}

.stat-value {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink-900);
  line-height: 1;
  padding: 3px 0px;
  text-align: center;
}
.stat-label {
  font-size: 0.61rem;
  font-weight: 600;
  color: var(--ink-700);
  margin-top: 5px;
  text-align: center;
}

.stat-sub {
  font-size: 0.55rem;
  color: var(--ink-300);
  margin-top: 2px;
  text-align: center;
}
/* ===== Soft color utilities ===== */
.bg-teal-soft {
  background: var(--teal-soft);
}
.text-teal {
  color: var(--teal-700);
}
.bg-blue-soft {
  background: var(--blue-soft);
}
.text-blue {
  color: var(--blue-600);
}
.bg-green-soft {
  background: var(--green-soft);
}
.text-green {
  color: var(--green-600);
}
.bg-purple-soft {
  background: var(--purple-soft);
}
.text-purple {
  color: var(--purple-600);
}

/* ===== Section heading ===== */
.section-heading h2 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink-900);
  margin: 0;
}

.link-action {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--teal-700);
  text-decoration: none;
}

/* ===== Quick actions ===== */
.quick-actions {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 6px;
}

.quick-action-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.quick-action-item span {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink-700);
}

.quick-action-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.quick-divider {
  width: 1px;
  background: var(--line);
  margin: 4px 0;
}

/* ===== Recent scans ===== */
.recent-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.recent-item {
  padding: 14px;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.recent-item:last-child {
  border-bottom: none;
}

.recent-logo {
  width: 52px;
  height: 38px;
  object-fit: cover;
  border-radius: 8px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
}

.recent-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-900);
}

.recent-company {
  font-size: 0.75rem;
  color: var(--ink-500);
  margin-top: 1px;
}

.recent-phone {
  font-size: 0.72rem;
  color: var(--ink-500);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.recent-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  color: var(--ink-300);
  font-size: 0.68rem;
  flex: 0 0 auto;
}

/* ===== Bottom nav ===== */
.bottom-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 10px 10px calc(0px + env(safe-area-inset-bottom));
  z-index: 30;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--ink-300);
  font-size: 0.65rem;
  font-weight: 600;
}

.nav-item i {
  font-size: 1.25rem;
}

.nav-item.active {
  color: var(--teal-700);
}

.nav-scan-wrap {
  position: relative;
  top: -26px;
  color: var(--ink-500);
}

.nav-scan-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(155deg, var(--teal-600), var(--teal-900));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 10px 20px -8px rgba(13, 148, 136, 0.65);
  border: 4px solid #fff;
}

.nav-scan-label {
  margin-top: 2px;
}

/* ===== Small screens ===== */
@media (max-width: 340px) {
  .stat-value {
    font-size: 1.25rem;
  }
  .hero-name {
    font-size: 1.35rem;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .wave {
    animation: none;
  }
}

/* =====================================================================
   MY CARDS PAGE (cards.html)
   ===================================================================== */

.cards-page {
  padding-bottom: 12px;
}

/* ----- Page header ----- */
.page-title {
  font-size: 1rem !important;
  font-weight: 800 !important;
  color: var(--ink-900) !important;
  letter-spacing: -0.01em !important;
}

.page-subtitle {
  font-size: 0.68rem;
  color: var(--ink-500);
}

.page-subtitle .dot {
  margin: 0 4px;
  color: var(--ink-300);
}

.page-subtitle .synced {
  color: var(--teal-700);
  font-weight: 700;
}
.page-subtitle .synced i {
  margin-right: 2px;
}

.square-btn {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--teal-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* ----- Search bar ----- */
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #eef1f2;
  border-radius: 16px;
  padding: 6px 16px;
}

.search-bar i {
  color: var(--ink-300);
  font-size: 1rem;
}

.search-bar input {
  border: none;
  background: transparent;
  outline: none;
  flex: 1;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--ink-700);
}

.search-bar input::placeholder {
  color: var(--ink-300);
}

/* ----- Filter tabs ----- */
.filter-tabs {
  background: #eef1f2;
  border-radius: 16px;
  padding: 5px;
}

.tab-pill {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 0;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-500);
}

.tab-pill.active {
  background: var(--teal-700);
  color: #fff;
  box-shadow: 0 6px 14px -6px rgba(15, 118, 110, 0.5);
}

/* ----- Contact list ----- */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
}

.contact-avatar-wrap {
  position: relative;
  flex: 0 0 auto;
}

.contact-info {
  flex: 1 1 auto;
  min-width: 0;
}

.contact-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.contact-initials {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal-700);
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.favorite-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--teal-700);
  color: #fff;
  font-size: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

.contact-name {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--ink-900);
  margin: 0 0 2px;
}

.contact-role {
  font-size: 0.7rem;
  color: var(--ink-500);
  margin: 0 0 4px;
  line-height: 1.3;
}

.contact-phone {
  font-size: 0.65rem;
  color: var(--teal-700);
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.contact-side {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  padding-right: 22px;
}

.contact-location {
  font-size: 0.72rem;
  color: var(--ink-300);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.more-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  border: none;
  background: transparent;
  color: var(--ink-300);
  font-size: 1.05rem;
  padding: 4px;
}

/* ----- Category badge tags ----- */
.badge-tag {
  font-size: 0.45rem;
  font-weight: 700;
  padding: 3px 5px;
  border-radius: 999px;
  white-space: nowrap;
}

.badge-tag--teal {
  background: var(--teal-soft);
  color: var(--teal-700);
}
.badge-tag--purple {
  background: var(--purple-soft);
  color: var(--purple-600);
}
.badge-tag--blue {
  background: var(--blue-soft);
  color: var(--blue-600);
}
.badge-tag--orange {
  background: #ffe8e0;
  color: #e8622c;
}
.badge-tag--mint {
  background: #dcf7ec;
  color: #0f9d6f;
}
.badge-tag--amber {
  background: #fdf0d5;
  color: #c9891a;
}

/* ----- Floating Add/Scan pill ----- */
.add-scan-pill {
  position: fixed;
  left: 50%;
  transform: translateX(calc(-50% + 100px));
  bottom: calc(96px + env(safe-area-inset-bottom));
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--teal-700);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 13px 20px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 12px 22px -10px rgba(15, 118, 110, 0.6);
  max-width: calc(480px - 40px);
}

@media (max-width: 480px) {
  .add-scan-pill {
    right: 16px;
    left: auto;
    transform: none;
  }
}

/* =====================================================================
   CONTACT DETAILS PAGE (contact.html)
   ===================================================================== */

.contact-page {
  padding-bottom: 12px;
}

/* ----- Page header ----- */
.detail-header {
  padding-bottom: 6px;
}

.detail-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink-900);
}

.ghost-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--ink-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  text-decoration: none;
}

.edit-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--teal-soft);
  color: var(--teal-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* ----- Profile hero ----- */
.profile-hero {
  background: linear-gradient(120deg, var(--teal-600) 0%, var(--teal-900) 100%);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 14px 26px -12px rgba(13, 148, 136, 0.5);
}

.profile-hero-pattern {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.profile-hero > .d-flex {
  z-index: 1;
}

.profile-avatar {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.85);
  flex: 0 0 auto;
}

.profile-text {
  min-width: 0;
}

.profile-name {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
}

.profile-role {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  font-weight: 500;
}

.profile-company {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.verified-badge {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-tag-pill {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}

/* ----- Quick actions row (reuses .quick-action-item) ----- */
.contact-quick-actions {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 6px;
}

.bg-whatsapp-soft {
  background: #e3f8ea;
}
.text-whatsapp {
  color: #25d366;
}

/* ----- Detail info list ----- */
.detail-list {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.detail-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: none;
  background: transparent;
  border-bottom: 1px solid var(--line);
  color: inherit;
  font-family: inherit;
  text-align: left;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-row-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--teal-soft);
  color: var(--teal-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex: 0 0 auto;
}

.detail-row-text {
  flex: 1 1 auto;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-900);
  line-height: 1.35;
}

.detail-row-action {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--teal-soft);
  color: var(--teal-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex: 0 0 auto;
}

/* ----- Two-column layout (Notes/Tags, Original Card/Activity) ----- */
.two-col {
  align-items: stretch;
}
.flex-1 {
  flex: 1 1 0;
  min-width: 0;
}

.panel-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
  height: 100%;
}

.panel-card-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--ink-900);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.panel-card-title i {
  color: var(--teal-700);
}

.small-link {
  font-size: 0.72rem;
}

.notes-text {
  font-size: 0.8rem;
  color: var(--ink-500);
  line-height: 1.5;
  margin: 0;
}

.tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ----- Follow-up card ----- */
.followup-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  gap: 12px;
}

.panel-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--teal-soft);
  color: var(--teal-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex: 0 0 auto;
}

.followup-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--ink-900);
}

.followup-date {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--teal-700);
  margin-top: 1px;
}

.followup-desc {
  font-size: 0.75rem;
  color: var(--ink-500);
  margin-top: 2px;
}

.btn-outline-teal {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--teal-700);
  color: var(--teal-700);
  background: transparent;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ----- Original card mock (pure CSS, no image needed) ----- */
.original-card-mock {
  position: relative;
  overflow: hidden;
  background: #0f2a2a;
  border-radius: 12px;
  padding: 14px;
  min-height: 150px;
}

.original-card-swirl {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 0% 100%, var(--teal-600) 0%, transparent 55%),
    radial-gradient(circle at 15% 115%, var(--teal-700) 0%, transparent 40%);
  opacity: 0.9;
}

.original-card-logo {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.original-card-body {
  position: relative;
}

.original-card-name {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
}

.original-card-role {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.68rem;
  margin-top: 1px;
}

.original-card-company {
  color: var(--teal-600);
  font-size: 0.68rem;
  font-weight: 700;
  margin-top: 1px;
  margin-bottom: 8px;
}

.original-card-contacts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.original-card-contacts li {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.6rem;
  display: flex;
  align-items: flex-start;
  gap: 5px;
  line-height: 1.35;
}

.original-card-contacts i {
  color: var(--teal-600);
  font-size: 0.6rem;
  margin-top: 2px;
  flex: 0 0 auto;
}

/* ----- Activity timeline ----- */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-bottom: 18px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 30px;
  bottom: 0;
  width: 1.5px;
  border-left: 1.5px dashed var(--line);
}

.timeline-item--last {
  padding-bottom: 0;
}
.timeline-item--last::before {
  display: none;
}

.timeline-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex: 0 0 auto;
  z-index: 1;
}

.timeline-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-900);
}

.timeline-date {
  font-size: 0.66rem;
  color: var(--ink-300);
  margin-top: 1px;
}

/* ----- Small screens ----- */
@media (max-width: 360px) {
  .two-col {
    flex-wrap: wrap;
  }
  .two-col .flex-1 {
    flex: 1 1 100%;
  }
}

/* =====================================================================
   SETTINGS PAGE (settings.html)
   ===================================================================== */

.settings-page {
  padding-bottom: 12px;
}

/* ----- Profile summary card ----- */
.profile-summary-card {
  background: var(--teal-soft);
  border: 1px solid #d7ede9;
  border-radius: var(--radius-lg);
  padding: 16px;
}

.profile-summary-pattern {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.profile-summary-card > .d-flex,
.profile-summary-card .plan-box {
  z-index: 1;
}

.profile-summary-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  flex: 0 0 auto;
}

.profile-summary-text {
  min-width: 0;
  line-height: 1.1;
}

.profile-summary-name {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--ink-900);
}

.profile-summary-line {
  font-size: 0.53rem;
  color: var(--ink-500);
  display: flex;
  align-items: center;
  gap: 4px;
}

.profile-summary-line i {
  color: var(--teal-700);
  font-size: 0.72rem;
}

.verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--green-soft);
  color: var(--green-600);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.plan-col {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0px;
  z-index: 1;
}

.plan-box {
  background: linear-gradient(120deg, var(--teal-700) 0%, var(--teal-900) 100%);
  border-radius: 12px;
  /* border-bottom-left-radius: 0px; */
  /* border-bottom-right-radius: 0px; */
  padding: 4px 6px;
  white-space: nowrap;
  margin-bottom: 5px;
}

.plan-crown {
  color: #f5c451;
  font-size: 1rem;
}

.plan-name {
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  line-height: 1.3;
}

.plan-sub {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.64rem;
  line-height: 1.3;
}

.plan-manage-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: #fff;
  color: var(--ink-900);
  border: 1px solid #c4c4ed;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 11px;
  white-space: nowrap;
}
/* ----- Section title (no "View All" link) ----- */
.settings-section-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink-900);
  margin-bottom: 10px;
}

/* ----- Settings list / rows ----- */
.settings-list {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.settings-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  color: inherit;
}

.settings-row--last,
.settings-row:last-child {
  border-bottom: none;
}

.settings-row-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--teal-soft);
  color: var(--teal-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex: 0 0 auto;
}

.settings-row-icon--text {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.settings-row-text {
  flex: 1 1 auto;
  min-width: 0;
}

.settings-row-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ink-900);
}

.settings-row-sub {
  font-size: 0.5rem;
  color: var(--ink-500);
  margin-top: 1px;
}

.settings-row-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.settings-row-chevron {
  color: var(--ink-300);
  font-size: 0.85rem;
  margin-left: 2px;
}

/* Small colored icon chips (category previews) */
.chip-icon {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #fff;
  flex: 0 0 auto;
}

.chip-icon--green {
  background: var(--green-600);
}
.chip-icon--blue {
  background: var(--blue-600);
}
.chip-icon--purple {
  background: var(--purple-600);
}
.chip-icon--orange {
  background: #e8622c;
}

.chip-more {
  font-size: 0.5rem;
  font-weight: 700;
  color: var(--ink-500);
  background: #eef1f2;
  padding: 2px 4px;
  border-radius: 999px;
  flex: 0 0 auto;
}
/* iOS-style toggle switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-track {
  position: absolute;
  inset: 0;
  background: var(--line);
  border-radius: 999px;
  transition: background 0.2s ease;
}

.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}

.toggle-switch input:checked + .toggle-track {
  background: var(--teal-700);
}

.toggle-switch input:checked + .toggle-track .toggle-thumb {
  transform: translateX(18px);
}

/* Sync status check */
.status-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--green-600);
  color: var(--green-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

/* =====================================================================
   SMART FILTER PAGE (smart-filter.html)
   ===================================================================== */

.filter-page {
  padding-bottom: 12px;
}

/* ----- Filter field cards ----- */
.filter-field-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  text-align: left;
  font-family: inherit;
}

.filter-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--teal-soft);
  color: var(--teal-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex: 0 0 auto;
}

.filter-card-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.filter-card-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--ink-900);
}

.filter-card-value {
  font-size: 0.68rem;
  color: var(--ink-500);
  margin-top: 1px;
}

.filter-card-chevron {
  color: var(--ink-300);
  font-size: 0.8rem;
  flex: 0 0 auto;
}

/* ----- Active filters ----- */
.active-filters-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--ink-900);
}

.active-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--teal-soft);
  border: 1px solid #bfe6e0;
  color: var(--teal-900);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 5px 8px 5px 5px;
  border-radius: 999px;
}

.chip-check {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--teal-700);
  color: #fff;
  font-size: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.chip-close {
  font-size: 0.75rem;
  color: var(--teal-700);
  margin-left: 1px;
}

/* ----- Action buttons ----- */
.filter-actions {
  align-items: stretch;
}

.btn-reset-filter {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: #fff;
  border: 1.5px solid var(--teal-700);
  color: var(--teal-700);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 12px;
}

.btn-apply-filter {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--teal-700);
  border: none;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 12px;
  box-shadow: 0 10px 18px -10px rgba(13, 148, 136, 0.6);
}

/* ----- Save this filter row ----- */
.save-filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--teal-soft);
  border: none;
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: left;
  font-family: inherit;
}

.save-filter-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fff;
  color: var(--teal-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex: 0 0 auto;
}

.save-filter-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.save-filter-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--ink-900);
}

.save-filter-sub {
  font-size: 0.7rem;
  color: var(--ink-500);
  margin-top: 1px;
}

.save-filter-chevron {
  color: var(--teal-700);
  font-size: 0.9rem;
  flex: 0 0 auto;
}

/* ----- Bottom nav: active Scan state (used on this page) ----- */
.nav-scan-btn--active {
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 5px var(--teal-700),
    0 10px 20px -8px rgba(13, 148, 136, 0.65);
}

/* =====================================================================
   CREATE MESSAGE CAMPAIGN PAGE (create-campaign.html)
   ===================================================================== */

.campaign-page {
  padding-bottom: 12px;
}

.campaign-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink-900);
}

.ghost-icon-btn--bordered {
  border: 1px solid var(--line);
  background: #fff;
}

/* ----- Form label ----- */
.form-label-sm {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--ink-900);
  margin-bottom: 8px;
}

.link-action-sm {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--teal-700);
  text-decoration: none;
}

/* ----- Step progress ----- */
.campaign-steps {
  display: flex;
  align-items: flex-start;
}

.step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
}

.step-circle--done {
  background: var(--teal-700);
  color: #fff;
}

.step-circle--active {
  width: 36px;
  height: 36px;
  background: var(--teal-700);
  color: #fff;
  box-shadow: 0 0 0 3px var(--teal-soft);
}

.step-circle--upcoming {
  background: #fff;
  color: var(--ink-300);
  border: 1.5px solid var(--line);
}

.step-label {
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

.step-label--done,
.step-label--active {
  color: var(--teal-700);
}

.step-label--upcoming {
  color: var(--ink-300);
}

.step-line {
  flex: 1 1 auto;
  height: 2px;
  margin-top: 16px;
}

.step-line--done {
  background: var(--teal-700);
}

.step-line--upcoming {
  background: var(--line);
}

/* ----- Audience summary ----- */
.audience-summary-box {
  background: var(--teal-soft);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
}

.audience-summary-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--teal-700);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex: 0 0 auto;
}

.audience-summary-text {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink-900);
}

/* ----- Channel toggle ----- */
.channel-option {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: #fff;
  border: 1.5px solid var(--line);
  color: var(--ink-700);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px;
  border-radius: 12px;
}

.channel-option--active {
  background: var(--teal-soft);
  border-color: var(--teal-600);
  color: var(--teal-900);
}

.channel-option--active i {
  color: #25d366;
}

/* ----- Select field ----- */
.select-field {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-900);
  text-align: left;
}

.select-field i {
  color: var(--ink-300);
}

/* ----- Message box ----- */
.message-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.message-box p {
  font-size: 0.82rem;
  color: var(--ink-900);
  line-height: 1.45;
  margin: 0 0 10px;
}

.message-box-footer {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.message-box-actions i {
  color: var(--ink-500);
  font-size: 1rem;
}

.message-attach {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--teal-700);
}

.message-attach i {
  color: var(--teal-700);
  font-size: 0.9rem;
}

.message-char-count {
  font-size: 0.7rem;
  color: var(--ink-300);
}

.message-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--ink-500);
  margin: 8px 0 0;
}

.message-hint i {
  color: var(--teal-600);
}

.message-hint strong {
  color: var(--ink-700);
}

/* ----- Preview message ----- */
.preview-message-card {
  background: var(--teal-soft);
  border-radius: var(--radius-md);
  padding: 14px;
}

.preview-message-pattern {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.preview-message-header {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--teal-900);
  margin-bottom: 10px;
}

.whatsapp-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fff;
  color: #25d366;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}

.preview-bubble {
  background: #dcf8c6;
  border-radius: 12px;
  border-top-left-radius: 2px;
  padding: 12px 14px;
  max-width: 88%;
  margin-left: auto;
}

.preview-bubble p {
  font-size: 0.8rem;
  color: var(--ink-900);
  line-height: 1.4;
  margin: 0 0 8px;
}

.preview-bubble-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  font-size: 0.65rem;
  color: var(--ink-500);
  margin-top: 6px;
}

.preview-bubble-meta i {
  color: #34b7f1;
}

/* ----- Action buttons ----- */
.btn-schedule {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #fff;
  border: 1.5px solid var(--teal-700);
  color: var(--teal-700);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 12px;
  border-radius: 12px;
}

.btn-send-now {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--teal-700);
  border: none;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 12px;
  border-radius: 12px;
  box-shadow: 0 10px 18px -10px rgba(13, 148, 136, 0.6);
}

/* =====================================================================
   FOLLOW-UP & REMINDERS PAGE (followup-reminders.html)
   ===================================================================== */

.followup-page {
  padding-bottom: 12px;
}

.section-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink-900);
}

/* ----- Corner notification dot (bell icon / bottom nav) ----- */
.corner-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal-700);
  border: 1.5px solid #fff;
}

.corner-dot--nav {
  top: -2px;
  right: 22%;
  width: 6px;
  height: 6px;
  border: none;
}

/* ----- Week calendar ----- */
.week-calendar-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 8px 8px;
}

.week-days {
  display: flex;
  justify-content: space-between;
}

.week-day-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 4px 1px;
  border-radius: 10px;
}

.week-day-name {
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--ink-300);
  letter-spacing: 0.02em;
}

.week-day-num {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--ink-900);
}

.week-day-num--sun {
  color: #e15b5b;
}

.week-day-num--sat {
  color: var(--teal-700);
}

.week-day-col--today {
  background: var(--teal-700);
  padding-bottom: 8px;
  position: relative;
}

.week-day-col--today .week-day-name,
.week-day-col--today .week-day-num {
  color: #fff;
}

.week-day-dot {
  position: absolute;
  bottom: 4px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff;
}

.week-month-label {
  text-align: center;
  font-size: 0.68rem;
  color: var(--ink-500);
  margin-top: 6px;
}

/* ----- Today's priority ----- */
.priority-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.priority-card-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--ink-900);
}

.priority-card-count {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--teal-700);
}

.priority-stats {
  margin-top: 10px;
}

.priority-stat {
  flex: 1;
}

.priority-stat-top {
  display: flex;
  align-items: center;
  gap: 6px;
}

.priority-stat-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  flex: 0 0 auto;
}

.priority-stat-icon--high {
  background: #fbe4e4;
  color: #d84343;
}

.priority-stat-icon--medium {
  background: #fdf0d5;
  color: #c9891a;
}

.priority-stat-icon--low {
  background: var(--green-soft);
  color: var(--green-600);
}

.priority-stat-value {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--ink-900);
}

.priority-stat-label {
  font-size: 0.6rem;
  font-weight: 700;
}

.priority-stat-label--high {
  color: #d84343;
}
.priority-stat-label--medium {
  color: #c9891a;
}
.priority-stat-label--low {
  color: var(--green-600);
}

.priority-divider {
  width: 1px;
  height: 30px;
  background: var(--line);
  flex: 0 0 auto;
}

/* ----- Sort by ----- */
.sort-by-link {
  display: flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  font-size: 0.75rem;
  color: var(--ink-500);
}

.sort-by-link span {
  color: var(--ink-900);
  font-weight: 700;
}

/* ----- Follow-up list items ----- */
.followup-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.followup-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px;
}

.followup-dot {
  position: absolute;
  left: -3px;
  top: 14px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid #fff;
}

.followup-dot--red {
  background: #e04b4b;
}
.followup-dot--amber {
  background: #e8a935;
}
.followup-dot--green {
  background: var(--green-600);
}
.followup-dot--gray {
  background: var(--ink-300);
}

.followup-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}

.followup-info {
  flex: 1 1 auto;
  min-width: 0;
}

.followup-name {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--ink-900);
}

.followup-company {
  font-size: 0.66rem;
  color: var(--ink-500);
  margin-top: 1px;
}

.followup-task {
  font-size: 0.66rem;
  color: var(--ink-500);
  margin-top: 1px;
}

.followup-time {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--teal-700);
  margin-top: 3px;
}

.followup-status {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.status-badge {
  font-size: 0.5rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 999px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.status-badge--red {
  background: #fbe4e4;
  color: #d0413f;
}
.status-badge--amber {
  background: #fdf0d5;
  color: #c9891a;
}
.status-badge--green {
  background: var(--green-soft);
  color: var(--green-600);
}

.followup-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.followup-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.56rem;
  font-weight: 600;
  color: var(--ink-500);
  text-decoration: none;
}

.followup-action-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
}

.followup-action-icon--call {
  background: var(--teal-soft);
  color: var(--teal-700);
}

.followup-action-icon--whatsapp {
  background: #e3f8ea;
  color: #25d366;
}

.followup-action-divider {
  width: 1px;
  height: 24px;
  background: var(--line);
}

.followup-completed {
  text-align: right;
}

.followup-completed-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--ink-700);
}

.followup-completed-time {
  font-size: 0.6rem;
  color: var(--ink-500);
  margin-top: 1px;
}

/* ----- Add reminder button ----- */
.btn-add-reminder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--teal-700);
  border: none;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px;
  border-radius: 999px;
  box-shadow: 0 10px 18px -10px rgba(13, 148, 136, 0.55);
}

/* ----- View all link ----- */
.view-all-link {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-500);
  text-decoration: none;
}

/* ----- Upcoming this week ----- */
.upcoming-week-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px;
}

.upcoming-date-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--teal-soft);
  border-radius: 8px;
  padding: 4px 8px;
  flex: 0 0 auto;
}

.upcoming-date-day {
  font-size: 0.54rem;
  font-weight: 700;
  color: var(--ink-500);
}

.upcoming-date-num {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--ink-900);
  line-height: 1.1;
}

.upcoming-date-month {
  font-size: 0.54rem;
  font-weight: 700;
  color: var(--teal-700);
}

.upcoming-week-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}

.upcoming-week-info {
  flex: 1 1 auto;
  min-width: 0;
}

.upcoming-week-name {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--ink-900);
}

.upcoming-week-company,
.upcoming-week-task {
  font-size: 0.62rem;
  color: var(--ink-500);
  margin-top: 1px;
}

.upcoming-week-meta {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.upcoming-week-time {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 0.62rem;
  color: var(--ink-500);
  white-space: nowrap;
}

/* =====================================================================
   REVIEW & SAVE PAGE (review-save.html)
   ===================================================================== */

.review-page {
  padding-bottom: 12px;
}

/* ----- AI confidence badge ----- */
.confidence-badge {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  text-align: right;
}

.confidence-badge-label {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  font-size: 0.5rem;
  font-weight: 700;
  color: var(--ink-500);
  white-space: nowrap;
}

.confidence-badge-label i {
  color: var(--teal-700);
}

.confidence-badge-value {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--teal-700);
  line-height: 1.2;
}

/* ----- Scanned card preview ----- */
.card-preview {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: 0 10px 24px -16px rgba(15, 42, 42, 0.25);
}

.card-preview-diagonal {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 55%;
  z-index: 0;
}

.card-preview-brand,
.card-preview-contact {
  position: relative;
  z-index: 1;
}

.card-preview-brand {
  flex: 0 0 auto;
  max-width: 45%;
}

.card-preview-logo {
  margin-bottom: 5px;
}

.card-preview-logo svg {
  width: 28px;
  height: 28px;
}

.card-preview-company {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--ink-900);
  line-height: 1.2;
}

.card-preview-company span {
  color: var(--teal-700);
}

.card-preview-tagline {
  font-size: 0.5rem;
  color: var(--ink-500);
  margin-top: 2px;
  letter-spacing: 0.01em;
}

.card-preview-contact {
  flex: 0 0 auto;
  max-width: 54%;
  text-align: left;
}

.card-preview-name {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--teal-700);
  line-height: 1.2;
}

.card-preview-role {
  font-size: 0.62rem;
  color: var(--ink-700);
  margin-top: 1px;
  margin-bottom: 6px;
}

.card-preview-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.card-preview-list li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.56rem;
  font-weight: 600;
  color: var(--ink-700);
  line-height: 1.3;
}

.card-preview-list-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--teal-700);
  color: #fff;
  font-size: 0.45rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin-top: 1px;
}

/* ----- Match banner ----- */
.match-banner {
  background: var(--green-soft);
  border: 1px solid #cdeedb;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}

.match-banner-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  color: var(--green-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex: 0 0 auto;
}

.match-banner-text {
  font-size: 0.56rem;
  font-weight: 600;
  color: var(--ink-700);
}

.match-banner-value {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--green-600);
  flex: 0 0 auto;
}

/* ----- Review details card ----- */
.review-details-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 10px;
}

.review-details-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  margin-bottom: 2px;
  border-bottom: 1px solid var(--line);
}

.review-details-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--ink-900);
}

.review-details-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.review-confidence-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--green-soft);
  color: var(--green-600);
  font-size: 0.56rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 999px;
  white-space: nowrap;
}

.review-details-chevron {
  color: var(--ink-300);
  font-size: 0.85rem;
}

/* ----- Field rows ----- */
.review-field-list {
  display: flex;
  flex-direction: column;
}

.review-field-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
  /* border-bottom: 1px solid var(--line); */
}
.review-field-row--last,
.review-field-row:last-child {
  border-bottom: none;
  padding-bottom: 2px;
}

.review-field-icon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--teal-soft);
  color: var(--teal-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex: 0 0 auto;
}

.review-field-body {
  flex: 1 1 auto;
  min-width: 0;
}

.review-field-label {
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--ink-500);
  margin-bottom: 2px;
}

.review-field-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 8px;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ink-900);
}

.review-field-input:focus {
  outline: none;
  border-color: var(--teal-600);
  background: #fff;
}

.review-field-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='%2364748b' d='M8 11 3 6h10z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  padding-right: 28px;
}

.review-field-side {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.review-field-pct {
  font-size: 0.52rem;
  font-weight: 700;
  color: var(--green-600);
}

.review-field-check {
  color: var(--green-600);
  font-size: 0.9rem;
  line-height: 1;
}

/* ----- Action buttons ----- */
.review-actions {
  align-items: stretch;
}

.btn-retake-card {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: #fff;
  border: 1.5px solid var(--teal-700);
  color: var(--teal-700);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 10px;
  border-radius: 12px;
}

.btn-save-card {
  flex: 1.4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--teal-700);
  border: none;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 10px 20px -10px rgba(13, 148, 136, 0.6);
}

/* ----- Small screens ----- */
@media (max-width: 360px) {
  .card-preview-brand {
    max-width: 42%;
  }
  .card-preview-contact {
    max-width: 56%;
  }
  .card-preview-list li {
    font-size: 0.57rem;
  }
}

/* =====================================================================
   CAMPAIGNS PAGE (campaigns.html)
   ===================================================================== */

.campaigns-page {
  padding-bottom: 12px;
}

.campaigns-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}

.campaigns-subtitle {
  font-size: 0.72rem;
  color: var(--ink-500);
}

/* ----- Templates button ----- */
.templates-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  color: var(--teal-700);
}

.templates-btn i {
  font-size: 1.05rem;
}

.templates-btn span {
  font-size: 0.6rem;
  font-weight: 700;
}

/* ----- Stats strip ----- */
.campaign-stats-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 6px;
}

.campaign-stat {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.campaign-stat-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  flex: 0 0 auto;
}

.campaign-stat-icon--teal {
  background: var(--teal-soft);
  color: var(--teal-700);
}

.campaign-stat-icon--green {
  background: var(--green-soft);
  color: var(--green-600);
}

.campaign-stat-icon--blue {
  background: var(--blue-soft);
  color: var(--blue-600);
}

.campaign-stat-value {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink-900);
  line-height: 1.15;
}

.campaign-stat-label {
  font-size: 0.55rem;
  color: var(--ink-500);
  font-weight: 600;
}

.campaign-stat-divider {
  width: 1px;
  height: 26px;
  background: var(--line);
  flex: 0 0 auto;
}

/* ----- Create campaign button ----- */
.btn-create-campaign {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--teal-700);
  border: none;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px;
  border-radius: 12px;
  box-shadow: 0 10px 18px -10px rgba(13, 148, 136, 0.55);
}

/* ----- Channel tabs ----- */
.campaign-tabs {
  border-bottom: 1px solid var(--line);
  gap: 18px;
}

.campaign-tab {
  border: none;
  background: transparent;
  padding: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-500);
  position: relative;
}

.campaign-tab--active {
  color: var(--teal-700);
}

.campaign-tab--active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--teal-700);
  border-radius: 2px;
}

/* ----- Campaign list ----- */
.campaign-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.campaign-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 10px;
  color: inherit;
}

.campaign-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex: 0 0 auto;
  margin-right: 8px;
}

.campaign-card-icon--whatsapp {
  background: var(--green-soft);
  color: #25d366;
}

.campaign-card-icon--sms {
  background: var(--blue-soft);
  color: var(--blue-600);
}

.campaign-card-body {
  flex: 1 1 auto;
  min-width: 0;
}

.campaign-card-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.campaign-card-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--ink-900);
}

.campaign-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.58rem;
  color: var(--ink-500);
  margin-top: 3px;
  flex-wrap: wrap;
}

.campaign-card-meta-sep {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.campaign-card-date {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.58rem;
  color: var(--ink-300);
  margin-top: 3px;
}

.campaign-card-side {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  margin-left: 6px;
}

.status-badge--blue {
  background: var(--blue-soft);
  color: var(--blue-600);
}

.campaign-card-chevron {
  color: var(--ink-300);
  font-size: 0.8rem;
}

/* ----- Progress bar ----- */
.campaign-progress {
  margin-top: 8px;
}

.campaign-progress-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.5rem;
  font-weight: 600;
  color: var(--ink-500);
  margin-bottom: 4px;
}

.campaign-progress-labels--end {
  justify-content: flex-end;
}

.campaign-progress-pct {
  font-weight: 700;
  color: var(--teal-700);
}

.campaign-progress-track {
  height: 5px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.campaign-progress-fill {
  height: 100%;
  background: var(--teal-700);
  border-radius: 999px;
}
