/* =========================================================
   CMZ BI — GLOBAL DESIGN SYSTEM
   ========================================================= */

/* ─── 1. DESIGN TOKENS ─────────────────────────────────── */
:root {
  /* Brand / Primary (Indigo) */
  --color-primary:        #4f46e5;
  --color-primary-hover:  #4338ca;
  --color-primary-subtle: #eef2ff;
  --color-primary-border: #c7d2fe;

  /* Accent (Purple — filter highlights) */
  --color-accent:         #7B61FF;
  --color-accent-hover:   #6346eb;
  --color-accent-subtle:  #f5f3ff;

  /* Semantic */
  --color-success:        #10b981;
  --color-success-subtle: #d1fae5;
  --color-warning:        #f59e0b;
  --color-warning-subtle: #fef3c7;
  --color-danger:         #ef4444;
  --color-danger-hover:   #dc2626;
  --color-danger-subtle:  #fef2f2;

  /* Blue (chart tabs, pagination active) */
  --color-blue:           #3b82f6;
  --color-blue-hover:     #2563eb;
  --color-blue-subtle:    #eff6ff;
  --color-blue-border:    #bfdbfe;

  /* Text */
  --text-primary:         #111827;
  --text-secondary:       #374151;
  --text-muted:           #6b7280;
  --text-placeholder:     #9ca3af;
  --text-disabled:        #d1d5db;

  /* Borders */
  --border:               #e5e7eb;
  --border-light:         #f0f2f5;
  --border-focus:         #4f46e5;

  /* Backgrounds */
  --bg-page:              #f4f5f7;
  --bg-card:              #ffffff;
  --bg-hover:             #f3f4f6;
  --bg-active:            #e5e7eb;
  --bg-subtle:            #f9fafb;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);

  /* Radius */
  --radius-xs:   3px;
  --radius-sm:   4px;
  --radius-md:   6px;
  --radius-lg:   8px;
  --radius-xl:   12px;
  --radius-2xl:  16px;
  --radius-full: 9999px;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

  --text-xs:   11px;
  --text-sm:   12px;
  --text-base: 13px;
  --text-md:   14px;
  --text-lg:   15px;
  --text-xl:   16px;
  --text-2xl:  18px;
  --text-3xl:  20px;
  --text-4xl:  24px;
  --text-5xl:  28px;

  /* Transitions */
  --t-fast:   all 0.15s ease;
  --t-normal: all 0.2s ease;
}

/* ─── 2. BASE ───────────────────────────────────────────── */
html, body {
  font-family: var(--font);
  font-size: var(--text-md);
  color: var(--text-secondary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg-page);
}

html, body, #app {
  height: 100%;
  margin: 0;
}

h1:focus { outline: none; }

/* ─── 3. BLAZOR ─────────────────────────────────────────── */
.loading-progress {
  position: relative;
  display: block;
  width: 8rem;
  height: 8rem;
  margin: 20vh auto 1rem auto;
}

.loading-progress circle {
  fill: none;
  stroke: #e0e0e0;
  stroke-width: 0.6rem;
  transform-origin: 50% 50%;
  transform: rotate(-90deg);
}

.loading-progress circle:last-child {
  stroke: var(--color-primary);
  stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
  transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
  position: absolute;
  text-align: center;
  font-weight: 600;
  inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.loading-progress-text:after {
  content: var(--blazor-load-percentage-text, "Loading");
}

#blazor-error-ui { display: none !important; }

/* ─── 4. VALIDATION ─────────────────────────────────────── */
.valid.modified:not([type=checkbox]) { outline: 1px solid var(--color-success); }
.invalid { outline: 1px solid var(--color-danger); }
.validation-message { color: var(--color-danger); }
code { color: #c02d76; }

/* ─── 5. BUTTON SYSTEM ──────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 18px;
  height: 38px;
  background: var(--color-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-lg);
  font-size: var(--text-md);
  font-family: var(--font);
  font-weight: 500;
  cursor: pointer;
  transition: var(--t-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-primary:hover  { background: var(--color-primary-hover); }
.btn-primary:active { background: var(--color-primary-hover); transform: scale(0.99); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 18px;
  height: 38px;
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: var(--text-md);
  font-family: var(--font);
  font-weight: 500;
  cursor: pointer;
  transition: var(--t-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-secondary:hover  { background: var(--bg-subtle); border-color: #9ca3af; color: var(--text-primary); }
.btn-secondary:active { background: var(--bg-hover); }

.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 18px;
  height: 38px;
  background: var(--color-danger);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-lg);
  font-size: var(--text-md);
  font-family: var(--font);
  font-weight: 500;
  cursor: pointer;
  transition: var(--t-fast);
  flex-shrink: 0;
}

.btn-danger:hover { background: var(--color-danger-hover); }

.btn-create {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 16px;
  background: var(--color-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-lg);
  font-size: var(--text-md);
  font-family: var(--font);
  font-weight: 500;
  cursor: pointer;
  transition: var(--t-fast);
  white-space: nowrap;
}

.btn-create:hover { background: var(--color-primary-hover); }
.btn-create .material-icons { font-size: 18px; }

.btn-settings {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--t-fast);
  flex-shrink: 0;
}

.btn-settings:hover { background: var(--bg-subtle); border-color: #d1d5db; }
.btn-settings .material-icons { font-size: 20px; }

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--t-fast);
  flex-shrink: 0;
}

.btn-icon:hover { background: var(--bg-hover); color: var(--text-primary); }

.btn-disabled,
button:disabled {
  opacity: 0.45;
  cursor: not-allowed !important;
  pointer-events: none;
}

/* ─── 6. FORM ELEMENTS ──────────────────────────────────── */
.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-control {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  outline: none;
  font-size: var(--text-md);
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--bg-card);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-control:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.08);
}

.form-group input::placeholder,
.form-control::placeholder { color: var(--text-placeholder); }

.readonly-field {
  background: var(--bg-subtle) !important;
  color: var(--text-muted);
  cursor: not-allowed;
}

.error-text {
  color: var(--color-danger);
  font-size: var(--text-sm);
  margin-top: 4px;
  display: block;
}

.field-hint {
  font-size: var(--text-xs);
  color: var(--text-placeholder);
  margin-top: 4px;
  display: block;
}

/* ─── 7. MODAL SYSTEM ───────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(3px);
  animation: modalFadeIn 0.18s ease both;
}

.modal-overlay--out { animation: modalFadeOut 0.18s ease forwards; }

.modal-container {
  background: var(--bg-card);
  width: 100%;
  max-width: 600px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  animation: modalSlideIn 0.22s cubic-bezier(0.34, 1.3, 0.64, 1) both;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* ===== Shared modal loading overlay ===== */
@keyframes modalSaveSpin { to { transform: rotate(360deg); } }

.modal-saving-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(4px);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl);
}

.modal-saving-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.modal-saving-spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  animation: modalSaveSpin 0.75s linear infinite;
}

.modal-saving-spinner--danger {
  border: 3px solid #fecaca;
  border-top-color: var(--color-danger);
}

.modal-saving-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-container--out { animation: modalSlideOut 0.18s ease forwards; }

.modal-sm  { max-width: 440px !important; }
.modal-lg  { max-width: 800px !important; }

@keyframes modalFadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalFadeOut { from { opacity: 1; } to { opacity: 0; } }

@keyframes modalSlideIn {
  from { transform: translateY(-12px) scale(0.95); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes modalSlideOut {
  from { transform: translateY(0) scale(1); opacity: 1; }
  to   { transform: translateY(-12px) scale(0.95); opacity: 0; }
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.modal-header h3,
.modal-header h2 {
  margin: 0;
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--text-primary);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  border-radius: var(--radius-md);
  color: var(--text-placeholder);
  cursor: pointer;
  transition: var(--t-fast);
  flex-shrink: 0;
}

.close-btn:hover { background: var(--bg-hover); color: var(--text-secondary); }
.close-btn .material-icons { font-size: 20px; }

/* ─── 8. CHART CARD ─────────────────────────────────────── */
.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  z-index: 0;
}

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

.chart-title {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
}

.chart-subtitle {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: 2px;
}

.chart-tabs {
  display: flex;
  gap: 4px;
}

.chart-tab {
  padding: 5px 12px;
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  font-weight: 500;
  cursor: pointer;
  color: var(--text-muted);
  border: 1px solid transparent;
  background: transparent;
  transition: var(--t-fast);
  line-height: 1.5;
}

.chart-tab:hover  { background: var(--bg-hover); color: var(--text-primary); }
.chart-tab.active {
  background: var(--color-blue-subtle);
  color: var(--color-blue);
  border-color: var(--color-blue-border);
  font-weight: 600;
}

.chart-content {
  padding: 16px;
  position: relative;
  height: 418px;
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
}

.chart-content canvas {
  width: 100% !important;
  height: 100% !important;
}

.chart-row {
  display: flex;
  width: 100%;
  gap: 16px;
  padding: 16px;
  box-sizing: border-box;
}

.chart-col {
  flex: 1;
  min-width: 0;
}

.chart-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  color: var(--text-placeholder);
  font-size: var(--text-base);
}

/* ─── 9. KPI CARDS ──────────────────────────────────────── */
.kpi-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: visible !important;
}

.kpi-header {
  padding: 14px 20px;
  font-weight: 600;
  font-size: var(--text-xl);
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
}

.kpi-row {
  display: flex;
  overflow: visible;
}

.kpi-card {
  flex: 1;
  padding: 20px 24px;
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kpi-card:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 15%;
  bottom: 15%;
  width: 1px;
  background: var(--border-light);
}

/* KPI inside chart-card (nested variant) */
.kpi-card .tooltip-panel {
  left: 0;
  right: auto;
  transform: none;
}

.kpi-card:nth-child(n+3) .tooltip-panel::after {
  left: auto;
  right: 8px;
}

.kpi-card:nth-child(n+3) .tooltip-panel {
  left: auto;
  right: 0;
}

.kpi-title {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 4px;
}

.kpi-value {
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.kpi-trend {
  font-size: var(--text-sm);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 2px;
}

.trend-up   { color: var(--color-success); }
.trend-down { color: var(--color-danger); }

.info-icon {
  font-size: 14px;
  color: var(--text-placeholder);
  cursor: help;
}

/* Chart.js canvases must stay below overlays/dropdowns (z-index 1000+) */
.kpi-card canvas,
.chart-card canvas {
  position: relative;
  z-index: 0;
}

/* ─── 10. SEGMENTED CONTROL ─────────────────────────────── */
.platform-filter,
.segment-tabs {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--bg-active);
  padding: 2px;
  border-radius: var(--radius-lg);
}

.platform-btn,
.segment-tab {
  border: none;
  background: transparent;
  height: 30px;
  min-width: 36px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-md);
  font-family: var(--font);
  color: var(--text-muted);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--t-fast);
  font-weight: 500;
  white-space: nowrap;
}

.platform-btn:hover,
.segment-tab:hover { color: var(--text-primary); }

.platform-btn.active,
.segment-tab.active {
  background: var(--bg-card);
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0,0,0,0.07), 0 0 0 1px rgba(0,0,0,0.04);
}

.platform-btn .material-icons { font-size: 18px; }

/* ─── 11. PAGINATION ────────────────────────────────────── */
.pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 16px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.pagination-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-size-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.pagination-info {
  border-left: 1px solid var(--border);
  padding-left: 10px;
  display: flex;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
}

.pagination-controls {
  display: flex;
  gap: 2px;
  align-items: center;
}

.pag-btn {
  min-width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: var(--t-fast);
  color: var(--text-muted);
}

.pag-btn:hover:not(:disabled):not(.active) {
  background: var(--bg-hover);
  color: var(--text-secondary);
}

.pag-btn.active {
  background: var(--color-primary);
  color: white;
  font-weight: 600;
}

.pag-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.pag-btn .material-icons { font-size: 16px; }

.pag-ellipsis {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 1px;
}

.page-jump {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  padding-left: 10px;
  border-left: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}

/* ─── 12. SEARCH BAR ────────────────────────────────────── */
.search-bar,
.games-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-bar:hover,
.games-search:hover { border-color: var(--color-primary-border); }

.search-bar:focus-within,
.games-search:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.08);
}

.search-bar .search-icon,
.games-search .search-icon {
  font-size: 18px;
  color: var(--text-placeholder);
  flex-shrink: 0;
}

.search-bar input,
.games-search input {
  flex: 1;
  border: none !important;
  outline: none !important;
  background: transparent;
  font-size: var(--text-md);
  font-family: var(--font);
  color: var(--text-primary);
  padding: 0;
  box-shadow: none !important;
}

.search-bar input::placeholder,
.games-search input::placeholder { color: var(--text-placeholder); }

/* ─── 13. DROPDOWN SYSTEM ───────────────────────────────── */
.custom-dropdown { position: relative; }

.dropdown-selected {
  min-height: 38px;
  padding: 6px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--t-fast);
}

.dropdown-selected:hover { border-color: #9ca3af; }

.dropdown-backdrop {
  position: fixed;
  inset: 0;
  background: transparent;
  z-index: 10;
}

.selected-icons-container {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  overflow: hidden;
}

.dropdown-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--border);
  z-index: 12;
  max-height: 280px;
  overflow-y: auto;
  padding: 4px;
  box-sizing: border-box;
}

.dropdown-list-games {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--border);
  z-index: 12;
  max-height: 200px;
  overflow-y: auto;
  padding: 4px;
  box-sizing: border-box;
}

.dropdown-item {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  padding: 9px 12px;
  cursor: pointer;
  gap: 10px;
  border-radius: var(--radius-md);
  transition: background 0.1s;
  font-size: var(--text-md);
  color: var(--text-secondary);
}

.dropdown-item:hover   { background: var(--bg-hover); color: var(--text-primary); }
.dropdown-item.active  { background: var(--color-blue-subtle); color: var(--color-blue); font-weight: 600; }

.dropdown-item input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.dropdown-item img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-lg);
  flex-shrink: 0;
  object-fit: cover;
}

.select-all { font-weight: 600; color: var(--text-secondary); }

.dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-family: var(--font);
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--t-fast);
  min-width: 100px;
  justify-content: space-between;
}

.dropdown-trigger:hover,
.active-border { border-color: var(--color-blue); background: var(--bg-subtle); }

.dropdown-trigger .material-icons { font-size: 18px; color: var(--text-placeholder); }

.dropdown-menu {
  position: absolute;
  bottom: calc(100% + 4px);
  right: 0;
  min-width: 140px;
  max-height: 240px;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 1001;
  padding: 4px;
}

.dropdown-menu::-webkit-scrollbar { width: 5px; }
.dropdown-menu::-webkit-scrollbar-thumb { background: var(--border); border-radius: var(--radius-full); }
.dropdown-menu::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

.dropdown-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: transparent;
}

/* ─── Pagination custom dropdowns ───────────────────────── */
.pag-dd { position: relative; }

.pag-dd-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  height: 26px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  border-radius: 6px;
  font-size: 12px;
  font-family: var(--font);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--t-fast);
  min-width: 60px;
  justify-content: space-between;
  white-space: nowrap;
}

.pag-dd-trigger:hover {
  border-color: #9ca3af;
  background: var(--bg-hover);
}

.pag-dd.is-open .pag-dd-trigger {
  border-color: var(--color-primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 2px var(--color-primary-subtle);
}

.pag-dd-trigger .material-icons { font-size: 14px; color: var(--text-muted); flex-shrink: 0; }

.pag-dd-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
}

.pag-dd.is-open .pag-dd-overlay { display: block; }

.pag-dd-menu {
  display: none;
  position: absolute;
  bottom: calc(100% + 4px);
  top: auto;
  left: 0;
  min-width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10), 0 1px 4px rgba(0,0,0,0.06);
  z-index: 1000;
  padding: 3px;
  max-height: 200px;
  overflow-y: auto;
  transform-origin: bottom center;
}

.pag-dd.is-open .pag-dd-menu {
  display: block;
  animation: pag-menu-in 0.15s ease-out;
}

@keyframes pag-menu-in {
  from { opacity: 0; transform: translateY(4px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)   scale(1);    }
}

@keyframes pag-menu-out {
  from { opacity: 1; transform: translateY(0)   scale(1);    }
  to   { opacity: 0; transform: translateY(4px) scale(0.97); }
}

.pag-dd.is-closing .pag-dd-menu    { display: block; animation: pag-menu-out 0.12s ease-in forwards; }
.pag-dd.is-closing .pag-dd-overlay { display: block; }

.pag-dd-item {
  display: block;
  width: 100%;
  padding: 5px 10px;
  text-align: left;
  background: none;
  border: none;
  border-radius: 5px;
  font-size: 12px;
  font-family: var(--font);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.1s;
  white-space: nowrap;
  box-sizing: border-box;
}

.pag-dd-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.pag-dd-item.active { background: var(--color-primary-subtle); color: var(--color-primary); font-weight: 600; }

/* ─── 14. USER DISPLAY ──────────────────────────────────── */
.user-info-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar,
.user-avatar-placeholder {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  flex-shrink: 0;
}

.user-avatar { border: 1px solid var(--border); }

.user-avatar-placeholder {
  background: var(--bg-active);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: var(--text-md);
  color: var(--text-muted);
}

.user-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.user-name {
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-email {
  font-size: var(--text-base);
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─── 15. ROLE BADGES ───────────────────────────────────── */
.role-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: capitalize;
  white-space: nowrap;
}

.role-badge.admin   { background: #fee2e2; color: #b91c1c; }
.role-badge.manager { background: #ede9fe; color: #6d28d9; }
.role-badge.editor  { background: #dbeafe; color: #1d4ed8; }
.role-badge.viewer  { background: #d1fae5; color: #065f46; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
}

.badge-primary { background: var(--color-primary-subtle); color: var(--color-primary); }
.badge-success { background: var(--color-success-subtle); color: var(--color-success); }
.badge-warning { background: var(--color-warning-subtle); color: var(--color-warning); }
.badge-danger  { background: var(--color-danger-subtle);  color: var(--color-danger); }

/* ─── 16. TABLE ─────────────────────────────────────────── */
.bi-table-header {
  background: var(--bg-subtle);
  padding: 10px 20px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}

.bi-table-row {
  padding: 10px 20px;
  border-bottom: 1px solid var(--border-light);
  font-size: var(--text-md);
  color: var(--text-secondary);
  transition: background 0.1s ease;
}

.bi-table-row:hover { background: var(--bg-subtle); }

.col-cell {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
}

/* Border-right và min-height chỉ áp dụng cho analytics grid tables */
.behavior-grid .col-cell,
.ads-grid .col-cell,
.failure-grid .col-cell {
  border-right: 1px solid var(--border-light);
  min-height: 48px;
}

.col-number {
  font-size: var(--text-md);
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.sortable {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  user-select: none;
}

.sortable:hover { color: var(--text-primary); }

.sort-icon {
  width: 10px;
  height: 12px;
  position: relative;
  flex-shrink: 0;
}

.sort-icon::before,
.sort-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
}

.sort-icon::before { top: 0;    border-bottom: 5px solid var(--text-disabled); }
.sort-icon::after  { bottom: 0; border-top:    5px solid var(--text-disabled); }

.sortable.sort-asc  .sort-icon::before { border-bottom-color: var(--text-primary); }
.sortable.sort-asc  .sort-icon::after  { border-top-color:    var(--border); }
.sortable.sort-desc .sort-icon::before { border-bottom-color: var(--border); }
.sortable.sort-desc .sort-icon::after  { border-top-color:    var(--text-primary); }
.sortable.active { color: var(--text-primary); }

/* ─── 17. ANALYTICS SUB-HEADER & SEGMENTED CONTROL ─────── */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.games-sub-header {
  display: flex;
  align-items: center;
  height: 52px;
  padding: 0 16px;
  gap: 8px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.games-sub-tab {
  height: 32px;
  padding: 0 14px;
  border: none;
  background: transparent;
  border-radius: var(--radius-lg);
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--t-fast);
}

.games-sub-tab:hover  { background: var(--bg-hover);   color: var(--text-primary); }
.games-sub-tab.active { background: var(--bg-active);  color: var(--text-primary); font-weight: 600; }

.segmented-control {
  display: inline-flex;
  background-color: var(--bg-subtle);
  padding: 3px;
  border-radius: var(--radius-lg);
  gap: 2px;
}

.segment-item {
  border: none;
  background: transparent;
  padding: 6px 16px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--t-fast);
  white-space: nowrap;
}

.segment-item.active {
  background-color: var(--bg-card);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.segment-item:hover:not(.active) {
  color: var(--text-secondary);
  background-color: rgba(0, 0, 0, 0.03);
}

/* ─── 18. ANALYTICS GRID LAYOUTS ────────────────────────── */
.behavior-grid {
  display: grid;
  grid-template-columns: 150px repeat(4, 1fr);
  align-items: center;
}

.ads-grid {
  display: grid;
  grid-template-columns: 150px repeat(2, 1fr);
  align-items: center;
}

.failure-grid {
  display: grid;
  grid-template-columns: 150px repeat(3, 1fr);
  align-items: center;
}

.games-row {
  border-top: 1px solid var(--border-light);
  font-size: var(--text-md);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s ease;
}

.games-row:hover { background: var(--bg-subtle); }

.games-row.behavior-grid:hover { background: var(--bg-subtle); }

.behavior-grid .col-cell.sortable {
  display: flex;
  gap: 6px;
  align-items: center;
  cursor: pointer;
}

.games-table-scroll-container {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  background: var(--bg-card);
}

/* ─── 19. TOOLTIP ───────────────────────────────────────── */
.tooltip-container {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.tooltip-panel {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  width: 280px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  z-index: 9999;
  pointer-events: none;
}

.tooltip-container:hover .tooltip-panel { display: block; }

.tooltip-header {
  padding: 10px 16px;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-light);
  font-size: var(--text-md);
}

.tooltip-body {
  padding: 10px 16px;
  color: var(--text-muted);
  font-size: var(--text-base);
  line-height: 1.6;
}

.tooltip-panel::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 12px;
  border-width: 6px;
  border-style: solid;
  border-color: var(--bg-card) transparent transparent transparent;
}

/* ─── 18. PLATFORM ICONS ────────────────────────────────── */
.platform-container {
  display: flex;
  align-items: center;
  gap: 2px;
}

.icon-plat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.45;
}

.icon-plat .material-icons { font-size: 13px; color: var(--text-muted); }

/* ─── 19. GAME INFO ─────────────────────────────────────── */
.game-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-width: 0;
}

.game-name {
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-package {
  font-size: var(--text-xs);
  color: var(--text-placeholder);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─── 20. PLATFORM CHIP (Create form) ───────────────────── */
.platform-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.chip-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  cursor: pointer;
  transition: var(--t-fast);
  border: 1.5px solid transparent;
  font-size: var(--text-md);
  color: var(--text-secondary);
}

.chip-item input { display: none; }
.chip-item:hover { border-color: var(--color-primary-border); }
.chip-item.active {
  background: var(--color-primary-subtle);
  border-color: var(--color-primary);
  color: var(--color-primary);
  font-weight: 500;
}

.chip-content { display: flex; align-items: center; gap: 6px; }
.chip-content .material-icons { font-size: 17px; }

/* ─── 21. FILE UPLOAD ───────────────────────────────────── */
.custom-file-upload {
  position: relative;
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  transition: var(--t-fast);
  background: var(--bg-subtle);
}

.custom-file-upload:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-subtle);
}

.custom-file-upload input {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0; left: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-muted);
  gap: 8px;
  font-size: var(--text-md);
  pointer-events: none;
}

.upload-placeholder .material-icons { font-size: 32px; color: var(--text-placeholder); }

/* ─── 22. PAGE HEADER ───────────────────────────────────── */
.progression-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.page-header-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
}

.page-header-left h1 {
  margin: 0;
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.page-subtitle {
  margin-top: 4px;
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.5;
}

.page-header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

/* ─── 23. WARNING DIALOG ────────────────────────────────── */
.delete-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 24px;
  gap: 10px;
}

.warning-icon-wrapper {
  background: var(--color-danger-subtle);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.warning-icon { color: var(--color-danger); font-size: 28px; }

.sub-text {
  color: var(--text-muted);
  font-size: var(--text-md);
  margin-top: 6px;
  text-align: center;
}

/* ─── 24. ACTION BUTTONS ────────────────────────────────── */
.assign-btn {
  color: var(--color-primary);
  background: var(--color-primary-subtle);
  border: 1px solid var(--color-primary-border);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-weight: 500;
  cursor: pointer;
  transition: var(--t-fast);
}

.assign-btn:hover { background: #e0e7ff; border-color: #a5b4fc; }
.assign-btn .material-icons { font-size: 16px; }

.role-edit-btn {
  color: var(--color-primary);
  background: var(--color-primary-subtle);
  border: 1px solid var(--color-primary-border);
  padding: 4px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--t-fast);
}

.role-edit-btn:hover { background: #e0e7ff; border-color: #a5b4fc; }

.bulk-delete-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--color-danger-subtle);
  color: #e11d48;
  border: 1px solid #fda4af;
  padding: 5px 14px;
  border-radius: var(--radius-lg);
  font-weight: 500;
  font-size: var(--text-md);
  cursor: pointer;
  transition: var(--t-fast);
}

.bulk-delete-btn:hover { background: #ffe4e6; border-color: #fb7185; }
.bulk-delete-btn .material-icons { font-size: 18px; }

/* ─── 25. LOCKED ROWS ───────────────────────────────────── */
.item-locked {
  opacity: 0.55;
  cursor: not-allowed !important;
  background: var(--bg-subtle) !important;
}

.item-locked:hover { background: var(--bg-subtle) !important; }
.action-btn-disabled { opacity: 0.35; cursor: not-allowed; pointer-events: none; }

/* ─── 26. USER ASSIGN ───────────────────────────────────── */
.user-assign,
.user-assign-placeholder {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.user-assign-placeholder {
  background: var(--bg-active);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--text-muted);
}

.more-indicator { font-size: var(--text-md); font-weight: 600; color: var(--text-muted); }

/* ─── 27. MISC ──────────────────────────────────────────── */
.mb-3 { margin-bottom: 1rem; }
.text-capitalize { text-transform: capitalize; }
.text-center { text-align: center; }
.text-muted   { color: var(--text-muted)   !important; }
.text-danger  { color: var(--color-danger)  !important; }
.text-success { color: var(--color-success) !important; }

hr {
  border: 0;
  border-top: 1px solid var(--border-light);
  margin: 6px 0;
}

.game-tag {
  background: var(--bg-hover);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-secondary);
}

/* ─── 28. MOD TARGETING (shared: AB Testing + Remote Configs modals) ────── */
.mod-tgt-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mod-tgt-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.mod-tgt-label .material-icons {
  font-size: 15px;
  color: var(--text-muted);
}

.mod-tgt-count {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: #7c3aed;
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  border-radius: 10px;
  padding: 1px 8px;
  text-transform: none;
  letter-spacing: 0;
}

.mod-tgt-hint {
  font-size: 11px;
  color: var(--text-placeholder);
}

/* Platform chips */
.mod-plat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mod-plat-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all .15s;
}

.mod-plat-chip .material-icons {
  font-size: 16px;
}

.mod-plat-chip:hover {
  border-color: #7c3aed;
  color: #7c3aed;
  background: #faf5ff;
}

.mod-plat-chip.active {
  border-color: #7c3aed;
  background: #f5f3ff;
  color: #5b3fd4;
}

.mod-plat-chip.mod-plat-clear {
  border-style: dashed;
  color: var(--text-muted);
  background: transparent;
}

.mod-plat-chip.mod-plat-clear:hover {
  border-color: var(--color-danger);
  color: var(--color-danger);
  background: #fef2f2;
}

/* Two-column layout */
.mod-tgt-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mod-tgt-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* List box */
.mod-list-box {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-card);
}

.mod-list-search {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-light);
}

.mod-list-search .material-icons {
  font-size: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.mod-list-search input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 12px;
  color: var(--text-primary);
  outline: none;
  box-shadow: none;
  padding: 0;
  min-width: 0;
}

.mod-list-search input::placeholder {
  color: var(--text-placeholder);
}

.mod-list-body {
  max-height: 160px;
  overflow-y: auto;
}

.mod-list-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  font-size: 12.5px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background .1s;
}

.mod-list-row:hover {
  background: var(--bg-hover);
}

.mod-list-row.sel {
  background: #f5f3ff;
  color: #5b3fd4;
}

/* Custom checkbox */
.mod-chk {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  flex-shrink: 0;
  transition: all .15s;
  position: relative;
}

.mod-chk.on {
  border-color: #7c3aed;
  background: #7c3aed;
}

.mod-chk.on::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 0px;
  width: 5px;
  height: 8px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.mod-list-sep {
  height: 1px;
  background: var(--border-light);
  margin: 2px 0;
}

.mod-list-empty {
  padding: 10px;
  font-size: 12px;
  color: var(--text-placeholder);
  text-align: center;
}

/* ─── 29. GM-MODAL (Game Modal — global, used in GameSettings + Overview) ── */
@keyframes gmSlideIn  { from { opacity: 0; transform: translateY(-12px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes gmSlideOut { from { opacity: 1; transform: translateY(0) scale(1); } to { opacity: 0; transform: translateY(-12px) scale(0.95); } }
@keyframes gmFadeIn   { from { opacity: 0; } to { opacity: 1; } }
@keyframes gmFadeOut  { from { opacity: 1; } to { opacity: 0; } }

.gm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5000;
    padding: 24px;
    animation: gmFadeIn 0.18s ease both;
}

.gm-overlay--out { animation: gmFadeOut 0.18s ease forwards; }

.gm-modal {
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: 0 24px 48px -8px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(0,0,0,0.06);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    animation: gmSlideIn 0.22s cubic-bezier(0.34, 1.3, 0.64, 1) both;
    display: flex;
    flex-direction: column;
}

.gm-modal--out { animation: gmSlideOut 0.18s ease forwards; }

.gm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 16px;
    border-bottom: 1px solid var(--border-light);
    flex-shrink: 0;
}

.gm-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.gm-header-title .material-icons {
    font-size: 20px;
    color: var(--color-primary);
}

.gm-close-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--t-fast);
}

.gm-close-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.gm-close-btn .material-icons { font-size: 20px; }

.gm-hero {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 20px 16px;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    border-bottom: 1px solid var(--border-light);
}

.gm-icon-wrap { cursor: pointer; flex-shrink: 0; }

.gm-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    border: 2px dashed #c7d2fe;
    background: #f0f4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.gm-icon:hover {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.gm-icon.has-image { border: 2px solid var(--border); }

.gm-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

.gm-icon-placeholder {
    font-size: 32px;
    color: #a5b4fc;
}

.gm-icon-overlay {
    position: absolute;
    inset: 0;
    background: rgba(79, 70, 229, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.18s;
    border-radius: 14px;
}

.gm-icon-overlay .material-icons {
    font-size: 24px;
    color: white;
}

.gm-icon:hover .gm-icon-overlay { opacity: 1; }

.gm-hero-info { flex: 1; min-width: 0; }

.gm-hero-hint {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.gm-hero-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gm-hero-sub {
    font-size: 12px;
    color: var(--text-muted);
}

.gm-hero-filename {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #059669;
    background: #ecfdf5;
    padding: 2px 8px;
    border-radius: 20px;
    border: 1px solid #a7f3d0;
}

.gm-hero-filename .material-icons { font-size: 14px; }

/* Wrapper around EditForm — takes remaining modal height */
.gm-edit-form-wrap {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/* Target the <form> rendered by EditForm */
.gm-edit-form-wrap form {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/* Scroll area (hero + body, between header and footer) */
.gm-scroll-area {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.gm-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gm-section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
    margin-top: 4px;
}

.gm-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.gm-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.gm-required { color: #ef4444; margin-left: 2px; }

.gm-input {
    height: 38px;
    padding: 0 12px;
    border: 1.5px solid #c4ccd6;
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-card);
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.gm-input:focus {
    border-color: var(--color-primary);
    box-shadow: none;
    outline: none;
}

.gm-input-error {
    border-color: #ef4444 !important;
    box-shadow: none !important;
}

.gm-readonly-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.gm-readonly-icon {
    position: absolute;
    left: 10px;
    font-size: 16px;
    color: var(--text-muted);
    pointer-events: none;
}

.gm-input-readonly {
    padding-left: 34px;
    background: var(--bg-subtle) !important;
    color: var(--text-muted);
    cursor: default;
}

.gm-input-readonly:focus {
    border-color: #c4ccd6 !important;
    box-shadow: none !important;
}

.gm-hint {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

.gm-error-text {
    font-size: 12px;
    color: #ef4444;
}

.gm-platform-row {
    display: flex;
    gap: 10px;
}

.gm-plat-chip {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 36px;
    padding: 0 14px;
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--border);
    background: var(--bg-card);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--t-fast);
    user-select: none;
}

.gm-plat-chip:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-primary-subtle);
}

.gm-plat-chip.active {
    border-color: var(--color-primary);
    background: var(--color-primary-subtle);
    color: var(--color-primary);
    font-weight: 600;
}

.gm-plat-chip .material-icons { font-size: 18px; }

.gm-count-tag {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1px 7px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
}

.gm-list-box {
    border: 1.5px solid #c4ccd6;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    overflow: hidden;
}

.gm-list-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-subtle);
}

.gm-list-search .material-icons {
    font-size: 17px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.gm-list-search input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 13px;
    color: var(--text-primary);
    height: 34px;
    width: 100%;
}

.gm-list-body {
    max-height: 160px;
    overflow-y: auto;
}

.gm-list-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    cursor: pointer;
    transition: background 0.12s;
    font-size: 13px;
    color: var(--text-secondary);
}

.gm-list-row:hover { background: var(--bg-hover); }
.gm-list-row.sel  { background: #f0f4ff; color: var(--color-primary); }

.gm-chk {
    width: 15px;
    height: 15px;
    border: 1.5px solid #c4ccd6;
    border-radius: 4px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--t-fast);
}

.gm-chk.on {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.gm-chk.on::after {
    content: '';
    display: block;
    width: 4px;
    height: 7px;
    border: 2px solid white;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translateY(-1px);
}

.gm-list-sep {
    height: 1px;
    background: var(--border-light);
    margin: 2px 0;
}

.gm-user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.gm-user-initial {
    background: var(--bg-active);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
}

.gm-user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.gm-user-name {
    font-size: 13px;
    font-weight: 500;
    color: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gm-user-email {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gm-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-subtle);
    border-radius: 0 0 16px 16px;
    flex-shrink: 0;
}

.gm-btn-cancel {
    height: 36px;
    padding: 0 16px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--t-fast);
}

.gm-btn-cancel:hover {
    background: var(--bg-hover);
    border-color: #cbd5e1;
}

.gm-btn-save {
    height: 36px;
    padding: 0 18px;
    border-radius: var(--radius-md);
    background: var(--color-primary);
    border: none;
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--t-fast);
}

.gm-btn-save:hover { background: #4338ca; }
.gm-btn-save .material-icons { font-size: 18px; }

/* ─── 30. LEGEND PILL (global toggleable legend) ────────── */
.lgd-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 2px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.12s;
  font-family: var(--font);
}
.lgd-pill:hover { background: var(--bg-hover); }
.lgd-pill--off { opacity: 0.35; }
.lgd-pill--off .lgd-label { text-decoration: line-through; }
.lgd-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.lgd-dot--sq {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}
.lgd-line {
  width: 14px;
  height: 2.5px;
  border-radius: 1px;
  flex-shrink: 0;
}
.lgd-label {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  line-height: 1;
}

/* ─── 31. SCROLLBAR ─────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

/* ─── 32. WIKI PANEL ─────────────────────────────────────── */
.wk-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: var(--bg-page);
  display: flex;
  flex-direction: column;
  animation: wk-in 0.2s ease-out;
}
.wk-root {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
@keyframes wk-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* header */
.wk-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 56px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  gap: 16px;
}
.wk-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.wk-header-icon {
  font-size: 22px;
  color: var(--color-primary);
}
.wk-header-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.wk-header-label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.wk-header-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.wk-close {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}
.wk-close:hover { background: var(--bg-card); color: var(--text-primary); }
.wk-close .material-icons { font-size: 16px; }

/* body layout */
.wk-body {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* TOC sidebar */
.wk-toc {
  width: 220px;
  flex-shrink: 0;
  overflow-y: auto;
  border-right: 1px solid var(--border);
  background: var(--bg-card);
  padding: 16px 0 24px;
}
.wk-toc-head {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 16px 8px;
}
.wk-toc-group {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 16px 16px 4px;
}
.wk-toc-item {
  display: block;
  padding: 6px 16px 6px 20px;
  font-size: 12.5px;
  color: var(--text-secondary);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: all 0.12s;
  cursor: pointer;
}
.wk-toc-item:hover {
  color: var(--color-primary);
  background: rgba(79,70,229,0.05);
  border-left-color: var(--color-primary);
}

/* content area */
.wk-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scroll-behavior: smooth;
  padding: 32px 40px 64px;
}
.wk-content-inner {
  max-width: 880px;
  margin: 0 auto;
}

/* page intro banner */
.wk-intro {
  background: linear-gradient(135deg, rgba(79,70,229,0.06) 0%, rgba(139,92,246,0.04) 100%);
  border: 1px solid rgba(79,70,229,0.14);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 32px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.wk-intro-icon {
  width: 40px;
  height: 40px;
  background: rgba(79,70,229,0.10);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wk-intro-icon .material-icons { font-size: 22px; color: var(--color-primary); }
.wk-intro-title { font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.wk-intro-desc  { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* section */
.wk-section {
  margin-bottom: 40px;
  scroll-margin-top: 24px;
}
.wk-section-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.wk-section-title .material-icons { font-size: 19px; color: var(--color-primary); }
.wk-section-sub {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0 0 16px;
}
.wk-section-divider {
  height: 1px;
  background: var(--border-light);
  margin: 8px 0 20px;
}

/* subsection */
.wk-sub {
  margin-bottom: 24px;
  scroll-margin-top: 24px;
}
.wk-sub-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.wk-sub-title .material-icons { font-size: 16px; }
.wk-p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin: 0 0 10px;
}
.wk-p strong { color: var(--text-primary); font-weight: 600; }

/* metric grid */
.wk-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin: 12px 0;
}
.wk-metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.wk-metric-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.wk-metric-sample {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.wk-metric-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}
.wk-metric-formula {
  font-size: 11.5px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 6px 10px;
  color: var(--text-secondary);
  font-family: 'Courier New', monospace;
  margin-top: 4px;
}

/* callout tips */
.wk-tip {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  margin: 12px 0;
  font-size: 12.5px;
  line-height: 1.6;
}
.wk-tip .material-icons { font-size: 17px; flex-shrink: 0; margin-top: 1px; }
.wk-tip--info  { background: rgba(59,130,246,0.07); border: 1px solid rgba(59,130,246,0.2);  color: #1e40af; }
.wk-tip--info .material-icons { color: #3b82f6; }
.wk-tip--good  { background: rgba(16,185,129,0.07); border: 1px solid rgba(16,185,129,0.2);  color: #065f46; }
.wk-tip--good .material-icons { color: #10b981; }
.wk-tip--warn  { background: rgba(245,158,11,0.07); border: 1px solid rgba(245,158,11,0.2);  color: #92400e; }
.wk-tip--warn .material-icons { color: #f59e0b; }
.wk-tip--danger{ background: rgba(239,68,68,0.07);  border: 1px solid rgba(239,68,68,0.2);   color: #7f1d1d; }
.wk-tip--danger .material-icons { color: #ef4444; }
.wk-tip-body strong { font-weight: 700; }

/* benchmark table */
.wk-bench {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  margin: 12px 0;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.wk-bench th {
  padding: 8px 14px;
  background: var(--bg-subtle);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.wk-bench td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  line-height: 1.4;
}
.wk-bench tr:last-child td { border-bottom: none; }
.wk-bench .wk-bch-good { color: #059669; font-weight: 600; }
.wk-bench .wk-bch-warn { color: #d97706; font-weight: 600; }
.wk-bench .wk-bch-bad  { color: #dc2626; font-weight: 600; }

/* inline badges */
.wk-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 7px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  vertical-align: middle;
}
.wk-badge--good   { background: rgba(16,185,129,0.12); color: #059669; }
.wk-badge--warn   { background: rgba(245,158,11,0.12);  color: #d97706; }
.wk-badge--danger { background: rgba(239,68,68,0.12);   color: #dc2626; }
.wk-badge--blue   { background: rgba(59,130,246,0.12);  color: #2563eb; }

/* wiki icon button — sits next to page h1 */
.page-header-name {
  display: flex;
  align-items: center;
  gap: 8px;
}
.wk-page-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}
.wk-page-icon:hover {
  background: rgba(79,70,229,0.07);
  border-color: rgba(79,70,229,0.28);
  color: var(--color-primary);
}
.wk-page-icon .material-icons { font-size: 15px; }

/* ── JSON Tree: Add Property ────────────────────────────────────────────── */
.jtv-add-prop-btn {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    border: none;
    background: none;
    color: #334155;
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
    cursor: pointer;
    padding: 1px 4px;
    border-radius: 3px;
    transition: color 0.12s, background 0.12s;
}
.jtv-add-prop-btn:hover { color: #7dd3fc; background: rgba(125,211,252,0.08); }
.jtv-add-prop-btn .material-icons { font-size: 13px; }

.jtv-add-row { gap: 4px; }

.jtv-add-input {
    border: none;
    border-bottom: 1.5px solid #475569;
    border-radius: 2px 2px 0 0;
    background: rgba(255,255,255,0.07);
    font-family: 'Roboto Mono', monospace;
    font-size: 12.5px;
    padding: 1px 5px 0;
    outline: none;
    min-width: 60px;
    width: 120px;
    transition: border-color 0.15s;
}
.jtv-add-input:first-of-type { width: 100px; } /* key input */
.jtv-add-input:focus { border-bottom-color: #7dd3fc; }

.jtv-add-confirm-btn,
.jtv-add-cancel-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: background 0.12s;
}
.jtv-add-confirm-btn { background: rgba(134,239,172,0.12); color: #86efac; }
.jtv-add-confirm-btn:hover { background: rgba(134,239,172,0.22); }
.jtv-add-cancel-btn  { background: rgba(248,113,113,0.1);  color: #f87171; }
.jtv-add-cancel-btn:hover  { background: rgba(248,113,113,0.2); }
.jtv-add-confirm-btn .material-icons,
.jtv-add-cancel-btn  .material-icons { font-size: 13px; }

/* ── JSON Tree: Delete button ───────────────────────────────────────────── */
.jtv-line--node,
.jtv-line--leaf { position: relative; }

.jtv-del-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border: none;
    border-radius: 3px;
    background: rgba(248,113,113,0.12);
    color: #f87171;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    margin-left: auto;
    transition: background 0.12s;
}
.jtv-del-btn .material-icons { font-size: 12px; }
.jtv-del-btn:hover { background: rgba(248,113,113,0.28); }

.jtv-line--node:hover .jtv-del-btn,
.jtv-line--leaf:hover .jtv-del-btn { display: flex; }

/* ===== Level Variant Suggestion List ===== */
.lv-suggest-list {
    position: relative;
    z-index: 201;
    margin-top: 3px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    overflow: hidden;
}
.lv-suggest-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    font-size: 13px;
    color: var(--text-primary);
    cursor: pointer;
    transition: background .12s;
}
.lv-suggest-header {
    padding: 5px 12px 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #f3f4f6;
}
.lv-suggest-item:hover { background: #f5f3ff; }
.lv-suggest-item.active {
    background: var(--color-primary-subtle, #ede9fe);
    color: var(--color-primary);
    font-weight: 500;
}
