/* ════════════════════════════════════════
   DESIGN TOKENS
════════════════════════════════════════ */
:root {
  --bg: #0d1117;
  --surface: #161b22;
  --surface2: #1c2330;
  --border: #30363d;
  --border2: #21262d;
  --muted: #484f58;
  --dim: #8b949e;
  --body: #c9d1d9;
  --bright: #e6edf3;
  --aqua: #39d0d8;
  --aqua-mid: #25a8af;
  --aqua-dim: rgba(57, 208, 216, 0.12);
  --aqua-glow: rgba(57, 208, 216, 0.25);
  --spark: #f78166;
  --spark-dim: rgba(247, 129, 102, 0.1);
  --gold: #e3b341;
  --gold-dim: rgba(227, 179, 65, 0.1);
  --green: #34d399;
  --green-dim: rgba(52, 211, 153, 0.1);
  --purple: #a78bfa;
  --purple-dim: rgba(167, 139, 250, 0.1);
}

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

body {
  font-family: "DM Sans", sans-serif;
  background: var(--bg);
  color: var(--body);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Noise grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ════════════════════════════════════════
   VIEW SHELLS
════════════════════════════════════════ */

#login-view,
#dashboard-view,
#profile-view,
#clients-view,
#client-details-view,
#history-view,
#photo-library-view,
#gifts-view,
#gift-details-view {
  display: none;
  position: relative;
  z-index: 1;
}

/* Login needs flex layout only when active */
#login-view.view-section--active {
  display: flex;
}

/* Normal page views use block only when active */
#dashboard-view.view-section--active,
#profile-view.view-section--active,
#clients-view.view-section--active,
#client-details-view.view-section--active,
#history-view.view-section--active,
#photo-library-view.view-section--active,
#gifts-view.view-section--active,
#gift-details-view.view-section--active {
  display: block;
}

#dashboard-view.visible,
#profile-view.visible,
#clients-view.visible,
#client-details-view.visible,
#history-view.visible,
#photo-library-view.visible,
#gifts-view.visible,
#gift-details-view.visible {
  animation: fadeInUp 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.view-section {
  max-width: 1200px;
  margin-inline: auto;
  padding: 15px 15px 100px;
}

/* ════════════════════════════════════════
   VIEW 1 — LOGIN
════════════════════════════════════════ */
#login-view {
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem;
}

#login-view::after {
  content: "";
  position: fixed;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(57, 208, 216, 0.07) 0%,
    transparent 70%
  );
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  pointer-events: none;
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: linear-gradient(135deg, var(--surface) 0%, #1a2030 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow:
    0 0 0 1px rgba(57, 208, 216, 0.05),
    0 24px 64px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
  animation: cardIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--aqua),
    var(--spark),
    transparent
  );
}

.brand-mark {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}
.brand-mark span {
  color: var(--aqua);
}

.field-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 0.4rem;
}

.field-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--body);
  padding: 0.75rem 1rem;
  font-family: "DM Sans", sans-serif;
  font-size: 0.9rem;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  outline: none;
}
.field-input::placeholder {
  color: var(--muted);
}
.field-input:focus {
  border-color: var(--aqua);
  box-shadow: 0 0 0 3px var(--aqua-dim);
}

.btn-signin {
  width: 100%;
  padding: 0.8rem;
  background: linear-gradient(135deg, var(--aqua), var(--aqua-mid));
  color: var(--bg);
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition:
    opacity 0.2s,
    transform 0.1s,
    box-shadow 0.2s;
  box-shadow: 0 4px 20px var(--aqua-glow);
}
.btn-signin:hover {
  opacity: 0.9;
  box-shadow: 0 6px 28px var(--aqua-glow);
}
.btn-signin:active {
  transform: scale(0.98);
}

.error-msg {
  font-size: 0.78rem;
  color: var(--spark);
  margin-top: 0.5rem;
  display: none;
}

/* ════════════════════════════════════════
   VIEW 2 — DASHBOARD
════════════════════════════════════════ */
.top-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-logo {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--body);
  margin-right: auto;
}
.nav-logo span {
  color: var(--aqua);
}

.nav-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--dim);
  text-decoration: none;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  transition:
    color 0.15s,
    background 0.15s;
  cursor: pointer;
}
.nav-link:hover,
.nav-link.active {
  color: var(--body);
  background: var(--border2);
}
.nav-link.active {
  color: var(--aqua);
}

.btn-logout {
  font-family: "Syne", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--spark);
  background: var(--spark-dim);
  border: 1px solid rgba(247, 129, 102, 0.2);
  border-radius: 6px;
  padding: 0.35rem 0.85rem;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.btn-logout:hover {
  background: rgba(247, 129, 102, 0.15);
  border-color: rgba(247, 129, 102, 0.4);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  gap: 1rem;
}

.section-title {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--body);
}
.section-subtitle {
  font-size: 0.78rem;
  color: var(--dim);
  margin-top: 0.15rem;
}

.badge-count {
  font-family: "Syne", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--aqua-dim);
  color: var(--aqua);
  border: 1px solid rgba(57, 208, 216, 0.2);
  border-radius: 20px;
  padding: 0.2rem 0.65rem;
}

/* Desktop table */
.meetings-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

table.meetings-table {
  width: 100%;
  border-collapse: collapse;
}
table.meetings-table thead {
  background: var(--border2);
}
table.meetings-table th {
  font-family: "Syne", sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
table.meetings-table td {
  padding: 1rem;
  font-size: 0.85rem;
  color: var(--body);
  border-bottom: 1px solid var(--border2);
  vertical-align: middle;
}
table.meetings-table tbody tr:last-child td {
  border-bottom: none;
}
table.meetings-table tbody tr {
  transition: background 0.15s;
}
table.meetings-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.company-link {
  font-weight: 500;
  color: var(--body);
  cursor: pointer;
  transition: color 0.15s;
  text-decoration: none;
  display: block;
}
.company-link:hover {
  color: var(--aqua);
}

.contact-name {
  color: var(--dim);
  font-size: 0.8rem;
}
.address-cell {
  color: var(--dim);
  font-size: 0.8rem;
  max-width: 180px;
}
.datetime-cell {
  white-space: nowrap;
  font-size: 0.8rem;
}
.date-part {
  color: var(--body);
}
.time-part {
  color: var(--dim);
  font-size: 0.75rem;
}

/* Status dropdowns */
.status-select,
.card-status-select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 20px;
  font-family: "DM Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238B949E' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.55rem center;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.status-select {
  padding: 0.3rem 2rem 0.3rem 0.75rem;
  min-width: 155px;
}
.card-status-select {
  width: 100%;
  padding: 0.55rem 2rem 0.55rem 0.9rem;
  border-radius: 8px;
  font-size: 0.82rem;
}
.status-select:focus,
.card-status-select:focus {
  box-shadow: 0 0 0 3px var(--aqua-dim);
}

[data-status="confirmed"] {
  background-color: var(--aqua-dim);
  border-color: rgba(57, 208, 216, 0.3);
  color: var(--aqua);
}
[data-status="onroute"] {
  background-color: rgba(250, 204, 21, 0.1);
  border-color: rgba(250, 204, 21, 0.3);
  color: #facc15;
}
[data-status="arrived"] {
  background-color: var(--green-dim);
  border-color: rgba(52, 211, 153, 0.3);
  color: var(--green);
}
[data-status="returning"] {
  background-color: var(--purple-dim);
  border-color: rgba(167, 139, 250, 0.3);
  color: var(--purple);
}
[data-status="end"] {
  background-color: var(--spark-dim);
  border-color: rgba(247, 129, 102, 0.3);
  color: var(--spark);
}

/* Mobile cards */
.meetings-cards {
  display: none;
}

.meeting-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin-bottom: 0.75rem;
  position: relative;
  transition: border-color 0.2s;
}
.meeting-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 0 3px 3px 0;
}
.meeting-card[data-status="confirmed"]::before {
  background: var(--aqua);
}
.meeting-card[data-status="onroute"]::before {
  background: #facc15;
}
.meeting-card[data-status="arrived"]::before {
  background: var(--green);
}
.meeting-card[data-status="returning"]::before {
  background: var(--purple);
}
.meeting-card[data-status="end"]::before {
  background: var(--spark);
}

.card-company {
  font-family: "Syne", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--body);
  margin-bottom: 0.1rem;
  padding-left: 0.6rem;
  cursor: pointer;
  transition: color 0.15s;
}
.card-company:hover {
  color: var(--aqua);
}

.card-contact {
  font-size: 0.8rem;
  color: var(--dim);
  padding-left: 0.6rem;
  margin-bottom: 0.75rem;
}
.card-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
  padding-left: 0.6rem;
  margin-bottom: 0.9rem;
}
.card-meta-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
.card-meta-value {
  font-size: 0.8rem;
  color: var(--body);
}
.card-status-wrap {
  padding-left: 0.6rem;
}

@media (max-width: 767px) {
  .meetings-table-wrap {
    display: none;
  }
  .meetings-cards {
    display: block;
  }
}

/* FAB */
.fab {
  position: fixed;
  bottom: 1.75rem;
  right: 1.5rem;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: linear-gradient(135deg, var(--aqua), var(--aqua-mid));
  color: var(--bg);
  border: none;
  border-radius: 50px;
  padding: 0.8rem 1.35rem 0.8rem 1.1rem;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow:
    0 4px 24px rgba(57, 208, 216, 0.35),
    0 2px 8px rgba(0, 0, 0, 0.4);
  transition:
    transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.2s;
}
.fab:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    0 8px 32px rgba(57, 208, 216, 0.45),
    0 4px 12px rgba(0, 0, 0, 0.4);
}
.fab:active {
  transform: scale(0.96);
}
@media (max-width: 420px) {
  .fab-label {
    display: none;
  }
  .fab {
    padding: 0.9rem;
    border-radius: 50%;
  }
}

/* ════════════════════════════════════════
   MODAL — NEW MEETING
════════════════════════════════════════ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: flex-end;
  justify-content: center;
}
.modal-overlay.open {
  display: flex;
  animation: overlayIn 0.25s ease both;
}

@keyframes overlayIn {
  from {
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
  }
  to {
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
  }
}
@keyframes overlayOut {
  from {
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
  }
  to {
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
  }
}

.modal-sheet {
  background: var(--surface);
  border: 1px solid var(--border);
  width: 100%;
  max-width: 560px;
  border-radius: 20px 20px 0 0;
  box-shadow:
    0 -8px 40px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(57, 208, 216, 0.06);
  position: relative;
  animation: sheetUp 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
  max-height: 92vh;
  overflow-y: auto;
}

@keyframes sheetUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes sheetDown {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(40px);
    opacity: 0;
  }
}

@media (min-width: 600px) {
  .modal-overlay {
    align-items: center;
  }
  .modal-sheet {
    border-radius: 16px;
    max-height: 88vh;
    animation: sheetScale 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  @keyframes sheetScale {
    from {
      transform: scale(0.95) translateY(8px);
      opacity: 0;
    }
    to {
      transform: scale(1) translateY(0);
      opacity: 1;
    }
  }
  .modal-sheet::before {
    display: none;
  }
  .modal-sheet::after {
    border-radius: 16px 16px 0 0;
  }
}

.modal-sheet::before {
  content: "";
  display: block;
  width: 36px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 0.9rem auto 0;
}
.modal-sheet::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(
    90deg,
    transparent,
    var(--aqua) 40%,
    var(--spark) 70%,
    transparent
  );
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.25rem 1.5rem 1rem;
}
.modal-title {
  font-family: "Syne", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--body);
  line-height: 1.2;
}
.modal-subtitle {
  font-size: 0.75rem;
  color: var(--dim);
  margin-top: 0.2rem;
}

.modal-close-btn {
  background: var(--border2);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dim);
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
  flex-shrink: 0;
  margin-left: 1rem;
}
.modal-close-btn:hover {
  background: var(--border);
  color: var(--body);
}

.modal-divider {
  height: 1px;
  background: var(--border2);
  margin: 0 1.5rem;
}
.modal-body {
  padding: 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.modal-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 0.45rem;
}

.client-row {
  display: flex;
  gap: 0.6rem;
  align-items: stretch;
}
.client-select-wrap {
  flex: 1;
  position: relative;
}

.modal-select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--body);
  padding: 0.72rem 2.2rem 0.72rem 0.9rem;
  font-family: "DM Sans", sans-serif;
  font-size: 0.88rem;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.modal-select:focus {
  border-color: var(--aqua);
  box-shadow: 0 0 0 3px var(--aqua-dim);
}
.modal-select.error-ring {
  border-color: var(--spark);
  box-shadow: 0 0 0 3px var(--spark-dim);
}

.select-chevron {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.btn-add-client {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--aqua-dim);
  border: 1px solid rgba(57, 208, 216, 0.2);
  border-radius: 8px;
  color: var(--aqua);
  font-family: "Syne", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0 0.9rem;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.btn-add-client:hover {
  background: rgba(57, 208, 216, 0.2);
  border-color: rgba(57, 208, 216, 0.4);
}

.modal-row-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}
@media (max-width: 440px) {
  .modal-row-two {
    grid-template-columns: 1fr;
  }
}

.readonly-field-wrap,
.datetime-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.readonly-icon {
  position: absolute;
  left: 0.85rem;
  color: var(--muted);
  pointer-events: none;
  flex-shrink: 0;
}

.modal-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--body);
  padding: 0.72rem 0.9rem 0.72rem 2.35rem;
  font-family: "DM Sans", sans-serif;
  font-size: 0.88rem;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.readonly-input {
  color: var(--dim);
  cursor: default;
}
.readonly-input::placeholder {
  color: var(--muted);
  font-style: italic;
  font-size: 0.8rem;
}
.readonly-input.filled {
  color: var(--body);
}
.datetime-input {
  color-scheme: dark;
  cursor: pointer;
}
.datetime-input:focus {
  border-color: var(--aqua);
  box-shadow: 0 0 0 3px var(--aqua-dim);
}
.datetime-input.error-ring {
  border-color: var(--spark);
  box-shadow: 0 0 0 3px var(--spark-dim);
}

.modal-field-error {
  font-size: 0.72rem;
  color: var(--spark);
  margin-top: 0.4rem;
  display: none;
  align-items: center;
  gap: 0.3rem;
}
.modal-field-error::before {
  content: "⚠";
  font-size: 0.65rem;
}
.modal-field-error.visible {
  display: flex;
}

.modal-footer {
  display: flex;
  gap: 0.75rem;
  padding: 0 1.5rem 1.5rem;
  margin-top: 0.25rem;
}

.btn-cancel {
  flex: 1;
  padding: 0.8rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--dim);
  font-family: "DM Sans", sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}
.btn-cancel:hover {
  background: var(--border2);
  color: var(--body);
  border-color: var(--muted);
}

.btn-confirm {
  flex: 2;
  padding: 0.8rem 1.25rem;
  background: linear-gradient(135deg, var(--aqua), var(--aqua-mid));
  color: var(--bg);
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: 0 4px 16px var(--aqua-dim);
  transition:
    opacity 0.2s,
    transform 0.1s,
    background 0.2s;
}
.btn-confirm:hover:not(:disabled) {
  opacity: 0.9;
}
.btn-confirm:active:not(:disabled) {
  transform: scale(0.98);
}
.btn-confirm:disabled,
.btn-confirm.submitting {
  background: var(--border2);
  color: var(--muted);
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1;
  border: 1px solid var(--border);
}
.btn-confirm.success {
  background: linear-gradient(135deg, var(--green), #059669);
  color: var(--bg);
  box-shadow: 0 4px 16px rgba(52, 211, 153, 0.3);
}

.confirm-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid var(--muted);
  border-top-color: var(--dim);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.btn-confirm.submitting .confirm-label {
  opacity: 0.5;
}
.btn-confirm.submitting .confirm-spinner {
  display: block;
}

/* ════════════════════════════════════════
   VIEW 3 — CLIENT PROFILE
════════════════════════════════════════ */
.profile-page-wrap {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  padding-bottom: 3rem;
}

.back-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.1rem 0.75rem;
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(13, 17, 23, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border2);
}
.back-btn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--aqua);
  font-family: "DM Sans", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0;
  transition: opacity 0.15s;
}
.back-btn:hover {
  opacity: 0.75;
}
.nav-actions {
  display: flex;
  gap: 0.5rem;
}
.icon-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--dim);
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
}
.icon-btn:hover {
  background: var(--border2);
  color: var(--body);
}

/* Hero */
.hero {
  padding: 1.4rem 1.1rem 0;
  animation: fadeUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-inner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.avatar {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1a2f3a 0%, #0d2030 100%);
  border: 1px solid rgba(57, 208, 216, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Syne", sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--aqua);
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(57, 208, 216, 0.06);
  letter-spacing: -0.03em;
}
.hero-text {
  flex: 1;
  min-width: 0;
}
.hero-company {
  font-family: "Syne", sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--bright);
  letter-spacing: -0.02em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-contact {
  font-size: 0.85rem;
  color: var(--dim);
  margin-top: 0.2rem;
}
.hero-badges {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.65rem;
  flex-wrap: wrap;
}
.hero-badge {
  font-family: "Syne", sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.22rem 0.6rem;
  border-radius: 20px;
  border: 1px solid;
}
.badge-active {
  color: var(--green);
  border-color: rgba(52, 211, 153, 0.3);
  background: var(--green-dim);
}
.badge-highval {
  color: var(--gold);
  border-color: rgba(227, 179, 65, 0.3);
  background: var(--gold-dim);
}

/* Section cards */
.section-card {
  margin: 1rem 1.1rem 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.section-card:nth-child(1) {
  animation: fadeUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}
.section-card:nth-child(2) {
  animation: fadeUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both;
}
.section-card:nth-child(3) {
  animation: fadeUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}
.section-card:nth-child(4) {
  animation: fadeUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.1rem 0.7rem;
  border-bottom: 1px solid var(--border2);
}
.section-label {
  font-family: "Syne", sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.section-label svg {
  color: var(--aqua);
  opacity: 0.7;
}

/* Detail list */
.detail-list {
  padding: 0.5rem 0;
}
.detail-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 1.1rem;
  transition: background 0.12s;
}
.detail-row:active {
  background: var(--border2);
}
.detail-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.05rem;
}
.di-aqua {
  background: var(--aqua-dim);
  color: var(--aqua);
}
.di-gold {
  background: var(--gold-dim);
  color: var(--gold);
}
.di-spark {
  background: var(--spark-dim);
  color: var(--spark);
}
.di-green {
  background: var(--green-dim);
  color: var(--green);
}
.di-dim {
  background: var(--border2);
  color: var(--dim);
}
.detail-content {
  flex: 1;
  min-width: 0;
}
.detail-key {
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.15rem;
}
.detail-val {
  font-size: 0.88rem;
  color: var(--body);
  word-break: break-word;
}
.detail-val.link {
  color: var(--aqua);
}
.detail-divider {
  height: 1px;
  background: var(--border2);
  margin: 0 1.1rem;
}

/* Namecard */
.namecard-body {
  padding: 1rem 1.1rem;
}
.namecard-preview {
  width: 100%;
  aspect-ratio: 1.75 / 1;
  border-radius: 10px;
  border: 1.5px dashed var(--border);
  background: var(--surface2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  overflow: hidden;
  position: relative;
  transition: border-color 0.2s;
  margin-bottom: 0.85rem;
}
.namecard-preview.has-image {
  border-style: solid;
  border-color: var(--border);
}
.namecard-placeholder-icon {
  width: 40px;
  height: 40px;
  background: var(--border2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
.namecard-placeholder-text {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
}
#namecard-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9px;
  display: none;
}

.namecard-actions {
  display: flex;
  gap: 0.6rem;
}
.btn-snap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--aqua), var(--aqua-mid));
  color: var(--bg);
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  border: none;
  border-radius: 9px;
  padding: 0.7rem 1rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 3px 14px var(--aqua-glow);
  transition:
    opacity 0.2s,
    transform 0.1s;
}
.btn-snap:active {
  transform: scale(0.97);
}
.btn-snap input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  font-size: 100px;
}

.btn-delete-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--spark-dim);
  border: 1px solid rgba(247, 129, 102, 0.2);
  border-radius: 9px;
  color: var(--spark);
  font-family: "Syne", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.7rem 1rem;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.btn-delete-photo:hover {
  background: rgba(247, 129, 102, 0.16);
  border-color: rgba(247, 129, 102, 0.38);
}
.btn-delete-photo:disabled {
  opacity: 0.35;
  cursor: default;
}

/* Tags */
.tags-body {
  padding: 0.85rem 1.1rem 1rem;
}
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
  min-height: 32px;
}
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.3rem 0.65rem 0.3rem 0.75rem;
  border-radius: 20px;
  border: 1px solid;
  animation: tagIn 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes tagIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.tag-pill:nth-child(4n + 1) {
  color: var(--aqua);
  border-color: rgba(57, 208, 216, 0.28);
  background: var(--aqua-dim);
}
.tag-pill:nth-child(4n + 2) {
  color: var(--gold);
  border-color: rgba(227, 179, 65, 0.28);
  background: var(--gold-dim);
}
.tag-pill:nth-child(4n + 3) {
  color: var(--green);
  border-color: rgba(52, 211, 153, 0.28);
  background: var(--green-dim);
}
.tag-pill:nth-child(4n + 0) {
  color: var(--spark);
  border-color: rgba(247, 129, 102, 0.28);
  background: var(--spark-dim);
}
.tag-remove {
  background: none;
  border: none;
  color: inherit;
  opacity: 0.5;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  font-size: 1rem;
  display: flex;
  align-items: center;
  transition: opacity 0.15s;
}
.tag-remove:hover {
  opacity: 1;
}
.tag-add-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.tag-input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--body);
  font-family: "DM Sans", sans-serif;
  font-size: 0.85rem;
  padding: 0.6rem 0.85rem;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.tag-input::placeholder {
  color: var(--muted);
}
.tag-input:focus {
  border-color: var(--aqua);
  box-shadow: 0 0 0 3px var(--aqua-dim);
}
.btn-tag-add {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--aqua-dim);
  border: 1px solid rgba(57, 208, 216, 0.25);
  color: var(--aqua);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 0.15s,
    transform 0.1s;
  flex-shrink: 0;
}
.btn-tag-add:hover {
  background: rgba(57, 208, 216, 0.2);
}
.btn-tag-add:active {
  transform: scale(0.92);
}

/* Notes */
.notes-body {
  padding: 1rem 1.1rem;
}
.note-compose {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.1rem;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.note-compose:focus-within {
  border-color: rgba(57, 208, 216, 0.4);
  box-shadow: 0 0 0 3px var(--aqua-dim);
}
.note-textarea {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--body);
  font-family: "DM Sans", sans-serif;
  font-size: 0.88rem;
  line-height: 1.6;
  padding: 0.85rem 1rem 0.5rem;
  resize: none;
  min-height: 90px;
  outline: none;
}
.note-textarea::placeholder {
  color: var(--muted);
}
.note-compose-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.85rem 0.6rem;
  border-top: 1px solid var(--border2);
}
.note-char-count {
  font-size: 0.7rem;
  color: var(--muted);
}
.note-char-count.near-limit {
  color: var(--gold);
}
.note-char-count.at-limit {
  color: var(--spark);
}
.btn-save-note {
  background: linear-gradient(135deg, var(--aqua), var(--aqua-mid));
  color: var(--bg);
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  border: none;
  border-radius: 7px;
  padding: 0.4rem 1rem;
  cursor: pointer;
  transition:
    opacity 0.15s,
    transform 0.1s;
  box-shadow: 0 2px 10px var(--aqua-glow);
}
.btn-save-note:hover {
  opacity: 0.88;
}
.btn-save-note:active {
  transform: scale(0.96);
}
.btn-save-note:disabled {
  background: var(--border2);
  color: var(--muted);
  box-shadow: none;
  cursor: default;
  opacity: 1;
}

.notes-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}
.notes-count-label {
  font-family: "Syne", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.filter-select-wrap {
  position: relative;
}
.filter-select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--body);
  font-family: "DM Sans", sans-serif;
  font-size: 0.78rem;
  padding: 0.38rem 2rem 0.38rem 0.75rem;
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s;
}
.filter-select:focus {
  border-color: var(--aqua);
}
.filter-chevron {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--dim);
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 1.5rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    var(--aqua) 0%,
    var(--border) 40%,
    transparent 100%
  );
  opacity: 0.4;
}
.timeline-item {
  position: relative;
  margin-bottom: 1.1rem;
  animation: fadeUp 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.5rem;
  top: 0.45rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--aqua);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px rgba(57, 208, 216, 0.2);
}
.timeline-item.older::before {
  background: var(--border);
  box-shadow: none;
}
.timeline-note-card {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: 0.8rem 0.95rem;
  transition: border-color 0.15s;
}
.timeline-note-card:hover {
  border-color: var(--border);
}
.timeline-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.45rem;
  gap: 0.5rem;
}
.timeline-date {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.timeline-actions {
  display: flex;
  gap: 0.3rem;
}
.timeline-action-btn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0.2rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  transition:
    color 0.15s,
    background 0.15s;
}
.timeline-action-btn:hover {
  color: var(--body);
  background: var(--border);
}
.timeline-action-btn.del:hover {
  color: var(--spark);
}
.timeline-text {
  font-size: 0.86rem;
  color: var(--body);
  line-height: 1.65;
}
.timeline-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-style: italic;
}
.timeline-edit-area {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--aqua);
  border-radius: 7px;
  color: var(--body);
  font-family: "DM Sans", sans-serif;
  font-size: 0.86rem;
  line-height: 1.6;
  padding: 0.55rem 0.75rem;
  resize: none;
  outline: none;
  box-shadow: 0 0 0 3px var(--aqua-dim);
  margin-top: 0.4rem;
  display: none;
}
.timeline-edit-actions {
  display: none;
  gap: 0.4rem;
  margin-top: 0.45rem;
}
.btn-edit-save,
.btn-edit-cancel {
  font-family: "Syne", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 6px;
  padding: 0.3rem 0.75rem;
  cursor: pointer;
  border: 1px solid;
  transition: background 0.15s;
}
.btn-edit-save {
  background: var(--aqua-dim);
  border-color: rgba(57, 208, 216, 0.3);
  color: var(--aqua);
}
.btn-edit-cancel {
  background: transparent;
  border-color: var(--border);
  color: var(--dim);
}
.btn-edit-save:hover {
  background: rgba(57, 208, 216, 0.2);
}
.btn-edit-cancel:hover {
  background: var(--border2);
}

/* ════════════════════════════════════════
   GEO TOAST
════════════════════════════════════════ */
.geo-toast {
  position: fixed;
  bottom: 5.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--surface);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 10px;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  color: var(--green);
  z-index: 200;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.25s,
    transform 0.25s;
}
.geo-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ════════════════════════════════════════
   SHARED UTILITIES
════════════════════════════════════════ */
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20%,
  60% {
    transform: translateX(-6px);
  }
  40%,
  80% {
    transform: translateX(6px);
  }
}
.shake {
  animation: shake 0.4s ease;
}

::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.fab-container {
  position: fixed;
  bottom: 40px;
  right: 40px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-end;
  z-index: 9999;
}
.fab-container--hidden {
  display: none;
}
.fab-action-btn {
  background-color: #00f2fe;
  color: #000;
  border: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
  opacity: 0.3; /* Almost transparent */
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}
.fab-action-btn:hover {
  opacity: 1; /* Full solid on hover */
  transform: scale(1.02);
}
.fab-icon-sm {
  font-size: 20px;
}
.fab-icon-lg {
  font-size: 24px;
  line-height: 1;
}

/* Mobile overrides */
@media (max-width: 768px) {
  .fab-container {
    bottom: 20px;
    right: 20px;
    gap: 10px;
  }
  .fab-action-btn {
    opacity: 1; /* Always solid on mobile */
    padding: 8px 16px;
    font-size: 0.85rem;
  }
  .fab-icon-sm {
    font-size: 16px;
  }
  .fab-icon-lg {
    font-size: 18px;
  }
}

/* ════════════════════════════════════════
   RESPONSIVE LAYOUT
   - Scoped to viewport media queries only.
   - No desktop/default layout overrides here.
════════════════════════════════════════ */

@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
  }

  .top-nav {
    position: static;
    min-height: 100px;
    padding: 15px 20px 10px;
  }

  .nav-inner {
    height: auto;
    flex-wrap: wrap;
    gap: 15px 0;
    padding: 0;
  }

  .nav-inner > div:nth-child(1),
  .nav-inner > div:nth-child(2) {
    width: 50%;
  }

  .nav-inner > div:nth-child(2) {
    order: 1;
    text-align: left;
  }

  .nav-inner > div:nth-child(1) {
    order: 2;
    text-align: right;
  }

  .nav-inner > div:nth-child(3) {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 10px;
    padding-bottom: 5px;
  }

  .btn-logout {
    margin-left: auto;
    margin-right: 0;
    margin-bottom: 0;
  }

  .nav-link {
    height: auto;
    margin: 0;
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    font-size: 0.85rem;
    line-height: 1;
  }

  .nav-link.active {
    background: rgba(0, 242, 254, 0.15);
    border: 1px solid rgba(0, 242, 254, 0.4);
  }

  .nav-link::before,
  .nav-link::after {
    display: none;
  }

  .view-section {
    padding: 15px 15px 100px;
  }

  .meetings-table-wrap {
    display: none;
  }

  .meetings-cards {
    display: block;
    width: 100%;
  }

  .meeting-card {
    width: 100%;
    margin-bottom: 15px;
  }

  .modal-sheet,
  .modal-content {
    width: 95%;
    max-width: 95%;
    margin: 10px auto;
  }

  .modal-content {
    padding: 20px;
  }

  .modal-row-two {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .card-meta-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .datetime-input,
  .modal-select,
  .field-input,
  input[type="text"],
  input[type="email"],
  input[type="number"],
  input[type="date"] {
    width: 100%;
    max-width: 100%;
  }

  .page-header,
  .gift-details__header {
    flex-wrap: wrap;
    gap: 10px;
  }
}

/* ════════════════════════════════════════
   UTILITIES
════════════════════════════════════════ */
.u-hidden {
  display: none;
}
.u-flex-1 {
  flex: 1;
}
.u-mb-20 {
  margin-bottom: 20px;
}
.u-mr-8 {
  margin-right: 8px;
}
.u-text-black {
  color: #000;
}
.u-flex-gap-10 {
  display: flex;
  gap: 10px;
}
.u-flex-end-gap-10 {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.u-divider-line {
  height: 1px;
  background: #333;
  margin: 5px 0;
}
.section-card--interactive {
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: 0.2s;
}
.section-card--interactive:hover {
  border-color: #00f2fe;
}

/* ════════════════════════════════════════
   EXTRACTED BEM-STYLE CLASSES FROM FORMER INLINE STYLES
════════════════════════════════════════ */
.login-card__brand-wrap {
  text-align: center;
  margin-bottom: 2rem;
}
.login-card__field-group {
  margin-bottom: 1.1rem;
}
.login-card__field-group--password {
  margin-bottom: 1.5rem;
}
.top-nav__inner--split {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.btn-logout--flush {
  margin: 0;
}
.top-nav__logo--center-action {
  flex: 1;
  text-align: center;
  cursor: pointer;
}
.top-nav__links {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  align-items: center;
}
.meetings-table__actions-col {
  width: 140px;
}
.view-section--full {
  display: none;
  padding: 20px;
  font-family: "Work Sans", sans-serif;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 15px;
}
.page-header__title {
  margin: 0;
  font-size: 1.8rem;
  color: #00f2fe;
  margin-bottom: 8px;
}
.page-header__back-button {
  background: transparent;
  border: none;
  color: #aaa;
  cursor: pointer;
  padding: 0;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 5px;
}
.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.history-header {
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 15px;
}
.history-header__title {
  margin: 0;
  font-size: 1.8rem;
  color: #00f2fe;
}
.history-filter-cell {
  text-align: right;
  padding-right: 15px;
}
.history-filter-select {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid #444;
  padding: 6px 10px;
  border-radius: 6px;
  outline: none;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 500;
  font-family: "Work Sans", sans-serif;
}
.back-link-button {
  background: transparent;
  border: none;
  color: #aaa;
  cursor: pointer;
  margin-bottom: 20px;
  font-size: 1rem;
}
.gift-details__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.gift-details__title {
  margin: 0;
  font-size: 1.8rem;
  color: #fff;
}
.gift-summary-toggle {
  display: none;
  background: transparent;
  border: 1px solid #00f2fe;
  color: #00f2fe;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  font-size: 0.9rem;
  transition: 0.2s;
}
.btn-primary-small {
  background: #00f2fe;
  color: #000;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  font-size: 0.9rem;
}
.gifts-table__actions-col {
  width: 50px;
}
.gift-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}
.gift-modal__content {
  background: #1a1a1a;
  padding: 30px;
  border-radius: 15px;
  width: 90%;
  max-width: 400px;
  border: 1px solid #333;
}
.gift-modal__title {
  margin: 0 0 20px 0;
  color: #00f2fe;
}
.gift-modal__input {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  background: #2a2a2a;
  border: 1px solid #444;
  color: #fff;
  border-radius: 5px;
  box-sizing: border-box;
}
.gift-modal__date-input {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  background: #2a2a2a;
  border: 1px solid #444;
  color: #fff;
  border-radius: 5px;
  box-sizing: border-box;
  color-scheme: dark;
}
.modal-button--secondary {
  padding: 10px 20px;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.modal-button--primary {
  padding: 10px 20px;
  background: #00f2fe;
  color: #000;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}
.client-details-view {
  display: none;
  padding: 20px;
  font-family: "Work Sans", sans-serif;
}
.client-details__summary {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}
.client-details__logo {
  width: 60px;
  height: 60px;
  background: #00f2fe;
  color: #000;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
}
.client-details__name {
  margin: 0;
  color: #fff;
  font-size: 1.8rem;
}
.client-details__subtitle {
  margin: 5px 0 0 0;
  color: #aaa;
  font-size: 0.9rem;
}
.status-badges {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}
.status-badge--active {
  background: rgba(0, 242, 254, 0.1);
  color: #00f2fe;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  border: 1px solid rgba(0, 242, 254, 0.3);
}
.status-badge--high-value {
  background: rgba(255, 170, 0, 0.1);
  color: #ffaa00;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  border: 1px solid rgba(255, 170, 0, 0.3);
}
.client-details__panel {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
}
.client-details__panel-title {
  color: #666;
  font-size: 0.85rem;
  letter-spacing: 1px;
  margin-top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 15px;
}
.detail-field__label {
  margin: 0;
  color: #666;
  font-size: 0.8rem;
}
.detail-field__value {
  margin: 5px 0 0 0;
  color: #fff;
}
.photo-library-view {
  display: none;
  background: #0a0a0a;
  min-height: 100vh;
  font-family: "Work Sans", sans-serif;
}
.photo-library__body {
  padding: 20px;
}
.photo-library__title {
  margin: 0 0 5px 0;
  color: #fff;
  font-size: 1.8rem;
}
.photo-library__subtitle {
  margin: 0 0 20px 0;
  color: #aaa;
  font-size: 0.9rem;
}
.photo-library__upload-button {
  width: 100%;
  justify-content: center;
  margin-bottom: 25px;
  font-size: 1rem;
  padding: 15px;
}
.photo-library__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 15px;
  width: 100%;
}
.profile-photo-card {
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: 0.2s;
}
.profile-photo-card__header {
  margin-bottom: 0;
  border-bottom: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.profile-photo-card__label {
  color: #00f2fe;
}
.profile-photo-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.profile-photo-card__count {
  font-size: 0.75rem;
  color: var(--dim);
  font-weight: bold;
}
.profile-tags__body {
  padding-bottom: 20px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
}
.section-heading-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}
.section-heading-label {
  font-size: 0.75rem;
  color: #888;
  font-weight: bold;
  letter-spacing: 1px;
}
.section-heading-count {
  font-size: 0.65rem;
  color: var(--dim);
}
.inline-control-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.color-input {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  background: transparent;
}
.delete-client-section {
  display: none;
  padding: 20px;
  text-align: center;
  margin-top: 20px;
  border-top: 1px dashed rgba(255, 68, 68, 0.3);
}
.delete-client-button {
  background: rgba(255, 68, 68, 0.1);
  border: 1px solid rgba(255, 68, 68, 0.3);
  color: #ff4444;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}
.icon--shrink {
  flex-shrink: 0;
}
.client-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.client-modal__content {
  background: #1a1a1a;
  padding: 30px;
  border-radius: 15px;
  width: 90%;
  max-width: 550px;
  border: 1px solid #333;
  max-height: 90vh;
  overflow-y: auto;
}
.client-modal__title {
  margin: 0;
  color: #00f2fe;
}
.modal-icon-button {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0;
}
.client-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.form-input {
  width: 100%;
  padding: 10px;
  background: #2a2a2a;
  border: 1px solid #444;
  color: #fff;
  border-radius: 5px;
  box-sizing: border-box;
}
.form-input--flex {
  flex: 1;
  padding: 10px;
  background: #2a2a2a;
  border: 1px solid #444;
  color: #fff;
  border-radius: 5px;
  box-sizing: border-box;
}
.form-label-muted {
  color: #aaa;
  font-size: 0.8rem;
  margin-bottom: 5px;
  display: block;
}
.form-helper-text {
  color: #aaa;
  font-size: 0.85rem;
}
.temp-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.tag-editor-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}
.tag-color-input {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  background: transparent;
}
.tag-add-button {
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid #00f2fe;
  color: #00f2fe;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}
.temp-tags-cloud {
  min-height: 20px;
}
.form-divider {
  height: 1px;
  background: #333;
  margin: 20px 0;
}
.dir-notes-modal__sheet {
  max-width: 500px;
  height: 80vh;
  display: flex;
  flex-direction: column;
}
.dir-notes-modal__tags-section {
  padding: 20px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}
.dir-notes-modal__tag-list {
  margin-bottom: 15px;
}
.dir-notes-modal__tag-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #444;
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  outline: none;
}
.dir-notes-modal__tag-add-button {
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid #00f2fe;
  color: #00f2fe;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}
.dir-notes-modal__notes-heading {
  padding: 20px 20px 0 20px;
}
.dir-notes-modal__list {
  flex: 1;
  overflow-y: auto;
  padding: 10px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.dir-notes-modal__composer {
  padding: 20px;
  display: flex;
  gap: 10px;
  background: rgba(0, 0, 0, 0.2);
}
.dir-notes-modal__input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #444;
  color: #fff;
  padding: 10px 15px;
  border-radius: 8px;
  outline: none;
}
.dir-notes-modal__save-button {
  background: #00f2fe;
  color: #000;
  border: none;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}
.delete-confirm-modal__content {
  background: #1a1a1a;
  padding: 30px;
  border-radius: 15px;
  width: 90%;
  max-width: 400px;
  border: 1px solid #333;
  text-align: center;
}
.delete-confirm-modal__title {
  margin: 0 0 20px 0;
  color: #fff;
  font-size: 1.5rem;
}
.delete-confirm-modal__actions {
  display: flex;
  justify-content: center;
  gap: 15px;
}
.delete-confirm-modal__delete-button {
  background: rgba(255, 68, 68, 0.1);
  border: 1px solid rgba(255, 68, 68, 0.3);
  color: #ff4444;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}
.delete-confirm-modal__cancel-button {
  background: #00f2fe;
  color: #000;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.lightbox__actions {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 15px;
  z-index: 10001;
}
.lightbox__rotate-button {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}
.lightbox__close-button {
  background: rgba(255, 68, 68, 0.15);
  border: 1px solid rgba(255, 68, 68, 0.3);
  color: #ff4444;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}
.lightbox__image {
  max-width: 95vw;
  max-height: 85vh;
  object-fit: contain;
  transition: transform 0.2s ease-in-out;
}

/* ════════════════════════════════════════
   STATE MODIFIERS FOR JS CLASS MANIPULATION
════════════════════════════════════════ */

.u-hidden {
  display: none;
}

#global-nav.u-hidden,
.fab-container.u-hidden,
.modal-overlay.u-hidden,
.app-toast.u-hidden {
  display: none;
}

#global-nav:not(.u-hidden) {
  display: block;
}

.modal-overlay.open,
.gift-modal.open,
.lightbox.open {
  display: flex;
}

.error-msg.visible,
.modal-field-error.visible {
  display: block;
}

.modal-field-error.visible {
  display: flex;
}

.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* ════════════════════════════════════════
   SEMANTIC CLASSES FOR DYNAMIC JS MARKUP
════════════════════════════════════════ */
.photo-library__error {
  color: var(--spark);
  font-size: 0.85rem;
  grid-column: 1 / -1;
}

.photo-library__delete-button {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(255, 68, 68, 0.9);
  color: #fff;
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.photo-library__item {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #000;
}

.photo-library__empty {
  color: #555;
  font-size: 0.85rem;
  grid-column: 1 / -1;
  text-align: center;
  padding: 30px 0;
}

.photo-library__loading {
  color: #555;
  font-size: 0.85rem;
  grid-column: 1 / -1;
}

.notes-list__error {
  color: var(--spark);
}

.note-card__timestamp {
  color: #555;
  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.note-card__text {
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 8px;
  padding-right: 20px;
}

.note-card__delete-action {
  position: absolute;
  top: 10px;
  right: 12px;
  color: var(--spark);
  font-size: 1.2rem;
  line-height: 1;
}

.note-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.timeline-empty {
  padding: 20px;
  text-align: center;
  color: var(--dim);
}

.tags-list__error {
  color: red;
}

.tag-pill__delete-action {
  margin-left: 6px;
  font-size: 1.1rem;
  line-height: 0.5;
}

.tags-list__muted {
  color: #555;
  font-size: 0.8rem;
}

.save-button__label {
  color: #00f2fe;
  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 1px;
}

.temp-photo__remove {
  position: absolute;
  top: 2px;
  right: 2px;
  background: rgba(255, 68, 68, 0.9);
  color: #fff;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  font-size: 0.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.temp-photo__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.temp-photo__item {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #444;
}

.dir-notes__error {
  color: red;
  text-align: center;
}

.dir-note__text {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 8px;
  word-wrap: break-word;
  padding-right: 20px;
}

.dir-note {
  background: rgba(0, 242, 254, 0.05);
  border-left: 3px solid #00f2fe;
  padding: 12px;
  border-radius: 4px;
}

.dir-note__delete-action {
  position: absolute;
  top: 10px;
  right: 12px;
  color: #ff4444;
  font-size: 1.2rem;
  line-height: 1;
}

.dir-notes__empty {
  color: #666;
  text-align: center;
  margin-top: 20px;
}

.dir-notes__loading {
  color: #aaa;
  text-align: center;
}

.gifts-table__error {
  text-align: center;
  color: red;
}

.gift-total-card__amount {
  color: #00f2fe;
  font-size: 1.5rem;
  font-weight: bold;
}

.gift-total-card__label {
  color: #aaa;
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 5px;
}

.gift-card__cost {
  color: #00f2fe;
  font-weight: bold;
}

.gift-card__job {
  color: var(--dim);
  font-size: 0.85rem;
  margin-bottom: 15px;
  font-weight: bold;
}

.icon-button--danger-small {
  background: rgba(255, 68, 68, 0.1);
  border: 1px solid rgba(255, 68, 68, 0.3);
  color: #ff4444;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gift-card__contact {
  color: #fff;
  font-size: 1.1rem;
  margin: 0;
}

.gift-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.gift-card {
  border-left: 3px solid #00f2fe;
  margin-bottom: 12px;
  background: rgba(0, 242, 254, 0.05);
  padding: 15px;
  border-radius: 8px;
}

.gifts-total-row__empty-cell {
  border-bottom: none;
}

.gifts-total-row__amount {
  color: #00f2fe;
  font-weight: bold;
  font-size: 1.1rem;
  white-space: nowrap;
}

.gifts-total-row__label {
  position: absolute;
  right: 100%;
  padding-right: 15px;
  color: #aaa;
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 1px;
  white-space: nowrap;
}

.gifts-total-row__content {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.gifts-total-row__cell {
  border-bottom: none;
  vertical-align: middle;
  padding: 15px 0;
}

.gifts-table__delete-button {
  background: rgba(255, 68, 68, 0.1);
  border: 1px solid rgba(255, 68, 68, 0.3);
  color: #ff4444;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  line-height: 1;
  transition: 0.2s;
}

.table-cell--actions {
  text-align: right;
  padding-right: 15px;
}

.gift-table__cost {
  color: #00f2fe;
  font-weight: bold;
}

.gift-table__job {
  color: var(--dim);
  font-size: 0.85rem;
}

.empty-state--gifts {
  text-align: center;
  color: #aaa;
  padding: 30px;
}

.loading-state--table {
  text-align: center;
  padding: 20px;
  color: #aaa;
}

.empty-state__title {
  margin: 0 0 5px 0;
  color: #aaa;
  font-size: 1.1rem;
}

.empty-state-card {
  grid-column: 1 / -1;
  text-align: center;
  padding: 50px 20px;
  color: #666;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed #444;
  border-radius: 12px;
}

.client-card__photo-button {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: bold;
  width: 100%;
  transition: 0.2s;
}

.client-card__notes-button {
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: #00f2fe;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: bold;
  width: 100%;
  transition: 0.2s;
}

.client-card__actions {
  margin-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.client-card__address {
  margin: 2px 0;
  font-size: 0.85rem;
  opacity: 0.6;
}

.client-card__contact {
  margin: 2px 0;
  font-size: 0.85rem;
  opacity: 0.8;
}

.client-card__title {
  margin: 0 0 5px 0;
  color: #00f2fe;
}

.client-card__main {
  cursor: pointer;
  flex: 1;
}

.client-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 15px;
  border-radius: 10px;
  border: 1px solid #444;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.client-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.empty-state__description {
  margin: 0;
  font-size: 0.85rem;
}

.empty-state__icon {
  margin: 0 auto 15px auto;
  opacity: 0.5;
}

.loading-state {
  color: #aaa;
  padding: 20px;
}

.notes-loading {
  color: #555;
  font-size: 0.8rem;
  font-style: italic;
  padding-top: 10px;
}

.tags-loading {
  color: #555;
  font-size: 0.8rem;
  font-style: italic;
}

.history-card__ended-time {
  color: var(--dim);
  font-weight: bold;
  font-size: 0.85rem;
}

.card-meta-item--wide {
  grid-column: span 2;
}

.history-card__meta-grid {
  margin-bottom: 15px;
}

.history-card__contact {
  margin-bottom: 10px;
}

.history-card__company {
  margin-bottom: 5px;
}

.history-table__notes-button {
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: #00f2fe;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: bold;
  transition: 0.2s;
}

.history-table__ended-time {
  color: var(--dim);
  font-size: 0.85rem;
  font-weight: bold;
}

.gps-link {
  color: #00f2fe;
  text-decoration: none;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 4px;
}

.gps-meta-label {
  color: #00f2fe;
}

.gps-meta {
  margin-top: 6px;
  font-size: 0.75rem;
}

.status-badge--cancelled-inline {
  color: #ff4444;
  font-size: 0.75rem;
  font-weight: bold;
  border: 1px solid rgba(255, 68, 68, 0.4);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
  display: inline-block;
}

.empty-history {
  text-align: center;
  color: #aaa;
  padding: 20px;
}

.card-company--flush {
  margin: 0;
}

.meeting-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.text-muted-small {
  color: #666;
  font-size: 0.8rem;
}

.meeting-card__cancel-button {
  background: rgba(255, 68, 68, 0.1);
  border: 1px solid #ff4444;
  color: #ff4444;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: bold;
}

.meeting-card__actions {
  display: flex;
  gap: 8px;
}

.meeting-table__delete-button {
  background: rgba(255, 68, 68, 0.1);
  border: 1px solid rgba(255, 68, 68, 0.3);
  color: #ff4444;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  line-height: 1;
  transition: 0.2s;
}

.meeting-table__cancel-button {
  background: rgba(255, 68, 68, 0.1);
  border: 1px solid #ff4444;
  color: #ff4444;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: bold;
  transition: 0.2s;
}

.meeting-table__actions {
  display: flex;
  gap: 5px;
  justify-content: flex-end;
}

.select-option--light {
  color: #000;
  background: #fff;
}
