@charset "utf-8";

/*
 * Totoman (토토맨) – Premium Fintech-style Sports Dashboard UI
 * - Midnight Navy base (#0F172A)
 * - Neon Blue (#3B82F6) / Vivid Violet (#8B5CF6)
 * - Pretendard (KR) + Inter (numbers)
 * - Glassmorphism surfaces, soft shadows
 */

:root {
  --tm-bg: #0F172A;
  --tm-bg-2: #0B1224;
  --tm-text: #F8FAFC;
  --tm-text-strong: #EAF2FF;
  --tm-muted: rgba(248, 250, 252, 0.68);
  --tm-muted-2: rgba(248, 250, 252, 0.48);

  --tm-primary: #3B82F6;
  --tm-violet: #8B5CF6;
  --tm-success: #22C55E;
  --tm-warning: #F59E0B;
  --tm-danger: #EF4444;

  --tm-glass: rgba(255, 255, 255, 0.06);
  --tm-glass-2: rgba(255, 255, 255, 0.08);
  --tm-stroke: rgba(255, 255, 255, 0.12);
  --tm-stroke-strong: rgba(255, 255, 255, 0.18);
  --tm-shadow: 0 10px 30px rgba(2, 6, 23, 0.34);
  --tm-shadow-soft: 0 8px 22px rgba(2, 6, 23, 0.22);

  --tm-radius-card: 18px;
  --tm-radius-btn: 12px;
}

html, body {
  height: 100%;
}

body {
  background: radial-gradient(1200px 700px at 12% 18%, rgba(59,130,246,.22) 0%, rgba(15,23,42,0) 55%),
              radial-gradient(900px 600px at 86% 22%, rgba(139,92,246,.18) 0%, rgba(15,23,42,0) 52%),
              linear-gradient(180deg, var(--tm-bg) 0%, var(--tm-bg-2) 100%);
  color: var(--tm-text);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Default type cleanup */
h1, h2, h3, h4, h5, h6 {
  color: var(--tm-text-strong);
  letter-spacing: -0.02em;
}

.en, .num, .data, .kpi, .count, .price, .odd, .rate {
  font-family: Inter, "Pretendard Variable", Pretendard, sans-serif !important;
  font-variant-numeric: tabular-nums;
}

a, a:hover {
  color: var(--tm-text);
  text-decoration: none;
}

a.tm-link, .tm-link a {
  color: var(--tm-primary);
}

/* Layout wrappers */
.wrapper,
.nt-container,
#nt_body,
#nt_header,
#nt_footer {
  background: transparent !important;
}

/* Remove legacy header image */
#header_pc .nt-container {
  background: none !important;
}

/* LNB / Header - glass */
#nt_lnb {
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

#nt_lnb a {
  color: var(--tm-muted);
}

#nt_lnb a:hover {
  color: var(--tm-text);
}

/* Sticky menu wrap */
#nt_sticky_wrap,
#nt_menu_wrap,
#nt_title {
  background: rgba(15, 23, 42, 0.55) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Bootstrap primary overrides (without rebuilding bootstrap) */
.bg-primary { background-color: rgba(59,130,246,0.85) !important; }
.text-primary { color: var(--tm-primary) !important; }
.border-primary { border-color: rgba(59,130,246,0.55) !important; }

.btn {
  border-radius: var(--tm-radius-btn);
}

.btn-primary,
.btn.btn-primary {
  background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%) !important;
  border: 0 !important;
  box-shadow: 0 10px 24px rgba(59,130,246,.18), 0 10px 24px rgba(139,92,246,.12);
}

.btn-primary:hover,
.btn.btn-primary:hover {
  filter: brightness(1.05);
  box-shadow: 0 0 0 1px rgba(59,130,246,.35), 0 0 26px rgba(139,92,246,.25);
}

.btn-outline-primary {
  border-color: rgba(59,130,246,0.55) !important;
  color: var(--tm-text) !important;
}

.btn-outline-primary:hover {
  background: rgba(59,130,246,0.12) !important;
  box-shadow: 0 0 0 1px rgba(59,130,246,.35);
}

/* Forms */
input.form-control, textarea.form-control, select.form-control {
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  color: var(--tm-text) !important;
  border-radius: 14px !important;
}
input.form-control::placeholder, textarea.form-control::placeholder {
  color: rgba(248,250,252,0.45) !important;
}
input.form-control:focus, textarea.form-control:focus, select.form-control:focus {
  box-shadow: 0 0 0 1px rgba(59,130,246,.35), 0 0 0 4px rgba(59,130,246,.12) !important;
}

/* Cards - glassmorphism */
.card,
.na-card,
.list-group-item,
.table,
.dropdown-menu,
.modal-content {
  background: var(--tm-glass) !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  color: var(--tm-text) !important;
  border-radius: var(--tm-radius-card) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--tm-shadow-soft);
}

.card:hover {
  border-color: rgba(255,255,255,0.16) !important;
}

/* Tables */
.table {
  border-collapse: separate !important;
  border-spacing: 0;
}
.table thead th {
  border-bottom: 1px solid rgba(255,255,255,0.14) !important;
  color: rgba(248,250,252,0.80) !important;
}
.table td, .table th {
  border-top: 1px solid rgba(255,255,255,0.08) !important;
}

/* Badges */
.badge,
.label {
  border-radius: 999px;
}

.tm-badge-hot {
  background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
  color: white;
  padding: 6px 10px;
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(59,130,246,.35), 0 0 26px rgba(139,92,246,.25);
}

/* Scoreboard micro interaction */
.tm-scorecard {
  position: relative;
  transition: transform 180ms ease-out, box-shadow 180ms ease-out, border-color 180ms ease-out;
  overflow: hidden;
}

.tm-scorecard:hover {
  transform: translateY(-2px);
  box-shadow: var(--tm-shadow);
  border-color: rgba(59,130,246,0.28) !important;
}

.tm-scorecard .tm-expand {
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height 220ms ease-out, opacity 220ms ease-out, transform 220ms ease-out;
}

.tm-scorecard:hover .tm-expand,
.tm-scorecard.is-open .tm-expand {
  max-height: 140px;
  opacity: 1;
  transform: translateY(0);
}

/* Community feed cards */
.tm-feed-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.tm-feed-card {
  grid-column: span 4;
}

@media (max-width: 991px) {
  .tm-feed-card { grid-column: span 6; }
}

@media (max-width: 575px) {
  .tm-feed-card { grid-column: span 12; }
}

.tm-feed-card .tm-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  overflow: hidden;
}

.tm-feed-card .tm-meta {
  color: rgba(248,250,252,0.65);
}

/* Tier icon placeholder (3D metallic look via CSS) */
.tm-tier {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0.08) 55%, rgba(0,0,0,0.25) 100%);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 6px 16px rgba(2,6,23,.25);
}

/* AI Orb + Bottom sheet */
.tm-ai-orb {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.20), rgba(255,255,255,0) 45%),
              linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
  box-shadow: 0 14px 34px rgba(59,130,246,.22), 0 14px 34px rgba(139,92,246,.18);
  border: 1px solid rgba(255,255,255,0.22);
  z-index: 9999;
  cursor: pointer;
}

.tm-ai-orb::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(59,130,246,.35) 0%, rgba(139,92,246,.18) 35%, rgba(15,23,42,0) 70%);
  filter: blur(8px);
  opacity: 0.9;
}

.tm-ai-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2,6,23,0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9998;
  display: none;
}

.tm-ai-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46vh;
  max-height: 70vh;
  background: rgba(15,23,42,0.75);
  border-top: 1px solid rgba(255,255,255,0.12);
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform: translateY(110%);
  transition: transform 260ms ease-out;
  z-index: 9999;
  box-shadow: 0 -18px 60px rgba(2,6,23,.55);
}

.tm-ai-sheet.is-open {
  transform: translateY(0);
}

.tm-ai-sheet .tm-handle {
  width: 48px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.22);
  margin: 10px auto 12px;
}

.tm-ai-sheet .tm-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 12px;
}

.tm-ai-sheet .tm-title strong {
  font-size: 15px;
  letter-spacing: -0.02em;
}

.tm-ai-sheet .tm-body {
  padding: 0 16px 16px;
}

.tm-ai-wave {
  height: 34px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background:
    radial-gradient(60px 60px at 22% 50%, rgba(59,130,246,.22), rgba(15,23,42,0) 60%),
    radial-gradient(60px 60px at 55% 50%, rgba(139,92,246,.18), rgba(15,23,42,0) 60%),
    radial-gradient(60px 60px at 82% 50%, rgba(59,130,246,.18), rgba(15,23,42,0) 60%),
    rgba(255,255,255,0.04);
  position: relative;
  overflow: hidden;
}

.tm-ai-wave::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(59,130,246,0.0) 0%, rgba(59,130,246,0.22) 45%, rgba(139,92,246,0.18) 55%, rgba(139,92,246,0.0) 100%);
  transform: translateX(-40%);
  animation: tm-wave 1.4s ease-in-out infinite;
}

@keyframes tm-wave {
  0% { transform: translateX(-55%); opacity: 0.4; }
  50% { opacity: 0.9; }
  100% { transform: translateX(55%); opacity: 0.4; }
}

/* Footer */
#nt_footer {
  color: rgba(248,250,252,0.70);
}

#nt_footer a {
  color: rgba(248,250,252,0.78);
}

#nt_footer a:hover {
  color: var(--tm-text);
}


/* =========================================================
   Totoman Header/Menu Enhancement
   ========================================================= */
#nt_header, .nt-header, #nt_menu { background: transparent; }
#nt_header .nt-lnb, #nt_header .nt-lnb a { color: rgba(248,250,252,.86); }
#nt_header .nt-lnb a:hover { color:#fff; text-shadow: 0 0 18px rgba(59,130,246,.22); }

#nt_menu .nt-menu, #nt_menu .nt-menu a { color: rgba(248,250,252,.90); }
#nt_menu .nt-menu a {
  position: relative;
  padding: 14px 14px;
  border-radius: 12px;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
#nt_menu .nt-menu a:hover{
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 1px rgba(59,130,246,.18), 0 0 22px rgba(139,92,246,.14);
}
#nt_menu .nt-menu a:after{
  content:'';
  position:absolute;
  left:14px; right:14px; bottom:8px;
  height:2px;
  border-radius:999px;
  background: linear-gradient(135deg, var(--tm-blue), var(--tm-violet));
  opacity:0;
  transform: translateY(3px);
  transition: opacity .18s ease, transform .18s ease;
}
#nt_menu .nt-menu a:hover:after,
#nt_menu .nt-menu .active > a:after,
#nt_menu .nt-menu a.on:after{
  opacity:1;
  transform: translateY(0);
}

/* =========================================================
   Totoman Auth Modal
   ========================================================= */
body.tm-modal-open { overflow:hidden; }
.tm-auth-backdrop{
  position:fixed; inset:0;
  background: rgba(2,6,23,.62);
  backdrop-filter: blur(10px);
  z-index: 20050;
}
.tm-auth-modal{
  position:fixed; inset:0;
  z-index: 20060;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 18px;
}
.tm-auth-card{
  width: min(920px, 96vw);
  height: min(680px, 92vh);
  border-radius: 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 18px 54px rgba(2,6,23,.42);
  backdrop-filter: blur(18px);
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.tm-auth-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 12px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.tm-auth-tabs{ display:flex; gap:8px; flex-wrap:wrap; }
.tm-auth-tab{
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(15,23,42,0.35);
  color: rgba(248,250,252,.86);
  font-weight: 800;
  font-size: 13px;
}
.tm-auth-tab:hover{ border-color: rgba(59,130,246,.35); box-shadow: 0 0 0 1px rgba(59,130,246,.18); color:#fff; }
.tm-auth-tab.is-active{
  background: linear-gradient(135deg, rgba(59,130,246,.92), rgba(139,92,246,.92));
  border-color: rgba(255,255,255,0.18);
  color:#fff;
}
.tm-auth-close{
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(15,23,42,0.35);
  color: rgba(248,250,252,.9);
  font-size: 22px;
  line-height: 1;
}
.tm-auth-close:hover{ border-color: rgba(239,68,68,.35); box-shadow: 0 0 0 1px rgba(239,68,68,.18); }

.tm-auth-body{ flex:1; }
.tm-auth-frame{
  width:100%; height:100%;
  border:0;
  background: transparent;
}

/* 모달 내부 기본 페이지(그누보드 폼)도 다크에 어울리게 살짝 보정 */
.tm-auth-frame html, .tm-auth-frame body{ background: transparent !important; }


/* ===== Totoman Topbar (Fintech) ===== */
.tm-topbar{
  position: relative;
  background: rgba(15,23,42,.72);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(18px);
}
.tm-topbar:before{
  content:"";
  position:absolute; inset:-1px 0 auto 0; height:180px;
  background: radial-gradient(60% 60% at 20% 0%, rgba(59,130,246,.28) 0%, rgba(139,92,246,.10) 45%, rgba(15,23,42,0) 75%);
  pointer-events:none;
}
.tm-topbar-row{position:relative; z-index:1}
.tm-logo img{height:40px; width:auto}
.tm-logo-mo img{height:28px; width:auto}

.tm-search-form .input-group{border-radius:16px; overflow:hidden}
.tm-search-form{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(2,6,23,.20);
  backdrop-filter: blur(16px);
}
.tm-search-ico{
  background: transparent;
  border:0;
  color: rgba(248,250,252,.85);
}
.tm-search-input{
  background: transparent;
  border:0;
  color: rgba(248,250,252,.92);
  font-weight:600;
}
.tm-search-input::placeholder{color: rgba(248,250,252,.55)}
.tm-search-input:focus{outline: none; box-shadow:none}
.tm-search-btn{
  border:0;
  color:#fff;
  font-weight:700;
  background: linear-gradient(135deg,#3B82F6 0%, #8B5CF6 100%);
}
.tm-search-btn:hover{filter: brightness(1.02)}

.tm-iconbtn{
  width:40px; height:40px;
  display:inline-flex; align-items:center; justify-content:center;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(248,250,252,.92);
  margin-left: 8px;
}
.tm-iconbtn:hover{
  border-color: rgba(59,130,246,.35);
  box-shadow: 0 0 0 1px rgba(59,130,246,.25), 0 0 22px rgba(139,92,246,.18);
}
.tm-iconbtn-mo{margin-left:6px; width:38px; height:38px}
.tm-profile-btn{
  display:inline-flex; align-items:center; gap:.55rem;
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(248,250,252,.92);
  margin-left: 10px;
  max-width: 220px;
}
.tm-profile-btn:hover{
  border-color: rgba(59,130,246,.35);
  box-shadow: 0 0 0 1px rgba(59,130,246,.25), 0 0 22px rgba(139,92,246,.18);
}
.tm-avatar{
  width:26px; height:26px; border-radius:10px;
  display:inline-flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg, rgba(59,130,246,.35), rgba(139,92,246,.25));
  border:1px solid rgba(255,255,255,.12);
}
.tm-dropdown{
  background: rgba(15,23,42,.88);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(2,6,23,.45);
  backdrop-filter: blur(18px);
}
.tm-dropdown .dropdown-item{color: rgba(248,250,252,.92)}
.tm-dropdown .dropdown-item:hover{background: rgba(59,130,246,.12)}
.tm-btn{border-radius: 14px; padding: 9px 12px; font-weight:800; margin-left:10px}
.tm-btn-ghost{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(248,250,252,.92);
}
.tm-btn-primary{
  border:0;
  color:#fff;
  background: linear-gradient(135deg,#3B82F6 0%, #8B5CF6 100%);
  box-shadow: 0 14px 40px rgba(59,130,246,.22);
}

/* ===== Totoman Menu (icons color + dot separator + glow underline) ===== */
#nt_menu.nt-menu{background: rgba(15,23,42,.78) !important; border-bottom:1px solid rgba(255,255,255,.08); backdrop-filter: blur(16px);}
#nt_menu .me-li > a{background: transparent !important;}
#nt_menu .me-a{
  position: relative;
  padding-top: 18px; padding-bottom: 18px;
  font-weight: 800;
  letter-spacing:-0.01em;
  color: rgba(248,250,252,.88);
}
#nt_menu .me-li.on .me-a,
#nt_menu .me-li:hover .me-a{color:#fff;}
#nt_menu .me-li .me-a:after{
  content:"";
  position:absolute; left:16px; right:16px; bottom:10px;
  height:2px; border-radius:2px;
  background: linear-gradient(135deg,#3B82F6 0%, #8B5CF6 100%);
  opacity:0; transform: translateY(2px);
  transition: all .18s ease;
}
#nt_menu .me-li.on .me-a:after,
#nt_menu .me-li:hover .me-a:after{opacity:1; transform:none;}
#nt_menu .me-li:hover .me-a{ text-shadow: 0 0 18px rgba(59,130,246,.20); }

#nt_menu .me-li{position:relative;}
#nt_menu .me-li:not(:last-child):before{
  content:"";
  position:absolute; right: 0; top: 50%;
  width:6px; height:6px; border-radius:50%;
  transform: translate(50%, -50%);
  background: rgba(253, 186, 116, .0);
  box-shadow: 0 0 0 1px rgba(255,255,255,.10);
  opacity:.9;
}
#nt_menu .me-li:not(:last-child):after{
  content:"";
  position:absolute; right: 0; top: 50%;
  width:6px; height:6px; border-radius:50%;
  transform: translate(50%, -50%);
  background: rgba(59,130,246,.35);
  filter: blur(2px);
  opacity:.55;
}

.tm-me i{margin-right:8px;}
.tm-me-gold i{color:#FBBF24;}
.tm-me-red i{color:#EF4444;}
.tm-me-blue i{color:#3B82F6;}
.tm-me-violet i{color:#8B5CF6;}
.tm-me-cyan i{color:#22D3EE;}
.tm-me-green i{color:#22C55E;}
.tm-me-silver i{color:#94A3B8;}
.tm-me-default i{color: rgba(248,250,252,.80);}
