/* =========================
   Home (참고 이미지 메인) - FINAL
========================= */

:root{
  --bg0:#0b1424;
  --bg1:#0f1a2b;
  --line: rgba(255,255,255,.08);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);
  --accent:#2d6cdf;

  --up:#d84a4a;
  --down:#2d6cdf;
}

.home{
  background:#f4f6f8;
  /* header가 fixed면 필요:
     padding-top: 72px; */
}

/* -------------------------
   HERO
------------------------- */
.hero{
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg1) 0%, var(--bg0) 100%);
  z-index: 0;
  padding-bottom: 0; /* ✅ 빈공간 방지 */
}

/* ✅ 1번 빨간 박스: BG.jpg(assets/img/BG.jpg) 꽉차게 */
.hero__bg{
  position:absolute;
  inset:0;
  background: url("../img/BG.jpg") center/cover no-repeat;
  opacity:.78;
}

.hero__veil{
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 360px at 50% 30%, rgba(45,108,223,.18), transparent 65%),
    radial-gradient(900px 360px at 70% 60%, rgba(0,160,255,.12), transparent 60%),
    linear-gradient(180deg, rgba(8,12,20,.65) 0%, rgba(8,12,20,.55) 40%, rgba(8,12,20,.75) 100%);
}

.hero__bg,
.hero__veil{
  z-index: 0;
}

.hero__inner,
.ticker{
  position: relative;
  z-index: 1; /* ✅ 히어로 내부 컨텐츠만 위 */
}

.hero__inner{
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 92px 18px; /* ✅ 아래 여백 줄여 파란 빈공간 방지 */
  text-align: center;
  color: var(--text);
}

.hero__title{
  font-size: 34px;
  font-weight: 900;
  letter-spacing: .2px;
  margin: 0;
  line-height: 1.2;
}
.hero__brand{
  display:block;
  margin-top: 6px;
  color: rgba(135 251 75);
  font-weight: 900;
  letter-spacing: 1px;
  font-size: 30px;
}
.hero__sub{
  margin: 14px 0 22px;
  color: var(--muted);
  font-weight: 700;
  font-size: 15px;
}

/* -------------------------
   로그인 바 (2번: 링크 제거)
------------------------- */
.heroLogin{
  width: min(740px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 120px;
  gap: 0;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  border-radius: 6px;
  overflow: hidden;
}
.heroLogin__inp{
  height: 40px;
  border: 0;
  outline: none;
  padding: 0 12px;
  font-weight: 800;
  font-size: 12px;
  color: rgba(255,255,255,.9);
  background: transparent;
}
.heroLogin__inp + .heroLogin__inp{
  border-left: 1px solid rgba(255,255,255,.14);
}
.heroLogin__btn{
  border: 0;
  cursor: pointer;
  background: linear-gradient(90deg, #2d6cdf 0%, #13b5ff 100%);
  color: #fff;
  font-weight: 900;
  font-size: 13px;
}

/* ✅ 링크 영역 완전 제거 */
.heroLogin__links{ display:none !important; }
.heroLogin__link{ display:none !important; }

/* -------------------------
   TICKER (titem 크게 + 가운데정렬 + 중간벽만)
------------------------- */
.ticker{
  position: relative;
  margin-top: 0;
  padding: 0 56px;
  height: 200px;                          /* ✅ 전체 바 높이 조금 더 */
  display:flex;
  align-items:center;
  background: rgba(0,0,0,.18);
}

.ticker__viewport{
  width: 100%;
  overflow: hidden;
}

.ticker__track{
  display:flex;
  align-items: stretch;                  /* ✅ titem 높이를 바 전체에 맞춤 */
  gap: 0;                                /* ✅ 구분선은 titem border로 처리 */
  will-change: transform;
  transition: transform 420ms ease;      /* (JS 한칸 이동용) */
}

/* ✅ titem을 "더 큰 블록"으로 */
.titem{
  position: relative;
  min-width: 220px;                      /* ✅ 더 커짐 (원하면 240~280도 가능) */
  padding: 30px 18px;                    /* ✅ 상하좌우 여백 크게 */
  display:flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;                   /* ✅ 가운데 정렬 */
  text-align: center;                    /* ✅ 가운데 정렬 */
  color: rgba(255,255,255,.92);
}

/* ✅ 카드 테두리 대신 "중간벽"만 */
.titem + .titem{
  border-left: 1px solid rgba(255,255,255,.06);  /* 아주 연한 구분선 */
}

/* 심볼 */
.titem__sym{
  font-size: 13px;                       /* ✅ 폰트 크게 */
  font-weight: 900;
  color: rgba(255,255,255,.82);
  letter-spacing: .2px;
}
.titem__sym span{
  opacity: .55;
  font-weight: 800;
}

/* 가격 */
.titem__price{
  margin-top: 8px;
  font-size: 24px;                       /* ✅ 가격 폰트 크게 */
  font-weight: 900;
  line-height: 1.1;
}
.titem__price span{
  font-size: 12px;
  opacity: .65;
  margin-left: 6px;
  font-weight: 900;
}

/* 변화량 */
.titem__delta{
  margin-top: 8px;
  font-size: 13px;                       /* ✅ 변화량 폰트 크게 */
  font-weight: 900;
  opacity: .95;
}
.titem__pct{
  opacity: .75;
  margin-left: 6px;
  font-weight: 900;
}

/* ✅ 너무 진하지 않은 컬러(요청하신 레드/블루 계열) */
.titem__price.up, .titem__delta.up{ color: rgba(216, 74, 74, .85); }
.titem__price.down, .titem__delta.down{ color: rgba(45, 108, 223, .85); }

/* 네비 버튼(원래 쓰던 값 유지 가능) */
.ticker__nav{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background-color: rgba(0,0,0,.25);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;   /* 아이콘 크기 */
  cursor: pointer;

  font-size: 0;                /* ← 텍스트 완전 숨김 */
  line-height: 0;
  color: transparent;
}

/* 왼쪽 화살표 */
.ticker__nav--left{
  left: 10px;
  background-image: url("../img/left_arrow.png");
}

/* 오른쪽 화살표 */
.ticker__nav--right{
  right: 10px;
  background-image: url("../img/right_arrow.png");
}

/* 호버 시 살짝 강조 */
.ticker__nav:hover{
  background-color: rgba(255,255,255,.08);
}


/* 반응형: 너무 작은 화면에서는 폭/패딩 살짝 줄이기 */
@media (max-width: 520px){
  .ticker{ padding: 0 44px; height: 90px; }
  .titem{ min-width: 200px; padding: 12px 14px; }
  .titem__price{ font-size: 22px; }
}


.up{ color: var(--up); }
.down{ color: var(--down); }

/* -------------------------
   NOTICE (3번: 공지사항 제거)
------------------------- */
.notice{ display:none !important; }
.notice__inner{ display:none !important; }

/* -------------------------
   QUOTES TABLE (5번: 15개 코인 전부)
------------------------- */
.quotes{
  background: #fff;
  padding: 38px 0 56px;
}
.quotes__inner{
  max-width: 980px;
  margin: 0 auto;
  padding: 0 18px;
}
.quotes__title{
  text-align:center;
  font-size: 16px;
  font-weight: 900;
  color: #2b3a42;
  margin: 0 0 16px;
}

.qtableWrap{
  border: 1px solid #eef2f5;
  border-radius: 6px;
  overflow: hidden;
  background:#fff;
}
.qtable{
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.qtable th, .qtable td{
  border-bottom: 1px solid #eef2f5;
  padding: 14px 14px;
  font-weight: 800;
}
.qtable th{
  background:#fafbfc;
  color:#7b8794;
  font-weight: 900;
  font-size: 13px;
}
.qtable td{
  font-size: 14px;     /* 본문 */
}
.qtable__coin{ width: 22%; text-align: left;}
.qtable__vol{ width: 22%; text-align:right; }
.qtable td:last-child{ text-align:right; }
.qtable td:not(.qtable__coin),
.qtable th:not(.qtable__coin){
  text-align: right;
}


.unit{ opacity:.65; font-weight: 900; }

.qcoin{
  display:flex;
  align-items:center;
  gap: 10px;
}
.qcoin__dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display:inline-block;
}

/* ✅ 15개 코인 dot 색상 */
.qcoin__dot--btc{ background:#f39c12; }
.qcoin__dot--eth{ background:#4b7bec; }
.qcoin__dot--bnb{ background:#f0b90b; }
.qcoin__dot--sol{ background:#14f195; }
.qcoin__dot--xrp{ background:#2b3a42; }
.qcoin__dot--ada{ background:#0033ad; }
.qcoin__dot--doge{ background:#c2a633; }
.qcoin__dot--ton{ background:#0098ea; }
.qcoin__dot--trx{ background:#d84a4a; }
.qcoin__dot--dot{ background:#e6007a; }
.qcoin__dot--matic{ background:#8247e5; }
.qcoin__dot--ltc{ background:#bcbcbc; }
.qcoin__dot--avax{ background:#e84142; }
.qcoin__dot--link{ background:#2a5ada; }
.qcoin__dot--shib{ background:#ff6a00; }

.qcoin__name{ font-weight: 900; }

/* -------------------------
   FOOTER
------------------------- */
.gfooter{
  background: linear-gradient(180deg, #0f1a2b 0%, #0b1424 100%);
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.85);
}
.gfooter__inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 26px 18px 18px;
}
.gfooter__top{
  display:flex;
  gap: 20px;
  align-items:flex-start;
  justify-content:space-between;
}
.gfooter__logo{ height: 34px; width:auto; display:block; opacity:.95; }
.gfooter__info{
  flex: 1;
  min-width: 0;
  text-align:center;
  font-weight: 800;
  font-size: 11px;
  color: rgba(255,255,255,.72);
}
.gfooter__row + .gfooter__row{ margin-top: 6px; }

.gfooter__apps{
  margin-top: 16px;
  display:flex;
  justify-content:center;
  gap: 10px;
}
.appBadge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 54px;
  height: 54px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
}
.appBadge img{
  width: 36px;
  height: 36px;
  object-fit: contain;
  opacity: .95;
}

.gfooter__copy{
  margin-top: 14px;
  text-align:center;
  font-size: 11px;
  font-weight: 800;
  color: rgba(255,255,255,.55);
}

/* -------------------------
   A11Y
------------------------- */
.srOnly{
  position:absolute !important;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}

/* -------------------------
   Responsive
------------------------- */
@media (max-width: 820px){
  .hero__inner{ padding-top: 78px; padding-bottom: 26px; }
  .hero__title{ font-size: 28px; }
  .heroLogin{ grid-template-columns: 1fr; }
  .heroLogin__inp + .heroLogin__inp{
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,.14);
  }
  .heroLogin__btn{ height: 40px; }
  .ticker{ padding: 0 48px; height: 84px; }
}

@media (max-width: 520px){
  .ticker__nav{ width: 36px; height: 36px; font-size: 18px; }
  .titem{ min-width: 170px; }
  .gfooter__top{ flex-direction: column; align-items:center; }
  .gfooter__info{ text-align:center; }
}
/* =========================
   HERO CTA (로그인 제거 후 버튼)
========================= */

.heroCta{
  margin-top: 34px;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.heroCta__btn{
  min-width: 190px;
  height: 52px;
  padding: 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.2px;
  text-decoration: none;
  border-radius: 999px;

  transition: 
    transform .2s ease,
    box-shadow .2s ease,
    background .2s ease,
    color .2s ease;
}

/* 메인 버튼 */
.heroCta__btn--primary{
  background: linear-gradient(90deg, #2d6cdf 0%, #13b5ff 100%);
  color: #fff;
  box-shadow: 0 10px 26px rgba(45,108,223,.35);
}

.heroCta__btn--primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(45,108,223,.45);
}

/* 서브 버튼 */
.heroCta__btn--ghost{
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.25);
}

.heroCta__btn--ghost:hover{
  background: rgba(255,255,255,.16);
  transform: translateY(-2px);
}

/* 모바일 대응 */
@media (max-width: 520px){
  .heroCta{
    gap: 14px;
  }

  .heroCta__btn{
    min-width: 100%;
    height: 50px;
    font-size: 14px;
  }
}
/* ===== Front: Top 15 ticker ===== */
.frontTicker{
  display:flex;
  gap:18px;
  justify-content:center;
  align-items:flex-end;
  padding: 14px 18px;
  overflow-x:auto;
  scrollbar-width: none;
}
.frontTicker::-webkit-scrollbar{ display:none; }

.ftItem{
  min-width: 120px;
  text-align:center;
  opacity:.95;
}
.ftPair{
  font-size: 11px;
  color: rgba(255,255,255,.75);
  margin-bottom: 6px;
}
.ftUnit, .ftUnit2{
  font-size: 10px;
  color: rgba(255,255,255,.55);
}
.ftPrice{
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
}
.ftPct{
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
}

.up{ color:#ff4b4b; }    /* 디자인이 빨강=상승이면 유지 */
.down{ color:#2e6cff; }  /* 파랑=하락 */

/* ===== Front table dots ===== */
.tSym{
  display:flex;
  align-items:center;
  gap:10px;
}
.tSym .dot{
  width:8px; height:8px;
  border-radius:50%;
  flex:0 0 auto;
  opacity:.95;
}
.unit{ font-size: 11px; opacity:.7; }

/* HOME theme harmony */
.hero__veil {
  background: var(--hero-veil);
}

/* 홈 본문 영역(테이블 감싸는 부분 등) */
.quotes,
.quotes__inner {
  color: var(--text);
}
.qtable {
  background: var(--surface);
}
.qtable th {
  color: var(--muted);
}
.qtable td {
  color: var(--text);
}

/* =========================================================
   HOME: 아래(Quotes 영역)만 테마 적용
   - 상단 HERO/티커는 영향 없음
   - html 또는 body에 data-theme="dark" / "light" 가 있다고 가정
========================================================= */

/* 1) 기본(라이트) = 빨간박스(아래)만 라이트 스타일 */
.home .quotes{
  background: #ffffff;
  color: #1f2a37;
}

.home .quotes__title{
  color: #2b3a42;
}

.home .qtableWrap{
  background: #ffffff;
  border: 1px solid #eef2f5;
}

.home .qtable{
  background: #ffffff;
}

.home .qtable th{
  background: #fafbfc;
  color: #7b8794;
  border-bottom: 1px solid #eef2f5;
}

.home .qtable td{
  color: #1f2a37;
  border-bottom: 1px solid #eef2f5;
}


/* 2) 다크모드 = 빨간박스(아래)만 다크 스타일 */
html[data-theme="dark"] .home .quotes,
body[data-theme="dark"] .home .quotes{
  background: linear-gradient(180deg, #0f1a2b 0%, #0b1424 100%);
  color: rgba(255,255,255,.92);
}

html[data-theme="dark"] .home .quotes__title,
body[data-theme="dark"] .home .quotes__title{
  color: rgba(255,255,255,.90);
}

html[data-theme="dark"] .home .qtableWrap,
body[data-theme="dark"] .home .qtableWrap{
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}

html[data-theme="dark"] .home .qtable,
body[data-theme="dark"] .home .qtable{
  background: transparent;
}

html[data-theme="dark"] .home .qtable th,
body[data-theme="dark"] .home .qtable th{
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.70);
  border-bottom: 1px solid rgba(255,255,255,.10);
}

html[data-theme="dark"] .home .qtable td,
body[data-theme="dark"] .home .qtable td{
  color: rgba(255,255,255,.88);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

/* 다크에서 unit(USDT 같은 단위) 톤 */
html[data-theme="dark"] .home .unit,
body[data-theme="dark"] .home .unit{
  opacity: .70;
}
