:root {
  --bg: #07111d;
  --header: #09131f;
  --ticker: #12253a;
  --card: #102236;
  --border: #263b50;
  --navy-deep: #0a121d;
  --navy-mid: #0f1c2c;
  --navy-soft: #142438;
  --panel: #101f30;
  --line: #24374d;
  --line-soft: #1b2c3f;
  --copper: #c17a42;
  --copper-bright: #d9944f;
  --gold: #d9ae5d;
  --text: #eef2f6;
  --muted: #8ea3b8;
  --accent: #f0a13a;
  --link: #168de2;
  --up: #8fbf8a;
  --down: #d97a6c;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--navy-deep);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--navy-deep);
  color: var(--text);
  font-family: "Inter", sans-serif;
  position: relative;
  overflow-x: hidden;
  padding-bottom: 5rem;
}

body > .uk-container {
  flex: 1;
}

/* Header */
.site-header {
  height: 74px;
  background: var(--header);
  border-bottom: 1px solid #142536;
  display: flex;
  align-items: center;
  padding: 0 38px;
}

.header-inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

footer.facts {
  flex-shrink: 0;
}

/* ---------- ambient background: chart lines + grid + coin glow ---------- */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 40%, transparent 85%);
}
.bg-glow {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(60px);
}
.bg-glow.g1 {
  width: 520px;
  height: 520px;
  top: -180px;
  right: -140px;
  background: radial-gradient(circle, rgba(217, 174, 93, 0.16), transparent 70%);
}
.bg-glow.g2 {
  width: 420px;
  height: 420px;
  bottom: 10%;
  left: -160px;
  background: radial-gradient(circle, rgba(193, 122, 66, 0.14), transparent 70%);
}
.bg-chart {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.14;
}

.page {
  position: relative;
  z-index: 1;
}

/* ---------- header ---------- */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 5vw;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 18, 29, 0.7);
  backdrop-filter: blur(6px);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo svg {
  width: 26px;
  height: 26px;
}
.logo-text {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.logo span {
  color: #143b70;
  font-size: 9px;
  font-weight: bold;
  text-align: center;
  line-height: 1.05;
}

/* ---------- HERO-trading ---------- */

.hero-trading {
  position: relative;
  /*min-height: 100vh;*/
  /*min-height: 80vh;*/
  display: flex;
  flex-direction: column;
  /*background-image: linear-gradient(180deg, rgba(6, 10, 20, 0.55) 0%, rgba(6, 10, 20, 0.15) 22%, rgba(6, 10, 20, 0.05) 45%, rgba(7, 10, 18, 0.65) 78%, rgba(6, 9, 16, 0.92) 100%), url("/images/port_night.jpg");*/
  background-size: cover;
  background-position: center 38%;
}

.lang-toggle {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  color: var(--muted);
  font-size: 0.85rem;
  background: transparent;
  cursor: pointer;
}

#editor .ql-editor {
  min-height: 300px;
  font-size: 1rem;
}

/* ---------- ticker ---------- */
.ticker-wrap {
  border-bottom: 1px solid var(--line);
  background: var(--navy-soft);
  overflow: hidden;
}
.ticker-track {
  display: flex;
  width: max-content;
  gap: 44px;
  padding: 13px 0;
  animation: scroll 32s linear infinite;
}

.ticker-wrap:hover .ticker-track {
  animation-play-state: paused;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.ticker-item {
  display: flex;
  align-items: baseline;
  gap: 9px;
  white-space: nowrap;
  padding: 0 22px;
}
.ticker-sym {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--copper-bright);
}
.ticker-price {
  font-size: 0.92rem;
}
.ticker-unit {
  color: var(--muted);
  font-size: 0.82rem;
}
.ticker-delta.up {
  color: var(--up);
  font-size: 0.85rem;
}
.ticker-delta.down {
  color: var(--down);
  font-size: 0.85rem;
}

.boardParent {
  display: flex;
  align-items: center; /* 선택 */
  border: 1px solid #cccccc;
  border-bottom: none;
}

.boardParent > div {
  display: inline-block; /* 기존 유지 */
  color: white;
}

.boardParent > div:last-child {
  margin-left: auto; /* 마지막 자식만 오른쪽 배치 */
}

/*게시판 Title div*/
.bnumber {
  display: inline-block;
  width: 3rem;
  border-right: 1px solid #cccccc;
  padding: 0.2rem 0.2rem;
  text-align: center;
  font-size: 1rem;
  color: black;
}

.btitle {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-size: 1rem;
  color: black;
}

.bview {
  display: inline-block;
  width: 3.5rem;
  font-size: 1rem;
  border-left: 1px solid #cccccc;
  padding-left: 0.2rem;
  padding-right: 0.2rem;
  text-align: center;
  color: black;
}

.boardPagination {
  font-size: 0.95rem;
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 5px;
  flex-wrap: wrap;
}

.boardPagination a {
  display: block;
  /*padding: 5px 10px;*/
  padding: 4px 8px;
  text-decoration: none;
  border: 1px solid #ccc;
  border-radius: 4px;
  color: #333;
}

.boardPagination a.active {
  background-color: #007bff;
  color: white;
  pointer-events: none;
}
.boardPagination a.disabled {
  color: #aaa;
  border-color: #eee;
  pointer-events: none;
}

/* ---------- board section ---------- */
/*main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 5vw;
}*/

main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1rem;
  border-bottom: 1px solid red;
}
.board-head {
  text-align: center;
  /*padding: 56px 0 8px;*/
  padding: 1rem 0 8px;
}
.board-head h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.6rem;
  margin: 0;
  font-weight: 700;
}
.board-actions {
  display: flex;
  justify-content: flex-end;
  padding: 26px 0 14px;
}
.board-actions a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 8px 0 64px;
}

.pagination a {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}
.pagination a.current {
  background: var(--copper-bright);
  color: #1a1206;
  border-color: var(--copper-bright);
  font-weight: 600;
}

/* ---------- section shell ---------- */

/* ---------- SECTIONS ---------- */

section {
  padding: 100px 5vw;
  /*max-width: 1180px;*/
  max-width: 100vw;
  text-align: center;
  /*margin: 0 auto;*/
  margin-bottom: 3rem;
}

.section-head {
  /*max-width: 640px;*/
  max-width: 100vw;
  margin-bottom: 56px;
}

.section-head h2 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.3;
  margin-bottom: 14px;
  color: var(--copper-bright);
}

.section-head p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

section.block {
  padding: 56px 0;
  /*border-top: 1px solid var(--line-soft);*/
}
.block-heading {
  margin-bottom: 28px;
}
.block-heading h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--copper-bright);
}
.block-heading p {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
  /*max-width: 60ch;*/
}

/* ---------- market snapshot ---------- */
.market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.market-card {
  background: var(--panel);
  padding: 22px 15px;
}
.market-card .sym {
  font-family: "Space Grotesk", sans-serif;
  color: var(--copper-bright);
  font-weight: 600;
  font-size: 0.9rem;
}
.market-card .name {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 2px;
}
.market-card .price {
  font-size: 1.3rem;
  margin-top: 14px;
  font-weight: 600;
}
.market-card .delta {
  font-size: 0.85rem;
  margin-top: 4px;
}
.market-card .delta.up {
  color: var(--up);
}
.market-card .delta.down {
  color: var(--down);
}
.market-card a {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  padding-bottom: 1px;
}
.market-card a:hover {
  color: var(--copper-bright);
  border-color: var(--copper-bright);
}

/* ---------- service cards ---------- */
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card {
  background: var(--panel);
  padding: 32px 28px;
}
.service-card .tag {
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 10px;
}
.service-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--copper-bright);
}
.service-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0 0 18px;
}
.service-card a {
  color: var(--copper-bright);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(217, 148, 79, 0.4);
  padding-bottom: 2px;
}
.service-card a:hover {
  border-color: var(--copper-bright);
}

.btnboard {
  /*background: #5cb85c;*/
  padding: 8px 12px;
  border: 1px solid #cccccc;
  border-radius: 8px;
  font-size: 1rem;
  color: white;
  cursor: pointer;
}

.bluebtn_save {
  display: inline-block;
  outline: 0;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  color: #fff;
  font-size: 14px;
  height: 38px;
  /*padding: 8px 24px;*/
  padding: 8px 30px;
  border-radius: 50px;
  background-image: linear-gradient(180deg, #7c8aff, #3c4fe0);
  box-shadow:
    0 4px 11px 0 rgb(37 44 97 / 15%),
    0 1px 3px 0 rgb(93 100 148 / 20%);
  transition: all 0.2s ease-out;
}

.bluebtn:hover {
  box-shadow:
    0 8px 22px 0 rgb(37 44 97 / 15%),
    0 4px 6px 0 rgb(93 100 148 / 20%);
}

.redbtn {
  display: inline-block;
  outline: 0;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  color: #fff;
  font-size: 14px;
  height: 38px;
  padding: 8px 24px;
  border-radius: 50px;
  background-image: linear-gradient(180deg, #ff7c7c, #e03c3c);
  box-shadow:
    0 4px 11px 0 rgb(97 37 37 / 15%),
    0 1px 3px 0 rgb(148 93 93 / 20%);
  transition: all 0.2s ease-out;
}

.redbtn:hover {
  box-shadow:
    0 8px 22px 0 rgb(97 37 37 / 15%),
    0 4px 6px 0 rgb(148 93 93 / 20%);
}

.btncomment {
  display: inline-block;
  outline: none;
  cursor: pointer;
  border: 1px solid transparent;
  text-align: left;
  vertical-align: top;
  padding: calc(0.375rem - 3px) 60px calc(0.375rem - 3px) 12px;
  background-color: rgb(15, 98, 254);
  font-size: 14px;
  letter-spacing: 0.16px;
  min-height: 32px;
  line-height: 1.29;
  color: #fff;
  font-weight: 400;
  transition:
    background 70ms cubic-bezier(0, 0, 0.38, 0.9),
    box-shadow 70ms cubic-bezier(0, 0, 0.38, 0.9),
    border-color 70ms cubic-bezier(0, 0, 0.38, 0.9),
    outline 70ms cubic-bezier(0, 0, 0.38, 0.9);
  :hover {
    background-color: #0353e9;
  }
}

@media (max-width: 720px) {
  nav {
    display: none;
  }
  .board-head h1 {
    font-size: 2rem;
  }
  table.board th:nth-child(1),
  table.board td:nth-child(1) {
    display: none;
  }
  .service-grid {
    grid-template-columns: 1fr;
  }
}

.brand-logo {
  height: 44px;
  width: auto;
  display: block;
  border-radius: 4px;
  /*border: 1px solid #d4d4d4;*/
}

.brand-logo--footer {
  height: 36px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /*padding: 26px 5vw;*/
  padding: 20px 3vw;
}

.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
  font-size: 0.92rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--paper);
  opacity: 0.85;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-links .cta-small {
  border: 1px solid var(--line);
  padding: 9px 18px;
  border-radius: 999px;
  opacity: 1;
}

.nav-links .cta-small:hover {
  border-color: var(--copper-bright);
  color: var(--copper-bright);
}

.nav-links .lang-switch {
  border: 1px solid var(--line);
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-family: "Space Grotesk", sans-serif;
  opacity: 1;
}

.nav-links .lang-switch:hover {
  border-color: var(--copper-bright);
  color: var(--copper-bright);
}

.thumb {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.thumb-container {
  display: inline-block;
  width: 120px;
  /*height: 150px;*/
  /* PDF 아이콘, 이미지 모두 통일 */
  margin: 5px;
  text-align: center;
  vertical-align: top;
  /*border: 1px solid blue;*/
}

.thumb-container img,
.thumb-container canvas,
.thumb-container div {
  width: 110px;
  height: 110px;
  border: 1px solid #ccc;
  border-radius: 6px;
  object-fit: cover;
}

.thumb-container div[title="PDF"] {
  background: url("/images/pdf-icon.png") center/60% no-repeat #f7f7f7;
}

.reply-user-icon {
  /*width: 36px;
  height: 36px;*/
  width: 2rem;
  /*min-width: 2.4rem;*/
  height: 2rem;
  border-radius: 50%;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 18px;
  font-weight: 700;
  color: white;
  background: #c2185b;
}

.reply-user-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reply-user-icon.no-image {
  background: #c73512;
}

.reply-cover {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.reply-user-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #00695c;
  color: white;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

.reply-body {
  flex: 1;
}

.reply-meta {
  font-size: 14px;
  color: #555;
  margin-bottom: 4px;
}

.reply-userid {
  font-weight: 700;
  /*color: #222;*/
  color: #cccccc;
  margin-right: 6px;
}

.reply-content {
  font-size: 15px;
  line-height: 1.45;
  /*color: #222;*/
  color: white;
}

.reply-meta {
  font-size: 14px;
  color: #555;
  margin-bottom: 4px;
}

.reply-date {
  color: #777;
}

/* facts strip */

.facts {
  background: var(--navy-soft);
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.board_facts {
  background: var(--navy-soft);
}

.board_facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.grid7525 {
  display: grid;
  grid-template-columns: 75% 25%;
  grid-template-rows: auto;
  padding: 0 10px;
}

.grid2fr {
  display: grid;
  grid-template-columns: 50% 50%;
  grid-template-rows: auto;
}

.grid37 {
  display: grid;
  grid-template-columns: 30% 70%;
  grid-template-rows: auto;
}

@media (max-width: 760px) {
  .split {
    grid-template-columns: 1fr;
  }

  .split-col:first-child {
    border-right: none;
    padding-right: 0;
  }

  .split-col:last-child {
    padding-left: 0;
  }

  section {
    /*padding: 70px 6vw;*/
    padding: 70px 0;
    /*background: var(--navy-soft);*/
  }

  .nav-links {
    gap: 16px;
  }

  .nav-links a:not(.cta-small):not(.lang-switch) {
    display: none;
  }
}

:focus-visible {
  outline: 2px solid var(--copper-bright);
  outline-offset: 3px;
}

/*.material-symbols-outlined {
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 20;
}*/

.material-symbols-outlined {
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 20;

  font-size: 1rem;
  /*margin-right: 6px;*/
  vertical-align: bottom;
  color: white;
}
