:root {
  --header-height: 50px;
  --footer-height: 50px;
  --sidebar-width: 100vw;
}

* {
  box-sizing: border-box;
  margin: 0;

  padding: 0;
  font-family: sans-serif;
}

/* === 기본 스타일 (데스크탑 우선) === */

html,
body {
  overflow: hidden;
  width: 100%;
  height: 100%;
}

body {
  min-width: 240px;
  font-size: 14px;
}

.container {
  position: relative;
  margin: 0;
  height: 100vh;
  width: 100%;
}

body.admin-bar .header {
  top: 46px;
}

/* 헤더 상단 고정 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: #222;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /*z-index: 1001;*/
}

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

.header-right {
  display: flex;
  align-items: center;
  height: 100%;
}

.home-icon {
  color: white;
  font-size: 22px;
  text-decoration: none;
}

.home-icon:hover {
  color: #ddd;
}

.site-title a,
.site-title a:visited,
.site-title a:hover,
.site-title a:active {
  color: #fff;
  text-decoration: none;
}

/********************/
/* 메뉴 sidebar 시작 */
/********************/

.main-menu-container {
  background: #222;
  padding: 10px;
  font-size: 22px;
  margin-top: 24px;
}

.main-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 16px;
}

#menu-login_menu {
  margin: 12px 0;
}

#menu-login_menu > li {
  margin: 10px 0;
}

.main-menu li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.main-menu li a:hover {}

/* 하위 메뉴 가로 배치 */
.main-menu .sub-menu {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  /* 하위 메뉴를 가로로 배치 */
}

.main-menu .sub-menu li {
  border: none;
  padding: 6px 6px;
  font-size: 20px;
}

.main-menu li,
.main-menu .sub-menu li {
  list-style-type: none;
}

/********************/
/* 메뉴 sidebar 끝 */
/********************/

/* sidebar 토글 버튼 */
.sidebar-toggle {
  display: block;
  /*z-index: 1200;*/
  border: none;
  background: #222;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

/* 사이드바 기본 상태: 왼쪽 off-screen */
.sidebar {
  display: block;
  position: fixed;
  top: 0;
  left: calc(-1 * var(--sidebar-width));
  width: var(--sidebar-width);
  height: 100%;
  background-color: #222;
  color: #fff;
  overflow-y: auto;
  transition: left 0.3s ease;
  z-index: 1100;
  padding: 20px;
  box-sizing: border-box;
}

/* sidebar 열렸을 때 */
.sidebar.open {
  left: 0;
}

/* 오버레이 */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

/* 오버레이 표시 조건 */
.sidebar.open+.overlay {
  display: block;
}

.close-button {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  float: right;
  cursor: pointer;
}

/* user 로그인 */
.login-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: white;
  font-size: 22px;
  text-decoration: none;
  margin-right: 10px;
  height: 100%;
  display: flex;
  align-items: center;
}

.login-toggle img {
  right: 1rem;
  width: 38px;
  height: 38px;
  margin-right: 6px;
  border-radius: 50%;
  object-fit: cover;
}

/* user 사이드바 */
.user-sidebar {
  position: fixed;
  top: 0;
  right: -300px;
  width: 260px;
  height: 100%;
  background-color: #222;
  color: #fff;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.3);
  z-index: 1200;
  transition: right 0.3s ease-in-out;
  padding: 20px;
}

.user-sidebar.open {
  right: 0;
}

.login-toggle .login-icon {
  border-radius: 0;
}

/*
.close-user-sidebar {
  background: none;
  border: none;
  font-size: 28px;
  float: right;
  cursor: pointer;
  color: #333;
}
*/
.menu {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  font-weight: bold;
}

/* 전체 화면 스크롤을 위한 래퍼 */
#content-wrapper {
  position: absolute;
  top: var(--header-height);
  bottom: var(--footer-height);
  left: 0;
  right: 0;
  overflow-y: auto;
}

/* 중앙 content */
#content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  background-color: #f5f5f5;
  max-width: 960px;
  min-width: 240px;
  margin: 0 auto;
  box-sizing: border-box;
}

.block {
  background-color: #fff;
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  width: 100%;
  box-sizing: border-box;
}

/* 푸터 하단 고정 */
.footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  height: var(--footer-height);
  background: #222;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  /*z-index: 1001;*/
}

/* === 작은 모바일 (≤ 479px) === */
@media screen and (max-width: 479px) {
  body {
    font-size: 13px;
    background-color: #f9f9f9;
  }
}

/* === 일반 모바일 (480px ~ 767px) === */
@media screen and (min-width: 480px) and (max-width: 767px) {
  body {
    font-size: 14px;
  }
}

@media screen and (max-width: 600px) {
  #wpadminbar {
    position: fixed;
  }
}

/* 모바일 전용 (max-width: 767px)에서만 보이게 */
@media screen and (max-width: 767px) {
  .content {
    padding: 8px;
  }

  .block {
    border-radius: 12px;
    width: 100%;
  }
}


/* === 태블릿이상  (768px ~ ) === */
@media screen and (min-width: 768px) {
  body.admin-bar .header {
    top: 32px;
    /* tablet 에서 admin-bar 기본 높이 */
  }
}

/* === 태블릿 (768px ~ 1023px) === */
@media screen and (min-width: 768px) and (max-width: 1023px) {
  body {
    font-size: 15px;
  }

}


/* === 데스크탑 (1024px ~ 1439px) === */
@media screen and (min-width: 1024px) and (max-width: 1439px) {
  body {
    font-size: 16px;
  }
}

/* === 대형 데스크탑 (1440px 이상) === */
@media screen and (min-width: 1440px) {
  body {
    font-size: 17px;
  }
}

/* BTC price & dominance live info */
#btc-dom-live {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 1.1em;
  font-weight: bold;
}

/* === Front Page === */
#btc-dom-chart {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 300px;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  overflow-x: hidden !important;
}

#btc-updated {
  font-size: 0.7em;
  color: #666;
}

/* === Coin Page === */
.coin-info {
  font-size: 13px;
  color: #666;
  margin: 16px 8px 0;
  line-height: 1.5;
}

.coin-info ul {
  margin: 0;
  padding-left: 20px;
}

.coin-info li {
  margin-bottom: 4px;
}

.onchain-label {
  color: #1b57a6;
}

.mb-30 {
  margin-bottom: 30px;
}

.price-volume-chart-container {
  position: relative;
  width: 100%;
  min-height: 320px;
  max-height: 500px;
}

#price-volume-chart {
  width: 100%;
  max-width: 100%;
  max-height: 500px;
  min-height: 300px;
  background: #fff;
  border-radius: 14px;
  position: relative;
  box-sizing: border-box;
}

#price-volume-chart-loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  font-size: 1.1em;
  z-index: 2;
  border-radius: 14px;
  color: #375;
}

.range-buttons {
  display: flex;
  gap: 10px;
  position: absolute;
  z-index: 5;
  right: 20px;
  top: 34px;
  font-size: 13px;
  user-select: none;
}

.price-info {
  position: absolute;
  right: 0;
  top: 0;
  text-align: right;
  font-weight: 600;
  z-index: 5;
  font-size: 15px;
}

#range-buttons {
  display: none;
}

.range-btn {
  padding: 2px 10px;
  border-radius: 6px;
  border: 1px solid #d5dbe6;
  background: #f3f7fa;
  color: #2d3139;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border 0.15s;
  font-weight: 500;
}

.range-btn.active {
  background: #3068e0;
  color: #fff;
  border: 1.5px solid #2358c0;
}

@media (max-width: 600px) {
  .range-buttons {
    font-size: 11px;
    top: 28px;
    right: 6vw;
    gap: 4px;
  }

  .price-volume-chart-container {
    min-height: 230px;
  }

  .price-info {
    font-size: 12px;
  }
}

.gnn-search-wrap {
  margin-bottom: 8px;
}

#gnn-address-input {
  padding: 4px 8px;
}

#gnn-search-btn {
  padding: 4px 12px;
}

#gnn-network-wrap {
  position: relative;
}

#gnn-zoom-toggle {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  padding: 4px 8px;
  font-size: 0.9em;
  border: 1px solid #2358c0;
  background: #3068e0;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
}

#gnn-graph-loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  font-size: 1.1em;
  z-index: 2;
  border-radius: 14px;
  color: #375;
}

#gnn-network {
  width: 100%;
  height: 500px;
  margin: 16px auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 0 8px #e6e8eb;
  transition: height 0.2s;
}

@media (max-width: 700px) {
  #gnn-network {
    height: 350px;
  }
}

.chart-loading {
  position: absolute;
  width: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.2em;
  color: #888;
  z-index: 10;
  background: rgba(255, 255, 255, 0.85);
  padding: 10px 20px;
  border-radius: 8px;
  text-align: center;
  display: none;
}

#echart-candle-transfer-wrap {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  min-height: 340px;
}

#echart-candle-transfer {
  width: 100%;
  min-height: 300px;
  max-height: 500px;
  position: relative;
  z-index: 0;
  background: #fff;
  border-radius: 14px;
}

.chart-control {
  text-align: right;
  margin-bottom: 8px;
}

#chart-date-input {
  font-size: 1em;
}

#chart-date-btn {
  font-size: 1em;
}

.gnn-error {
  color: red;
  padding: 20px;
}

.gnn-large-transfer-wrap {
  margin-top: 20px;
  background: transparent;
}

.gnn-large-transfer-header {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 1rem;
}

.gnn-large-transfer-token {
  color: #1b57a6;
}

.gnn-large-transfer-date {
  color: #555;
  font-weight: 400;
}

.gnn-large-transfer-network {
  width: 100%;
  min-height: 360px;
  max-height: 560px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  position: relative;
}

.gnn-large-transfer-empty,
.gnn-large-transfer-error {
  margin-top: 12px;
  padding: 18px;
  border-radius: 12px;
  background: #fff4f4;
  color: #c0392b;
  text-align: center;
  font-size: 0.95rem;
}

.gnn-large-transfer-empty {
  display: none;
  background: #f7f8fa;
  color: #666;
}

/* Transaction table styles */
#tx-table-wrap {
  overflow-x: auto;
}

#tx-table {
  width: 100%;
  min-width: 470px;
  border-collapse: collapse;
}

#tx-table thead {
  background: #f5f5f5;
}

#tx-table th,
#tx-table td {
  padding: 8px;
  border-bottom: 1px solid #eee;
  text-align: center;
  word-break: break-all;
}

#tx-table th.sortable {
  cursor: pointer;
}

#tx-table th .sort-icon {
  margin-left: 4px;
  font-size: 0.8em;
}

#tx-table td.from-to {
  text-align: center;
}

#tx-table td.from-to .gnn-icon {
  cursor: pointer;
  font-size: 0.85em;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  margin-left: 4px;
}

#tx-table td.from-to .gnn-icon:hover {
  opacity: 0.7;
}

#tx-table td.amount {
  text-align: right;
}

#tx-table a,
#tx-table a:visited,
#tx-table a:hover,
#tx-table a:active {
  color: inherit;
  text-decoration: none;
}

#tx-pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 8px;
  width: 100%;
}

#tx-page-numbers {
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 4px;
}

#tx-page-numbers > * {
  flex: 0 0 auto;
}

#tx-pagination button {
  border: none;
  background: none;
}

#tx-pagination button:hover {
  background: #e0e0e0;
}

.kboard-default-poweredby {
  display: none;
}

.symbol-post-list {
  margin-top: 40px;
}

.symbol-post-list__title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.symbol-post-list__items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tweet-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid #e1e8ed;
  border-radius: 16px;
  background-color: #fff;
  box-shadow: 0 1px 2px rgba(15, 20, 25, 0.08);
}

.tweet-card__header {
  display: flex;
  gap: 12px;
  align-items: center;
}

.tweet-card__avatar img {
  border-radius: 50%;
  width: 48px;
  height: 48px;
}

.tweet-card__meta {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 0.95rem;
  color: #536471;
}

.tweet-card__author {
  font-weight: 600;
  color: #0f1419;
}

.tweet-card__username {
  color: #536471;
}

.tweet-card__dot {
  color: #536471;
}

.tweet-card__time {
  color: #536471;
}

.tweet-card__body {
  font-size: 1rem;
  line-height: 1.5;
  color: #0f1419;
}

.tweet-card__footer {
  display: flex;
}

.tweet-card__permalink {
  color: #1d9bf0;
  font-weight: 600;
  text-decoration: none;
}

.tweet-card__permalink:hover {
  text-decoration: underline;
}
