@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --el-bg: #0b0d14;
  --el-bg-alt: #121620;
  --el-surface: #171b26;
  --el-surface-2: #1d2230;
  --el-surface-3: #222838;
  --el-sidebar: #080b13;
  --el-border: rgba(255, 255, 255, 0.08);
  --el-border-strong: rgba(255, 255, 255, 0.14);
  --el-text: #f2efe7;
  --el-text-soft: #b6b0c5;
  --el-text-dim: #7d7a91;
  --el-gold: #c9a84c;
  --el-gold-lite: #dcb95a;
  --el-gold-glow: rgba(201, 168, 76, 0.28);
  --el-green: #32d296;
  --el-blue: #64a8ff;
  --el-purple: #a78bfa;
  --el-red: #ff7d7d;
  --el-orange: #f59e0b;
  --el-radius: 18px;
  --el-radius-sm: 12px;
  --el-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  --el-sidebar-width: 220px;
}

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

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(201, 168, 76, 0.08), transparent 24%),
    radial-gradient(circle at top left, rgba(100, 168, 255, 0.05), transparent 18%),
    var(--el-bg);
  color: var(--el-text);
  font-family: 'Outfit', 'Avenir Next', 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--el-gold);
  text-decoration: none;
}

a:hover {
  color: #efd487;
}

hr {
  border-color: rgba(255, 255, 255, 0.08);
  opacity: 1;
}

code,
pre {
  color: #f8df99;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(201, 168, 76, 0.18);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(201, 168, 76, 0.32);
}

input::placeholder,
textarea::placeholder {
  color: rgba(242, 239, 231, 0.34) !important;
}

.el-shell {
  display: flex;
  min-height: 100vh;
}

.el-sidebar {
  width: var(--el-sidebar-width);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(20, 24, 35, 0.96), rgba(8, 11, 19, 0.98)),
    var(--el-sidebar);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand-logo {
  width: 44px;
  height: 44px;
  border: 2px solid var(--el-gold);
  clip-path: polygon(50% 0%, 94% 23%, 94% 77%, 50% 100%, 6% 77%, 6% 23%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--el-gold);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.04em;
  background: rgba(201, 168, 76, 0.06);
  box-shadow: inset 0 0 0 1px rgba(201, 168, 76, 0.1);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand-text strong {
  color: var(--el-text);
  font-size: 14px;
  font-weight: 700;
}

.brand-text span {
  color: var(--el-gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

#sidebar .nav {
  padding: 14px 0;
  gap: 6px;
}

#sidebar .nav-item {
  padding: 0 10px;
}

#sidebar .nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--el-text-soft);
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

#sidebar .nav-link i {
  width: 18px;
  font-size: 14px;
  opacity: 0.8;
}

#sidebar .nav-link:hover {
  color: var(--el-text);
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(2px);
}

#sidebar .nav-link.active {
  color: var(--el-gold);
  background: rgba(201, 168, 76, 0.12);
  box-shadow: inset 2px 0 0 var(--el-gold);
}

#sidebar .nav-link.active i {
  opacity: 1;
}

.sidebar-footer {
  margin-top: auto;
  padding: 14px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-user__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--el-gold-lite), var(--el-gold));
  color: #18140b;
  font-weight: 800;
  font-size: 12px;
}

.sidebar-user__meta {
  min-width: 0;
}

.sidebar-user__meta strong {
  display: block;
  color: var(--el-text);
  font-size: 12px;
}

.sidebar-user__meta span {
  display: block;
  color: var(--el-text-dim);
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
}

#content {
  flex: 1;
  min-width: 0;
  background: transparent;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
  padding: 18px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 13, 20, 0.92);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-title {
  font-family: 'Barlow Condensed', 'Outfit', sans-serif;
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: none;
  margin: 0;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.content-body {
  padding: 24px 28px 30px;
  max-width: 1480px;
}

.el-page-enter {
  animation: elPageEnter 0.48s ease both;
}

.el-reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: elReveal 0.45s ease forwards;
  animation-delay: var(--stagger, 0s);
}

@keyframes elPageEnter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

.el-card,
.stat-card,
.el-table,
.filter-bar,
.board-column,
.board-card,
.modal-content {
  border: 1px solid var(--el-border);
  border-radius: var(--el-radius);
  background: linear-gradient(180deg, rgba(26, 30, 43, 0.94), rgba(21, 25, 36, 0.98));
  box-shadow: var(--el-shadow);
}

.el-card,
.stat-card {
  padding: 22px;
}

.el-card,
.stat-card,
.board-card {
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.el-card:hover,
.stat-card:hover,
.board-card:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 168, 76, 0.2);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.34);
}

.el-card h6,
.el-card .fw-semibold,
.el-table .fw-semibold,
.board-card-title,
.board-title {
  color: var(--el-text);
}

.text-muted,
.small.text-muted,
small.text-muted {
  color: var(--el-text-dim) !important;
}

.text-dark {
  color: var(--el-text) !important;
}

.text-success {
  color: var(--el-green) !important;
}

.text-primary {
  color: var(--el-blue) !important;
}

.text-warning {
  color: var(--el-gold) !important;
}

.text-danger {
  color: var(--el-red) !important;
}

.btn,
.btn-sm {
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.btn-gold,
.btn.btn-gold {
  background: linear-gradient(135deg, var(--el-gold-lite), var(--el-gold));
  color: #16120a;
  border: 0;
  box-shadow: 0 10px 22px rgba(201, 168, 76, 0.2);
}

.btn-gold:hover,
.btn.btn-gold:hover {
  background: linear-gradient(135deg, #e6c972, #d4b156);
  color: #14110a;
}

.btn-outline-secondary,
.btn-outline-primary,
.btn-outline-danger,
.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--el-text-soft);
}

.btn-outline-secondary:hover,
.btn-outline-primary:hover,
.btn-outline-danger:hover,
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--el-text);
}

.btn-link {
  color: var(--el-gold);
}

.form-control,
.form-select,
.form-check-input,
textarea.form-control {
  background-color: #111521;
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--el-text);
  border-radius: 12px;
  min-height: 42px;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus,
textarea.form-control:focus {
  background-color: #121724;
  border-color: rgba(201, 168, 76, 0.5);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.12);
  color: var(--el-text);
}

.form-select option {
  background: #111521;
  color: var(--el-text);
}

.form-label,
.form-check-label {
  color: var(--el-text-soft);
  font-weight: 600;
}

.alert {
  border-radius: 14px;
  border: 1px solid var(--el-border);
}

.alert-success,
.alert-info,
.alert-secondary,
.alert-warning,
.alert-danger {
  color: var(--el-text);
  background: rgba(26, 30, 43, 0.94);
}

.modal-content,
.modal-header,
.modal-footer {
  color: var(--el-text);
}

.modal-header,
.modal-footer {
  border-color: rgba(255, 255, 255, 0.08);
}

.btn-close {
  filter: invert(1);
}

.stat-card {
  position: relative;
  overflow: hidden;
  min-height: 148px;
}

.stat-card::after {
  content: "";
  position: absolute;
  inset: -35% -10% auto auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.12), transparent 68%);
  pointer-events: none;
}

.stat-card .stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.stat-card .stat-value {
  color: var(--el-text);
  font-family: 'Barlow Condensed', 'Outfit', sans-serif;
  font-size: 48px;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.stat-card .stat-label {
  color: #59617d;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 700;
  margin-top: 8px;
}

.stat-card__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-left: auto;
  opacity: 0.9;
}

.stat-dot-gold {
  background: var(--el-gold);
}

.stat-dot-blue {
  background: var(--el-blue);
}

.stat-dot-green {
  background: var(--el-green);
}

.stat-dot-purple {
  background: var(--el-purple);
}

.dashboard-hero {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 42px;
  min-height: 148px;
  overflow: hidden;
  border: 1px solid rgba(201, 168, 76, 0.18);
  border-radius: 20px;
  background:
    radial-gradient(circle at 88% 40%, rgba(201, 168, 76, 0.08), transparent 18%),
    linear-gradient(180deg, rgba(19, 23, 34, 0.98), rgba(15, 18, 27, 0.98));
  box-shadow: var(--el-shadow);
}

.dashboard-hero::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -48px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 50%;
}

.dashboard-hero::before {
  content: "";
  position: absolute;
  right: 40px;
  top: 46px;
  width: 140px;
  height: 140px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 50%;
}

.dashboard-hero__eyebrow {
  margin: 0 0 12px;
  color: var(--el-gold);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.dashboard-hero__title {
  margin: 0;
  color: var(--el-text);
  font-family: 'Barlow Condensed', 'Outfit', sans-serif;
  font-size: 54px;
  line-height: 0.92;
}

.dashboard-hero__subtitle {
  margin: 12px 0 0;
  color: var(--el-text-soft);
  font-size: 15px;
}

.dashboard-hero__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  align-self: center;
}

.el-table {
  overflow: hidden;
}

.el-table .border-bottom {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.el-table table,
.el-table .table {
  margin: 0;
  color: var(--el-text);
  --bs-table-bg: transparent;
  --bs-table-border-color: rgba(255, 255, 255, 0.08);
  --bs-table-hover-bg: rgba(255, 255, 255, 0.03);
  --bs-table-striped-bg: transparent;
}

.el-table thead th,
.table thead th {
  padding: 15px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: rgba(255, 255, 255, 0.02);
  color: #6c7290;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.el-table tbody td,
.table tbody td {
  padding: 14px 16px;
  vertical-align: middle;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: var(--el-text);
  background: transparent;
}

.el-table tbody tr:hover td,
.table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.025);
}

.badge {
  border-radius: 999px;
  padding: 0.42rem 0.62rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.bg-success,
.badge.bg-success {
  background: rgba(50, 210, 150, 0.16) !important;
  color: #8af1c6 !important;
  border: 1px solid rgba(50, 210, 150, 0.2);
}

.bg-danger,
.badge.bg-danger {
  background: rgba(255, 125, 125, 0.16) !important;
  color: #ffb4b4 !important;
  border: 1px solid rgba(255, 125, 125, 0.2);
}

.bg-secondary,
.badge.bg-secondary {
  background: rgba(148, 163, 184, 0.14) !important;
  color: #d7dfeb !important;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.bg-primary,
.badge.bg-primary {
  background: rgba(100, 168, 255, 0.16) !important;
  color: #c7deff !important;
  border: 1px solid rgba(100, 168, 255, 0.24);
}

.bg-warning,
.badge.bg-warning,
.bg-light.text-dark.border {
  background: rgba(201, 168, 76, 0.18) !important;
  color: #ffe39d !important;
  border: 1px solid rgba(201, 168, 76, 0.26) !important;
}

.badge.bg-opacity-10,
.badge.bg-opacity-20 {
  opacity: 1;
}

.badge-identified,
.badge-cold,
.badge-not-contacted {
  background: rgba(148, 163, 184, 0.14);
  color: #d8e0ed;
}

.badge-emailed,
.badge-contacted {
  background: rgba(201, 168, 76, 0.18);
  color: #ffe39d;
}

.badge-responded,
.badge-connected,
.badge-interested {
  background: rgba(50, 210, 150, 0.16);
  color: #8af1c6;
}

.badge-followed_up,
.badge-negotiation,
.badge-offer,
.badge-offer-made {
  background: rgba(167, 139, 250, 0.16);
  color: #d8c8ff;
}

.badge-declined,
.badge-not-interested {
  background: rgba(255, 125, 125, 0.16);
  color: #ffb4b4;
}

.tier-t1,
.tier-t2,
.tier-t3,
.tier-t4,
.tier-t5,
.tier-other,
.tier-chip {
  border-radius: 999px;
  padding: 0.42rem 0.68rem;
  font-size: 11px;
  font-weight: 700;
}

.tier-t1,
.tier-chip {
  background: rgba(201, 168, 76, 0.18);
  color: #ffe39d;
  border: 1px solid rgba(201, 168, 76, 0.24);
}

.tier-t2,
.tier-t3 {
  background: rgba(100, 168, 255, 0.16);
  color: #c7deff;
}

.tier-t4,
.tier-t5 {
  background: rgba(50, 210, 150, 0.16);
  color: #8af1c6;
}

.tier-other {
  background: rgba(148, 163, 184, 0.14);
  color: #d8e0ed;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 16px;
  margin-bottom: 18px;
}

.filter-bar .form-control,
.filter-bar .form-select {
  min-height: 40px;
}

.board-shell {
  display: grid;
  grid-template-columns: repeat(6, minmax(260px, 1fr));
  gap: 16px;
  align-items: start;
  overflow-x: auto;
  padding-bottom: 10px;
}

.board-column {
  min-height: 540px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(25, 29, 41, 0.96), rgba(20, 24, 34, 0.98));
}

.board-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.board-title {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.board-subtitle {
  color: var(--el-text-dim);
  font-size: 12px;
}

.board-count {
  min-width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--el-text-soft);
  font-weight: 700;
}

.board-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.board-card {
  padding: 16px;
  cursor: grab;
}

.board-card:active {
  cursor: grabbing;
}

.board-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.board-card-title {
  font-size: 15px;
  font-weight: 700;
}

.board-card-meta,
.board-card-body,
.board-card-details,
.board-empty {
  color: var(--el-text-soft);
}

.board-card-body {
  margin-top: 10px;
  display: grid;
  gap: 6px;
  font-size: 13px;
}

.board-card-details {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.board-card details summary {
  cursor: pointer;
  color: var(--el-gold);
}

.board-empty {
  padding: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.profile-editor {
  min-height: 72vh;
  font-family: 'SFMono-Regular', 'Menlo', 'Consolas', monospace;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre;
}

.profile-path {
  padding: 12px;
  border-radius: 12px;
  background: #111521;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--el-text-soft);
  word-break: break-word;
}

.profile-fact {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-fact:last-child {
  border-bottom: 0;
}

.profile-fact span {
  color: var(--el-text-dim);
}

.profile-fact strong {
  color: var(--el-text);
  text-align: right;
}

.el-universities-page {
  display: grid;
  gap: 24px;
}

.el-uni-hero,
.el-uni-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--el-border);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(201, 168, 76, 0.16), transparent 28%),
    linear-gradient(145deg, #121722 0%, #1c2431 45%, #11161f 100%);
  color: #f7f2e8;
  box-shadow: var(--el-shadow);
}

.el-uni-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 30px;
  isolation: isolate;
}

.el-uni-hero::after,
.el-uni-panel::after {
  content: "";
  position: absolute;
  inset: auto -8% -42% auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.18), transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.el-uni-hero > *,
.el-uni-panel > * {
  position: relative;
  z-index: 1;
}

.el-uni-eyebrow {
  margin: 0 0 10px;
  color: rgba(245, 219, 145, 0.9);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.el-uni-title {
  margin: 0;
  font-family: 'Barlow Condensed', 'Outfit', sans-serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 0.95;
  text-transform: uppercase;
}

.el-uni-subtitle {
  max-width: 760px;
  margin: 12px 0 0;
  color: rgba(232, 230, 222, 0.72);
  font-size: 15px;
  line-height: 1.65;
}

.el-uni-summary {
  min-width: 180px;
  align-self: flex-start;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
}

.el-uni-summary__label,
.el-uni-summary__meta {
  display: block;
  color: rgba(232, 230, 222, 0.65);
  font-size: 12px;
}

.el-uni-summary__label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.el-uni-summary__value {
  display: block;
  margin: 8px 0 6px;
  color: #fff;
  font-family: 'Barlow Condensed', 'Outfit', sans-serif;
  font-size: 42px;
  line-height: 0.9;
}

.el-uni-panel {
  padding: 24px;
}

.el-uni-filters {
  display: grid;
  gap: 18px;
}

.el-uni-filters__grid {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) repeat(4, minmax(130px, 1fr)) minmax(110px, auto);
  gap: 14px;
}

.el-uni-field {
  display: grid;
  gap: 8px;
}

.el-uni-field__label {
  color: rgba(232, 230, 222, 0.72);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.el-uni-field .form-control,
.el-uni-field .form-select {
  min-height: 46px;
  border-radius: 14px;
}

.el-uni-field--actions {
  align-content: end;
}

.el-uni-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
}

.el-uni-btn--primary {
  background: linear-gradient(135deg, #e0c06a 0%, #c9a84c 100%);
  color: #161616;
  box-shadow: 0 10px 24px rgba(201, 168, 76, 0.22);
}

.el-uni-btn--ghost {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #f7f2e8;
}

.el-uni-btn--sm {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 12px;
}

.el-uni-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.el-uni-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.el-uni-tab {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(247, 242, 232, 0.75);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.el-uni-tab.is-active {
  background: linear-gradient(135deg, rgba(224, 192, 106, 0.2), rgba(201, 168, 76, 0.38));
  border-color: rgba(224, 192, 106, 0.45);
  color: #fff4d4;
}

.el-uni-toolbar__count {
  color: rgba(232, 230, 222, 0.62);
  font-size: 13px;
  white-space: nowrap;
}

.el-uni-table-panel {
  padding: 0;
}

.el-uni-table-wrap {
  overflow-x: auto;
}

.el-uni-table {
  color: #f7f2e8;
}

.el-uni-table tbody td {
  color: rgba(247, 242, 232, 0.92);
}

.el-uni-link,
.el-uni-name-text {
  color: #fff;
  font-weight: 600;
}

.el-uni-muted {
  color: rgba(232, 230, 222, 0.68);
}

.el-uni-location {
  color: rgba(247, 242, 232, 0.84);
}

.el-uni-tier,
.el-uni-division,
.el-uni-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.el-uni-tier--top,
.el-uni-division--juco {
  background: rgba(201, 168, 76, 0.2);
  color: #ffe5a2;
  border: 1px solid rgba(201, 168, 76, 0.28);
}

.el-uni-tier--mid,
.el-uni-division--d1 {
  background: rgba(96, 165, 250, 0.16);
  color: #bfdbfe;
  border: 1px solid rgba(96, 165, 250, 0.22);
}

.el-uni-division--d2 {
  background: rgba(168, 85, 247, 0.18);
  color: #e9d5ff;
  border: 1px solid rgba(168, 85, 247, 0.24);
}

.el-uni-tier--rising,
.el-uni-division--naia,
.el-uni-status--contacted {
  background: rgba(52, 211, 153, 0.16);
  color: #bbf7d0;
  border: 1px solid rgba(52, 211, 153, 0.2);
}

.el-uni-tier--neutral,
.el-uni-division--neutral,
.el-uni-status--idle {
  background: rgba(148, 163, 184, 0.14);
  color: #dbe4ee;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.el-uni-actions {
  text-align: right;
  white-space: nowrap;
}

/* ── Universities Pagination ──────────────────────────────────────────────── */

.el-uni-pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 0 12px;
}

.el-uni-pag__inner {
  display: flex;
  align-items: center;
  gap: 8px;
}

.el-uni-pag__arrow {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, transform 0.12s;
  border: 1.5px solid rgba(201, 168, 76, 0.35);
  color: #c9a84c;
  background: rgba(201, 168, 76, 0.07);
  cursor: pointer;
}

.el-uni-pag__arrow:hover {
  background: rgba(201, 168, 76, 0.18);
  border-color: #c9a84c;
  transform: scale(1.04);
  color: #f5db91;
}

.el-uni-pag__arrow--disabled {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  border: 1.5px solid rgba(232, 230, 222, 0.1);
  color: rgba(232, 230, 222, 0.25);
  background: transparent;
  cursor: default;
}

.el-uni-pag__pages {
  display: flex;
  align-items: center;
  gap: 4px;
}

.el-uni-pag__page {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.13s, color 0.13s;
  color: rgba(232, 230, 222, 0.65);
  border: 1.5px solid transparent;
}

a.el-uni-pag__page:hover {
  background: rgba(201, 168, 76, 0.12);
  color: #c9a84c;
  border-color: rgba(201, 168, 76, 0.3);
}

.el-uni-pag__page.is-active {
  background: #c9a84c;
  color: #1e1e1e;
  font-weight: 700;
  border-color: #c9a84c;
}

.el-uni-pag__ellipsis {
  color: rgba(232, 230, 222, 0.3);
  font-size: 0.85rem;
  padding: 0 4px;
}

.el-uni-pag__label {
  font-size: 0.75rem;
  color: rgba(232, 230, 222, 0.35);
  margin: 0;
}

/* ── Coach display ──────────────────────────────────────────────────────────── */

.el-uni-coach__name {
  font-weight: 600;
  font-size: 0.82rem;
  color: #e8e6de;
  line-height: 1.4;
}

.el-uni-coach__email {
  font-size: 0.74rem;
  color: rgba(232, 230, 222, 0.55);
  line-height: 1.3;
  word-break: break-all;
}

.el-uni-empty {
  padding: 44px 18px;
}

.el-uni-empty__inner {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: rgba(232, 230, 222, 0.72);
}

.el-uni-empty__icon {
  color: #f5db91;
  font-size: 24px;
}

.count-up {
  display: inline-block;
}

.el-template-card {
  padding: 20px;
}

.el-template-card__title {
  font-size: 18px;
}

.el-template-card__delete {
  position: relative;
  z-index: 2;
}

.el-template-card__open {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  list-style: none;
}

.el-template-card__open::-webkit-details-marker {
  display: none;
}

.el-template-card__details[open] .el-template-card__arrow i {
  transform: rotate(180deg);
}

.el-template-card__arrow i {
  transition: transform 0.18s ease;
}

.el-template-card__block {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.el-template-card__subject,
.el-template-card__body {
  color: var(--el-text);
}

.el-template-card__subject {
  font-weight: 600;
  line-height: 1.45;
}

.el-template-card__body {
  font-size: 13px;
  line-height: 1.65;
  color: var(--el-text-soft);
}

.el-template-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  color: var(--el-gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.el-template-card__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.12);
}

.el-template-card__expanded {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.el-template-modal .modal-header,
.el-template-modal .modal-footer {
  padding-left: 24px;
  padding-right: 24px;
}

.el-template-modal .modal-body {
  padding: 8px 24px 24px;
}

.el-template-modal__section {
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.el-template-modal__subject {
  color: var(--el-text);
  font-weight: 600;
  line-height: 1.55;
}

.el-template-modal__body {
  color: var(--el-text-soft);
  white-space: pre-wrap;
  word-break: break-word;
  font-family: 'Outfit', 'Avenir Next', 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.75;
}

/* ── Dark overrides for Bootstrap components ─────────────────────────────── */

.card {
  background: linear-gradient(180deg, rgba(26, 30, 43, 0.94), rgba(21, 25, 36, 0.98)) !important;
  border-color: var(--el-border) !important;
  color: var(--el-text);
}

.card-header,
.card-footer {
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: var(--el-text);
}

.card-body {
  color: var(--el-text);
}

.bg-white {
  background: transparent !important;
}

.bg-light,
.table-light,
.table-light > * {
  background: rgba(255, 255, 255, 0.03) !important;
  color: #6c7290 !important;
  --bs-table-bg: rgba(255, 255, 255, 0.03) !important;
  --bs-table-color: #6c7290 !important;
}

.accordion-item {
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.accordion-button {
  background: transparent !important;
  color: var(--el-text) !important;
  box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
  background: rgba(201, 168, 76, 0.07) !important;
  color: var(--el-gold) !important;
}

.accordion-button::after {
  filter: invert(1) opacity(0.6);
}

.accordion-collapse {
  background: transparent;
}

.progress {
  background: rgba(255, 255, 255, 0.08) !important;
}

.list-group-item {
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: var(--el-text) !important;
}

.table-hover > tbody > tr:hover > * {
  background: rgba(255, 255, 255, 0.03) !important;
}

/* ── Mobile topbar & drawer ──────────────────────────────────────────────── */

.mobile-topbar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 400;
  background: rgba(8, 11, 19, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 10px 16px;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(10px);
}

.hamburger-btn {
  background: none;
  border: none;
  color: var(--el-text-soft);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 8px;
  line-height: 1;
  transition: background 0.15s;
}

.hamburger-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--el-text);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 350;
  backdrop-filter: blur(2px);
}

body.nav-open .sidebar-overlay {
  display: block;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 1200px) {
  .el-uni-filters__grid {
    grid-template-columns: repeat(3, minmax(160px, 1fr));
  }

  .el-uni-field--search {
    grid-column: 1 / -1;
  }

  .dashboard-hero {
    padding: 24px 28px;
  }

  .dashboard-hero__title {
    font-size: 46px;
  }
}

@media (max-width: 992px) {
  .board-shell {
    grid-template-columns: repeat(3, minmax(250px, 1fr));
  }

  .topbar {
    padding: 16px 20px;
  }

  .content-body {
    padding: 20px;
  }
}

@media (max-width: 900px) {
  .el-uni-hero {
    flex-direction: column;
  }

  .el-uni-summary {
    min-width: 0;
  }

  .el-uni-filters__grid,
  .el-uni-toolbar {
    grid-template-columns: 1fr;
  }

  .el-uni-toolbar {
    display: grid;
  }

  .dashboard-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-hero__actions {
    width: 100%;
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  /* Show mobile topbar, hide desktop sidebar from normal flow */
  .mobile-topbar {
    display: flex;
  }

  /* Sidebar becomes a fixed slide-in drawer below the mobile topbar */
  .el-shell {
    display: block;
  }

  .el-sidebar {
    position: fixed;
    top: 57px; /* height of mobile topbar */
    left: calc(-1 * var(--el-sidebar-width) - 2px);
    width: var(--el-sidebar-width);
    height: calc(100vh - 57px);
    z-index: 360;
    transition: left 0.26s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
  }

  body.nav-open .el-sidebar {
    left: 0;
    box-shadow: 4px 0 32px rgba(0, 0, 0, 0.5);
  }

  .topbar {
    padding: 12px 16px;
    min-height: 54px;
  }

  .topbar-title {
    font-size: 20px;
  }

  .topbar-actions .btn {
    font-size: 12px;
    padding: 5px 10px;
  }

  #content {
    min-width: 0;
    width: 100%;
  }

  .content-body {
    padding: 14px 12px 24px;
  }

  /* Cards and surfaces */
  .dashboard-hero__title {
    font-size: 34px;
  }

  .dashboard-hero {
    padding: 18px 20px;
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-hero__actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .dashboard-hero,
  .el-uni-hero,
  .el-uni-panel,
  .el-card,
  .stat-card,
  .el-table,
  .filter-bar,
  .board-column,
  .modal-content {
    border-radius: 16px;
  }

  .stat-card .stat-value {
    font-size: 36px;
  }

  /* Tables: allow horizontal scroll on mobile */
  .table-responsive-mobile {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Hide lower-priority table columns on mobile */
  .col-mobile-hide {
    display: none !important;
  }

  /* Modals: full-screen on mobile */
  .modal-dialog {
    margin: 0;
    max-width: 100%;
    min-height: 100%;
    align-items: flex-end;
  }

  .modal-content {
    border-radius: 20px 20px 0 0 !important;
    max-height: 92vh;
    overflow-y: auto;
  }

  /* Topbar actions wrap cleanly */
  .topbar {
    flex-wrap: wrap;
    gap: 8px;
  }

  .board-shell {
    grid-template-columns: 1fr;
  }

  /* Form controls bigger tap targets */
  .form-control,
  .form-select {
    min-height: 46px;
    font-size: 16px; /* prevents iOS zoom on focus */
  }

  textarea.form-control {
    min-height: auto;
    font-size: 15px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE — comprehensive responsive fixes
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 768px: tablets ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Board: horizontal scroll instead of stacked */
  .board-shell {
    grid-template-columns: repeat(6, 280px);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 16px;
    gap: 12px;
  }

  .board-column {
    scroll-snap-align: start;
    min-height: 420px;
  }

  /* Stats row: 2 col */
  .row.g-3 > [class*="col-md-3"] {
    width: 50%;
    flex: 0 0 50%;
    max-width: 50%;
  }

  /* Filter bar stacks */
  .filter-bar {
    flex-direction: column;
    align-items: stretch !important;
  }

  .filter-bar .form-control,
  .filter-bar .form-select {
    max-width: 100% !important;
    width: 100% !important;
  }

  .filter-bar .btn { width: 100%; }
  .filter-bar .ms-auto { margin-left: 0 !important; }

  /* Topbar */
  .topbar { flex-wrap: wrap; gap: 8px; }
  .topbar-title { font-size: 18px; }
  .topbar-actions { width: 100%; }
  .topbar-actions .d-flex { flex-wrap: wrap; gap: 6px; }
  .topbar-actions .btn { flex: 1 1 auto; font-size: 12px; padding: 5px 10px; }

  /* University table */
  .el-uni-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .el-uni-table { min-width: 700px; }

  /* Coaches table */
  .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ── 640px: phones ──────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  /* Board: single column, vertical flow */
  .board-shell {
    display: flex;
    flex-direction: column;
    overflow-x: visible;
    gap: 12px;
  }

  .board-column {
    min-height: 0;
    border-radius: 16px;
    scroll-snap-align: none;
  }

  /* Collapse empty columns on mobile */
  .board-column:not(:has(.board-card)) .board-list {
    display: none;
  }

  .board-column:not(:has(.board-card)) {
    min-height: 0;
    padding: 10px 14px;
  }

  /* Athlete stat cards: 2x2 */
  .row.g-3 > [class*="col-md-3"] {
    width: 50%;
    flex: 0 0 50%;
    max-width: 50%;
  }

  /* Board cards: slightly more compact */
  .board-card { padding: 12px; }
  .board-card-title { font-size: 13px; }

  /* University page */
  .el-uni-hero { gap: 12px; }
  .el-uni-title { font-size: 26px; }
  .el-uni-filters__grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .el-uni-field--search { grid-column: 1 / -1; }
  .el-uni-field--actions { grid-column: 1 / -1; }
  .el-uni-btn--primary { width: 100%; }
  .el-uni-tabs { gap: 4px; }
  .el-uni-tab { font-size: 12px; padding: 6px 10px; }

  /* Pagination */
  .el-uni-pag__pages { gap: 2px; }
  .el-uni-pag__page { width: 30px; height: 30px; font-size: 0.75rem; }
  .el-uni-pag__arrow span { display: none; }
  .el-uni-pag__arrow { padding: 8px 10px; }

  /* Dashboard hero */
  .dashboard-hero__title { font-size: 28px; }
  .dashboard-hero__subtitle { font-size: 13px; }

  /* Content */
  .content-body { padding: 12px 10px 32px; }
}

/* ── 400px: very small phones ───────────────────────────────────────────── */
@media (max-width: 400px) {
  .el-uni-filters__grid { grid-template-columns: 1fr; }
  .row.g-3 > [class*="col-md-3"] {
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
  }
  .board-card-title { font-size: 12px; }
}

/* Board scroll hint (tablet only) */
.board-scroll-hint {
  display: none;
  text-align: center;
  font-size: 0.72rem;
  color: rgba(232, 230, 222, 0.3);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

@media (min-width: 641px) and (max-width: 768px) {
  .board-scroll-hint { display: block; }
}
