/* ============================================================
   style.css - StockScope
   ============================================================ */

/* CSS Variables (Dark Theme) */
:root {
  --bg:           #0a0f1e;
  --surface:      #111827;
  --surface-2:    #1a2436;
  --surface-3:    #1e293b;
  --border:       #1f2d40;
  --border-2:     #2d3f55;
  --text:         #f1f5f9;
  --text-muted:   #94a3b8;
  --text-faint:   #475569;
  --accent:       #3b82f6;
  --accent-dim:   rgba(59,130,246,0.12);
  --positive:     #22c55e;
  --positive-bg:  rgba(34,197,94,0.1);
  --negative:     #ef4444;
  --negative-bg:  rgba(239,68,68,0.1);
  --radius:       10px;
  --radius-sm:    6px;
  --header-h:     54px;
  --nav-h:        46px;
}

[data-theme="light"] {
  --bg:           #f0f4f8;
  --surface:      #ffffff;
  --surface-2:    #f8fafc;
  --surface-3:    #eef2f7;
  --border:       #dde3ec;
  --border-2:     #c8d3e0;
  --text:         #0f172a;
  --text-muted:   #475569;
  --text-faint:   #94a3b8;
  --accent:       #2563eb;
  --accent-dim:   rgba(37,99,235,0.08);
  --positive:     #16a34a;
  --positive-bg:  rgba(22,163,74,0.08);
  --negative:     #dc2626;
  --negative-bg:  rgba(220,38,38,0.08);
}

/* Base Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  height: 100dvh;
  display: grid;
  grid-template-rows: var(--header-h) var(--nav-h) minmax(0, 1fr) auto;
  overflow: hidden;
  line-height: 1.5;
  font-size: 13px;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }

/* Header */
.header {
  z-index: 200;
  height: var(--header-h);
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

[data-theme="dark"] .header {
  background: rgba(17,24,39,0.92);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--text);
}

.logo-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
  letter-spacing: -0.5px;
}

.header-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.4px;
}

.header-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}

.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.updated-label {
  font-size: 11px;
  color: var(--text-muted);
}

.theme-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-2);
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
}

.theme-btn:hover { background: var(--surface-3); color: var(--text); }

/* Group Navigation */
.group-nav {
  z-index: 100;
  height: var(--nav-h);
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}

[data-theme="dark"] .group-nav {
  background: rgba(17,24,39,0.88);
}

.group-nav::-webkit-scrollbar { display: none; }

.group-btn {
  flex-shrink: 0;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--border-2);
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.group-btn:hover {
  background: var(--surface-3);
  color: var(--text);
}

.group-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  font-weight: 600;
}

/* Main Content */
.main {
  width: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 10px 12px 4px;
  max-width: none;
  margin: 0 auto;
}


#tableContainer {
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

/* Group Section */
.group-section {
  margin-bottom: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.group-section.fill {
  flex: 1 1 auto;
}

.group-section.fill .table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
}

.group-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.group-count {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-faint);
  background: var(--surface-3);
  border: 1px solid var(--border);
  padding: 1px 7px;
  border-radius: 10px;
}

.ma-legend {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  color: var(--text-muted);
  font-size: 11px;
}

.ma-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ma-line {
  width: 14px;
  height: 0;
  border-top: 2px solid;
  border-radius: 2px;
  opacity: 0.9;
}

.ma-line-20 {
  border-color: #38bdf8;
}

.ma-line-200 {
  border-color: #f59e0b;
}

.ma-legend-mobile {
  display: none;
}
/* Table Wrapper */
.table-wrap {
  width: 100%;
  overflow: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.stock-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  min-width: 980px;
}

.stock-table thead {
  background: var(--surface-2);
}

.stock-table th {
  position: sticky;
  top: 0;
  z-index: 4;
  background: var(--surface-2);
  background-clip: padding-box;
  padding: 9px 16px;
  text-align: right;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.2px;
  text-transform: uppercase;
  cursor: default;
  user-select: none;
  white-space: nowrap;
}

.stock-table th[data-col] {
  cursor: pointer;
}

.stock-table th[data-col]:hover {
  color: var(--text-muted);
  background: var(--surface-3);
}

.stock-table th.col-name,
.stock-table th.col-ticker {
  text-align: left;
}

.stock-table th.col-spark {
  text-align: center;
}

.sort-arrow {
  display: inline-block;
  margin-left: 3px;
  font-size: 10px;
  color: var(--text-faint);
  opacity: 0.5;
}

.sort-arrow.active {
  opacity: 1;
  color: var(--accent);
}

.stock-table td {
  padding: 8px 16px;
  text-align: right;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}

.stock-table td.col-name,
.stock-table td.col-ticker {
  text-align: left;
}

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

.stock-row {}

.stock-row:hover td {
  background: var(--accent-dim);
}

/* Column Widths */
.col-name   { width: 175px; min-width: 115px; max-width: 175px; }
.col-ticker { width: 52px; min-width: 52px; }
.col-price  { min-width: 90px; }
.col-pct    { min-width: 74px; }
.col-year   { min-width: 74px; }
.col-ytd    { min-width: 74px; }
.col-mdd    { min-width: 78px; }
.col-beta   { min-width: 60px; color: var(--text-muted); }
.col-sharpe { min-width: 64px; color: var(--text-muted); }
.col-per    { min-width: 68px; color: var(--text-muted); }
.col-upside { min-width: 72px; color: var(--text-muted); }
.col-div    { min-width: 68px; color: var(--text-muted); }
.upside-high { color: #22c55e; font-weight: 600; }
.upside-pos  { color: #86efac; }
.upside-neg  { color: var(--negative); }
.col-rsi    { min-width: 110px; }
.col-macd   { min-width: 110px; }

.stock-table th.col-rsi,
.stock-table th.col-macd { text-align: center; }
.col-spark  { min-width: 90px; padding: 4px 8px; text-align: center; }

/* Sticky Name Column */
.stock-table th.col-name,
.stock-table td.col-name {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--surface);
  overflow: hidden;
}

.stock-table thead th.col-name {
  background: var(--surface-2);
  z-index: 5;
}

.stock-row:hover td.col-name {
  background: var(--accent-dim);
}

.stock-name {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
  color: var(--text);
}

.ticker-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
}

.ticker-link:hover {
  text-decoration: underline;
}

/* Gain/Loss Colors */
.pos { color: var(--positive); font-weight: 600; }
.neg { color: var(--negative); font-weight: 600; }

/* MDD Badge Styles */
.mdd-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.mdd-mild     { background: rgba(234,179,8,0.15);  color: #ca8a04; }
.mdd-moderate { background: rgba(249,115,22,0.15); color: #ea580c; }
.mdd-severe   { background: rgba(239,68,68,0.18);  color: #dc2626; }
.mdd-critical { background: rgba(239,68,68,0.28);  color: #b91c1c; font-weight: 700; }

[data-theme="light"] .mdd-mild     { background: rgba(234,179,8,0.12);  color: #a16207; }
[data-theme="light"] .mdd-moderate { background: rgba(249,115,22,0.12); color: #c2410c; }
[data-theme="light"] .mdd-severe   { background: rgba(239,68,68,0.12);  color: #b91c1c; }
[data-theme="light"] .mdd-critical { background: rgba(239,68,68,0.2);   color: #991b1b; }

/* Beta Badge Styles */
.beta-inverse  { color: #a78bfa; }
.beta-low      { color: var(--text-muted); }
.beta-high     { background: rgba(249,115,22,0.15); color: #ea580c; padding: 2px 6px; border-radius: 4px; }
.beta-extreme  { background: rgba(239,68,68,0.20);  color: #dc2626; font-weight: 700; padding: 2px 6px; border-radius: 4px; }

[data-theme="light"] .beta-high    { background: rgba(249,115,22,0.12); color: #c2410c; }
[data-theme="light"] .beta-extreme { background: rgba(239,68,68,0.14);  color: #b91c1c; }

/* Sharpe Badge Styles */
.sharpe-neg  { color: #ef4444; }
.sharpe-ok   { color: #86efac; }
.sharpe-good { color: #22c55e; font-weight: 700; }

[data-theme="light"] .sharpe-ok   { color: #16a34a; }
[data-theme="light"] .sharpe-good { color: #15803d; font-weight: 700; }

/* RSI Styles */
.rsi-val {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
}

.rsi-high { background: rgba(239,68,68,0.15);  color: #dc2626; font-weight: 600; }
.rsi-low  { background: rgba(34,197,94,0.15);  color: var(--positive); font-weight: 600; }

[data-theme="light"] .rsi-high { background: rgba(239,68,68,0.1);  color: #b91c1c; }
[data-theme="light"] .rsi-low  { background: rgba(34,197,94,0.1);  color: #15803d; }

/* MACD Value Styles */
.macd-val {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

/* MACD Bull Strong */
.macd-bull-strong { color: var(--positive); }
/* MACD Bull Weak */
.macd-bull-weak   { color: #4ade80; opacity: 0.7; }
/* MACD Bear Weak */
.macd-bear-weak   { color: var(--negative); opacity: 0.6; }
/* MACD Bear Strong */
.macd-bear-strong { background: rgba(239,68,68,0.12); color: var(--negative); }

[data-theme="light"] .macd-bull-weak   { color: #15803d; opacity: 0.65; }
[data-theme="light"] .macd-bear-weak   { color: #b91c1c; opacity: 0.6; }
[data-theme="light"] .macd-bear-strong { background: rgba(220,38,38,0.1); color: #b91c1c; }

/* Indicator Cells */
.indicator-cell {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.indicator-chart {
  flex: 1;
  min-width: 0;
  display: block;
  height: 22px;
}

/* Sparklines */
.sparkline {
  display: block;
  margin: 0 auto;
}

.spark-empty {
  color: var(--text-faint);
  font-size: 11px;
}

/* Loading State */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 14px;
}

.spinner {
  width: 22px;
  height: 22px;
  border: 2px solid var(--border-2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Error State */
.error-msg {
  margin: 40px auto;
  max-width: 480px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--negative);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 6px 12px;
  text-align: center;
  font-size: 10px;
  color: var(--text-faint);
  line-height: 1.3;
}

.site-footer a { color: var(--text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* Responsive Layout (<=1500px) */
@media (max-width: 1500px) {
  body {
    grid-template-rows: var(--header-h) auto minmax(0, 1fr) auto;
  }

  .group-nav {
    height: auto;
    flex-wrap: wrap;
    overflow-x: visible;
    padding: 6px 14px;
    row-gap: 6px;
  }
}
@media (max-width: 768px) {
  body {
    grid-template-rows: var(--header-h) auto minmax(0, 1fr) auto;
  }
  .main { padding: 10px; }
  .header { padding: 0 12px; }

  .group-nav {
    height: auto;
    flex-wrap: wrap;
    padding: 6px 10px;
    gap: 4px;
    overflow-x: visible;
  }
  .group-btn { font-size: 11px; padding: 3px 9px; }

  .group-title { font-size: 13px; }
  .ma-legend { font-size: 10px; gap: 8px; flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .main { padding: 8px; }
}

/* Mobile-only Elements */
.mobile-ticker { display: none; }
.mobile-change { display: none; }

/* Mobile Card Layout (<=600px) */
@media (max-width: 600px) {
  body {
    height: auto;
    min-height: 100dvh;
    overflow: auto;
    display: block;
  }

  .ma-legend-desktop { display: none; }
  .ma-legend-mobile { display: inline; }

  .table-wrap {
    max-height: none;
    border: none;
    background: transparent;
    border-radius: 0;
    overflow: visible;
  }

  .stock-table {
    display: block;
    min-width: unset;
    width: 100%;
  }

  .stock-table thead { display: none; }

  .stock-table tbody {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  /* Mobile Card Container */
  .stock-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 6px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 14px;
  }

  .stock-row:hover td { background: transparent; }

  .stock-row td {
    padding: 0;
    border: none;
    background: transparent !important;
    font-size: 13px;
  }

  /* Disable Sticky Name on Mobile */
  .stock-table td.col-name {
    position: static;
    z-index: auto;
  }

  /* Mobile Row 1 Layout (1안: 종목명 | YTD) */
  .stock-row td.col-name {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: baseline;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
  }

  .mobile-ticker {
    display: inline;
    color: var(--accent);
    font-weight: 600;
    font-size: 12px;
  }

  .stock-row td.col-ticker { display: none !important; }

  .stock-row td.col-price {
    grid-column: 1;
    grid-row: 2;
    display: flex !important;
    align-items: baseline;
    justify-content: flex-start;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
  }

  .mobile-change {
    display: inline;
    font-size: 13px;
    font-weight: 600;
  }

  .stock-row td.col-pct    { display: none !important; }
  .stock-row td.col-ytd {
    grid-column: 2;
    grid-row: 1;
    display: flex !important;
    align-items: center;
    gap: 4px;
  }
  .stock-row td.col-beta   { display: none !important; }
  .stock-row td.col-per    { display: none !important; }
  .stock-row td.col-sharpe { display: none !important; }
  .stock-row td.col-upside { display: none !important; }
  .stock-row td.col-div    { display: none !important; }

  /* Mobile Row 2 Layout (현재가 | YoY) */
  .stock-row td.col-year { grid-column: 2; grid-row: 2; display: flex !important; align-items: center; gap: 4px; }
  .stock-row td.col-mdd  { grid-column: 2; grid-row: 3; display: flex !important; justify-content: flex-start; align-items: center; gap: 4px; }

  /* Mobile Row 3 Layout (RSI | MDD) */
  .stock-row td.col-rsi { grid-column: 1; grid-row: 3; display: flex !important; justify-content: flex-start; align-items: center; gap: 4px; }

  /* Hide MACD on Mobile */
  .stock-row td.col-macd { display: none !important; }

  /* RSI: hide chart SVG, show number only */
  .stock-row td.col-rsi .indicator-cell svg { display: none; }

  /* Mobile Field Labels */
  .stock-row td.col-ytd::before { content: 'YTD';   font-size: 11px; color: var(--text-muted); flex-shrink: 0; }
  .stock-row td.col-year::before { content: 'YoY';   font-size: 11px; color: var(--text-muted); flex-shrink: 0; }
  .stock-row td.col-mdd::before  { content: 'MDD';   font-size: 11px; color: var(--text-muted); flex-shrink: 0; }
  .stock-row td.col-rsi::before  { content: 'RSI';   font-size: 11px; color: var(--text-muted); flex-shrink: 0; }

  /* Mobile Chart Section (15=30일, 16=1년, 17=3년) */
  /* Hide 3Y Chart on Mobile */
  .stock-row td:nth-child(17) { display: none !important; }

  .stock-row td:nth-child(15),
  .stock-row td:nth-child(16) {
    grid-row: 4;
    min-width: 0;
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding-top: 8px;
    margin-top: 2px;
    border-top: 1px solid var(--border);
  }

  .stock-row td:nth-child(15) { grid-column: 1; }
  .stock-row td:nth-child(16) { grid-column: 2; }

  .stock-row td:nth-child(15)::before { content: '30일'; font-size: 10px; color: var(--text-muted); }
  .stock-row td:nth-child(16)::before { content: '1년'; font-size: 10px; color: var(--text-muted); }

  .stock-row td:nth-child(15) .sparkline,
  .stock-row td:nth-child(16) .sparkline {
    height: 20px;
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
}

/* ============================================================
   지표 설명 모달
   ============================================================ */

.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  animation: modal-fade-in 0.2s ease;
}
.modal-overlay[hidden] { display: none !important; }

@keyframes modal-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-box {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  width: min(560px, 92vw);
  max-height: 80vh;
  display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  animation: modal-slide-in 0.2s ease;
  overflow: hidden;
}

@keyframes modal-slide-in {
  from { opacity: 0; transform: scale(0.95) translateY(8px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.modal-title { font-size: 15px; font-weight: 600; color: var(--text); }
.modal-close { width: 30px; height: 30px; }

.modal-body { display: flex; flex-direction: column; overflow: hidden; min-height: 0; }

/* 탭 */
.metric-tabs {
  display: flex; gap: 4px;
  padding: 12px 16px 0;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  flex-shrink: 0;
  scrollbar-width: none;
}
.metric-tabs::-webkit-scrollbar { display: none; }

.metric-tab {
  padding: 6px 14px;
  border-radius: 6px 6px 0 0;
  border: 1px solid transparent; border-bottom: none;
  background: transparent; color: var(--text-muted);
  font-size: 13px; font-weight: 500; cursor: pointer;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
  font-family: inherit;
}
.metric-tab:hover { color: var(--text); background: var(--surface-2); }
.metric-tab.active {
  color: var(--accent); background: var(--surface-2);
  border-color: var(--border);
}

/* 패널 */
.metric-content-area { padding: 20px; overflow-y: auto; flex: 1; }
.metric-panel { display: none; }
.metric-panel.active { display: block; }

.metric-panel h3 {
  font-size: 17px; font-weight: 700;
  color: var(--text); margin-bottom: 6px;
  display: flex; align-items: baseline; gap: 8px;
}
.metric-subtitle-inline {
  font-size: 13px; font-weight: 400; color: var(--text-muted);
}
.metric-subtitle { color: var(--text-muted); font-size: 13px; margin-bottom: 16px; line-height: 1.6; }

.metric-section-title {
  font-size: 11px; font-weight: 600; color: var(--text-faint);
  text-transform: uppercase; letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.metric-formula {
  font-family: 'Courier New', monospace; font-size: 13px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 14px;
  color: var(--text-muted); margin-bottom: 16px;
  line-height: 1.5;
}

.level-list { display: flex; flex-direction: column; gap: 8px; }
.level-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text-muted); line-height: 1.4;
}
.level-chip {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}

/* 모바일: 하단 시트 */
@media (max-width: 600px) {
  .modal-overlay { align-items: flex-end; }
  .modal-box {
    width: 100%; max-height: 70vh;
    border-radius: var(--radius) var(--radius) 0 0;
    animation: modal-slide-up 0.25s ease;
  }
  @keyframes modal-slide-up {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
  }
}
