/* ============================================================
   User Center Modern Stylesheet
   IE11 compatible (no CSS variables, no Grid, no sticky, no gap)
   ============================================================ */

/* ---------- Reset & layout container ---------- */
.uc-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 12px;
}

.uc-row {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    margin: 0 -12px 0 0;
}

.uc-col-left {
    -ms-flex: 0 0 220px;
    flex: 0 0 220px;
    max-width: 220px;
    padding: 0 5px;
    box-sizing: border-box;
}

/* Sticky Sidebar - 左侧导航跟随滚动（桌面端） */
@media (min-width: 769px) {
    .uc-col-left {
        position: -webkit-sticky;
        position: sticky;
        top: 85px;
        height: fit-content;
        max-height: calc(100vh - 100px);
        align-self: flex-start;
    }
    
    .uc-col-left .uc-sidebar {
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .uc-col-left .uc-sidebar::-webkit-scrollbar {
        width: 6px;
    }
    
    .uc-col-left .uc-sidebar::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }
    
    .uc-col-left .uc-sidebar::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 3px;
    }
    
    .uc-col-left .uc-sidebar::-webkit-scrollbar-thumb:hover {
        background: #a1a1a1;
    }
}

.uc-col-right {
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 12px;
    box-sizing: border-box;
}

/* ---------- LEFT SIDEBAR ---------- */
.uc-sidebar {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(31, 56, 100, 0.07);
    overflow: hidden;
    font-family: "Helvetica Neue", Arial, "Microsoft Yahei", sans-serif;
}

/* Sidebar header (simple title only, no avatar / balance) */
.uc-user-card {
    background: linear-gradient(135deg, #55aded 0%, #8da4b5 55%, #4a8ccb 100%);
    background: -ms-linear-gradient(135deg, #1e9fff 0%, #2c7be5 100%);
    color: #ffffff;
    padding: 18px 22px;
    text-align: left;
    position: relative;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
	margin-bottom: 5px;
}

.uc-user-card .uc-title-icon {
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 7px;
    color: #ffffff;
    margin-right: 12px;
    flex-shrink: 0;
    -ms-flex-negative: 0;
}
.uc-user-card .uc-title-icon .layui-icon {
    font-size: 16px !important;
}

.uc-user-card .uc-name {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    line-height: 22px;
    word-break: break-all;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    min-width: 0;
}

.uc-user-card .uc-name small {
    display: block;
    font-size: 11px;
    opacity: 0.85;
    font-weight: 400;
    margin-top: 2px;
    line-height: 14px;
}

/* Hide the now-removed user card internals (avatar/balance/recharge button) to avoid blank gaps if any page still leaves them in */
.uc-user-card .uc-avatar,
.uc-user-card .uc-greet,
.uc-user-card .uc-balance,
.uc-user-card .uc-recharge-btn {
    display: none;
}

/* Email verification reminder (right-bottom fixed) */
#emailReminderBox {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 99999;
    width: 360px;
    max-width: 80%;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 16px;
    border-left: 4px solid #ff9800;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    #emailReminderBox {
        bottom: 55px;
        right: 10px;
        width: 92%;
    }
}

/* Sidebar group */
.uc-nav-group {
    padding: 8px 0 5px;
    border-bottom: 1px dashed #eef2f7;
}

.uc-nav-group:last-child {
    border-bottom: none;
}

.uc-nav-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #98a2b3;
    padding: 0px 22px 5px;
    font-weight: 600;
}

.uc-nav-title i {
    margin-right: 6px;
    font-size: 11px;
    color: #b1bac9;
}

/* Sidebar nav list */
.uc-nav-list {
    margin: 0;
    padding: 0 8px 0px;
    list-style: none;
}

.uc-nav-list li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.uc-nav-list li a {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    padding: 10px 14px;
    margin: 4px 0;
    border-radius: 8px;
    color: #4a5568;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    position: relative;
    border-left: 3px solid transparent;
    line-height: 22px;
}

.uc-nav-list li a .uc-ico {
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    background: #dee8f9;
    color: #6b7c93;
    border-radius: 6px;
    margin-right: 12px;
    flex-shrink: 0;
    -ms-flex-negative: 0;
    transition: all 0.2s ease;
}
.uc-nav-list li a .uc-ico .layui-icon {
    font-size: 16px !important;
	font-weight: 600 !important;
}

.uc-nav-list li a .uc-nav-text {
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    min-width: 0;
}

.uc-nav-list li a .uc-nav-text .uc-nav-main {
    display: block;
    font-weight: 500;
    line-height: 18px;
}

.uc-nav-list li a .uc-nav-text .uc-nav-sub {
    display: block;
    font-size: 11px;
    color: #98a2b3;
    line-height: 14px;
    margin-top: 2px;
}

.uc-nav-list li a .uc-arrow {
    color: #c0c8d4;
    font-size: 11px;
    transition: transform 0.2s ease;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
}

.uc-nav-list li a:hover {
    background: #f5f9ff;
    color: #1e9fff;
    text-decoration: none;
}

.uc-nav-list li a:hover .uc-ico {
    background: #e3f0ff;
    color: #1e9fff;
}

.uc-nav-list li a:hover .uc-arrow {
    color: #1e9fff;
    transform: translateX(2px);
    -ms-transform: translateX(2px);
}

.uc-nav-list li a.active,
.uc-nav-list li.active a {
    background: linear-gradient(90deg, rgba(30, 159, 255, 0.10) 0%, rgba(30, 159, 255, 0.04) 100%);
    background: -ms-linear-gradient(90deg, #e3f0ff 0%, #f5f9ff 100%);
    color: #1e9fff;
    border-left-color: #1e9fff;
    font-weight: 500;
}

.uc-nav-list li a.active .uc-ico,
.uc-nav-list li.active a .uc-ico {
    background: #1e9fff;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(30, 159, 255, 0.35);
}

.uc-nav-list li a.active .uc-nav-text .uc-nav-sub,
.uc-nav-list li.active a .uc-nav-text .uc-nav-sub {
    color: #6b9cd0;
}

.uc-nav-list li a.active .uc-arrow,
.uc-nav-list li.active a .uc-arrow {
    color: #1e9fff;
    transform: translateX(2px);
    -ms-transform: translateX(2px);
}

/* Logout item (special) */
.uc-nav-list li a.uc-logout {
    color: #dc3545;
}

.uc-nav-list li a.uc-logout .uc-ico {
    background: #fdecee;
    color: #dc3545;
}

.uc-nav-list li a.uc-logout:hover {
    background: #fdecee;
    color: #c82333;
}

.uc-nav-list li a.uc-logout:hover .uc-ico {
    background: #dc3545;
    color: #ffffff;
}

/* ---------- RIGHT CONTENT AREA ---------- */
.uc-content {
    display: block;
    min-height: 600px;
    min-width: 0;
    box-sizing: border-box;
}

/* Hero / page header */
.uc-hero {
	background: linear-gradient(135deg, #fbfdff 0%, #e8f5ff 55%, #e5e5e5 100%);
    background: -ms-linear-gradient(120deg, #ffffff 0%, #f7fbff 100%);
    border-radius: 12px;
    padding: 13px 22px;
    margin-bottom: 10px;
    box-shadow: 0 4px 16px rgba(31, 56, 100, 0.05);
    border: 1px solid #eef2f7;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: justify;
    justify-content: space-between;
    flex-wrap: wrap;
}

.uc-hero-left {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    min-width: 0;
}

.uc-hero-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #76848f 0%, #81a2cf 100%);
    background: -ms-linear-gradient(135deg, #1e9fff 0%, #2c7be5 100%);
    color: #ffffff;
    line-height: 48px;
    text-align: center;
    margin-right: 14px;
    box-shadow: 0 4px 12px rgb(34 47 57 / 30%);
    flex-shrink: 0;
    -ms-flex-negative: 0;
}
.uc-hero-icon .layui-icon {
    font-size: 22px !important;
}
.layui-btn .layui-icon {
    font-size: 12px !important;
    margin-right:2px;
}
.uc-hero-text h2 {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font-size: 18px;
    color: #1a202c;
    font-weight: 600;
    line-height: 24px;
}

.uc-hero-text p {
    margin: 4px 0 0;
    color: #718096;
    font-size: 12px;
}

.uc-hero-right {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    color: #718096;
    font-size: 12px;
    margin-top: 6px;
}

/* Stats grid (4 quick cards) */
.uc-stats {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin: 0 -8px 0px;
}

.uc-stat {
    -ms-flex: 1 1 0%;
    flex: 1 1 0%;
    min-width: 130px;
    padding: 0 8px;
    box-sizing: border-box;
    margin-bottom: 8px;
}

.uc-stat-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 4px 14px rgba(31, 56, 100, 0.06);
    border: 1px solid #eef2f7;
    position: relative;
    overflow: hidden;
    height: 96px;
    box-sizing: border-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
}

.uc-stat-card .uc-stat-icon {
    width: 48px;
    height: 48px;
    line-height: 48px;
    text-align: center;
    border-radius: 10px;
    color: #ffffff;
    margin-right: 14px;
    flex-shrink: 0;
    -ms-flex-negative: 0;
}
.uc-stat-card .uc-stat-icon .layui-icon {
    font-size: 22px !important;
}

.uc-stat-card.uc-stat-blue .uc-stat-icon {
    background: linear-gradient(135deg, #4facfe 0%, #5dafb3 100%);
    background: -ms-linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.uc-stat-card.uc-stat-green .uc-stat-icon {
    background: linear-gradient(135deg, #5bb77a 0%, #9d9d9d 100%);
    background: -ms-linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.uc-stat-card.uc-stat-orange .uc-stat-icon {
    background: linear-gradient(135deg, #fa709a 0%, #cfb835 100%);
    background: -ms-linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.uc-stat-card.uc-stat-purple .uc-stat-icon {
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
    background: -ms-linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
}

.uc-stat-info {
    min-width: 0;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
}

.uc-stat-label {
    font-size: 12px;
    color: #718096;
    margin: 0 0 4px;
    line-height: 16px;
}

.uc-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #6f8ecd;
    margin: 0;
    line-height: 24px;
    word-break: break-all;
}

/* Section card (groups content) */
.uc-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(31, 56, 100, 0.06);
    border: 1px solid #eef2f7;
    margin-top: 5px;
    overflow: hidden;
}

.uc-card-head {
    padding: 14px 22px;
    border-bottom: 1px solid #eef2f7;
    background: #fafbfc;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: justify;
    justify-content: space-between;
    flex-wrap: wrap;
}

.uc-card-head h3 {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font-size: 15px;
    font-weight: 600;
    color: #1a202c;
    line-height: 22px;
    position: relative;
    padding-left: 0px;
}

.uc-card-head h3 i {
    margin-right: 6px;
    color: #1e9fff;
    font-size: 16px;
}

.uc-card-head .uc-card-extra {
    font-size: 12px;
    color: #718096;
}

.uc-card-body {
    padding: 18px 22px 22px;
}

/* Profile info bar (within profile hero, replacing the old block) */
.uc-profile-bar {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    padding: 8px 0;
}

.uc-profile-bar .uc-profile-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e3f0ff 0%, #f7fbff 100%);
    background: -ms-linear-gradient(135deg, #e3f0ff 0%, #f7fbff 100%);
    color: #1e9fff;
    line-height: 46px;
    text-align: center;
    margin-right: 14px;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 2px #e3f0ff;
    flex-shrink: 0;
    -ms-flex-negative: 0;
}
.uc-profile-bar .uc-profile-avatar .layui-icon {
    font-size: 24px !important;
}

.uc-profile-bar .uc-profile-meta {
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    min-width: 0;
}

.uc-profile-bar .uc-profile-username {
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
    margin: 0 0 4px;
    line-height: 22px;
}

.uc-profile-bar .uc-profile-username strong {
    color: #1e9fff;
}

.uc-profile-bar .uc-profile-sub {
    color: #718096;
    font-size: 12px;
    margin: 0;
}

.uc-profile-bar .uc-profile-balance {
    text-align: right;
    padding-left: 12px;
    border-left: 1px dashed #e2e8f0;
    flex-shrink: 0;
    -ms-flex-negative: 0;
}

.uc-profile-bar .uc-profile-balance .uc-profile-balance-label {
    font-size: 11px;
    color: #718096;
    letter-spacing: 0.5px;
    margin: 0 0 4px;
}

.uc-profile-bar .uc-profile-balance .uc-profile-balance-value {
    font-size: 22px;
    font-weight: 700;
    color: #e74c3c;
    line-height: 26px;
    margin: 0;
}

.uc-profile-bar .uc-profile-balance .uc-profile-balance-value .uc-currency {
    color: #95a5a6;
    font-size: 14px;
    font-weight: 500;
}

/* Notice (replaces yellow info bar) */
.uc-notice {
    background: #fff8e1;
    border: 1px solid #ffeeba;
    border-left: 3px solid #f5b400;
    border-radius: 6px;
    padding: 12px 14px;
    color: #8a6d00;
    font-size: 13px;
    line-height: 20px;
}

.uc-notice i {
    color: #f5b400;
    margin-right: 8px;
}

/* Form fields (two-column profile grid) */
.uc-form-grid {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.uc-form-cell {
    -ms-flex: 0 0 50%;
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 10px;
    box-sizing: border-box;
    margin-bottom: 14px;
}

.uc-form-cell.uc-form-full {
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    max-width: 100%;
}

.uc-form-label {
    display: block;
    color: #4a5568;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.uc-form-label i {
    color: #1e9fff;
    margin-right: 6px;
}

.uc-form-input-wrap {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    width: 100%;
}

.uc-form-input {
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    display: block;
    height: 38px;
    line-height: 38px;
    padding: 0 12px;
    border: 1px solid #e2e8f0;
    background: #fafbfc;
    border-radius: 6px;
    font-size: 14px;
    color: #4a5568;
    box-sizing: border-box;
}

.uc-form-input:focus {
    border-color: #1e9fff;
    background: #ffffff;
    outline: none;
}

.uc-form-input[readonly] {
    background: #f5f7fa;
    color: #718096;
}

.uc-btn {
    display: inline-block;
    height: 38px;
    line-height: 38px;
	min-width: 70px;
    padding: 0 8px;
    border: none;
    border-radius: 6px;
    background: #1e9fff;
    color: #ffffff;
    font-size: 13px;
    cursor: pointer;
    margin-left: 5px;
    vertical-align: middle;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.uc-btn:hover {
    background: #0c80d6;
    color: #ffffff;
    text-decoration: none;
}

.uc-btn.uc-btn-warm {
    background: #ff9800;
}

.uc-btn.uc-btn-warm:hover {
    background: #e08600;
    color: #ffffff;
}

.uc-btn.uc-btn-disabled,
.uc-btn[disabled] {
    background: #cbd5e0;
    color: #ffffff;
    cursor: not-allowed;
}

.uc-btn.uc-btn-sm {
    height: 30px;
    line-height: 30px;
    padding: 0 12px;
    font-size: 12px;
}

/* Inline code row */
.uc-code-row {
    background: #fafbfc;
    border: 1px dashed #e2e8f0;
    border-radius: 6px;
    padding: 10px 12px;
    margin-top: 10px;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
}

.uc-code-row .uc-form-input {
    background: #ffffff;
    margin-right: 8px;
    height: 34px;
    line-height: 34px;
}

.uc-code-row .uc-btn {
    margin-left: 0;
    height: 34px;
    line-height: 34px;
    flex-shrink: 0;
    -ms-flex-negative: 0;
}

/* Password change card */
.uc-pwd-card {
    background: linear-gradient(135deg, #f7fbff 0%, #ffffff 100%);
    background: -ms-linear-gradient(135deg, #f7fbff 0%, #ffffff 100%);
    border: 1px dashed #d6e4f2;
}

.uc-pwd-card .uc-card-head {
    background: transparent;
}

.uc-pwd-row {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-flex-align: flex-end;
    align-items: flex-end;
    margin: 0 -10px;
}

.uc-pwd-cell {
    -ms-flex: 1 1 0%;
    flex: 1 1 0%;
    min-width: 180px;
    padding: 0 10px;
    box-sizing: border-box;
    margin-bottom: 12px;
}

.uc-pwd-cell .uc-form-label {
    margin-bottom: 6px;
}

.uc-pwd-cell .uc-pwd-btn-wrap {
    padding-top: 0;
}

.uc-pwd-cell .uc-pwd-btn {
    width: 100%;
    margin-left: 0;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 992px) {
    .uc-col-left {
        -ms-flex: 0 0 220px;
        flex: 0 0 220px;
        max-width: 220px;
    }
}

/* ---------- MOBILE SIDEBAR (slide-from-left drawer) ---------- */
/* On small screens the left sidebar collapses into a circular toggle button
   at bottom-left. Clicking it slides the sidebar in from the left as a
   floating overlay with a dim backdrop. Tapping the backdrop or toggle
   again closes it. */
@media (max-width: 768px) {
    .uc-row {
        margin: 0 -12px 0 -12px;
    }
    .uc-col-left {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 78%;
        max-width: 230px;
        padding: 0;
        margin: 0;
        z-index: 1000;
        background: transparent;
        box-shadow: none;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        transform: translateX(-100%);
        -ms-transform: translateX(-100%);
        transition: transform 0.3s ease;
        -ms-flex: 0 0 auto;
        flex: 0 0 auto;
    }

    .uc-col-left.uc-sidebar-open {
        transform: translateX(0);
        -ms-transform: translateX(0);
		padding-bottom: 50px;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.18);
    }

    .uc-col-left .uc-sidebar {
        border-radius: 0;
        box-shadow: none;
        overflow-y: auto;
	    padding: 50px 0px 70px;
        -webkit-overflow-scrolling: touch;
    }

    .uc-col-right,
    .uc-content {
        min-width: 0;
    }

    .uc-form-cell {
        -ms-flex: 0 0 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
    .uc-stat {
        -ms-flex: 0 0 50%;
        flex: 0 0 50%;
        max-width: 50%;
    }
    .uc-profile-bar {
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
		padding: 0px;
    }
    .uc-profile-bar .uc-profile-balance {
        border-left: none;
        padding-left: 0;
        margin-top: 8px;
        width: 100%;
        text-align: left;
		display: none;
    }
    .uc-hero {
        -ms-flex-direction: column;
        flex-direction: column;
        -ms-flex-align: flex-start;
        align-items: flex-start;
    }
}

/* Circular toggle button (bottom-left, only visible on mobile via .user-touch) */
.user-touch {
    display: none;
}

@media (max-width: 768px) {
    .user-touch {
        display: -ms-flexbox;
        display: flex;
        -ms-flex-align: center;
        align-items: center;
        -ms-flex-pack: center;
        justify-content: center;
        position: fixed;
        left: 16px;
        bottom: 70px;
        width: 40px;
        height: 40px;
        line-height: 40px;
        text-align: center;
        border-radius: 50%;
        background: linear-gradient(135deg, #1e9fff 0%, #2c7be5 100%);
        background: -ms-linear-gradient(135deg, #1e9fff 0%, #2c7be5 100%);
        color: #ffffff;
        font-size: 20px;
        z-index: 1001;
        box-shadow: 0 6px 16px rgba(30, 159, 255, 0.45);
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
        -ms-user-select: none;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .user-touch:hover {
        transform: scale(1.05);
        -ms-transform: scale(1.05);
    }

    .user-touch:active {
        transform: scale(0.95);
        -ms-transform: scale(0.95);
    }

    .user-touch i {
        font-size: 28px;
        line-height: 1;
    }
}

/* Backdrop that dims the rest of the screen when the sidebar is open.
   Hidden by default; only shown via JS when sidebar is opened. */
.uc-sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 999;
}

.uc-sidebar-backdrop.uc-sidebar-backdrop-visible,
.uc-sidebar-backdrop.uc-backdrop-show {
    display: block;
}

@media (max-width: 480px) {
    .uc-stat {
        -ms-flex: 0 0 100%;
        flex: 0 0 50%;
        max-width: 50%;
    }
    .uc-card-body {
        padding: 14px;
    }
    .uc-stat-card {
		padding: 16px 10px;
        height: 70px;
    }
    .uc-stat-card .uc-stat-icon {
		width: 38px;
		height: 38px;
		line-height: 38px;
    }
    .uc-stat-card .uc-stat-icon .layui-icon {
		font-size: 18px !important;
    }
    .uc-stat-value {
        font-size: 13px !important;
    }
    .uc-card-head {
        padding: 12px 14px;
    }
.uc-btn {
    padding: 0 5px;
    font-size: 12px;
    margin-left: 5px;
	min-width: 65px;
}
    .uc-pwd-cell {
        -ms-flex: 0 0 100%;
        flex: 0 0 100%;
        max-width: 100%;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-align: center;
        align-items: center;
        min-width: 0;
    }
    .uc-pwd-cell .uc-form-label {
        -ms-flex: 0 0 80px;
        flex: 0 0 80px;
        margin-bottom: 0;
        margin-right: 8px;
        white-space: nowrap;
    }
    .uc-pwd-cell .uc-form-input {
        -ms-flex: 1 1 auto;
        flex: 1 1 auto;
        min-width: 0;
    }
}

/* ============================================================
   Token / API Keys page specific tweaks
   - Make the embedded layui table area sit nicely inside .uc-card-body
   - Style the title bar, refresh button, notes list
   - Lock column widths so each token row lines up with the header row
   ============================================================ */

/* Refresh pill button on the right of the card-head.
   Class pair matches the delegated click handler in uc-token.js:
       $(document).on("click", ".refresh, .uc-card-refresh", ...) */
.uc-card .uc-card-head .uc-card-refresh {
    margin-left: auto;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -ms-flex-align: center;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    color: #4a5568;
    background: #ffffff;
    cursor: pointer;
    font-size: 12px;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -ms-user-select: none;
    -webkit-transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.uc-card .uc-card-head .uc-card-refresh:hover {
    color: #1e9fff;
    border-color: #1e9fff;
    background: #f5f9ff;
}
.uc-card .uc-card-head .uc-card-refresh i {
    font-size: 12px;
}

/* Card-head extra slot — never push the title out, never wrap */
.uc-card-head .uc-card-extra {
    -ms-flex: 0 1 auto;
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-left: 12px;
    color: #718096;
    font-size: 13px;
}

/* Card body padding tweak — token page wants tighter edges than default */
.uc-card .uc-card-body {
    padding: 14px 18px 18px;
}

/* Scrollable shell around the token table list */
.uc-table-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    border: 0;
    background: #ffffff;
}

/* Both the header table AND every token row table use fixed widths so
   columns line up. No min-width: the table simply takes 100% of the wrap
   and td6 absorbs any remaining space. If the sum of td1-td5 ever exceeds
   the wrap, the wrap scrolls horizontally (no column squeezing). */
.uc-table-wrap > .layui-table,
.layui-table-item > .layui-table {
    table-layout: fixed !important;
    width: 100%;
    margin: 0;
    border: 0;
    border-collapse: collapse;
}

/* Lock every cell to its width; long content gets clipped, never pushes */
.uc-table-wrap > .layui-table th:not(.uc-grid th),
.uc-table-wrap > .layui-table td:not(.uc-grid td),
.layui-table-item > .layui-table th:not(.uc-grid th),
.layui-table-item > .layui-table td:not(.uc-grid td) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-break: normal;
    box-sizing: border-box;
    /* IMPORTANT: `:not(.uc-grid th/td)` raises the outer rule's specificity
       ABOVE the inner `.uc-grid th, td` rule below, so the inner rule needs
       `!important` on its `border` to win. Without it the inner panel
       would inherit `#cbd5e0` and look identical to the outer collapsed
       row, defeating the two-state design. */
    border: 1px solid #cbd5e0;
}
.layui-table-item > .layui-table td.uc-expand-td {
    border: 0 !important;
    overflow: visible !important;
    box-sizing: content-box !important;
    padding: 0 !important;
    background: #ffffff;
}

.uc-table-wrap > .layui-table th {
    background: #f7fafc;
    font-weight: 600;
    color: #4a5568;
    padding: 12px 10px !important;
    vertical-align: middle;
}

/* ---------- Column widths (FIXED pixels) ---------- */
/* Sum of td1-td5 = 775px. td6 takes whatever's left. */
.uc-table-wrap .td1,
.layui-table-item .td1 { width: 105px; }   /* 操作 / Actions (create / modify / delete button) */
.uc-table-wrap .td2,
.layui-table-item .td2 { width: 160px; }   /* 账号 TOKEN / Account TOKEN string */
.uc-table-wrap .td3,
.layui-table-item .td3 { width: 160px; }   /* 创建时间 / Created Time */
.uc-table-wrap .td4,
.layui-table-item .td4 { width: 150px; }   /* 常用功能 / Common Functions (view button) */
.uc-table-wrap .td5,
.layui-table-item .td5 { width: 130px; }   /* 状态 / Status pill */
.uc-table-wrap .td6,
.layui-table-item .td6 { width: auto; }    /* 备注 / Remark — flexible */

/* ---------- Header row controls ---------- */
/* td1 hosts the create button only (refresh button lives in card-head) */
.uc-table-wrap .uc-th-create {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: flex-start;
    gap: 6px;
}
.uc-table-wrap .uc-th-create .uc-btn-add {
    height: 28px;
    line-height: 28px;
    padding: 0 10px;
    font-size: 12px;
}

/* ---------- Data row internals ---------- */
.layui-table-item { margin-bottom: -1px; }
.layui-table-item:last-child { margin-bottom: 0; }
.layui-table-item > .layui-table td {
    padding: 10px !important;
    vertical-align: middle;
}
.layui-table-item .text-token {
    font-family: Consolas, Menlo, "Courier New", monospace;
    color: #2c7be5;
    font-weight: 600;
}
.layui-table-item .text-descr {
    color: #4a5568;
}
.layui-table-item .text-descr:hover { color: #1e9fff; }


/* Loading text — kept under both class names for compatibility with the
   original token.html markup AND uc-token.js's selector (.text-loding). */
.uc-text-loding,
.text-loding {
    padding: 18px;
    text-align: center;
    color: #718096;
    font-size: 13px;
}

/* Notice list inside .uc-card (for "操作注意事项") */
.uc-tips {
    margin: 0;
    padding-left: 20px;
    color: #4a5568;
    font-size: 13px;
    line-height: 1.9;
}
.uc-tips li {
    margin-bottom: 6px;
}
.uc-tips li:last-child {
    margin-bottom: 0;
}
.uc-tips abbr {
    color: #1e9fff;
    border-bottom: 1px dashed #1e9fff;
    cursor: help;
}
.uc-tips strong {
    color: #dd6b20;
}
.uc-tips .uc-tip-blue {
    color: #1e9fff;
    font-weight: 500;
}

/* ---- Accordion / inner panel helpers (preserved from original) ---- */
.yijingxuanze_shopping { color: #1e9fff; }
.btnbatch { position: absolute; right: 0; }
.xuanze_jiesuan_cs {
    line-height: 50px;
    position: relative;
    display: none;
    background: #f9fafb;
    z-index: 9;
	border: 1px solid #b2b8c2;
	margin-top: 0px;
	margin-bottom: 0px;
}
.xuanze_jiesuan_cs span {
    display: block;
    height: 50px;
    line-height: 50px;
    color: #333;
}
.xuanze_jiesuan_cs span i { font-style: normal; color: #1e9fff; }
.xuanze_jiesuan_cs .layui-btn { border-radius: 6px; height: 40px; line-height: 40px; font-size: 15px; margin-right: 5px; }

.layui-form-checkbox[lay-skin=primary] { padding: 0 !important; }
.td-input { text-align: center !important; }

.ip_bulk_renewal .on {
    background-color: #1E9FFF !important;
    color: #fff;
}

/* ============================================================================
   Expanded (inner) panel — API list / IP whitelist table
   ============================================================================ */

.uc-expand-tr { background: #ffffff; }

.uc-grid-wrap {
    background-color: #ffffff;
    overflow-x: auto;
    overflow-y: hidden;
    /* Sub-pixel alignment (load-bearing):
       The outer table's colspan cell has its content area shrunk by 1px
       on each side because `border-collapse: collapse` reserves a
       column-border slot there even when the colspan cell itself has
       `border: 0`. To close that 1px gap on each side the wrapper
       sticks out `0.5px` past the cell edge with negative margin,
       and compensates its width accordingly. The wrap values (and
       NOT `1px`/`2px`) are deliberate: at half-pixel widths the
       browser rounds the wrapper's left and right edges
       INDEPENDENTLY, and `0.5px`/`1px` is the only offset pair that
       produces integer-pixel alignment on BOTH ends regardless of
       whether the underlying content width is integer or half-
       integer. `-1px` makes the leftmost `border-left` vanish on
       half-integer widths. */
    margin: 0 -0.5px;
    width: calc(100% + 1px);
    min-width: 0;
    box-sizing: border-box;
    padding: 0;
}

.uc-grid {
    width: 100%;
    margin: 0;
    border: 0;
    border-collapse: collapse;
    border-spacing: 0;
    background: #ffffff;
    color: #2d3748;
    font-size: 13px;
}
/* `!important` on `border` is intentional — see the outer-cell rule
   above (`.uc-table-wrap > .layui-table td:not(.uc-grid td)`) which
   sits at higher specificity because of the `:not()`, so the inner
   panel needs `!important` to draw its distinct deeper `#2d3748`
   frame instead of inheriting the outer table's `#cbd5e0`. */
.uc-grid th,
.uc-grid td {
    box-sizing: border-box;
    padding: 10px 14px;
    vertical-align: middle;
    border: 1px solid #b2b8c2 !important;
    background: #ffffff;
    color: #2d3748;
    font-size: 13px;
    white-space: nowrap;
}
.uc-grid th {
    background: #f7fafc;
    font-weight: 600;
    color: #4a5568;
    text-align: center;
}

/* Column widths (minimums; columns grow if content needs more) */
.uc-grid .td-input,
.uc-grid td.td-input,
.uc-grid th.td-input {
    width: 44px;
    min-width: 44px;
    text-align: center;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.uc-grid .col-lottery     { min-width: 90px; }
.uc-grid .col-ename       { min-width: 100px; }
.uc-grid .col-valid       { min-width: 120px; }
.uc-grid .col-actions     { min-width: 340px; text-align: right; padding-right: 12px !important; padding-left: 12px !important; }
.uc-grid .col-ip          { min-width: 110px; }
.uc-grid .col-duration    { min-width: 180px; text-align: center; }
.uc-grid .col-subtotal    { min-width: 80px; text-align: right; }
.uc-grid th.col-actions   { text-align: center; }

/* Action buttons inside cells */
.uc-grid .layui-btn-sm {
    height: 30px;
    line-height: 30px;
    padding: 0 10px;
    font-size: 12px;
    margin: 0 4px 0 0;
    vertical-align: middle;
    border-radius: 5px;
}
.uc-grid td > button {
    white-space: nowrap;
    display: inline-block;
    margin-right: 4px;
}
.uc-grid td > button:last-child { margin-right: 0; }

/* Batch action bar inside the expanded panel (above and below the grid) */
.uc-expand-tr .xuanze_jiesuan {
    position: relative;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}
.uc-expand-tr .xuanze_jiesuan .wrap {
    max-width: 100%;
    overflow: hidden;
}
.uc-expand-tr .xuanze_jiesuan .text-left,
.uc-expand-tr .xuanze_jiesuan strong,
.uc-expand-tr .xuanze_jiesuan strong span {
    text-align: left !important;
}

/* API address copy button (used inside the API dialog) */
.api-copy-container {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
}
.api-copy-container input { -ms-flex: 1 1 auto; flex: 1 1 auto; min-width: 0; }
.api-copy-btn {
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    height: 42px;
    padding: 0 10px;
    margin-left: 6px;
    background-color: #FF8C00;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    line-height: 42px;
    white-space: nowrap;
    transition: background-color 0.2s;
}
.api-copy-btn:hover { background-color: #FF7F00; }
.api-copy-btn:active { background-color: #FF6B00; }

/* IP whitelist dialog responsive helpers */
.white-ip-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.white-ip-table-wrap .layui-table { white-space: nowrap; }
.white-ip-table-wrap .layui-table td,
.white-ip-table-wrap .layui-table th { white-space: nowrap; }
#whiteIpListArea { max-height: 60vh; overflow-y: auto; }

@media (max-width: 600px) {
    .layui-layer-page .layui-layer-content { padding: 0 !important; }
    #whiteIpHeaderArea {
        padding: 10px 12px 8px 12px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
    }
    #whiteIpHeaderArea > div { width: 100% !important; min-width: 0 !important; }
    .white-ip-table-wrap .layui-table th,
    .white-ip-table-wrap .layui-table td {
        padding: 6px 0px !important;
        font-size: 12px !important;
    }
    .white-ip-table-wrap .layui-table td .layui-btn-sm {
        padding: 0 6px !important;
        font-size: 11px !important;
        height: 24px !important;
        line-height: 24px !important;
    }
    .layui-layer-content .bg-white {
        padding: 10px 12px !important;
        font-size: 11px !important;
        line-height: 1.6 !important;
    }
}

/* Mini card-head action group on the right */
.uc-card-head-actions {
    margin-left: auto;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    gap: 10px;
}
.uc-card-head-actions .uc-btn-add {
    background: linear-gradient(135deg, #1e9fff 0%, #2c7be5 100%);
    background: -ms-linear-gradient(135deg, #1e9fff 0%, #2c7be5 100%);
    color: #ffffff;
    border: none;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    gap: 4px;
    -webkit-tap-highlight-color: transparent;
}
.uc-card-head-actions .uc-btn-add:hover {
    opacity: 0.9;
    filter: alpha(opacity=90);
}
.uc-card-head-actions .uc-btn-add i {
    font-size: 13px;
}

/* ============================================================
   Recharge page specific tweaks
   - Pay-method cards (TRC20-USDT / ERC-USDT / etc.)
   - Preset amount chips
   - Submit hero / CTA
   ============================================================ */

/* Left-right content split inside a single recharge card */
.uc-recharge-body {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin: 0 -12px;
}

.uc-recharge-col {
    -ms-flex: 1 1 0%;
    flex: 1 1 0%;
    min-width: 260px;
    padding: 0 12px;
    box-sizing: border-box;
    margin-bottom: 16px;
}

/* Payment method list */
.uc-paylist {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin: 0 -8px;
}

.uc-pay-item {
    -ms-flex: 0 0 calc(50% - 16px);
    flex: 0 0 calc(50% - 16px);
    margin: 8px;
    box-sizing: border-box;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fafbfc;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
}

.uc-pay-item:hover {
    border-color: #1e9fff;
    background: #f5f9ff;
}

.uc-pay-item.uc-pay-active {
    border-color: #1e9fff;
    background: linear-gradient(90deg, rgba(30, 159, 255, 0.08) 0%, rgba(30, 159, 255, 0.02) 100%);
    background: -ms-linear-gradient(90deg, #e3f0ff 0%, #f5f9ff 100%);
    box-shadow: 0 4px 12px rgba(30, 159, 255, 0.15);
}

.uc-pay-item .uc-pay-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #eef2f7;
    margin-right: 12px;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    flex-shrink: 0;
    -ms-flex-negative: 0;
}

/* When the icon is an <img> directly inside .uc-pay-item (original USDT PNG),
   make sure it spans the same 44x44 container. */
.uc-pay-item > img.uc-pay-icon {
    width: 44px;
    height: 44px;
    -o-object-fit: contain;
    object-fit: contain;
}

.uc-pay-item .uc-pay-icon img {
    max-width: 28px;
    max-height: 28px;
}

.uc-pay-item .uc-pay-text {
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    min-width: 0;
}

.uc-pay-item .uc-pay-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a202c;
    line-height: 18px;
    margin: 0 0 4px;
}

.uc-pay-item .uc-pay-sub {
    font-size: 11px;
    color: #98a2b3;
    line-height: 14px;
    margin: 0;
}

.uc-pay-item .uc-pay-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 50%;
    background: #cbd5e0;
    color: #ffffff;
    font-size: 11px;
    transition: all 0.2s ease;
}

.uc-pay-item.uc-pay-active .uc-pay-check {
    background: #1e9fff;
    box-shadow: 0 2px 6px rgba(30, 159, 255, 0.4);
}

/* Preset amount chips */
.uc-amount-grid {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin: 0 -6px;
}

.uc-amount-chip {
    -ms-flex: 0 0 calc(33.3333% - 12px);
    flex: 0 0 calc(33.3333% - 12px);
    margin: 6px;
    box-sizing: border-box;
    padding: 14px 8px;
    text-align: center;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fafbfc;
    color: #4a5568;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 20px;
}

.uc-amount-chip:hover {
    border-color: #1e9fff;
    background: #f5f9ff;
    color: #1e9fff;
}

.uc-amount-chip.uc-amount-active {
    border-color: #1e9fff;
    background: linear-gradient(135deg, #1e9fff 0%, #2c7be5 100%);
    background: -ms-linear-gradient(135deg, #1e9fff 0%, #2c7be5 100%);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(30, 159, 255, 0.3);
}

.uc-amount-chip .uc-amount-unit {
    font-size: 11px;
    font-weight: 400;
    margin-left: 2px;
    opacity: 0.85;
}

/* Custom amount (highlighted state when selected) */
.uc-amount-chip.uc-amount-custom {
    font-size: 13px;
    color: #718096;
}

.uc-amount-chip.uc-amount-custom.uc-amount-active {
    color: #ffffff;
}

/* Custom amount input row */
.uc-custom-amount {
    display: none;
    margin-top: 10px;
    padding: 14px 16px;
    background: #fafbfc;
    border: 1px dashed #d6e4f2;
    border-radius: 8px;
}

.uc-custom-amount.uc-custom-visible {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
}

.uc-custom-amount label {
    font-size: 13px;
    color: #4a5568;
    margin-right: 10px;
    font-weight: 500;
    white-space: nowrap;
}

.uc-custom-amount .uc-custom-input {
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    min-width: 0;
    height: 38px;
    line-height: 38px;
    padding: 0 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    background: #ffffff;
    box-sizing: border-box;
}

.uc-custom-amount .uc-custom-input:focus {
    outline: none;
    border-color: #1e9fff;
}

.uc-custom-amount .uc-custom-suffix {
    padding: 0 10px;
    height: 38px;
    line-height: 38px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 0;
    border-radius: 0 6px 6px 0;
    color: #718096;
    font-size: 13px;
    margin-left: -1px !important;
}

/* Submit CTA - big recharge button */
.uc-recharge-submit {
    margin-top: 18px;
}

.uc-recharge-submit .uc-btn-recharge {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    line-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #1e9fff 0%, #2c7be5 100%);
    background: -ms-linear-gradient(135deg, #1e9fff 0%, #2c7be5 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(30, 159, 255, 0.4);
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
}

.uc-recharge-submit .uc-btn-recharge:hover {
    box-shadow: 0 8px 22px rgba(30, 159, 255, 0.55);
    transform: translateY(-1px);
    -ms-transform: translateY(-1px);
}

.uc-recharge-submit .uc-btn-recharge:active {
    transform: translateY(0);
    -ms-transform: translateY(0);
}

.uc-recharge-submit .uc-btn-recharge i {
    margin-right: 6px;
    font-size: 16px;
}

/* Summary panel on the right side */
.uc-recharge-summary {
    background: linear-gradient(135deg, #f7fbff 0%, #ffffff 100%);
    background: -ms-linear-gradient(135deg, #f7fbff 0%, #ffffff 100%);
    border: 1px solid #e3f0ff;
    border-radius: 12px;
    padding: 18px 20px;
}

.uc-recharge-summary .uc-summary-row {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.uc-recharge-summary .uc-summary-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.uc-recharge-summary .uc-summary-label {
    color: #718096;
    font-size: 13px;
}

.uc-recharge-summary .uc-summary-value {
    color: #1a202c;
    font-size: 14px;
    font-weight: 600;
    word-break: break-all;
    text-align: right;
}

.uc-recharge-summary .uc-summary-value .uc-summary-currency {
    color: #95a5a6;
    font-size: 12px;
    font-weight: 500;
    margin-right: 2px;
}

.uc-recharge-summary .uc-summary-total {
    margin-top: 12px;
    padding-top: 14px;
    border-top: 2px solid #1e9fff;
    text-align: center;
}

.uc-recharge-summary .uc-summary-total-label {
    color: #718096;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 6px;
}

.uc-recharge-summary .uc-summary-total-value {
    color: #e74c3c;
    font-size: 28px;
    font-weight: 700;
    line-height: 32px;
    margin: 0;
}

.uc-recharge-summary .uc-summary-total-value .uc-summary-currency {
    color: #95a5a6;
    font-size: 16px;
    font-weight: 500;
    margin-right: 2px;
}

/* Mini notice list for recharge card */
.uc-recharge-tips {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.uc-recharge-tips li {
    position: relative;
    padding-left: 22px;
    color: #4a5568;
    font-size: 13px;
    line-height: 22px;
    margin-bottom: 6px;
}

.uc-recharge-tips li:last-child {
    margin-bottom: 0;
}

.uc-recharge-tips li:before {
    content: "";
    position: absolute;
    left: 6px;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #1e9fff;
}

.uc-recharge-tips li strong {
    color: #dd6b20;
}

@media (max-width: 768px) {
    .uc-recharge-col {
        -ms-flex: 0 0 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
    .uc-pay-item {
        -ms-flex: 0 0 calc(100% - 16px);
        flex: 0 0 calc(100% - 16px);
    }
    .uc-amount-chip {
        -ms-flex: 0 0 calc(50% - 12px);
        flex: 0 0 calc(50% - 12px);
    }
    .uc-recharge-summary .uc-summary-total-value {
        font-size: 24px;
    }
}

/* Hide the original layui form items - we re-render with our own markup */
/* Hide only the original layui form items, NOT the custom amount input
   (we reuse a plain <input type="number"> inside .uc-custom-amount;
   keeping it visible so users can actually type a custom amount) */
.uc-recharge-form .layui-form-item {
    margin: 0;
    padding: 0;
    clear: none;
}

.uc-recharge-form .layui-form-label {
    display: none;
}

.uc-recharge-form .layui-input-block {
    margin-left: 0;
}

/* Hide layui's original radio styling so our chip UI takes over, but keep
   other inputs (especially the custom-amount number field) fully visible. */
.uc-recharge-form .layui-unselect,
.uc-recharge-form input[type="radio"] {
    display: none !important;
}

.uc-recharge-form input[type="number"] {
    display: block !important;
}

/* ============================================================
   Recharge page — compact layout (hero right side, slimmer card)
   ============================================================ */

/* Hero: collapse right side into a tight horizontal info strip */
.uc-hero.uc-hero-recharge {
    padding: 13px 22px;
    -ms-flex-align: center;
    align-items: center;
}

.uc-hero.uc-hero-recharge .uc-hero-right {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-top: 0;
    color: #4a5568;
    font-size: 13px;
    line-height: 18px;
}

.uc-hero.uc-hero-recharge .uc-hero-user {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    padding-right: 14px;
    margin-right: 14px;
    border-right: 1px dashed #d6e4f2;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.uc-hero.uc-hero-recharge .uc-hero-user > i {
    color: #1e9fff;
    margin-right: 6px;
    font-size: 18px;
	margin-top: -3px;
}

.uc-hero.uc-hero-recharge .uc-hero-user-label {
    color: #718096;
    font-size: 14px;
    margin-right: 4px;
}

.uc-hero.uc-hero-recharge .uc-hero-user-name {
    color: #1a202c;
    font-weight: 600;
    font-size: 14px;
}

.uc-hero.uc-hero-recharge .uc-hero-balance {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    padding-right: 14px;
    margin-right: 14px;
    border-right: 1px dashed #d6e4f2;
}

.uc-hero.uc-hero-recharge .uc-hero-balance-label {
    color: #718096;
    font-size: 12px;
    letter-spacing: 0.5px;
    margin-right: 6px;
}

.uc-hero.uc-hero-recharge .uc-hero-balance-value {
    color: #e74c3c;
    font-weight: 700;
    font-size: 18px;
    line-height: 22px;
}

.uc-hero.uc-hero-recharge .uc-hero-balance-currency {
    color: #95a5a6;
    font-size: 13px;
    font-weight: 500;
    margin-right: 1px;
}

.uc-hero.uc-hero-recharge .uc-hero-meta {
    color: #718096;
    font-size: 12px;
}

.uc-hero.uc-hero-recharge .uc-hero-meta i {
    margin-right: 4px;
}

/* Slim down the recharge card body & form layout */
.uc-card.uc-card-recharge .uc-card-body {
    padding: 16px 22px 18px;
}

.uc-card.uc-card-recharge .uc-card-head {
    padding: 12px 22px;
}

.uc-recharge-form .uc-recharge-body {
    margin: 0;
}

.uc-recharge-form .uc-recharge-col {
    padding: 0;
    margin-bottom: 0;
}

/* Trim spacings inside the form so the whole card stays compact */
.uc-card.uc-card-recharge .uc-form-label {
    margin: 0 0 8px;
}

.uc-card.uc-card-recharge .uc-paylist {
    margin: 0 -6px;
}

.uc-card.uc-card-recharge .uc-pay-item {
    margin: 0 6px 0 0;
    -ms-flex: 0 0 240px;
    flex: 0 0 240px;
    max-width: 280px;
    padding: 10px 14px;
}

.uc-card.uc-card-recharge .uc-pay-item .uc-pay-icon {
    width: 36px;
    height: 36px;
    margin-right: 10px;
}

.uc-card.uc-card-recharge .uc-pay-item > img.uc-pay-icon {
    width: 36px;
    height: 36px;
    margin-right: 10px;
}

.uc-card.uc-card-recharge .uc-pay-item .uc-pay-title {
    font-size: 13px;
    margin: 0 0 2px;
}

.uc-card.uc-card-recharge .uc-pay-item .uc-pay-sub {
    font-size: 11px;
    line-height: 13px;
}

.uc-card.uc-card-recharge .uc-amount-grid {
    margin: 0 -4px;
}

.uc-card.uc-card-recharge .uc-amount-chip {
    -ms-flex: 0 0 calc(16.6666% - 8px);
    flex: 0 0 calc(16.6666% - 8px);
    margin: 4px;
    padding: 10px 6px;
    font-size: 14px;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    line-height: 1;
}
.uc-card.uc-card-recharge .uc-amount-chip .layui-icon {
    font-size: 14px;
	margin-right: 5px;
}
.uc-card.uc-card-recharge .uc-amount-chip > i.fa {
    margin-right: 4px;
    font-size: 12px;
    color: #95a5a6;
}

/* Selected chip: $ icon (and any other icon) turns white */
.uc-card.uc-card-recharge .uc-amount-chip.uc-amount-active > i.fa {
    color: #ffffff;
}

/* When the "custom amount" button is selected, the input wrap gets the
   same active style — its $ prefix icon turns blue. */
.uc-card.uc-card-recharge #customAmountBtn.uc-amount-active {
    border-color: #1e9fff;
    background: linear-gradient(135deg, #1e9fff 0%, #2c7be5 100%);
    background: -ms-linear-gradient(135deg, #1e9fff 0%, #2c7be5 100%);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(30, 159, 255, 0.3);
}

.uc-card.uc-card-recharge #customAmountBtn.uc-amount-active > i.fa {
    color: #ffffff;
}

.uc-card.uc-card-recharge .uc-custom-amount .uc-custom-input-wrap:focus-within {
    border-color: #1e9fff;
    box-shadow: 0 0 0 3px rgba(30, 159, 255, 0.12);
}

.uc-card.uc-card-recharge .uc-custom-amount .uc-custom-input-wrap:focus-within .uc-custom-prefix {
    color: #1e9fff;
}

.uc-card.uc-card-recharge .uc-amount-chip .uc-amount-unit {
    font-size: 10px;
}

/* "Custom amount" row sits on its own line under the preset grid */
.uc-card.uc-card-recharge .uc-custom-amount {
    margin-top: 10px;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    padding: 0;
    background: transparent;
    border: 0;
}

.uc-card.uc-card-recharge .uc-custom-amount .uc-amount-custom-btn {
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    width: auto;
	height: 38px;
    padding: 8px 14px;
    font-size: 13px;
    margin: 0;
}

.uc-card.uc-card-recharge .uc-custom-amount .uc-amount-custom-btn > i.fa {
    margin-right: 6px;
    font-size: 12px;
}

.uc-card.uc-card-recharge .uc-custom-amount .uc-custom-input-wrap {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    max-width: 150px;
    width: 120px;
    height: 36px;
    margin-left: 8px;
    padding: 0 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #ffffff;
    -webkit-transition: border-color 0.18s, box-shadow 0.18s;
    transition: border-color 0.18s, box-shadow 0.18s;
}

.uc-card.uc-card-recharge .uc-custom-amount .uc-custom-input-wrap:focus-within {
    border-color: #1e9fff;
    box-shadow: 0 0 0 3px rgba(30, 159, 255, 0.12);
}

.uc-card.uc-card-recharge .uc-custom-amount .uc-custom-prefix {
    color: #95a5a6;
    font-size: 12px;
    margin-right: 4px;
    line-height: 1;
}

.uc-card.uc-card-recharge .uc-custom-amount .uc-custom-input {
    border: 0;
    outline: none;
    width: 100%;
    padding: 0;
    margin: 0;
    background: transparent;
    font-size: 14px;
    color: #1a202c;
    -moz-appearance: textfield;
}

.uc-card.uc-card-recharge .uc-custom-amount .uc-custom-input::-webkit-outer-spin-button,
.uc-card.uc-card-recharge .uc-custom-amount .uc-custom-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.uc-card.uc-card-recharge .uc-recharge-submit {
    margin-top: 14px;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: center;
    justify-content: center;
}

.uc-card.uc-card-recharge .uc-recharge-submit .uc-btn-recharge {
    width: auto;
    height: 44px;
    line-height: 44px;
    font-size: 15px;
    border-radius: 8px;
    padding: 0 28px;
}

/* Bottom notice — compact, single line on wide screens */
.uc-notice.uc-notice-recharge {
    margin-top: 14px;
    padding: 10px 14px;
    font-size: 12px;
    line-height: 20px;
}

@media (max-width: 992px) {
    .uc-hero.uc-hero-recharge {
        padding: 14px 18px;
    }
}

@media (max-width: 768px) {
    .uc-hero.uc-hero-recharge .uc-hero-right {
        width: 100%;
        -ms-flex-pack: start;
        justify-content: center;
        margin-top: 10px;
    }
    .uc-hero.uc-hero-recharge .uc-hero-user,
    .uc-hero.uc-hero-recharge .uc-hero-balance {
        border-right: 0;
        padding-right: 0;
        margin-right: 12px;
    }
    .uc-card.uc-card-recharge .uc-pay-item {
        -ms-flex: 0 0 calc(100% - 6px);
        flex: 0 0 calc(100% - 6px);
        max-width: 100%;
    }
    .uc-card.uc-card-recharge .uc-amount-chip {
        -ms-flex: 0 0 calc(33.3333% - 8px);
        flex: 0 0 calc(33.3333% - 8px);
    }
}

/* ============================================================
   Settlement page hero right user info styles
   ============================================================ */
.uc-hero .uc-hero-right {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;

    color: #718096;
    font-size: 12px;
    margin-top: 6px;
}

.uc-hero .uc-user-info {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.uc-hero .uc-user-row {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    padding-right: 14px;
    margin-right: 14px;
    border-right: 1px dashed #d6e4f2;
}

.uc-hero .uc-user-label {
    color: #718096;
    font-size: 12px;
    margin-right: 4px;
}

.uc-hero .uc-user-value {
    color: #1a202c;
    font-weight: 500;
    font-size: 13px;
}

.uc-hero .uc-balance-row {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
}

.uc-hero .uc-balance-label {
    color: #718096;
    font-size: 12px;
    margin-right: 4px;
}

.uc-hero .uc-balance-value {
    color: #e74c3c;
    font-weight: 700;
    font-size: 18px;
    line-height: 22px;
    margin-right: 10px;
}

.uc-hero .recharge-btn {
    display: inline-block;
    height: 32px;
    line-height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    background: linear-gradient(135deg, #1e9fff 0%, #2c7be5 100%);
    background: -ms-linear-gradient(135deg, #1e9fff 0%, #2c7be5 100%);
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.uc-hero .recharge-btn:hover {
    opacity: 0.9;
    filter: alpha(opacity=90);
    text-decoration: none;
    color: #ffffff;
}

.uc-hero .uc-hero-user {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    padding-right: 14px;
    margin-right: 14px;
    border-right: 1px dashed #d6e4f2;
}

.uc-hero .uc-hero-user > i {
    color: #1e9fff;
    margin-right: 6px;
    font-size: 16px;
}

.uc-hero .uc-hero-user-label {
    color: #718096;
    font-size: 12px;
    margin-right: 4px;
}

.uc-hero .uc-hero-user-name {
    color: #1a202c;
    font-weight: 500;
    font-size: 13px;
}

.uc-hero .uc-hero-balance {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    margin-right: 10px;
}

.uc-hero .uc-hero-balance-label {
    color: #718096;
    font-size: 12px;
    margin-right: 4px;
}

.uc-hero .uc-hero-balance-value {
    color: #e74c3c;
    font-weight: 700;
    font-size: 18px;
    line-height: 22px;
}

.uc-hero .uc-hero-balance-currency {
    font-size: 12px;
    margin-right: 2px;
}

.uc-logout-btn {
    display: inline-flex;
    align-items: center;
    -ms-flex-align: center;
    height: 36px;
    line-height: 36px;
    padding: 0 18px;
    border-radius: 6px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    background: -ms-linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.uc-logout-btn:hover {
    opacity: 0.9;
    filter: alpha(opacity=90);
}

.uc-logout-btn > i {
    margin-right: 6px;
	margin-top: -2px;
    font-size: 16px;
}

@media (max-width: 768px) {
    .uc-hero .uc-user-row {
        border-right: 0;
        padding-right: 0;
        margin-right: 12px;
    }
    .uc-hero .uc-hero-right {
        width: 100%;
        -ms-flex-pack: start;
        justify-content: center;
        margin-top: 10px;
    }
    .uc-hero .uc-hero-right {
        width: 100%;
        -ms-flex-pack: start;
        justify-content: center;
        margin-top: 10px;
    }
}

/* ============================================================
   Modal popup styles (for email verification, email change, mobile change)
   Used in /main/index.html dynamic layer content
   ============================================================ */
.layui-layer-content .modal-content {
    padding: 16px !important;
    box-sizing: border-box !important;
    display: block !important;
}

.layui-layer-content .modal-row {
    margin-bottom: 12px !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -ms-flex-direction: column !important;
    flex-direction: column !important;
    -ms-flex-align: stretch !important;
    align-items: stretch !important;
    width: 100% !important;
}

.layui-layer-content .modal-row:last-child {
    margin-bottom: 0 !important;
}

.layui-layer-content .modal-row .label {
    color: #4a5568 !important;
    font-size: 13px !important;
    white-space: nowrap !important;
    margin-bottom: 4px !important;
    padding: 0 !important;
    width: 100% !important;
}

.layui-layer-content .modal-strong {
    color: #1e9fff !important;
    font-weight: 600 !important;
}

.layui-layer-content .modal-row .modal-input {
    width: 100% !important;
    height: 38px !important;
    line-height: 38px !important;
    padding: 0 12px !important;
    border: 1px solid #dcdfe6 !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    color: #4a5568 !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
    outline: none !important;
}

.layui-layer-content .modal-input:focus {
    border-color: #1e9fff !important;
    box-shadow: 0 0 0 2px rgba(30, 159, 255, 0.1) !important;
}

.layui-layer-content .modal-input::placeholder {
    color: #98a2b3 !important;
}

.layui-layer-content .modal-code-row {
    display: -ms-flexbox !important;
    display: flex !important;
    -ms-flex-direction: row !important;
    flex-direction: row !important;
    -ms-flex-align: center !important;
    align-items: center !important;
    margin-bottom: 12px !important;
    width: 100% !important;
    -ms-flex-wrap: nowrap !important;
    flex-wrap: nowrap !important;
}

.layui-layer-content .modal-code-input {
    -ms-flex: 1 1 auto !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    height: 38px !important;
    line-height: 38px !important;
    padding: 0 12px !important;
    border: 1px solid #dcdfe6 !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    color: #4a5568 !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
    outline: none !important;
    margin-right: 8px !important;
    width: auto !important;
}

.layui-layer-content .modal-code-input:focus {
    border-color: #1e9fff !important;
    box-shadow: 0 0 0 2px rgba(30, 159, 255, 0.1) !important;
}

.layui-layer-content .modal-resend-btn {
    -ms-flex: 0 0 auto !important;
    flex: 0 0 auto !important;
    height: 38px !important;
    line-height: 38px !important;
    padding: 0 16px !important;
    border: none !important;
    border-radius: 4px !important;
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%) !important;
    background: -ms-linear-gradient(135deg, #ff9800 0%, #f57c00 100%) !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: all 0.2s ease !important;
    margin: 0 !important;
    width: auto !important;
}

.layui-layer-content .modal-resend-btn:hover {
    opacity: 0.9 !important;
    filter: alpha(opacity=90) !important;
}

.layui-layer-content .modal-resend-btn.layui-btn-disabled {
    background: #cbd5e0 !important;
    cursor: not-allowed !important;
}

@media (max-width: 768px) {
    .layui-layer-content .modal-content {
        padding: 14px !important;
    }
    .layui-layer-content .modal-row {
        -ms-flex-direction: column !important;
        flex-direction: column !important;
        -ms-flex-align: stretch !important;
        align-items: stretch !important;
    }
    .layui-layer-content .modal-row .label {
        width: 100% !important;
        margin-bottom: 4px !important;
        -ms-flex: 0 0 auto !important;
        flex: 0 0 auto !important;
    }
    .layui-layer-content .modal-input {
        width: 100% !important;
    }
    .layui-layer-content .modal-code-row {
        -ms-flex-direction: column !important;
        flex-direction: column !important;
        -ms-flex-align: stretch !important;
        align-items: stretch !important;
    }
    .layui-layer-content .modal-code-input {
        margin-right: 0 !important;
        margin-bottom: 8px !important;
        width: 100% !important;
    }
    .layui-layer-content .modal-resend-btn {
        width: 100% !important;
    }
}
