:root {
  --bg: #f6f7f4;
  --surface: #ffffff;
  --surface-soft: #f5f4f1;
  --text: #18191d;
  --muted: #82848e;
  --border: #efece8;
  --coral: #f26522;
  --coral-soft: #ffede3;
  --sky: #a2d2e7;
  --sky-soft: #e6f4fa;
  --lime: #c4d97b;
  --lime-soft: #eff6d8;
  --amber-soft: #fef1d8;
  --amber: #d97706;
  --green: #18a957;
  --dark: #1f2024;
  --danger: #e11d48;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --shadow-soft: 0 8px 30px rgba(24, 24, 34, 0.045);
}

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

body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #ffe6d6 0%, #fff3eb 200px, var(--bg) 400px) no-repeat, var(--bg);
  color: var(--text);
  line-height: 1.48;
  min-height: 100vh;
  padding-bottom: 108px;
  -webkit-font-smoothing: antialiased;
}

.app-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 28px 16px 0;
}

@media (min-width: 768px) {
  .app-shell {
    padding-top: 34px;
  }
}

/* Pill Search Bar */
.search-pill-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  padding: 11px 16px;
  box-shadow: 0 6px 22px rgba(242, 101, 34, 0.07);
  margin-bottom: 20px;
}

.search-icon {
  width: 18px;
  height: 18px;
  color: var(--muted);
  flex-shrink: 0;
}

.search-pill-wrap input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  outline: none;
}

.search-pill-wrap input::placeholder {
  color: #9b9da7;
}

.search-reset-btn {
  background: var(--coral-soft);
  color: var(--coral);
  border: none;
  border-radius: 999px;
  padding: 4px 11px;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

/* Section Blocks */
.section-block {
  margin-bottom: 16px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.section-head-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.strip-nav {
  display: none;
  align-items: center;
  gap: 6px;
}

@media (min-width: 640px) {
  .strip-nav {
    display: flex;
  }
}

.strip-nav-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: background 0.15s, color 0.15s;
}

.strip-nav-btn:hover {
  background: var(--dark);
  border-color: var(--dark);
  color: #fff;
}

/* Zila Category Tiles */
.zila-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 8px;
  scrollbar-width: none;
}

.zila-strip::-webkit-scrollbar {
  display: none;
}

.zila-tile {
  flex: 0 0 auto;
  min-width: 78px;
  background: var(--surface);
  border: 1px solid rgba(239, 236, 232, 0.9);
  border-radius: 20px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
}

.zila-tile:hover {
  transform: translateY(-2px);
}

.zila-count {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.zila-name {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.zila-tile.active {
  background: linear-gradient(145deg, #ff7b3b, var(--coral));
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(242, 101, 34, 0.3);
}

.zila-tile.active .zila-count {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.zila-tile.active .zila-name {
  color: #fff;
}

/* Upazila Chips */
.chip-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.upazila-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.upazila-chip.active {
  background: var(--dark);
  border-color: var(--dark);
  color: #fff;
}

/* Underlined Status Tabs */
.status-tabs {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
  scrollbar-width: none;
}

.status-tabs::-webkit-scrollbar {
  display: none;
}

.status-tab {
  position: relative;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 2px 10px;
  white-space: nowrap;
  cursor: pointer;
}

.status-tab.active {
  color: var(--coral);
}

.status-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2.5px;
  border-radius: 99px;
  background: var(--coral);
}

/* ==================== MODERN AIRY LEAD CARDS ==================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 14px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 18px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.16s, box-shadow 0.16s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(24, 24, 34, 0.075);
}

/* Row 1: Subtle brand/time eyebrow + clean pastel status pill */
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.card-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d1d5db;
  flex-shrink: 0;
}

.card.status-interested .status-dot { background: var(--green); }
.card.status-followup .status-dot { background: var(--amber); }
.card.status-no_answer .status-dot { background: #6366f1; }
.card.status-not_interested .status-dot { background: var(--danger); }

.status-pill-wrap {
  display: inline-flex;
  align-items: center;
}

.status-pill-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 26px 5px 12px;
  border-radius: 999px;
  border: none;
  background-color: var(--surface-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23555863' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  color: #555863;
  cursor: pointer;
  outline: none;
}

.card.status-interested .status-pill-select {
  background-color: var(--lime-soft);
  color: #365c11;
}

.card.status-followup .status-pill-select {
  background-color: var(--amber-soft);
  color: #9a4a09;
}

.card.status-no_answer .status-pill-select {
  background-color: #eceeff;
  color: #4338ca;
}

.card.status-not_interested .status-pill-select {
  background-color: #ffe6ea;
  color: #be123c;
}

/* Row 2: Clean bold title + soft pill tags */
.card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-title {
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--text);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.soft-tag {
  font-size: 0.73rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f5f5f7;
  color: #60636e;
}

.soft-tag.loc-tag {
  background: var(--sky-soft);
  color: #175473;
}

.card-address {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Row 3: Sleek Phone & Call Row (no boxed gray container) */
.card-call-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid #f3f1ee;
}

.phone-group {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.phone-main-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.phone-main {
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}

.copy-inline-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.copy-inline-btn:hover {
  background: var(--surface-soft);
  color: var(--text);
}

.copy-inline-btn svg {
  width: 14px;
  height: 14px;
}

.phone-alt {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--coral);
  text-decoration: none;
}

.phone-alt:hover {
  text-decoration: underline;
}

.call-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--dark);
  color: #fff;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 5px 15px 5px 6px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(31, 32, 36, 0.18);
  transition: transform 0.14s, background 0.15s;
  flex-shrink: 0;
}

.call-cta-btn:hover {
  background: #2f3137;
}

.call-cta-btn:active {
  transform: scale(0.96);
}

.call-cta-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--dark);
  display: grid;
  place-items: center;
}

.call-cta-icon svg {
  width: 14px;
  height: 14px;
}

/* Row 4: Seamless Minimalist Note Bar (No heavy borders, no resize handle) */
.note-pill {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #f7f6f3;
  border-radius: 16px;
  padding: 9px 12px;
  transition: background 0.15s, box-shadow 0.15s;
}

.note-pill:focus-within {
  background: #fff;
  box-shadow: 0 0 0 1.5px var(--coral);
}

.note-icon {
  width: 15px;
  height: 15px;
  color: var(--muted);
  margin-top: 3px;
  flex-shrink: 0;
}

.note-pill:focus-within .note-icon {
  color: var(--coral);
}

.note-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text);
  resize: none;
  outline: none;
  min-height: 22px;
  max-height: 120px;
  overflow-y: auto;
}

.note-input::placeholder {
  color: #a0a2ac;
}

.note-right-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.save-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--green);
  opacity: 0;
  transition: opacity 0.2s;
  margin-top: 2px;
}

.save-badge.visible {
  opacity: 1;
}

.delete-custom-btn {
  background: none;
  border: none;
  color: var(--danger);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 2px;
}

/* Empty State */
.empty-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 36px 20px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.empty-emoji {
  font-size: 2rem;
  margin-bottom: 8px;
}

.empty-card p {
  color: var(--muted);
  margin-bottom: 14px;
  font-size: 0.9rem;
}

/* ==================== DASHBOARD VIEW ==================== */
.page-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.page-title-row h1 {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pill-tag {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}

.soft-lime {
  background: var(--lime-soft);
  color: #3b5916;
}

.dash-bento-top {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.bento-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.bento-action {
  border: 1px solid transparent;
  width: 100%;
  text-align: left;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.bento-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(24, 24, 34, 0.08);
  border-color: rgba(242, 101, 34, 0.25);
}

.bento-action:active {
  transform: scale(0.98);
}

.bento-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.tile-arrow {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.bento-action:hover .tile-arrow {
  background: var(--dark);
  color: #fff;
}

.bento-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.mini-pill {
  font-size: 0.74rem;
  font-weight: 700;
  background: var(--coral-soft);
  color: var(--coral);
  padding: 3px 9px;
  border-radius: 999px;
}

.gauge-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.gauge-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-top: 6px;
}

.gauge-svg {
  width: 100%;
  max-width: 210px;
  height: auto;
}

.gauge-center {
  position: absolute;
  bottom: 6px;
  text-align: center;
}

.gauge-center strong {
  display: block;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.gauge-center span {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--muted);
}

.bento-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mini-bento {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.bento-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.bento-icon-circle svg {
  width: 18px;
  height: 18px;
}

.coral-bg { background: var(--coral); color: #fff; }
.lime-bg { background: var(--lime); color: #24360c; }
.sky-bg { background: var(--sky); color: #123c52; }
.amber-bg { background: var(--amber-soft); color: var(--amber); }

.mini-bento-val {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.15;
  margin-top: 4px;
}

.mini-bento-lbl {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}

.dash-bento-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.stat-tile-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.stat-tag {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
}

.stat-tile-num {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.1;
}

.stat-tile-sub {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2px;
}

/* Sky-Blue Activity Card */
.sky-activity-card {
  background: linear-gradient(160deg, #b5dced 0%, #99cde4 100%);
  border-radius: var(--radius-xl);
  padding: 18px;
  color: var(--dark);
  box-shadow: 0 10px 26px rgba(132, 188, 214, 0.25);
}

.sky-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}

.sky-card-head h3 {
  font-size: 1rem;
  font-weight: 800;
}

.sky-card-head p {
  font-size: 0.76rem;
  opacity: 0.75;
}

.dark-pill {
  background: var(--dark);
  color: #fff;
  border: none;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding-top: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.bar-chart::-webkit-scrollbar {
  display: none;
}

.bar-col {
  flex: 1 0 54px;
  max-width: 78px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 4px 2px;
  border-radius: 12px;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.bar-col:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.bar-val {
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.74);
  padding: 1px 7px;
  border-radius: 99px;
}

.bar-track {
  width: 14px;
  height: 76px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.bar-fill {
  width: 100%;
  border-radius: 99px;
  background: var(--dark);
  transition: height 0.3s ease;
}

.bar-lbl {
  font-size: 0.7rem;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* ==================== BACKUP / SETTINGS VIEW ==================== */
.settings-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.settings-row {
  width: 100%;
  background: var(--surface);
  border: 1px solid rgba(239, 236, 232, 0.8);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  box-shadow: var(--shadow-soft);
  transition: transform 0.12s;
}

.settings-row:active {
  transform: scale(0.99);
}

.settings-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.settings-left strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.settings-left span {
  display: block;
  font-size: 0.76rem;
  color: var(--muted);
}

.chevron {
  font-size: 1.45rem;
  color: var(--muted);
  line-height: 1;
}

.info-note-card {
  background: var(--coral-soft);
  color: #7c2d12;
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  font-size: 0.82rem;
}

/* ==================== FLOATING DARK BOTTOM DOCK ==================== */
.bottom-dock {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 28px);
  max-width: 420px;
  background: var(--dark);
  border-radius: 999px;
  padding: 7px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 14px 34px rgba(20, 21, 26, 0.28);
  z-index: 40;
}

.dock-btn {
  background: none;
  border: none;
  color: #a6aab5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 46px;
  padding: 0 14px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  transition: background 0.18s, color 0.18s;
}

.dock-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.dock-btn span {
  display: none;
}

.dock-btn.active {
  background: var(--sky);
  color: var(--dark);
  padding: 0 18px;
}

.dock-btn.active span {
  display: inline;
}

.dock-add {
  background: var(--coral);
  color: #fff;
  width: 46px;
  padding: 0;
}

.dock-add:hover {
  opacity: 0.92;
}

/* Buttons & Modal */
.pill-btn {
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.pill-btn.coral { background: var(--coral); color: #fff; }
.pill-btn.dark { background: var(--dark); color: #fff; }
.pill-btn.light { background: var(--surface-soft); color: var(--text); }
.pill-btn.light-danger { background: #ffe6ea; color: var(--danger); padding: 7px 14px; font-size: 0.8rem; }
.small-pill { padding: 7px 13px; font-size: 0.78rem; }

/* ==================== LOGIN SCREEN ==================== */
.auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.auth-screen[hidden] {
  display: none;
}

.auth-card {
  width: 100%;
  max-width: 390px;
  background: var(--surface);
  border-radius: 28px;
  padding: 28px 24px;
  box-shadow: 0 18px 48px rgba(24, 24, 34, 0.08);
  text-align: center;
}

.auth-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--sky-soft);
  border: 2.5px solid var(--dark);
  color: var(--dark);
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
}

.auth-logo svg {
  width: 26px;
  height: 26px;
}

.auth-card h1 {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.auth-sub {
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 22px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
  text-align: left;
}

.auth-error {
  background: #ffe6ea;
  color: #be123c;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 9px 12px;
  border-radius: 12px;
}

.auth-submit {
  width: 100%;
  padding: 12px;
  margin-top: 4px;
  font-size: 0.94rem;
}

/* ==================== ACCOUNT & TEAM ==================== */
.profile-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 16px;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.profile-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ff7b3b, var(--coral));
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

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

.profile-info strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
}

.profile-info span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
}

.team-section {
  margin-bottom: 16px;
}

.team-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.team-row {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.team-row-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.team-mini-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--sky-soft);
  color: #165270;
  font-size: 0.84rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.team-row-left strong {
  display: block;
  font-size: 0.88rem;
}

.team-row-left span {
  display: block;
  font-size: 0.74rem;
  color: var(--muted);
}

.modal-select {
  width: 100%;
  font-family: inherit;
  font-size: 0.9rem;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fcfbf9;
  color: var(--text);
  outline: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
}

@media (min-width: 600px) {
  .modal {
    align-items: center;
  }
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 21, 26, 0.48);
  backdrop-filter: blur(3px);
}

.modal-box {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.24);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.modal-head h2 {
  font-size: 1.1rem;
  font-weight: 800;
}

.icon-close {
  background: var(--surface-soft);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.field label {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 4px;
}

.field input {
  width: 100%;
  font-family: inherit;
  font-size: 0.9rem;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fcfbf9;
  color: var(--text);
  outline: none;
}

.field input:focus {
  border-color: var(--coral);
  background: #fff;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 6px;
}

.toast {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
  z-index: 100;
}

@media (max-width: 560px) {
  .dash-bento-top {
    grid-template-columns: 1fr;
  }
  .bento-stack {
    flex-direction: row;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}
