/* ================= BRAND VARIABLES ================= */
:root{
    --primary:#0d7bdc;
    --primary-dark:#085ca5;
    --secondary:#111827;
    --sidebar:#f7f9fc;
    --white:#ffffff;
    --text:#1f2937;
    --muted:#6b7280;
    --border:#e5e7eb;
    --bg:#f3f6fb;
    --danger:#ef4444;
    --success:#16a34a;

    --shadow:0 10px 30px rgba(0,0,0,0.06);
    --radius:20px;
}

/* ================= RESET ================= */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}
html, body{
    background:var(--bg);
    font-family:Inter,Segoe UI,sans-serif;
    color:var(--text);
    overflow-x:hidden;
}

/* ================= LAYOUT ================= */
.dashboard-wrapper{
    display:flex;
    min-height:100vh;
}

/* ================= SIDEBAR ================= */
.sidebar{
    width:270px;
    background:var(--sidebar);
    border-right:1px solid var(--border);
    position:fixed;
    top:0;
    left:0;
    height:100vh;
    padding:25px 18px;
    z-index:999;
    overflow-y:auto;
    transition:.3s ease;
}

.sidebar-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:35px;
}
.logo{
    font-size:34px;
    font-weight:800;
    color:var(--secondary);
    letter-spacing:-1px;
}

.logo span{
    color:var(--primary);
}

.close-btn{
    display:none;
    background:none;
    border:none;
    font-size:20px;
    cursor:pointer;
}

.logo-wrapper {
    display: flex;
    align-items: center;
}

/* IMAGE LOGO */
.site-logo {
    height: 35px;
    width: auto;
    object-fit: contain;
}

/* TEXT FALLBACK */
.logo-text {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark);
}

/* MOBILE */
@media (max-width: 768px) {
    .site-logo {
        height: 45px;
    }
}

/* CLOSE BUTTON */
.close-btn {
    display: none;
    border: none;
    background: var(--light-bg);
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 4px 4px 8px #c5ccd3,
                -4px -4px 8px #ffffff;
}

/* MENU */

.menu{
    list-style:none;
}

.menu li{
    margin-bottom:12px;
}

.menu li a{
    display:flex;
    align-items:center;
    gap:12px;
    padding:16px 18px;
    border-radius:16px;
    text-decoration:none;
    color:#334155;
    font-size:15px;
    font-weight:600;
    transition:.3s;
}

.menu li a:hover{
    background:#e8f2fc;
    color:var(--primary);
    transform:translateX(3px);
}

.menu li.active a{
    background:linear-gradient(135deg,var(--primary),var(--primary-dark));
    color:#fff;
    box-shadow:0 10px 25px rgba(13,123,220,.25);
}
.menu-toggle{
    background:none;
    border:none;
    font-size:26px;
    cursor:pointer;
    color:var(--secondary);
    display:none;
}
/* LOGOUT */

.logout{
    width:100%;
    margin-top:30px;
    border:none;
    background:#ffeded;
    color:#dc2626;
    padding:15px;
    border-radius:14px;
    font-weight:700;
    cursor:pointer;
    transition:.3s;
}

.logout:hover{
    background:#dc2626;
    color:#fff;
}

/* ================= MAIN ================= */
.main {
    flex: 1;
    padding: 30px;
}

.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 20px;
}


/* 🔥 MOBILE FIX */
@media (max-width: 768px){
    .main-wrapper {
        min-height: auto !important;
    }
}
.main-content {
    padding-top: 10px !important;
}

/* 🔥 MOBILE */
@media (max-width: 768px){
    .main-content {
        flex: unset !important;
    }
}
/* ================= TOPBAR ================= */
/* FULL WIDTH HEADER */

.topbar{
    background:rgba(255,255,255,.85);
    backdrop-filter:blur(10px);
    border:1px solid rgba(255,255,255,.4);
    border-radius:24px;
    padding:18px 25px;
    box-shadow:var(--shadow);
    margin-bottom:25px;
     position:relative;
    z-index:1000;
    overflow:visible !important;
}

.topbar-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
}

.top-right{
    display:flex;
    align-items:center;
    gap:18px;
    flex-wrap:wrap;
      position:relative;
    z-index:1001;
}

/* LEFT SIDE */
.top-left{
    display:flex;
    align-items:center;
    gap:20px;
}


.icon{
    width:48px;
    height:48px;
    border-radius:50%;
    background:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    position:relative;
    box-shadow:var(--shadow);
    border:1px solid var(--border);
}

/* SEARCH */
.topbar-search {
    margin-top: 15px;
}

.search {
     width: 100%;
    max-width: 350px;
    padding: 10px 15px;
    border-radius: 20px;
    border: none;
    background: var(--light-bg);
    box-shadow: inset 5px 5px 10px #c5ccd3,
                inset -5px -5px 10px #ffffff;
}

.search:focus {
    outline: none;
    box-shadow:
        inset 4px 4px 8px #c5ccd3,
        inset -4px -4px 8px #ffffff,
        0 0 0 2px rgba(26, 115, 168, 0.2);
}

/* ================= DROPDOWN ================= */
.user-menu {
    position: relative;
}

/* DROPDOWN */
.dropdown-menu {
    position: absolute;
    right: 0;
    top: 35px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    display: none;
    flex-direction: column;
    min-width: 180px;
    z-index: 200;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ITEMS */
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    cursor: pointer;
}

.dropdown-item:hover {
    background: #f5f7fb;
}

/* COLORS */
.dropdown-item.view { color: #1A73A8; }
.dropdown-item.fund { color: #16a34a; }
.dropdown-item.debit { color: #f59e0b; }
.dropdown-item.ban { color: #ef4444; }
.dropdown-item.delete { color: #dc2626; }

/* ================= NOTIFICATIONS ================= */
.notification-box{
    position:relative;
    width:48px;
    height:48px;
    border-radius:50%;
    background:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    box-shadow:var(--shadow);
    border:1px solid var(--border);
        position:relative;
    z-index:1002;
}
/* ================= CARDS ================= */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    padding: 25px;
    border-radius: 20px;
    color: #fff;
    box-shadow: 8px 8px 15px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px) scale(1.01);
}

/* BRAND CARDS */
.card-blue {
    background: linear-gradient(135deg, #1A73A8, #135a85);
}

.card-green {
    background: linear-gradient(135deg, #2E2E2E, #1f1f1f);
}

.card-purple {
    background: linear-gradient(135deg, #1A73A8, #2E2E2E);
}

/* ================= SECTIONS ================= */
.section{
    background:#ffffff;
    border-radius:18px;
    padding:22px;
    margin-bottom:18px;
    border:1px solid #edf2f7;
    box-shadow:0 2px 10px rgba(15,23,42,.03);
}

.section h3{
    font-size:17px;
    font-weight:700;
    color:#0f172a;
    margin-bottom:18px;
    display:flex;
    align-items:center;
    gap:8px;
}

/* GRID */
/* =========================================
   SERVER GRID
========================================= */

.server-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:14px;
}

/* =========================================
   SERVER CARD
========================================= */

.server-card{
    position:relative;
    overflow:hidden;
    border-radius:16px;
    padding:22px;
    text-decoration:none;
    border:1px solid #edf2f7;
    transition:.25s ease;
    min-height:145px;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
}

.server-card:hover{
    transform:translateY(-3px);
}

/* USA */

.usa-card{
    background:linear-gradient(
        135deg,
        #0d7bdc,
        #0864ba
    );
    color:#fff;
}

/* GLOBAL */

.global-card{
    background:#ffffff;
    color:#0f172a;
}

/* BADGE */

.server-badge{
    position:absolute;
    top:16px;
    right:16px;
    background:rgba(255,255,255,.18);
    color:#fff;
    padding:6px 10px;
    border-radius:999px;
    font-size:11px;
    font-weight:700;
    letter-spacing:.3px;
}

.global-card .server-badge{
    background:#edf5ff;
    color:#0d7bdc;
}

/* ICON */

.server-icon{
    font-size:26px;
    margin-bottom:18px;
}

/* TEXT */

.server-card h4{
    font-size:18px;
    font-weight:700;
    margin-bottom:6px;
    line-height:1.4;
}

.server-card p{
    font-size:13px;
    opacity:.85;
    line-height:1.5;
}


/* 📱 MOBILE */
@media (max-width: 768px) {
    .server-grid {
        grid-template-columns: 1fr;
    }
}

/* TABLE */
table {
    width: 100%;
}
th {
    text-align: left;
    color: #888;
}
td {
    padding: 10px 0;
}

/* REFERRAL */
/* =========================================
   EMPTY STATE
========================================= */

.empty-state{
    text-align:center;
    padding:40px 20px;
    color:#6b7280;
}

/* =========================================
   REFERRAL BOX
========================================= */
/* EMPTY */

.empty-state{
    text-align:center;
    padding:30px 10px;
    color:#64748b;
    font-size:14px;
}

/* =========================================
   REFERRAL BOX
========================================= */

.ref-box{
    display:flex;
    align-items:center;
    gap:12px;
    background:#fff;
    padding:14px;
    border-radius:22px;
    border:1px solid #e5e7eb;
    box-shadow:0 10px 25px rgba(15,23,42,.05);
     flex-direction:row !important;
}

/* INPUT */

.ref-box input{
      flex:1 !important;
    width:auto !important;
    min-width:0 !important;
    
    height:52px;
    border:1px solid #dbe4f0;
    background:#f8fafc;
    border-radius:14px;
    padding:0 16px;
    font-size:14px;
    outline:none;
    color:#0f172a;
}

.ref-box input:focus{
    border-color:#0d7bdc;
}

.ref-box button{
    height:52px;
    padding:0 22px;
    border:none;
    border-radius:14px;
    background:linear-gradient(135deg,#1A73A8,#0f5f8f);
    color:#fff;
    font-size:14px;
    font-weight:700;
    cursor:pointer;
    transition:.25s;
    white-space:nowrap;

     width:auto !important;
    min-width:120px !important;
    flex-shrink:0 !important;
}

.ref-box button:hover{
    transform:translateY(-1px);
    box-shadow:0 10px 20px rgba(26,115,168,.18);
}

/* =========================================
   MOBILE RESPONSIVE
========================================= */

@media(max-width:991px){

    .server-grid{
        grid-template-columns:1fr;
    }

}

@media(max-width:576px){

    .section{
        padding:18px;
        border-radius:16px;
    }

    .section h3{
        font-size:15px;
    }

    .server-card{
        min-height:130px;
        padding:18px;
    }

    .server-card h4{
        font-size:16px;
    }

    .transaction-table{
        min-width:480px;
    }

    
}

/* MOBILE */


/* MODAL */
.modal {
    display: none;
    position: fixed;
    background: rgba(0,0,0,0.4);
    top: 0; left: 0;
    width: 100%; height: 100%;
}
/* =========================================
   FOOTER
========================================= */

.app-footer{
    margin-top:30px;
    background:#ffffff;
    border:1px solid #edf2f7;
    border-radius:24px;
    padding:22px 28px;
    box-shadow:0 10px 30px rgba(0,0,0,.05);
}

.footer-content{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    flex-wrap:wrap;
}

/* LEFT */

.footer-left{
    font-size:14px;
    color:#64748b;
    font-weight:500;
}

/* CENTER */

.footer-center{
    display:flex;
    align-items:center;
    gap:22px;
    flex-wrap:wrap;
}

.footer-center a{
    text-decoration:none;
    color:#0f172a;
    font-size:14px;
    font-weight:600;
    transition:.3s;
    position:relative;
}

.footer-center a::after{
    content:'';
    position:absolute;
    left:0;
    bottom:-6px;
    width:0%;
    height:2px;
    background:#0d7bdc;
    transition:.3s ease;
    border-radius:999px;
}

.footer-center a:hover{
    color:#0d7bdc;
}

.footer-center a:hover::after{
    width:100%;
}
/* =========================================
   MOBILE RESPONSIVE
========================================= */

@media(max-width:768px){

    

    .footer-content{
        flex-direction:column;
        align-items:center;
        text-align:center;
    }

    .footer-center{
        justify-content:center;
        gap:16px;
    }

    

    @media(max-width:576px){

    /* EXTRA SPACE BELOW CONTENT */

    .main-wrapper{
        padding-bottom:120px;
    }

    /* FOOTER */

    .app-footer{
        margin-bottom:20px;
        position:relative;
        z-index:1;
    }

    /* FLOATING SOCIAL */

    .floating-social{
        bottom:20px;
        right:14px;
        z-index:9999;
    }

    .float-btn{
        width:50px;
        height:50px;
        font-size:20px;
    }

}

}

@media(max-width:480px){

    .footer-left{
        font-size:13px;
        line-height:1.6;
    }

    .footer-center a{
        font-size:13px;
    }

    .float-btn{
        width:52px;
        height:52px;
        font-size:22px;
    }

}

/* OVERLAY */
.overlay {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 900;
}
.overlay.active {
    display: block;
}

/* ================= MOBILE ================= */
@media (max-width: 768px){

    .sidebar {
        position: fixed;
        top: 0;
        left: -260px; /* exact width */
        width: 260px;
        height: 100vh;
        z-index: 1001;
        transition: left 0.3s ease;
    }

    .sidebar.active {
        left: 0;
    }

}

    .close-btn {
        display: block;
    }

    .menu-toggle {
        display: block;
        background: var(--light-bg);
        border: none;
        padding: 8px 10px;
        border-radius: 10px;
        cursor: pointer;
    }

    .search {
        width: 100%;
    }

    .cards {
        grid-template-columns: 1fr;
    }


/* ================= DESKTOP ================= */
@media (min-width: 769px){

    .menu-toggle {
        display: none;
    }

    .close-btn {
        display: none;
    }

    .sidebar {
        position: relative;
        left: 0 !important;
    }
}
.floating-social{
    position:fixed;
    right:22px;
    bottom:24px;
    display:flex;
    flex-direction:column;
    gap:14px;
    z-index:999;
}

.float-btn{
    width:62px;
    height:62px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    color:#fff;
    font-size:28px;
    box-shadow:0 15px 30px rgba(0,0,0,.18);
    transition:.35s ease;
    position:relative;
    overflow:hidden;
}

.float-btn::before{
    content:'';
    position:absolute;
    inset:0;
    background:rgba(255,255,255,.12);
    opacity:0;
    transition:.3s;
}

.float-btn:hover::before{
    opacity:1;
}

.float-btn:hover{
    transform:translateY(-5px) scale(1.05);
}

/* WHATSAPP */

.whatsapp{
    background:linear-gradient(
        135deg,
        #25d366,
        #128c7e
    );
}

/* TELEGRAM */

.telegram{
    background:linear-gradient(
        135deg,
        #229ED9,
        #0b76b7
    );
}

/* RIGHT SIDEBAR */


/* =========================================
   RIGHT SIDEBAR
========================================= */


.right-sidebar{
    display:flex;
    flex-direction:column;
    gap:16px;
}
/* =========================================
   SIDEBAR CARD
========================================= */

.rs-card{
    background:#ffffff;
    border:1px solid #edf2f7;
    border-radius:18px;
    padding:16px;
    box-shadow:0 2px 10px rgba(15,23,42,.03);
}

/* =========================================
   CARD HEADER
========================================= */

.rs-card h4{
    display:flex;
    align-items:center;
    justify-content:space-between;
    font-size:14px;
    font-weight:700;
    color:#0f172a;
    margin-bottom:14px;
    line-height:1;
}

/* VIEW ALL STYLE */

.rs-card h4::after{
    content:'View All';
    font-size:11px;
    font-weight:600;
    color:#0d7bdc;
    background:#f8fbff;
    padding:7px 10px;
    border-radius:999px;
    cursor:pointer;
}

/* =========================================
   VIDEO
========================================= */

.rs-card iframe{
    width:100%;
    height:180px;
    border:none;
    border-radius:12px;
    overflow:hidden;
    display:block;
}


/* BANNER */
.banner img {
    width: 100%;
    border-radius: 15px;
}

/* CURRENCY */
.currency-select {
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid #1A73A8;
    margin-right: 10px;
     min-width: 60px;
}

/* CONTENT AREA */
.content-area{
    display:grid;
    grid-template-columns: 1fr 340px;
    gap:24px;
    align-items:start;
    width:100%;
}

/* MOBILE */
@media(max-width:768px){
    .content-area {
        flex-direction: column;
    }
}

/* RIGHT SIDEBAR */
.right-sidebar {
    width: 280px;
    margin-top: 80px;
}

/* MOBILE BUTTON */
.rs-toggle {
    display: none;
}

/* MOBILE */
@media(max-width:768px){

    .content-area {
        flex-direction: column;
    }

    .right-sidebar {
        display: none;
        width: 100%;
        margin-top: 10px;
    }

    .right-sidebar.show {
        display: block;
    }

    .rs-toggle {
        display: block;
        margin: 15px 0;
        padding: 10px;
        border: none;
        border-radius: 10px;
        background: var(--primary-blue);
        color: #fff;
        width: 100%;
    }
}

/* FIX FULL WIDTH */
.dashboard-wrapper {
    display: flex;
    width: 100%;
     min-height: 100vh;
}

/* CONTENT AREA */
.content-area {
    display: flex;
    gap: 20px;
    width: 100%;
}

/* MAIN */
.main {
    flex: 1;
    padding: 20px;
}

/* 🔥 MOBILE FULL WIDTH */
@media (max-width: 768px){
    .main {
        padding: 10px !important;
    }
}

/* RIGHT SIDEBAR */
.right-sidebar {
    width: 320px;
    margin-top: 100px;
}

/* MOBILE FIX */
@media(max-width:768px){

    .content-area {
        flex-direction: column;
    }

    .right-sidebar {
        width: 100%;
        margin-top: 20px;
    }
}

@media(max-width:768px){

    .right-sidebar {
        display: block !important;
        width: 100%;
        margin-top: 20px;
    }

}
.top-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.topbar-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* LEFT */
.top-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* CENTER SEARCH */
.top-center {
    flex: 1;
    display: flex;
}

.search {
    width: 100%;
    max-width: 100%;
}

/* RIGHT */
.top-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-left: auto;
}
@media(max-width:768px){

    

    .topbar {
        padding: 15px 12px;
    }

}
   


 .top-right {
        gap: 10px;
    }

    .top-center {
        width: 100%;
        margin-top: 10px;
    }



    /* ADMIN LAYOUT  CSS*/
/* =====================================
   ADMIN DASHBOARD COMPLETE UI SYSTEM
===================================== */

/* RESET FIXES */
a {
    text-decoration: none !important;
    color: inherit;
}

/* BODY */
.admin-body {
    background: #f5f7fb;
    font-family: 'Segoe UI', sans-serif;
}

/* =====================================
   LAYOUT
===================================== */

.admin-wrapper {
    display: flex;
}

/* SIDEBAR */
.admin-sidebar {
    width: 250px;
    height: 100vh;
    background: #2E3440;
    position: fixed;
    top: 0;
    left: 0;
    transform: translateX(0);
    transition: transform 0.3s ease;
    z-index: 1001;
}

/* MOBILE HIDDEN STATE */
@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }

    .admin-sidebar.show {
        transform: translateX(0);
    }
}

    .admin-sidebar.active {
        left: 0;
    }


/* MAIN CONTENT */
.admin-main {
    margin-left: 250px;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
     
    transition: 0.3s;
}

/* MOBILE */
@media (max-width: 768px) {
    .admin-main {
        margin-left: 0;
    }
}

/* =====================================
   SIDEBAR
===================================== */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: none;
    z-index: 1000;
}
.sidebar-overlay.show {
    display: block;
}
.sidebar-logo {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
}

/* SECTION TITLES */
.sidebar-section {
    font-size: 11px;
    color: #94a3b8;
    margin: 15px 10px 5px;
    letter-spacing: 1px;
}

/* LINKS */
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: #cbd5e1 !important;
    border-radius: 10px;
    font-size: 14px;
    transition: 0.2s;
}

.sidebar-link i {
    width: 18px;
}

/* HOVER */
.sidebar-link:hover {
    background: #3b4252;
    color: #fff !important;
}

/* ACTIVE */
.sidebar-link.active {
    background: #1A73A8;
    color: #fff !important;
}

/* LOGOUT */
.logout-link {
    color: #ff6b6b !important;
}

/* =====================================
   TOPBAR
===================================== */

.admin-topbar {
    height: 60px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* LEFT */
.topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

/* SEARCH */
.global-search {
    width: 60%;
    max-width: 400px;
    padding: 10px 15px;
    border-radius: 25px;
    border: none;
    background: #f1f3f6;
}

/* RIGHT */
.topbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.topbar-icon {
    cursor: pointer;
    font-size: 16px;
}

/* PROFILE DROPDOWN */
.topbar-profile {
    position: relative;
    cursor: pointer;
}

.topbar-profile .dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 40px;
    background: #fff;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.topbar-profile:hover .dropdown {
    display: block;
}

/* MOBILE */
@media (max-width: 768px) {
    .topbar-center {
        display: none;
    }
}

/* =====================================
   CONTENT
===================================== */

.admin-content {
    padding: 20px;
}

/* PAGE HEADER */
.page-header {
    margin-bottom: 15px;
}

.page-header h2 {
    margin: 0;
    font-size: 22px;
}

.page-header p {
    color: #777;
    font-size: 14px;
}

/* =====================================
   CARDS (DASHBOARD)
===================================== */

.admin-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.admin-card {
    background: linear-gradient(135deg, #1A73A8, #135a85);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 6px 6px 15px #e0e0e0, -6px -6px 15px #ffffff;
}

/* =====================================
   TABLE
===================================== */

.table-container {
    width: 100%;
    overflow-x: auto;
    background: #fff;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 6px 6px 15px #e0e0e0, -6px -6px 15px #ffffff;
}

.admin-table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
}

.admin-table th {
    padding: 12px;
    text-align: left;
    color: #1A73A8;
    font-weight: 600;
}

.admin-table td {
    padding: 12px;
    border-top: 1px solid #eee;
    color: #444;
}

.admin-table tbody tr:hover {
    background: #f5f7fb;
}

/* =====================================
   BADGES
===================================== */

.badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
}

.badge.active {
    background: #e6f4ea;
    color: #1e7e34;
}

.badge.banned {
    background: #fdecea;
    color: #c82333;
}

/* RANK */
.rank {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
}

.rank.starter { background: #eee; }
.rank.regular { background: #dbeafe; color: #1A73A8; }
.rank.vip { background: gold; color: #000; }

/* =====================================
   PAGINATION
===================================== */




/* =====================================
   MOBILE OPTIMIZATION
===================================== */

@media (max-width: 768px) {

    .admin-content {
        padding: 15px;
    }

    .admin-table {
        font-size: 13px;
    }

    .card {
        padding: 15px;
    }
}

/* ACTION DROPDOWN */
.action-dropdown {
    position: relative;
}

.action-btn {
    background: #f1f3f6;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
}

.dropdown-menu {
    position: fixed !important; /* 🔥 key fix */
    display: none;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    min-width: 180px;
    z-index: 9999;
}

.dropdown-menu a,
.dropdown-menu button {
    padding: 10px;
    text-align: left;
    border: none;
    background: none;
    width: 100%;
    cursor: pointer;
    font-size: 14px;
}

.dropdown-menu a:hover,
.dropdown-menu button:hover {
    background: #f5f7fb;
}

.dropdown-menu .danger {
    color: red;
}

/* SHOW DROPDOWN */
.action-dropdown:hover .dropdown-menu {
    display: flex;
}



/* MOBILE SIDEBAR */
@media (max-width: 768px) {

    .admin-sidebar {
        left: -260px;
    }

    .admin-sidebar.show {
        left: 0;
    }

}

/* MODAL */
.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-box {
    background: #fff;
    width: 90%;
    max-width: 400px;
    border-radius: 14px;
    padding: 20px;
    animation: modalFade 0.2s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-close {
    cursor: pointer;
    font-size: 20px;
}

.modal-body {
    margin-top: 15px;
}

.modal-footer {
    margin-top: 15px;
}

.modal-footer button {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}

.btn-primary { background: #1A73A8; color: #fff; }
.btn-danger { background: #ef4444; color: #fff; }
.btn-secondary { background: #ddd; }

/* DROPDOWN */
.action-dropdown { position: relative; }

.dropdown-menu {
    position: absolute;
    right: 0;
    top: 35px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    display: none;
    flex-direction: column;
    min-width: 150px;
    z-index: 200;
}

.dropdown-menu div {
    padding: 10px;
    cursor: pointer;
}

.dropdown-menu div:hover {
    background: #f5f7fb;
}

.dropdown-menu .danger { color: red; }

@keyframes modalFade {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.btn-primary {
    background: #1A73A8;
    color: #fff;
    border: none;
    padding: 10px;
    width: 100%;
    border-radius: 6px;
}
.search-results {
    position: absolute;
    background: #fff;
    width: 300px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}



.notification-box span {
    position: absolute;
    top: -5px;
    right: -5px;
    background: red;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 50%;
}
.notification-box i{
    font-size:18px;
    color:#111827;
}

/* DROPDOWN */
#notifCount{
    position:absolute;
    top:-3px;
    right:-2px;
    background:red;
    color:#fff;
    min-width:20px;
    height:20px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:11px;
    font-weight:700;
}

/* DROPDOWN */

.notification-dropdown{
    position:absolute;
    top:65px;
    right:0;
    width:320px;
    background:#fff;
    border-radius:18px;
    border:1px solid #edf2f7;
    box-shadow:0 15px 40px rgba(15,23,42,.12);

    z-index:99999 !important;

    opacity:0;
    visibility:hidden;
    transform:translateY(10px);

    transition:.25s ease;

    overflow:hidden;
}


.notification-dropdown.active{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}

.notif-header{
    padding:18px;
    font-weight:700;
    border-bottom:1px solid #f1f5f9;
    background:#f8fafc;
}

.notif-item{
    padding:16px 18px;
    border-bottom:1px solid #f1f5f9;
    cursor:pointer;
    transition:.2s;
}

.notif-item:hover{
    background:#f8fbff;
}

.notif-item.unread{
    background:#eef6ff;
}

/* TITLE */
.notif-title {
    font-size: 14px;
    font-weight: 600;
    color: #111;
}

/* MESSAGE */
.notif-msg {
    font-size: 12px;
    color: #666;
}

/* EMPTY */
.notif-empty {
    text-align: center;
    padding: 20px;
    font-size: 13px;
    color: #888;
}
.notif-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    
}

.notif-item:hover {
    background: #f5f7fb;
}

.notif-item.unread {
    background: #eef6ff;
    font-weight: bold;
}
.content-area,
.main,
.right-sidebar,
.modern-va-card,
.modern-stats-grid{
    position:relative;
    z-index:1;
}
/* MODAL */
/* BACKDROP */
.notif-modal,
.profile-modal{
    position:fixed;
    inset:0;
    background:rgba(15,23,42,.55);
    backdrop-filter:blur(6px);
    display:flex;
    align-items:center;
    justify-content:center;
    opacity:0;
    visibility:hidden;
    transition:.3s;
    z-index:9999;
}

.notif-modal.active,
.profile-modal.active{
    opacity:1;
    visibility:visible;
}

.notif-box,
.profile-modal-box{
    width:95%;
    max-width:420px;
    background:#fff;
    border-radius:28px;
    padding:30px;
    text-align:center;
    box-shadow:0 30px 60px rgba(0,0,0,.2);
}


/* HEADER */
.notif-header {
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:10px;
}

.notif-icon {
    font-size:20px;
}

.notif-header h3 {
    font-size:18px;
    font-weight:600;
    margin:0;
}

/* BODY */
.notif-body {
    margin-top:10px;
}

.notif-body p {
    font-size:14px;
    color:#555;
    line-height:1.5;
}

/* FOOTER */
.notif-footer {
    margin-top:20px;
    text-align:right;
}

/* BUTTON */
.notif-btn,
.btn-primary{
    background:linear-gradient(135deg,var(--primary),var(--primary-dark));
    color:#fff;
    border:none;
    padding:14px 25px;
    border-radius:14px;
    font-weight:700;
    cursor:pointer;
    margin-top:20px;
}

.notif-btn:hover {
    background:#1e4ed8;
}

/* ANIMATION */
@keyframes fadeInUp {
    from {
        opacity:0;
        transform: translateY(20px);
    }
    to {
        opacity:1;
        transform: translateY(0);
    }
}
/* 🔔 BELL ANIMATION */
@keyframes bellShake {
    0% { transform: rotate(0); }
    25% { transform: rotate(15deg); }
    50% { transform: rotate(-15deg); }
    75% { transform: rotate(10deg); }
    100% { transform: rotate(0); }
}

.bell-animate {
    animation: bellShake 0.6s ease;
}

.shake {
    animation: shake 0.4s;
}


/* =========================
   SCROLLBAR
   ========================= */

::-webkit-scrollbar{
    width:8px;
}

::-webkit-scrollbar-thumb{
    background:#cbd5e1;
    border-radius:999px;
}

/* =========================
   MOBILE RESPONSIVE
   ========================= */

@media(max-width:991px){

     .sidebar{
        position:fixed;
        top:0;
        left:0;
        width:280px;
        height:100vh;

        z-index:99999 !important;

        background:#f8fbff;

        transform:translateX(-100%);
        transition:.3s ease;

        overflow-y:auto;
    }

    .sidebar.active{
        transform:translateX(0);
    }

    .main-wrapper{
        margin-left:0;
        padding:15px;
         position:relative;
        z-index:1;
    }

    .menu-toggle{
        display:block;
    }

   
    .close-btn{
        display:flex;
        align-items:center;
        justify-content:center;

        width:38px;
        height:38px;

        border:none;
        border-radius:10px;

        background:#edf5ff;
        color:#0d7bdc;

        cursor:pointer;
    }

    .topbar{
        padding:15px;
        border-radius:18px;
          position:relative;
        z-index:10 !important;
    }

    .topbar-row{
        flex-direction:column;
        align-items:flex-start;
    }

    .top-right{
        width:100%;
        justify-content:space-between;
    }

    .notification-dropdown{
        width:300px;
        right:-80px;
    }

}

@media(max-width:768px){

    .top-right{
        gap:12px;
    }

    .balance-widget{
        width:100%;
    }

    .rank-badge{
        padding:10px 15px;
        font-size:13px;
    }

    .notification-dropdown{
        width:280px;
    }

}

@media(max-width:576px){

    .main-wrapper{
        padding:12px;
    }

    .topbar{
        border-radius:16px;
    }

    .balance-widget{
        padding:10px 12px;
    }

    .balance-info strong{
        font-size:16px;
    }

    .notification-dropdown{
        right:-110px;
        width:260px;
    }

    .notif-box,
    .profile-modal-box{
        padding:24px 20px;
        border-radius:22px;
    }

}
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.btn-primary {
    background: #1A73A8;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
}

.preview-panel {
    position: fixed;
    right: 20px;
    top: 80px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    width: 250px;
    display: none;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

/* TOP ACTION BAR */
.users-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* BUTTON GROUP */
.toolbar-actions {
    display: flex;
    gap: 10px;
}

/* FIX BUTTON WIDTH */
.toolbar-actions .btn-primary {
    width: auto !important;
    padding: 10px 16px;
    border-radius: 8px;
}

/* FILE INPUT CLEAN */
.toolbar-actions input[type="file"] {
    font-size: 12px;
}
.toolbar-search input {
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #ddd;
    width: 250px;
}

#userSearchInput {
    width: 100%;
}

/* 🔥 SEARCH RESULTS DROPDOWN */
.user-results {
    position: absolute;
    width: 100%;
    background: #252525;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 5px;
    max-height: 180px;
    overflow-y: auto;
    z-index: 999;
}

/* SEARCH ITEM */
.user-results div {
    padding: 10px;
    cursor: pointer;
}

.user-results div:hover {
    background: #f5f7fb;
}

/* FIX CONTAINER */
#userSelectBox {
    position: relative; /* 🔥 IMPORTANT */
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}

/* INPUTS */
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #ddd;
    outline: none;
    font-size: 14px;
}

.form-group textarea {
    resize: none;
}

/* CARD */
.notification-card {
    max-width: 600px;
}

/* BUTTON */
.btn-primary {
    padding: 10px 16px;
    border-radius: 8px;
    width: auto !important;
}



/* Layout */
.footer-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* CENTER TEXT (always centered) */
.footer-left {
    text-align: center;
    font-weight: 500;
}

/* MENU */
.footer-center {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

/* LINKS */
.footer-center a {
    text-decoration: none;
    color: #666;
    transition: 0.2s;
}

.footer-center a:hover {
    color: #007bff;
}

/* DESKTOP */
@media (min-width: 768px) {
    .footer-content {
        flex-direction: column;
    }

    .footer-left {
        text-align: center;
    }

    .footer-center {
        justify-content: flex-end; /* bottom right */
    }
}

/* MOBILE */
@media (max-width: 767px) {
    .footer-center {
        justify-content: center; /* center menu */
        flex-wrap: wrap;
    }
}

/* USER MENU WRAPPER */
.auser-menu {
    position: relative;
    cursor: pointer;
    font-size: 20px;
}

/* DROPDOWN BOX */
.adropdown{
    position:absolute;
    right:0;
    top:60px;
    background:#fff;
    border-radius:16px;
    box-shadow:var(--shadow);
    min-width:180px;
    overflow:hidden;
    display:none;
}

.adropdown a{
    display:block;
    padding:14px 18px;
    text-decoration:none;
    color:#111827;
    transition:.2s;
}

.adropdown a:hover{
    background:#f3f6fb;
}


@media (max-width: 768px){

    html, body {
        height: auto !important;
    }

    .dashboard-wrapper {
        min-height: auto !important;
    }

    .main {
        padding: 10px !important;
    }

    .main-wrapper,
.main-content {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}
}
@media (max-width: 768px){

    .dashboard-wrapper {
        padding: 0 !important;
    }

    .main-wrapper {
        padding: 0 !important;
    }

}
/* ================= PROFILE PAGE (FINAL FIX) ================= */

/* PAGE WRAPPER */
.profile-page {
    width: 100%;
     /* 🔥 bigger working area */
    margin: 0 auto;
    padding: 20px;
     max-width: 1000px;
}

/* CARD */
.profile-card {
    width: 100%;
    max-width: 900px;   /* 🔥 perfect balance */
    margin: 20px auto;
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* PROFILE IMAGE */
.profile-image {
    text-align: center;
    margin-bottom: 15px;
}

.profile-image img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f1f1f1;
}

/* UPLOAD BUTTON */
.upload-btn {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    color: #2563eb;
    cursor: pointer;
}

/* NAME + RANK */
.profile-top {
    text-align: center;
    margin-bottom: 20px;
}

.profile-top h3 {
    margin: 5px 0;
    font-size: 18px;
}

/* RANK BADGE */
.rank-badge {
    display: inline-block;
    padding: 5px 12px;
    font-size: 12px;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #fff;
    border-radius: 20px;
}

/* FORM GROUP */
.profile-page .form-group {
    margin-bottom: 18px;
}

/* LABEL */
.profile-page .form-group label {
    font-size: 13px;
    font-weight: 500;
    color: #444;
    margin-bottom: 5px;
    display: block;
}

/* INPUT */
.profile-page .form-group input {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 14px;
    transition: 0.2s;
}

/* INPUT FOCUS */
.profile-page .form-group input:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 2px rgba(37,99,235,0.1);
}

/* DISABLED INPUT */
.profile-page input[disabled] {
    background: #f7f7f7;
    color: #888;
    cursor: not-allowed;
}

/* BUTTON */
.profile-page .btn-primary {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: #2563eb;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}

.profile-page .btn-primary:hover {
    background: #1e40af;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
    .profile-card {
        margin: 10px;
        padding: 15px;
        max-width: 100%;
    }
}

/* ================= DESKTOP POLISH ================= */
@media (min-width: 1024px) {
    .profile-card {
        max-width: 460px;
    }
}

/* PROFILE MODAL */
.profile-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);

    display: none;
    justify-content: center;
    align-items: center;

    z-index: 999999 !important;
}

.profile-modal.active {
    display: flex;
}

.profile-modal-box {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    width: 320px;
    text-align: center;
}

.profile-success { color: green; }
.profile-error { color: red; }

.password-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.password-row input {
    flex: 1;
    background: #f5f5f5;
}

.change-password-link {
    font-size: 13px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.change-password-link:hover {
    text-decoration: underline;
}

/* TOAST CONTAINER */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* TOAST */
.toast {
    min-width: 250px;
    max-width: 300px;
    padding: 12px 15px;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    animation: slideIn 0.3s ease;
}

/* TYPES */
.toast-success {
    background: #16a34a;
}

.toast-error {
    background: #dc2626;
}

/* CLOSE BUTTON */
.toast-close {
    cursor: pointer;
    font-weight: bold;
}

/* ANIMATION */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* SUPPORT */
/* ================= SUPPORT PAGE ================= */

.support-page {
    max-width: 900px;
    margin: 30px auto;
    padding: 20px;
}

/* GRID LAYOUT */
.support-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* MOBILE */
@media (max-width: 768px) {
    .support-wrapper {
        grid-template-columns: 1fr;
    }
}

/* ================= FORM ================= */

.ticket-form {
    background: #fff;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.ticket-form h3 {
    margin-bottom: 15px;
    font-size: 16px;
}

/* INPUTS */
.ticket-form input,
.ticket-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ddd;
    margin-bottom: 12px;
    font-size: 14px;
    transition: 0.2s;
}

.ticket-form textarea {
    resize: none;
    height: 100px;
}

/* FOCUS */
.ticket-form input:focus,
.ticket-form textarea:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 2px rgba(37,99,235,0.1);
}

/* BUTTON */
.ticket-form button {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: #2563eb;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}

.ticket-form button:hover {
    background: #1e40af;
}

/* ================= TICKETS ================= */

.ticket-list {
    background: #fff;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.ticket-list h3 {
    margin-bottom: 15px;
    font-size: 16px;
}

/* ITEM */
.ticket-item {
    display: block;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 10px;
    background: #f8fafc;
    transition: 0.2s;
    text-decoration: none;
    color: #333;
}

.ticket-item:hover {
    background: #eef4ff;
}

/* TITLE */
.ticket-item strong {
    display: block;
    font-size: 14px;
}

/* DATE */
.ticket-item span {
    font-size: 12px;
    color: #888;
}

/* EMPTY STATE */
.ticket-empty {
    text-align: center;
    color: #999;
    font-size: 13px;
    padding: 20px 0;
}
/* ================= CHAT PAGE ================= */

.chat-page {
    max-width: 800px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
}

/* HEADER */
.chat-header {
    background: #fff;
    padding: 15px;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* CHAT BODY */
.chat-box {
    background: #f5f7fb;
    padding: 15px;
    height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* MESSAGE WRAPPER */
.chat-message {
    display: flex;
    width: 100%;
}

/* USER RIGHT */
.chat-message.user {
    justify-content: flex-end;
}

/* ADMIN LEFT */
.chat-message.admin {
    justify-content: flex-start;
}

/* BUBBLE */
.bubble {
    max-width: 65%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    position: relative;
}

/* USER STYLE */
.chat-message.user .bubble {
    background: #2563eb;
    color: #fff;
    border-bottom-right-radius: 2px;
}

/* ADMIN STYLE */
.chat-message.admin .bubble {
    background: #fff;
    color: #333;
    border-bottom-left-radius: 2px;
}

/* NAME */
.bubble strong {
    display: block;
    font-size: 12px;
    margin-bottom: 3px;
}

/* TIME */
.bubble small {
    display: block;
    font-size: 10px;
    opacity: 0.7;
    margin-top: 5px;
}

/* INPUT AREA */
.chat-input {
    display: flex;
    gap: 10px;
    padding: 10px;
    background: #fff;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.05);
}

/* INPUT */
.chat-input input {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ddd;
}

/* BUTTON */
.chat-input button {
    padding: 12px 18px;
    border: none;
    background: #2563eb;
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
}

.chat-input button:hover {
    background: #1e40af;
}


/* ================= ADMIN SUPPORT ================= */

.support-admin {
    display: flex;
    height: 80vh;
    gap: 15px;
}

/* LEFT */
.support-sidebar {
    width: 300px;
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    overflow-y: auto;
}

.ticket-row {
    display: block;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 10px;
    background: #f5f7fb;
    text-decoration: none;
    color: #333;
}

.ticket-row:hover {
    background: #e6ecff;
}

.ticket-row.active {
    background: #2563eb;
    color: #fff;
}

/* RIGHT */
.support-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* HEADER */
.chat-header {
    background: #fff;
    padding: 12px;
    border-radius: 12px 12px 0 0;
}

/* BODY */
.chat-body {
    flex: 1;
    background: #f5f7fb;
    padding: 15px;
    overflow-y: auto;
}

/* MESSAGE */
.chat-message {
    display: flex;
    margin-bottom: 10px;
}

.chat-message.admin {
    justify-content: flex-end;
}

.chat-message.user {
    justify-content: flex-start;
}

/* BUBBLE */
.bubble {
    max-width: 60%;
    padding: 10px;
    border-radius: 10px;
}

.chat-message.admin .bubble {
    background: #01133a;
    color: #fff;
}

.chat-message.user .bubble {
    background: #303ce2;
}

/* INPUT */
.chat-input {
    display: flex;
    gap: 10px;
    padding: 10px;
    background: #fff;
    border-radius: 0 0 12px 12px;
}

.chat-input input {
    flex: 1;
    padding: 10px;
}

.chat-input button {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 10px 15px;
}

/* EMPTY */
.no-chat {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: #999;
}

/* ================= WALLET PAGE ================= */

.wallet-page {
    width: 100%;
    max-width: 1100px; /* 🔥 THIS FIXES SHRINK */
    margin: 0 auto;
    padding: 20px;
      display: block !important; /* 🔥 override flex from parent */
}
/* HEADER */
.wallet-header {
    text-align: center;
    margin-bottom: 30px;
}

.wallet-header h1 {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(90deg, #1A73A8, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.wallet-header p {
    color: #666;
    margin-top: 5px;
}

/* CARD */
.wallet-card {
    background: #fff;
    border-radius: 18px;
    padding: 25px;
    
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
     width: 100%;
    max-width: 800px; /* 🔥 NOT TOO SMALL */
    margin: 0 auto 25px;
}

/* TITLE */
.wallet-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.wallet-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: #1A73A8;
}

.wallet-title h3 {
    font-size: 20px;
    font-weight: 600;
}

/* DETAILS */
.wallet-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

/* BOX */
.wallet-box {
    background: #f7f9fc;
    padding: 15px;
    border-radius: 12px;
}

.wallet-box small {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 5px;
}

.wallet-box strong {
    font-size: 16px;
}

/* COPY */
.copy-box {
    cursor: pointer;
    position: relative;
}

.copy-icon {
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 14px;
}

/* INSTRUCTION */
.wallet-instruction {
    margin-top: 15px;
    font-size: 13px;
    color: #555;
    background: #f1f5f9;
    padding: 10px;
    border-radius: 10px;
}

/* MOBILE */
@media(max-width:768px){
    .wallet-header h1 {
        font-size: 24px;
    }
}


/* ================= TRANSACTIONS ================= */

.transactions-page {
    padding: 20px;
}

/* TITLE */
.page-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #1A73A8;
    margin-bottom: 20px;
}

/* CARD */
/* =========================================
   TRANSACTION TABLE
========================================= */
/* =========================================
   TRANSACTION CARD
========================================= */

.transaction-card{
    width:100%;
    overflow-x:auto;
}

/* TABLE */

.transaction-table{
    width:100%;
    border-collapse:collapse;
    min-width:520px;
}

.transaction-table thead tr{
    background:#f8fbff;
}

.transaction-table th{
    padding:15px 18px;
    text-align:left;
    font-size:13px;
    font-weight:700;
    color:#64748b;
    border-bottom:1px solid #edf2f7;
}

.transaction-table td{
    padding:16px 18px;
    font-size:14px;
    color:#0f172a;
    border-bottom:1px solid #f1f5f9;
    font-weight:500;
}

.transaction-table tbody tr{
    transition:.2s;
}

.transaction-table tbody tr:hover{
    background:#f8fbff;
}

/* AMOUNT COLORS */

.text-success{
    color:#16a34a !important;
    font-weight:700;
}

.text-danger{
    color:#ef4444 !important;
    font-weight:700;
}

/* VIEW ALL */

.view-all{
    margin-top:16px;
}

.view-all a{
    text-decoration:none;
    color:#0d7bdc;
    font-size:14px;
    font-weight:700;
}

.view-all a:hover{
    text-decoration:underline;
}

/* MOBILE */
@media(max-width:768px){

    .transactions-header {
        display: none;
    }

    .transactions-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .transactions-row div {
        display: flex;
        justify-content: space-between;
    }

}




.main-wrapper > *:not(.topbar) {
    width: 100%;
}






.buy-container {
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
}

@media (max-width: 768px){
    .buy-container { max-width: 100% !important; margin: 0 !important; }
}

.buy-title {
    font-size: 20px;
    font-weight: 600;
    text-align: center;
}

.wallet-text {
    text-align: center;
    margin-bottom: 10px;
    font-size: 13px;
}

.buy-card {
    background: #fff;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.search-box {
    width: 100%;
    padding: 9px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 8px;
}

.service-header {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #888;
}

.service-list {
    max-height: 280px;
    overflow-y: auto;
}

.service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
}

.service-item:hover { background: #f6f9fc; }

.service-item.active {
    background: #e8f0fe;
    border-left: 3px solid #1a73e8;
}

.service-name { font-size: 13px; font-weight: 500; }

.stock { font-size: 10px; }

.price { font-size: 13px; font-weight: 600; }

.btn-buy {
    width: 100%;
    margin-top: 10px;
    padding: 11px;
    background: linear-gradient(135deg,#1a73e8,#0d47a1);
    color: #fff;
    border: none;
    border-radius: 8px;
}

.btn-buy:disabled { background: #ccc; }

.dmodal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.dmodal-overlay.active { display: flex; }

.dmodal-box {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    width: 260px;
}

.spinner {
    width: 35px;
    height: 35px;
    border: 4px solid #eee;
    border-top: 4px solid #1a73e8;
    border-radius: 50%;
    margin: 0 auto 10px;
    animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================
   VIRTUAL ACCOUNT CARD
========================================= */

.modern-va-card{
    position:relative;
    background:#fff;
    border-radius:18px;
    padding:20px 24px;
    margin-bottom:18px;
    overflow:hidden;
    border:1px solid #edf2f7;
    box-shadow:0 2px 10px rgba(15,23,42,.03);
}

.modern-va-shape{
    position:absolute;
    top:-40px;
    right:-70px;
    width:180px;
    height:180px;
    background:linear-gradient(
        135deg,
        #0d7bdc,
        #0864ba
    );
    border-radius:50%;
}

.modern-va-header{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:22px;
    position:relative;
    z-index:2;
}

.modern-va-icon{
    width:38px;
    height:38px;
    border-radius:12px;
    background:#0d7bdc;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:14px;
}

.modern-va-header h3{
    font-size:17px;
    font-weight:700;
    color:#0f172a;
}

.modern-va-content{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    position:relative;
    z-index:2;
}

.modern-va-box{
    padding:0 22px;
    border-right:1px solid #edf2f7;
}

.modern-va-box:first-child{
    padding-left:0;
}

.modern-va-box:last-child{
    border-right:none;
    padding-right:0;
}

.modern-va-box span{
    display:block;
    font-size:12px;
    color:#64748b;
    margin-bottom:8px;
    font-weight:500;
}

.modern-va-box h4{
    font-size:16px;
    font-weight:700;
    color:#0f172a;
    line-height:1.5;
    word-break:break-word;
}

.modern-copy-area{
    display:flex;
    align-items:center;
    gap:10px;
}

.modern-copy-area button{
    width:26px;
    height:26px;
    border:none;
    border-radius:6px;
    background:#edf5ff;
    color:#0d7bdc;
    cursor:pointer;
    font-size:11px;
}

/* =========================================
   PERFECT STATS GRID
========================================= */

.modern-stats-grid{
    display:grid;
    grid-template-columns:1.1fr 1fr 1fr;
    gap:14px;
    margin-bottom:20px;
}

.modern-stat-card{
    border-radius:16px;
    padding:18px 20px;
    position:relative;
    overflow:hidden;
    min-height:118px;
    border:1px solid #edf2f7;
}

.balance-card{
    background:linear-gradient(
        135deg,
        #0d7bdc,
        #0864ba
    );
    color:#fff;
}

.white-card{
    background:#fff;
    box-shadow:0 2px 10px rgba(15,23,42,.03);
}

.modern-stat-top{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:20px;
}

.modern-stat-top span{
    font-size:13px;
    font-weight:600;
}

.modern-stat-icon{
    width:28px;
    height:28px;
    border-radius:8px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:11px;
}

.balance-card .modern-stat-icon{
    background:rgba(255,255,255,.15);
    color:#fff;
}

.blue-soft{
    background:#edf5ff;
    color:#0d7bdc;
}

.modern-stat-bottom{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
}

.modern-stat-bottom h2{
    font-size:18px;
    font-weight:800;
    line-height:1;
    letter-spacing:-0.5px;
}

.balance-card h2{
    color:#fff;
}

.white-card h2{
    color:#0f172a;
}

.modern-stat-watermark{
    position:absolute;
    right:16px;
    bottom:6px;
    font-size:44px;
    opacity:.12;
}

.modern-small-circle{
    width:36px;
    height:36px;
    border-radius:12px;
    background:#f1f5f9;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#0d7bdc;
    font-size:13px;
}

/* =========================================
   MOBILE
========================================= */

@media(max-width:991px){

    .modern-va-content{
        grid-template-columns:1fr;
        gap:18px;
    }

    .modern-va-box{
        border-right:none;
        border-bottom:1px solid #edf2f7;
        padding:0 0 16px 0;
    }

    .modern-va-box:last-child{
        border-bottom:none;
        padding-bottom:0;
    }

    .modern-stats-grid{
        grid-template-columns:1fr;
    }

}

@media(max-width:576px){

    .modern-va-card{
        padding:18px;
    }

    .modern-va-header h3{
        font-size:15px;
    }

    .modern-va-box h4{
        font-size:15px;
    }

    .modern-stat-card{
        min-height:auto;
    }

}



/* Mobile */
@media (max-width: 768px) {
    .va-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   POST CARD
========================================= */

.post-card{
    background:#ffffff;
    border:1px solid #edf2f7;
    border-radius:14px;
    padding:14px;
    transition:.2s;
}

.post-card:hover{
    background:#f8fbff;
}

.post-card h4{
    font-size:14px;
    font-weight:700;
    margin-bottom:8px;
    color:#0f172a;
}

.post-card h4::after{
    display:none;
}

.post-card{
    font-size:13px;
    color:#64748b;
    line-height:1.6;
}

/* NEWS IMAGE */

.post-card img{
    width:100%;
    border-radius:12px;
    margin-top:12px;
    display:block;
}

/* =========================================
   NEWS META
========================================= */

.post-card::after{
    content:'2 days ago';
    display:block;
    margin-top:12px;
    font-size:11px;
    color:#94a3b8;
}

/* =========================================
   ADS IMAGE
========================================= */

.rs-card img{
    width:100%;
    display:block;
    border-radius:12px;
}

/* =========================================
   EMPTY STATE
========================================= */

.rs-card p{
    font-size:13px;
    color:#64748b;
    line-height:1.6;
}

/* =========================================
   MOBILE
========================================= */

@media(max-width:991px){

    .right-sidebar{
        margin-top:10px;
    }

}

@media(max-width:576px){

    .rs-card{
        padding:14px;
        border-radius:16px;
    }

    .rs-card iframe{
        height:190px;
    }

}


/* =========================================
   TABLET
========================================= */

@media(max-width:1100px){

    .content-area{
        grid-template-columns:1fr;
    }

    .right-sidebar{
        width:100%;
    }

}

/* =========================================
   MOBILE LARGE
========================================= */

@media(max-width:768px){

    .dashboard-stats{
        grid-template-columns:1fr;
    }

    .va-grid{
        grid-template-columns:1fr;
    }

    .server-grid{
        grid-template-columns:1fr;
    }

    .section,
    .va-dashboard-card,
    .rs-card{
        padding:20px;
        border-radius:20px;
    }

    .stat-box{
        min-height:120px;
        padding:24px;
    }

    .stat-box strong{
        font-size:28px;
    }

    .server-card{
        min-height:190px;
    }

}

/* =========================================
   MOBILE SMALL
========================================= */

@media(max-width:576px){

    .content-area{
        gap:18px;
    }

    .section{
        margin-bottom:18px;
    }

    .va-header{
        align-items:flex-start;
    }

    .va-header h5{
        font-size:20px;
    }

    .va-item{
        padding:18px;
    }

    .va-item strong{
        font-size:18px;
    }

    .dashboard-stats{
        gap:16px;
    }

    .stat-box{
        border-radius:20px;
        padding:22px;
    }

    .stat-box strong{
        font-size:24px;
    }

  

}
/* =========================================
   DASHBOARD STATS
========================================= */

.dashboard-stats{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:22px;
    margin-bottom:24px;
}

.stat-card{
    background:#fff;
    border-radius:24px;
    padding:26px;
    position:relative;
    overflow:hidden;
    min-height:170px;
    border:1px solid #edf2f7;
    box-shadow:0 10px 30px rgba(0,0,0,.05);
}

.stat-primary{
    background:linear-gradient(
        135deg,
        #0d7bdc,
        #085ca5
    );
    color:#fff;
}

.stat-top{
    display:flex;
    align-items:center;
    gap:14px;
    margin-bottom:30px;
}

.stat-top small{
    font-size:15px;
    font-weight:600;
}

.stat-icon{
    width:48px;
    height:48px;
    border-radius:14px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:18px;
}

.stat-primary .stat-icon{
    background:rgba(255,255,255,.18);
    color:#fff;
}

.light-icon{
    background:#edf5ff;
    color:#0d7bdc;
}

.stat-bottom{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
}

.stat-bottom strong{
    font-size:40px;
    font-weight:800;
    line-height:1;
}

.stat-primary .stat-bottom strong{
    color:#fff;
}

.stat-light .stat-bottom strong{
    color:#0f172a;
}

.stat-watermark{
    position:absolute;
    right:18px;
    bottom:10px;
    font-size:80px;
    opacity:.12;
}

.stat-mini-icon{
    width:58px;
    height:58px;
    border-radius:50%;
    background:#f1f5f9;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:22px;
    color:#0d7bdc;
}

/* =========================================
   MOBILE RESPONSIVE
========================================= */

@media(max-width:991px){

    .dashboard-stats{
        grid-template-columns:1fr;
    }

    .va-grid{
        grid-template-columns:1fr;
    }

}

@media(max-width:576px){

    .va-dashboard-card{
        padding:22px;
        border-radius:22px;
    }

    .va-header h5{
        font-size:20px;
    }

    .va-item{
        padding:20px;
    }

    .va-item strong{
        font-size:20px;
    }

    .stat-card{
        min-height:auto;
        padding:22px;
    }

    .stat-bottom strong{
        font-size:30px;
    }

}
.main img{
    max-width:100%;
    display:block;
}

/* 📱 MOBILE */
@media (max-width: 768px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
}

/* BALANCE WIDGET */
.balance-widget{
    display:flex;
    align-items:center;
    gap:12px;
    background:#fff;
    padding:10px 18px;
    border-radius:18px;
    box-shadow:var(--shadow);
    border:1px solid #edf2f7;
}

.balance-circle{
    width:50px;
    height:50px;
    border-radius:50%;
    background:linear-gradient(135deg,var(--primary),var(--primary-dark));
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    font-size:20px;
}

.balance-info{
    display:flex;
    flex-direction:column;
}

.balance-info small{
    color:var(--muted);
    font-size:12px;
}

.balance-info strong{
    font-size:20px;
    color:#0f172a;
}

/* RANK BADGE */
.rank-badge{
    color:#fff;
    padding:12px 18px;
    border-radius:999px;
    font-size:14px;
    font-weight:700;
    display:flex;
    align-items:center;
    gap:8px;
    box-shadow:var(--shadow);
}



/* 📱 MOBILE */
@media (max-width: 768px) {

    .balance-widget {
        gap: 6px;
    }

    .balance-circle {
        width: 22px;
        height: 22px;
        font-size: 14px;
    }

    .balance-info small {
        font-size: 10px;
    }

    .balance-info strong {
        font-size: 12px;
    }

    .rank-badge {
        padding: 4px 8px;
        font-size: 10px;
    }
}



.sidebar{
    width:270px;
    background:#f8fbff;
    border-right:1px solid #edf2f7;
    position:fixed;
    top:0;
    left:0;
    height:100vh;
    padding:22px 16px;
    display:flex;
    flex-direction:column;
    z-index:999;
    overflow-y:auto;
}

.sidebar-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:30px;
}

.brand-area{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
}

.sidebar-logo{
    width:95px;
    margin-bottom:10px;
}

.brand-text{
    font-size:16px;
    font-weight:800;
    color:#1e293b;
}

.menu{
    list-style:none;
    padding:0;
    margin:0;
    flex:1;
}

.menu li{
    margin-bottom:10px;
}

.menu li a{
    display:flex;
    align-items:center;
    gap:14px;
    text-decoration:none;
    color:#334155;
    padding:16px 18px;
    border-radius:16px;
    font-size:15px;
    font-weight:600;
    transition:.3s;
}

.menu li a i{
    width:18px;
    font-size:17px;
}

.menu li a:hover{
    background:#edf5ff;
    color:#0d7bdc;
}

.menu li.active a{
    background:linear-gradient(
        135deg,
        #0d7bdc,
        #085ca5
    );
    color:#fff;
    box-shadow:0 12px 24px rgba(13,123,220,.25);
}

/* =========================================
   SIDEBAR BOTTOM
========================================= */

.sidebar-bottom{
    margin-top:20px;
}

.logout{
    width:100%;
    border:none;
    background:#f1f5f9;
    color:#334155;
    padding:16px;
    border-radius:16px;
    font-size:15px;
    font-weight:700;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    transition:.3s;
    margin-bottom:18px;
}

.logout:hover{
    background:#ef4444;
    color:#fff;
}

.help-card{
    background:linear-gradient(
        180deg,
        #0d7bdc,
        #085ca5
    );
    border-radius:24px;
    padding:24px 20px;
    text-align:center;
    color:#fff;
}

.help-icon{
    width:64px;
    height:64px;
    border-radius:50%;
    background:rgba(255,255,255,.15);
    display:flex;
    align-items:center;
    justify-content:center;
    margin:0 auto 18px;
    font-size:28px;
}

.help-card h4{
    margin-bottom:10px;
    font-size:20px;
    font-weight:700;
}

.help-card p{
    font-size:14px;
    line-height:1.7;
    opacity:.92;
    margin-bottom:20px;
}

.help-btn{
    display:inline-block;
    background:#fff;
    color:#0d7bdc;
    text-decoration:none;
    padding:14px 20px;
    border-radius:14px;
    font-weight:700;
    transition:.3s;
}

.help-btn:hover{
    transform:translateY(-2px);
}

/* =========================================
   TOPBAR
========================================= */

.topbar{
    background:#fff;
    padding:22px 28px;
    border-radius:24px;
    box-shadow:0 10px 30px rgba(0,0,0,.05);
    border:1px solid #edf2f7;
    margin-bottom:24px;
}

.topbar-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
}

.top-left{
    display:flex;
    align-items:center;
    gap:20px;
}

.welcome-box small{
    color:#64748b;
    display:block;
    margin-bottom:4px;
}

.welcome-box h3{
    font-size:24px;
    font-weight:800;
    color:#0f172a;
}

.top-right{
    display:flex;
    align-items:center;
    gap:16px;
    flex-wrap:wrap;
}

/* =========================================
   USER ICON
========================================= */

.icon{
    width:52px;
    height:52px;
    border-radius:50%;
    background:#fff;
    border:1px solid #edf2f7;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    position:relative;
    box-shadow:0 8px 20px rgba(0,0,0,.05);
}

.icon i{
    font-size:18px;
    color:#334155;
}

/* =========================================
   MAIN WRAPPER
========================================= */

.main-wrapper{
    margin-left:270px;
    padding:24px;
    min-height:100vh;
    background:#f4f7fb;
}

/* =========================================
   MOBILE
========================================= */

@media(max-width:991px){

    .sidebar{
        transform:translateX(-100%);
        transition:.3s ease;
    }

    .sidebar.active{
        transform:translateX(0);
    }

    .main-wrapper{
        margin-left:0;
        padding:16px;
    }

    .menu-toggle{
        display:flex;
        align-items:center;
        justify-content:center;
        width:46px;
        height:46px;
        border:none;
        border-radius:14px;
        background:#edf5ff;
        color:#0d7bdc;
        font-size:20px;
        cursor:pointer;
    }

    .close-btn{
        display:block;
        border:none;
        background:none;
        font-size:20px;
        cursor:pointer;
    }

    .topbar-row{
        flex-direction:column;
        align-items:flex-start;
    }

    .top-right{
        width:100%;
        justify-content:space-between;
    }

}

@media(max-width:576px){

    .topbar{
        padding:18px;
    }

    .welcome-box h3{
        font-size:18px;
    }

    .balance-widget{
        width:100%;
    }

    .top-right{
        gap:12px;
    }

    .notification-dropdown{
        width:280px;
        right:-100px;
    }

}

/* =========================================
   TRANSACTION PAGE
========================================= */

.sc-transactions-page{
    width:100%;
}

/* =========================================
   HEADER
========================================= */

.sc-page-header{
    margin-bottom:20px;
}

.sc-page-header h2{
    font-size:26px;
    font-weight:800;
    color:#0f172a;
    margin-bottom:6px;
}

.sc-page-header p{
    font-size:14px;
    color:#64748b;
}

/* =========================================
   CARD
========================================= */

.sc-transaction-card{
    background:#ffffff;
    border-radius:20px;
    overflow:hidden;
    border:1px solid #edf2f7;
    box-shadow:0 2px 10px rgba(15,23,42,.03);
}

/* =========================================
   TABLE HEADER
========================================= */

.sc-table-head{
    display:grid;
    grid-template-columns:1.2fr 1.3fr 1fr 1fr;
    gap:20px;

    padding:18px 22px;

    background:#f8fbff;

    border-bottom:1px solid #edf2f7;

    font-size:13px;
    font-weight:700;
    color:#64748b;
    text-transform:uppercase;
}

/* =========================================
   ROW
========================================= */

.sc-transaction-row{
    display:grid;
    grid-template-columns:1.2fr 1.3fr 1fr 1fr;
    gap:20px;

    align-items:center;

    padding:18px 22px;

    border-bottom:1px solid #f1f5f9;

    transition:.2s ease;
}

.sc-transaction-row:hover{
    background:#f8fbff;
}

/* =========================================
   TYPE
========================================= */

.sc-type{
    display:flex;
    align-items:center;
    gap:12px;
}

.sc-type-icon{
    width:36px;
    height:36px;
    border-radius:12px;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:13px;
}

.sc-type-icon.credit,
.sc-type-icon.funding{
    background:#dcfce7;
    color:#16a34a;
}

.sc-type-icon.debit{
    background:#fee2e2;
    color:#ef4444;
}

.sc-type-text{
    font-size:14px;
    font-weight:700;
    color:#0f172a;
}

/* =========================================
   METHOD
========================================= */

.sc-method{
    font-size:14px;
    color:#475569;
    font-weight:500;
    word-break:break-word;
}

/* =========================================
   AMOUNT
========================================= */

.sc-amount{
    font-size:15px;
    font-weight:800;
}

.sc-amount.credit{
    color:#16a34a;
}

.sc-amount.debit{
    color:#ef4444;
}

/* =========================================
   DATE
========================================= */

.sc-date{
    font-size:13px;
    color:#64748b;
}

/* =========================================
   EMPTY STATE
========================================= */

.sc-empty{
    padding:60px 20px;
    text-align:center;
}

.sc-empty-icon{
    width:70px;
    height:70px;
    border-radius:20px;

    background:#edf5ff;

    color:#0d7bdc;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:28px;

    margin:0 auto 18px;
}

.sc-empty h4{
    font-size:18px;
    font-weight:700;
    margin-bottom:8px;
    color:#0f172a;
}

.sc-empty p{
    font-size:14px;
    color:#64748b;
}

/* =========================================
   PAGINATION
========================================= */

.sc-pagination{
    margin-top:20px;
}

/* =========================================
   MOBILE
========================================= */

@media(max-width:768px){

    .sc-transaction-card{
        overflow-x:auto;
    }

    .sc-table-head,
    .sc-transaction-row{
        min-width:720px;
    }

}

@media(max-width:576px){

    .sc-page-header h2{
        font-size:22px;
    }

    .sc-table-head,
    .sc-transaction-row{
        padding:16px;
    }

}
/* =========================
   COPY SUCCESS MODAL
========================= */

.copy-success-modal{
    position:fixed;
    inset:0;
    background:rgba(15,23,42,.25);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:99999;
    opacity:0;
    transition:.3s;
    backdrop-filter:blur(3px);
}

.copy-success-modal.show{
    opacity:1;
}

.copy-success-box{
    width:320px;
    background:#fff;
    border-radius:26px;
    padding:35px 25px;
    text-align:center;
    box-shadow:0 20px 60px rgba(0,0,0,.15);
    transform:translateY(20px) scale(.95);
    transition:.3s;
}

.copy-success-modal.show .copy-success-box{
    transform:translateY(0) scale(1);
}

.copy-success-icon{
    width:75px;
    height:75px;
    margin:auto;
    border-radius:50%;
    background:linear-gradient(135deg,#0d6efd,#1e88ff);
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    font-size:30px;
    margin-bottom:18px;
}

.copy-success-box h4{
    font-size:22px;
    font-weight:800;
    color:#0f172a;
    margin-bottom:8px;
}

.copy-success-box p{
    color:#64748b;
    font-size:14px;
}

/* MOBILE */
@media(max-width:768px){

    .copy-success-box{
        width:88%;
        padding:30px 20px;
    }

}

/* STATUS */

.sms-status{
    padding:6px 12px;
    border-radius:30px;
    font-size:12px;
    font-weight:600;
}

.status-completed{
    background:#e8f7ed;
    color:#16a34a;
}

.status-pending{
    background:#fff7e6;
    color:#f59e0b;
}

.status-cancelled{
    background:#fee2e2;
    color:#dc2626;
}

/* OTP */

.otp-code{
    background:#eef4ff;
    color:#1A73A8;
    padding:6px 10px;
    border-radius:8px;
    font-weight:700;
    font-size:13px;
}
/* =========================
   MOBILE SMS TABLE
========================= */

@media(max-width:768px){

    .sms-card{
        background:transparent;
        box-shadow:none;
        overflow:visible;
    }

    .sms-table,
    .sms-table tbody,
    .sms-table tr,
    .sms-table td{
        display:block;
        width:100%;
    }

    .sms-table thead{
        display:none;
    }

    .sms-table tbody tr{
        background:#fff;
        border-radius:18px;
        padding:14px;
        margin-bottom:15px;
        box-shadow:0 4px 15px rgba(0,0,0,.05);
        border:none;
    }

    .sms-table tbody td{
        display:flex;
        justify-content:space-between;
        align-items:center;
        gap:10px;
        padding:10px 0;
        border-bottom:1px solid #f1f5f9;
        font-size:13px;
        text-align:right;
    }

    .sms-table tbody td:last-child{
        border-bottom:none;
    }

    /* LABELS */

    .sms-table tbody td:nth-child(1)::before{
        content:"No";
    }

    .sms-table tbody td:nth-child(2)::before{
        content:"Service";
    }

    .sms-table tbody td:nth-child(3)::before{
        content:"Amount";
    }

    .sms-table tbody td:nth-child(4)::before{
        content:"Status";
    }

    .sms-table tbody td:nth-child(5)::before{
        content:"Phone";
    }

    .sms-table tbody td:nth-child(6)::before{
        content:"Code";
    }

    .sms-table tbody td:nth-child(7)::before{
        content:"Date";
    }

    .sms-table tbody td::before{
        font-weight:700;
        color:#1A73A8;
        text-align:left;
        min-width:90px;
    }

    .otp-code{
        font-size:12px;
        padding:5px 8px;
    }

}

/* =========================
   BOOTSTRAP PAGINATION FIX
========================= */

.pagination-wrapper{
    margin-top:25px;
    display:flex;
    justify-content:center;
}

.pagination{
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    justify-content:center !important;
    gap:8px;
    flex-wrap:wrap;
    margin:0;
}

/* BUTTONS */

.page-item .page-link{
    width:38px;
    height:38px;
    border-radius:10px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    border:1px solid #e5e7eb !important;
    background:#fff;
    color:#1A73A8 !important;
    font-weight:600;
    box-shadow:none !important;
}

/* ACTIVE */

.page-item.active .page-link{
    background:#1A73A8 !important;
    border-color:#1A73A8 !important;
    color:#fff !important;
}

/* HOVER */

.page-link:hover{
    background:#1A73A8 !important;
    color:#fff !important;
}

/* MOBILE */

@media(max-width:768px){

    .page-item .page-link{
        width:34px;
        height:34px;
        font-size:13px;
    }

}
/* =========================
   CUSTOM PAGINATION
========================= */

.custom-pagination{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    margin-top:25px;
    flex-wrap:wrap;
}

.custom-pagination a,
.custom-pagination span{
    width:38px;
    height:38px;
    border-radius:10px;
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    font-weight:600;
    border:1px solid #e5e7eb;
    background:#fff;
    color:#1A73A8;
    transition:.3s ease;
}

.custom-pagination a:hover{
    background:#1A73A8;
    color:#fff;
}

.custom-pagination .active{
    background:#1A73A8;
    color:#fff;
    border-color:#1A73A8;
}

.custom-pagination .disabled{
    opacity:.4;
    cursor:not-allowed;
}

/* INFO */

.pagination-info{
    width:100%;
    text-align:center;
    margin-top:14px;
    color:#6b7280;
    font-size:14px;
    display:block;
}

/* MOBILE */

@media(max-width:768px){

    .custom-pagination a,
    .custom-pagination span{
        width:34px;
        height:34px;
        font-size:13px;
    }

    .pagination-info{
        font-size:13px;
    }

}

.ref-box{
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    gap:12px !important;
}

.ref-box input{
    flex:1 1 auto !important;
    width:1% !important;
    min-width:0 !important;
    display:block !important;
}

.ref-box button{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;

    width:140px !important;
    min-width:140px !important;
    max-width:140px !important;

    flex:0 0 140px !important;
}

/* MOBILE */

@media(max-width:768px){

    .ref-box{
        flex-direction:column !important;
        align-items:stretch !important;
    }

    .ref-box input{
        width:60% !important;
    }

    .ref-box button{
        width:10% !important;
        max-width:100% !important;
        flex:none !important;
    }

}

/* =========================
   DASHBOARD BANNER
========================= */

.dashboard-banner{
    width:100%;
    border-radius:24px;
    overflow:hidden;
    margin-bottom:20px;
    background:#fff;
    border:1px solid #e5e7eb;
    box-shadow:0 8px 24px rgba(15,23,42,.05);
}

/* IMAGE */

.dashboard-banner img{
    width:100%;
    height:auto;
    display:block;

    /* 🔥 SHOW FULL IMAGE */
    object-fit:contain;

    border-radius:24px;

    

    /* 🔥 PREVENT STRETCH */
    object-fit:cover;
    object-position:center;

    border-radius:24px;
}

/* TABLET */

@media(max-width:992px){

    .dashboard-banner img{
        max-height:180px;
    }

}

/* MOBILE */

@media(max-width:768px){

    .dashboard-banner{
        border-radius:18px;
        overflow:hidden;
    }

    .dashboard-banner img{
        width:100%;
        height:auto;
        max-height:none;
        border-radius:18px;
    }

}