/* 👑 [기획서 113호] 투빗 시그니처 골드/앰버 글래스모피즘 스크롤바 */
html, body {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 153, 0, 0.55) rgba(15, 18, 26, 0.95);
}
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(15, 18, 26, 0.95);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(255, 153, 0, 0.6) 0%, rgba(255, 138, 0, 0.35) 100%);
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
}
::-webkit-scrollbar-thumb:hover {
  background: #FF9900;
  box-shadow: 0 0 12px rgba(255, 153, 0, 0.7);
}
::-webkit-scrollbar-corner {
  background: transparent;
}

:root {
  --bg-primary: #0B0D12;
  --bg-canvas: #0B0D12;
  --bg-card: #12151D;
  --card-bg: #12151D;
  --bg-card-alt: #151922;
  --card-border: 1px solid rgba(255, 255, 255, 0.08);
  --subcard-bg: rgba(255, 255, 255, 0.03);
  --subcard-border: 1px solid rgba(255, 255, 255, 0.06);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-light: rgba(255, 255, 255, 0.12);
  --border-focus: #FF8A00;
  --border-glow: rgba(255, 138, 0, 0.45);
  --text-primary: #f1f3f9;
  --text-secondary: #9aa1b8;
  --text-muted: #64748b;
  --brand-orange: #FF8A00;
  --neon-orange: #FF8A00;
  --neon-orange-hover: #FFA026;
  --neon-blue: #2563eb;
  --neon-cyan: #38bdf8;
  --neon-purple: #8b5cf6;
  --pnl-positive: #10B981;
  --profit-green: #10B981;
  --neon-green: #10B981;
  --pnl-negative: #FF4B72;
  --danger-red: #FF4B72;
  --neon-red: #FF4B72;
  --pnl-rose: #FF4B72;
  --neon-gold: #f59e0b;
  --gold-accent: #f59e0b;
  --font-sans: 'Pretendard', 'Inter', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  background-image: 
    radial-gradient(circle at 50% -15%, rgba(255, 138, 0, 0.12) 0%, transparent 65%),
    radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 28px 28px;
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.6;
}

.hidden {
  display: none !important;
}

/* ==========================================
   어르신 친화 150% 특대형 모달 & 뷰 분리
========================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 7, 12, 0.95);
  backdrop-filter: blur(16px);
  display: flex;
  justify-content: center;
  align-items: flex-start !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  z-index: 9999;
  padding: 24px 16px !important;
}

.modal-card {
  background: linear-gradient(180deg, #151b29 0%, #0d121c 100%);
  border: 1.5px solid rgba(255, 138, 0, 0.35);
  border-radius: 24px;
  padding: 32px 26px;
  width: 100%;
  max-width: 460px;
  margin: auto !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 138, 0, 0.15);
  animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(16px);
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.brand-badge {
  display: inline-block;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--neon-orange);
  background: rgba(255, 138, 0, 0.12);
  border: 1px solid rgba(255, 138, 0, 0.35);
  border-radius: 9999px;
  margin-bottom: 10px;
}

/* ==========================================
   시안 3(미드나잇 사이버 럭셔리) 1:1 전수 복원 & WebAuthn 생체인증 스타일
========================================== */
.modal-card-luxury {
  background: linear-gradient(180deg, #0A0D15 0%, #05070B 100%) !important;
  border: 1px solid rgba(255, 184, 0, 0.4) !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.85), 0 0 35px rgba(255, 138, 0, 0.2), inset 0 1px 0 rgba(255, 215, 0, 0.3) !important;
  border-radius: 24px !important;
}

.modal-card-concept3 {
  background: #090B10 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 24px !important;
  padding: 24px 20px 22px 20px !important;
  max-width: 400px !important;
  width: 100% !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95), 0 0 50px rgba(255, 138, 0, 0.12) !important;
  box-sizing: border-box !important;
}

/* 중앙 3D 투빗 D 큐브 로고 */
.concept3-cube-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 6px 0 16px 0;
  width: 100%;
}

.concept3-cube-tile {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: linear-gradient(145deg, #1e2330, #111520);
  border: 1.5px solid rgba(255, 138, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 35px rgba(255, 138, 0, 0.4), 0 10px 24px rgba(0, 0, 0, 0.6);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.concept3-cube-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 45px rgba(255, 138, 0, 0.6), 0 14px 28px rgba(0, 0, 0, 0.75);
}

.concept3-cube-logo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: contain;
  display: block;
}

/* ④ 웅장한 황실 타이포그래피 */
.concept3-typo-wrap {
  text-align: center;
  margin-bottom: 16px;
  width: 100%;
}

.concept3-main-title,
.luxury-main-title {
  color: #FFFFFF !important;
  font-size: 26px !important;
  font-weight: 800 !important;
  letter-spacing: 2px !important;
  text-align: center !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6) !important;
  margin: 0 0 8px 0;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
}

.concept3-main-title .title-orange {
  color: #FFFFFF;
}

.concept3-main-title .title-gold {
  color: #FFFFFF;
}

.concept3-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11.5px;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 8px;
}

.concept3-pill-badge .pill-dot {
  color: #FF8A00;
  font-size: 8px;
  text-shadow: 0 0 6px #FF8A00;
}

.concept3-sub-desc {
  font-size: 12px;
  color: #94a3b8;
  margin: 0;
  letter-spacing: -0.2px;
  font-weight: 500;
}

/* ⑤ 럭셔리 옵시디언 입력 카드 */
.concept3-input-card {
  background: linear-gradient(180deg, #131722 0%, #0d1017 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 18px 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  width: 100%;
  box-sizing: border-box;
}

.c3-field-group {
  margin-bottom: 14px;
  width: 100%;
}

.c3-field-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 7px;
}

.c3-field-label-row label {
  font-size: 12.5px;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: -0.2px;
}

.badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10b981;
  font-size: 10px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
}

.badge-hsm {
  font-size: 11px;
  font-weight: 600;
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 4px;
}

.badge-hsm .dot-green {
  color: #10b981;
  font-size: 9px;
  text-shadow: 0 0 6px #10b981;
}

.luxury-uid-input {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1.5px solid rgba(255, 138, 0, 0.3) !important;
  color: #FFFFFF !important;
  border-radius: 14px !important;
  padding: 14px 18px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
  width: 100% !important;
  outline: none !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4) !important;
  transition: all 0.25s ease !important;
  font-family: 'JetBrains Mono', monospace !important;
  box-sizing: border-box !important;
}

.luxury-uid-input:focus {
  border-color: #FF8A00 !important;
  box-shadow: 0 0 16px rgba(255, 138, 0, 0.35), inset 0 2px 4px rgba(0, 0, 0, 0.4) !important;
}

.luxury-uid-input::placeholder {
  color: #64748b !important;
  font-weight: 400 !important;
  letter-spacing: 0.5px !important;
}

.c3-input-box {
  background: #090c13;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 10px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.c3-input-box:focus-within {
  border-color: #FF8A00;
  box-shadow: 0 0 15px rgba(255, 138, 0, 0.35);
}

.c3-icon-fingerprint {
  font-size: 18px;
  color: #b08968;
}

.c3-input-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 1px;
  width: 100%;
}

.c3-input-box input::placeholder {
  color: #475569;
  letter-spacing: 0.5px;
}

/* 4-Box PIN 박스 체계 */
.pin-box-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  margin-top: 4px;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
}

.pin-digit-box {
  flex: 1;
  height: 52px;
  border-radius: 12px;
  background: #090c13;
  border: 1px solid rgba(255, 138, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.pin-digit-box.active {
  border: 1.5px solid rgba(255, 138, 0, 0.85);
  box-shadow: 0 0 14px rgba(255, 138, 0, 0.35);
}

.pin-digit-box .pin-dot {
  display: none;
}

.pin-digit-box.filled .pin-dot {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #FF8A00;
  box-shadow: 0 0 12px #FF8A00, 0 0 20px rgba(255, 138, 0, 0.6);
  animation: dotPop 0.15s ease-out;
}

.pin-digit-box.active:not(.filled) .pin-dot {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  box-shadow: none;
}

@keyframes dotPop {
  0% { transform: scale(0.4); opacity: 0; }
  70% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

.pin-hidden-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

/* 생체 인증 토글 행 */
.bio-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  margin-top: 12px;
  margin-bottom: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  width: 100%;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.2s ease;
}

.bio-toggle-row:active {
  opacity: 0.85;
}

.bio-toggle-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bio-icon-tile {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  font-size: 15px;
}

.bio-toggle-info {
  display: flex;
  flex-direction: column;
}

.bio-toggle-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
}

.bio-toggle-sub {
  font-size: 11px;
  color: #94a3b8;
}

/* iOS 스타일 스위치 */
.switch-ios {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 28px;
  flex-shrink: 0;
}

.switch-ios input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-ios {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #334155;
  transition: .3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 28px;
}

.slider-ios:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.switch-ios input:checked + .slider-ios {
  background-color: #FF8A00;
  box-shadow: 0 0 12px rgba(255, 138, 0, 0.5);
}

.switch-ios input:checked + .slider-ios:before {
  transform: translateX(20px);
}

/* 메인 로그인 버튼 */
.btn-luxury-orange-hero {
  width: 100%;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(90deg, #FF8A00 0%, #FFA726 100%);
  border: none;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(255, 138, 0, 0.45);
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.btn-luxury-orange-hero:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 25px rgba(255, 138, 0, 0.6);
}

.btn-luxury-orange-hero:active {
  transform: translateY(0);
}

.btn-luxury-orange-hero:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

/* ==========================================
   기획서 58호: 생체 등록 완료 시 원터치 지문 로그인 & PIN 폴백 스타일
   ========================================== */
.pin-box-group {
  margin-bottom: 14px;
  width: 100%;
  transition: opacity 0.25s ease;
}

.pin-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 7px;
}

.pin-label-row label {
  font-size: 12.5px;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: -0.2px;
}

.pin-crypto-badge {
  font-size: 11px;
  font-weight: 600;
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 4px;
}

.bio-ready-card {
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.08) 0%, rgba(255, 138, 0, 0.04) 100%);
  border: 1.5px solid rgba(255, 184, 0, 0.35);
  border-radius: 16px;
  padding: 20px 16px;
  text-align: center;
  margin-bottom: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 215, 0, 0.2);
  transition: all 0.3s ease;
}

.bio-ready-icon-wrap {
  margin-bottom: 8px;
}

.bio-ready-pulse {
  font-size: 42px;
  color: #FFB800;
  animation: bioPulseLarge 2.2s infinite ease-in-out;
  filter: drop-shadow(0 0 16px rgba(255, 184, 0, 0.6));
  display: inline-block;
}

@keyframes bioPulseLarge {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 12px rgba(255, 184, 0, 0.5));
  }
  50% {
    transform: scale(1.08);
    filter: drop-shadow(0 0 24px rgba(255, 138, 0, 0.8));
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 12px rgba(255, 184, 0, 0.5));
  }
}

.bio-ready-title {
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.bio-ready-desc {
  font-size: 12px;
  color: #94a3b8;
}

.btn-sub-fallback-link {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 12.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  margin-top: 10px;
  transition: color 0.2s ease;
}

.btn-sub-fallback-link:hover {
  color: #FF8A00;
}

.fallback-switcher-row {
  text-align: center;
}

/* 하단 링크 */
.c3-bottom-links {
  margin-top: 14px;
  text-align: center;
  width: 100%;
}

.btn-link-luxury {
  background: none;
  border: none;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  padding: 4px;
}

.btn-link-luxury:hover {
  opacity: 0.85;
}

.link-vip-inquiry {
  margin-top: 6px;
  font-size: 11.5px;
  color: #f59e0b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.link-vip-inquiry:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ⑥ 하단 3대 기관급 메트릭 칩 */
.concept3-metric-chips-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
  width: 100%;
  box-sizing: border-box;
}

.c3-metric-chip {
  background: linear-gradient(145deg, #10141e 0%, #090c13 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 9px 4px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.c3-metric-chip .m-label {
  font-size: 9.5px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
  font-family: 'JetBrains Mono', monospace;
}

.c3-metric-chip .m-val {
  font-size: 12px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
}

.c3-metric-chip .val-green {
  color: #10b981;
}

.c3-metric-chip .val-gold {
  color: #f59e0b;
}

.c3-metric-chip .val-white {
  color: #ffffff;
}

/* ⑦ 최하단 보안 프로토콜 푸터 */
.concept3-security-footer {
  margin-top: 18px;
  text-align: center;
  width: 100%;
}

.c3-sec-tags {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 10.5px;
  color: #94a3b8;
  margin-bottom: 8px;
  line-height: 1.25;
}

.c3-sec-tag-item {
  display: flex;
  align-items: center;
  gap: 5px;
  text-align: left;
}

.c3-sec-divider {
  color: rgba(255, 255, 255, 0.2);
  font-size: 13px;
}

.c3-sec-terminal-id {
  font-size: 8.5px;
  color: #64748b;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

.brand-badge-luxury {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 138, 0, 0.15) 100%) !important;
  border: 1px solid rgba(255, 215, 0, 0.6) !important;
  color: #FFD700 !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.4) !important;
}

.biometric-login-box {
  margin-bottom: 18px;
}

.btn-biometric-luxury {
  background: linear-gradient(135deg, #131722 0%, #0e121a 100%);
  border: 1.5px solid rgba(255, 184, 0, 0.6);
  border-radius: 14px;
  padding: 13px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 215, 0, 0.25);
  cursor: pointer;
  width: 100%;
  transition: all 0.25s ease;
}

.btn-biometric-luxury:hover {
  border-color: #FF8A00;
  box-shadow: 0 0 25px rgba(255, 138, 0, 0.45);
  transform: translateY(-2px);
}

.biometric-pulse-icon {
  font-size: 26px;
  color: #FFB800;
  animation: bioPulse 2.4s infinite ease-in-out;
}

@keyframes bioPulse {
  0% { text-shadow: 0 0 4px #FFB800; transform: scale(1); }
  50% { text-shadow: 0 0 16px #FF8A00, 0 0 25px #FFB800; transform: scale(1.08); }
  100% { text-shadow: 0 0 4px #FFB800; transform: scale(1); }
}

.biometric-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.bio-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #FFFFFF;
}

.bio-subtitle {
  font-size: 11px;
  color: #FFB800;
  opacity: 0.9;
}

.biometric-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 16px 0 12px 0;
  color: rgba(255, 255, 255, 0.35);
  font-size: 11px;
}

.biometric-divider::before, .biometric-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.biometric-divider span {
  padding: 0 10px;
}

.bio-enroll-card {
  max-width: 420px;
  text-align: center;
}

.bio-enroll-icon-wrap {
  margin-bottom: 10px;
}

.bio-gold-icon {
  font-size: 44px;
  color: #FFD700;
  filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.6));
}

.modal-brand-row {
  text-align: center;
  margin-bottom: 8px;
}

.brand-logo-text {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #ffffff;
  margin-bottom: 4px;
}

.modal-header .subtitle {
  font-size: 14px;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 4px;
}

.subtitle {
  font-size: 14px;
  color: #f1f5f9;
  font-weight: 600;
}

.view-intro {
  margin-bottom: 18px;
  text-align: center;
}

.view-tag {
  display: inline-block;
  font-size: 14px;
  font-weight: 800;
  color: var(--neon-cyan);
  background: rgba(56, 189, 248, 0.15);
  padding: 4px 10px;
  border-radius: 8px;
  margin-bottom: 6px;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.view-tag.tag-new {
  color: var(--neon-orange);
  background: rgba(255, 138, 0, 0.15);
  border: 1px solid rgba(255, 138, 0, 0.35);
}

.view-desc {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 18px;
  line-height: 1.5;
}

.btn-back-link {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 10px;
  display: inline-block;
  padding: 4px 8px;
}
.btn-back-link:hover {
  color: var(--neon-orange);
}

/* 어르신 150% 특대 인풋 박스 */
.input-group {
  margin-bottom: 20px;
  text-align: left;
}

.input-group label {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.input-group input {
  width: 100%;
  height: 56px;
  background: rgba(8, 12, 22, 0.95);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 0 18px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  font-family: var(--font-sans);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease;
}

.input-group input[type="password"] {
  letter-spacing: 6px;
  text-align: center;
  font-size: 24px;
}

.input-group input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 16px rgba(255, 138, 0, 0.35), inset 0 2px 4px rgba(0, 0, 0, 0.4);
  background: rgba(13, 18, 32, 0.98);
}

.input-hint {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* PIN 일치 검증 배지 */
.match-badge {
  font-size: 14px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 8px;
  margin-top: 8px;
  text-align: center;
}

.badge-neutral {
  background: rgba(148, 163, 184, 0.1);
  color: var(--text-secondary);
}

.badge-match {
  background: rgba(16, 185, 129, 0.15);
  color: var(--neon-green);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.badge-mismatch {
  background: rgba(255, 75, 114, 0.15);
  color: var(--neon-red);
  border: 1px solid rgba(255, 75, 114, 0.4);
}

/* 빅터치 버튼 (높이 58~62px) */
.btn-lg-touch {
  height: 58px;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary-neon {
  width: 100%;
  background: linear-gradient(135deg, #FF8A00 0%, #FFA726 100%) !important;
  border: 1px solid #FFB74D !important;
  box-shadow: 0 6px 20px rgba(255, 138, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  color: #ffffff;
  margin-top: 10px;
}

.btn-primary-neon:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 8px 24px rgba(255, 138, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

.btn-primary-neon:active:not(:disabled) {
  transform: translateY(1px);
}

.btn-primary-neon:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  filter: grayscale(0.8);
}

.auth-switcher {
  margin-top: 18px;
  text-align: center;
  width: 100%;
}

.btn-royal-secondary {
  width: 100%;
  padding: 14px 16px;
  background: #0f1422;
  border: 1px solid rgba(255, 138, 0, 0.3);
  border-radius: 12px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.btn-royal-secondary:hover {
  background: rgba(255, 138, 0, 0.15);
  border-color: var(--neon-orange);
  box-shadow: 0 4px 14px rgba(255, 138, 0, 0.25);
}

.login-privacy-badge {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  color: #64748b;
  text-align: center;
}

.modal-copyright {
  margin-top: 10px;
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
  text-align: center;
  letter-spacing: 0.3px;
  opacity: 0.85;
  line-height: 1.4;
  width: 100%;
  display: block;
}

/* ==========================================
   메인 대시보드 화면 (단일 640px 모바일-퍼스트 스트림)
========================================== */
.app-wrapper {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  box-sizing: border-box;
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: rgba(11, 13, 18, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  width: 100%;
  box-sizing: border-box;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--brand-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 14px rgba(255, 138, 0, 0.4);
  flex-shrink: 0;
}

.brand-d-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(1.2);
}

.brand-title-toobit {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.6px;
  color: #ffffff;
  font-family: var(--font-sans);
}

.brand-badge-haq {
  background: var(--brand-orange);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 5px;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.brand-neon-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255, 138, 0, 0.5));
}

.brand-neon-logo-modal {
  width: auto !important;
  height: auto !important;
  max-height: 140px !important;
  max-width: 190px !important;
  object-fit: contain !important;
  margin: 0 auto 8px auto !important;
  display: block !important;
  filter: drop-shadow(0 0 14px rgba(255, 138, 0, 0.4));
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge-uid-capsule, .badge-uid {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 9999px;
  font-family: var(--font-mono);
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.badge-uid-capsule:hover, .btn-uid-pin:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.15);
}

.btn-power-circle, .btn-logout-cyber {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 15px;
  padding: 0;
}

.btn-power-circle:hover, .btn-logout-cyber:hover {
  background: rgba(255, 75, 114, 0.15);
  border-color: rgba(255, 75, 114, 0.4);
  color: #FF4B72;
  box-shadow: 0 0 14px rgba(255, 75, 114, 0.35);
}

/* ==========================================
   스크롤 본문 영역 및 22px 카드 갭
========================================== */
.content-scroll {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 20px 36px 20px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  box-sizing: border-box;
}

/* 상태 인디케이터 바 */
/* 실시간 호가 피드 스트립 (시안 A) */
.live-feed-ticker-bar, .status-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: rgba(18, 21, 29, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.ticker-left, .status-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ticker-pulse-dot, .pulse-dot, .status-dot-real {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 10px #10B981;
  animation: pulseAnim 1.5s infinite;
  display: inline-block;
  flex-shrink: 0;
}

.ticker-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #10B981;
}

.ticker-price, .btc-live-price {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-mono);
  letter-spacing: -0.2px;
}

.ticker-right, .status-right-ticker {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ticker-rate-badge {
  font-size: 12px;
  font-weight: 800;
  color: #10B981;
  font-family: var(--font-mono);
}

.bot-state-badge {
  font-size: 11.5px;
  font-weight: 700;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.bot-state-badge.state-running {
  color: #10B981;
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  text-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.bot-state-badge.state-stopped {
  color: #94a3b8;
}

.meta-pill.mode-real {
  background: rgba(255, 138, 0, 0.12);
  border: 1px solid rgba(255, 138, 0, 0.35);
  color: #fed7aa;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.live-pulse-chip {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #10B981;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 12px;
}

.pulse-running {
  background: var(--neon-green);
  box-shadow: 0 0 12px var(--neon-green);
  animation: pulseAnim 1.5s infinite;
}

.pulse-stopped {
  background: #64748b;
}

@keyframes pulseAnim {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* ==========================================
   메인 총 운용 자산 전광판 (Hero Asset Card)
========================================== */
.hero-asset-card, .billboard-card {
  background: #12151D;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 22px 24px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
  line-height: 1.6;
}

.hero-asset-card::after, .billboard-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 138, 0, 0.35), transparent);
  pointer-events: none;
}

.hero-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.hero-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-label {
  font-size: 14px;
  font-weight: 700;
  color: #94a3b8;
}

.btn-mask-eye {
  background: none;
  border: none;
  color: #64748b;
  font-size: 14px;
  cursor: pointer;
  padding: 2px 4px;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s;
}

.btn-mask-eye:hover {
  color: #ffffff;
}

.asset-badge-tag {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 9999px;
  letter-spacing: 0.5px;
}

.hero-equity-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.hero-equity-val {
  font-size: 40px;
  font-weight: 900;
  color: #ffffff;
  font-family: var(--font-mono);
  letter-spacing: -1px;
  line-height: 1.1;
}

.equity-btc-sub {
  font-size: 15px;
  font-weight: 600;
  color: #64748b;
  font-family: var(--font-mono);
}

.hero-avail-row {
  font-size: 13.5px;
  color: #94a3b8;
  margin-bottom: 18px;
}

.hero-avail-val {
  color: #cbd5e1;
  font-family: var(--font-mono);
  font-weight: 700;
  margin-left: 4px;
}

/* 내부 좌/우 2분할 서브 카드 그리드 */
.hero-subcards-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 14px;
  width: 100%;
  box-sizing: border-box;
}

.hero-subcard {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 80px;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.subcard-header-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 8px !important;
  gap: 4px !important;
}

.subcard-label-group {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.subcard-label {
  font-size: 11.5px !important;
  font-weight: 700 !important;
  color: #94a3b8 !important;
  letter-spacing: -0.2px !important;
  line-height: 1.3 !important;
  white-space: nowrap !important;
}

.running-days-badge {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--neon-cyan, #38bdf8);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 6px;
  padding: 1px 4px;
  letter-spacing: -0.2px;
  display: inline-block;
  vertical-align: middle;
  line-height: 1.3;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.subcard-pct-badge {
  font-family: var(--font-mono) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}

.subcard-fill-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  font-family: var(--font-mono);
}

.subcard-val {
  font-family: var(--font-mono) !important;
  font-size: 19px !important;
  font-weight: 900 !important;
  letter-spacing: -0.3px !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
}

/* 🌸 폐하 원픽 네온 로즈핑크 & 비비드 에메랄드 민트 */
.pnl-rose {
  color: #FF4B72 !important;
  text-shadow: 0 0 14px rgba(255, 75, 114, 0.4) !important;
}

.pnl-positive {
  color: #10B981 !important;
  text-shadow: 0 0 14px rgba(16, 185, 129, 0.4) !important;
}

.pnl-negative {
  color: #FF4B72 !important;
  text-shadow: 0 0 14px rgba(255, 75, 114, 0.4) !important;
}

.pnl-pct-sub {
  font-size: 13px;
  font-weight: 700;
  margin-left: 2px;
  opacity: 0.88;
}

/* 하단 안심 인증 배지 */
.settlement-banner {
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10.5px;
  color: #a7f3d0;
  white-space: nowrap;
  gap: 8px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.settlement-left {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
}

.settlement-right {
  font-weight: 800;
  color: #10B981;
  font-family: var(--font-mono);
  font-size: 11px;
  flex-shrink: 0;
}

/* 레거시 호환 클래스 */
.metric-realized-val {
  font-size: 22px;
  font-weight: 900;
  font-family: var(--font-mono);
}

.today-pnl-clean, .badge-today-pnl {
  display: block;
  font-size: 22px;
  font-weight: 900;
  font-family: var(--font-mono);
  background: transparent;
  border: none;
  padding: 0;
  white-space: nowrap;
}

#today-pnl-window-hint {
  display: none;
}

.billboard-badges-row {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.shield-badge {
  font-size: 12px;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 5px 12px;
  border-radius: 8px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}

.badge-six-shields {
  background: rgba(16, 185, 129, 0.15) !important;
  border: 1px solid #10b981 !important;
  color: #10b981 !important;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.25) !important;
}

.badge-shield-active {
  background: rgba(255, 75, 114, 0.22) !important;
  color: #ffa8ba !important;
  border: 1px solid rgba(255, 75, 114, 0.5) !important;
  box-shadow: 0 0 16px rgba(255, 75, 114, 0.45) !important;
  animation: pulse-danger 1.5s infinite ease-in-out;
}

@keyframes pulse-danger {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.82; transform: scale(1.03); }
}

.badge-storm-idle {
  background: rgba(56, 189, 248, 0.12) !important;
  color: #38bdf8 !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
}

.badge-storm-active {
  background: rgba(245, 158, 11, 0.22) !important;
  color: #fcd34d !important;
  border: 1px solid #f59e0b !important;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.45) !important;
  animation: pulse-orange 1.5s infinite ease-in-out !important;
}

@keyframes pulse-orange {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.82; transform: scale(1.03); }
}

/* ==========================================
   카드 3: 비트코인 실시간 포지션 및 안전 지표
========================================== */
.pos-card-header {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pos-symbol-badge {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hedge-lock-row, .storm-lock-row {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 10px;
  margin-bottom: 8px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.hedge-lock-badge {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid #38bdf8;
  color: #38bdf8;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

.storm-lock-badge {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid #f59e0b;
  color: #f59e0b;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
}

.pos-metric-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  width: 100%;
  gap: 8px;
  min-width: 0;
  box-sizing: border-box;
}

.pos-metric-row:last-of-type {
  border-bottom: none;
}

.pos-metric-label {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}

.pos-metric-val {
  font-size: 16px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #ffffff;
  text-align: right;
  white-space: nowrap;
  min-width: 0;
}

.highlight-live-price {
  color: #10B981 !important;
  font-family: var(--font-mono);
  font-size: 16.5px !important;
  font-weight: 800 !important;
  text-shadow: 0 0 12px rgba(16, 185, 129, 0.35);
}

.pos-metric-val.highlight-entry {
  color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.35);
}

.pos-metric-val.sub-positive {
  color: #10B981;
}

.pos-metric-val.sub-negative,
.pos-metric-val.sub-rose {
  color: #FF4B72 !important;
  text-shadow: 0 0 10px rgba(255, 75, 114, 0.35);
}

.pos-metric-val.sub-neutral {
  color: #94a3b8;
}

/* 청산 안전 여유율 & 바스켓 목표 익절선 박스 */
.pos-safety-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.safety-box {
  background: rgba(11, 14, 20, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.safety-sub {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.safety-val {
  font-size: 13.5px;
  font-weight: 800;
}

.safety-val.safe-green {
  color: #10b981;
}

.safety-val.safe-blue {
  color: var(--neon-cyan);
}

/* ==========================================
   신설 및 재배치: 3단 AI 방어 시스템 카드 (AI Risk Engine)
========================================== */
.ai-risk-engine-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.risk-engine-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
}

.risk-engine-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.risk-engine-status-badge {
  font-size: 12px;
  font-weight: 800;
  color: #10B981;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.risk-shields-stack {
  display: flex;
  flex-direction: column;
}

.risk-shield-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
  border-radius: 14px;
  background: #12151D;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: all 0.2s ease;
}

.risk-shield-card:last-child {
  margin-bottom: 0;
}

.shield-icon-box {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.shield-icon-box.icon-blue {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.15);
}

.shield-icon-box.icon-orange {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #f59e0b;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.15);
}

.shield-icon-box.icon-green {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10b981;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.15);
}

.shield-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.shield-name {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.shield-desc {
  font-size: 12px;
  font-weight: 500;
  color: #94a3b8;
  line-height: 1.4;
}

/* ==========================================
   조작부 버튼 (STOP & 비상 시장가 종료)
========================================== */
.control-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.btn-action-hero {
  width: 100%;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
  min-height: 58px;
  border-radius: 14px;
}

/* 1) 봇 가동 (대형 투빗 오렌지) */
.btn-start {
  background: linear-gradient(135deg, #FF8A00 0%, #FFA726 100%) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 18px !important;
  box-shadow: 0 4px 20px rgba(255, 138, 0, 0.45) !important;
  border: 1px solid #FFB74D !important;
  border-radius: 14px !important;
  position: relative !important;
}

.btn-start:hover:not(:disabled) {
  filter: brightness(1.08) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 26px rgba(255, 138, 0, 0.6) !important;
}

/* 👑 [기획서 113호] 봇 정지 (프리미엄 럭셔리 다크 옵시디언 와인 글래스) */
.btn-stop {
  background: linear-gradient(180deg, #1E222D 0%, #13161F 100%) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 16.5px !important;
  letter-spacing: -0.2px !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 75, 114, 0.45) !important;
  border-radius: 14px !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-stop:hover:not(:disabled) {
  background: linear-gradient(180deg, #262B3A 0%, #171A24 100%) !important;
  border-color: rgba(255, 75, 114, 0.75) !important;
  box-shadow: 0 6px 22px rgba(255, 75, 114, 0.25), 0 4px 18px rgba(0, 0, 0, 0.6) !important;
  transform: translateY(-1px) !important;
  filter: brightness(1.05) !important;
}

.btn-stop:active:not(:disabled) {
  transform: translateY(1px) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
}

/* 2) 비상 전량 시장가 종료 (로즈핑크 아웃라인) */
.btn-action-panic {
  width: 100%;
  background: rgba(255, 75, 114, 0.08) !important;
  border: 1.5px solid rgba(255, 75, 114, 0.55) !important;
  color: #FF4B72 !important;
  font-weight: 800 !important;
  font-size: 16px !important;
  min-height: 54px !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 16px rgba(255, 75, 114, 0.15) !important;
  transition: all 0.2s ease;
}

.btn-action-panic:hover:not(:disabled) {
  background: rgba(255, 75, 114, 0.18) !important;
  border-color: #FF4B72 !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 0 24px rgba(255, 75, 114, 0.35) !important;
}

.btn-action-hero:active:not(:disabled),
.btn-action-panic:active:not(:disabled) {
  transform: translateY(1px);
}

/* ==========================================
   설정 패널 (1열 단독 & 여유로운 여백)
========================================== */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 22px;
  cursor: pointer;
  background: #0f131f;
  user-select: none;
}

.chevron {
  font-size: 14px;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.chevron.open {
  transform: rotate(180deg);
}

.card-body {
  padding: 24px 22px;
  border-top: 1px solid var(--border-color);
}

.panel-section {
  padding: 24px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  background: var(--bg-card);
}

.settings-section-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--neon-cyan);
  margin: 18px 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
}

.settings-section-title:first-child {
  margin-top: 0;
}

.form-group, .form-group-full {
  margin-bottom: 24px;
  width: 100%;
}

.form-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 8px;
  flex-wrap: wrap;
}

.form-label-row label, .form-group label, .form-group-full label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 0;
}

.form-group input, .form-group-full input {
  width: 100%;
  height: 52px;
  background: rgba(8, 12, 22, 0.95);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px 16px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-mono);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
}

.form-group input:focus, .form-group-full input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 16px rgba(255, 138, 0, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.4);
  background: rgba(11, 16, 28, 0.98);
}

.form-hint {
  font-size: 13px;
  color: #94a3b8;
  margin-top: 6px;
  line-height: 1.5;
}

/* 슬라이더 스타일 */
.slider-group {
  margin-top: 20px;
  margin-bottom: 24px;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

.slider-val {
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--neon-cyan);
}

.neon-slider {
  width: 100%;
  height: 8px;
  background: rgba(18, 26, 46, 0.9);
  border-radius: 4px;
  outline: none;
  -webkit-appearance: none;
}

.neon-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--neon-orange);
  cursor: pointer;
  box-shadow: 0 0 12px var(--neon-orange);
}

/* 토글 스위치 */
.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(8, 12, 22, 0.95);
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
}

.toggle-label {
  font-size: 15px;
  font-weight: 700;
}

.switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider.round {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #334155;
  transition: 0.3s;
  border-radius: 34px;
}

.slider.round:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .slider.round {
  background-color: var(--neon-orange);
}

input:checked + .slider.round:before {
  transform: translateX(24px);
}

/* 스마트 필터 체크박스 */
.filter-group-box {
  background: rgba(8, 12, 22, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
}

.filter-box-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.filter-chk-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 600;
  padding: 8px 0;
  cursor: pointer;
}

.filter-chk-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--neon-orange);
}

/* 저장 버튼 */
.btn-save, .btn-save-settings {
  width: 100%;
  background: linear-gradient(135deg, #FF8A00 0%, #FFA726 100%) !important;
  border: 1px solid #FFB74D !important;
  box-shadow: 0 4px 20px rgba(255, 138, 0, 0.4) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 17px;
  min-height: 56px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-save:hover:not(:disabled), .btn-save-settings:hover:not(:disabled) {
  filter: brightness(1.08) !important;
  box-shadow: 0 6px 26px rgba(255, 138, 0, 0.55) !important;
  transform: translateY(-1px) !important;
}

.msg-box {
  padding: 12px;
  border-radius: 10px;
  margin-top: 12px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.msg-success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--neon-green);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

/* 초보자 AI 추천 버튼 */
#btn-apply-recommend, .btn-recommend-gold {
  background: rgba(255, 138, 0, 0.15) !important;
  border: 1px solid rgba(255, 138, 0, 0.4) !important;
  color: #fed7aa !important;
  box-shadow: 0 0 16px rgba(255, 138, 0, 0.25) !important;
  font-size: 13px;
  font-weight: 700 !important;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

#btn-apply-recommend:hover:not(:disabled), .btn-recommend-gold:hover:not(:disabled) {
  background: rgba(255, 138, 0, 0.25) !important;
  border-color: var(--neon-orange) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

.header-title-two-line {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

.title-row-primary {
  font-size: 15px;
  font-weight: 800;
  color: #f8fafc;
}

.title-row-secondary {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.title-sub-text {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
}

.accordion-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.accordion-badge.badge-saved, .api-status-badge.badge-saved {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10b981;
}

.accordion-badge.badge-unsaved {
  background: rgba(100, 116, 139, 0.2);
  color: #94a3b8;
  border: 1px solid rgba(100, 116, 139, 0.35);
}

.cyber-select {
  width: 100%;
  height: 52px;
  background: rgba(8, 12, 22, 0.95);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0 18px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-sans);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 16px) center;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
}

.cyber-select:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 16px rgba(255, 138, 0, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.radio-row-group {
  display: flex;
  gap: 16px;
  background: rgba(8, 12, 22, 0.95);
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #e2e8f0;
  cursor: pointer;
}

.radio-label input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--neon-orange);
}

/* ==========================================
   [기획서 37] 1번 API 패널 독립 카드 박스 승격 및 바닥 채움
========================================== */
.accordion-section#acc-api-section {
  background: #12151D !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  margin-bottom: 24px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.accordion-section#acc-api-section .card-header {
  background: #161922 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  padding: 18px 20px !important;
}

.accordion-section#acc-api-section .card-body {
  background: #12151D !important;
  padding: 20px 18px !important;
  border-top: none !important;
}

/* API 서버 IP 박스 (상하 너비 100% 완벽 일치) */
.api-server-ip-box {
  width: 100% !important;
  box-sizing: border-box !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-bottom: 14px !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(20, 28, 44, 0.85) 100%) !important;
  border: 1px solid rgba(255, 138, 0, 0.35) !important;
  padding: 16px 18px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}

.ip-box-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 12px !important;
}

.ip-pulse-dot {
  width: 8px !important;
  height: 8px !important;
  background: #10b981 !important;
  border-radius: 50% !important;
  box-shadow: 0 0 8px #10b981 !important;
  display: inline-block !important;
}

.badge-whitelist-safe {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: var(--neon-cyan) !important;
  background: rgba(56, 189, 248, 0.15) !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
  padding: 2px 8px !important;
  border-radius: 6px !important;
}

.ip-copy-group {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  background: rgba(2, 6, 23, 0.85) !important;
  border: 1px solid rgba(255, 138, 0, 0.25) !important;
  border-radius: 10px !important;
  padding: 8px 12px !important;
}

.server-ip-display {
  font-family: var(--font-mono) !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  color: var(--neon-cyan) !important;
  letter-spacing: 1px !important;
}

.btn-copy-ip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 7px 14px !important;
  background: linear-gradient(135deg, #FF8A00 0%, #FFA726 100%) !important;
  border: 1px solid #FFB74D !important;
  border-radius: 8px !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.btn-copy-ip:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(255, 138, 0, 0.45) !important;
}

.ip-whitelist-hint {
  margin-top: 10px !important;
  margin-bottom: 0 !important;
  font-size: 12px !important;
  color: #10b981 !important;
  line-height: 1.5 !important;
  font-weight: 500 !important;
}

.api-create-banner {
  margin-top: 14px !important;
  width: 100% !important;
  background: rgba(14, 23, 42, 0.9) !important;
  border: 1px dashed rgba(255, 138, 0, 0.4) !important;
  border-radius: 12px !important;
  padding: 14px 16px !important;
  box-sizing: border-box !important;
}

.btn-toobit-api-link {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  padding: 12px 16px !important;
  background: linear-gradient(135deg, #FF8A00 0%, #FFA726 100%) !important;
  border: 1px solid #FFB74D !important;
  border-radius: 10px !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(255, 138, 0, 0.4) !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
}

.btn-toobit-api-link:hover {
  filter: brightness(1.08) !important;
  transform: translateY(-1px);
}

/* 👑 [기획서 71호] 1번 패널 [🔑 API 인증키 즉시 저장하기] 원터치 버튼 */
.btn-save-api-keys {
  width: 100%;
  padding: 13px 18px;
  background: linear-gradient(135deg, #FF8A00 0%, #FFA726 100%) !important;
  border: 1px solid #FFB74D !important;
  border-radius: 12px;
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(255, 138, 0, 0.4);
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.btn-save-api-keys:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 138, 0, 0.55);
}

.btn-save-api-keys:active:not(:disabled) {
  transform: translateY(1px);
}

.btn-save-api-keys:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.api-create-guide {
  margin-top: 8px !important;
  font-size: 11.5px !important;
  color: #94a3b8 !important;
  line-height: 1.5 !important;
  text-align: center !important;
}

/* 투빗 3대 API 인증키 보안 금고 카드 (상하 너비 100% 완벽 일치) */
.api-credentials-card-box {
  width: 100% !important;
  box-sizing: border-box !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-top: 0 !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, rgba(18, 21, 29, 0.95) 0%, rgba(13, 16, 23, 0.9) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 20px 18px !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4) !important;
}

.credentials-box-header {
  font-size: 13.5px !important;
  font-weight: 800 !important;
  color: #f1f5f9 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 16px !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

/* AI 퀀트 패널 (1번 패널과 1:1 완벽 정합) */
.ai-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

@media (max-width: 480px) {
  .ai-panel-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .ai-panel-header #btn-apply-recommend {
    width: 100%;
    text-align: center;
    padding: 10px 14px;
    font-size: 13.5px;
  }
}

.ai-quant-system-panel {
  width: 100% !important;
  box-sizing: border-box !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
  background: rgba(15, 23, 42, 0.75) !important;
  border-radius: 16px !important;
  padding: 22px !important;
  margin-bottom: 24px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
}

/* 3번 이하 그리드 설정 섹션 카드 통합 외곽선 정합 */
.settings-card .panel-section:not(.ai-quant-system-panel) {
  width: 100% !important;
  box-sizing: border-box !important;
  border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.settings-card .panel-section:not(.ai-quant-system-panel):first-of-type {
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-top-left-radius: 16px !important;
  border-top-right-radius: 16px !important;
}

.settings-card .panel-section:not(.ai-quant-system-panel):last-of-type {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-bottom-left-radius: 16px !important;
  border-bottom-right-radius: 16px !important;
  margin-bottom: 16px !important;
}

.badge-mini {
  font-size: 12px;
  background: rgba(13, 20, 42, 0.95);
  color: #94a3b8;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 매집 비중 계산기 위젯 */
.grid-budget-info-box {
  margin-top: 10px;
  margin-bottom: 20px;
  padding: 14px 16px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 12px;
  box-sizing: border-box;
}

/* 푸터 */
.app-footer {
  text-align: center;
  padding: 24px 20px 32px;
  font-size: 13px;
  color: var(--text-muted);
}

/* 플로팅 토스트 알림창 */
.floating-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-30px);
  background: linear-gradient(135deg, #0d1b2a 0%, #07101e 100%);
  border: 1.5px solid var(--neon-orange);
  color: #ffffff;
  padding: 14px 24px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.85), 0 0 25px rgba(255, 138, 0, 0.35);
  z-index: 100000;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 92vw;
  width: max-content;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.floating-toast.toast-info {
  border-color: var(--neon-cyan);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.85), 0 0 25px rgba(56, 189, 248, 0.35);
}

.floating-toast.toast-success {
  border-color: var(--neon-green);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.85), 0 0 25px rgba(16, 185, 129, 0.35);
}

.floating-toast.toast-warning {
  border-color: var(--neon-gold);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.85), 0 0 25px rgba(245, 158, 11, 0.35);
}

/* AI 오토튜너 활성화 시 입력 잠금 스타일 */
.input-ai-locked {
  background: rgba(15, 23, 42, 0.75) !important;
  border-color: rgba(56, 189, 248, 0.2) !important;
  color: #94a3b8 !important;
  cursor: not-allowed !important;
  opacity: 0.6 !important;
  pointer-events: none !important;
  user-select: none !important;
  transition: all 0.2s ease-in-out !important;
}

/* ==========================================
   [기획서 59호] 신규 계정 등록 뷰 필수 법적 약관 동의 카드
========================================== */
.terms-agreement-card {
  background: rgba(18, 22, 32, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 14px;
  margin-bottom: 14px;
  text-align: left;
}

.terms-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: #f1f5f9;
  font-weight: 600;
}

.terms-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #FF8A00;
  cursor: pointer;
}

.terms-summary-box {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.55;
}

.terms-summary-box p {
  margin: 3px 0;
}

.terms-summary-box strong {
  color: #e2e8f0;
}

/* ==========================================
   [기획서 59호] 브라우저 자동완성 인풋 흰색 배경(Autofill Bug) 원천 박멸
========================================== */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #121620 inset !important;
  -webkit-text-fill-color: #ffffff !important;
  caret-color: #ffffff !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* ==========================================
   모바일 최적화 미디어 쿼리
========================================== */
@media (max-width: 480px) {
  .content-scroll {
    padding: 16px 14px 28px 14px;
    gap: 16px;
  }
  .billboard-card, .account-summary-card, .hero-pnl-card, .settings-card {
    padding: 18px 18px;
    border-radius: 16px;
  }
  .asset-balance-strip {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 14px;
  }
  .metric-realized-val {
    font-size: 36px;
  }
  .pos-safety-grid {
    grid-template-columns: 1fr;
  }
  .brand-tagline {
    display: none;
  }
  .btn-lg-touch {
    height: 54px;
    font-size: 16px;
  }
}

/* ========================================================
   👑 [기획서 61호 v1.1.43] 6대 시장 국면 아코디언 & 인풋 다크 옵시디언 스타일
   ======================================================== */
.btn-regime-accordion-toggle {
  width: 100%;
  margin-top: 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.85), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(255, 138, 0, 0.35);
  border-radius: 10px;
  color: #f8fafc;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.25s ease;
  user-select: none;
}

.btn-regime-accordion-toggle:hover {
  background: linear-gradient(135deg, rgba(40, 53, 76, 0.9), rgba(20, 30, 55, 0.98));
  border-color: var(--neon-orange, #FF8A00);
  box-shadow: 0 0 14px rgba(255, 138, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.btn-regime-accordion-toggle .toggle-arrow {
  color: #94a3b8;
  font-size: 13px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.25s ease;
}

.btn-regime-accordion-toggle .toggle-arrow.open {
  transform: rotate(180deg);
  color: var(--neon-orange, #FF8A00);
}

.regime-accordion-container {
  margin-top: 10px;
  padding: 12px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 138, 0, 0.2);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}

.regime-hint-banner {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.45;
}

.regime-hint-banner strong {
  color: #e2e8f0;
}

.regime-sub-card {
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.regime-sub-card:hover {
  border-color: rgba(255, 138, 0, 0.3);
}

.regime-sub-header {
  padding: 11px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  background: rgba(30, 41, 59, 0.35);
  transition: background 0.2s ease;
}

.regime-sub-header:hover {
  background: rgba(255, 255, 255, 0.04);
}

.regime-header-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.regime-title {
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
}

.regime-code {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
  margin-left: 2px;
}

.regime-sub-arrow {
  font-size: 11px;
  color: #64748b;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
}

.regime-sub-arrow.open {
  transform: rotate(180deg);
  color: var(--neon-orange, #FF8A00);
}

.regime-sub-body {
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  flex-direction: column;
}

.regime-param-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.regime-param-row:last-child {
  border-bottom: none;
}

.regime-param-label {
  font-size: 13px;
  color: #cbd5e1;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.regime-param-input {
  width: 100px;
  padding: 7px 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  text-align: right;
  outline: none;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  transition: border-color 0.2s, box-shadow 0.2s;
}

/* 👑 [기획서 67호 v1.1.47] 6대 국면 전 항목 네온 슬라이더 & 럭셔리 뱃지 스타일 */
.regime-slider-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  margin: 6px 0;
  transition: all 0.2s ease;
}

.regime-slider-row:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 138, 0, 0.2);
}

.regime-slider-header,
.slider-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.regime-slider-label,
.slider-label-row span:first-child {
  font-size: 13px;
  color: #cbd5e1;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.slider-val-badge {
  font-size: 12.5px;
  font-weight: 700;
  color: #FFB800;
  background: rgba(255, 138, 0, 0.15);
  border: 1px solid rgba(255, 138, 0, 0.4);
  border-radius: 6px;
  padding: 2px 8px;
  min-width: 48px;
  text-align: right;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  box-shadow: 0 0 8px rgba(255, 184, 0, 0.2);
}

.regime-neon-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
  cursor: pointer;
  margin: 4px 0 2px 0;
  transition: background 0.2s;
}

.regime-neon-slider:focus {
  background: rgba(255, 255, 255, 0.22);
}

.regime-neon-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #FF8A00;
  box-shadow: 0 0 10px #FF8A00;
  border: 2px solid #ffffff;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.regime-neon-slider::-webkit-slider-thumb:active {
  transform: scale(1.15);
  box-shadow: 0 0 14px rgba(255, 138, 0, 1);
}

.regime-neon-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #FF8A00;
  box-shadow: 0 0 10px #FF8A00;
  border: 2px solid #ffffff;
  cursor: pointer;
}

.regime-switch-row,
.toggle-inline-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  margin: 6px 0;
}

.toggle-inline-label {
  font-size: 13px;
  color: #cbd5e1;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 7호 1호 시드 즉시 매집용 미니 스위치 토글 */
.switch.switch-mini {
  width: 44px;
  height: 24px;
}

.switch.switch-mini .slider.round:before {
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
}

.switch.switch-mini input:checked + .slider.round:before {
  transform: translateX(20px);
}

/* 실시간 투자비중 자동계산 & 3단계 위험경고 박스 */
.regime-calc-box {
  margin: 6px 0 10px 0;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 11.5px;
  line-height: 1.45;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
}

.regime-calc-box .calc-text {
  font-weight: 600;
}

.regime-calc-box.calc-state-safe {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.regime-calc-box.calc-state-warn {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.regime-calc-box.calc-state-danger {
  background: rgba(239, 68, 68, 0.15);
  border: 1.5px solid rgba(239, 68, 68, 0.55);
  color: #f87171;
  animation: dangerPulse 1.8s infinite;
}

@keyframes dangerPulse {
  0% { box-shadow: 0 0 0 rgba(239, 68, 68, 0); }
  50% { box-shadow: 0 0 14px rgba(239, 68, 68, 0.5); }
  100% { box-shadow: 0 0 0 rgba(239, 68, 68, 0); }
}

.btn-regime-reset {
  width: 100%;
  padding: 10px 14px;
  margin-top: 10px;
  background: rgba(51, 65, 85, 0.35);
  border: 1px dashed rgba(148, 163, 184, 0.3);
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-regime-reset:hover {
  background: rgba(255, 138, 0, 0.12);
  border-color: var(--neon-orange, #FF8A00);
  color: #ffffff;
}

@media (max-width: 480px) {
  .regime-param-label {
    font-size: 12px;
  }
  .regime-param-input {
    width: 90px;
    font-size: 12.5px;
    padding: 6px 8px;
  }
  .regime-title {
    font-size: 12px;
  }
}

/* ==========================================
   [기획서 65호] AI 스마트 튜닝 법적 안심 가이드 박스
========================================== */
.smart-tuning-legal-guide {
  margin-top: 8px;
  margin-bottom: 10px;
  padding: 10px 14px;
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 10px;
}

.smart-tuning-legal-guide .guide-line {
  margin: 0;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.55;
}

/* ==========================================
   [기획서 69호] 상시 열람용 법적 약관 & 투자위험고지 모달 및 푸터 링크
========================================== */
.legal-footer-links {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-legal-link {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  transition: color 0.2s;
}

.btn-legal-link:hover {
  color: #FF8A00;
}

.legal-link-divider {
  color: rgba(255, 255, 255, 0.2);
  font-size: 10px;
}

.legal-modal-card {
  max-width: 520px;
  width: 92%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.legal-modal-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 12px;
}

.modal-close-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  line-height: 1;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.legal-tab-bar {
  display: flex;
  gap: 6px;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
}

.legal-tab {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: #94a3b8;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}

.legal-tab.active {
  background: rgba(255, 138, 0, 0.15);
  border-color: #FF8A00;
  color: #FFB800;
}

.legal-modal-body {
  overflow-y: auto;
  padding: 14px 4px;
  max-height: 50vh;
  text-align: left;
}

.legal-article-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #f1f5f9;
  margin: 12px 0 4px 0;
}

.legal-warn-title {
  color: #fbbf24;
}

.legal-secure-title {
  color: #34d399;
}

.legal-text {
  font-size: 12px;
  line-height: 1.6;
  color: #94a3b8;
  margin: 0 0 10px 0;
  word-break: keep-all;
}

.legal-modal-footer {
  display: flex;
  justify-content: center;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================
   👑 [기획서 71호 v1.1.51] 웹 푸시 알림 허용 모달 및 토글 버튼 스타일
========================================== */
.push-perm-card {
  text-align: center;
  max-width: 420px;
  width: 90%;
  padding: 30px 24px;
  background: linear-gradient(180deg, #161b26 0%, #0c0f17 100%) !important;
  border: 1.5px solid rgba(255, 138, 0, 0.35) !important;
  border-radius: 20px !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 138, 0, 0.2) !important;
}

.push-bell-icon-wrap {
  width: 68px;
  height: 68px;
  margin: 0 auto 16px auto;
  border-radius: 50%;
  background: rgba(255, 138, 0, 0.12);
  border: 1.5px solid rgba(255, 138, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff8a00;
  font-size: 28px;
  box-shadow: 0 0 20px rgba(255, 138, 0, 0.3);
}

.push-bell-pulse {
  animation: bellPulse 2s infinite ease-in-out;
}

@keyframes bellPulse {
  0% { transform: rotate(0) scale(1); }
  10% { transform: rotate(14deg) scale(1.05); }
  20% { transform: rotate(-14deg) scale(1.05); }
  30% { transform: rotate(10deg); }
  40% { transform: rotate(-10deg); }
  50% { transform: rotate(0) scale(1); }
  100% { transform: rotate(0) scale(1); }
}

.btn-royal-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.btn-royal-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn-push-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-push-toggle:hover {
  background: rgba(255, 138, 0, 0.15);
  border-color: rgba(255, 138, 0, 0.4);
  color: #ff8a00;
}

.btn-push-toggle.active {
  background: rgba(255, 138, 0, 0.2);
  border-color: #ff8a00;
  color: #ff8a00;
  box-shadow: 0 0 10px rgba(255, 138, 0, 0.3);
}

.push-toggle-label {
  font-size: 11.5px;
}

@media (max-width: 480px) {
  .push-toggle-label {
    display: none;
  }
}

/* ==========================================
   👑 [기획서 83호 v1.1.61] 황실 보안 및 환경설정 센터 (Account Hub)
   ========================================== */
.account-hub-card {
  max-width: 440px !important;
  width: 94% !important;
  padding: 22px 18px 18px !important;
  border-radius: 24px !important;
  background: linear-gradient(180deg, #0d121d 0%, #070a10 100%) !important;
  border: 1px solid rgba(255, 138, 0, 0.35) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(255, 138, 0, 0.15) !important;
}

.account-hub-header {
  text-align: left;
  margin-bottom: 14px;
}

.account-hub-title {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  margin: 6px 0 2px 0;
  letter-spacing: -0.3px;
}

.account-hub-subtitle {
  font-size: 11.5px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.4;
}

.account-hub-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.account-hub-section-card {
  background: rgba(18, 24, 38, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.account-hub-section-card:hover {
  border-color: rgba(255, 138, 0, 0.25);
}

.hub-row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.hub-clickable-header {
  cursor: pointer;
  user-select: none;
}

.hub-sec-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hub-sec-label {
  font-size: 10.5px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hub-uid-display {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hub-uid-text {
  font-size: 15px;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: 0.5px;
}

.btn-mini-copy {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #cbd5e1;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.btn-mini-copy:hover {
  background: rgba(255, 138, 0, 0.2);
  border-color: #ff8a00;
  color: #ff8a00;
}

.hub-license-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 8px;
  white-space: nowrap;
}

.hub-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hub-icon-tile {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.push-tile {
  background: rgba(255, 138, 0, 0.12);
  border: 1px solid rgba(255, 138, 0, 0.35);
  color: #ff8a00;
}

.bio-tile {
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: #ffd700;
}

.pin-tile {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
}

.hub-item-text {
  text-align: left;
}

.hub-item-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.3;
}

.hub-item-desc {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.3;
}

.hub-card-footer {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
}

.hub-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 12px;
}

.hub-status-badge .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}

.hub-status-badge.status-active {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.hub-status-badge.status-inactive {
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #94a3b8;
}

.hub-status-badge.status-disabled {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.btn-hub-bio-action {
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-bio-enroll {
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.2) 0%, rgba(255, 138, 0, 0.3) 100%);
  border: 1px solid rgba(255, 184, 0, 0.5);
  color: #ffd700;
}

.btn-bio-enroll:hover {
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.3) 0%, rgba(255, 138, 0, 0.45) 100%);
  border-color: #ffd700;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
}

.btn-bio-re-enroll {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
}

.btn-bio-re-enroll:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.hub-chevron {
  font-size: 12px;
  color: #94a3b8;
  transition: transform 0.25s ease;
}

/* ==========================================================================
   📢 [기획서 130호/201호] 하이페리온 마스터 실시간 공지 팝업 모달 전용 럭셔리 네온 스타일
   ========================================================================== */
#modalNoticePopup.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 7, 13, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

#modalNoticePopup.modal-backdrop.hidden,
#modalNoticePopup.hidden {
  display: none !important;
}

.notice-popup-card {
  width: 94vw;
  max-width: 640px;
  background: #0e121a;
  border: 1px solid rgba(255, 215, 0, 0.3);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8), 0 0 32px rgba(255, 215, 0, 0.15);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: noticePopupFadeIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

@keyframes noticePopupFadeIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.notice-popup-header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(18, 24, 36, 0.7);
  flex-shrink: 0;
}

.notice-popup-badge-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge-notice-type {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: rgba(255, 215, 0, 0.15);
  border: 1px solid rgba(255, 215, 0, 0.5);
  color: #ffd700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.notice-popup-brand {
  font-size: 11px;
  font-weight: 700;
  color: #00d2ff;
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(0, 210, 255, 0.4);
}

.notice-popup-card .modal-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s;
}

.notice-popup-card .modal-close:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.notice-popup-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
  background: #090d14;
  box-sizing: border-box;
}

.notice-popup-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 16px 0;
  line-height: 1.4;
  letter-spacing: -0.3px;
}

.notice-popup-content-box {
  color: #e2e8f0;
  line-height: 1.7;
  font-size: 14px;
  word-break: break-word;
}

.notice-popup-content-box h1,
.notice-popup-content-box h2,
.notice-popup-content-box h3 {
  color: #f1f5f9;
  margin: 16px 0 8px 0;
  font-weight: 700;
}

.notice-popup-content-box h1 { font-size: 18px; color: #38bdf8; }
.notice-popup-content-box h2 { font-size: 16px; color: #fbbf24; }
.notice-popup-content-box h3 { font-size: 15px; }

.notice-popup-content-box p {
  margin: 0 0 10px 0;
}

.notice-popup-content-box strong {
  color: #ffffff;
  font-weight: 700;
}

.notice-popup-content-box hr.notice-hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.4), transparent);
  margin: 16px 0;
}

.notice-popup-content-box ul,
.notice-popup-content-box ol {
  margin: 6px 0 12px 20px;
  padding: 0;
}

.notice-popup-content-box li {
  margin-bottom: 5px;
}

.notice-popup-content-box code.notice-inline-code {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  color: #38bdf8;
  font-family: monospace;
  font-size: 13px;
}

.notice-popup-content-box.custom-scrollbar::-webkit-scrollbar,
.notice-popup-body::-webkit-scrollbar {
  width: 6px;
}
.notice-popup-content-box.custom-scrollbar::-webkit-scrollbar-thumb,
.notice-popup-body::-webkit-scrollbar-thumb {
  background: rgba(255, 215, 0, 0.3);
  border-radius: 3px;
}

.notice-popup-footer {
  padding: 14px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(18, 24, 36, 0.7);
  flex-shrink: 0;
}

.notice-today-hide-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}

.notice-today-hide-label input[type="checkbox"] {
  cursor: pointer;
  accent-color: #ffd700;
  width: 16px;
  height: 16px;
}

.btn-notice-confirm {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
  border: 1px solid rgba(255, 215, 0, 0.5);
  color: #ffffff;
  padding: 10px 24px;
  font-weight: 600;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
  transition: all 0.2s ease;
}

.btn-notice-confirm:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

/* ==========================================
   👑 [기획서 258호] 모바일 뷰포트(360px~480px) 4대 우측 잘림·충돌 원천 교정
========================================== */
#storm-lock-row .storm-lock-badge,
#hedge-lock-row .hedge-lock-badge {
  max-width: 100% !important;
  white-space: normal !important;
  text-align: center !important;
  line-height: 1.35 !important;
  box-sizing: border-box !important;
}

@media (max-width: 480px) {
  .app-wrapper,
  .content-scroll,
  .billboard-card,
  .hero-asset-card,
  .position-metric-card {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 1. 상단 헤더(top-nav) UID 캡슐 및 로그아웃 버튼 우측 잘림 방어 */
  .top-nav {
    padding: 10px 12px !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }
  .brand-section {
    gap: 8px !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }
  .brand-logo-wrap,
  .brand-neon-logo {
    width: 34px !important;
    height: 34px !important;
    flex-shrink: 0 !important;
  }
  .brand-title-toobit {
    font-size: 16px !important;
  }
  .brand-subtitle-quant {
    font-size: 9.5px !important;
    letter-spacing: 0.06em !important;
  }
  .header-right {
    gap: 6px !important;
    flex-shrink: 0 !important;
  }
  .badge-uid,
  .badge-uid-capsule {
    padding: 5px 8px !important;
    font-size: 11px !important;
    max-width: 138px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
  .btn-logout-cyber,
  .btn-power-circle {
    padding: 5px 8px !important;
    width: 30px !important;
    height: 30px !important;
    flex-shrink: 0 !important;
  }

  /* 2. 히어로 2열 서브카드(누적 실현 손익 / 당일 손익) 우측 오버플로우 방어 */
  .hero-asset-card,
  .billboard-card.account-summary-card {
    padding: 16px 14px !important;
  }
  .hero-subcards-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
  }
  .hero-subcard {
    padding: 11px 10px !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }
  .subcard-header-row {
    min-width: 0 !important;
    flex-wrap: wrap !important;
    gap: 3px !important;
  }
  .subcard-label-group {
    gap: 4px !important;
    min-width: 0 !important;
    max-width: 100% !important;
    white-space: normal !important;
    flex-wrap: wrap !important;
  }
  .subcard-label {
    font-size: 11px !important;
    white-space: normal !important;
    line-height: 1.25 !important;
    word-break: keep-all !important;
  }
  .subcard-pct-badge {
    font-size: 10.5px !important;
  }
  .subcard-amount,
  .subcard-val {
    font-size: clamp(16px, 4.6vw, 20px) !important;
  }
  .subcard-currency {
    font-size: 10px !important;
  }

  /* 3. 수수료 정산 배너(settlement-banner) 텍스트 충돌 및 v4.2 잘림 방어 */
  .settlement-banner {
    padding: 7px 8px !important;
    gap: 4px !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  .settlement-left {
    font-size: 9px !important;
    letter-spacing: -0.05em !important;
    gap: 4px !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    overflow: visible !important;
    white-space: nowrap !important;
  }
  .settlement-right {
    font-size: 8.5px !important;
    padding: 2px 4px !important;
    letter-spacing: -0.03em !important;
    flex-shrink: 0 !important;
  }

  /* 4. 포지션 메트릭 카드(미실현 손익 등) 우측 잘림 방어 */
  .position-metric-card {
    padding: 14px 12px !important;
  }
  .pos-metric-row {
    gap: 6px !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  .pos-metric-label {
    font-size: 13px !important;
  }
  .pos-metric-val {
    font-size: 14.5px !important;
  }

  /* 5. AI 방어 시스템 카드(.ai-risk-engine-section) 우측 오버플로우 방어 */
  .ai-risk-engine-section {
    padding: 14px 12px !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  .risk-engine-header {
    gap: 6px !important;
    flex-wrap: wrap !important;
    min-width: 0 !important;
  }
  .risk-engine-title {
    font-size: 12.5px !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }
  .risk-engine-status-badge {
    font-size: 10px !important;
    padding: 3px 7px !important;
    flex-shrink: 0 !important;
  }
}
