/* ============================================
   COMMON.CSS - Shared styles across all pages
   ============================================ */

/* ---- Tabbar ---- */
.tabbar {
    position: fixed;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    margin: 0 10px;
    background: #F4F4F4;
    padding: 10px;
    border-radius: 10px;
    z-index: 1;
}

.tab-item {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    height: 36px;
    border-radius: 5px;
}

.tab-item.active {
    background: #000;
}

.tab-icon {
    height: 20px;
    margin-right: 5px;
}

.tab-text {
    display: none;
    transition: all 0.3s ease-in-out;
}

.tab-item.active .tab-text {
    font-size: 14px;
    color: #fff;
    display: block;
}

/* ---- Mask Overlay ---- */
.mask {
    display: none;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 12;
}

/* ---- Empty State ---- */
.empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
}

.empty .label {
    margin-bottom: 10px;
}

.empty img {
    height: 100px;
}

.empty .value {
    color: #999;
}

/* ---- Fund Balance Section ---- */
.balance-section.balance-fund {
    background-image: url("/images/fund/fund-balance-bgi.png");
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    height: 100px;
    padding: 20px;
    margin-bottom: 0;
}

.balance-section.balance-fund .balance-amount {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
}

.balance-section.balance-fund .balance-amount .val {
    font-size: 32px;
    color: #fff;
    margin-bottom: 0;
}

.balance-section.balance-fund .balance-amount .val span {
    font-size: 16px;
}

/* ---- Login/Register Body Background ---- */
body.login-register-bg {
    position: relative;
    overflow: hidden;
}

body.login-register-bg::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    height: 50%;
    width: 100%;
    background: #181818;
    box-shadow: 0px 4px 40px 0px #181818 inset;
    clip-path: polygon(0 0, 100% 0, 100% 70%, 0 100%);
}

body.login-register-bg::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 25%;
    width: 100%;
    background: url(/images/login/login-bgi.png);
    background-size: 100% 100%;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 1;
}

.login-register-wrapper {
    padding: 175px 15px 20px;
}

.login-box {
    position: relative;
    z-index: 2;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 40px;
    width: 100%;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header .logo {
    text-align: center;
    margin-bottom: 20px;
}

.login-header .logo img {
    width: 100px;
    height: auto;
}

.login-page-title {
    position: relative;
    color: white;
    height: 40px;
    font-size: 32px;
    font-weight: bold;
    z-index: 3;
    text-align: center;
    width: 100%;
    margin-bottom: 30px;
}

.form-action {
    padding: 0 20px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.form-link {
    text-align: center;
    font-size: 14px;
}

.form-link a {
    color: #0066cc;
    text-decoration: none;
}

.code-btn {
    color: #0066cc;
    text-decoration: none;
    font-size: 14px;
    margin-left: 10px;
    white-space: nowrap;
}