/* Whole row layout */
.top-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
    margin-top: 20px;
}

.referral-card
 {
    background: #1c1323;
    border-radius: 14px;
    padding: 15px;
    flex: 1;
    min-width: 400px;     
    box-sizing: border-box;
    color: #fff;
}
.referral-card1
 {
    background: linear-gradient(135deg, #245f82, #280342);
    border-radius: 14px;
    padding: 15px;
    flex: 1;
    min-width: 400px;     
    box-sizing: border-box;
    color: #fff;
}


.capital-card {
    background: #1c1323;
    border-radius: 14px;
    padding: 15px;
    flex: 1;
    min-width: 200px;     
    box-sizing: border-box;
    color: #fff;
}
.capital-card1 {
    background:linear-gradient(135deg, #0f5132, #0a2f23);
    border-radius: 14px;
    padding: 15px;
    flex: 1;
    min-width: 200px;     
    box-sizing: border-box;
    color: #fff;
}

.referral-card h3,
.capital-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

/* Referral Buttons */
.referral-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.referral-btns button {
    flex: 1;
    min-width: 90px;
    padding: 10px 12px;
    background: #2c1f36;
    border: 1px solid #63448f;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

/* Capital Card */
.capital-card .value {
    margin: 10px 0;
    font-size: 25px;
}

.progress-box {
    width: 100%;
    background: #ffffff30;
    border-radius: 5px;
    height: 8px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff8f8f, #ff6fb5);
}

.progress-text {
    font-size: 13px;
    margin-top: 5px;
    display: inline-block;
    color: #ccc;
}

/* ----------- Mobile Responsive (max 480px) ------------ */
@media(max-width: 480px) {

    .top-row {
        flex-direction: column;
    }

    .referral-card,
    .capital-card {
        min-width: 100%;
    }

    .referral-btns button {
        flex: 1 1 100%;   
        text-align: center;
    }
}
/*------*/
/* ---------- Mobile Responsive (max 480px) ---------- */
@media(max-width: 480px) {

    .top-row {
        flex-direction: column;
    }

    .referral-card,
    .capital-card {
        min-width: 100%;
        width: 100%;
       
    }
    .referral-card p{
         font-size:11px;
    }

    /* 3 buttons in one row */
    .referral-btns {
        display: flex;
        flex-wrap: nowrap; 
        gap: 8px;
    }

    .referral-btns button {
        flex: 1 1 calc(33.33% - 8px);
        padding: 10px 5px;
        text-align: center;
        font-size: 13px;
        white-space: nowrap;
    }

  
    .referral-btns button a {
        color: #fff;
        text-decoration: none;
        display: block;
        width: 100%;
    }
}

/* ---------- Extra Small Mobile (max-width: 320px) ---------- */
@media(max-width: 320px) {

    .top-row {
        flex-direction: column;
    }

    .referral-card,
    .capital-card {
        min-width: 100%;
    }

    
    .referral-btns {
        display: flex;
        flex-wrap: nowrap;
        gap: 6px;
    }

    .referral-btns button {
        flex: 1 1 calc(33.33% - 6px);
        padding: 8px 4px;
        font-size: 11px;
        text-align: center;
        white-space: nowrap;
    }

    .referral-btns button i {
        font-size: 12px;
    }

  
    .referral-btns button a {
        color: #fff;
        text-decoration: none;
        display: block;
        width: 100%;
    }
}
@media (max-width: 380px) {

    .referral-btns {
        display: flex;
        flex-wrap: nowrap;
        gap: 6px;
        width: 100%;
    }

    .referral-btns button {
        flex: 0 0 calc(33.33% - 6px);
        padding: 10px 4px;
        border-radius: 8px;
        text-align: center;
        font-size: 11px;
        display: flex;
        justify-content: center;
        align-items: center;
        white-space: nowrap;
    }

    /* FIX: Anchor full width + center */
    .referral-btns button a {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        color: #fff;
        text-decoration: none;
        font-size: 11px;
        gap: 4px;
    }

    .referral-btns button i {
        font-size: 12px;
    }
}

/*------*/
/*card code start*/
/* Section with grid */
.pol-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin: 25px 0;
}

/* Card */
.pol-card {
    position: relative;
    padding: 25px 20px;
    background:linear-gradient(135deg, teal, #2b081a);
    border-radius: 16px;
    border: 1px solid #222;
    color: white;
    overflow: hidden;
    box-shadow: inset 0px 0px 40px -20px rgba(255,255,255,0.18);
    transition: 0.3s ease;
}
.pol-card1 {
    position: relative;
    padding: 25px 20px;
    background:linear-gradient(135deg, #2b1055, #1a1a40);
    border-radius: 16px;
    border: 1px solid #222;
    color: white;
    overflow: hidden;
    box-shadow: inset 0px 0px 40px -20px rgba(255,255,255,0.18);
    transition: 0.3s ease;
}
.pol-card2 {
    position: relative;
    padding: 25px 20px;
    background:linear-gradient(135deg, #573613, #8a7505);
    border-radius: 16px;
    border: 1px solid #222;
    color: white;
    overflow: hidden;
    box-shadow: inset 0px 0px 40px -20px rgba(255,255,255,0.18);
    transition: 0.3s ease;
}

/* Hover effect */
.pol-card:hover {
    border-color: #666;
    box-shadow:
        inset 0px 0px 55px -20px rgba(255,255,255,0.25),
        0px 4px 15px rgba(0,0,0,0.6);
}

/* Folded corners */
.pol-card::before,
.pol-card::after {
    content: "";
    position: absolute;
    width: 70px;
    height: 70px;
    /*background: #0d0d0d;*/
    /*border: 1px solid #222;*/
    /*transform: rotate(45deg);*/
    /*pointer-events: none;*/
    /*z-index: 1;*/
}

.pol-card::before {
    top: -35px;
    right: -35px;
}

.pol-card::after {
    bottom: -35px;
    left: -35px;
}

/* Icon */
.pol-icon {
    height: 55px;
    margin-bottom: 8px;
}

.pol-icon img {
    width: auto;
    height: 100%;
}

/* Text */
.pol-title {
    font-size: 16px;
    margin: 0 0 6px;
}

.pol-value {
    font-size: 22px;
    margin: 0;
    color: #e8cbff;
    font-weight: 600;
}

/* Purple glow circle */
.pol-circle {
    position: absolute;
    top: 23px;
    right: 20px;
    width:65px;
    height: 65px;
    border-radius: 50%;
    /*background: radial-gradient(rgba(113,0,255,0.4), transparent 60%);*/
    /*opacity: 0.4;*/
    z-index: 0;
    color:orangered;
    left: 63%;
}

/* Responsive */

@media (max-width: 900px) {
    .pol-section {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobiles (still 2 cards per row) */
@media (max-width: 500px) {
    .pol-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}


/*card code end*/


/*============================================================*/

.mobile-bottom-nav{
    position: fixed;
    bottom: 0;
    left: 0;
    width:100%;
    background:#1c1323;
    display:flex;
    justify-content: space-around;
    padding:8px 0 10px;
    z-index:9999;
    border-top:1px solid rgba(255,255,255,0.1);
}

.mobile-bottom-nav .nav-item{
    color:#fff;
    text-align:center;
    font-size:13px;
}

.mobile-bottom-nav .nav-item i{
    font-size: 22px;
      display: block;
      text-align: center;
      padding: 5px;
      margin-left: 3px;
}

/* === HIDE SIDEBAR ON MOBILE === */
@media(max-width:768px){
    .side-navbar{
        display:none !important;
    }
}


/* === SLIDE MENU === */
.mobile-slide-menu{
    position: fixed;
    bottom: -100%;
    left: 0;
    width:100%;
    background:#1c1323;
    color:#fff;
    transition:0.4s ease;
    z-index:10000;
    padding-bottom:20px;
    border-radius: 20px 20px 0 0;
}

.mobile-slide-menu.show{
    bottom:0;
}

.menu-header{
    padding:15px 20px;
    display:flex;
    justify-content: space-between;
    align-items:center;
    border-bottom:1px solid rgba(255,255,255,0.1);
}

.menu-header .close-menu{
    font-size:28px;
    cursor:pointer;
}

.mobile-menu-list{
    list-style:none;
    margin:0;
    padding:10px 20px;
}

.mobile-menu-list li a{
    display:block;
    padding:12px 0;
    color:#fff;
    border-bottom:1px solid rgba(255,255,255,0.1);
    font-size:16px;
}

   /**/
   
   .side-navbar ul li.active > a {
    background: #db7d05 !important;
    color: #fff !important;
    border-radius: 4px;
}

.side-navbar ul li.active > a i {
    color: #fff !important;
}
/*------------------*/

@media (max-width: 768px) {
    #toggle-btn {
        display: none !important;
    }
}
