/* ===== Import from Google Fonts ===== */
/*@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@500;700&display=swap');*/

/* Normal */
/*@font-face {*/
/*  font-family: "Source Han Sans HK";*/
/*  src: url("SourceHanSansHK-Light.woff2") format("woff2");*/
/*  font-weight: 100;*/
/*  font-style: normal;*/
/*  font-display: swap;*/
/*}*/

/*@font-face {*/
/*  font-family: "Source Han Sans HK";*/
/*  src: url("SourceHanSansHK-Normal.woff2") format("woff2");*/
/*  font-weight: 300;*/
/*  font-style: normal;*/
/*  font-display: swap;*/
/*}*/

/*@font-face {*/
/*  font-family: "Source Han Sans HK";*/
/*  src: url("SourceHanSansHK-Regular.woff2") format("woff2");*/
/*  font-weight: 400;*/
/*  font-style: normal;*/
/*  font-display: swap;*/
/*}*/

/*@font-face {*/
/*  font-family: "Source Han Sans HK";*/
/*  src: url("SourceHanSansHK-Medium.woff2") format("woff2");*/
/*  font-weight: 500;*/
/*  font-style: normal;*/
/*  font-display: swap;*/
/*}*/

/*@font-face {*/
/*  font-family: "Source Han Sans HK";*/
/*  src: url("SourceHanSansHK-Bold.woff2") format("woff2");*/
/*  font-weight: 700;*/
/*  font-style: normal;*/
/*  font-display: swap;*/
/*}*/


@font-face {
  font-family: "Source Han Sans HK";
  src: url("SourceHanSansHK-Light.otf") format("opentype");
  font-weight: 100; 
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Han Sans HK";
  src: url("SourceHanSansHK-Normal.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* Regular */
@font-face {
  font-family: "Source Han Sans HK";
  src: url("SourceHanSansHK-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Medium */
@font-face {
  font-family: "Source Han Sans HK";
  src: url("SourceHanSansHK-Medium.otf") format("opentype");
  font-weight: 500; 
  font-style: normal;
  font-display: swap;
}

/* Bold */
@font-face {
  font-family: "Source Han Sans HK";
  src: url("SourceHanSansHK-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}



/* ===== Force font globally ===== */

.fas {
    font-family: "Font Awesome 6 Free" !important;
}

* {
     font-family: "Source Han Sans HK", sans-serif !important; 
        font-family: sans-serif;
    letter-spacing: 0.5px;
}



/* ===== Original Styles Start ===== */

/* General Setup & Variables */
:root {
    --primary-blue: #3662ec;
    --light-grey-bg: #f8f9fa;
    --white-bg: #ffffff;
    --border-color: #e5e5e5;
    --input-border-color: #bfbfbf;
    --text-dark: #1a1a1a;
    --text-medium: #3d3d3d;
    --text-light: #888;
    --text-white: #ffffff;
    --red-momentum: #f44336;
    --green-momentum: #4caf50;
    --green-sell: #19be6b;
    --yellow-income-bg: #fffbeb;
    --yellow-income-text: #d48806;
}

body,
html {
    margin: 0;
    padding: 0;
    background-color: #e0e0e0;
}

/* Container */
.mobile-container {
    /*max-width: 414px;*/
    margin: 0 auto;
    background-color: var(--white-bg);
    min-height: 100vh;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    position: relative;
    /* padding-bottom: 60px; */
}

.main-content {
    flex: 1;
    padding: 21px 15px;
    background-color: var(--white-bg);
}

/* Header */
.app-header {
    background-color: var(--primary-blue);
    color: var(--text-white);
    padding: 2px 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 40px;
}

.app-header .back-arrow {
    position: absolute;
    left: 15px;
    font-size: 22px;
    color: var(--text-white);
    text-decoration: none;
}

.app-header .header-title {
    font-weight: 700;
    font-size: 16px;
    line-height: 30px;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Footer Navigation */
.app-footer {
    display: flex;
    justify-content: space-around;
    padding: 5px 0;
    border-top: 1px solid var(--border-color);
    background-color: #f7f7fa;
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.footer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 10px;
    color: #4e5969;
    text-decoration: none;
    padding: 5px 0;
}

.footer-item i {
    font-size: 22px;
    margin-bottom: 3px;
}

.footer-item.active {
    color: var(--primary-blue);
    fill: var(--primary-blue);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 12px;
    color: var(--text-dark);
    margin-bottom: 12px;
    font-weight: 500;
}

.form-group label .required {
    color: var(--red-momentum);
    margin-right: 2px;
}

.form-group input {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    border: 1px solid rgb(229, 229, 229);
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 12px;
    background-color: #ffffff27;
}
hr{
    background: #fff;
    border: 0.5px #e3e3e3 solid;
    border-radius: 100%;
}


.form-group input::placeholder {
    color: #aaa;
}

.main-content {
    margin-top: -1px;
        margin-bottom: 60px;
}

/* Input Group */
.input-group {
    display: flex;
    align-items: center;
    border: 1px solid var(--input-border-color);
    border-radius: 6px;
    height: 50px;
    overflow: hidden;
}

.input-group .prefix {
    padding: 0 15px;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-dark);
}
.form-group input:focus {
    outline: none;
    border-color: #007bff;
}


.input-group input {
    border: none;
    flex: 1;
    height: 100%;
}

.input-group-button {
    display: flex;
    align-items: center;
}

.input-group-button input {
    border-radius: 6px 0 0 6px;
    border-right: none;
}

.input-group-button .btn-otp {
    padding: 0 25px;
    height: 50px;
    background-color: var(--primary-blue);
    color: var(--text-white);
    border: none;
    border-radius: 0 6px 6px 0;
    font-size: 14px;
    white-space: nowrap;
    cursor: pointer;
}

/* Buttons */
.btn-submit {
    display: block;
    text-align: center;
    /* padding-top: 10px; */
    margin: auto;
    width: 97%;
    height: 60px;
    background-color: var(--primary-blue);
    color: var(--text-white);
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    text-decoration: none;
}

/* Login Page */
.login-container {
    padding: 0;
    background: url('./bg.jpg') no-repeat top center;
    background-size: 100% auto;
}

.login-logo {
    text-align: center;
    padding-top: 60px;
    padding-bottom: 20px;
}

.login-logo img {
    width: 70px;
    height: 70px;
}

.login-form-wrapper {
   padding: 41px 12px 20px 12px;
    padding-top: 41px;
    background-image: linear-gradient(180deg, hsla(0, 0%, 100%, 0), #fff);
    margin-top: 50%;
}

.login-links {
    display: flex;
    justify-content: space-between;
    padding: 25px 5px 0;
}

.login-links a {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 16px;
}

.login-tagline {
    /* text-align: center; */
    color: var(--text-dark);
    font-size: 16px;
        font-weight: 300;
    /* padding: 20px/ 0; */
}

/* Home Page */
.home-carousel img {
    width: 100%;
    display: block;
}

.ticker-bar {
    display: flex;
    justify-content: space-around;
    text-align: center;
    padding: 15px;
    background-color: var(--white-bg);
    border-radius: 8px;
    margin: -30px 15px 0;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.ticker-item .pair {
    font-size: 12px;
    color: var(--text-medium);
}

.ticker-item .price {
    font-size: 16px;
    font-weight: 500;
    margin-top: 4px;
}

/* You would continue with the rest of your original CSS rules below... */


.card {
    margin-top: 20px;
    padding: 15px;
    border-top: 4px solid var(--primary-blue);
}

.card-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
}

.exchange-details,
.price-block {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #969696;
}

.price-block {
    font-size: 14px;
    color: var(--text-dark);
    margin-top: 5px;
    font-weight: bold;
}

.exchange-input-group {
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.exchange-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0 10px;
    /* height: 44px; */
}

.exchange-input-wrapper img {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.exchange-input-wrapper input {
    border: none;
    outline: none;
    padding: 10px 0;
    flex: 1;
    background: transparent;
}

.btn-exchange {
    padding: 0 20px;
    height: 35px;
    background-color: var(--primary-blue);
    color: var(--text-white);
    border: none;
    border-radius: 6px;
    margin-left: 10px;
    cursor: pointer;
}

.exchange-result {
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-medium);
}

.exchange-result .value {
    font-weight: bold;
    color: var(--primary-blue);
}

.currency-market-list {
    margin-top: 20px;
}

.market-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-medium);
    padding: 10px 0;
    background-color: #f6f6f6;
}

.market-header .name {
    flex: 2;
    padding-left: 15px;
}

.market-header .price {
    flex: 2;
    text-align: left;
}

.market-header .momentum {
    flex: 1;
    text-align: right;
    padding-right: 15px;
}

.market-row {
    display: flex;
    align-items: center;
    padding: 12px 15px 12px 15px;
    border-bottom: 1px solid #f0f0f0;
}

.market-row .name {
    flex: 1;
    display: flex;
    align-items: center;
}

.market-row .name img {
    width: 28px;
    height: 28px;
    margin-right: 8px;
}

.market-row .name .symbol {
      font-size: 12px;
    font-weight: 700;
    color: #3d3d3d;
    margin-right: 4px;
}

.market-row .name .unit {
    font-size: 12px;
    color: var(--text-light);
    margin-left: 4px;
}

.market-row .price {
    font-size: 12px;
    /*font-family: Source Han Sans CN-Bold, Source Han Sans CN;*/
    font-weight: 700;
    color: #000;
}

.market-row .momentum {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.momentum-btn {
    padding: 6px 0;
    color: white;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    width: 75px;
    text-align: center;
}

.momentum-btn.red {
    background-color: var(--red-momentum);
}

.momentum-btn.green {
    background-color: var(--green-momentum);
}

/* Market Price Page */
.search-bar {
    position: relative;
    margin-bottom: 15px;
}
.freeze {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 50%;
    padding: 10px;
}
.search-bar input {
    padding: 0 15px;
    padding-right: 40px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box;
    height: 44px;
}

.search-bar i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 20px;
}

/* Market Sell Page */
.market-tabs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--border-color);
}

.btn-sell {
    background-image: url('./img/save.svg');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    color: white;
    padding: 8px 20px;
    border-radius: 6px;
    border: none;
    font-weight: bold;
}

.btn-link {
    background-color: var(--primary-blue);
    color: white;
    padding: 8px 20px;
    border-radius: 6px;
    border: none;
    font-weight: bold;
}

.status-list {
    padding: 10px 0;
}

.status-item {
    font-size: 16px;
    color: var(--text-dark);
    border-bottom: 1px solid #f0f0f0;
}

.balance-warning {
    color: var(--red-momentum);
    font-weight: 500;
    margin-top: 20px;
    font-size: 16px;
}

/* Market Buy Page */
.buy-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 15px;
}

.buy-tabs {
    display: flex;
    border-radius: 6px;
    overflow: hidden;
}

.buy-tabs .tab {
    padding: 8px 15px;
    color: var(--text-dark);
    background-color: #f0f0f0;
    cursor: pointer;
    font-weight: 500;

}

.usdt-b{
        clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
}
.rsn-b{
        clip-path: polygon(16% 0, 111% 0, 100% 100%, 0% 100%)  !important;
}

.buy-tabs .tab.active {
    background-color: var(--green-sell);
    color: white;
}

.buy-controls .input-wrapper {
    flex: 1;
    position: relative;
}

.buy-controls input {
    width: 100%;
    box-sizing: border-box;
    height: 38px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0 10px;
}

.buy-controls .btn-refresh {
    padding: 9px 15px;
    background-color: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
}

/* Mine Page */
.mine-page-bg {
    background-color: var(--light-grey-bg);
}

.mine-header {
    background-color: var(--primary-blue);
    padding: 2px 20px 50px 20px;
    display: flex;
    align-items: flex-start;
}

.mine-header .avatar img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid white;
}

.mine-info {
    margin-left: 15px;
    color: white;
}

.mine-info .name {
    font-size: 22px;
    /*font-weight: bold;*/
}

.mine-info .id {
    font-size: 12px;
    /* opacity: 0.8; */
    margin-top: 4px;
}

.mine-info .code-row {
    display: flex;
    align-items: center;
    font-size: 12px;
    margin-top: 8px;
}

.code-row .label {
    /* opacity: 0.8; */
    margin-right: 5px;
}

.code-row .value {
    margin-right: 10px;
}

.code-row .btn-copy {
    background-color: rgb(255 255 255 / 0%);
    color: white;
    border: 1px #fff solid;
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 12px;
    cursor: pointer;
    letter-spacing: revert;
}

.balance-card {
    display: flex;
    margin: -40px 8px 0;
    background: white;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.balance-left {
    flex: 2;
    display: flex;
    width: 100%;
    /*gap: 15px;*/
    /*padding: 10px;*/
}

.balance-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.balance-item .top {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: var(--text-medium);
    justify-content: center;
    background: #f3f3f4;
    padding: 0 10px 0 0;
    border-radius: 8px;
}

.balance-item .top img {
    width: 16px;
    height: 16px;
    margin-right: 5px;
}

.balance-item .amount {
    font-size: 16px;
    margin-top: 5px;
    text-decoration: none;
    color: #3d3d3d;
    font-weight: 500;
}

.balance-item .freeze {
    font-size: 10px;
    color: var(--text-light);
    margin-top: 2px;
}

.balance-right {
    flex: auto;
    background-image: url('./img/tbg.svg');
    background-repeat: no-repeat;
    background-size: 100% 102%;
    border-radius: 0 10px 10px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    text-align: center;
}

.balance-right .income-title {
    display: flex;
    align-items: center;
    font-size: 12px;
    background: #fff;
    padding: 3px 5px;
    border-radius: 17px 0 0 17px;
}

.balance-right .income-title img {
    width: 16px;
    height: 16px;
    margin-right: 5px;
}

.balance-right .income-amount {
    font-size: 16px;
    font-weight: bold;
    color: var(--yellow-income-text);
    margin-top: 5px;
}

.income-amount1 {
    font-weight: 400 !important;
    margin-top: 5px;
    color: black !important;
    padding: 0 20px;
}

.menu-list {
    padding: 0 15px;
    background-color: var(--white-bg);
    margin-top: 15px;
    border-radius: 10px;
    margin: 10px;
}

.menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0 11px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 14px;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item .left {
    display: flex;
    align-items: center;
        font-weight: 300;
    color: #3d3d3d;
    line-height: 20px;

}

.menu-item .left img {
    width: 20px;
    height: 20px;
    margin-right: 15px;
}

.menu-item .right {
    display: flex;
    align-items: center;
    color: var(--text-light);
    font-size: 14px;
}

.menu-item .status-red {
    color: var(--red-momentum);
    margin-right: 5px;
    font-weight: 500;
}

.menu-item .right i {
    font-size: 8px;
    color: #c8c7cca3;
}

.text-gray-14 {
    font-size: 14px !important;
    color: #3b4144;
}


/* Error styles */
input.error,
select.error,
textarea.error {
    border: 1px solid red;
}

.error {
    border: 1px solid red !important;
}

.error-message {
    color: red;
    font-size: 12px;
    margin-top: 4px;
}

.form-group {
    margin-bottom: 15px;
}


.text-gray-14 {
    font-size: 14px !important;
    color: #3b4144;
}

.btn-otp.disabled {
    background-color: gray !important;
    font-weight: bold !important;
    cursor: not-allowed;
    color: white !important;
}


.arrow-center {
    display: flex;
    align-items: center;
}

