/* MKM Lodge - Desktop-only Premium Style */
/* Light, premium, masonic-elite aesthetic */

:root {
  /* Colors - Light premium palette */
  --bg-primary: #1A1A1A;
  --bg-secondary: #242424;
  --bg-elevated: #2A2A2A;
  --bg-hover: #333333;
  
  --border: rgba(255, 255, 255, 0.1);
  --border-accent: rgba(212, 175, 55, 0.3);
  
  --text-primary: #E8E8E8;
  --text-secondary: #B0B0B0;
  --text-muted: #808080;
  
  --accent-gold: #D4AF37;
  --accent-bronze: #CD7F32;
  
  --success: #4A9B6E;
  --warning: #9B8A5C;
  --error: #B85C5C;
  
  /* Typography */
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Inter', sans-serif;
  
  --text-xs: 11px;
  --text-sm: 13px;
  --text-base: 15px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 32px;
  
  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-2xl: 32px;
  --space-3xl: 48px;
  
  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  
  /* Container */
  --container-max: 1400px;
  --container-padding: 32px;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hidden {
  display: none !important;
}

.view {
  min-height: 100vh;
}

/* ====== SECRET GATE ====== */

#secret-gate-view {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1A1A1A 0%, #0F0F0F 100%);
}

.gate-container {
  width: 100%;
  max-width: 500px;
  padding: var(--container-padding);
}

.gate-content {
  text-align: center;
}

.gate-title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-gold);
  margin-bottom: var(--space-sm);
}

.gate-subtitle {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  letter-spacing: 0.05em;
}

.gate-description {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-2xl);
}

.gate-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.gate-input {
  width: 100%;
  padding: var(--space-lg) var(--space-xl);
  font-size: var(--text-xl);
  text-align: center;
  letter-spacing: 0.15em;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'SF Mono', monospace;
  transition: all 0.2s ease;
}

.gate-input:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.1);
}

.gate-btn {
  padding: var(--space-lg) var(--space-2xl);
  font-size: var(--text-base);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--accent-gold);
  color: #000;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.gate-btn:hover {
  background: #E5C158;
  transform: translateY(-1px);
}

.gate-error {
  color: var(--error);
  font-size: var(--text-sm);
  min-height: 20px;
}

/* ====== LOGIN ====== */

#login-view {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1A1A1A 0%, #0F0F0F 100%);
}

.login-container {
  width: 100%;
  max-width: 450px;
  padding: var(--container-padding);
}

.login-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3xl);
}

.login-title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 600;
  text-align: center;
  margin-bottom: var(--space-sm);
  letter-spacing: 0.05em;
}

.login-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-2xl);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-field label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
}

.form-input {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: var(--text-base);
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.1);
}

.login-btn {
  padding: var(--space-md) var(--space-xl);
  font-size: var(--text-base);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--accent-gold);
  color: #000;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.login-btn:hover {
  background: #E5C158;
}

.form-error {
  color: var(--error);
  font-size: var(--text-sm);
  min-height: 20px;
}

/* ====== HEADER ====== */

.app-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: var(--space-lg) 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-brand {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-gold);
  line-height: 1.2;
}

.brand-subtitle {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

.header-nav {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.nav-item {
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--text-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-item:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.nav-item.active {
  color: var(--accent-gold);
  border-color: var(--border-accent);
}

.nav-item--exit {
  color: var(--error);
}

.nav-item--exit:hover {
  background: rgba(184, 92, 92, 0.1);
  border-color: rgba(184, 92, 92, 0.3);
}

/* ====== DASHBOARD ====== */

.dashboard-main {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-2xl) var(--container-padding);
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.dashboard-title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  letter-spacing: 0.02em;
}

.dashboard-subtitle {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.dashboard-header-right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.messages-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: radial-gradient(circle at top left,
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0.02));
  cursor: pointer;
  color: rgba(255, 255, 255, 0.9);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}

.messages-icon-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, #6BFFB5, #1F8F5C);
  box-shadow: 0 0 8px rgba(107, 255, 181, 0.9);
}

.messages-icon-label {
  opacity: 0.9;
}

.messages-icon-btn:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: radial-gradient(circle at top left,
    rgba(255, 255, 255, 0.18),
    rgba(255, 255, 255, 0.04));
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.kpi-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-xl);
}

.kpi-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
  font-weight: 600;
}

.kpi-value {
  font-size: var(--text-2xl);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-family: 'SF Mono', monospace;
  color: var(--text-primary);
}

.dashboard-toolbar {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  align-items: center;
}

.toolbar-search {
  flex: 1;
}

.search-input {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: var(--text-base);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-gold);
}

.sort-select,
.status-filter {
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: var(--text-base);
  cursor: pointer;
}

.members-table-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.members-table {
  width: 100%;
  border-collapse: collapse;
}

.members-table thead {
  background: var(--bg-elevated);
}

.members-table th {
  padding: var(--space-lg);
  text-align: left;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

.members-table th.col-rating,
.members-table th.col-contribution {
  text-align: right;
}

.members-table th.col-status {
  text-align: center;
}

.members-table td {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border);
}

.members-table tbody tr {
  cursor: pointer;
  transition: background 0.15s ease;
}

.members-table tbody tr:hover {
  background: var(--bg-hover);
}

.members-table td.col-rating,
.members-table td.col-contribution {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-family: 'SF Mono', monospace;
}

.members-table td.col-status {
  text-align: center;
}

.status-badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.status-active {
  background: rgba(74, 155, 110, 0.15);
  color: var(--success);
  border: 1px solid rgba(74, 155, 110, 0.3);
}

.status-inactive {
  background: rgba(155, 138, 92, 0.15);
  color: var(--warning);
  border: 1px solid rgba(155, 138, 92, 0.3);
}

.status-rejected {
  background: rgba(184, 92, 92, 0.15);
  color: var(--error);
  border: 1px solid rgba(184, 92, 92, 0.3);
}

.loading-state,
.empty-state,
.error-state {
  padding: var(--space-3xl);
  text-align: center;
  color: var(--text-muted);
}

/* ====== CHAMBER ====== */

/* ====== CHAMBER - КОМПАКТНЫЙ ДИЗАЙН БЕЗ СКРОЛЛА ====== */

.chamber-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 40px;
  position: relative;
  /* Убираем отдельный фон, чтобы вся страница выглядела цельно
     и использовала общий фон приложения */
  background: transparent;
}

.back-btn {
  margin-bottom: 20px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.back-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transition: left 0.5s ease;
}

.back-btn:hover {
  color: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(-2px);
}

.back-btn:hover::before {
  left: 100%;
}

.chamber-card {
  background: radial-gradient(circle at top left,
      rgba(32, 32, 36, 0.98),
      rgba(18, 18, 20, 0.98));
  border-radius: 18px;
  padding: 32px 40px 28px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  border: 1px solid rgba(220, 190, 120, 0.28);
}

.chamber-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.10), transparent 55%),
    radial-gradient(circle at 90% 100%, rgba(255, 215, 128, 0.10), transparent 60%);
  opacity: 0.28;
  pointer-events: none;
}

.chamber-header {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: none;
  position: relative;
}

.chamber-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(255, 255, 255, 0.08) 20%,
    rgba(255, 255, 255, 0.08) 80%,
    transparent 100%);
}

.chamber-sigil {
  position: absolute;
  top: -18px;
  right: 18px;
  width: 60px;
  height: 60px;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg width='64' height='64' viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'><defs><radialGradient id='g' cx='50%25' cy='50%25' r='50%25'><stop offset='0%25' stop-color='%2325252b'/><stop offset='100%25' stop-color='%23050607'/></radialGradient></defs><circle cx='32' cy='32' r='29' fill='url(%23g)' stroke='%23d8b46a' stroke-width='1.4'/><path d='M12 32c4-8 12-13 20-13s16 5 20 13c-4 8-12 13-20 13S16 40 12 32z' fill='none' stroke='%23e6c683' stroke-width='1.4'/><circle cx='32' cy='32' r='6' fill='none' stroke='%23e6c683' stroke-width='1.3'/><circle cx='32' cy='32' r='2' fill='%23e6c683'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.9;
}

.chamber-name {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 400;
  margin: 0 0 10px 0;
  color: rgba(255, 255, 255, 0.98);
  letter-spacing: 0.02em;
  line-height: 1.3;
  position: relative;
  display: block;
}

.chamber-name--masked {
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 32px;
  color: rgba(255, 255, 255, 0.78);
}

.info-value--masked {
  font-family: 'SF Mono', monospace;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.chamber-code {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  font-family: 'SF Mono', monospace;
  letter-spacing: 0.18em;
  font-weight: 400;
  padding: 6px 14px;
  background: linear-gradient(135deg, rgba(17, 20, 22, 0.9), rgba(40, 40, 44, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 6px;
  display: inline-block;
  transition: all 0.3s ease;
}

.chamber-code:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.chamber-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 0;
}

.chamber-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

/* Более выразительный визуал для RATING секции */
.chamber-section:nth-child(2) {
  background: radial-gradient(circle at top left,
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0.02));
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.chamber-section:nth-child(2) .section-title {
  letter-spacing: 0.18em;
}

.chamber-section:nth-child(2) .info-value--large {
  font-size: 30px;
  letter-spacing: 0.03em;
}

.chamber-section:nth-child(2) .info-row:first-of-type {
  padding-top: 4px;
  padding-bottom: 6px;
}

.chamber-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.chamber-section:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.chamber-section:hover::before {
  opacity: 1;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 8px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), transparent);
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
  position: relative;
}

.info-row:last-child {
  border-bottom: none;
}

.info-row:hover {
  padding-left: 6px;
  padding-right: 6px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  margin: 0 -6px;
}

.info-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.info-value {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.info-value--large {
  font-size: 26px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-family: 'SF Mono', monospace;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: -0.02em;
}

/* Rating accrual card inside RATING section */
.rating-accrual {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: radial-gradient(circle at top left,
    rgba(255, 255, 255, 0.16),
    rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.rating-accrual-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 6px;
}

.rating-accrual-chip {
  font-size: 9px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 255, 128, 0.12);
  border: 1px solid rgba(0, 255, 128, 0.35);
  color: rgba(0, 255, 128, 0.9);
  font-family: 'SF Mono', monospace;
  letter-spacing: 0.18em;
}

.rating-accrual-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 11px;
  padding-top: 3px;
}

.rating-accrual-label {
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rating-accrual-value {
  color: rgba(255, 255, 255, 0.92);
  font-family: 'SF Mono', monospace;
  font-variant-numeric: tabular-nums;
}

/* ====== ADMIN ====== */

.admin-main {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-2xl) var(--container-padding);
}

.admin-container h2 {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 600;
  margin-bottom: var(--space-2xl);
}

.admin-panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-2xl);
}

.admin-section {
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border);
}

.admin-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.admin-section h3 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-lg);
  color: var(--accent-gold);
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.admin-form-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-lg);
  align-items: center;
}

.admin-btn {
  padding: var(--space-md) var(--space-xl);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--accent-gold);
  color: #000;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-btn:hover {
  background: #E5C158;
}

.admin-btn--danger {
  background: var(--error);
  color: #fff;
}

.admin-btn--danger:hover {
  background: #C85C5C;
}

/* Responsive adjustments */
@media (max-width: 1440px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .chamber-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ====== TRUST ====== */

.trust-main {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-2xl) var(--container-padding);
}

.trust-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3xl);
}

.trust-header {
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border);
}

.trust-title-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.trust-kicker {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-gold);
  font-weight: 600;
}

.trust-subtitle {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-style: italic;
}

.trust-metrics {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
  padding: var(--space-xl);
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
}

.trust-tier {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--accent-gold);
  letter-spacing: 0.05em;
}

.trust-cti {
  display: flex;
  align-items: baseline;
  gap: var(--space-xs);
  font-family: 'SF Mono', monospace;
  font-size: var(--text-3xl);
  font-weight: 600;
  color: var(--text-primary);
}

.trust-cti-value {
  font-variant-numeric: tabular-nums;
}

.trust-cti-of {
  font-size: var(--text-lg);
  color: var(--text-muted);
}

.trust-meta {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-left: auto;
}

.trust-scale {
  margin-bottom: var(--space-2xl);
}

.trust-track {
  position: relative;
  height: 8px;
  background: var(--bg-elevated);
  border-radius: 4px;
  margin-bottom: var(--space-sm);
  overflow: hidden;
}

.trust-marker {
  position: absolute;
  top: 0;
  height: 100%;
  width: 4px;
  background: var(--accent-gold);
  border-radius: 2px;
  transition: left 0.5s ease;
}

.trust-scale-labels {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-family: 'SF Mono', monospace;
}

.trust-access {
  display: flex;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
  padding: var(--space-xl);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.trust-access-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex: 1;
  font-size: var(--text-sm);
  color: var(--text-primary);
  font-weight: 500;
  padding: var(--space-md) var(--space-lg);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.trust-access-row--clickable {
  cursor: pointer;
}

.trust-access-row--clickable:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(212, 175, 55, 0.2);
  transform: translateY(-1px);
}

.trust-pill {
  padding: var(--space-xs) var(--space-md);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--accent-gold);
  color: #000;
  border: 1px solid var(--accent-gold);
  border-radius: var(--radius-sm);
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(212, 175, 55, 0.3);
}

.trust-factors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.trust-factor-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-xl);
}

.trust-factor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
}

.trust-factor-header span:first-child {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.trust-chip {
  padding: var(--space-xs) var(--space-md);
  font-size: var(--text-sm);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-family: 'SF Mono', monospace;
  background: var(--accent-gold);
  color: #000;
  border-radius: var(--radius-sm);
}

.trust-factor-sub {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-style: italic;
}

.trust-log {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
}

.trust-log-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.trust-log-value {
  font-family: 'SF Mono', monospace;
  color: var(--text-primary);
  font-size: var(--text-sm);
}

/* ====== CAPITAL / INVESTMENTS ====== */

.investments-main {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-2xl) var(--container-padding);
}

.investments-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3xl);
}

.capital-header {
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border);
}

.capital-title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  letter-spacing: 0.02em;
}

.capital-subtitle {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-style: italic;
}

.capital-summary {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.capital-summary-card {
  background: linear-gradient(135deg, var(--bg-elevated) 0%, rgba(42, 42, 42, 0.8) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-xl);
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.capital-summary-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.03), transparent);
  transition: left 0.5s ease;
}

.capital-summary-card:hover {
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(212, 175, 55, 0.1);
  transform: translateY(-2px);
}

.capital-summary-card:hover::before {
  left: 100%;
}

.capital-summary-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.capital-summary-value {
  font-size: var(--text-2xl);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-family: 'SF Mono', monospace;
  color: var(--text-primary);
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.capital-investments {
  margin-top: var(--space-2xl);
}

.capital-section-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--accent-gold);
  margin-bottom: var(--space-lg);
  letter-spacing: 0.05em;
}

/* ====== INVESTMENTS TABLE - ЧИСТАЯ РЕАЛИЗАЦИЯ ====== */

.investments-table-container {
  background: linear-gradient(135deg, var(--bg-elevated) 0%, rgba(42, 42, 42, 0.8) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* CAPITAL contact block */
.capital-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 20px 0 28px;
  padding: 14px 18px;
  border-radius: 12px;
  background: radial-gradient(circle at top left,
    rgba(255, 255, 255, 0.10),
    rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.capital-contact-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.capital-contact-kicker {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-gold);
  font-weight: 600;
}

.capital-contact-body {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.80);
}

.capital-contact-login {
  font-family: 'SF Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.70);
  margin-top: 2px;
}

.capital-contact-button {
  flex-shrink: 0;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.30);
  background: linear-gradient(90deg, #F5D36A, #C7A64A);
  color: #000;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.capital-contact-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
  background: linear-gradient(90deg, #FFE18A, #D7B85A);
}

.investments-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  border-spacing: 0;
}

/* Ширины колонок */
.investments-table th.col-project,
.investments-table td.col-project {
  width: 50%;
}

.investments-table th.col-amount,
.investments-table td.col-amount {
  width: 25%;
}

.investments-table th.col-apr,
.investments-table td.col-apr {
  width: 25%;
}

/* Заголовок таблицы */
.investments-table thead {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(36, 36, 36, 0.9) 100%);
  border-bottom: 2px solid rgba(212, 175, 55, 0.2);
}

.investments-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 700;
  border-bottom: 2px solid rgba(212, 175, 55, 0.2);
  vertical-align: top;
  box-sizing: border-box;
}

.investments-table th.col-project {
  text-align: left;
  padding-left: 16px;
}

.investments-table th.col-amount,
.investments-table th.col-apr {
  text-align: right;
  padding-right: 16px;
}

/* Ячейки данных */
.investments-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: top;
  box-sizing: border-box;
}

.investments-table td.col-project {
  text-align: left;
  padding-left: 16px;
}

.investments-table td.col-amount,
.investments-table td.col-apr {
  text-align: right;
  padding-right: 16px;
  font-variant-numeric: tabular-nums;
  font-family: 'SF Mono', monospace;
  font-weight: 500;
  font-size: 13px;
}

/* Строки таблицы */
.investments-table tbody tr {
  transition: background-color 0.2s ease;
}

.investments-table tbody tr:hover {
  background: rgba(212, 175, 55, 0.03);
}

.investments-table tbody tr:last-child td {
  border-bottom: none;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-radius: 8px;
  font-weight: 600;
  min-width: 80px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.status-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.status-badge:hover::before {
  left: 100%;
}

.status-badge.status-active {
  background: rgba(74, 155, 110, 0.15);
  color: #6BC48A;
  border: 1px solid rgba(74, 155, 110, 0.3);
  box-shadow: 0 2px 8px rgba(74, 155, 110, 0.15);
}

.status-badge.status-active:hover {
  transform: translateY(-1px);
  background: rgba(74, 155, 110, 0.2);
  box-shadow: 0 4px 12px rgba(74, 155, 110, 0.2);
}

.status-badge.status-inactive {
  background: rgba(184, 92, 92, 0.15);
  color: #D88A8A;
  border: 1px solid rgba(184, 92, 92, 0.3);
  box-shadow: 0 2px 8px rgba(184, 92, 92, 0.15);
}

.status-badge.status-inactive:hover {
  transform: translateY(-1px);
  background: rgba(184, 92, 92, 0.2);
  box-shadow: 0 4px 12px rgba(184, 92, 92, 0.2);
}

/* Названия инвестиций */
.investment-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
  padding: 0;
  margin-bottom: 4px;
}

.investment-id {
  font-size: 11px;
  color: var(--text-muted);
  font-family: 'SF Mono', monospace;
  letter-spacing: 0.05em;
  opacity: 0.7;
  line-height: 1.3;
  margin: 0;
  padding: 0;
}

.capital-section-title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--accent-gold);
  margin: 0 0 var(--space-xl) 0;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: var(--space-md);
}

.capital-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-gold), transparent);
}

@media (max-width: 1280px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  
  .chamber-grid {
    grid-template-columns: 1fr;
  }
  
  .trust-factors {
    grid-template-columns: 1fr;
  }
  
  .trust-metrics {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-lg);
  }
  
  .trust-meta {
    margin-left: 0;
  }
  
  .capital-summary {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ====== CONVOCATION MODAL ====== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: var(--space-2xl);
  animation: fadeIn 0.2s ease;
}

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

.modal-container {
  background: var(--bg-elevated);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.3s ease;
}

.modal-container--wide {
  max-width: 960px;
}

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

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-xl) var(--space-2xl);
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--text-primary);
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  border-radius: var(--radius-sm);
}

.modal-close:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.modal-content {
  padding: var(--space-2xl);
}

/* Convocation Content Styles */

.convocation-header-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border);
}

.convocation-status-badge {
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
}

.convocation-status-badge.status-active {
  background: var(--accent-gold);
  color: #000;
  box-shadow: 0 2px 4px rgba(212, 175, 55, 0.3);
}

.convocation-status-badge.status-inactive {
  background: var(--bg-secondary);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.convocation-meta {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.convocation-meta strong {
  color: var(--text-primary);
  font-weight: 600;
}

.convocation-empty {
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
}

.convocation-empty-icon {
  font-size: 64px;
  color: var(--accent-gold);
  margin-bottom: var(--space-lg);
  opacity: 0.6;
}

.convocation-empty-title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--text-primary);
  margin: 0 0 var(--space-md) 0;
  font-weight: 600;
}

.convocation-empty-text {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 var(--space-sm) 0;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.convocation-empty-subtext {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.5;
  margin: var(--space-lg) 0 0 0;
  font-style: italic;
}

.convocation-stats {
  display: flex;
  gap: var(--space-xl);
  justify-content: center;
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
}

.convocation-stat {
  text-align: center;
}

.convocation-stat-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
}

.convocation-stat-value {
  font-size: var(--text-xl);
  color: var(--text-primary);
  font-weight: 600;
  font-family: 'SF Mono', monospace;
  font-variant-numeric: tabular-nums;
}

.convocation-section-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--text-primary);
  margin: 0 0 var(--space-xl) 0;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.convocation-meetings {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.convocation-meeting-card {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(42, 42, 42, 0.8) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-xl);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.convocation-meeting-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.03), transparent);
  transition: left 0.5s ease;
}

.convocation-meeting-card:hover {
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(212, 175, 55, 0.1);
  transform: translateY(-2px);
}

.convocation-meeting-card:hover::before {
  left: 100%;
}

.convocation-meeting-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.convocation-meeting-date {
  flex: 1;
}

.convocation-meeting-day {
  font-size: var(--text-lg);
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: var(--space-xs);
  font-family: var(--font-heading);
}

.convocation-meeting-time {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-family: 'SF Mono', monospace;
}

.convocation-meeting-badge {
  padding: var(--space-xs) var(--space-md);
  font-size: var(--text-xs);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(205, 127, 50, 0.15) 100%);
  color: var(--accent-gold);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.1);
}

.convocation-meeting-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.convocation-meeting-card:hover .convocation-meeting-badge::before {
  left: 100%;
}

.convocation-meeting-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.convocation-meeting-detail {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: var(--text-sm);
}

.convocation-detail-icon {
  font-size: var(--text-lg);
  width: 24px;
  text-align: center;
}

.convocation-detail-label {
  color: var(--text-muted);
  min-width: 80px;
}

.convocation-detail-value {
  color: var(--text-primary);
  font-weight: 500;
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.convocation-meeting-id {
  font-family: 'SF Mono', monospace;
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

/* Location Button */
.convocation-meeting-detail {
  position: relative;
}

.convocation-location-btn {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-sm);
  padding: var(--space-xs) var(--space-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: var(--space-sm);
  transition: all 0.2s ease;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.convocation-location-btn:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--accent-gold);
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.convocation-location-btn:active {
  transform: scale(0.95);
}

.location-icon {
  width: 18px;
  height: 18px;
  color: var(--accent-gold);
  stroke: var(--accent-gold);
  fill: var(--accent-gold);
}

/* Location Modal Styles */
.location-modal-container {
  max-width: 600px;
}

/* ====== LODGE MESSENGER ====== */

.messages-modal-content {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 20px;
}

.messages-compose {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 10px;
  border-right: 1px solid var(--border);
}

.messages-field label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.messages-field input,
.messages-field textarea {
  width: 100%;
  background: #141516;
  border-radius: 6px;
  border: 1px solid var(--border);
  padding: 8px 10px;
  color: var(--text-primary);
  font-size: 13px;
}

.messages-field textarea {
  resize: vertical;
  min-height: 72px;
}

.messages-send-btn {
  align-self: flex-start;
  margin-top: 4px;
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  background: var(--accent-gold);
  color: #000;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.messages-send-btn:hover {
  background: #E5C158;
}

.messages-error {
  font-size: 11px;
  color: var(--error);
  min-height: 14px;
}

.messages-inbox {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.messages-inbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.messages-inbox-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.messages-refresh-btn {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.messages-list {
  max-height: 260px;
  overflow-y: auto;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 10, 11, 0.8);
}

.messages-item {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 12px;
}

.messages-item:last-child {
  border-bottom: none;
}

.messages-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}

.messages-item-peer {
  font-family: 'SF Mono', monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
}

.messages-item-meta {
  font-size: 10px;
  color: var(--text-muted);
}

.messages-item-body {
  color: rgba(255, 255, 255, 0.9);
}

.messages-item-unread-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6BFFB5;
  box-shadow: 0 0 8px rgba(107, 255, 181, 0.9);
  margin-left: 6px;
}

.location-available,
.location-unavailable {
  padding: var(--space-xl) 0;
}

.location-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.location-icon-large {
  font-size: 48px;
  margin-bottom: var(--space-md);
}

.location-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--text-primary);
  margin: 0;
  font-weight: 600;
}

.location-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
  padding: var(--space-xl);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.location-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border);
}

.location-info-item:last-child {
  border-bottom: none;
}

.location-info-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.location-info-value {
  font-size: var(--text-base);
  color: var(--text-primary);
  font-weight: 500;
  text-align: right;
}

.location-coords {
  font-family: 'SF Mono', monospace;
  color: var(--accent-gold);
}

.location-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
}

.location-action-btn {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  background: var(--bg-secondary);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.location-action-btn:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--accent-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.location-unavailable {
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
  position: relative;
}

.location-unavailable-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto var(--space-2xl);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mystery-icon {
  width: 100%;
  height: 100%;
  animation: mysteryPulse 3s ease-in-out infinite;
}

@keyframes mysteryPulse {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.05);
  }
}

.location-unavailable-header {
  margin-bottom: var(--space-xl);
}

.location-unavailable-title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--text-primary);
  margin: 0 0 var(--space-md) 0;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.location-unavailable-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  margin: 0 auto;
  opacity: 0.6;
}

.location-unavailable-text {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0 0 var(--space-2xl) 0;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
}

.location-unavailable-text .text-accent {
  color: var(--accent-gold);
  font-weight: 600;
  font-style: italic;
}

.location-unavailable-time {
  margin: var(--space-xl) 0;
  padding: var(--space-lg) var(--space-xl);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, rgba(205, 127, 50, 0.05) 100%);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  position: relative;
  overflow: hidden;
}

.location-unavailable-time::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.location-time-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

.location-time-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  position: relative;
  z-index: 1;
}

.time-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 50px;
}

.time-value {
  font-size: var(--text-xl);
  color: var(--accent-gold);
  font-weight: 700;
  font-family: 'SF Mono', monospace;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
  margin-bottom: 2px;
}

.time-label {
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.time-separator {
  font-size: var(--text-xl);
  color: var(--accent-gold);
  font-weight: 300;
  opacity: 0.5;
  font-family: 'SF Mono', monospace;
  animation: blink 2s infinite;
  margin: 0 var(--space-xs);
}

@keyframes blink {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

.location-unavailable-subtext {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
  margin: var(--space-xl) 0 0 0;
  font-style: italic;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}
