/* 전역 리셋과의 충돌 방지 */
.header * { box-sizing: border-box; }
.header { width: 100%; height: 68px; background: #120E07; border-bottom: 1px solid #282828; position: fixed; top: 0; left: 0; z-index: 1000; }
.header_inner { max-width: 1440px; margin: 0 auto; height: 100%; display: flex; align-items: center; }

@media (max-width: 1440px) {
  .header_inner { width: 93.75%;}
}


.header_logo { width: 103px; height: 68px; display: flex; align-items: center; justify-content: flex-start; border-right: 1px solid #282828; margin-right: clamp(24px, 5vw, 48px); }
.header_logo_link { width: 32px; height: 32px; display: block; }
.header_nav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 24px); flex: 1; }
.header_nav_item { padding: 8px; color: #DAD3BF; font-size: 16px; font-family: 'Google Sans Flex', sans-serif; font-weight: 400; line-height: 1.5; text-decoration: none; transition: opacity 0.3s; white-space: nowrap; }
.header_nav_item:hover { border-radius: 6px;
    background: rgba(255, 255, 255, 0.10); 
transition: 0.3s ease;}
.header_nav_dropdown { position: relative; }
.header_nav_dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 8px;
  background: transparent;
  pointer-events: auto;
  z-index: 99;
}
/* .header_nav_dropdown_products::after {
  width: 900px;
  max-width: 90vw;
} */
.header_nav_submenu { 
  position: absolute;
  top: calc(200% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #120E07;
  border: 1px solid #282828;
  border-radius: 8px;
  display: none;
  flex-direction: column;
  gap: 0;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  padding: 16px 8px;
  min-width: 120px;
}
.header_nav_dropdown.active .header_nav_submenu { display: flex; }

/* Products Modal */
.header_products_modal {
  position: absolute;
  top: calc(200% + 8px);
  left: 0;
  width: 900px;
  max-width: 90vw;
  background: #120E07;
  border: 1px solid #282828;
  border-radius: 12px;
  display: none;
  z-index: 1000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  padding: 32px;
  box-sizing: border-box;
}
.header_nav_dropdown_products.active .header_products_modal { display: block; }
.header_products_content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.header_products_top {
  width: 100%;
  display: flex;
  gap: 32px;
  align-items: flex-start;
}
.header_products_top_left {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.header_products_top_right {
  width: 296px;
  height: 126px;
  flex: 1;
  display: flex;
  justify-content: flex-end;
}
.header_products_section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.header_products_section_title {
  color: #DAD3BF;
  font-size: 14px;
  font-family: 'Google Sans Flex', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.header_products_list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.header_product_item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}
.header_product_item:hover {
  background: rgba(255, 255, 255, 0.05);
}
.header_product_item.active {
  background: rgba(218, 211, 191, 0.1);
}
.header_product_icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(218, 211, 191, 0.1);
  border-radius: 6px;
  color: #DAD3BF;
  font-size: 18px;
  font-family: 'Google Sans Flex', sans-serif;
  font-weight: 500;
}
.header_product_info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.header02 .header_product_name {
  color: var(--Color-Sub-Black, #000);
  font-feature-settings: 'liga' off, 'clig' off;
  font-family: "Google Sans Flex";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}
.header_product_desc {
  color: var(--Color-Gray-100, #E2E6EA);
  font-feature-settings: 'liga' off, 'clig' off;
  font-family: "Google Sans Flex";
  font-size: 12px;
  font-style: normal;
  font-weight: 300;
  line-height: normal;
}
.header_products_bottom {
  width: 100%;
  display: flex;
  gap: 32px;
}
.header_products_bottom_left {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.header_products_bottom_right {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.header_products_video_wrapper {
  width: 100%;
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  flex-shrink: 0;
}
.header_products_video {
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
}

@media (max-width: 1024px) {
  .header_products_modal {
    width: 700px;
  }
  .header_products_top {
    flex-direction: column;
    gap: 24px;
  }
  .header_products_video_wrapper {
    height: 180px;
  }
  .header_products_bottom {
    flex-direction: column;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .header_products_modal {
    width: calc(100vw - 32px);
    left: 0;
    transform: none;
    padding: 24px;
  }
  .header_products_top {
    gap: 20px;
  }
  .header_products_video_wrapper {
    height: 160px;
  }
  .header_products_bottom {
    gap: 20px;
  }
}
.header_nav_submenu_item { padding: 12px 16px; color: #DAD3BF; font-size: 16px; font-family: 'Google Sans Flex', sans-serif; font-weight: 400; line-height: 1.5; text-decoration: none; transition: background 0.3s; border-radius: 6px; white-space: nowrap; }
.header_nav_submenu_item:hover { 
  border-radius: 4px !important;
background: rgba(255, 255, 255, 0.10); }
.header_nav_submenu_item:first-child { border-radius: 6px 6px 0 0; }
.header_nav_submenu_item:last-child { border-radius: 0 0 6px 6px; }
.header_actions { display: flex; align-items: center; gap: clamp(8px, 1.6vw, 16px); }

/* Dark Mode Button */
.header_darkmode_btn { 
  width: 40px; 
  height: 40px; 
  background: transparent; 
  border: none; 
  border-radius: 6px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  cursor: pointer; 
  transition: background 0.3s; 
}

.header_darkmode_icon { 
  width: 16px; 
  height: 16px; 
  transition: opacity 0.3s; 
}

.header_lang_dropdown { position: relative; border-radius: 8px 8px 0 0;    border: 1px solid #120e07;}
.header_lang_trigger { 
    display: flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.3s;
    min-width: 100px;
    justify-content: center;
    border: 1px solid #120e07;
 }

 .header_lang_dropdown.active .header_lang_trigger{border: 1px solid #282828;}


.header02 .header_lang_trigger{ border: 1px solid #fff;}
.header02 .header_lang_dropdown.active .header_lang_trigger{border: 1px solid #282828;}

/* .header_lang_trigger:hover { background: rgba(255, 255, 255, 0.05); } */
.header_lang_icon { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; }
.header_lang_text {margin-right: 4px; color: #DAD3BF; font-size: 16px; font-family: 'Google Sans Flex', sans-serif; font-weight: 400; line-height: 1.5; }
.header_lang_arrow { width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; transition: transform 0.3s; }
.header_lang_dropdown.active .header_lang_arrow { transform: rotate(180deg);}
.header_lang_menu { width: 100%; position: absolute; top: calc(85%); right: 0; background: #120e07; border: 1px solid #282828; border-radius: 0 0 8px 8px; display: none; flex-direction: column; gap: 4px; z-index: 100;
padding: 4px 6px; border-top: none; box-sizing: border-box;
}
/* .header_lang_dropdown.active{  border: 1px solid #282828;} */
.header_lang_dropdown.active .header_lang_menu { display: flex; min-width: 0;}
.header_lang_option { justify-content: center; width: 100%; padding: 0 16px; background: transparent; border: none; display: flex; align-items: center; gap: 12px; cursor: pointer; border-radius: 8px; transition: background 0.3s; text-align: left; 
}
.header_lang_option:hover{ background: rgba(255, 255, 255, 0.1); border-radius: 4px;}
.header_lang_option.selected { background: rgba(255, 255, 255, 0.1); border-radius: 4px;}
.header_lang_option_icon { width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; }
.header_lang_option_text { color: #DAD3BF; font-size: 16px; font-family: 'Google Sans Flex', sans-serif; font-weight: 400; }
.header_menu_btn { width: 24px; height: 24px; background: none; border: none; cursor: pointer; display: none; padding: 0; }
.header_auth_buttons { display: flex; align-items: center; gap: 8px; }
.header_btn { height: 40px; padding: 10px 12px; border-radius: 8px; font-size: 16px; font-family: 'Google Sans Flex', sans-serif; font-weight: 400; line-height: 1.5; cursor: pointer; transition: all 0.3s; border: none; white-space: nowrap; display: flex; align-items: center; justify-content: center; }
.header_btn_primary { background: #DAD3BF; color: black; }
.header_btn_primary:hover { background: #fff; }
.header_btn_secondary { background: transparent; color: #DAD3BF; border: 1px solid #DAD3BF; }
.header_btn_secondary:hover { background: rgba(218, 211, 191, 0.1); }
.header_wallet_wrapper { position: relative; }
.header_wallet { height: 43px; padding: 8px 16px; border-radius: 6px; border: 1px solid #282828; display: none; align-items: center; gap: 8px; cursor: pointer; }
.header_wallet_avatar { width: 27px; height: 27px; background: #B0E6FF; border-radius: 50%; flex-shrink: 0; }
.header_wallet_address { color: white; font-size: 16px; font-family: 'Google Sans Flex', sans-serif; font-weight: 400; line-height: 1.5; }
.header_wallet_kyc { padding: 0 8px; border-radius: 100px; border: 1px solid #1ADD8F !important; color: #1ADD8F !important; font-size: 12px; font-family: 'Google Sans Flex', sans-serif; font-weight: 400; line-height: 1.5; display: none; white-space: nowrap; }
.header_wallet_kyc_non { padding: 0 8px; border-radius: 100px; border: 1px solid #FF2D55 !important; color: #FF2D55 !important; font-size: 12px; font-family: 'Google Sans Flex', sans-serif; font-weight: 400; line-height: 1.5; display: none; white-space: nowrap; }
.header_wallet_kyc_lv1 { padding: 0 8px; border-radius: 100px; border: 1px solid #FF8D28 !important; color: #FF8D28 !important; font-size: 12px; font-family: 'Google Sans Flex', sans-serif; font-weight: 400; line-height: 1.5; display: none; white-space: nowrap; }
.header_wallet_pending { height: 43px; padding: 8px 16px; border-radius: 6px; border: 1px solid #282828; display: none; align-items: center; gap: 8px; }
.header_wallet_spinner { width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.header_wallet_spinner svg { animation: header-spin 1s linear infinite; }
.header_wallet_text { color: white; font-size: 16px; font-family: 'Google Sans Flex', sans-serif; font-weight: 400; line-height: 1.5; }

/* 지갑 드롭다운 */
.header_wallet_dropdown {
  position: absolute;
  top: calc(65px);
  right: 0;
  width: 262px;
  padding: 16px;
  background: #120E07;
  border-radius: 6px;
  border: 1px solid #282828;
  display: none;
  flex-direction: column;
  gap: 16px;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
.header_wallet_wrapper.active .header_wallet_dropdown { display: flex; }
.header_wallet_dropdown_top {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header_wallet_dropdown_address {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
}
.header_wallet_dropdown_avatar {
  width: 16px;
  height: 16px;
  background: #B0E6FF;
  border-radius: 50%;
  flex-shrink: 0;
}
.header_wallet_dropdown_address_text {
  color: white;
  font-size: 16px;
  font-family: 'Google Sans Flex', sans-serif;
  font-weight: 400;
  line-height: 24px;
}
.header_wallet_dropdown_actions {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 8px;
}
.header_wallet_copy_btn,
.header_wallet_refresh_btn {
  width: 16px;
  height: 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.header_wallet_copy_icon,
.header_wallet_check_icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  display: block;
}
.header_wallet_dropdown_item {
  width: 100%;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.3s;
}
.header_wallet_dropdown_item:hover {
  background: rgba(255, 255, 255, 0.05);
}
.header_wallet_dropdown_icon {
  width: 24px;
  height: 24px;
  position: relative;
  flex-shrink: 0;
}
.header_wallet_dropdown_text {
  color: white;
  font-size: 16px;
  font-family: 'Google Sans Flex', sans-serif;
  font-weight: 400;
  line-height: 24px;
}

@keyframes header-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 로그인 상태 */
.header.login .header_auth_buttons { display: none; }
.header.login .header_wallet { display: flex; }
.header.login .header_wallet_pending { display: none; }
.header.login .header_wallet_kyc { display: inline-block; }
.header.login .header_wallet_kyc_non { display: inline-block; }
.header.login .header_wallet_kyc_lv1 { display: inline-block; }

.header.loding .header_auth_buttons { display: none; }
.header.loding .header_wallet_pending { display: flex; }

@media (max-width: 1024px) {
  .header_nav { display: none; }
  .header_menu_btn { display: flex; }
  .header_logo { margin-right: auto; }
}

@media (max-width: 768px) {
  .header { height: 60px; }
  .header_logo { width: auto; height: 60px; border-right: none; }
  .header_btn { display: none; }
  .header_wallet_address { font-size: 14px; }
  .header_wallet_kyc { font-size: 11px; }
  .header_lang_menu { min-width: 160px; }
  .header_lang_option { padding: 10px 12px; }
  .header_lang_option_text { font-size: 14px; }
}

@media (max-width: 480px) {
  .header_wallet_address { max-width: 80px; overflow: hidden; text-overflow: ellipsis; }
}


/* header02 */
.header02{ background:#fff ; height: 60px;}
.header02 .header_nav_item{
  color: var(--Color-Gray-900, #1A1E22);
  font-feature-settings: 'liga' off, 'clig' off;
  font-family: "Google Sans Flex";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px; /* 150% */
}
.header02 .header_nav{justify-content: center;}
.header02 .header_lang_dropdown{border-color: #fff;}
.header02 .header_lang_icon,.header_lang_arrow{filter: invert(1);}
.header02 .header_lang_text{color: #000;}
.header02 footer{display: none;}
.header02 .header_auth_buttons{display: none;}
.header02 .header_lang_dropdown.active .header_lang_trigger{border: 1px solid #979B9F;}
.header02 .header_lang_option_text{color: #000;}
.header02 .header_lang_menu{border-color: #979B9F; background: #fff;}
.header02 .header_logo{height: 60px;}


.header_products_list:hover{
  background: rgba(255, 255, 255, 0.10);
}


.header_products_video_wrapper {
  width: 100%;
  height: unset;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  flex-shrink: 0;
  aspect-ratio: 296 / 126;
}
.header_products_list{padding: 12px;}
.header_product_info{gap: 0;}
.header_product_item.active {
  background: unset;
}
.header_product_name{
  color: var(--Color-Sub-White, #FFF);
  font-feature-settings: 'liga' off, 'clig' off;
  font-family: "Google Sans Flex";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  }
.header_product_name span{
  color: var(--Color-Gray-600, #65696D);
  font-feature-settings: 'liga' off, 'clig' off;
  font-family: "Google Sans Flex";
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.header_product_icon{background: unset ;}
.header_product_item{gap: 0; padding: 0;}
.header_products_modal{padding: 16px; max-width: 671px; box-shadow: unset; top: calc(56px); height: 158px;}
.header_products_top{gap: 12px;}
.header_product_icon{width: 24px; height: 24px; min-width: 24px; margin-right: 8px;}


/* products modal custom */
.header02 .header_products_modal{background: #fff;}
.header02 .header_product_desc{white-space: nowrap;
  color: var(--Color-Gray-500, #7E8286);
  font-feature-settings: 'liga' off, 'clig' off;
  font-family: "Google Sans Flex";
  font-size: 12px;
  font-style: normal;
  font-weight: 300;
  line-height: normal;
}
.header02 .header_products_list:hover{
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.05);
}
.header02 .header_lang_option:hover{ background: rgba(0, 0, 0, 0.05); border-radius: 4px;}
.header02 .header_lang_option.selected { background: rgba(0, 0, 0, 0.05); border-radius: 4px;}
.header02 .header_logo_link{filter: invert(1);}