/* EVEREST TRAVEL CRM — premium shell styles */

:root {
  --brand-yellow: #F5C518;
  --brand-blue: #0B4F8A;
  --brand-blue-deep: #06345c;
  --brand-blue-soft: #1a6bb0;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --surface-elevated: rgba(255, 255, 255, 0.88);
  --text: #0c1a28;
  --text-muted: #5a6d7e;
  --border: rgba(11, 79, 138, 0.12);
  --sidebar-w: 17.5rem;
  --sidebar-collapsed: 0;
  --radius: 1.1rem;
  --radius-sm: 0.7rem;
  --shadow: 0 10px 40px rgba(6, 52, 92, 0.08);
  --shadow-sm: 0 4px 18px rgba(6, 52, 92, 0.06);
  --ring: 0 0 0 3px rgba(245, 197, 24, 0.35);
  --success: #1f7a4d;
  --danger: #c62828;
  --warning: #e65100;
  --info: #0277bd;
}

[data-theme="dark"] {
  --surface: rgba(14, 28, 44, 0.72);
  --surface-solid: #0e1c2c;
  --surface-elevated: rgba(18, 36, 56, 0.9);
  --text: #e8f0f8;
  --text-muted: #8fa3b5;
  --border: rgba(232, 240, 248, 0.1);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 4px 18px rgba(0, 0, 0, 0.25);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.crm-body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at -10% -20%, rgba(11, 79, 138, 0.28), transparent 55%),
    radial-gradient(900px 500px at 110% 10%, rgba(245, 197, 24, 0.18), transparent 50%),
    radial-gradient(800px 700px at 50% 120%, rgba(11, 79, 138, 0.16), transparent 55%),
    linear-gradient(165deg, #e8f1fa 0%, #d5e6f5 42%, #f0f5fa 100%);
  background-attachment: fixed;
}

[data-theme="dark"] body.crm-body {
  background:
    radial-gradient(1100px 560px at -5% -15%, rgba(26, 107, 176, 0.35), transparent 55%),
    radial-gradient(800px 480px at 105% 5%, rgba(245, 197, 24, 0.12), transparent 50%),
    radial-gradient(700px 600px at 40% 110%, rgba(6, 52, 92, 0.55), transparent 55%),
    linear-gradient(165deg, #071018 0%, #0c1a28 45%, #0a1520 100%);
}

.font-ui {
  font-family: "Sora", system-ui, sans-serif;
}

a {
  color: var(--brand-blue);
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

[data-theme="dark"] a {
  color: #7eb6e8;
}

a:hover {
  opacity: 0.85;
}

/* Layout shell */
.crm-shell {
  display: flex;
  min-height: 100vh;
}

.crm-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: var(--sidebar-w);
  padding: 1.1rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  border-right: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transform: translateX(0);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] .crm-sidebar {
  background: rgba(8, 20, 34, 0.72);
}

.crm-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.65rem 0.9rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.35rem;
}

.crm-sidebar-brand img {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: cover;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  padding: 0;
}

.crm-sidebar-brand .brand-text {
  font-family: "Sora", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--brand-blue);
  line-height: 1.15;
}

[data-theme="dark"] .crm-sidebar-brand .brand-text {
  color: var(--brand-yellow);
}

.crm-sidebar-brand .brand-sub {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  font-weight: 500;
}

.crm-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.25rem 0.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.crm-nav a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.62rem 0.75rem;
  border-radius: 0.75rem;
  color: var(--text);
  font-family: "Sora", system-ui, sans-serif;
  font-size: 0.86rem;
  font-weight: 500;
  opacity: 0.88;
}

.crm-nav a:hover {
  background: rgba(11, 79, 138, 0.08);
  opacity: 1;
}

[data-theme="dark"] .crm-nav a:hover {
  background: rgba(245, 197, 24, 0.08);
}

.crm-nav a.is-active {
  background: linear-gradient(135deg, rgba(11, 79, 138, 0.14), rgba(245, 197, 24, 0.12));
  color: var(--brand-blue);
  opacity: 1;
  box-shadow: inset 0 0 0 1px rgba(11, 79, 138, 0.12);
}

[data-theme="dark"] .crm-nav a.is-active {
  color: var(--brand-yellow);
  box-shadow: inset 0 0 0 1px rgba(245, 197, 24, 0.18);
}

.crm-nav a .nav-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  opacity: 0.75;
}

.crm-nav-footer {
  padding: 0.5rem 0.25rem 0.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.crm-nav-footer a,
.crm-nav-footer button {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.62rem 0.75rem;
  border-radius: 0.75rem;
  color: var(--text);
  font-family: "Sora", system-ui, sans-serif;
  font-size: 0.86rem;
  font-weight: 500;
  opacity: 0.88;
  text-decoration: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.crm-nav-footer a:hover,
.crm-nav-footer button:hover {
  background: rgba(11, 79, 138, 0.08);
  opacity: 1;
}

.crm-nav-footer .nav-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  opacity: 0.75;
}

.crm-main {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.crm-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.35rem;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid var(--border);
}

[data-theme="dark"] .crm-topbar {
  background: rgba(8, 20, 34, 0.7);
}

.crm-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.7rem;
  border: 1px solid var(--border);
  background: var(--surface-elevated);
  color: var(--text);
  cursor: pointer;
}

.crm-search {
  flex: 1;
  max-width: 28rem;
  position: relative;
}

.crm-search input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-elevated);
  color: var(--text);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.crm-search input:focus {
  border-color: rgba(11, 79, 138, 0.35);
  box-shadow: var(--ring);
}

.crm-search svg {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: var(--text-muted);
  pointer-events: none;
}

.crm-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
}

.crm-user-chip {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.6rem 0.3rem 0.3rem;
  border-radius: 999px;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
}

.crm-user-avatar {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-soft));
  color: #fff;
  display: grid;
  place-items: center;
  font-family: "Sora", system-ui, sans-serif;
  font-size: 0.5rem;
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
}

.crm-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.crm-user-meta {
  line-height: 1.15;
}

.crm-user-meta .name {
  font-family: "Sora", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
}

.crm-user-meta .role {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.crm-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--surface-elevated);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.crm-icon-btn:hover {
  transform: translateY(-1px);
  background: rgba(245, 197, 24, 0.18);
}

.crm-content {
  padding: 1.35rem 1.5rem 2.5rem;
  flex: 1;
}

.crm-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(6, 30, 50, 0.45);
  backdrop-filter: blur(2px);
}

/* Glass panels */
.glass,
.glass-card {
  background: var(--surface);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.glass-card {
  padding: 1.25rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.glass-card:hover {
  box-shadow: var(--shadow);
}

.kpi-card {
  position: relative;
  overflow: hidden;
  padding: 1.15rem 1.2rem;
  cursor: default;
}

.kpi-card::after {
  content: "";
  position: absolute;
  right: -20%;
  top: -40%;
  width: 55%;
  height: 120%;
  background: radial-gradient(circle, rgba(245, 197, 24, 0.18), transparent 70%);
  pointer-events: none;
}

.kpi-label {
  font-family: "Sora", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.kpi-value {
  font-family: "Sora", system-ui, sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--brand-blue);
}

[data-theme="dark"] .kpi-value {
  color: var(--brand-yellow);
}

.kpi-hint {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  font-family: "Sora", system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, opacity 0.12s ease;
  text-decoration: none !important;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  opacity: 1;
}

.btn-primary {
  background: var(--brand-blue);
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(11, 79, 138, 0.25);
}

.btn-accent {
  background: var(--brand-yellow);
  color: #132536 !important;
  box-shadow: 0 6px 16px rgba(245, 197, 24, 0.3);
}

.btn-ghost {
  background: var(--surface-elevated);
  border-color: var(--border);
  color: var(--text) !important;
}

.btn-danger {
  background: var(--danger);
  color: #fff !important;
}

.btn-success {
  background: var(--success);
  color: #fff !important;
}

.btn-sm {
  padding: 0.35rem 0.65rem;
  font-size: 0.74rem;
  border-radius: 0.55rem;
}

.btn-icon {
  width: 2rem;
  height: 2rem;
  padding: 0;
  border-radius: 0.55rem;
}

/* Forms */
.form-control,
.form-select,
textarea.form-control,
input[type="text"],
input[type="search"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="date"],
input[type="number"],
input[type="file"],
select,
textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border-radius: 0.7rem;
  border: 1px solid var(--border);
  background: var(--surface-solid);
  color: var(--text);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 0.9rem;
  outline: none;
}

.form-control:focus,
.form-select:focus,
textarea:focus,
input:focus,
select:focus {
  border-color: rgba(11, 79, 138, 0.4);
  box-shadow: var(--ring);
}

label {
  display: block;
  margin-bottom: 0.35rem;
  font-family: "Sora", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Table */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
}

.crm-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 980px;
}

.crm-table thead th {
  font-family: "Sora", system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: left;
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid var(--border);
  background: rgba(11, 79, 138, 0.04);
  white-space: nowrap;
}

[data-theme="dark"] .crm-table thead th {
  background: rgba(255, 255, 255, 0.03);
}

.crm-table tbody td {
  padding: 0.8rem 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  font-size: 0.88rem;
}

.crm-table tbody tr {
  transition: background 0.15s ease;
}

.crm-table tbody tr:hover {
  background: rgba(11, 79, 138, 0.04);
}

[data-theme="dark"] .crm-table tbody tr:hover {
  background: rgba(245, 197, 24, 0.05);
}

.photo-thumb {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-soft));
  display: grid;
  place-items: center;
  color: #fff;
  font-family: "Sora", system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  overflow: hidden;
}

.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Status badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-family: "Sora", system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-lead { background: rgba(90, 109, 126, 0.15); color: #4a5d6e; }
.badge-contacted { background: rgba(2, 119, 189, 0.15); color: #0277bd; }
.badge-negotiating { background: rgba(230, 81, 0, 0.15); color: #e65100; }
.badge-booked { background: rgba(31, 122, 77, 0.15); color: #1f7a4d; }
.badge-completed { background: rgba(11, 79, 138, 0.15); color: #0B4F8A; }
.badge-inactive { background: rgba(120, 130, 140, 0.15); color: #6b7785; }
.badge-blacklisted { background: rgba(198, 40, 40, 0.15); color: #c62828; }

[data-theme="dark"] .badge-lead { color: #b0bec5; }
[data-theme="dark"] .badge-contacted { color: #64b5f6; }
[data-theme="dark"] .badge-negotiating { color: #ffb74d; }
[data-theme="dark"] .badge-booked { color: #81c784; }
[data-theme="dark"] .badge-completed { color: #90caf9; }
[data-theme="dark"] .badge-inactive { color: #90a4ae; }
[data-theme="dark"] .badge-blacklisted { color: #ef9a9a; }

/* Flash messages */
.flash-stack {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.flash {
  padding: 0.8rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid var(--border);
  background: var(--surface-elevated);
  backdrop-filter: blur(10px);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.flash.success,
.flash.Success {
  border-color: rgba(31, 122, 77, 0.3);
  background: rgba(31, 122, 77, 0.1);
  color: var(--success);
}

.flash.error,
.flash.Error {
  border-color: rgba(198, 40, 40, 0.3);
  background: rgba(198, 40, 40, 0.1);
  color: var(--danger);
}

.flash.warning,
.flash.Warning {
  border-color: rgba(230, 81, 0, 0.3);
  background: rgba(230, 81, 0, 0.1);
  color: var(--warning);
}

.flash.info,
.flash.Info {
  border-color: rgba(2, 119, 189, 0.3);
  background: rgba(2, 119, 189, 0.1);
  color: var(--info);
}

/* Dropdown */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  min-width: 13rem;
  max-height: 16rem;
  overflow-y: auto;
  z-index: 20;
  padding: 0.4rem;
  border-radius: 0.85rem;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.dropdown.open .dropdown-menu,
.dropdown-menu.show {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 0.5rem 0.7rem;
  border-radius: 0.55rem;
  font-size: 0.8rem;
  color: var(--text) !important;
  text-transform: capitalize;
}

.dropdown-menu a:hover {
  background: rgba(11, 79, 138, 0.08);
}

/* Action row */
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
}

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

.page-header h1 {
  margin: 0;
  font-family: "Sora", system-ui, sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-header p {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.muted {
  color: var(--text-muted);
}

.section-title {
  font-family: "Sora", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 650;
  margin: 0 0 0.85rem;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 1rem 0;
}

.avatar-lg {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 1.1rem;
  object-fit: cover;
  background: linear-gradient(145deg, var(--brand-blue), var(--brand-blue-soft));
  display: grid;
  place-items: center;
  color: #fff;
  font-family: "Sora", system-ui, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.avatar-lg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 0.3rem;
  bottom: 0.3rem;
  width: 2px;
  background: var(--border);
}

.timeline li {
  position: relative;
  padding: 0 0 1.1rem 1.75rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: 0.35rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--brand-yellow);
  box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.25);
}

.list-clean {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list-clean li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
}

.list-clean li:last-child {
  border-bottom: 0;
}

.cal-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.cal-item:last-child {
  border-bottom: 0;
}

.cal-date {
  width: 3.1rem;
  flex-shrink: 0;
  text-align: center;
  padding: 0.4rem 0.2rem;
  border-radius: 0.7rem;
  background: rgba(11, 79, 138, 0.08);
}

.cal-date .day {
  display: block;
  font-family: "Sora", system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-blue);
  line-height: 1;
}

[data-theme="dark"] .cal-date .day {
  color: var(--brand-yellow);
}

.cal-date .mon {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

/* Login page */
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1000px 520px at 15% 10%, rgba(11, 79, 138, 0.4), transparent 55%),
    radial-gradient(800px 480px at 90% 80%, rgba(245, 197, 24, 0.22), transparent 50%),
    linear-gradient(150deg, #0B4F8A 0%, #0a3d6c 40%, #072c4d 100%);
}

.login-card {
  width: 100%;
  max-width: 420px;
  padding: 2.25rem 2rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 24px 60px rgba(3, 30, 55, 0.35);
  text-align: center;
}

.login-logo {
  width: 5.5rem;
  height: 5.5rem;
  object-fit: cover;
  margin: 0 auto 0.85rem;
  display: block;
  border-radius: 50%;
  background: #fff;
  padding: 0;
  box-shadow: 0 8px 24px rgba(11, 79, 138, 0.15);
}

.login-brand {
  font-family: "Sora", system-ui, sans-serif;
  font-size: 1.55rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  color: var(--brand-blue);
  margin: 0;
}

.login-sub {
  margin: 0.4rem 0 1.5rem;
  color: #5a6d7e;
  font-size: 0.92rem;
}

.login-card form {
  text-align: left;
}

.login-card .btn-accent {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

.login-error {
  background: rgba(198, 40, 40, 0.08);
  color: #c62828;
  border-radius: 0.7rem;
  padding: 0.65rem 0.8rem;
  margin-bottom: 0.85rem;
  font-size: 0.85rem;
}

/* Mobile */
@media (max-width: 1024px) {
  .crm-menu-btn {
    display: inline-flex;
  }

  .crm-sidebar {
    transform: translateX(-105%);
  }

  .crm-shell.sidebar-open .crm-sidebar {
    transform: translateX(0);
  }

  .crm-shell.sidebar-open .crm-overlay {
    display: block;
  }

  .crm-main {
    margin-left: 0;
  }

  .crm-user-meta {
    display: none;
  }

  .crm-content {
    padding: 1rem 1rem 2rem;
  }
}

@media (max-width: 640px) {
  .crm-search {
    max-width: none;
  }

  .page-header h1 {
    font-size: 1.3rem;
  }

  .kpi-value {
    font-size: 1.35rem;
  }
}
