/*
 * obbligato - Unified Design System Stylesheet
 * Shared across admissions.obbligato.io and connect.obbligato.io
 */

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

:root {
  /* Brand Typography */
  --font-display: 'Cinzel', serif;
  --font-body: 'Outfit', sans-serif;

  /* Admissions Original Vars Mapping - Light Mode Default (Harmonized) */
  --ink: #1c1917; /* Warm dark stone */
  --muted: #57534e; /* Warm stone muted */
  --line: #edebe4; /* Soft ivory gray line */
  --bg: #f7f6f2; /* Creamy Ivory background */
  --paper: #ffffff;
  --navy: #854d0e; /* Deep bronze-gold primary brand */
  --navy-light: #b45309; /* Warm gold accent */
  --teal: #854d0e; /* Links map to bronze-gold */
  --green: #15803d;
  --amber: #b45309;
  --red: #b91c1c;
  --soft-blue: rgba(180, 83, 9, 0.05); /* Soft gold/cream tint */
  --soft-green: #f0fdf4;
  --soft-amber: #fef3c7;
  --soft-red: #fef2f2;
  --shadow: 0 10px 15px -3px rgba(139, 92, 26, 0.05), 0 4px 6px -4px rgba(139, 92, 26, 0.05);

  /* Connect Original Vars Mapping - Light Mode Default */
  --bg-gradient: linear-gradient(135deg, #f7f6f2 0%, #edebe4 100%);
  --bg-color: #f7f6f2;
  --card-bg: rgba(255, 255, 255, 0.85);
  --card-border: rgba(139, 92, 26, 0.15);
  --card-border-hover: rgba(139, 92, 26, 0.4);
  --text-main: #1c1917;
  --text-muted: #57534e;
  --gold: #b45309;
  --gold-hover: #d97706;
  --gold-light: rgba(180, 83, 9, 0.08);
  --gold-glow: rgba(180, 83, 9, 0.2);
  --accent-red: #b91c1c;
  --accent-blue: #1e3a8a;
  --soft-green-rgba: rgba(16, 185, 129, 0.15);
  --text-green: #15803d;
  --glass-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme Overrides - Standardized Brand Evening Aesthetic */
.dark-theme, [data-theme="dark"] {
  /* Admissions Vars Mapping - Dark Mode (Harmonized) */
  --ink: #f3f4f6;
  --muted: #9ca3af;
  --line: rgba(212, 175, 55, 0.15); /* Gold-tinted border line */
  --bg: #0d0f14; /* Deep chamber ebony black background */
  --paper: #161920;
  --navy: #d4af37; /* Warm bright concert gold */
  --navy-light: #e6c863;
  --teal: #d4af37;
  --green: #34d399;
  --amber: #f59e0b;
  --red: #ef4444;
  --soft-blue: rgba(212, 175, 55, 0.1); /* Gold/amber tint in dark */
  --soft-green: rgba(16, 185, 129, 0.1);
  --soft-amber: rgba(212, 175, 55, 0.1);
  --soft-red: rgba(239, 68, 68, 0.1);
  --shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.6);

  /* Connect Vars Mapping - Dark Mode */
  --bg-gradient: linear-gradient(135deg, #0a0b0e 0%, #12141c 100%);
  --bg-color: #0d0f14;
  --card-bg: rgba(20, 24, 33, 0.7);
  --card-border: rgba(212, 175, 55, 0.15);
  --card-border-hover: rgba(212, 175, 55, 0.4);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --gold: #d4af37;
  --gold-hover: #e6c863;
  --gold-light: rgba(212, 175, 55, 0.1);
  --gold-glow: rgba(212, 175, 55, 0.3);
  --accent-red: #991b1b;
  --accent-blue: #1e3a8a;
  --soft-green-rgba: rgba(16, 185, 129, 0.15);
  --text-green: #34d399;
  --glass-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   Global Resets, Typography & Scrollbars
   ========================================================================== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
  word-break: keep-all;
  overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6, th, td, strong {
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--navy-light);
}

.dark-theme ::-webkit-scrollbar-thumb {
  background: var(--card-border);
}
.dark-theme ::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* Links */
a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 700;
  transition: opacity 0.2s;
}
a:hover {
  opacity: 0.8;
}

/* ==========================================================================
   Header & Unified Brand Logo
   ========================================================================== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: var(--transition);
}

.dark-theme header {
  background: rgba(13, 15, 20, 0.75);
  border-bottom: 1px solid var(--card-border);
}

.topbar, .header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 8px 24px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
}

.brand-logo svg {
  width: 26px;
  height: 26px;
  fill: var(--navy);
  transition: var(--transition);
}

.dark-theme .brand-logo svg {
  fill: var(--gold);
  filter: drop-shadow(0 0 8px var(--gold-glow));
}

.brand-logo:hover svg {
  transform: rotate(15deg) scale(1.05);
}

.brand-logo h1 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: 0.1em;
  text-transform: lowercase;
  margin: 0;
  display: flex;
  align-items: center;
}

.brand-logo h1 span {
  color: var(--navy);
  font-size: 15px;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-left: 4px;
}

.dark-theme .brand-logo h1 span {
  color: var(--gold);
}

/* Product Switcher Button styling */
.product-switch-btn {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1.2px solid var(--line);
  color: var(--muted);
  background: var(--paper);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 12px;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
}

.product-switch-btn::after {
  content: " →";
  font-size: 12px;
  transition: transform 0.2s ease;
}

.product-switch-btn:hover {
  border-color: var(--navy-light);
  color: var(--navy);
  background: var(--bg);
  opacity: 1;
}

.product-switch-btn:hover::after {
  transform: translateX(2px);
}

.dark-theme .product-switch-btn {
  border-color: var(--card-border);
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.25);
}

.dark-theme .product-switch-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212, 175, 55, 0.05);
}

/* Global Search Input styles */
.search-container, .search {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  max-width: 420px;
  width: 100%;
}

.search-container svg, .search svg {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  fill: var(--muted);
  pointer-events: none;
  flex-shrink: 0;
}

.search input, .search-container input {
  width: 100%;
  height: 36px;
  border: 1.5px solid var(--line);
  border-radius: 20px;
  padding: 0 16px 0 34px;
  font-size: 13px;
  background: var(--paper);
  color: var(--ink);
  transition: all 0.2s ease;
  outline: none;
}

.dark-theme .search input, .dark-theme .search-container input {
  border-color: var(--card-border);
  background: rgba(0, 0, 0, 0.25);
}

.search input:focus, .search-container input:focus {
  border-color: var(--navy-light);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.dark-theme .search input:focus, .dark-theme .search-container input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 15px var(--gold-glow);
  background: rgba(0, 0, 0, 0.4);
}

/* Navigation Tabs */
.tabs, .nav-tabs {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #f1f5f9;
}

.dark-theme .tabs, .dark-theme .nav-tabs {
  border-color: var(--card-border);
  background: rgba(0, 0, 0, 0.15);
}

.tabs button, .nav-tab-btn {
  border: 0;
  border-radius: 16px;
  padding: 6px 14px;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.tabs button svg, .nav-tab-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

.tabs button.active, .nav-tab-btn.active {
  background: var(--paper);
  color: var(--navy);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
  font-weight: 700;
}

.dark-theme .tabs button.active, .dark-theme .nav-tab-btn.active {
  background: var(--gold);
  color: #000;
  box-shadow: 0 4px 12px var(--gold-glow);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.2s ease;
}

.theme-toggle-btn svg {
  width: 16px;
  height: 16px;
  fill: var(--muted);
  transition: fill 0.2s ease;
}

.theme-toggle-btn:hover {
  border-color: var(--navy-light);
}

.theme-toggle-btn:hover svg {
  fill: var(--ink);
}

.dark-theme .theme-toggle-btn {
  border-color: var(--card-border);
  background: rgba(0, 0, 0, 0.25);
}

.dark-theme .theme-toggle-btn:hover {
  border-color: var(--gold);
}

.dark-theme .theme-toggle-btn svg {
  fill: var(--gold);
}

/* ==========================================================================
   Glassmorphic Panels & Cards
   ========================================================================== */
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.dark-theme .panel {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow), var(--glass-shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.panel:hover {
  border-color: var(--navy-light);
}

.dark-theme .panel:hover {
  border-color: var(--card-border-hover);
}

/* Panel visibility – only the active tab's panel is shown */
.admissions-main .panel {
  display: none;
}

.admissions-main .panel.active {
  display: block;
}

/* Dark theme sidebar */
.dark-theme .admissions-main aside {
  background: var(--card-bg);
  border-color: var(--card-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Table wrapper */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
  margin-top: 8px;
}

.dark-theme .table-wrap {
  border-color: var(--card-border);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.table-wrap th {
  padding: 14px 18px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  background: #faf9f6;
  border-bottom: 2px solid var(--line);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
}

.dark-theme .table-wrap th {
  background: #14171f;
  border-bottom-color: var(--card-border);
  color: var(--text-muted);
}

.table-wrap td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  vertical-align: middle;
  transition: background-color 0.2s ease;
}

.dark-theme .table-wrap td {
  border-bottom-color: var(--card-border);
}

.table-wrap tr:hover td {
  background: var(--soft-blue);
}

.dark-theme .table-wrap tr:hover td {
  background: rgba(212, 175, 55, 0.06);
}

.table-wrap td .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.table-wrap td .chip {
  padding: 2px 7px;
  font-size: 10.5px;
}

/* Reset button */
.reset-btn {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.reset-btn:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.dark-theme .reset-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ==========================================================================
   Modals (Shared Design Pattern)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.dark-theme .modal-overlay {
  background: rgba(5, 7, 10, 0.85);
  backdrop-filter: blur(12px);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  width: 90%;
  max-width: 480px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: grid;
  gap: 16px;
}

.dark-theme .modal-card {
  background: var(--bg-color);
  border-color: var(--gold);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
}

.modal-overlay.open .modal-card {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
  transition: var(--transition);
  z-index: 110;
}

.dark-theme .modal-close {
  background: rgba(0,0,0,0.4);
  border-color: var(--card-border);
}

.modal-close:hover {
  color: var(--navy);
  border-color: var(--navy);
}

.dark-theme .modal-close:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* ==========================================================================
   Admissions-Specific Component Styles
   ========================================================================== */
.filter-title {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
  font-size: 15px;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filters {
  padding: 20px;
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

select, input[type="number"] {
  width: 100%;
  height: 40px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--paper);
  font-size: 14px;
  transition: all 0.2s ease;
  outline: none;
}

.dark-theme select, .dark-theme input[type="number"] {
  border-color: var(--card-border);
  background: var(--bg-color);
}

select:focus, input[type="number"]:focus {
  border-color: var(--navy-light);
}

.dark-theme select:focus, .dark-theme input[type="number"]:focus {
  border-color: var(--gold);
}

.toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  margin-top: 8px;
}

.toggle span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.toggle input {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.kpi {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
  min-height: 94px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease;
}

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

.kpi span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kpi strong {
  display: block;
  color: var(--navy);
  font-size: 28px;
  font-weight: 800;
}

/* KPI as clickable tab switchers */
.kpi-tab {
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.kpi-tab.active {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(133, 77, 14, 0.12);
}

.dark-theme .kpi-tab.active {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.kpi-tab:not(.active):hover {
  border-color: var(--line);
  background: rgba(0, 0, 0, 0.02);
}

.dark-theme .kpi-tab:not(.active):hover {
  border-color: var(--card-border-hover);
  background: rgba(212, 175, 55, 0.04);
}

/* Faculty Role Badges */
.badge-teacher,
.badge-coach {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.badge-teacher {
  background: var(--soft-blue);
  color: var(--navy);
}

.badge-coach {
  background: var(--soft-amber);
  color: var(--amber);
}

.dark-theme .badge-teacher {
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold);
}

.dark-theme .badge-coach {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
}


.panel-head {
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg);
}

.panel-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
}

.panel-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.panel-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* View Toggle (카드 뷰 / 테이블 뷰) */
.view-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #f1f5f9;
}

.dark-theme .view-toggle {
  border-color: var(--card-border);
  background: rgba(0, 0, 0, 0.2);
}

.view-toggle button {
  border: none;
  background: transparent;
  padding: 5px 14px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  line-height: 1.4;
}

.view-toggle button + button {
  border-left: 1px solid var(--line);
}

.dark-theme .view-toggle button + button {
  border-left-color: var(--card-border);
}

.view-toggle button.active {
  background: var(--paper);
  color: var(--navy);
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.dark-theme .view-toggle button.active {
  background: var(--gold);
  color: #000;
  box-shadow: 0 2px 8px var(--gold-glow);
}

.view-toggle button:not(.active):hover {
  color: var(--ink);
  background: rgba(0, 0, 0, 0.03);
}

.dark-theme .view-toggle button:not(.active):hover {
  color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
}

/* Active Filter Chips (적용된 필터) */
.active-filters-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(180, 83, 9, 0.03);
}

.dark-theme .active-filters-container {
  background: rgba(212, 175, 55, 0.04);
  border-bottom-color: var(--card-border);
}

.active-filters-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 4px;
}

.active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  background: rgba(180, 83, 9, 0.08);
  border: 1px solid rgba(180, 83, 9, 0.18);
  transition: all 0.2s ease;
}

.dark-theme .active-filter-chip {
  color: var(--gold);
  background: rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.25);
}

.active-filter-chip button {
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  transition: color 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.active-filter-chip button:hover {
  color: var(--accent-red, #b91c1c);
  background: rgba(185, 28, 28, 0.1);
}

.dark-theme .active-filter-chip button:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 20px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  padding: 20px;
  min-height: 220px;
  display: grid;
  gap: 12px;
  align-content: start;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--navy-light);
}

.card h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--ink);
}

.sub {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

/* Chips and Badges */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  background: #f1f5f9;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.dark-theme .chip {
  background: rgba(255, 255, 255, 0.05);
}

.chip.green { background: var(--soft-green); color: var(--green); }
.chip.amber { background: var(--soft-amber); color: var(--amber); }
.chip.red { background: var(--soft-red); color: var(--red); }
.chip.blue { background: var(--soft-blue); color: var(--navy); }

.chip.interactive {
  cursor: pointer;
  transition: all 0.2s ease;
}
.chip.interactive:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  filter: brightness(0.95);
}

.detail {
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

.detail b {
  color: var(--ink);
  font-weight: 600;
}

.program-list {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.program-row {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  display: grid;
  grid-template-columns: 230px 1fr 170px 150px;
  gap: 16px;
  padding: 20px;
  align-items: start;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.program-row:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--navy-light);
}

.program-row h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
}

.program-row p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

/* Locked / Premium features */
.locked {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 8px;
  border: 1px dashed var(--line);
  padding: 10px;
  background: rgba(248, 250, 252, 0.5);
  transition: all 0.2s ease;
}

.dark-theme .locked {
  background: rgba(0, 0, 0, 0.2);
}

.locked:hover {
  background: rgba(254, 243, 199, 0.3);
  border-color: var(--amber);
}

.locked .premium-text {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
}

.locked::after {
  content: '🔒 Premium Unlock';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber);
  font-weight: 800;
  font-size: 12px;
  backdrop-filter: blur(1px);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.locked:hover::after {
  opacity: 1;
}

.lock-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--amber);
  background: var(--soft-amber);
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 6px;
}

.table-wrap {
  overflow: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 900px;
  font-size: 13px;
}

th, td {
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  color: var(--ink);
}

th {
  background: var(--navy);
  color: var(--paper);
  position: sticky;
  top: 0;
  font-weight: 700;
}

.dark-theme th {
  color: #000;
  background: var(--gold);
}

tr.clickable:hover {
  background: var(--soft-blue);
}

.empty {
  padding: 40px;
  color: var(--muted);
  text-align: center;
  font-size: 15px;
  font-weight: 500;
}

/* Compare Drawer */
.compare-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--paper);
  border-top: 2.5px solid var(--navy-light);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
  z-index: 600;
  transform: translateY(100%);
  transition: var(--transition);
}

.dark-theme .compare-drawer {
  background: var(--bg-color);
  border-top-color: var(--gold);
}

.compare-drawer.open {
  transform: translateY(0);
}

.compare-drawer-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

/* Metrics Console */
.metrics-panel {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  z-index: 500;
  width: 220px;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.3s ease;
}

.dark-theme .metrics-panel {
  background: rgba(20, 24, 33, 0.95);
  border-color: var(--card-border);
}

.metrics-panel h4 {
  margin: 0;
  color: var(--navy);
  font-weight: 800;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
}

.metrics-row {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-weight: 500;
}
.metrics-row strong {
  color: var(--ink);
}

.reset-btn {
  background: #f1f5f9;
  border: 0;
  border-radius: 4px;
  padding: 4px;
  cursor: pointer;
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  transition: background 0.2s;
  font-weight: 600;
}
.dark-theme .reset-btn {
  background: rgba(255, 255, 255, 0.05);
}
.reset-btn:hover {
  background: var(--line);
  color: var(--ink);
}

/* Modal Details (Admissions) */
.modal-card.detail-modal {
  max-width: 800px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  text-align: left;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

#detailModalContent {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.detail-header {
  border-bottom: 2px solid var(--navy-light);
  padding-bottom: 16px;
  margin-bottom: 8px;
}

.dark-theme .detail-header {
  border-bottom-color: var(--gold);
}

.detail-header h2 {
  margin: 0 0 6px 0 !important;
  font-size: 26px !important;
  color: var(--navy) !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
}

.dark-theme .detail-header h2 {
  color: var(--gold) !important;
}

.detail-header .sub {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

.detail-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-section-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  border-bottom: 1.5px solid var(--line);
  padding-bottom: 8px;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.dark-theme .detail-section-title {
  color: var(--gold);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: var(--transition);
}
.dark-theme .detail-item {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--card-border);
}
.detail-item:hover {
  border-color: var(--navy-light);
  transform: translateY(-1px);
}
.dark-theme .detail-item:hover {
  border-color: var(--gold);
}
.detail-item-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--navy);
  letter-spacing: 0.05em;
}
.dark-theme .detail-item-label {
  color: var(--gold);
}
.detail-item-value {
  font-size: 13.5px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.5;
  word-break: keep-all;
}

/* ==========================================================================
   Connect-Specific Component Styles
   ========================================================================== */
.sidebar-left, .sidebar-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-card-mini {
  text-align: center;
  position: relative;
}

.cover-art-mini {
  height: 64px;
  background: linear-gradient(to right, var(--gold), var(--accent-red));
  opacity: 0.8;
}

.avatar-container {
  margin-top: -36px;
  display: inline-flex;
  border-radius: 50%;
  padding: 4px;
  background: var(--bg-color);
  border: 2px solid var(--gold);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.avatar-container svg {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  fill: var(--text-muted);
  background: rgba(0,0,0,0.2);
}

.profile-info-mini {
  padding: 16px 20px 20px;
}
.profile-info-mini h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-main);
}
.profile-info-mini p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 12px;
}

.instrument-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--gold-light);
  border: 1px solid var(--gold);
  color: var(--gold);
}

.profile-stats-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--card-border);
  padding: 12px 0;
}

.stat-box {
  text-align: center;
}
.stat-box:first-child {
  border-right: 1px solid var(--card-border);
}
.stat-box span {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.stat-box strong {
  display: block;
  font-size: 16px;
  color: var(--gold);
  margin-top: 2px;
}

.subscriptions-list {
  padding: 16px 20px;
}
.subscriptions-list h4 {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--gold);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.sub-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  text-decoration: none;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
}
.sub-item:hover {
  color: var(--gold);
}
.sub-item svg {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  fill: var(--text-muted);
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--card-border);
}

.main-pane {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Create Post Section */
.create-post-panel {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.create-post-top {
  display: flex;
  gap: 12px;
  align-items: center;
}
.create-post-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.create-post-avatar svg {
  width: 20px;
  height: 20px;
  fill: var(--gold);
}
.create-post-trigger {
  flex: 1;
  height: 40px;
  border-radius: 20px;
  border: 1px solid var(--card-border);
  background: rgba(0,0,0,0.2);
  color: var(--text-muted);
  font-size: 13px;
  padding: 0 16px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: var(--transition);
}
.create-post-trigger:hover {
  background: rgba(0,0,0,0.3);
  border-color: var(--gold);
}
.create-post-actions {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--card-border);
  padding-top: 12px;
}

.post-action-btn {
  background: transparent;
  border: 0;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  transition: var(--transition);
}
.post-action-btn:hover {
  color: var(--gold);
  background: var(--gold-light);
}
.post-action-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Directory filters in connect */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid var(--card-border);
  align-items: center;
}
.filter-select {
  height: 34px;
  border: 1px solid var(--card-border);
  background: var(--bg-color);
  color: var(--text-main);
  padding: 0 10px;
  border-radius: 6px;
  font-size: 12px;
  font-family: var(--font-body);
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}
.filter-select:focus, .filter-select:hover {
  border-color: var(--gold);
}
.filter-chip {
  padding: 4px 12px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  transition: var(--transition);
}
.filter-chip.active {
  background: var(--gold-light);
  border-color: var(--gold);
  color: var(--gold);
}

/* Posts Feed List */
.feed-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.post-card {
  padding: 20px;
}
.post-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 14px;
}
.post-author-info {
  display: flex;
  gap: 12px;
  align-items: center;
}
.post-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: rgba(0,0,0,0.2);
}
.post-author-details h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-main);
  transition: var(--transition);
}
.post-author-details h4:hover {
  color: var(--gold);
}
.post-author-details p {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}
.post-time {
  font-size: 11px;
  color: var(--text-muted);
}
.post-content {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
  color: var(--text-main);
  white-space: pre-line;
}

/* Custom Audio snippet styling */
.post-audio-widget {
  background: rgba(0,0,0,0.3);
  border: 1.5px solid var(--card-border);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  transition: var(--transition);
}
.post-audio-widget:hover {
  border-color: var(--gold-glow);
}
.play-btn-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold);
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.play-btn-circle:hover {
  transform: scale(1.08);
  background: var(--gold-hover);
  box-shadow: 0 0 15px var(--gold-glow);
}
.play-btn-circle svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.audio-waveform-container {
  display: grid;
  grid-template-rows: auto auto;
  gap: 6px;
}
.audio-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
}
.waveform-visuals {
  height: 24px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
}
.wave-bar {
  flex: 1;
  height: 20%;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 1px;
  transition: height 0.1s ease;
}
.playing .wave-bar {
  background: var(--gold);
  animation: bounceWave 0.8s ease infinite alternate;
}
.playing .wave-bar:nth-child(2n) { animation-delay: 0.1s; }
.playing .wave-bar:nth-child(3n) { animation-delay: 0.25s; }
.playing .wave-bar:nth-child(4n) { animation-delay: 0.4s; }

@keyframes bounceWave {
  0% { height: 10%; }
  100% { height: 100%; }
}

.post-stats-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--card-border);
  margin-bottom: 10px;
}
.post-footer-actions {
  display: flex;
  justify-content: space-between;
}

.reaction-selector-wrap {
  position: relative;
}
.bravo-popup {
  position: absolute;
  bottom: 100%;
  left: 0;
  background: var(--bg-color);
  border: 1px solid var(--gold);
  border-radius: 20px;
  padding: 4px 8px;
  display: flex;
  gap: 6px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 10;
}
.reaction-selector-wrap:hover .bravo-popup {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-5px);
}
.reaction-item-btn {
  background: transparent;
  border: 0;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.2s;
}
.reaction-item-btn:hover {
  transform: scale(1.3);
}

/* Comments section */
.comments-section {
  border-top: 1px solid var(--card-border);
  padding-top: 14px;
  margin-top: 12px;
  display: none;
  flex-direction: column;
  gap: 10px;
}
.comments-section.open {
  display: flex;
}
.comment-input-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.comment-input-row input {
  flex: 1;
  height: 32px;
  border: 1px solid var(--card-border);
  background: rgba(0,0,0,0.2);
  border-radius: 16px;
  padding: 0 12px;
  color: var(--text-main);
  font-size: 12px;
  outline: none;
}
.comment-input-row input:focus {
  border-color: var(--gold);
}
.comment-submit-btn {
  background: var(--gold);
  color: #000;
  border: 0;
  border-radius: 12px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.comment-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.comment-card {
  background: rgba(0,0,0,0.15);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--text-main);
}
.comment-author {
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 2px;
}

/* Musicians Directory Grid */
.musicians-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 20px;
}
.musician-card {
  background: rgba(0,0,0,0.15);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: var(--transition);
}
.musician-card:hover {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.musician-card-header {
  display: flex;
  gap: 12px;
}
.musician-card-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: rgba(0,0,0,0.2);
}
.musician-card-details h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-main);
}
.musician-card-details h4:hover {
  color: var(--gold);
}
.musician-card-details p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 1px;
}
.musician-lineage-snippet {
  font-size: 11px;
  color: var(--gold);
  font-style: italic;
  margin-top: 4px;
}
.musician-card-actions {
  display: flex;
  gap: 8px;
  border-top: 1px solid var(--card-border);
  padding-top: 12px;
}

/* Connect Action Button shapes */
.btn {
  flex: 1;
  height: 32px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
}
.btn-gold-outline {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
}
.btn-gold-outline:hover {
  background: var(--gold-light);
}
.btn-gold-solid {
  background: var(--gold);
  border: 0;
  color: #000;
}
.btn-gold-solid:hover {
  background: var(--gold-hover);
  box-shadow: 0 0 10px var(--gold-glow);
}
.btn-pending {
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed var(--card-border);
  color: var(--text-muted);
  cursor: not-allowed;
}
.btn-connected {
  background: var(--soft-green-rgba);
  border: 1px solid var(--text-green);
  color: var(--text-green);
  cursor: default;
}

/* Channels List Panel */
.channels-list-pane {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
}
.channel-row-card {
  background: rgba(0,0,0,0.15);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
}
.channel-logo-large {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  fill: var(--gold);
  background: rgba(0,0,0,0.2);
  border: 1.5px solid var(--card-border);
}
.channel-info h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}
.channel-info p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.channel-subscribe-btn {
  width: 100px;
  height: 32px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  transition: var(--transition);
}
.channel-subscribe-btn.subscribed {
  background: var(--gold);
  color: #000;
}

/* Right Sidebar Recommendations widgets */
.sidebar-widget {
  padding: 16px 20px;
}
.sidebar-widget h4 {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--gold);
  margin-bottom: 12px;
  text-transform: uppercase;
  border-bottom: 1.5px solid var(--card-border);
  padding-bottom: 6px;
}
.widget-musician-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.02);
}
.widget-musician-item:last-child {
  border: 0;
}
.widget-musician-info {
  display: flex;
  gap: 8px;
  align-items: center;
}
.widget-musician-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: rgba(0,0,0,0.2);
}
.widget-musician-details h5 {
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-main);
}
.widget-musician-details h5:hover {
  color: var(--gold);
}
.widget-musician-details p {
  font-size: 11px;
  color: var(--text-muted);
}
.widget-connect-btn {
  background: transparent;
  border: 0;
  color: var(--gold);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  transition: var(--transition);
}
.widget-connect-btn:hover {
  color: var(--gold-hover);
  text-decoration: underline;
}

/* Concert schedules */
.concert-item {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.02);
}
.concert-item:last-child {
  border: 0;
}
.concert-date {
  font-size: 10px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.concert-title {
  font-size: 13px;
  font-weight: 700;
  margin: 2px 0;
  color: var(--text-main);
}
.concert-location {
  font-size: 11px;
  color: var(--text-muted);
}

/* Musician Profile Detail Modal contents */
.profile-modal-cover {
  height: 120px;
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-red) 100%);
  position: relative;
}
.profile-modal-header {
  padding: 0 32px 24px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: flex-end;
  margin-top: -60px;
  position: relative;
  border-bottom: 1px solid var(--card-border);
}
.profile-modal-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  background: var(--bg-color);
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}
.profile-modal-title-info {
  padding-bottom: 8px;
}
.profile-modal-title-info h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
}
.profile-modal-title-info p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}
.profile-modal-badges {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.profile-modal-body {
  padding: 24px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.modal-section-title {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.05em;
  color: var(--gold);
  border-bottom: 1.5px solid var(--card-border);
  padding-bottom: 8px;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.modal-bio-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-main);
}

/* Lineage Graphical Nodes */
.lineage-graph-container {
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.lineage-node {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  text-align: center;
  width: 100%;
  max-width: 220px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}
.lineage-node strong {
  display: block;
  color: var(--text-main);
}
.lineage-node span {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}
.lineage-node.active-node {
  border-color: var(--gold);
  box-shadow: 0 0 10px var(--gold-glow);
}
.lineage-arrow {
  width: 2px;
  height: 20px;
  background: var(--gold);
  position: relative;
}
.lineage-arrow::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px 4px 0;
  border-style: solid;
  border-color: var(--gold) transparent transparent;
}

.profile-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.bullet-list {
  list-style-type: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bullet-list li {
  font-size: 13px;
  padding-left: 14px;
  position: relative;
  color: var(--text-main);
}
.bullet-list li::before {
  content: '•';
  color: var(--gold);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Post creator styling */
.post-modal-card {
  max-width: 500px;
  width: 90%;
  padding: 24px;
  background: var(--bg-color);
  border: 1.5px solid var(--gold);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.post-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.post-modal-header h3 {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--gold);
}
.post-modal-body textarea {
  width: 100%;
  height: 120px;
  background: rgba(0,0,0,0.25);
  border: 1.5px solid var(--card-border);
  border-radius: 8px;
  padding: 12px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 14px;
  resize: none;
  outline: none;
  margin-bottom: 12px;
  transition: var(--transition);
}
.post-modal-body textarea:focus {
  border-color: var(--gold);
}

.audio-upload-mock {
  background: rgba(0,0,0,0.15);
  border: 1px dashed var(--card-border);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  margin-bottom: 16px;
  color: var(--text-muted);
}
.audio-upload-mock select {
  height: 28px;
  border: 1px solid var(--card-border);
  background: var(--bg-color);
  color: var(--text-main);
  padding: 0 8px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 11px;
  cursor: pointer;
}

/* Toast container */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: var(--bg-color);
  border: 1.5px solid var(--gold);
  border-left: 5px solid var(--gold);
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 13px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
  transform: translateX(-120%);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.toast.show {
  transform: translateX(0);
}
.toast svg {
  width: 18px;
  height: 18px;
  fill: var(--gold);
}

/* ==========================================================================
   Page-Specific Layout grids
   ========================================================================== */
.admissions-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 24px 64px;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.admissions-main aside {
  position: sticky;
  top: 60px;
  align-self: start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.admissions-main .content {
  min-width: 0;
}

.connect-main {
  max-width: 1200px;
  width: 100%;
  margin: 24px auto;
  padding: 0 24px 60px;
  display: grid;
  grid-template-columns: 260px 1fr 280px;
  gap: 24px;
  align-items: start;
}

/* ==========================================================================
   Compare Layouts (Admissions)
   ========================================================================== */
.compare-items {
  display: flex;
  gap: 12px;
  align-items: center;
  overflow-x: auto;
}
.compare-item-chip {
  background: var(--soft-blue);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}
.compare-item-chip button {
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
}
.compare-item-chip button:hover {
  color: var(--red);
}

.school-compare-chk,
.program-compare-chk {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--navy);
  transition: transform 0.2s ease;
}

.school-compare-chk:hover,
.program-compare-chk:hover {
  transform: scale(1.1);
}

.compare-chk-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 8px;
  text-transform: none;
  letter-spacing: normal;
}

.compare-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 24px;
  border-radius: 8px;
  border: 1px solid var(--line);
  -webkit-overflow-scrolling: touch;
}

.dark-theme .compare-table-wrap {
  border-color: var(--card-border);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.compare-table th, .compare-table td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
}
.compare-table th {
  background: var(--bg);
  color: var(--navy);
  font-weight: 800;
  width: 150px;
}
.compare-table td {
  background: var(--paper);
}
.compare-table td.header-cell {
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  background: var(--bg);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1160px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .program-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .topbar, .header-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 8px;
    padding: 12px 16px;
  }
  .brand-logo {
    justify-content: center;
  }
  .product-switch-btn {
    margin-left: 0;
    margin-top: 4px;
  }
  .search, .search-container {
    margin: 4px auto 0;
    max-width: 100%;
  }
  .header-nav {
    justify-content: center;
    margin-top: 4px;
  }
  .admissions-main, .connect-main { grid-template-columns: 1fr; }
  .admissions-main aside { position: static; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid { grid-template-columns: 1fr; }
  .program-row { grid-template-columns: 1fr; }
  .sidebar-left, .sidebar-right {
    grid-column: span 1;
  }
}

@media (max-width: 780px) {
  .header-container {
    grid-template-columns: 1fr;
  }
  .search, .search-container {
    margin-top: 8px;
  }
  .musicians-grid {
    grid-template-columns: 1fr;
  }
  .profile-modal-grid {
    grid-template-columns: 1fr;
  }
  
  /* Mobile table column hiding for secondary columns */
  .table-wrap th:nth-child(4),
  .table-wrap td:nth-child(4),
  .table-wrap th:nth-child(5),
  .table-wrap td:nth-child(5) {
    display: none !important;
  }
}

/* Premium Modal Styles */
.modal-icon {
  font-size: 40px;
  text-align: center;
  margin-bottom: 8px;
}

#premiumModal h2 {
  text-align: center;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 8px;
}

#premiumModal p {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.modal-benefits {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--soft-blue);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
}

.dark-theme .modal-benefits {
  background: rgba(212, 175, 55, 0.05);
  border-color: var(--card-border);
}

.benefit-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.4;
}

.benefit-bullet {
  color: var(--navy-light);
  font-weight: 800;
  flex-shrink: 0;
}

.dark-theme .benefit-bullet {
  color: var(--gold);
}

#waitlistContainer {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  text-align: center;
}

.dark-theme #waitlistContainer {
  border-top-color: var(--card-border);
}

#waitlistForm {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

#waitlistEmail {
  flex-grow: 1;
  height: 42px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease;
}

#waitlistEmail:focus {
  border-color: var(--navy-light);
}

.dark-theme #waitlistEmail {
  border-color: var(--card-border);
  background: var(--bg-color);
}

.dark-theme #waitlistEmail:focus {
  border-color: var(--gold);
}

#waitlistForm button {
  height: 42px;
  padding: 0 20px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

#waitlistForm button:hover {
  opacity: 0.9;
}

.dark-theme #waitlistForm button {
  background: var(--gold);
  color: var(--bg-color);
}

.success-msg {
  display: none;
  background: #f0fdf4;
  border: 1px solid #bcf0da;
  color: #15803d;
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 12px;
  text-align: center;
  line-height: 1.4;
}

.dark-theme .success-msg {
  background: rgba(21, 128, 61, 0.15);
  border-color: rgba(21, 128, 61, 0.3);
  color: #4ade80;
}

/* ==========================================================================
   Mobile Filter Drawer & Smart Comparison Highlights
   ========================================================================== */
.mobile-filter-trigger {
  display: none;
  width: 100%;
  padding: 12px;
  background: var(--navy);
  color: #fff;
  border: 0;
  border-radius: 10px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 16px;
  transition: background 0.2s ease;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.dark-theme .mobile-filter-trigger {
  background: var(--gold);
  color: var(--bg-color);
}
.mobile-filter-trigger:hover {
  opacity: 0.95;
}

.aside-close-btn {
  display: none;
  background: none;
  border: 0;
  font-size: 24px;
  cursor: pointer;
  color: var(--muted);
  transition: color 0.2s;
  padding: 0;
  line-height: 1;
}
.aside-close-btn:hover {
  color: var(--ink);
}

.aside-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 990;
}
.aside-overlay.open {
  display: block;
}

/* Smart comparison highlight */
.highlight-best {
  background-color: rgba(21, 128, 61, 0.05) !important;
  font-weight: 700 !important;
  border: 1px dashed #15803d !important;
}
.dark-theme .highlight-best {
  background-color: rgba(52, 211, 153, 0.08) !important;
  border: 1px dashed #34d399 !important;
}

@media (max-width: 860px) {
  .admissions-main {
    grid-template-columns: 1fr !important;
  }
  .mobile-filter-trigger {
    display: flex;
  }
  .admissions-main aside {
    position: fixed !important;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100vh;
    background: var(--paper) !important;
    z-index: 1000;
    margin: 0;
    border-radius: 0;
    box-shadow: 10px 0 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
  }
  .admissions-main aside.open {
    transform: translateX(320px);
  }
  .aside-close-btn {
    display: block;
  }
}

/* Repertoire Matcher Layout */
.repertoire-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 16px;
}
@media (max-width: 960px) {
  .repertoire-layout {
    grid-template-columns: 1fr;
  }
}
.repertoire-builder-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.dark-theme .repertoire-builder-box {
  border-color: var(--card-border);
}
.repertoire-builder-box h3 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 16px;
  color: var(--navy);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 8px;
}
.repertoire-builder-box label {
  margin-bottom: 12px;
}
.repertoire-add-btn {
  width: 100%;
  padding: 10px;
  background: var(--navy);
  color: var(--paper);
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.repertoire-add-btn:hover {
  opacity: 0.9;
}
.repertoire-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.repertoire-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--soft-blue);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  transition: all 0.2s;
}
.dark-theme .repertoire-item {
  background: var(--card-bg);
  border-color: var(--card-border);
}
.repertoire-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.repertoire-item-title {
  font-weight: 700;
  color: var(--ink);
}
.repertoire-item-meta {
  font-size: 11px;
  color: var(--muted);
}
.repertoire-remove-btn {
  background: none;
  border: none;
  color: var(--red);
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}
.repertoire-remove-btn:hover {
  font-weight: bold;
}

/* Match Results */
.repertoire-results-box h3 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 16px;
  color: var(--navy);
}
.match-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.match-card {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 160px;
}
.dark-theme .match-card {
  border-color: var(--card-border);
}
.match-card.perfect {
  border-color: #22c55e;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.08);
}
.dark-theme .match-card.perfect {
  border-color: #10b981;
}
.match-card-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 8px;
}
.match-school-name {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}
.match-program-level {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  margin-top: 4px;
}
.match-score-badge {
  font-size: 12px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 20px;
  background: #f1f5f9;
  color: #64748b;
}
.dark-theme .match-score-badge {
  background: #1e293b;
  color: #94a3b8;
}
.match-card.perfect .match-score-badge {
  background: #dcfce7;
  color: #15803d;
}
.dark-theme .match-card.perfect .match-score-badge {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}
.match-card-body {
  margin: 12px 0;
  flex-grow: 1;
}
.match-progress-bar-container {
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}
.dark-theme .match-progress-bar-container {
  background: #334155;
}
.match-progress-bar {
  height: 100%;
  background: var(--gold);
  transition: width 0.3s ease;
}
.match-card.perfect .match-progress-bar {
  background: #22c55e;
}
.dark-theme .match-card.perfect .match-progress-bar {
  background: #10b981;
}
.match-gap-analysis {
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}
.match-gap-analysis strong {
  color: var(--ink);
}
.match-card-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 8px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}
.dark-theme .match-card-footer {
  border-color: var(--card-border);
}

/* Interactive Lineage Tree Styles */
.lineage-h-tree {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 16px;
  padding: 16px;
  background: var(--soft-blue);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  margin-top: 8px;
  transition: all 0.2s ease;
}
.dark-theme .lineage-h-tree {
  background: rgba(212, 175, 55, 0.03);
  border-color: var(--card-border);
}
.lineage-h-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  flex: 1;
}
.lineage-h-col.center-col {
  flex: 1.2;
}
.lineage-h-col span {
  font-size: 9.5px;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.lineage-h-arrow {
  font-size: 18px;
  color: var(--gold);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  flex-shrink: 0;
  width: auto;
  height: auto;
  background: none;
  position: static;
}
.lineage-h-arrow::after {
  content: none !important;
}
.lineage-h-node {
  width: 100%;
  padding: 8px 12px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  text-align: center;
  font-weight: 600;
  color: var(--ink);
  transition: all 0.2s ease;
}
.dark-theme .lineage-h-node {
  background: var(--card-bg);
  border-color: var(--card-border);
}
.lineage-h-node.interactive-node {
  border-style: solid;
  cursor: pointer;
  background: var(--soft-blue);
}
.lineage-h-node.interactive-node:hover {
  border-color: var(--gold);
  background: var(--paper);
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}
.dark-theme .lineage-h-node.interactive-node {
  background: rgba(212, 175, 55, 0.06);
}
.dark-theme .lineage-h-node.interactive-node:hover {
  background: var(--card-bg);
}
.lineage-h-node-desc {
  font-size: 10px;
  color: var(--muted);
  font-weight: 500;
  margin-top: 2px;
}
@media (max-width: 600px) {
  .lineage-h-tree {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .lineage-h-col {
    width: 100%;
    max-width: 260px;
  }
  .lineage-h-arrow {
    transform: rotate(90deg);
  }
}

/* LinkedIn Style Profile Page */
.profile-page-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeIn 0.3s ease-in-out;
}
.profile-header-card {
  position: relative;
  overflow: hidden;
  padding: 0 0 24px 0 !important;
}
.profile-cover {
  height: 140px;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--card-bg) 100%);
  width: 100%;
}
.profile-avatar-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 24px;
  margin-top: -60px;
  margin-bottom: 16px;
}
.profile-avatar-large {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 4px solid var(--paper);
  background: var(--card-bg);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.dark-theme .profile-avatar-large {
  border-color: #1a1d24;
}
.profile-header-details {
  padding: 0 24px;
}
.profile-header-details h2 {
  font-size: 24px;
  margin: 0 0 4px 0;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
}
.dark-theme .profile-header-details h2 {
  color: var(--text-main);
}
.profile-headline {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 8px;
  line-height: 1.4;
}
.profile-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}
.profile-meta-row span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.profile-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0 24px;
  align-items: center;
}
.profile-card-section {
  padding: 24px !important;
}
.profile-card-section h3 {
  font-size: 18px;
  margin-top: 0;
  margin-bottom: 16px;
  font-family: var(--font-display);
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  color: var(--ink);
}
.dark-theme .profile-card-section h3 {
  color: var(--text-main);
  border-color: var(--card-border);
}
.profile-about-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
}
.dark-theme .profile-about-text {
  color: var(--text-main);
}
.profile-list {
  padding-left: 20px;
  margin: 0;
}
.profile-list li {
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--ink);
  line-height: 1.4;
}
.dark-theme .profile-list li {
  color: var(--text-main);
}
.profile-lineage-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
}
.btn-profile-back {
  background: none;
  border: none;
  color: var(--gold);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  padding: 8px 16px;
  margin-bottom: 10px;
  transition: all 0.2s ease;
}
.btn-profile-back:hover {
  opacity: 0.8;
  transform: translateX(-2px);
}
