* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Shared visibility state for account controls, dialogs and temporary hints. */
.hidden {
  display: none !important;
}

.plan-action-btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

:root {
  --bg-wall: #474d54;
  --board-outer: #16181c;
  --board-inner: #080a0f;
  --board-border: #2b303b;
  --text-main: #f1f5f9;
  --text-sub: #94a3b8;
  --up-color: #3b82f6;
}

body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  background: #383e44;
  color: var(--text-main);
  user-select: none;
}

/* 3D WebGL 캔버스 (강당 + 벤치 + 37마리 캐릭터 개미 군단) */
#webgl-container {
  position: fixed;
  inset: 0;
  z-index: 1;
}

/* 개미 머리 위 이름표 & 말풍선 HTML 오버레이 */
#ant-labels-layer {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
}

.ant-Overlay-item {
  position: absolute;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  pointer-events: none;
}

/* 개미 실시간 말풍선 (캡처의 흰색/빨간색 둥근 말풍선 재현) */
.ant-speech-bubble {
  background: #ffffff;
  color: #111827;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 13px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
  animation: popBubble 0.25s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  margin-bottom: 2px;
  z-index: 10;
}

.ant-speech-bubble.shout {
  background: #ef4444;
  color: #ffffff;
}

.ant-speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px 5px 0;
  border-style: solid;
  border-color: #ffffff transparent;
}

.ant-speech-bubble.shout::after {
  border-color: #ef4444 transparent;
}

@keyframes popBubble {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* 개미 층수/타점 뱃지 (미니어처 캐릭터 전용 컴팩트 알약 뱃지) */
.ant-floor-badge {
  font-size: 9px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  color: #eff6ff;
  background: rgba(23, 37, 84, 0.9);
  border: 1px solid rgba(96, 165, 250, 0.7);
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0,0,0,0.45);
}

/* 개미 닉네임 라벨 (미니어처 캐릭터 전용 컴팩트 알약 라벨) */
.ant-name-pill {
  font-size: 9.5px;
  font-weight: 700;
  padding: 1.5px 6px;
  border-radius: 5px;
  background: rgba(15, 17, 21, 0.86);
  color: #f8fafc;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.12);
}

.ant-name-pill.is-me {
  background: rgba(16, 185, 129, 0.95);
  color: #052e16;
  font-weight: 800;
  border-color: #6ee7b7;
}

/* 상단 컨트롤 바 */
.top-control-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 38px;
  background: rgba(12, 15, 20, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 20;
}

.brand-box {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseDot 1.6s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.session-badge {
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.5);
  color: #93c5fd;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
}

.kis-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
}
.kis-badge.connected {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid #10b981;
  color: #6ee7b7;
}
.kis-badge.pending {
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fde68a;
}
.kis-badge.error {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #ef4444;
  color: #fca5a5;
}

.market-switch-group, .camera-switch-group {
  display: flex;
  align-items: center;
  gap: 5px;
}

.switch-label {
  font-size: 11.5px;
  color: var(--text-sub);
  margin-right: 3px;
}

.mode-btn, .cam-btn {
  background: rgba(30, 41, 59, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #cbd5e1;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s;
}

.mode-btn:hover, .cam-btn:hover {
  background: rgba(51, 65, 85, 0.9);
  color: #fff;
}

.mode-btn.active, .cam-btn.active {
  background: #2563eb;
  border-color: #60a5fa;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.45);
}

/* =========================================================
   전면 대형 멀티 전광판 (화면 상단 ~ 절반에 배치되어 하단 개미 광장이 훤히 보임)
   ========================================================= */
#auditorium-screen-wrapper {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 기본 광장+전광판 뷰: 전광판 높이를 컴팩트하게 유지해 하단 50%에 개미 37마리가 바글바글 보이도록 설계 */
#auditorium-screen-wrapper.screen-mode-lounge {
  top: 41px;
  width: min(1080px, 88vw);
}

/* 전광판 집중 확대 뷰 */
#auditorium-screen-wrapper.screen-mode-screen {
  top: 46px;
  width: min(1420px, 96vw);
  z-index: 12;
}

.wall-notice-banner {
  background: #13161b;
  border: 2px solid #262a33;
  color: #e2e8f0;
  font-size: 11.5px;
  padding: 3px 14px;
  border-radius: 4px;
  margin-bottom: 3px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.wall-notice-banner strong {
  color: #38bdf8;
}

/* 전광판 지수 티커 바 */
.wall-ticker-bar {
  width: 100%;
  background: #0c0e12;
  border: 3px solid #22262e;
  padding: 3px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.55);
}

.ticker-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 12px;
}

.t-name {
  color: #d97706;
  font-weight: 700;
}

.t-val {
  color: #60a5fa;
  font-family: 'Consolas', monospace;
  font-size: 14px;
  font-weight: 700;
}

.t-chg {
  font-size: 11px;
  font-weight: 600;
}

.t-chg.up { color: #f87171; }
.t-chg.down { color: #60a5fa; }

.ticker-clock {
  font-family: 'Consolas', monospace;
  font-size: 12px;
  color: #9ca3af;
}

/* 6개 추천 종목 메인 전광판 그리드 (3열 x 2행) */
.wall-main-board {
  width: 100%;
  background: #07090d;
  border: 5px solid #252932;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.75), inset 0 0 24px rgba(0, 0, 0, 0.8);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 2px;
  background-color: #1e232b;
}

.stock-screen-cell {
  background: radial-gradient(circle at 50% 25%, #0d1322 0%, #07090e 100%);
  padding: 5px 9px 4px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
  transition: background 0.18s;
  height: 146px;
}

#auditorium-screen-wrapper.screen-mode-screen .stock-screen-cell {
  height: 238px;
}

.stock-screen-cell:hover {
  background: radial-gradient(circle at 50% 25%, #131e36 0%, #090d16 100%);
  outline: 1.5px solid #38bdf8;
  z-index: 2;
}

.cell-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cell-title-box {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.cell-rank {
  background: #1d4ed8;
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 3px;
}

.cell-name {
  font-size: 13.5px;
  font-weight: 800;
  color: #f8fafc;
}

.cell-code {
  font-size: 10px;
  color: #64748b;
  font-family: 'Consolas', monospace;
}

.cell-score-badge {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #34d399;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
}

.cell-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.cell-price-main {
  font-family: 'Consolas', monospace;
  font-size: 17px;
  font-weight: 800;
  color: #60a5fa;
  letter-spacing: -0.5px;
}

.cell-chg-text {
  font-size: 10.5px;
  font-weight: 700;
  margin-left: 4px;
}

.cell-chg-text.up { color: #f87171; }
.cell-chg-text.down { color: #60a5fa; }

.cell-badges-wrap {
  display: flex;
  gap: 3px;
  align-items: center;
}

.smc-mini-tag {
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #7dd3fc;
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
}

.val-mini-tag {
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: #fde68a;
  font-size: 9.5px;
  font-weight: 600;
  padding: 1px 4px;
  border-radius: 3px;
}

.cell-canvas-wrap {
  position: relative;
  flex: 1;
  width: 100%;
  margin-top: 2px;
  min-height: 76px;
}

.cell-chart-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.cell-footer-reason {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9.8px;
  color: #94a3b8;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cell-footer-reason strong {
  color: #a7f3d0;
}

.cell-click-hint {
  color: #38bdf8;
  font-weight: 700;
  font-size: 9.5px;
}

/* =========================================================
   좌측 하단: 내 개미 아바타 설정 & 감정표현
   ========================================================= */
.my-ant-panel {
  position: fixed;
  left: 14px;
  bottom: 12px;
  z-index: 15;
  background: rgba(15, 18, 25, 0.84);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 280px;
}

.my-ant-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.ant-icon {
  font-size: 16px;
}

.my-ant-row input {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #fff;
  font-size: 11.5px;
  padding: 4px 7px;
  border-radius: 5px;
  width: 100%;
}

.quick-shout-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}

.shout-btn {
  background: rgba(37, 99, 235, 0.22);
  border: 1px solid rgba(96, 165, 250, 0.35);
  color: #e0f2fe;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 5px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.15s;
}

.shout-btn:hover {
  background: rgba(37, 99, 235, 0.5);
}

.my-ant-move-hint {
  display: flex;
  align-items: center;
  gap: 3px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 4px 6px;
  font-size: 10px;
  color: #94a3b8;
  margin-top: 2px;
}

.hint-icon {
  font-size: 12px;
  margin-right: 2px;
}

.key-pill {
  background: #1e293b;
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.45);
  font-family: monospace;
  font-size: 9px;
  font-weight: 800;
  padding: 0 4px;
  border-radius: 3px;
}

.hint-text {
  font-size: 9.5px;
  color: #cbd5e1;
}

/* =========================================================
   중앙 하단: 캡처 이미지 스타일 실시간 채팅창 & 입력 바
   ========================================================= */
.chat-dock-wrapper {
  position: fixed;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  width: min(520px, 88vw);
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.chat-window {
  width: 100%;
  background: rgba(20, 22, 27, 0.78);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 6px;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}

.chat-window.collapsed .chat-messages {
  max-height: 38px;
}

.chat-toggle-btn {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: #1f242d;
  border: 1px solid rgba(255,255,255,0.2);
  color: #cbd5e1;
  width: 30px;
  height: 16px;
  border-radius: 99px;
  font-size: 11px;
  line-height: 12px;
  cursor: pointer;
}

.chat-messages {
  max-height: 125px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12.5px;
  padding-right: 4px;
}

.chat-messages::-webkit-scrollbar {
  width: 5px;
}
.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
}

.chat-line {
  line-height: 1.38;
  word-break: break-word;
}

.chat-line .c-sender {
  color: #9ca3af;
  font-weight: 700;
  margin-right: 5px;
}

.chat-line.is-me .c-sender {
  color: #34d399;
}

.chat-line .c-stock-tag {
  background: rgba(59, 130, 246, 0.25);
  color: #93c5fd;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 4px;
  margin-right: 4px;
  cursor: pointer;
}

.chat-tip-banner {
  background: linear-gradient(90deg, rgba(88, 28, 135, 0.55) 0%, rgba(49, 46, 129, 0.45) 100%);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #c084fc;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 6px;
  margin: 2px 0;
}

.chat-bottom-bar {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bottom-left-pills {
  display: flex;
  align-items: center;
  background: rgba(20, 22, 27, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 3px 8px;
  gap: 5px;
}

.pill-icon-btn {
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-size: 12.5px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 99px;
  cursor: pointer;
}

.pill-icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.chat-input-form {
  flex: 1;
  display: flex;
  align-items: center;
  background: rgba(20, 22, 27, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 3px 5px 3px 14px;
}

.chat-input-form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #f8fafc;
  font-size: 12.5px;
}

.chat-send-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: #374151;
  color: #e5e7eb;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s;
}

.chat-send-btn:hover {
  background: #2563eb;
  color: #fff;
}

/* =========================================================
   SMC 정밀 작도 & 추천 사유 상세 모달
   ========================================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 15, 0.8);
  backdrop-filter: blur(6px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-backdrop.hidden {
  display: none;
}

.modal-card {
  width: min(1360px, 96vw);
  max-height: 92vh;
  background: #0f1420;
  border: 1px solid #2e3a52;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #141b2d;
  border-bottom: 1px solid #263147;
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-rank-badge {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 5px;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}

.modal-title-group h2 {
  font-size: 20px;
  font-weight: 800;
}

.modal-sector {
  font-size: 12px;
  color: #94a3b8;
  background: rgba(255,255,255,0.06);
  padding: 3px 8px;
  border-radius: 4px;
}

.modal-smc-tag {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid #10b981;
  color: #6ee7b7;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
}

.modal-smc-tag.waiting {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid #f59e0b;
  color: #fcd34d;
}

.modal-smc-tag.danger {
  background: rgba(239, 68, 68, 0.22);
  border: 1px solid #ef4444;
  color: #fca5a5;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.modal-price-group {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-left: auto;
  margin-right: 20px;
}

.m-price {
  font-family: 'Consolas', monospace;
  font-size: 24px;
  font-weight: 800;
  color: #f8fafc;
}

.m-change {
  font-size: 14px;
  font-weight: 700;
}
.m-change.up { color: #f87171; }
.m-change.down { color: #60a5fa; }

.modal-close-btn {
  background: rgba(255,255,255,0.08);
  border: none;
  color: #cbd5e1;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}
.modal-close-btn:hover {
  background: #ef4444;
  color: #fff;
}

.modal-body {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 18px;
  padding: 16px 20px;
  overflow-y: auto;
}

.modal-chart-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chart-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0a0e17;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #1e293b;
}

.legend-items {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11.5px;
  color: #cbd5e1;
}

.lg-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.box-ob {
  width: 12px; height: 12px;
  background: rgba(16, 185, 129, 0.35);
  border: 1px solid #10b981;
  display: inline-block;
}
.box-fvg {
  width: 12px; height: 12px;
  background: rgba(245, 158, 11, 0.35);
  border: 1px solid #f59e0b;
  display: inline-block;
}
.line-choch {
  width: 14px; height: 2px;
  background: #38bdf8;
  display: inline-block;
}
.line-bsl {
  width: 14px; height: 2px;
  background: #f43f5e;
  display: inline-block;
}
.line-eq {
  width: 14px; height: 2px;
  border-top: 2px dashed #a855f7;
  display: inline-block;
}

.timeframe-badge {
  font-size: 11.5px;
  font-weight: 700;
  color: #93c5fd;
}

.detail-canvas-wrap {
  position: relative;
  background: #070a10;
  border: 1px solid #1e293b;
  border-radius: 10px;
  overflow: hidden;
  user-select: none;
}

.chart-zoom-controls {
  position: absolute;
  top: 8px;
  right: 108px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(6px);
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.chart-zoom-controls button {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e2e8f0;
  border-radius: 5px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chart-zoom-controls button:hover {
  background: #2563eb;
  border-color: #3b82f6;
  color: #ffffff;
}

.zoom-guide-pill {
  font-size: 10.5px;
  color: #94a3b8;
  margin-left: 4px;
  font-weight: 600;
}

#detail-smc-canvas {
  width: 100%;
  height: auto;
  display: block;
  cursor: grab;
}

#detail-smc-canvas:active {
  cursor: grabbing;
}

.trade-plan-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  background: #0b101b;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 10px 12px;
}

.tp-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tp-label {
  font-size: 11px;
  color: #94a3b8;
}

.tp-val {
  font-family: 'Consolas', monospace;
  font-size: 14.5px;
}
.tp-val.entry { color: #34d399; }
.tp-val.sl { color: #f87171; }
.tp-val.tp1 { color: #60a5fa; }
.tp-val.tp2 { color: #fbbf24; }
.tp-val.rr { color: #c084fc; }

.modal-briefing-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.score-hero-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #141c2e;
  border: 1px solid #283655;
  border-radius: 10px;
  padding: 12px 16px;
}

.total-score-circle {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: radial-gradient(circle, #1e3a8a 0%, #0f172a 100%);
  border: 3px solid #38bdf8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sc-num {
  font-size: 21px;
  font-weight: 900;
  color: #38bdf8;
}
.sc-max {
  font-size: 10px;
  color: #94a3b8;
}

.score-bars {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.sbar-head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 4px;
}

.sbar-track {
  height: 8px;
  background: #090d16;
  border-radius: 99px;
  overflow: hidden;
}

.sbar-fill.val {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}
.sbar-fill.smc {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #38bdf8);
}

.why-card {
  background: #121826;
  border: 1px solid #222e46;
  border-radius: 10px;
  padding: 12px 14px;
}

.why-card h3 {
  font-size: 13.5px;
  margin-bottom: 6px;
  color: #e2e8f0;
}

.why-card p {
  font-size: 12.5px;
  line-height: 1.55;
  color: #cbd5e1;
  margin-bottom: 8px;
}

.smc-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chk-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(16, 185, 129, 0.14);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.fund-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
}

.fm-box {
  background: #0b0f19;
  border: 1px solid #1e293b;
  padding: 7px 10px;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.fm-box span { color: #94a3b8; }
.fm-box strong { color: #fbbf24; }
.fm-box strong.up { color: #34d399; }

.ant-vote-box {
  background: #141b2d;
  border: 1px solid #283655;
  border-radius: 10px;
  padding: 10px 14px;
}

.vote-title {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 7px;
  font-weight: 700;
}

.vote-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.vote-btn {
  padding: 8px;
  border-radius: 7px;
  border: none;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s;
}
.vote-btn:active { transform: scale(0.97); }
.vote-btn.bull {
  background: rgba(16, 185, 129, 0.22);
  border: 1px solid #10b981;
  color: #6ee7b7;
}
.vote-btn.wait {
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid #3b82f6;
  color: #93c5fd;
}

.algo-guide-card {
  width: min(860px, 94vw);
}
.algo-guide-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.algo-step-box {
  background: #141c2e;
  border: 1px solid #2a3958;
  border-radius: 10px;
  padding: 16px 18px;
}
.step-badge {
  display: inline-block;
  background: #d97706;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}
.step-badge.smc {
  background: #059669;
}
.algo-step-box h3 {
  font-size: 16px;
  margin-bottom: 6px;
}
.algo-step-box p {
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 10px;
  line-height: 1.5;
}
.algo-step-box ul {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #e2e8f0;
}

/* =========================================================
   [상용화/수익화 기능] 1. 내 종목 SMC 구조대 판독기 검색창
   ========================================================= */
.stock-search-form {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: 7px;
  padding: 2px 4px 2px 8px;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.15);
}

.stock-search-form input {
  background: transparent;
  border: none;
  outline: none;
  color: #f8fafc;
  font-size: 11.5px;
  width: 245px;
}

.stock-search-form input::placeholder {
  color: #94a3b8;
}

.stock-search-form button {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  border: none;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 5px;
  cursor: pointer;
  white-space: nowrap;
  transition: filter 0.15s;
}

.stock-search-form button:hover {
  filter: brightness(1.15);
}

/* =========================================================
   [상용화/수익화 기능] 2. PRO 패스 버튼 & 1위 종목 블러 잠금 오버레이
   ========================================================= */
.pro-badge-btn {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: 1px solid #fde047;
  color: #0f172a;
  font-size: 11.5px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
  transition: transform 0.15s, filter 0.15s;
}

.pro-badge-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.pro-badge-btn.pro-active {
  background: linear-gradient(135deg, #10b981, #059669);
  border-color: #6ee7b7;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
}

.stock-screen-cell {
  position: relative;
}

.stock-screen-cell.pro-locked .cell-name,
.stock-screen-cell.pro-locked .cell-code,
.stock-screen-cell.pro-locked .cell-price-main,
.stock-screen-cell.pro-locked .cell-chg-text,
.stock-screen-cell.pro-locked .cell-canvas-wrap,
.stock-screen-cell.pro-locked .cell-footer-reason {
  filter: blur(6px);
  user-select: none;
}

.pro-lock-overlay {
  position: absolute;
  inset: 32px 6px 6px 6px;
  background: rgba(10, 15, 28, 0.72);
  backdrop-filter: blur(3px);
  border: 1px dashed rgba(250, 204, 21, 0.55);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  z-index: 5;
  text-align: center;
  padding: 8px;
}

.pro-lock-title {
  font-size: 12px;
  font-weight: 800;
  color: #fde047;
}

.pro-lock-desc {
  font-size: 10px;
  color: #cbd5e1;
}

.pro-unlock-btn {
  margin-top: 2px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  border: 1px solid #fef08a;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 99px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.45);
}

/* =========================================================
   [상용화/수익화 기능] 3. PRO 멤버십 구독 모달
   ========================================================= */
.pro-modal-card {
  width: min(760px, 94vw);
  border: 1px solid rgba(250, 204, 21, 0.45);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 30px rgba(245, 158, 11, 0.18);
}

.pro-modal-header {
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.95), rgba(69, 26, 3, 0.75));
}

.pro-crown-pill {
  display: inline-block;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid #f59e0b;
  color: #fde047;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 99px;
  margin-bottom: 4px;
}

.pro-modal-body {
  padding: 20px 24px;
}

.pro-subtitle {
  font-size: 13.5px;
  color: #cbd5e1;
  margin-bottom: 18px;
  line-height: 1.5;
}

.pro-pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 16px;
}

.pro-plan-box {
  background: #111827;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pro-plan-box.pro-featured {
  background: linear-gradient(160deg, #172554 0%, #0f172a 100%);
  border: 1.5px solid #f59e0b;
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.15);
}

.pro-popular-tag {
  position: absolute;
  top: -11px;
  right: 16px;
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 99px;
}

.plan-name {
  font-size: 15px;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 6px;
}

.plan-price {
  font-size: 24px;
  font-weight: 900;
  color: #fde047;
  margin-bottom: 14px;
}

.plan-price span {
  font-size: 12px;
  font-weight: 500;
  color: #94a3b8;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 18px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12.5px;
  color: #e2e8f0;
  flex: 1;
}

.plan-features li.disabled {
  color: #64748b;
  text-decoration: line-through;
}

.plan-action-btn {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  border: none;
  transition: filter 0.15s, transform 0.1s;
}

.plan-action-btn.primary {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.4);
}

.plan-action-btn.secondary {
  background: #1e293b;
  border: 1px solid #475569;
  color: #cbd5e1;
}

.plan-action-btn:hover {
  filter: brightness(1.1);
}

.pro-legal-note {
  margin-top: 14px;
  font-size: 11.5px;
  color: #94a3b8;
  text-align: center;
  background: rgba(15, 23, 42, 0.7);
  padding: 8px;
  border-radius: 6px;
}

/* =========================================================
   [상용화/수익화 기능] 4. 자본시장법 준수 면책조항 배너
   ========================================================= */
.modal-legal-notice {
  margin-top: 8px;
  font-size: 10.5px;
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.2);
  padding: 6px 8px;
  border-radius: 6px;
  line-height: 1.4;
}

.legal-disclaimer-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 18px;
  background: rgba(8, 10, 15, 0.88);
  color: #64748b;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 12;
  pointer-events: none;
}

/* =========================================================
   [상용화/수익화 기능] 5. 개발자 커피 후원 모달 & 버튼 스타일
   ========================================================= */
.donate-badge-btn {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #ffffff;
  border: 1px solid #f59e0b;
  border-radius: 6px;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.35);
  transition: all 0.2s ease;
}

.donate-badge-btn:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.6);
}

.donate-modal-card {
  max-width: 540px;
  width: 92%;
  background: #0f172a;
  border: 1px solid #d97706;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.85), 0 0 24px rgba(217, 119, 6, 0.2);
}

.donate-modal-body {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.donate-intro-box {
  background: rgba(217, 119, 6, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 12px 14px;
  border-radius: 8px;
}

.donate-main-msg {
  margin: 0;
  font-size: 13px;
  color: #f1f5f9;
  line-height: 1.6;
}

.donate-qr-wrapper {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
  justify-content: center;
  background: rgba(30, 41, 59, 0.6);
  padding: 18px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

@media (max-width: 600px) {
  .donate-qr-wrapper {
    flex-direction: column;
  }
}

.donate-qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.qr-bank-tag {
  font-size: 11px;
  font-weight: 700;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.15);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.toss-qr-image {
  width: 175px;
  height: 175px;
  background: #ffffff;
  padding: 8px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.qr-scan-guide {
  margin: 0;
  font-size: 10.5px;
  color: #94a3b8;
  max-width: 185px;
  text-align: center;
  line-height: 1.4;
}

.donate-action-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toss-app-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #0064ff;
  color: #ffffff;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 800;
  padding: 11px 16px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 100, 255, 0.4);
  transition: all 0.2s ease;
}

.toss-app-btn:hover {
  background: #0052cc;
  box-shadow: 0 6px 18px rgba(0, 100, 255, 0.6);
  transform: translateY(-1px);
}

.donate-presets-label {
  font-size: 11.5px;
  color: #cbd5e1;
  font-weight: 600;
}

.donate-cheer-btn-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cheer-btn {
  background: #1e293b;
  border: 1px solid #334155;
  color: #f8fafc;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.cheer-btn:hover {
  background: #334155;
  border-color: #f59e0b;
  color: #fbbf24;
}

.donate-status-hint {
  font-size: 11px;
  color: #34d399;
  min-height: 16px;
  font-weight: 600;
}

.donate-legal-notice {
  font-size: 11px;
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 8px 12px;
  border-radius: 6px;
  line-height: 1.5;
}

/* =========================================================
   [경쟁력 극대화] 6. 사운드 토글 / 바이럴 공유 카드 / 이모지 리액션 휠
   ========================================================= */
.sound-toggle-btn {
  background: rgba(30, 41, 59, 0.85);
  color: #cbd5e1;
  border: 1px solid #475569;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sound-toggle-btn.active {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border-color: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.modal-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-share-card {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #ffffff;
  border: 1px solid #38bdf8;
  padding: 6px 13px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 14px rgba(37, 99, 235, 0.45);
  transition: all 0.2s ease;
}

.btn-share-card:hover {
  filter: brightness(1.2);
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.65);
}

.quick-emoji-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  background: rgba(15, 23, 42, 0.6);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.emoji-label {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
}

.emoji-react-btn {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 3px 7px;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s;
}

.emoji-react-btn:hover {
  transform: scale(1.25);
  background: #334155;
}

.ant-speech-bubble.emoji-bubble {
  font-size: 24px;
  padding: 2px 8px;
  background: rgba(15, 23, 42, 0.92);
  border: 1.5px solid #fbbf24;
  border-radius: 12px;
  animation: emojiBounce 0.4s ease-out;
}

@keyframes emojiBounce {
  0% { transform: scale(0.3) translateY(10px); opacity: 0; }
  60% { transform: scale(1.2) translateY(-4px); opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* 모바일 화면 (스마트폰) 시야 & 터치 최적화 */
@media (max-width: 768px) {
  .top-control-bar {
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px 10px;
    height: auto;
  }
  .brand-box strong {
    font-size: 13px;
  }
  .stock-search-form {
    order: 3;
    width: 100%;
    margin: 4px 0;
  }
  .camera-switch-group {
    order: 2;
    margin-left: auto;
  }
  .my-ant-hud {
    bottom: 58px;
    left: 8px;
    max-width: 190px;
    padding: 8px;
  }
  .my-ant-hud input {
    font-size: 11px;
  }
  .quick-shout-row {
    grid-template-columns: 1fr 1fr;
  }
  .chat-dock-wrapper {
    bottom: 22px;
    width: calc(100% - 16px);
  }
}


/* =========================================================================
   [smcant.com] 회원가입 / 로그인 / 프로필 / 북마크 UI 스타일
   ========================================================================= */

.user-auth-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
}

.auth-btn.login-trigger {
  white-space: nowrap;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.25), rgba(16, 185, 129, 0.25));
  border: 1px solid rgba(59, 130, 246, 0.6);
  color: #93c5fd;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

.auth-btn.login-trigger:hover {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.45), rgba(16, 185, 129, 0.45));
  border-color: #60a5fa;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
  transform: translateY(-1px);
}

.user-profile-pill {
  background: #1e293b;
  border: 1px solid #334155;
  color: #f1f5f9;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.user-profile-pill:hover {
  border-color: #64748b;
  background: #243248;
}

.user-avatar-dot {
  font-size: 14px;
}

.user-tier-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 10px;
  text-transform: uppercase;
}

.user-tier-badge.pro {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #1e1b4b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.user-tier-badge.free {
  background: #475569;
  color: #cbd5e1;
}

.dropdown-caret {
  font-size: 9px;
  color: #94a3b8;
  margin-left: 2px;
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
  min-width: 220px;
  padding: 8px 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.user-dropdown-menu.hidden {
  display: none;
}

.dropdown-header {
  padding: 8px 14px 10px;
  border-bottom: 1px solid #1e293b;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dropdown-header strong {
  color: #f8fafc;
  font-size: 13px;
  word-break: break-all;
}

.dropdown-header span {
  color: #94a3b8;
  font-size: 11px;
}

.dropdown-item {
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 500;
  text-align: left;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.15s ease;
  width: 100%;
}

.dropdown-item:hover {
  background: #1e293b;
  color: #ffffff;
}

.dropdown-item.logout {
  color: #f87171;
}

.dropdown-item.logout:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

.dropdown-divider {
  height: 1px;
  background: #1e293b;
  margin: 4px 0;
}

/* Auth Modal Card */
.auth-modal-card {
  width: min(440px, 94vw);
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
}

.auth-modal-header {
  padding: 16px 20px 12px;
  border-bottom: 1px solid #1e293b;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.auth-header-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.auth-brand-pill {
  font-size: 10.5px;
  font-weight: 800;
  color: #10b981;
  letter-spacing: 0.5px;
}

.auth-modal-header h2 {
  font-size: 17px;
  font-weight: 700;
  color: #f8fafc;
  margin: 0;
}

/* Auth Tab Bar */
.auth-tab-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #090d16;
  padding: 4px;
  border-bottom: 1px solid #1e293b;
}

.auth-tab-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 12.5px;
  font-weight: 600;
  padding: 9px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.auth-tab-btn.active {
  background: #1e293b;
  color: #ffffff;
  font-weight: 700;
}

.tab-benefit-tag {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #1e1b4b;
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 6px;
}

/* Auth Modal Body */
.auth-modal-body {
  padding: 20px;
}

.auth-alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
  line-height: 1.4;
}

.auth-alert.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.auth-alert.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #86efac;
}

.auth-alert.hidden {
  display: none;
}

.signup-benefit-banner {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #a7f3d0;
  font-size: 11.5px;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 14px;
  line-height: 1.45;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-form.hidden {
  display: none;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 11.5px;
  font-weight: 600;
  color: #cbd5e1;
}

.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"] {
  background: #090d16;
  border: 1px solid #334155;
  color: #f8fafc;
  font-size: 13px;
  padding: 9px 12px;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s ease;
  width: 100%;
}

.form-group input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrap input {
  padding-right: 36px;
}

.btn-toggle-pwd {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 14px;
  opacity: 0.6;
  transition: opacity 0.15s ease;
}

.btn-toggle-pwd:hover {
  opacity: 1;
}

/* Ant Avatar Picker (3x2 Grid) */
.ant-avatar-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.avatar-opt {
  background: #090d16;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 8px 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
  position: relative;
}

.avatar-opt input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.avatar-opt .opt-icon {
  font-size: 18px;
}

.avatar-opt .opt-label {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 600;
}

.avatar-opt:hover {
  border-color: #475569;
  background: #131b2e;
}

.avatar-opt.active {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.12);
}

.avatar-opt.active .opt-label {
  color: #6ee7b7;
}

.auth-submit-btn {
  background: #2563eb;
  border: none;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  padding: 11px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 4px;
}

.auth-submit-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.auth-submit-btn.primary-glow {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.35);
}

.auth-submit-btn.primary-glow:hover {
  background: linear-gradient(135deg, #059669, #047857);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

.auth-form-footer {
  display: flex;
  justify-content: center;
  gap: 6px;
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 2px;
}

.auth-form-footer a {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
}

.auth-form-footer a:hover {
  text-decoration: underline;
}

/* Bookmark Toggle Button in Detail Modal */
.btn-bookmark-toggle {
  background: #1e293b;
  border: 1px solid #334155;
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-bookmark-toggle:hover {
  background: #334155;
  border-color: #64748b;
}

.btn-bookmark-toggle.bookmarked {
  background: rgba(245, 158, 11, 0.15);
  border-color: #f59e0b;
  color: #fbbf24;
}

.btn-bookmark-toggle.bookmarked #bookmark-star-icon {
  color: #f59e0b;
}

/* Bookmarks Modal Card */
.bookmarks-modal-card {
  width: min(720px, 92vw);
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 16px;
  overflow: hidden;
}

.bookmarks-modal-body {
  padding: 16px 20px;
  max-height: 70vh;
  overflow-y: auto;
}

.bookmarks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.bookmark-stock-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bookmark-stock-card:hover {
  border-color: #60a5fa;
  transform: translateY(-2px);
  background: #243248;
}

.bookmark-empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #94a3b8;
  font-size: 13px;
}


/* =========================================================================
   [보상형 광고 단계별 해금 시스템 & 모달 스타일]
   ========================================================================= */

/* 전광판 순위별 광고 잠금 오버레이 */
.cell-ad-lock-overlay {
  position: absolute;
  inset: 32px 6px 6px 6px;
  background: rgba(10, 15, 28, 0.78);
  backdrop-filter: blur(4px);
  border: 1px dashed rgba(245, 158, 11, 0.6);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 5;
  text-align: center;
  padding: 8px;
  transition: all 0.25s ease;
}

.cell-ad-lock-overlay:hover {
  background: rgba(10, 15, 28, 0.88);
  border-color: #fbbf24;
}

.cell-ad-lock-overlay.rank-1 {
  border-color: rgba(239, 68, 68, 0.7);
  box-shadow: inset 0 0 15px rgba(239, 68, 68, 0.15);
}

.cell-ad-lock-title {
  font-size: 11.5px;
  font-weight: 800;
  color: #fde047;
  display: flex;
  align-items: center;
  gap: 4px;
}

.cell-ad-lock-overlay.rank-1 .cell-ad-lock-title {
  color: #f87171;
}

.cell-ad-lock-desc {
  font-size: 10px;
  color: #94a3b8;
  max-width: 240px;
  line-height: 1.35;
}

.cell-ad-btn {
  margin-top: 2px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  border: 1px solid #fef08a;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 99px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.45);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: transform 0.15s ease;
}

.cell-ad-lock-overlay.rank-1 .cell-ad-btn {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  border-color: #fca5a5;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.45);
}

.cell-ad-btn:hover {
  transform: scale(1.04);
}

.cell-unlocked-badge {
  font-size: 10px;
  font-weight: 700;
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.5);
  padding: 2px 7px;
  border-radius: 99px;
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.cell-free-preview-badge {
  font-size: 10px;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.5);
  padding: 2px 7px;
  border-radius: 99px;
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* 보상형 광고 모달 */
.ad-reward-card {
  width: min(600px, 94vw);
  background: #0f172a;
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(245, 158, 11, 0.2);
  border-radius: 14px;
}

.ad-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #141f36;
  border-bottom: 1px solid #1e293b;
}

.ad-modal-title-box {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ad-modal-title-box h2 {
  font-size: 17px;
  font-weight: 800;
  color: #f8fafc;
  margin: 0;
}

.ad-reward-pill {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
}

.ad-target-tag {
  font-size: 11.5px;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.ad-reward-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 진행도 바 */
.ad-progress-box {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 12px 14px;
}

.ad-progress-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 8px;
}

.ad-step-label {
  font-weight: 800;
  color: #fbbf24;
}

.ad-pass-badge {
  font-size: 11px;
  color: #6ee7b7;
}

.ad-track {
  width: 100%;
  height: 8px;
  background: #1e293b;
  border-radius: 99px;
  overflow: hidden;
}

.ad-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #10b981);
  border-radius: 99px;
  transition: width 0.4s ease;
}

/* 플레이어 & 스폰서 박스 */
.ad-player-box {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ad-timer-badge {
  align-self: center;
  background: rgba(30, 41, 59, 0.95);
  border: 1px solid #334155;
  color: #cbd5e1;
  font-size: 12.5px;
  padding: 6px 16px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.ad-timer-badge strong {
  color: #38bdf8;
  font-size: 15px;
  min-width: 18px;
  text-align: center;
}

.ad-timer-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  animation: pulseDot 1.2s infinite;
}

.ad-sponsor-display {
  background: linear-gradient(145deg, #0f172a, #1e293b);
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 16px;
}

.ad-sponsor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: #64748b;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.sp-badge {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

.ad-sponsor-content {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sp-icon {
  font-size: 36px;
}

.sp-texts {
  flex: 1;
}

.sp-headline {
  font-size: 14.5px;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 4px;
}

.sp-subline {
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.45;
  margin-bottom: 8px;
}

.sp-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.sp-tags span {
  font-size: 10px;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.ad-sponsor-footer {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  font-size: 11px;
  color: #6ee7b7;
  text-align: center;
}

/* 액션 버튼 */
.ad-actions-row {
  display: flex;
  justify-content: center;
}

.ad-action-btn {
  width: 100%;
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 800;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ad-action-btn.disabled {
  background: #1e293b;
  color: #64748b;
  cursor: not-allowed;
  border: 1px solid #334155;
}

.ad-action-btn.ready {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.45);
  animation: pulseButton 1.5s infinite;
}

.ad-action-btn.ready:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(16, 185, 129, 0.6);
}

@keyframes pulseButton {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.015); }
}

/* 커피 후원 무광고 업셀 */
.ad-coffee-upsell {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.coffee-upsell-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.coffee-icon {
  font-size: 24px;
}

.coffee-texts strong {
  font-size: 12.5px;
  color: #fde68a;
  display: block;
  margin-bottom: 2px;
}

.coffee-texts p {
  font-size: 11px;
  color: #cbd5e1;
  margin: 0;
}

.btn-upsell-donate {
  background: linear-gradient(135deg, #d97706, #b45309);
  border: 1px solid #fde68a;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-upsell-donate:hover {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  transform: scale(1.03);
}


/* =========================================================================
   [광장 확장 & 캐릭터 액션 & 럭키박스 & 3인칭 뷰 스타일]
   ========================================================================= */

.quick-action-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-top: 4px;
}

.act-btn {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #e2e8f0;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 6px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.act-btn:hover {
  background: rgba(59, 130, 246, 0.35);
  border-color: #60a5fa;
  color: #ffffff;
  transform: translateY(-1px);
}

.act-btn:active, .act-btn.active {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  border-color: #fde047;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.zone-notify-pill {
  position: fixed;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(245, 158, 11, 0.7);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(245, 158, 11, 0.3);
  color: #fde68a;
  font-size: 13px;
  font-weight: 800;
  padding: 6px 18px;
  border-radius: 99px;
  z-index: 25;
  pointer-events: none;
  animation: slideDownFade 0.35s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  display: flex;
  align-items: center;
  gap: 8px;
}

@keyframes slideDownFade {
  from { opacity: 0; transform: translate(-50%, -15px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.floating-3d-emote {
  position: absolute;
  transform: translate(-50%, -100%);
  font-size: 34px;
  pointer-events: none;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.6));
  animation: floatEmoteUp 1.2s forwards cubic-bezier(0.18, 0.89, 0.32, 1.28);
  z-index: 15;
}

@keyframes floatEmoteUp {
  0% { transform: translate(-50%, 0) scale(0.3); opacity: 0; }
  25% { transform: translate(-50%, -40px) scale(1.3); opacity: 1; }
  75% { transform: translate(-50%, -90px) scale(1.0); opacity: 1; }
  100% { transform: translate(-50%, -130px) scale(0.8); opacity: 0; }
}

.lucky-box-floating-hint {
  font-size: 11px;
  font-weight: 800;
  color: #fde047;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(250, 204, 21, 0.8);
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.4);
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  animation: bounceHint 0.8s infinite alternate;
}

@keyframes bounceHint {
  from { transform: translateY(0); }
  to { transform: translateY(-4px); }
}

/* =========================================================
   [전광판 UI 겹침 해결 & 스마트 접기/펼치기 & 미니 티커 스타일]
   ========================================================= */

.wall-toggle-tab-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 1px;
  margin-bottom: 4px;
}

.screen-fold-toggle {
  background: rgba(15, 23, 42, 0.90);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #e0f2fe;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 9999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.screen-fold-toggle:hover {
  background: rgba(56, 189, 248, 0.28);
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-1.5px);
  box-shadow: 0 6px 18px rgba(56, 189, 248, 0.4);
}

.screen-fold-toggle .fold-icon {
  display: inline-block;
  font-size: 10px;
  transition: transform 0.28s ease;
  color: #38bdf8;
}

.screen-fold-toggle .fold-key-pill {
  background: rgba(56, 189, 248, 0.22);
  color: #38bdf8;
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

/* 전광판 접힘 상태 (광장 와이드 뷰 모드) */
#auditorium-screen-wrapper.is-collapsed .wall-main-board {
  max-height: 0 !important;
  opacity: 0 !important;
  transform: scaleY(0.90);
  transform-origin: top center;
  margin-bottom: 0 !important;
  padding: 0 !important;
  border: none !important;
  overflow: hidden !important;
  pointer-events: none !important;
  transition: all 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

#auditorium-screen-wrapper.is-collapsed .wall-notice-banner {
  display: none !important;
}

#auditorium-screen-wrapper.is-collapsed .screen-fold-toggle .fold-icon {
  transform: rotate(180deg);
}

#auditorium-screen-wrapper.is-collapsed .screen-fold-toggle {
  background: rgba(16, 185, 129, 0.25);
  border-color: #10b981;
  color: #a7f3d0;
}

#auditorium-screen-wrapper.is-collapsed .screen-fold-toggle .fold-key-pill {
  background: rgba(16, 185, 129, 0.3);
  color: #34d399;
}

#auditorium-screen-wrapper.is-collapsed .wall-mini-ticker {
  display: flex !important;
}

/* 전광판 펼침 상태 (기본 트랜지션) */
#auditorium-screen-wrapper:not(.is-collapsed) .wall-main-board {
  max-height: 480px;
  opacity: 1;
  transform: scaleY(1);
  transform-origin: top center;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 슬림 미니 티커 바 */
.wall-mini-ticker {
  display: none;
  width: 100%;
  background: rgba(11, 15, 25, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 8px;
  padding: 4px 10px;
  margin-bottom: 4px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.65);
  align-items: center;
  justify-content: center;
  gap: 8px;
  animation: fadeInMini 0.25s ease-out;
}

@keyframes fadeInMini {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.mini-ticker-content {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.mini-ticker-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: #f1f5f9;
  cursor: pointer;
  transition: all 0.18s ease;
}

.mini-ticker-badge:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.35);
}

.mini-ticker-badge .mb-rank {
  font-weight: 800;
  font-size: 10.5px;
  padding: 1px 5px;
  border-radius: 4px;
}
.mini-ticker-badge.rank1 .mb-rank { background: #ef4444; color: #fff; }
.mini-ticker-badge.rank2 .mb-rank, .mini-ticker-badge.rank3 .mb-rank { background: #f59e0b; color: #fff; }
.mini-ticker-badge.rank4 .mb-rank, .mini-ticker-badge.rank5 .mb-rank { background: #3b82f6; color: #fff; }
.mini-ticker-badge.rank6 .mb-rank { background: #10b981; color: #fff; }

.mini-ticker-badge .mb-name {
  color: #e2e8f0;
  font-weight: 700;
}
.mini-ticker-badge .mb-price {
  color: #38bdf8;
  font-family: 'Consolas', monospace;
  font-weight: 700;
}
.mini-ticker-badge .mb-lock {
  color: #facc15;
  font-size: 10px;
}

/* =========================================================
   [좌측 하단 캐릭터 패널 접기 버튼 & 글래스모피즘]
   ========================================================= */
.my-ant-panel {
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.my-ant-panel.is-collapsed {
  transform: translateX(calc(-100% + 24px));
}

.panel-fold-btn {
  position: absolute;
  right: -24px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 44px;
  background: #0f172a;
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-left: none;
  border-radius: 0 8px 8px 0;
  color: #38bdf8;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 12;
  box-shadow: 4px 0 12px rgba(0, 0, 0, 0.4);
  transition: all 0.22s;
}

.panel-fold-btn:hover {
  background: #1e293b;
  color: #ffffff;
  width: 26px;
}

.my-ant-panel.is-collapsed .panel-fold-btn {
  transform: translateY(-50%) rotate(180deg);
}
