* {
  list-style: none;
  text-decoration: none;
  border-collapse: collapse;
  margin: 0px;
  padding: 0px;
  color: black;
  font-size: 14px;
}

a {
  text-decoration: none !important;
}

a.no-bs {
  all: unset;
  color: inherit;         /* 부모의 색상 상속 */
  text-decoration: none;
  cursor: pointer;
}

.page-wrapper {
  min-height: 100vh;       /* 화면 높이 전체 */
  display: flex;
  flex-direction: column;  /* 세로 배치 */
  justify-content: flex-start;
}

#main {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2px 0;
}

.expand_bar {
  display: none;
}


/* dropdown css */

#overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  z-index: 900;           /* 딤 레이어 */
}

/* 드롭다운 박스 */
.dropdown-menu-top{
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f3f3f3;
  border-bottom: 1px solid #d8d8d8;
}

.side-auth-btn{
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  color: #222;
  font-weight: 600;
  letter-spacing: -0.2px;
  border-right: 1px solid #d8d8d8;
  box-sizing: border-box;
  padding: 8px;
  line-height: 14px;
}

.side-auth-btn span {
  font-size: 12px;
}

#headerImage {
  -webkit-tap-highlight-color: transparent;
}

.dropdown{
  display: none;
  position: absolute;           /* 현재 쓰는 위치에 맞게 */
  top: 48px; left: 12px;        /* 예시 */
  width: 220px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  z-index: 1000;
}

/* 공통 아이템 */
.dd-item{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  text-decoration: none;
  color: #111;
  font-size: 14px;
  background: transparent;
  border: 0;
  cursor: pointer;
  box-sizing: border-box;  /* padding 포함해서 100% */
  border-bottom: 1px solid #d8d8d8;
}

/* hover 느낌 */
.dd-item:hover{
  background: rgba(0,0,0,0.05);
}

/* 서브메뉴 */
.dd-sub{
  margin: 4px 0 8px;
  padding-left: 10px;
  border-left: 2px solid rgba(0,0,0,0.08);
}

.dd-sub a{
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: #222;
  font-size: 13px;
}

.dd-sub a:hover{
  background: rgba(0,0,0,0.05);
}

/* 화살표(▾) 만들어서 회전시키기 */
.dd-caret{
  width: 10px; height: 10px;
  display: inline-block;
  border-right: 2px solid rgba(0,0,0,0.55);
  border-bottom: 2px solid rgba(0,0,0,0.55);
  transform: rotate(45deg);         /* 기본은 아래 방향 */
  transition: transform .15s ease;
}

/* 열렸을 때 caret 위로(▲ 느낌) */
.dd-toggle[aria-expanded="true"] .dd-caret{
  transform: rotate(-135deg);
}

.dd-item:hover{
  background: #f3f6ff;
  color: #2b6cff;
}

.dd-sub{
  border-left: 3px solid #2b6cff;
}

.dd-item.active{
  background: #edf2ff;
  color: #2b6cff;
  font-weight: 600;
}

/* dropdown css */


.userdropdown {
  display: none;
  position: absolute;
  background-color: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  z-index: 1000;
  width: 180px;
  padding: 6px;
  border: 1px solid rgba(0,0,0,0.06);
}

.userdropdown a {
  display: block;
  padding: 10px 12px;
  text-decoration: none;
  color: #222;
  font-size: 14px;
  border-radius: 8px;
  text-align: left;
  transition: all .15s ease;
}

/* hover */
.userdropdown a:hover {
  background: #f3f6ff;
  color: #2b6cff;
}

/* 위험 메뉴 강조 (차단 같은거) */
.userdropdown a:last-child {
  color: #e53935;
}

.userdropdown a:last-child:hover {
  background: #ffecec;
  color: #e53935;
}


.userbutton {
  cursor: pointer;
  display: flex;
  align-items: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}

.userdropdown-mobile {
  display: none;
  position: absolute;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1; /* 드롭다운이 가장 위에 나타나도록 설정 */
  width: 200px;
}

.send_message, .block_user, .send_bit {
  cursor: pointer;
}

.main_left {
  display: flex;
  align-items: center;
  gap: 4px;
}
.main_right{
  display: flex;
  gap:4px
}

.alerts{
  background:#ffebee; 
  color:#c62828;
  border:1px solid #ffcdd2;
  font-size: 12px;       
  border-radius: 10px; 
  display: inline-block;
  padding: 0px 4px;
}

.main_left_title {
  text-decoration: none;
  font-size: 45px;
  font-weight: bolder;
  letter-spacing: 3px;
  font-family: Arial, Helvetica, sans-serif;
}
.main_left_title a {
  text-decoration: none;
}
.main_left_title_gal {
  text-decoration: none !important;
  font-size: 45px;
  font-weight: bolder;
  letter-spacing: 3px;
  font-family: Arial, Helvetica, sans-serif;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.intro {
  width: 1050px;
  margin: auto;
  margin-top: 0;
}

.header_ad {
  float: right;
  width: 500px;
  height: 50px;
  border: 1px solid #ddd;
}

.pagination-search {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  flex-wrap: wrap;
  height: 40px;
  
}

.pagination-search a {
  display: inline-block;
  padding: 5px 6px;
  text-decoration: none;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.pagination-search strong {
  display: inline-block;
  padding: 6px 10px;
  background-color: #007bff;
  color: white;
  border-radius: 4px;
  font-weight: bold;
  border: 1px solid #007bff;
}

/* 검색결과 리스트 */
ul.search-results {
  list-style: none;
  padding-left: 0;
}

ul.search-results li {
  padding: 8px 8px;
  border-bottom: 1px solid #eee;
  font-size: 15px;
}

.chip_basic {
  margin-right: 4px;
  line-height: 1;
  background: #e4e4e4;
  font-weight: 500;
}

.chip_blue {
  margin-right: 4px;
  line-height: 1;
  font-weight: 500;
  background:#f5f8ff;
  color: #2a5bd7;
}

.chip_red {
  margin-right: 4px;
  line-height: 1;
  font-weight: 500;
  background:#fff4f4;
  color:#c62828;
}

/* 게시판 이름 태그 스타일 */
.tag {
  display: inline-block;
  background-color: #f2f4f6;
  color: #333;
  font-weight: bold;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 12px;
  margin-right: 8px;
  border: 1px solid #999;
  line-height: 1;
}

.tag_gallery {
  display: inline-block;
  background-color: #f2f4f6;
  color: #333;
  font-weight: bold;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 12px;
  margin-right: 8px;
  border: 1px solid #999;
  line-height: 1;
}

.tag-active {
  display: inline-block;
  border: 1px solid #3d76cc;
  color: #3d76cc;
  font-weight: bold;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 12px;
  margin-right: 8px;
}

/* 제목 링크 */
.search-link {
  color: #222;
  font-weight: 500;
  text-decoration: none;
  max-width: 85%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-link-content {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1;
}

.searchbox form input {
  border: 1px solid gray;
  width: 250px;
  height: 40px;
  color: black;
  padding-left: 10px;
  border-radius: 5px;
}
.searchbox form span {
  width: 40px;
  color: black;
  font-weight: bold;
  cursor: pointer;
}

.header {
  background: white;
  margin-bottom: 10px;
}

.header_up {
  justify-content: end;
  display: flex;
  height: 20px;
  margin-top: 10px;
  border-bottom: 1px solid #ddd;
  padding: 5px;
  align-items: center;
}

.header_up li {
  float: right;
}
.nav-mobile {
  display: none;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  width: auto;
  list-style: none;
  margin: 0;
  padding: 0 16px;
  background-color: #5985dd;
  column-gap: 32px;
  row-gap: 0;
}

.nav li {
  text-align: center;
  height: 40px;
  line-height: 40px;
  position: relative;
}

.nav a {
  width: 100%;
  height: 40px;
  display: block;
  line-height: 40px;
  font-weight: 500;
  font-size: 14px;
  transition: background-color 0.5s ease;
}

.nav li a {
  display: block;
  text-decoration: none;
  color: #fff;
}

.level-badge {
  display: inline-block;
  background-color: #e8e8e8;
  color: #000;
  padding: 1px 3px;
  border-radius: 4px;
  font-size: 8px;
  font-weight: bold;
  margin-left: 2px;
  margin-right: 2px;
  line-height: 13px;
  border: 1px solid #9e9e9e;
  margin-top: 1px;
}

/* 레벨별 배경색 */
.level-0-20  { color: #000000; } 
.level-21-40 { color: #0109ff; background: #DDE1FF;}  
.level-41-60 { color: #0109ff; background: #FFF0D6}  
.level-61-80 { color: #ee1e07; background: #FFF0D6;}  
.level-81-99 { color: #ee1e07; background: #FFD966; font-size: 12px; } 

/*price board*/
.price_board {
  width: 100%;
  margin-bottom: 6px;
}

.price_board_tap {
  display: flex;
  margin-right: 20px;
}

.price_board_tap_head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

a.active {
  height: 100%;
  color: #fff;
  background: #3457B2;
}

#openModal {
  border: none;
  cursor: pointer;
  background-color: transparent;
  margin-right: 8px;
  height: 22px;
  font-size: 15px;
}

.price_board_tap li {
  width: 50px;
  height: 22px;
  border-right: 1px solid #ddd;
  border-top: 1px solid #ddd;
  margin-right: 1px;
  cursor: pointer;
  text-align: center;
}

.price_board_tap a {
  display: block;
  text-decoration: none;
}

/* 테이블 스타일 */
.custom-table {
  width: 100%;
  border-collapse: collapse;
}

.custom-table,
.custom-table th,
.custom-table td {
  border-bottom: 1px solid #e7e7e7;
  height: 32px;
  line-height: 32px;
}

.coinTable th,
.coinTable td {
  font-size: 14px;
  vertical-align: middle;
}
.custom-table_th1,
.custom-table_td1 {
  width: 15%;
  text-align: center;
}
.custom-table_th2,
.custom-table_td2 {
  width: 22%;
  text-align: center;
}
.custom-table_th3,
.custom-table_td3 {
  width: 15%;
  text-align: center;
}
.custom-table_th4,
.custom-table_td4 {
  width: 28%;
  text-align: center;
}
.custom-table_th5,
.custom-table_td5 {
  width: 20%;
  text-align: center;
}

.custom-table th {
  background-color: #e9efff;
}

/*price_board 끝*/

.main {
  height: auto;
}

.sub1 {
  border-bottom: 1px solid #ddd;
}

.filter {
  display: flex;
}

.write-btn svg{
  position: relative;
  top: 1px;   /* 1~2px 사이로 조절 */
  margin-right: 2px;
}

.filter_left {
  margin-left: 1px;
  cursor: pointer;
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5px;
  border-radius: 8px;
}

.filter_left:hover {
    background-color: #f3f4f6;
}

.filter_left:active {
    transform: translateY(2px);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}


.filter_left a {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

.filter_middle {
  width: 100%;
  height: 90px;
  border: 1px solid #ddd;
  margin-left: auto;
  margin-bottom: 5px;
  display: none;
}

.filter_right {
  width: 200px;
  height: 55px;
  justify-content: flex-end;
}

.filter_right button {
  margin-left: 30px;
}

.sub2 {
  height: auto;
  display: flex;
  margin-top: 5px;
  min-height: 520px;
}

.sub2_left {
  background: white;
  text-align: center;
  line-height: 30px;
  margin-right: 10px;
  display: none;
}

.sub2_left_list {
  width: 160px;
  height: 250px;
  border: 1px solid #ddd;
  margin-bottom: 10px;
}

.sub2_left h3 {
  border-bottom: 1px solid #ddd;
}

.sub2_left ul li {
  color: gray;
}

.sub2_left_ad {
  width: 160px;
  height: 600px;
  border: 1px solid #ddd;
}

.coin-event-wrapper {
  max-width:1100px;
  margin-bottom:10px;
  padding: 0 8px;
}

.sub2_right {
  height: auto;
  margin: auto;
  margin-top: 0px;
  min-height: 520px;
}

.sub2_right_detail {
  width: 100%;
  height: auto;
  margin: auto;
  margin-top: 0px;
}

.card_area {
  margin-bottom: 10px;
}

tr.pinned {
    background-color: #F9F9F9; /* 아주 연한 노랑 */
}

.pin-badge {
  position: relative;
  background: #F2F3F5;     /* 연한 회색 */
  color: #555;
  font-size: 8px;
  font-weight: 600;
  padding: 2px 4px;
  border-radius: 4px;
  flex-shrink: 0;
}

.pin-badge::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 3px;
  border: 1px solid #D1D5DB; /* 회색 안쪽 테두리 */
  pointer-events: none;
}

.notice-badge {
  position: relative;
  background: #EAF7EF;
  color: #1F8A4C;
  font-size: 8px;
  font-weight: 600;
  padding: 2px 4px;
  border-radius: 4px;
  flex-shrink: 0;
}

.notice-badge::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 3px;
  border: 1px solid #9ED9B5;
  pointer-events: none;
}

.ad-badge {
  position: relative;
  background: #F3ECFF;
  color: #6B3FB8;
  font-size: 8px;
  font-weight: 600;
  padding: 2px 4px;
  border-radius: 4px;
  flex-shrink: 0;
}

.ad-badge::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 3px;
  border: 1px solid #C9B6F2;
  pointer-events: none;
}





/* 여기부터 free_board.html */
.free_board {
  height: 80px;
  table-layout: fixed;
}

.free_board_head_pc {
  table-layout: fixed;
}
.free_board_body_pc {
  table-layout: fixed;
}
.free_board_head_mobile {
  display: none;
}
.free_board_body_mobile {
  display: none;
  
}

.free_board_head span {
  display: block;
  background: #e9efff;
  text-align: left;
  line-height: 35px;
  padding-left: 5px;
  height: 35px;
  text-align: center;
}

.free_board_head_pc span {
  display: block;
  background: #e9efff;
  text-align: left;
  line-height: 35px;
  padding-left: 5px;
  height: 35px;
  text-align: center;
}

.free_board_head_mobile span {
  display: block;
  background: #e9efff;
  text-align: left;
  line-height: 32px;
  padding-left: 5px;
  height: 32px;
  text-align: center;
}

.free_board_th1 {
  width: 12%;
}
.free_board_th2 {
  width: 66%;
}
.free_board_th3 {
  width: 14%;
}
.free_board_th4 {
  width: 10%;
}
.free_board_th5 {
  width: 10%;
}
.free_board_th6 {
  width: 10%;
}

.free_board_body span {
  display: block;
  text-align: left;
  height: 25px;
  line-height: 25px;
  padding-left: 1px;
  font-weight: lighter;
  text-align: center;
}

.free_board_body span a {
  display: block; /* 또는 inline-block */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.free_board_title_subject.read {
  color: #99209B;
}

.free_board_td1,
.free_board_td2,
.free_board_td3,
.free_board_td4,
.free_board_td5,
.free_board_td6 {
  height: 56px;
  border-bottom: 0.2mm solid #ddd;
  text-align: center;
  padding: 4px 0px 4px 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.free_board_td1_pinned,
.free_board_td2_pinned,
.free_board_td3_pinned,
.free_board_td4_pinned,
.free_board_td5_pinned,
.free_board_td6_pinned {
  height: 30px;
  border-bottom: 0.2mm solid #ddd;
  padding: 4px 0px 4px 4px;
  text-align: center;
}

.free_board_td1_pinned {
  display: flex;
  align-items: center;
  justify-content: center;
}

.free_board_image {
  display: flex;
  margin-right: 12px;
}

.free_board_title {
  text-decoration: none !important;
  width: 100%;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;  /* ✅ 이거 추가! */
  text-align: start;
  display: flex;
  align-items: center;
}

.free_board_title_subject {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-break: break-word;
    font-size: 15px;   
    line-height: 17px;
}

.free_board_title_subject_news {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-break: break-word;
    font-size: 15px;
    line-height: 17px;   
}

.gal_board_th1 {
  width: 8%;
}
.gal_board_th2 {
  width: 10%;
}
.gal_board_th3 {
  width: 42%;
}
.gal_board_th4 {
  width: 10%;
}
.gal_board_th5 {
  width: 10%;
}
.gal_board_th6 {
  width: 10%;
}
.gal_board_th7 {
  width: 10%;
}

.gal_board_body {
  table-layout: fixed;
}

.gal_board_body span {
  display: block;
  text-align: left;
  height: 25px;
  line-height: 25px;
  padding-left: 5px;
  font-weight: lighter;
  text-align: center;
}

.gal_board_td1,
.gal_board_td2,
.gal_board_td3,
.gal_board_td4,
.gal_board_td5,
.gal_board_td6 {
  height: 100px;
  border-bottom: 0.1mm solid #ddd;
  font-weight: bolder;
}

.gal_board_td2 {
  display: flex;
  align-items: center;
}

#subject_img {
  color: red;
  font-size: 11px;
}

.free_board_td2 span {
  float: left;
  display: block; /* 또는 inline-block */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.free_board_td2_answer {
  color: blue;
}

/* 여기까지 free_board.html */

/* 여기부터 free_board_detail.html */

.free_board_detail_author_pc{
  display: block;
}
.free_board_detail_author_mobile{
  display: none;
}

.title_area {
  max-width: 100%;
  width: auto;
  height: auto;
  word-wrap: break-word;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  font-size: 24px;
  font-weight: bold;
  padding: 8px 0;
  background: #f5f5f5;
}

.subtitle_area {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.subtitle_area:not(border-top) {
  border-bottom: 1px solid #ddd;
}
.subtitle_left {
  display: flex;
}

.subtitle_right {
  height: 40px;
  display: flex;
  line-height: 40px;
}

.subtitle_right_sub1 {
  height: 40px;
}

.subtitle_right_sub2 {
  width: 40px;
  height: 40px;
  text-align: left;
  margin-left: 10px;
}

.subtitle_right_sub3 {
  width: 40px;
  height: 40px;
  text-align: right;
}

.content_content h2,
.content_content h3 {
  font-size: inherit;
  font-weight: 400;
  line-height: 1.7;
  margin: 0 0 8px;
  color: inherit;
  font-size: 15px;
}

.content_content {
  max-width: 100%;
  width: auto;
  min-height: 200px;
  height: auto;
  word-wrap: break-word;
  margin-top: 20px;
  overflow-x: hidden;
}

.content_content p {
  font-size: 15px;
  line-height: 1.7;
}

/* 원문 전체 감싸는 영역 */
.news-original-wrap {
  margin-top: 20px;
  padding: 12px 14px;
  border-radius: 6px;
  background: #fafbff;      /* 아주 연한 남색톤 배경 */
  border: 1px solid #e1e6f5;
}

/* 버튼 스타일 */
.news-original-wrap .toggle-original {
  display: inline-block;
  padding: 6px 12px;
  font-size: 13px;
  color: #4a64b1;
  background: #ffffff;
  border: 1px solid #c9d4f0;
  border-radius: 4px;
  cursor: pointer;
}

/* 접힌 원문 박스 */
.news-original-wrap .original-text {
  margin-top: 10px;
  padding: 10px 12px;
  background: #ffffff;
  border-radius: 4px;
  border: 1px solid #e5e5e5;
  font-size: 13px;
  color: #555;
  line-height: 1.6;
}

/* 원문 링크 */
.news-original-wrap .news-original-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  color: #5985dd;
  word-break: break-all;
}

.btn-vote svg {
  vertical-align: text-top;
}
.report-btn svg {
  vertical-align: middle;
}

.has_video svg {
  vertical-align: middle;
}

.content_edit_delete {
  display: flex;
  text-align: center;
  margin-bottom: 30px;
  justify-content: center;
  margin-top: 30px;
}

.report-btn, .btn-vote, .share-btn {
  width: 60px;
  height: 30px;
  margin-left: 10px;
  border: 1px solid gray;
  text-align: center;
  line-height: 30px;
  border-radius: 5px;
  background: none;
  cursor: pointer;
}

.content_edit,
.content_delete,
.content_recommend,
.back_to_board {
  width: 60px;
  height: 28px;
  margin-left: 10px;
  border: 1px solid gray;
  text-align: center;
  line-height: 30px;
  border-radius: 5px;
}

.content_edit a,
.content_delete a,
.content_recommend a,
.back_to_board a {
  width: 60px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.content_prev_next{
  display:flex; gap:8px; justify-content:space-between; margin:14px 0 6px;
}
.pn-btn{
  display:inline-block; padding:10px 20px; border:1px solid #e5e7eb;
  border-radius:6px; background:#f9fafb; color:#5985dd; text-decoration:none; font-weight: 600;font-size: 15px;
}
.pn-btn:hover{ background:#f3f4f6; }
.pn-btn.disabled{ color:#9ca3af; border-color:#e5e7eb; background:#f9fafb; cursor:not-allowed; }

.pn-btn:hover {
    background-color: #f3f4f6;
}

.pn-btn:active {
    transform: translateY(2px);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

#comment-form {
  position: relative;
}

.comment_btn {
  width: 100px;
  height: 50px;
}

.comment_head {
  max-width: 100%;
  width: auto;
  height: auto;
  word-wrap: break-word;
  border-bottom: 1px solid #ddd;
}

/* 댓글 스타일 */
.comment_body {
  margin-bottom: 10px;
  border-bottom: 1px solid #ddd;
  padding: 10px;
}

.reply_comment_body {
  margin-bottom: 10px;
}

.reply-item {
  border-bottom: none;
}

.comment_body_all {
  display: flex;
  padding: 10px;
}

.comment_left {
  width: 60px;
  height: 60px;
  border: 1px solid #ddd;
}

.comment_left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
     overflow: hidden;
}

.comment_right {
  width: min-content;
  margin-left: 10px;
  flex-grow: 1;
}

.comment_right_up {
  display: flex;
  margin-bottom: 8px;
  justify-content: space-between;
  border-bottom: 1px solid #e4e4e4;
}

.comment_user {
  margin-right: 10px;
}

.comment_date {
  color: #888;
  font-size:11px;
}

.comment_content {
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 10;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  word-break: break-word;   
}

.comment_function {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 5px;
  padding-right: 5px;
}

.comment_actions{
  width: 100%;
  display: flex;
  justify-content: flex-end;   /* 오른쪽 정렬 */
  align-items: center;
  gap: 5px;
  padding-right: 5px;
  padding-bottom: 5px;
}

.comment-create-box {
    border: 1px solid #cfcfcf;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
}

.guest-comment-fields {
    display: flex;
    border-bottom: 1px solid #dcdcdc;
}

.guest-comment-fields input {
    width: 100%;
    height: 44px;
    border: 0;
    outline: none;
    padding: 0 14px;
    font-size: 15px;
    color: #555;
    box-sizing: border-box;
    border-radius: 0;
    background: #fff;
}

/* .guest-comment-fields input:first-child {
    border-right: 1px solid #dcdcdc;
} */

.comment-area-bg {
    background: #f3f3f3;   /* 👉 디시 느낌 핵심 */
    padding: 12px;
}

.comment-textarea-wrap textarea {
    width: 100%;
    height: 120px;              
    border: 0;
    outline: none;
    resize: none;              
    background: #fff !important;
    padding: 14px;              
    font-size: 14px;            
    line-height: 1.6;           
    
    box-sizing: border-box;
    display: block;
    color: #333;
}

.comment-textarea-wrap textarea::placeholder,
.guest-comment-fields input::placeholder {
    color: #9a9a9a;
}

.comment-create-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #dcdcdc;
    padding: 8px;
    gap: 12px;
}

.comment-file-wrap input[type="file"] {
    font-size: 14px;
    color: #666;
}

.comment-file-wrap {
  width: 60%;
}

.comment-submit-btn {
    min-width: 72px;
    height: 36px;
    border: 0;
    background: #2f3f9f;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 0;
}

.replies {
  margin-left: 10px;
}

/* 답글 폼 스타일 */
#replyForm textarea {
  width: 100%;
  margin-bottom: 10px;
}

#content_reg {
  width: 100%;
}

/* 댓글에 댓글 버튼 스타일 */
.btn-secondary {
  background-color: transparent;
  border: 1px solid #ddd;
  padding: 8px;
  cursor: pointer;
}

.comment_sub {
  display: flex;
}
/* 수정, 삭제 링크 스타일 */
.comment_sub a {
  border: 0;
  background: #f3f3f3;
  padding : 7px 10px;
  border-radius: 10px;
  cursor: pointer;
  margin-right: 5px;
  width: 21px;
  font-size: 11px;
  text-align: center;
}

.comment_sub a:hover {
  text-decoration: underline;
}

.comment_create textarea {
  width: 100%;
  height: 100px;
  resize: none;
  font-family: "Arial", sans-serif; /* 적용할 폰트 설정 */
}

.comment_page {
  width: 300px;
  height: 80px;
  background: gray;
  display: flex;
}

/* 여기까지 free_board_detail.html */

/* 여기부터 post_create.html */

.post_create {
  margin-top: 10px;
  width: 100%;
  padding: 10px;
}
.imgs_left {
  font-weight: bold;
  margin-right: 10px;
}
.imgs_add {
  display: flex;
}

.post_create_title,
.post_create_content_title {
  font-size: 20px;
}

.post_create_content {
  width: 100%;
}

.post_create_title_content textarea {
  width: 100%;
  height: 30px;
  font-size: 20px;
  resize: none;
}

.post_create_content textarea {
  width: 900px;
  height: 300px;
  font-size: 18px;
  resize: none;
}

.content_right {
  width: 900px;
  height: 350px;
}

.submit input {
  width: 120px;
  height: 40px;
  cursor: pointer;
}

/* 여기까지 post_create.html */

/* comment_create.html */
.comment_create {
  width: 100%;
  height: auto;
  margin-top: 10px;
  margin-bottom: 20px;
}

.comment_create_title {
  font-size: 20px;
  padding-left: 5px;
}

.comment_create_title_content textarea {
  width: 100%;
  height: 100px;
  font-size: 20px;
  resize: none;
  margin-top: 10px;
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
}

.v-badge-icon{
  width:14px;
  height:12px;
  vertical-align:-2px;
}
.v-badge-icon circle{ fill:#1DA1F2; }
.v-badge-icon path{ stroke:#fff; }


/* 작성자, 날짜 */
.search-meta {
  color: #777;
  font-size: 12px;
  margin-top: 8px;
  display: flex;
  align-items: center;
  line-height: 1;
}

.search_filter {
  height: 100%;
  border-color: #ddd;
}

.search_filter_bar_left {
  display: flex; 
  gap: 8px;
  align-items: center;
  margin-bottom: 4px;
  margin-left: 4px;
  margin-right: 4px;
  width: 100%;
}

.search_keyword {
  width: 100%;
}

.search_filter,
.search_keyword,
button[type="submit"].search_btn,
button[type="button"].search_btn {
  height: 36px;
  padding: 0 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  margin-top: 0;
}

button[type="submit"].search_btn,
button[type="button"].search_btn {
  -webkit-appearance: none; /* iOS 기본 버튼 스타일 제거 */
  appearance: none;
  background: #f0f0f0;         
  color: inherit;          
  font: inherit;            
  cursor: pointer;
}

.search_filter_bar {
  height: 40px;
  display: flex;
  justify-content: center;
}

.search_filter_bar ul {
  display: flex;
  height: 38px;
  line-height: 40px;
  margin-left: 4px;
  border: 1px solid #ddd;
}

.search_filter_bar li {
  width: 38px;
  height: 38px;
  text-align: center;
}

.search_filter_bar li a {
  width: 40px;
  height: 38px;
  display: block;
}

.bottom {
  width: 100%;
  background-color: #f0f0f0;
  padding: 20px 0px;
  text-align: center;
  font-size: 14px;
  color: #666;
}

.bottom_top {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer_section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer_brand {
  font-weight: bold;
  font-size: 13px;
  color: #666;
}

.footer_contact {
  font-size: 13px;
  color: #666;
  margin-bottom: 4px;
}

.footer_links {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  line-height: 1;
}

.footer_links a {
  color: #666;
  text-decoration: none;
}

.footer_links a:hover {
  text-decoration: underline;
}

.bottom_text {
  margin: 0 5px;
  color: #666;
}

.copyright {
  margin-top: 12px;
  font-size: 12px;
  color: #999;
}
.login form {
  max-width: 350px;
  margin: 0 auto;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 20px;
  margin-top: 100px;
}

.signup form {
  width: 350px;
  margin: 0 auto;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 20px;
  margin-top: 50px;
  margin-bottom: 50px;
  background: #efefef;
}

label {
  display: block;
  margin-bottom: 10px;
}

input[type="text"],
input[type="password"] {
  width: 95%;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 8px;
  margin-bottom: 10px;
}

button[type="submit"] {
  background-color: #5985dd;
    /* Green */
    padding: 0px 24px;
    border: none;
    color: white;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 15px;
    line-height: 40px;
    margin-top: 10px;
    cursor: pointer;
    border-radius: 5px;
}

#btn-send-otp, #btn-verify-otp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 4px;
  border-radius: 4px;
  background: #007bff;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  font-weight: 600;
  line-height: 1;
  font-size: 12px;
  margin-bottom: 10px;
  cursor: pointer;
}

input[type="submit"],
input[type="signup"] {
  background-color: black;
  width: 100%;
  /* Green */
  border: none;
  color: white;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 15px;
  cursor: pointer;
  border-radius: 5px;
  height: 35px;
  line-height: 35px;
  margin-top: 10px;
}

.find_username_btn {
  padding: 0px;
}

input[type="submit"]:hover {
  background-color: rgb(55, 55, 55);
}

.error {
  color: red;
  margin-top: 10px;
  font-weight: bolder;
}

.login-btn {
  background-color: #f44336;
}

.signup-btn {
  background-color: #008cba;
}

.link {
  width: 100%;
  height: 35px;
  background-color: #008cba;
  /* Green */
  border: none;
  color: white;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 15px;
  line-height: 35px;
  margin-top: 10px;
  border-radius: 5px;
}

.link:hover {
  background-color: #3399cc;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
}

.modal.show {
  display: flex;
}

.ct-modal-content {
  background: white;
  width: 80%;
  max-width: 420px;
  border-radius: 12px;
  padding: 16px;
}

.modal-header {
  text-align: center;
}

.custom-close {
  display: flex;
  justify-content: flex-end;
  cursor: pointer;
  gap: 8px;
}

.modalButton {
  background: none;
  border: 1px solid #ddd;
  padding: 4px;
  border-radius: 4px;
  cursor: pointer;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: black;
}

.find {
  display: inline-block;
  margin-top: 5px;
  cursor: pointer;
}

/* crypto_table을 회색 배경으로 변경 */
.loading {
  background-color: rgba(245, 245, 245, 0.85); /* 회색 반투명 */
  pointer-events: none; /* 클릭 방지 */
}

/* 로딩 아이콘 스타일 */
.loader {
  border: 4px solid #f3f3f3; /* Light gray */
  border-top: 4px solid #3498db; /* Blue */
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1000;
  transform: translate(-50%, -50%);
}

.error-message{
  color: red;
  margin-bottom: 10px;
}

.pagination {
  display: flex;
  justify-content: end;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  flex-wrap: wrap;
}

.pagination a {
  display: inline-block;
  padding: 5px 6px;
  text-decoration: none;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: all 0.2s ease;
  color:#666;
}

.pagination strong {
  display: inline-block;
  padding: 6px 10px;
  background-color: #007bff;
  color: white;
  border-radius: 4px;
  font-weight: bold;
  border: 1px solid #007bff;
}

.terms-container,
.private-container {
  width: 80%;
  margin: 20px auto;
  padding: 0px 24px;
  background-color: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  font-size: 15px;
  color: #333;
  line-height: 1.7;
}

.terms-container h1,
.private-container h1 {
  font-size: 24px;
  margin-bottom: 16px;
  border-bottom: 2px solid #555;
  padding-bottom: 8px;
}

.terms-container h2,
.private-container h2 {
  font-size: 17px;
  margin-top: 24px;
  margin-bottom: 8px;
  font-weight: 600;
  color: #111;
}

.terms-container ul,
.private-container ul {
  padding-left: 20px;
}

.terms-container ul li,
.private-container ul li {
  margin-bottom: 8px;
}

/* 첫 번째 컬러 팔레트(Background Color) 숨기기 */
.note-editor .note-color .note-dropdown-menu .note-palette:last-child {
    display: none !important;
}

.note-editor .note-color .dropdown-menu.note-dropdown-menu {
  min-width: 0 !important;
  width: fit-content !important;
}

.note-group-image-url,
.note-image-url,
.note-image-url-label,
.fonote-form-label,
.note-image-dialog .form-group:has(.note-image-url) {
  display: none !important;
}

.note-editor,
.note-editable {
  position: relative;
  overflow: visible;
}

.note-popover {
  max-width: 100%;
  box-sizing: border-box;
  left: 0 !important;
  right: 0 !important;
  transform: translateX(0);
}

.note-popover .popover-content {
  display: flex;
  flex-wrap: wrap;
  max-width: 100%;
}

.create_poll {
  margin-top: 12px;
  width: 50%;
  margin-bottom: 12px;
}

#toast-box {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  pointer-events: none;  /* 클릭 방해 안 하게 */
}

#toast-box .toast {
  display: inline-block;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Django message.tags 가 error 인 경우 색만 바꿔주기 */
#toast-box .toast.error {
  background: #e74c3c;
}

/* 서서히 사라지게 */
#toast-box.hide {
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* ===========================
   공통 래퍼 (.embed-video)
   - 글작성, 상세페이지 모두 공통
   =========================== */
.embed-video {
  position: relative;
  width: 100%;          /* 필요하면 100%로 바꿔도 됨 */
  max-width: 720px;    /* 상세페이지 기준 최대 가로 */
  height: 0;           /* padding-bottom 으로 비율 만드는 패턴 */
  overflow: hidden;
}

/* 안의 iframe 공통 */
.embed-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===========================
   롱폼 / 숏폼 비율
   =========================== */

/* 이거는 상세페이지에서 long폼 비율 */
.embed-video.long {
  padding-bottom: 56.25%;   /* 9/16 * 100 = 56.25% */
}

/* 이거는 상세페이지에서 shot폼 비율*/
.embed-video.short {
  padding-bottom: 60%;  /* 16/9 * 100 ≒ 177.78% */
  max-width: 400px;        
}

/* ===========================
   글작성 화면에서만 살짝 다르게
   (.note-editable 안에 있을 때)
   =========================== */

/* 에디터 안에서는 썸네일 느낌으로 조금 작게 */
.note-editable .embed-video.long {
  max-width: 720px;
}

/* 에디터 안 숏폼은 너무 길면 글자쓸 때 답답하니까 줄여서 미리보기 */
.note-editable .embed-video.short {
  max-width: 400px;
  padding-bottom: 80%;   /* 상세페이지 보다 짧게 */
}


/* 여기서 부터는 cointok report 전용 css임 앞에 ct붙여서 다른 css랑 겹치지 않게 분리*/

/* =================== Daily Cointok Report (ct-namespace) ================== */
.ct-report-wrap{
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 14px 60px;
}

.ct-report-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 920px){
  .ct-report-grid{
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .ct-card-wide{
    grid-column: 1 / -1;
  }
}

.ct-report-wrap .ct-card{
  background: #f4f4f4;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 4px 4px rgba(0,0,0,0.25);
}

.ct-report-wrap .ct-card-hero{
  background: radial-gradient(1200px 500px at 20% -20%, rgba(102,153,255,0.20), transparent 60%),
              radial-gradient(800px 500px at 120% 0%, rgba(255,208,0,0.12), transparent 55%),
              #f4f4f4;
}

.ct-card-head{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.ct-card-head h2{
  font-size: 15px;
  margin: 0;
  letter-spacing: -0.2px;
}

.ct-subttl{
  font-size: 13px;
  margin: 0 0 8px;
}

.ct-badge,
.ct-chip{
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  white-space: nowrap;
}

.ct-chip-ok{ background: rgba(30,200,120,0.12); border-color: rgba(30,200,120,0.25); }
.ct-chip-warn{ background: rgba(255,170,0,0.14); border-color: rgba(255,170,0,0.25); }

.ct-hero-row{
  display: flex;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 12px;
}

.ct-hero-coin{
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.5);
}

.ct-coin-name{
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}

.ct-coin-rate{
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.ct-coin-rate .ct-rate{
  font-size: 22px;
  font-weight: 900;
}

.ct-coin-rate .ct-sub{
  font-size: 12px;
}

.ct-pill-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ct-pill{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.10);
  font-size: 12px;
}

.ct-pill-accent{
  background: rgba(102,153,255,0.14);
  border-color: rgba(102,153,255,0.25);
}

.ct-divider{
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 12px 0;
}

.ct-table{
  width: 100%;
  display: grid;
  gap: 6px;
}

.ct-tr{
  display: grid;
  grid-template-columns: 110px 110px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.7);
  font-size: 13px;
}

.ct-tr.ct-th{
  background: rgba(255,255,255,0.6);
  border-color: rgba(255,255,255,0.10);
  font-size: 12px;
  color: rgba(255,255,255,0.70);
}

.ct-card-wide .ct-tr{
  grid-template-columns: 80px 1fr 120px 120px;
}

.top3-card-wrapper {
  display: flex; 
  width: 100%; 
  gap: 4px;
}

/* 글쓰기 내 포트폴리오 첨부 css*/
.ct-pt-card{
  border:1px solid #e9ecef;
  border-radius:12px;
  padding:12px;
  margin:10px 0;
  background:#fafbff;
}

.ct-pt-title{
  font-weight:800;
  font-size:14px;
  margin-bottom:10px;
}

.ct-pt-metrics{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:10px;
}

.ct-pt-metric{
  flex:1;
  min-width:150px;
  border:1px solid #e9ecef;
  background:#fff;
  border-radius:10px;
  padding:10px;
}

.ct-pt-label{
  font-size:12px;
  color:#666;
}

.ct-pt-value{
  font-size:16px;
  font-weight:900;
  margin-top:2px;
}

.ct-pt-subtitle{
  font-weight:800;
  margin:6px 0 8px;
}

.ct-pt-table-wrap{
  overflow:auto;
  border:1px solid #e9ecef;
  border-radius:10px;
  background:#fff;
}

.ct-pt-table{
  width:100%;
  border-collapse:collapse;
  font-size:13px;
}

.ct-pt-th-row{
  background:#f8f9fa;
}

.ct-pt-th,
.ct-pt-td{
  padding:8px 10px;
}

.ct-pt-td{
  border-top:1px solid #eee;
}

.ct-pt-left{ text-align:left; color:#666; }
.ct-pt-right{ text-align:right; }

.ct-pt-coin{
  font-weight:700;
  color:#111;
}

.ct-pt-empty{
  color:#777;
  text-align:center;
}

.ct-pt-footnote{
  margin-top:8px;
  font-size:11px;
  color:#999;
}

/* Summernote 안에서 카드가 너무 눌리면 */
.note-editable .ct-pt-card{
  max-width: 100%;
}

/* 글쓰기 내 포트폴리오 첨부 css*/

.upbit-card, .bithumb-card, .binance-card {
  margin:1px 0;
  width: auto;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px;
  flex: 1;
}

.upbit-top3-wrapper,.bithumb-top3-wrapper, .binance-top3-wrapper {
  background:#fff;
  border-radius:10px;
  width: 100%;
}


.upbit-top3-header-left, .bithumb-top3-header-left, .binance-top3-header-left{
  padding: 1px;
  font-weight: 600;
  color: #111;
  margin-bottom: 2px;
  font-size: 10px;
}

.upbit-top3-header-body{
  display: flex;
  align-items: center;
  justify-content: space-between;
}


.top3-coin{
  font-size: 8px;
}

.top3-value{
  font-size:10px;
  border-radius:999px;
  white-space:nowrap;
  max-width: 50px;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1;
  margin-bottom: 4px;
  padding: 1px 1px;
}

.top3-value.pos{
  color:#0a7a3d;
  font-weight: bold;
}

.top3-value.neg{
  color:#c0392b;
  font-weight: bold;
}

@media (max-width: 720px){
  .ct-card-wide .ct-tr{
    grid-template-columns: 60px 1fr;
  }
  .ct-card-wide .ct-tr > :nth-child(3),
  .ct-card-wide .ct-tr > :nth-child(4),
  .ct-card-wide .ct-tr > :nth-child(5){
    display: none;
  }
}

.ct-right{ text-align: right; }
.ct-strong{ font-weight: 800; word-wrap: break-word; }
.ct-mono{
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.ct-report-tag{
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background:rgba(30,200,120,0.12);
  background-color:rgba(30,200,120,0.25);
  font-size: 12px;
  border: 1px solid #ddd;
}

.ct-ellipsis{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-kimp-box{
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
}

.ct-kimp-badge{
  font-weight: 900;
  font-size: 14px;
  margin-bottom: 10px;
}

.ct-kimp-metrics{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ct-metric{
  padding: 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.7);
}

.ct-metric .ct-label{
  font-size: 12px;
  margin-bottom: 6px;
}

.ct-metric .ct-value{
  font-size: 16px;
  font-weight: 900;
}

.ct-rank-list{
  display: grid;
  gap: 8px;
}

.ct-rank-item{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.7);
}

.ct-rank-left{
  display: flex;
  align-items: center;
  gap: 10px;
}

.ct-rank-no{
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(102,153,255,0.18);
  border: 1px solid rgba(102,153,255,0.28);
  font-weight: 900;
  font-size: 12px;
}

.ct-rank-coin{ font-weight: 900; }

.ct-news-list{
  margin: 0;
  display: grid;
  gap: 8px;
}

.ct-news-item{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.7);
}

.ct-news-link{
  color: rgba(255,255,255,0.92);
  text-decoration: none;
}
.ct-news-link:hover{ text-decoration: underline; }

.ct-news-title{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ct-news-id{
  flex-shrink: 0;
}

.btn{border:0;background:#f3f3f3;padding:7px 10px;border-radius:10px;cursor:pointer;display: inline-flex;gap: 2px;font-size: 11px; align-items: center;}


/* 여기까지는 cointok report 전용 css임 앞에 ct붙여서 다른 css랑 겹치지 않게 분리*/


/* static/papertrade/papertrade.css */
/* ===== Modal Overlay ===== */
.bit-transfer-wrap {
  display: flex;
  gap: 4px;
  flex-direction: column;
}

.bit-btn {
  width: 80px;
  padding: 2px 0;
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
  border: 1px solid #ccc;
}

/* 입금 */
.bit-btn.deposit {
  background: #e8f1ff;
  color: #1e5eff;
}

.bit-btn.deposit:hover {
  background: #d6e6ff;
}

/* 출금 */
.bit-btn.withdraw {
  background: #fff0f0;
  color: #e63737;
}

.bit-btn.withdraw:hover {
  background: #ffdcdc;
}

.pt-modal-balance{
  margin-top: 12px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  padding: 10px 12px;
  border-radius: 12px;
}

.pt-balance-row{
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 6px 0;
}

.pt-balance-label{
  color: #374151;
  font-weight: 700;
}

.pt-balance-value{
  color: #111827;
  font-weight: 900;
}


.pt-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 9999;
}

.pt-modal-overlay.pt-open {
  display: flex;
}

/* ===== Modal ===== */
.pt-modal {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  overflow: hidden;
}

/* ===== Header ===== */
.pt-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
}

.pt-modal-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.pt-modal-close {
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}

/* ===== Body ===== */
.pt-modal-body {
  padding: 16px;
}

.pt-modal-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pt-modal-label {
  font-size: 13px;
  font-weight: 700;
  color: #222;
}

.pt-modal-input {
  width: 93%;
  height: 44px;
  border-radius: 12px;
  border: 1px solid #ddd;
  padding: 0 12px;
  font-size: 14px;
}

.pt-modal-hint {
  margin-top: 10px;
  font-size: 12px;
  color: #666;
}

/* ===== Messages ===== */
.pt-modal-error {
  margin-top: 12px;
  background: #fff3f3;
  border: 1px solid #ffd0d0;
  color: #c62828;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
}

.pt-modal-success {
  margin-top: 12px;
  background: #f2fff6;
  border: 1px solid #bfeccc;
  color: #1b7a39;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
}

/* ===== Footer ===== */
.pt-modal-footer {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid #eee;
}

.pt-modal-btn {
  flex: 1;
  height: 44px;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  border: none;
}

.pt-modal-btn.pt-ghost {
  background: #f3f4f6;
  color: #111;
}

.pt-modal-btn.pt-primary {
  background: #1e5eff;
  color: #fff;
}

.pt-modal-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/*ㅡㅡㅡㅡㅡㅡㅡㅡㅡ입출금 버튼ㅡㅡㅡㅡㅡㅡㅡㅡㅡ css*/

.pt-market-head{
  display:grid;
  grid-template-columns:1.5fr 1fr 0.9fr 1fr;
  gap:8px;
  align-items:center;
  padding:8px 12px;
  border:1px solid #ddd;
  border-bottom:none;
  border-radius:8px 8px 0 0;
  background:#fafafa;
}

.pt-market-head-btn{
  border:none;
  background:transparent;
  padding:0;
  font-size:12px;
  color:#666;
  cursor:pointer;
  text-align:right;
  font-weight:600;
}

.pt-market-head-btn:first-child{
  text-align:left;
}

.pt-market-head-btn.active{
  color:#111;
  font-weight:700;
}

.pt-market-list{
  margin-top:0;
  max-height:300px;
  overflow-y:auto;
  border:1px solid #ddd;
  border-top:none;
  border-radius:0 0 8px 8px;
  background:#fff;
  margin-bottom:8px;
}

.pt-market-row{
  display:grid;
  grid-template-columns:1.5fr 1fr 0.9fr 1fr;
  gap:8px;
  align-items:center;
  padding:10px 12px;
  border-bottom:1px solid #f3f3f3;
  cursor:pointer;
}

.pt-market-row:last-child{
  border-bottom:none;
}

.pt-market-row:hover{
  background:#f8faff;
}

.pt-market-row.active{
  background:#edf3ff;
}

.pt-market-name{
  min-width:0;
}

.pt-market-name-ko{
  font-size:13px;
  font-weight:700;
  color:#111;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.pt-market-name-en{
  margin-top:2px;
  font-size:11px;
  color:#777;
}

.pt-market-price,
.pt-market-change{
  text-align:right;
  font-size:12px;
  font-weight:600;
  white-space:nowrap;
}

.pt-market-empty{
  padding:20px 12px;
  text-align:center;
  color:#777;
  font-size:13px;
}

.pt-market-search-select {
  display: flex;
  gap: 12px;
}

.pt-market-search-select input[type="text"] {
  width: 100%;
  border-radius: 5px;
  padding: 0 12px;
  margin: 10px 0;
}

.pt-market-search,
.pt-market-select {
  height: 40px;              /* ✅ 기준 높이 */
  line-height: 40px;         /* ✅ 세로 중앙 정렬 */
  box-sizing: border-box;
  padding: 0 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  background: #fff;
  min-width: 300px;
}


.pt-cancel-btn {
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
}

.pt-cancel-btn:hover {
  background: #f5f5f5;
  border-color: #bbb;
}

.pt-open-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pt-wrap{
  max-width: 1300px;
  margin: 18px auto;
  padding: 0 12px;
  font-family: inherit;
}

.pt-top{
  display:grid;
  grid-template-columns: 1fr;
  gap:12px;
}

.pt-mid{
  display:grid;
  grid-template-columns: 2fr 1fr;
  gap:12px;
  margin-bottom:12px;
}

.pt-bottom{
  display:block;
  margin-bottom: 12px;
}

.pt-card{
  border:1px solid #dcdcdc;
  padding:14px;
  min-height:78px;
  margin-bottom: 12px;
}

.pt-card-title{
  font-weight:800;
  font-size:18px;
  margin-bottom:8px;
}

.pt-card-body{
  color:#222;
}

.pt-chart{
  border:1px solid #dcdcdc;
  padding:12px;
}

.pt-chart-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:10px;
  gap:12px;
}

.pt-market{
  display:flex;
  align-items:center;
  gap:10px;
}

.pt-market-badge{
  font-weight:800;
  padding:4px 10px;
  border:1px solid #333;
  border-radius:14px;
  font-size:13px;
}

.pt-price{
  font-weight:900;
  font-size:22px;
}

.pt-change{
  font-weight:700;
  font-size:13px;
  opacity:0.85;
}

.pt-timeframe{
  display:flex;
  gap:6px;
}
.pt-tf{
  border:1px solid #ccc;
  background:#fff;
  padding:6px 10px;
  cursor:pointer;
  border-radius:8px;
  font-weight:700;
  font-size:12px;
}
.pt-tf.active{
  border-color:#1b5cff;
  color:#1b5cff;
}

.pt-chart-canvas{
  height:520px;
}

.pt-order{
  border:1px solid #dcdcdc;
  background:#fff;
  padding:12px;
}

.pt-order-tabs, .pt-order-types{
  display:flex;
  gap:8px;
  margin-bottom:12px;
}

.pt-tab, .pt-type{
  flex:1;
  border:1px solid #ccc;
  background:#fff;
  padding:10px 0;
  font-weight:900;
  cursor:pointer;
  border-radius:10px;
}

.pt-tab.active{
  border-color:#d62f2f;
  color:#d62f2f;
}
.pt-type.active{
  border-color:#1b5cff;
  color:#1b5cff;
}

.pt-order-row{
  display:flex;
  justify-content:space-between;
  gap:10px;
  margin:10px 0;
}
.pt-order-row label{
  font-weight:800;
  font-size:13px;
  width:110px;
}
.pt-order-row input{
  flex:1;
  border:1px solid #ccc;
  padding:10px;
  border-radius:10px;
}

#ptPctRow {
  display: flex;
  justify-content: end;
  gap: 10px;
  margin: 10px 0;
}

.pt-pct-buttons{
  display:flex;
  gap:4px;
  justify-content: end;
}
.pt-pct{
  border:1px solid #d9d9d9;
  background:#fff;
  padding:8px 8px;
  border-radius:10px;
  font-weight:600;
  cursor:pointer;
}
.pt-pct:hover{ background:#f6f6f6; }
.pt-pct.active{
  border-color:#1b5cff;
  color:#1b5cff;
}
.pt-pct.pt-pct-clear{
  opacity:0.8;
}

/* 테이블이 모달 폭을 넘으면 가로 스크롤 */
.pt-table-scroll{
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch; /* 모바일 부드러운 스크롤 */
  border-radius: 10px;
  border:1px solid #eee
}

/* 테이블이 줄바꿈 되지 않게 해서 가로로 자연스럽게 넘치게 */
.pt-table{
  width: 100%;
  min-width: 520px;   /* 필요 시 600~700으로 조절 */
  border-collapse: collapse;
}

.pt-table th,
.pt-table td{
  white-space: nowrap; /* 줄바꿈 금지 */
}

.pt-order-btn{
  width:100%;
  border:0;
  background:#1b5cff;
  color:white;
  padding:12px;
  font-weight:900;
  border-radius:12px;
  cursor:pointer;
  margin-top:6px;
}

.pt-order-btn:hover {
    background-color: #3094ff;
}

.pt-order-btn:active {
    transform: translateY(2px);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.pt-order-hint{
  margin-top:10px;
  font-size:12px;
  min-height:16px;
}

.pt-open-orders{
  margin-top:14px;
  border-top:1px solid #eee;
  padding-top:12px;
}
.pt-subtitle{
  font-weight:900;
  margin-bottom:8px;
}
.pt-open-list{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.pt-open-item{
  border:1px solid #eee;
  padding:10px;
  border-radius:10px;
}
.pt-open-line.small, .small{
  font-size:12px;
  opacity:0.85;
}

.pt-muted{
  color:#777;
  font-size:13px;
}

.pt-portfolio{
  min-height:120px;
}
.pt-port-cash{
  margin-bottom:10px;
}
.pt-pos-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.pt-pos-item{
  display:flex;
  justify-content:space-between;
  gap:12px;
  border:1px solid #dcdcdc;
  border-radius:12px;
  padding:12px;
}
.pt-pos-right{
  text-align:right;
  min-width:220px;
}

/* ===== 테이블 ===== */
.pt-history-table {
  width: 100%;
  min-width: 780px; /* 컬럼 많아서 모바일에서 가로 스크롤 생기게 */
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}

.pt-history-table thead th {
  position: sticky; /* 스크롤 시 헤더 고정 (wrap 안에서) */
  top: 0;
  background: #f8fafc;
  z-index: 1;

  text-align: left;
  font-weight: 800;
  color: #111;
  padding: 12px 12px;
  border-bottom: 1px solid #eef1f4;
  white-space: nowrap;
}

.pt-history-table tbody td {
  padding: 12px 12px;
  border-bottom: 1px solid #f1f3f5;
  white-space: nowrap;
  vertical-align: middle;
}

.pt-history-table tbody tr:hover {
  background: #fbfcfe;
}

.modal-overlay{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.4);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:9999;
}

.modal-overlay{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.4);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:9999;
}

.modal-box{
    background:white;
    width:320px;
    border-radius:8px;
    padding:15px;
}

.modal-header{
    display:flex;
    justify-content:space-between;
    margin-bottom:10px;
}

.modal-close{
    cursor:pointer;
}

.modal-footer{
    margin-top:15px;
    display:flex;
    gap:10px;
}

.adsense_pc {
  display: flex; justify-content: center; align-items: center;
}

.adsense_mb {
  display: none;
}
/* tr은 display flex있으면 colspan 을 1로만 인식해서 display none block으로만 구분*/
/* table-row로 해야 text-align이 먹음 display block을 사용하면 colspan 1로 인식*/
.adsense_pc_tr {
  display: table-row; text-align: center;
}

.adsense_mb_tr {
  display: none;
}

.international-image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 16px 0;
}

.international-image-item {
    width: 100%;
    display: block;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #fff;
}

#fileInput {
  display: none; /* 기본 input 숨김 */
}

.file-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.file-btn {
  padding: 6px 10px;
  background: #eee;
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 0;
}

.file-name {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1000px){
  .pt-top{ grid-template-columns: 1fr; }
  .pt-mid{ grid-template-columns: 1fr; }
  .pt-chart-canvas{ height:420px; }
}

/* papertrade 투자 css 끝 */

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media screen and (max-width: 700px) {
  .adsense_pc {
    display: none;
  }

  .adsense_mb {
    display: flex; justify-content: center; align-items: center;
  }

  .adsense_pc_tr {
    display: none;
  }

  .adsense_mb_tr {
    display: table-row; text-align: center;
  }

  /* Styles for screens smaller than 600px (mobile devices) */
  .intro {
    width: 100%;
    margin-left: 0;
  }

  .expand_bar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .expand_bar_img {
    cursor: pointer;
    margin-left: 2px;
  }
  /* Update styles for the header and navigation */
  .header {
    width: 100%;
  }
  .header_up {
    justify-content: space-between;
  }
  .header_ad {
    display: none;
  }

  .price_board_tap {
    width: 83%;
  }

  .exchange_board{
    display: none;
  }

  .level-badge {
    font-size: 8px;
    line-height: 10px;
    margin-top: 0;
  }

  #main {
    height: auto;
    margin: 2px 0;
    padding: 0 4px
  }

  .main_left_title {
    font-size: 30px; /* Reduce the font size of the logo for mobile */
  }
  .main_left_title_gal {
    font-size: 30px; /* Reduce the font size of the logo for mobile */
  }

  .nav-mobile {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    width: 100%;
    background-color: #5985dd;
    margin-bottom: 5px;
  }
  .nav-mobile li {
    flex: 1;
    text-align: center;
    height: 28px;
    line-height: 28px;
    position: relative;
  }
  .phond_ad {
    display: block;
  }
  .nav-mobile a {
    width: 100%;
    height: 28px;
    display: block;
    line-height: 28px;
    font-weight: bold;
    transition: background-color 0.5s ease;
  }

  .nav-mobile li a {
    display: block;
    text-decoration: none;
    color: #fff;
    font-size: 13px;
  }
  .nav {
    display: none;
  }
  .sub2_left {
    display: none; /* Hide the main navigation menu on mobile */
  }
  .filter {
    display: flex;
    flex-direction: column;
    align-content: center;
    flex-wrap: wrap;
  }
  .filter_middle {
    width: 95%;
    height: 60px;
  }
  .sub2 {
    width: 100%;
  }
  .sub2_right {
    width: 100%;
  }
  .sub2_right_detail {
    width: 90%;
  }
  .footer_section {
    gap: 6px;
  }
  .login form {
    margin-top: 60px;
  }
  .signup form {
    margin-top: 20px;
    margin-bottom: 50px
  }
  .comment_create form {
    width: 100%;
  }
  .comment_create_title_content {
    display: flex;
    justify-content: center; /* 수평 가운데 정렬 */
  }
  .comment_create textarea {
    width: 100%;
  }
  .comment_content {
    width: 100%;
  }
  .free_board_th2 {
    width: 100%;
  }
  .free_board_th3 {
    width: 20%;
  }

  .free_board_th4,
  .free_board_td4,
  .free_board_th5,
  .free_board_td5,
  .free_board_th6,
  .free_board_td6 {
    display: none;
  }

  .red {
    font-size: 30px;
    color: red;
  }

  .blue {
    font-size: 30px;
    color: blue;
  }
  .subtitle_right_sub1 {
    width: 6%;
    height: 40px;
  }

  .subtitle_right_sub2 {
    width: 16%;
    height: 40px;
    text-align: left;
  }

  .subtitle_right_sub3 {
    width: 18%;
    height: 40px;
  }
  .subtitle_right {
    width: 75%;
    height: 40px;
    display: flex;
    justify-content: flex-end;
  }
  
  .search_filter_bar {
    display: flex;
    padding-left: 5px;
    padding-right: 5px;
    margin-bottom: 20px;
  }

  .coinTable th,
  .coinTable td {
    font-size: 14px;
  }
  .custom-table_th1,
  .custom-table_td1 {
    width: 12%;
  }
  .custom-table_th2,
  .custom-table_td2 {
    width: 22%;
  }
  .custom-table_th3,
  .custom-table_td3 {
    width: 14%;
  }
  .custom-table_th4,
  .custom-table_td4 {
    width: 28%;
  }
  .custom-table_th5,
  .custom-table_td5 {
    display: none;
  }

  .gal_img {
    width: 100%;
  }
  .gal_board_th6,
  .gal_board_th7,
  .gal_board_td5,
  .gal_board_td6 {
    display: none;
  }
  .gal_board_th2 {
    width: 15%;
  }

    .pagination {
  display: flex;
  justify-content: end;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  flex-wrap: wrap;
}

.pagination a {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  text-decoration: none;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: all 0.2s ease;
  line-height: 1;
}

.pagination strong {
  display: inline-block;
  padding: 5px 10px;
  background-color: #007bff;
  color: white;
  border-radius: 4px;
  font-weight: bold;
  border: 1px solid #007bff;
  line-height: 1;
}
.search-link {
    max-width: 74%;
}

.free_board_head_pc {
  display: none;
}
.free_board_body_pc {
  display: none;
}

.free_board_head_mobile {
  table-layout: fixed;
  display: contents;
}
.free_board_body_mobile {
  table-layout: fixed;
  display: contents;
}
.free_board_detail_author_pc{
  display: none;
}
.free_board_detail_author_mobile{
  display: block;
}
.create_poll {
  width: 90%;
}

.ad-badge, .pin-badge, .notice-badge{
  margin-right: 4px;
}

.filter_left{
  margin-right: 8px;
  background: #fff;
  border: 2px solid #5985dd;
}

.upbit-card, .bithumb-card, .binance-card {
    flex: none;
    padding: 4px;
    min-height: 66px;
    min-width: 90px;
  }

  .top3-card-wrapper {
    width: 100%; 
    justify-content: center;
  }

  .upbit-top3-header-right, .bithumb-top3-header-right, .binance-top3-header-right{
    display:block;
  }

  .coin-event-wrapper {
    max-width:1100px;
    margin-bottom:10px;
    padding: 0 12px;
  }

  /* 이거는 상세페이지에서 shot폼 비율*/
  .embed-video.short {
    padding-bottom: 120%;  /* 16/9 * 100 ≒ 177.78% */
    max-width: 400px;        
  }

  /*아래는 paper trade용 css*/
  /* 전체 여백 조금 줄이기 */
  .pt-wrap{
    width: 90%;
    padding: 0;
  }

  /* 카드/박스 패딩 축소 */
  .pt-card,
  .pt-chart,
  .pt-order{
    padding: 12px;
  }

  /* 상단 3패널 글씨/높이 축소 */
  .pt-card-title{
    font-size: 16px;
    margin-bottom: 6px;
  }
  .pt-card{
    min-height: auto;
  }

  /* ===== 차트 헤더: 줄바꿈 허용 + 정렬 수정 ===== */
  .pt-chart-header{
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  /* 뱃지/가격/등락은 한 줄로 최대한 유지 */
  .pt-market{
    width: 100%;
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;               /* 좁으면 줄바꿈 */
    line-height: 1;
  }

  .pt-market-badge{
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
  }

  .pt-price{
    font-size: 20px;
  }
  .pt-change{
    font-size: 12px;
  }

  /* 타임프레임 버튼: 여러 줄로 흐르게 */
  .pt-timeframe{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .pt-tf{
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 12px;
    flex: 0 0 auto;
  }

  /* ===== 검색 input + select: 세로 스택 ===== */
  .pt-market-search-select{
    flex-direction: column;
    gap: 0px;
  }

  .pt-market-search-select input[type="text"] {
    width: 100%;

  }

  .pt-wrap .pt-market-search-select input.pt-market-search,
  .pt-market-select{
    width: 100%;
    min-width: 0;                 /* 기존 min-width 220px 무력화 */
    height: 44px;                 /* 터치 편하게 */
    line-height: 44px;
    font-size: 14px;
  }

  /* ===== 차트 높이 ===== */
  .pt-chart-canvas{
    height: 360px;                /* 모바일에서 너무 길면 스크롤 지옥 */
  }

  /* ===== 주문 영역 ===== */
  .pt-order-tabs{
    gap: 8px;
  }
  .pt-tab{
    padding: 12px 0;
    border-radius: 12px;
  }

  .pt-order-row{
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .pt-order-row label{
    width: auto;
    font-size: 12px;
    margin-bottom: 0;
  }
  

  .pt-order-btn{
    padding: 14px;
    border-radius: 14px;
  }

  /* ===== 포트폴리오 카드(포지션) ===== */
  .pt-pos-item{
    flex-direction: column;        /* 좌/우 -> 위/아래 */
    align-items: stretch;
    gap: 8px;
  }
  .pt-pos-right{
    text-align: left;              /* 모바일은 왼쪽이 더 보기 편함 */
    min-width: 0;                  /* 기존 220px 때문에 밀리는거 방지 */
  }

  /* 작은 글씨 가독성 */
  .pt-open-line.small, .small{
    font-size: 12px;
    margin-top: 4px;
  }

  .dominance_exchange_board {
    width: 100%;
  }

  .international-image-grid {
    grid-template-columns: 1fr;
  }

}
