:root{
    --primary:#e57e24;
    --primary-dark:#c96514;
    --text:#0f172a;
    --muted:#64748b;
    --border:#e5e7eb;
    --card:#ffffff;
    --bg:#f8fafc;
    --shadow:0 8px 24px rgba(15,23,42,.05);
}

*{box-sizing:border-box}
html, body{
    height:100%;
}

body{
    min-height:100vh;
    display:flex;
    flex-direction:column;
}

#main{
    flex:1;
    padding:12px 0 40px;
    background:linear-gradient(180deg,#fff 0%,#fffaf5 24%,#f8fafc 100%);
}


.proxy-wrap{
    max-width:1450px; /* hoặc 1400px nếu nav to hơn */
    width:100%;
    margin:0 auto;
    padding:0 24px;
}
.section-breadcrumb{margin-bottom:12px}
.breadcrumb{
    display:flex;
    align-items:center;
    gap:8px;
    margin:0;
    padding:0;
    list-style:none;
    background:transparent;
}
.breadcrumb-item{
    font-size:14px;
    font-weight:400;
    color:#0f172a;
    line-height:1.45;
}
.breadcrumb-item + .breadcrumb-item::before{
    content:"/";
    margin-right:8px;
    color:#94a3b8;
    font-weight:400;
}
.breadcrumb-item a{
    color:#0f172a;
    text-decoration:none;
    font-weight:400 !important;
}
.breadcrumb-item.active{
    color:#0f172a;
    font-weight:700 !important;
}

/* HERO */
.hero-card{
    margin-bottom:12px;
    border-radius:20px;
    padding:16px 18px;
    color:#e5e7eb;
    background:linear-gradient(90deg,#ff7a18 0%,#f35b04 55%,#d94f04 100%);
    box-shadow:0 14px 30px rgba(229,126,36,.18);
    position:relative;
    overflow:hidden;
}
.hero-card::after{
    content:"";
    position:absolute;
    right:-40px;
    top:-40px;
    width:180px;
    height:180px;
    border-radius:50%;
    background:rgba(255,255,255,.06);
    pointer-events:none;
}
.hero-row{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:16px;
    position:relative;
    z-index:1;
}
.hero-left{
    display:flex;
    align-items:flex-start;
    gap:14px;
    flex:1;
    min-width:0;
}
.hero-icon{
    width:52px;
    height:52px;
    min-width:52px;
    border-radius:16px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:22px;
    color:#fff;
    background:linear-gradient(135deg,#f59e0b 0%,#e57e24 55%,#c96514 100%);
    border:1px solid rgba(255,255,255,.28);
    box-shadow:
        0 10px 24px rgba(229,126,36,.28),
        inset 0 1px 0 rgba(255,255,255,.22);
    animation:heroIconFloat 2.8s ease-in-out infinite;
    position:relative;
}

.hero-icon::after{
    content:"";
    position:absolute;
    inset:-5px;
    border-radius:20px;
    border:1px solid rgba(229,126,36,.18);
    opacity:.8;
    animation:heroIconPulse 2.8s ease-in-out infinite;
}

@keyframes heroIconFloat{
    0%,100%{transform:translateY(0)}
    50%{transform:translateY(-4px)}
}

@keyframes heroIconPulse{
    0%,100%{transform:scale(1);opacity:.55}
    50%{transform:scale(1.08);opacity:.2}
}
.hero-title{
    margin:0 0 5px;
    font-size:16px;
    line-height:1.2;
    font-weight:800;
    color:#fff;
}
.hero-desc{
    margin:0;
    color:rgba(255,255,255,.94);
    font-size:13px;
    line-height:1.55;
}
.hero-stats{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:12px;
}
.hero-chip{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:30px;
    padding:0 12px;
    border-radius:999px;
    border:1px solid rgba(255,255,255,.14);
    background:rgba(255,255,255,.12);
    color:#fff;
    font-size:12px;
    font-weight:700;
    white-space:nowrap;
}

@keyframes homeMarquee{
    0%{transform:translateX(0)}
    100%{transform:translateX(-100%)}
}

.home-marquee-bar{
    background:#f97316;
    color:#fff;
    overflow:hidden;
    position:relative;
    padding:8px 0;
    margin-top:-12px;
    margin-bottom:12px;
}

.home-marquee-track{
    display:inline-block;
    white-space:nowrap;
    padding-left:100%;
    animation:homeMarquee 18s linear infinite;
    font-size:13px;
    font-weight:600;
}

.home-marquee-text{
    display:inline-block;
    margin:0 24px;
}

/* STATS */
.stats-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
    margin-bottom:12px;
}
.stat-card{
    background:#fff;
    border:1px solid #e6ebf1;
    border-radius:22px;
    box-shadow:var(--shadow);
    min-height:84px;
    padding:16px 18px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    min-width:0;
}
.stat-card.featured{
    color:#fff;
    border:none;
    background:linear-gradient(135deg,#f59e0b 0%,#e57e24 55%,#d97706 100%);
    box-shadow:0 12px 28px rgba(229,126,36,.18);
}
.stat-label{
    font-size:13px;
    line-height:1.35;
    font-weight:700;
    color:#64748b;
    margin-bottom:6px;
}
.stat-card.featured .stat-label{color:rgba(255,255,255,.94)}
.stat-value{
    font-size:16px;
    line-height:1.15;
    font-weight:900;
    color:#0f172a;
    word-break:break-word;
}
.stat-card.featured .stat-value{color:#fff}
/* ===== HERO RIGHT STATS ===== */
.hero-row{
    align-items:center;
    justify-content:space-between;
    gap:18px;
}

.hero-left{
    flex:1;
    min-width:0;
    align-self:center;
}

.hero-side-stats{
    flex:0 0 auto;
    display:grid;
    grid-template-columns:repeat(3, minmax(110px, 1fr));
    gap:10px;
    align-items:stretch;
    width:auto;
    min-width:0;
}

.hero-side-stats .stat-card{
    min-width:110px;
    min-height:108px;
    padding:14px 14px;
    border-radius:18px;
    justify-content:center;
    align-items:center;
    text-align:center;
}

.hero-side-stats .stat-label{
    font-size:12px;
    line-height:1.32;
    margin-bottom:7px;
}

.hero-side-stats .stat-value{
    font-size:17px;
    line-height:1.15;
    font-weight:900;
    word-break:break-word;
}

.hero-side-stats .stat-card.featured .stat-value{
    font-size:17px;
}

.stats-grid{
    display:none;
}

@media (max-width:1180px){
    .hero-row{
        flex-direction:column;
        align-items:stretch;
    }

    .hero-side-stats{
        width:100%;
        grid-template-columns:repeat(3, minmax(0, 1fr));
        margin-top:12px;
    }

    .hero-side-stats .stat-card{
        min-width:0;
    }
}

@media (max-width:768px){
    .hero-side-stats{
        grid-template-columns:repeat(3, minmax(0, 1fr));
        gap:8px;
        margin-top:10px;
    }
    .hero-card{
        padding:12px 12px;   /* giảm khoảng cách */
        border-radius:18px;  /* bớt bo */
        margin-bottom:10px;  /* bớt cách dưới */
    }
    .hero-side-stats .stat-card{
        min-height:80px;
        padding:10px 8px;
        border-radius:14px;
        display:flex;
        flex-direction:column;
        align-items:center;
        justify-content:center;
        text-align:center;
    }

    .hero-side-stats .stat-label{
        font-size:11px;
        line-height:1.25;
        margin-bottom:4px;
    }

    .hero-side-stats .stat-value,
    .hero-side-stats .stat-card.featured .stat-value{
        font-size:14px;
        line-height:1.15;
        font-weight:900;
    }
}

@media (max-width:480px){
    .hero-side-stats .stat-card{
        padding:8px 6px;
        min-height:72px;
    }

    .hero-side-stats .stat-label{
        font-size:10px;
    }

    .hero-side-stats .stat-value,
    .hero-side-stats .stat-card.featured .stat-value{
        font-size:13px;
    }
}
/* SIDEBAR */
.sidebar-toggle{
    display:none;
    align-items:center;
    justify-content:center;
    gap:8px;
    height:40px;
    padding:0 14px;
    margin:0 0 12px;
    border:none;
    border-radius:10px;
    background:linear-gradient(135deg,var(--primary) 0%,#f59e0b 100%);
    color:#fff;
    font-size:13px;
    font-weight:800;
    cursor:pointer;
}
.sidebar-overlay{display:none}

.layout{
    display:grid;
    grid-template-columns:285px minmax(0,1fr);
    gap:14px;
    align-items:start;
}
.sidebar{
    position:sticky;
    top:88px;
    align-self:start;
    height:fit-content;
    background:linear-gradient(180deg,#ffffff 0%,#fffaf5 100%);
    border:1px solid #e8edf3;
    border-radius:22px;
    box-shadow:var(--shadow);
    padding:14px;
    overflow:hidden;
}
.brand{
    padding:2px 0 12px;
    margin-bottom:12px;
    border-bottom:1px solid #edf2f7;
}
.brand-logo{
    font-size:18px;
    line-height:1;
    font-weight:900;
    letter-spacing:.2px;
    color:#0f172a;
}
.brand-logo span{color:var(--primary)}
.menu-title{
    margin:0 2px 10px;
    font-size:11px;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase;
    color:#94a3b8;
}
.menu{
    display:flex;
    flex-direction:column;
    gap:6px;
}

.menu a{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    min-height:38px;
    padding:8px 12px;
    border-radius:8px;
    font-size:13px;
    font-weight:800;
    color:#334155;
    background:#fff;
    border:1px solid #eef2f7;
    transition:.18s ease;
}
.menu a.active,
.menu a:hover{
    color:#fff;
    border-color:transparent;
    background:linear-gradient(135deg,#f59e0b 0%,#e57e24 100%);
    box-shadow:0 10px 20px rgba(229,126,36,.14);
}

.content-area{
    min-width:0;
    width:100%;
    overflow:hidden;
}

/* CARD CHUNG */
.form-card,
.page-head,
.result-card{
    background:#fff;
    border:1px solid #e6ebf1;
    border-radius:22px;
    box-shadow:var(--shadow);
    padding:16px 18px;
    margin-bottom:12px;
    min-width:0;
}
.page-head h1,
.page-head h2,
.form-card h3{
    margin:0 0 6px;
    font-size:16px;
    font-weight:800;
    color:#0f172a;
}
.page-head p,
.form-card p{
    margin:0;
    color:#64748b;
    line-height:1.55;
    font-size:13px;
}
.page-head-sm{
    margin-top:12px;
}

/* TAB MUA PROXY = ĐỒNG BỘ DANH SÁCH PROXY */
.proxy-mobile-tabs{
    display:flex;
    gap:8px;
    flex-wrap:nowrap;
    overflow-x:auto;
    padding:2px;
    margin:0 0 14px;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
}
.proxy-mobile-tabs::-webkit-scrollbar{
    display:none;
}

.proxy-mobile-tabs .proxy-tab-btn{
    flex:0 0 auto;
    height:36px;
    padding:0 14px;
    border:1px solid #e7e5e4;
    border-radius:999px;
    background:#fff;
    color:#0f172a;
    font-size:12px;
    font-weight:800;
    line-height:1;
    white-space:nowrap;
    cursor:pointer;
    box-shadow:0 4px 10px rgba(15,23,42,.04);
    transition:.18s ease;
}


.proxy-mobile-tabs .proxy-tab-btn:hover{
    border-color:transparent;
    background:#fff;
    color:#0f172a;
}

.proxy-mobile-tabs .proxy-tab-btn.active{
    border-color:transparent;
    background:linear-gradient(135deg,#f59e0b 0%,#e57e24 100%);
    color:#fff;
    box-shadow:0 8px 18px rgba(229,126,36,.22);
}

.proxy-tab-panel{
    min-width:0;
    width:100%;
    margin-top:0;
}

@media (min-width:768px){
    .proxy-mobile-tabs{
        gap:10px;
    }

    .proxy-mobile-tabs .proxy-tab-btn{
        height:40px;
        padding:0 16px;
        font-size:13px;
    }
}
/* GRID MUA PROXY */
.proxy-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:10px;
    row-gap:16px;
    align-items:start;
    margin-top:14px;
}


.proxy-card{
    background:#fff;
    border:1px solid #e6ebf1;
    border-radius:16px;
    box-shadow:var(--shadow);
    padding:0;
    margin-bottom:0;
    overflow:hidden;
    min-width:0;
    width:100%;
    transition:transform .16s ease, box-shadow .16s ease;
}
.proxy-card:hover{
    transform:translateY(-2px);
    box-shadow:0 14px 28px rgba(15,23,42,.07);
}
.proxy-card-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:6px;
    padding:10px 12px;
    background:linear-gradient(135deg,#f59e0b 0%,#e57e24 100%);
    color:#fff;
    font-size:15px;
    line-height:1.2;
    font-weight:800;
    word-break:break-word;
}

.proxy-buy-btn[disabled]{
    opacity: .65;
    cursor: not-allowed;
}
.proxy-card-head span{
    margin-left:auto;
    font-size:12px;
    font-weight:700;
    opacity:.95;
}
.proxy-card-body{
    padding:8px 10px;
}
.proxy-list{
    display:flex;
    flex-direction:column;
gap:4px;
    margin-bottom:12px;
    font-size:13px;
    line-height:1.4;
    color:#475569;
}
.proxy-list-hot{
    color:var(--primary-dark);
    font-weight:700;
}
.proxy-form-card{
    margin:0;
}
.proxy-form-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
        gap:14px 5px;
    margin-bottom:0;
}
.form-group{
    margin:0;
    min-width:0;
    display:flex;
    flex-direction:column;
}
.proxy-label{
    display:block;
    margin:0 0 1px;
    min-height:24px;
    font-size:12px;
    line-height:1.2;
    font-weight:700;
    color:#475569;
}

.qty-label-mobile{display:none;}

@media (max-width:768px){
    .qty-label-desktop{display:none;}
    .qty-label-mobile{display:inline;}
}
.proxy-input,
.proxy-input[type="text"],
.proxy-input[type="number"],
select.proxy-input{
    width:100%;
    min-width:0;
    height:34px;
    min-height:34px;
    padding:0 10px;
    border:1px solid #dbe2ea;
    border-radius:10px;
    outline:none;
    background:#fff;
    box-sizing:border-box;
    font-size:12px;
    line-height:34px;
    color:#0f172a;
    transition:border-color .18s ease, box-shadow .18s ease;
}
.proxy-input:focus,
.proxy-input[type="text"]:focus,
.proxy-input[type="number"]:focus,
select.proxy-input:focus{
    border-color:#f59e0b;
    box-shadow:0 0 0 3px rgba(245,158,11,.12);
}
.proxy-input[type="number"]{
    appearance:textfield;
    -moz-appearance:textfield;
    -webkit-appearance:none;
}
.proxy-input[type="number"]::-webkit-outer-spin-button,
.proxy-input[type="number"]::-webkit-inner-spin-button{
    margin:0;
}
select.proxy-input{
    padding-top:0;
    padding-bottom:0;
}
.proxy-price-bar{
    margin:8px 0 0;
    padding:8px 10px;
    font-size:12px;
    line-height:1.35;
    font-weight:700;
    color:var(--primary-dark);
    background:#fff7ed;
    border:1px solid #fed7aa;
    border-radius:10px;
}
.proxy-buy-btn{
    width:100%;
    height:36px;
    margin-top:8px;
    border:none;
    border-radius:10px;
    background:linear-gradient(135deg,#f59e0b 0%,#e57e24 100%);
    color:#fff;
    font-size:12px;
    font-weight:800;
    cursor:pointer;
    box-shadow:0 10px 20px rgba(229,126,36,.14);
    transition:.18s ease;
}
.proxy-buy-btn:hover{
    transform:translateY(-1px);
    box-shadow:0 12px 24px rgba(229,126,36,.18);
}

/* ===== CLEAN CSS: DANH SACH PROXY ===== */

/* card */
.proxy-oldlist-card{
    background:#fff;
    border:1px solid #e6ebf1;
    border-radius:16px;
    box-shadow:var(--shadow);
    padding:12px;
    margin-bottom:12px;
}

.proxy-oldlist-head{
    display:flex;
    align-items:center;
    justify-content:center;
    margin-bottom:10px;
}

.proxy-oldlist-head h2{
    margin:0;
    font-size:16px;
    font-weight:800;
    color:#0f172a;
}

.proxy-oldlist-tools{
    margin-bottom:10px;
}

/* toolbar */
.proxy-oldlist-toolbar-card{
    border:1px solid #e7edf5;
    border-radius:10px;
    padding:10px 12px;
    background:#fff;
}

.proxy-oldlist-toolbar-top{
    display:grid;
    grid-template-columns:minmax(0,1fr) 280px;
    gap:12px;
    align-items:end;
}
#singleSearchInput::placeholder{
    font-size:12px;
}

#singleSearchInput{
    font-size:12px;
}
.proxy-oldlist-left{
    display:flex;
    flex-wrap:wrap;
    align-items:center;  /* FIX luôn */
    gap:8px;
}

.proxy-oldlist-action-main{
    width:170px;
    min-width:170px;
}
.topup-popup-sm{
    border-radius:18px !important;
}

.topup-title-sm{
    font-size:16px !important;
    line-height:1.35 !important;
    font-weight:800 !important;
}

.topup-btn-sm{
    min-width:72px !important;
    height:36px !important;
    padding:0 14px !important;
    font-size:13px !important;
}
.proxy-oldlist-renew-wrap{
    width:72px;
    min-width:72px;
}

.proxy-oldlist-label,
.proxy-oldlist-inline label{
    display:flex;
    flex-direction:column;
    gap:4px;
    margin:0;
}
.proxy-oldlist-confirm-col{
    display:flex;
    flex-direction:column;
    gap:4px;
    margin:0;
}

.proxy-oldlist-fake-label{
    display:block;
    margin:0;
    font-size:11px;
    font-weight:700;
    line-height:1.2;
    visibility:hidden;
    user-select:none;
}

.proxy-oldlist-confirm-wrap{
    display:flex;
    align-items:center;
    gap:8px;
}
/* TÁCH RIÊNG CONFIRM */
.proxy-oldlist-confirm-wrap{
    display:flex;
    flex-direction:row;      /* FIX QUAN TRỌNG */
    align-items:center;
    gap:8px;
}
.proxy-oldlist-label span,
.proxy-oldlist-inline label span{
    display:block;
    margin:0;
    font-size:11px;
    font-weight:700;
    color:#334155;
    line-height:1.2;
}

.proxy-oldlist-inline{
    display:flex;
    flex-wrap:wrap;
    align-items:end;
    gap:8px;
}

.proxy-oldlist-secure-wrap label{
    min-width:92px;
}

.proxy-oldlist-secure-wrap label:last-child{
    min-width:82px;
}

.proxy-oldlist-search-box{
    width:100%;
    min-width:0;
    max-width:100%;
}

.proxy-oldlist-label-search{
    width:100%;
}

.proxy-oldlist-input,
.proxy-oldlist-select{
    width:100%;
    height:34px;
    min-height:34px;
    padding:0 10px;
    border:1px solid #cfd8e3;
    border-radius:8px !important;  /* THÊM DÒNG NÀY */
    background:#f8fafc;
    font-size:12px;
}

.proxy-oldlist-input:focus,
.proxy-oldlist-select:focus{
    border-color:#60a5fa;
    box-shadow:0 0 0 3px rgba(59,130,246,.10);
    background:#fff;
}

.proxy-oldlist-input.small{
    width:58px;
    min-width:58px;
    max-width:58px;
    text-align:center;
    padding:0 6px;
    font-size:12px;
}
.proxy-oldlist-confirm-wrap{
    display:flex;
    align-items:center;   /* FIX */
    gap:8px;
}

.proxy-renew-price-box{
    height:34px;
    padding:0 10px;
    border-radius:8px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#fff7ed;
    border:1px solid #fed7aa;
    color:#c96514;
    font-size:12px;
    font-weight:800;
    white-space:nowrap;
}
.proxy-oldlist-btn{
    height:34px;
    min-height:34px;
    padding:0 12px;
    border:none;
    border-radius:8px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-size:12px;
    font-weight:800;
    line-height:1;
    white-space:nowrap;
    cursor:pointer;
    transition:.18s ease;
}

.proxy-oldlist-btn.confirm,
.proxy-oldlist-btn.primary{
    background:linear-gradient(180deg,#3b82f6 0%,#2563eb 100%);
    color:#fff;
    box-shadow:0 8px 18px rgba(37,99,235,.16);
}

.proxy-oldlist-btn.light{
    background:#f1f5f9;
    border:1px solid #dbe2ea;
    color:#0f172a;
    box-shadow:none;
}

.proxy-oldlist-toolbar-bottom{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-top:10px;
    padding-top:10px;
    border-top:1px solid #eef2f7;
    flex-wrap:wrap;
}

.proxy-oldlist-toolbar-left{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
}

.proxy-oldlist-note{
    margin:0;
    font-size:11px;
    line-height:1.4;
    color:#64748b;
    text-align:right;
}

/* table */
.proxy-oldlist-table-wrap{
        height:450px;

    overflow:auto;
    border:1px solid #eef2f7;
    border-radius:14px;
}

.proxy-oldlist-table{
    width:100%;
    min-width:1080px;
    border-collapse:separate;
    border-spacing:0;
    background:#fff;
}

.proxy-oldlist-table th,
.proxy-oldlist-table td{
    padding:7px 9px;
    border-bottom:1px solid #eef2f7;
    text-align:left;
    font-size:12px;
    white-space:nowrap;
    vertical-align:middle;
}

.proxy-oldlist-table th{
    background:#f8fafc;
    color:#475569;
    font-weight:800;
    position:sticky;
    top:0;
    z-index:1;
}

.proxy-oldlist-table tbody tr:hover td{
    background:#fffaf5;
}

.proxy-oldlist-table tbody tr.is-expiring td{
    background:#fff1f2;
}

.proxy-oldlist-table td.mono{
    font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
    font-size:11px;
}

.proxy-oldlist-table td.empty{
    text-align:center;
    color:#64748b;
    padding:22px 10px;
}
.proxy-mobile-tabs{
    display:flex;
    gap:8px;
    flex-wrap:nowrap;
    overflow-x:auto;
    padding:2px;
    margin:0 0 14px;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
}
.proxy-mobile-tabs::-webkit-scrollbar{
    display:none;
}

.proxy-mobile-tabs .proxy-tab-btn{
    flex:0 0 auto;
    height:36px;
    padding:0 14px;
    border:1px solid #e7e5e4;
    border-radius:999px;
    background:#fff;
    color:#0f172a !important; /* chữ đen giống Mua proxy / Lịch sử */
    font-size:12px;
    font-weight:800;
    line-height:1;
    white-space:nowrap;
    cursor:pointer;
    box-shadow:0 4px 10px rgba(15,23,42,.04);
    transition:.18s ease;
}

.proxy-mobile-tabs .proxy-tab-btn.active{
    border-color:transparent;
    background:linear-gradient(135deg,#e57e24 0%,#f59e0b 100%);
    color:#fff !important; /* tab active chữ trắng */
    box-shadow:0 10px 20px rgba(229,126,36,.18);
}

@media (min-width:768px){
    .proxy-mobile-tabs{
        gap:10px;
    }

    .proxy-mobile-tabs .proxy-tab-btn{
        height:40px;
        padding:0 16px;
        font-size:13px;
    }
}
/* footer */

.proxy-oldlist-page-size{
    display:flex;
    align-items:center;
}

.proxy-oldlist-page-size label{
    display:flex;
    align-items:center;
    gap:8px;
    margin:0;
    font-size:12px;
    color:#334155;
    white-space:nowrap;
}

.proxy-oldlist-page-size .proxy-oldlist-select{
    width:84px;
    min-width:84px;
    max-width:84px;
    height:40px;
    min-height:40px;
    padding:0 10px;
    border-radius:10px;
    background:#f8fafc;
}

.proxy-oldlist-pagination{
    display:flex;
    align-items:center;
    gap:10px;
    margin-left:auto;
}

.proxy-oldlist-page-info{
    min-width:92px;
    text-align:center;
    font-size:12px;
    font-weight:800;
    color:#334155;
    white-space:nowrap;
}

/* responsive */
@media (max-width:1100px){
    .proxy-oldlist-toolbar-top{
        grid-template-columns:1fr;
    }

    .proxy-oldlist-search-box{
        width:100%;
    }
}


/* ===== HISTORY ===== */
.proxy-expired-subtabs .proxy-tab-btn{
    height:36px;
    min-height:36px;
    padding:0 10px;
    border-radius:9px;
    font-size:12px;
    font-weight:800;
    min-width:155px;
    justify-content:center;
    display:inline-flex;
    align-items:center;
}
/* ===== FOOTER ===== */
.proxy-oldlist-footer{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding-top:12px;
    flex-wrap:wrap;
}

.proxy-oldlist-page-size label{
    display:flex;
    align-items:center;
    gap:8px;
    font-size:13px;
    color:#334155;
}

.proxy-oldlist-page-size .proxy-oldlist-select{
    min-width:94px;
    height:40px;
    border-radius:10px;
    background:#f8fafc;
}

.proxy-oldlist-pagination{
    display:flex;
    align-items:center;
    gap:8px;
    margin-left:auto;
}

.proxy-oldlist-page-info{
    font-size:13px;
    font-weight:700;
    color:#334155;
}

/* ===== GOI PROXY ===== */
.proxy-package-topup-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
    align-items:start;
}

.proxy-package-topup-card{
    background:#fff;
    border:1px solid #e6ebf1;
    border-radius:16px;
    box-shadow:var(--shadow);
    overflow:hidden;
    min-width:0;
}

.proxy-package-topup-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;

    gap:6px;
    padding:11px 14px;
    background:linear-gradient(135deg,#f59e0b 0%,#e57e24 100%);
    color:#fff;
    font-size:15px;
    line-height:1.2;
    font-weight:800;
    word-break:break-word;
}
.proxy-package-topup-head span{
    margin-left:auto;
    text-align:right;
    flex:0 0 42%;
}

.proxy-package-topup-head > *:first-child{
    flex:1 1 auto;
    max-width:none;
}
.proxy-package-topup-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
}


.proxy-package-topup-body{
    padding:12px 12px 10px;
}

.proxy-package-topup-line{
    margin-bottom:8px;
    color:#0f172a;
    font-size:13px;
    line-height:1.5;
    font-weight:400;
    word-break:break-word;
}

.proxy-package-label{
    font-weight:800;
    color:#0f172a;
}

.proxy-package-value{
    font-weight:400;
    color:#0f172a;
}

.proxy-package-topup-line.warn{
    color:#ea580c;
    font-weight:700;
}

.proxy-package-topup-btn{
    width:100%;
    height:42px;
    border:1px solid #1d4ed8;
    border-radius:10px;
    background:linear-gradient(180deg,#3b82f6 0%,#2563eb 100%);
    color:#fff;
    font-size:13px;
    font-weight:800;
    margin-bottom:10px;
    cursor:pointer;
    box-shadow:0 8px 18px rgba(37,99,235,.18);
    transition:.18s ease;
}

.proxy-package-topup-btn:hover{
    transform:translateY(-1px);
    box-shadow:0 10px 22px rgba(37,99,235,.22);
}

.proxy-package-topup-help{
    color:#ea580c;
    font-size:12px;
    line-height:1.5;
    font-weight:700;
    margin-top:2px;
    margin-bottom:0;
}

/* ===== RESPONSIVE ===== */
@media (max-width:1180px){
    .proxy-package-topup-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media (max-width:992px){
    .proxy-oldlist-toolbar-top{
        flex-direction:column;
        align-items:stretch;
    }

    .proxy-oldlist-left{
        width:100%;
    }

    .proxy-oldlist-search-box{
        width:100%;
        flex:unset;
    }

    .proxy-oldlist-footer{
        flex-direction:column;
        align-items:stretch;
    }

    .proxy-oldlist-pagination{
        justify-content:flex-start;
        margin-left:0;
    }
}

@media (max-width:768px){
    .proxy-oldlist-inline{
        flex-direction:column;
        align-items:stretch;
    }
.proxy-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:8px;
            row-gap:16px;

    }

.proxy-card{
    height:100%;
    display:flex;
    flex-direction:column;
}

.proxy-card-head{
    min-height:60px;
    padding:8px 10px;
    font-size:13px;
    display:flex;
    align-items:center;
}

.proxy-card-body{
    flex:1;
    display:flex;
    flex-direction:column;
}

.proxy-form-card{
    margin-top:auto;
}
    .proxy-oldlist-inline label,
    .proxy-oldlist-input,
    .proxy-oldlist-select{
        width:100%;
        min-width:100%;
    }

    .proxy-package-topup-grid{
        grid-template-columns:1fr;
    }
}
.proxy-mobile-tabs{
    display:flex;
    gap:8px;
    flex-wrap:nowrap;
    overflow-x:auto;
    padding:2px;
    margin:0 0 14px;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
}
.proxy-mobile-tabs::-webkit-scrollbar{
    display:none;
}

.proxy-mobile-tabs .proxy-tab-btn{
    flex:0 0 auto;
    height:36px;
    padding:0 14px;
    border:1px solid #e7e5e4;
    border-radius:999px;
    background:#fff;
    color:#334155;
    font-size:12px;
    font-weight:700;
    line-height:1;
    white-space:nowrap;
    cursor:pointer;
    box-shadow:0 4px 10px rgba(15,23,42,.04);
    transition:.18s ease;
}

.proxy-mobile-tabs .proxy-tab-btn.active{
    border-color:transparent;
    background:linear-gradient(135deg,#e57e24 0%,#f59e0b 100%);
flex:0 0 auto;
    height:36px;
    padding:0 14px;
    border:1px solid #e7e5e4;
    border-radius:999px;
    color:#0f172a;
    box-shadow:0 10px 20px rgba(229,126,36,.18);
}

/* tab ngoài lịch sử */
.proxy-mobile-tabs--history{
    margin-bottom:15px;
}

/* 2-3 tab con nhỏ hơn */
.proxy-mobile-tabs--sub{
    gap:6px;
    margin-bottom:9px;
}

.proxy-mobile-tabs--sub .proxy-tab-btn{
    height:32px;          /* thấp hơn */
    padding:0 12px;       /* khung ngắn hơn */
    font-size:10px;       /* chữ nhỏ hơn */
    font-weight:800;
    border-radius:999px;
    min-width:auto;       /* bỏ ép khung to */
    box-shadow:0 2px 6px rgba(15,23,42,.03);
}

.proxy-mobile-tabs--sub .proxy-tab-btn.active{
    box-shadow:0 6px 12px rgba(229,126,36,.12);
}

@media (min-width:768px){
    .proxy-mobile-tabs{
        gap:8px;
    }

    .proxy-mobile-tabs .proxy-tab-btn{
        height:36px;
        padding:0 14px;
        font-size:12px;
    }

    .proxy-mobile-tabs--sub{
        gap:6px;
    }
    .proxy-mobile-tabs--sub .proxy-tab-btn{
        height:26px;
        padding:0 11px;
        font-size:10px;
    }
}
/* ===== TOPUP MODAL ===== */
.proxy-topup-modal{
    position:fixed;
    inset:0;
    z-index:99999;
    display:none;
    align-items:center;
    justify-content:center;
    padding:16px;
}

.proxy-topup-modal-backdrop{
    position:absolute;
    inset:0;
    background:rgba(15,23,42,.56);
    backdrop-filter:blur(3px);
}

.proxy-topup-modal-box{
    position:relative;
    z-index:2;
    width:min(430px, calc(100% - 24px));
    margin:0 auto;
    background:#fff;
    border-radius:20px;
    box-shadow:0 24px 60px rgba(15,23,42,.22);
    overflow:hidden;
}

.proxy-topup-close{
    position:absolute;
    top:10px;
    right:12px;
    width:34px;
    height:34px;
    border:none;
    border-radius:999px;
    background:#f8fafc;
    color:#475569;
    font-size:22px;
    line-height:1;
    cursor:pointer;
    z-index:3;
}

.proxy-topup-close:hover{
    background:#eef2f7;
    color:#0f172a;
}

.proxy-topup-modal .modal-header{
    padding:16px 20px 10px;
    border-bottom:1px solid #eef2f7;
}

.proxy-topup-modal .modal-title{
    margin:0;
    font-size:20px;
    font-weight:800;
    color:#0f172a;
}

.proxy-topup-modal .modal-body{
    padding:16px 20px 20px;
}

.proxy-topup-center{
    display:flex;
    justify-content:center;
    margin-top:14px;
}

.proxy-topup-submit,
#proxySecureModalBody .submit-btn{
    min-width:160px;
    height:42px;
    border:none;
    border-radius:10px;
    background:linear-gradient(135deg,#e57e24 0%,#f59e0b 100%);
    color:#fff;
    font-size:14px;
    font-weight:800;
    cursor:pointer;
    box-shadow:0 12px 24px rgba(229,126,36,.18);
}

.proxy-topup-submit:hover,
#proxySecureModalBody .submit-btn:hover{
    transform:translateY(-1px);
}
.proxy-topup-modal{
    position:fixed;
    inset:0;
    z-index:99999;
    display:none;
    align-items:center;
    justify-content:center;
    padding:16px;
}

.proxy-topup-modal-backdrop{
    position:absolute;
    inset:0;
    background:rgba(15,23,42,.56);
    backdrop-filter:blur(3px);
}

.proxy-topup-modal-box{
    position:relative;
    z-index:2;
   width:min(430px, calc(100% - 24px));
    margin:0 auto;
    background:#fff;
    border-radius:20px;
    box-shadow:0 24px 60px rgba(15,23,42,.22);
    overflow:hidden;
}

.proxy-topup-close{
    position:absolute;
    top:10px;
    right:12px;
    width:34px;
    height:34px;
    border:none;
    border-radius:999px;
    background:#f8fafc;
    color:#475569;
    font-size:22px;
    line-height:1;
    cursor:pointer;
    z-index:3;
}

.proxy-topup-close:hover{
    background:#eef2f7;
    color:#0f172a;
}

.proxy-topup-modal .modal-header{
    padding:16px 20px 10px;
    border-bottom:1px solid #eef2f7;
}

.proxy-topup-modal .modal-title{
    margin:0;
    font-size:20px;
    font-weight:800;
    color:#0f172a;
}

.proxy-topup-modal .modal-body{
    padding:16px 20px 20px;
}

.proxy-topup-center{
    display:flex;
    justify-content:center;
    margin-top:14px;
}

.proxy-topup-submit,
#proxySecureModalBody .submit-btn{
    min-width:160px;
    height:42px;
    border:none;
    border-radius:10px;
    background:linear-gradient(135deg,#e57e24 0%,#f59e0b 100%);
    color:#fff;
    font-size:14px;
    font-weight:800;
    cursor:pointer;
    box-shadow:0 12px 24px rgba(229,126,36,.18);
}

.proxy-topup-submit:hover,
#proxySecureModalBody .submit-btn:hover{
    transform:translateY(-1px);

}

/* ===== FIX SPACING TOPUP MODAL - NHỎ GỌN ===== */
.proxy-topup-modal .modal-body form{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.proxy-topup-modal .form-group{
    margin:0;
    display:flex;
    flex-direction:column;
    gap:5px;
}

.proxy-topup-modal .form-group label{
    margin:0;
    font-size:12px;
    font-weight:700;
    color:#0f172a;
    line-height:1.25;
}

.proxy-topup-modal .proxy-input,
.proxy-topup-modal select.proxy-input,
.proxy-topup-modal input.proxy-input{
    height:38px;
    min-height:38px;
    border-radius:10px;
    padding:0 12px;
    font-size:13px;
    line-height:38px;
}

.proxy-topup-modal .form-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
}

.proxy-topup-modal .modal-body{
    padding:14px 18px 18px;
}

.proxy-topup-modal .modal-header{
    padding:14px 18px 10px;
}

.proxy-topup-modal .modal-title{
    font-size:16px;
    line-height:1.3;
    padding-right:36px;
}

.proxy-topup-submit,
#proxySecureModalBody .submit-btn{
    width:150px;
    min-width:150px;
    height:40px;
    border-radius:10px;
    margin-top:2px;
    font-size:13px;
}

.proxy-topup-center{
    display:flex;
    justify-content:center;
    margin-top:6px;
}

@media (max-width:768px){
.sidebar-toggle{
    position:fixed;
    left:0;
    top:50%;
    transform:translateY(-50%);
    z-index:9999;
    display:flex;
    width:35px;
    height:92px;
    margin:0;
    padding:0;
    border-radius:0 14px 14px 0;
    writing-mode:vertical-rl;
    text-orientation:mixed;
    font-size:12px;
    font-weight:800;
    box-shadow:0 12px 24px rgba(229,126,36,.22);
}

.sidebar.is-open + .content-area .sidebar-toggle{
    pointer-events:none;
}

    .layout{
        display:block;
    }

    .content-area{
        width:100%;
        overflow:visible;
    }

    .sidebar{
        position:fixed;
        top:0;
        left:0;
        bottom:0;
        width:min(320px, calc(100vw - 56px));
        max-width:320px;
        height:100vh;
        z-index:10003;
        border-radius:0 20px 20px 0;
        transform:translateX(-105%);
        transition:transform .25s ease;
        overflow-y:auto;
        padding:16px 14px;
    }

    .sidebar.is-open{
        transform:translateX(0);
    }

    .sidebar-overlay{
        position:fixed;
        inset:0;
        z-index:10001;
        background:rgba(15,23,42,.42);
        backdrop-filter:blur(2px);
        display:none;
    }

    .sidebar-overlay.show{
        display:block;
    }
}

/* GIẢM BO TRÒN TOÀN SITE */
.hero-card,
.stat-card,
.sidebar,
.form-card,
.page-head,
.result-card,
.proxy-card,
.proxy-package-topup-card,
.proxy-oldlist-card{
    border-radius:10px !important;
}

.proxy-input,
.proxy-buy-btn,
.proxy-oldlist-btn{
    border-radius:8px !important;
}

@media (max-width:991.98px){
    .proxy-grid{
        grid-template-columns:1fr !important;
    }
}

