:root{
    --primary:#cc171d;
    --primary-dark:#a81318;
    --success:#28a745;
    --danger:#dc3545;
    --warning:#ffc107;
    --gray:#f5f5f5;
    --light:#fff;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial,sans-serif;
}

body{
    background:var(--gray);
}

/* Sidebar */

.sidebar{
    position:fixed;
    top:0;
    left:0;
    width:260px;
    height:100vh;
    /* background-image: url("../img/bg.jpg"); */
    background:var(--light);
    color: var(--primary-dark);
    padding:20px;
    overflow-y:auto;
    transition:.3s;
    z-index:1000;
}

.sidebar.closed{
    left:-260px;
}

/* .logo{
    font-size:24px;
    font-weight:bold;
    text-align:center;
    margin-bottom:30px;
} */

.sidebar a{
    display:block;
    color: var(--primary-dark);

    text-decoration:none;
    padding: 20px;
    font-weight: 600;
    margin-bottom:8px;
    border-radius:10px;
    transition:.3s;
}
/*  */


/*  */
.sidebar a:hover{
    color: var(--light);
    /* background:rgba(15, 0, 0, 0.7); */
    background-image: url("../img/bg.jpg");
}

/* Main */

.main{
    margin-left:260px;
    padding:20px;
    transition:.3s;
}

.main.full{
    margin-left:0;
}

/* Header */

/* Welcome */

.welcome{
    padding:20px;
    display: flex;
    justify-content: center;
    align-content: center;
}

.welcome p{
    color:var(--dark);
    font-style: italic;
}
.welcome i{
    color:var(--primary-dark);
    font-size: 30px;
}
.welcome span{
    color:var(--primary-dark);
    /* font-size: 30px; */
}
/* Balance Card */

.balance-card{
    margin:15px;
   background-image: url("../img/bg.jpg");
    color:#fff;
    padding:25px;
    display: flex;
    justify-content: space-between;
    border-radius:15px;
}
.balance-card h3{
    color: var(--warning);
}
.balance-card div{
    /* padding: 5px; */
    /* border: 1px dotted var(--warning); */
}
.balance-card h3{
    font-size:16px;
    opacity:.9;
}

.balance-card h1{
    margin-top:10px;
    font-size:32px;
}
/* HEADER */

.header{

    background-image: url("../img/bg.jpg");
    color:white;
    padding:25px;
    text-align:center;

}


.header h1{

    font-size:35px;

}


.header p{

    margin-top:10px;
}


.heax{
        position: sticky;
    background:#fff;
    padding:15px 20px;
    top: 0px;
    border-radius:15px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
    margin-bottom:20px;
    z-index:998;
}

.menu-toggle{
    border:none;
    background:var(--primary);
    color:#fff;
    padding:10px 14px;
    border-radius:8px;
    cursor:pointer;
    font-size:18px;
}

/* TASK DONE  */
    
.balancetk{
    background:#fff;
    width:70%;
    max-width:500px;
    margin:0px auto;
    padding: 5px;
    border-radius:15px;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
    text-align:center;
    top: 10px;
    position: sticky;
    z-index: 998;
}

.balancetk h2{
    color:var(--primary);
    font-size:22px;
}

.container{
    width:95%;
    max-width:1200px;
    margin:auto;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
    padding-bottom:50px;
}

.task-card{
    background:#fff;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
    transition:.3s;
}

.task-card:hover{
    transform:translateY(-5px);
}

.task-header{
    background:var(--primary);
    color:#fff;
    padding:15px;
    text-align:center;
    display: none;
}

.task-body{
    /* border: 1px solid red; */
    padding:15px;
}

.task-body img{
    width:100%;
    border-radius:10px;
}

.reward{
    margin:10px 0;
    font-weight:bold;
    color:var(--success);
}

.btn{
    width:100%;
        padding:8px 12px;

    border:none;
    border-radius:10px;
    background:var(--primary);
    color:#fff;
    cursor:pointer;
    font-size:16px;
}
.btn:hover{
    opacity:.9;
}

.progress{
    width:100%;
    height:10px;
    background:#ddd;
    border-radius:20px;
    margin-top:15px;
}

.progress-bar{
    width:0%;
    height:100%;
    background:var(--success);
    border-radius:20px;
    transition:1s;
}

.completed{
    background:var(--success)!important;
}

.badge{
    display:inline-block;
    background:#ffcc00;
    color:#000;
    padding:5px 10px;
    border-radius:20px;
    font-size:12px;
    margin-top:10px;
}
/* TASK DONE  */
/* Form */

.form-group{
    margin-bottom:15px;
}

.form-group input,
.form-group textarea,
.form-group select{
    width:100%;
    padding:12px;
    border:1px solid #ddd;
    border-radius:8px;
    outline:none;
}

.form-group input:focus,
.form-group textarea:focus{
    border-color:var(--primary);
}

.submit-btn{
    width:100%;
    padding:14px;
    background:var(--primary);
    color:#fff;
    border:none;
    border-radius:8px;
    cursor:pointer;
    font-weight:bold;
}

.submit-btn:hover{
    background:var(--primary-dark);
}

/* Cards */

.stats{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:15px;
    margin-bottom:20px;
}

.card{
    background:#fff;
    padding:20px;
    border-radius:15px;
    text-align:center;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
    transition:.3s;
}

.card:hover{
    transform:translateY(-5px);
}

.card h4{
    color:#666;
    margin-bottom:10px;
}

.card h2{
    color:var(--primary);
}

/* Section */

.section{
    background:#fff;
    padding:20px;
    border-radius:15px;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
    overflow:auto;
}
/* Quick Actions */

.actions{
    padding:15px;
}

.actions h3{
    margin-bottom:15px;
}

.action-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:15px;
}

.action-btn{
    background:#fff;
    padding:20px;
    border-radius:15px;
    text-align:center;
    text-decoration:none;
    color:var(--dark);
    font-weight:bold;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
}

.action-btn:hover{
    background:var(--primary);
    color:#fff;
}

/* Tasks */

.tasks{
    padding:15px;
}

.task-card{
    background:#fff;
    padding:15px;
    border-radius:15px;
    margin-bottom:10px;
    height: 100px;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
}

.task-card h4{
    margin-bottom:8px;
}

.reward{
    color:var(--success);
    font-weight:bold;
}

.start-btn{
    margin-top:10px;
    background:var(--primary);
    color:#fff;
    border:none;
    padding:10px 15px;
    border-radius:8px;
    cursor:pointer;
}

/* PLAN SECTION */

.plans{

    padding:40px 8%;

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(280px,1fr));

    gap:30px;

}



/* CARD */

.plan-card{

    background:white;

    border-radius:20px;

    padding:30px;

    text-align:center;

    box-shadow:
    0 10px 30px rgba(0,0,0,.08);

    transition:.4s;

    position:relative;

    overflow:hidden;

}


.plan-card:hover{

    transform:translateY(-10px);

}



/* TOP COLOR */

.plan-card::before{

    content:"";

    position:absolute;

    height:6px;

    width:100%;

    top:0;

    left:0;

    background:var(--primary);

}



.plan-card h2{

    margin-top:15px;

    color:#222;

}


.price{

    font-size:40px;

    font-weight:bold;

    color:var(--primary);

    margin:20px 0;

}



.plan-card ul{

    list-style:none;

    margin:20px 0;

}


.plan-card li{

    padding:10px;

    border-bottom:1px solid #eee;

    color:#555;

}



/* BUTTON */

.activate{

    display:inline-block;

    margin-top:20px;

    background:var(--primary);

    color:white;

    padding:14px 35px;

    border-radius:30px;

    text-decoration:none;

    font-weight:bold;

    transition:.3s;

}


.activate:hover{

    background:#222;

}


/* Referral Card */

.referral-card{
    background:linear-gradient(
        135deg,
        var(--primary),
        var(--primary-dark)
    );
    color:#fff;
    padding:25px;
    border-radius:15px;
    margin-bottom:20px;
    text-align:center;
}

.referral-card h2{
    margin-bottom:10px;
}

.referral-card p{
    opacity:.9;
}

/* Referral Link */

.link-box{
    background:#fff;
    padding:15px;
    border-radius:15px;
    margin-bottom:20px;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
}

.link-box label{
    font-weight:bold;
    display:block;
    margin-bottom:10px;
}

.link-input{
    display:flex;
    gap:10px;
}

.link-input input{
    flex:1;
    padding:12px;
    border:1px solid #ddd;
    border-radius:8px;
}

.copy-btn{
    background:var(--primary);
    color:#fff;
    border:none;
    padding:12px 15px;
    border-radius:8px;
    cursor:pointer;
}

/* Stats */

.stats{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:15px;
    margin-bottom:20px;
}

.stat-card{
    background:#fff;
    padding:20px;
    border-radius:15px;
    text-align:center;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
}

.stat-card h4{
    color:#666;
    margin-bottom:8px;
}

.stat-card h2{
    color:var(--primary);
}

/* Referral List */

.referrals{
    background:#fff;
    padding:20px;
    border-radius:15px;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
}

.referrals h3{
    margin-bottom:15px;
}

.user{
    display:flex;
    justify-content:space-between;
    padding:12px 0;
    border-bottom:1px solid #eee;
}

.user:last-child{
    border-bottom:none;
}

.active{
    color:var(--success);
    font-weight:bold;
}

/* Share Buttons */

.share-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:10px;
    margin-top:20px;
}

.share-btn{
    background:#fff;
    border:none;
    padding:15px;
    border-radius:10px;
    cursor:pointer;
    font-weight:bold;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
}

.share-btn:hover{
    background:var(--primary);
    color:#fff;
}

/* DEPOSITE FORM */
.deposit-form{
    background:#fff;
    padding:20px;
    border-radius:15px;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
}

.input-group{
    margin-bottom:15px;
}

.input-group label{
    display:block;
    margin-bottom:6px;
    font-weight:bold;
}

.input-group input,
.input-group select{
    width:100%;
    padding:12px;
    border:1px solid #ddd;
    border-radius:8px;
    outline:none;
}

.input-group input:focus,
.input-group select:focus{
    border-color:var(--primary);
}

.deposit-btn{
    width:100%;
    padding:14px;
    border:none;
    border-radius:8px;
    background:var(--primary);
    color:#fff;
    font-size:16px;
    font-weight:bold;
    cursor:pointer;
}

.deposit-btn:hover{
    background:var(--primary-dark);
}

.notice{
    background:#fff3cd;
    color:#856404;
    padding:15px;
    border-radius:10px;
    margin-top:15px;
    font-size:14px;
}
/* Transactions */

.transactions{
    padding:15px;
    height: 250px;
    /* border: 2px solid red; */
    overflow: hidden;
    margin-bottom: 100px;
}

.transaction{
    background:#fff;
    padding:15px;
    border-radius:12px;
    margin-bottom:10px;
    display:flex;
    justify-content:space-between;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
}

.credit{
    color:var(--success);
    font-weight:bold;
}

.debit{
    color:red;
    font-weight:bold;
}
/* Table */

table{
    margin-top: -10px;
    width:100%;
    border-collapse:collapse;
}

th{
    background:var(--primary);
    color:#fff;
    padding:12px;
    text-align:left;
}

td{
    padding:12px;
    border-bottom:1px solid #eee;
}



.edit{
    background:var(--warning);
    color:#000;
}

.delete{
    background:var(--danger);
}

.active{
    color:var(--success);
    font-weight:bold;
}

/* Overlay */

#overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.5);
    display:none;
    z-index:999;
}

#overlay.show{
    display:block;
}
/* Bottom Navigation */

.bottom-nav{
    position:fixed;
    bottom:0;
    left:0;
    width:100%;
    background:#fff;
    display:flex;
    align-items: center;
    z-index:9999 ;
    justify-content:space-around;
    padding:12px 0;
    box-shadow:0 -2px 10px rgba(0,0,0,.1);
}

.bottom-nav a{
    text-decoration:none;
    color:#666;
    font-size:14px;
}

.bottom-nav a.active{
    color:var(--primary);
    font-weight:bold;
}
/* Action Buttons */

.action-buttons{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:15px;
    padding:0 20px;
    margin-bottom: 20px;
}

.action-btn{
    text-decoration:none;
    text-align:center;
    padding:15px;
    background:#fff;
    border-radius:15px;
    color:var(--dark);
    font-weight:bold;
    box-shadow:0 3px 10px rgba(0,0,0,.08);
    transition:.3s;
}

.action-btn:hover{
    background:var(--primary);
    color:#fff;
}
/* PROFILE */

.profile-header{
    background:linear-gradient(135deg,#cc171b,#ff4545);
    padding:40px 20px;
    text-align:center;
    color:#fff;
}

.profile-pic{
    width:120px;
    height:120px;
    border-radius:50%;
    border:5px solid #fff;
    object-fit:cover;
    margin-bottom:10px;
}

.profile-name{
    font-size:24px;
    font-weight:bold;
}

.profile-id{
    opacity:.9;
    margin-top:5px;
}

.profile-card{
    width:95%;
    max-width:900px;
    margin:-30px auto 20px;
    background:#fff;
    border-radius:20px;
    padding:20px;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
}

.stats{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
    gap:15px;
    margin-bottom:20px;
}

.stat-box{
    background:#f8f8f8;
    border-radius:15px;
    padding:20px;
    text-align:center;
}

.stat-box i{
    font-size:25px;
    color:var(--primary);
    margin-bottom:10px;
}

.stat-box h3{
    color:var(--primary);
}

.menu{
    display:grid;
    gap:12px;
}

.menu a{
    text-decoration:none;
    color:#222;
    background:#f8f8f8;
    padding:15px;
    border-radius:12px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    transition:.3s;
}

.menu a:hover{
    background:#ececec;
}

.logout{
    background:#cc171b !important;
    color:#fff !important;
}

.badge{
    background:#28a745;
    color:#fff;
    padding:4px 10px;
    border-radius:20px;
    font-size:12px;
}

.edit-btn{
    margin-top:10px;
    padding:10px 20px;
    border:none;
    background:#fff;
    color:#cc171b;
    border-radius:30px;
    cursor:pointer;
    font-weight:bold;
}

.modal{
    display:none;
    position:fixed;
    left:0;
    top:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.6);
    z-index:9999;
}

.modal-content{
    background:#fff;
    width:90%;
    max-width:500px;
    margin:50px auto;
    border-radius:15px;
    padding:20px;
    max-height:400px;
    overflow:auto;
}

.close{
    float:right;
    font-size:30px;
    cursor:pointer;
    color:#cc171b;
}

.form-group{
    margin-bottom:15px;
}

.form-group label{
    display:block;
    margin-bottom:5px;
    font-weight:bold;
}

.form-group input,
.form-group textarea{
    width:100%;
    padding:12px;
    border:1px solid #ddd;
    border-radius:8px;
}

.save-btn{
    width:100%;
    padding:12px;
    border:none;
    background:#cc171b;
    color:#fff;
    border-radius:8px;
    cursor:pointer;
}

/* Button */
.withdraw-btn{
    width:100%;
    padding:14px;
    border:none;
    border-radius:8px;
    background:var(--primary);
    color:#fff;
    font-size:16px;
    font-weight:bold;
    cursor:pointer;
}

.withdraw-btn:hover{
    background:var(--primary-dark);
}

.remove-btn{
  background:none;
  border:none;
  font-size:15px;
  cursor:pointer;
  padding:2px;
  width:20px;
  height:20px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:red;
  border-radius:50%;
  transition:0.2s;
}

.sideimg{
  width: 60px;
  height: 70px;
  
  h3{
  font-size: 10px;
  }
  div{
    /* border: 1px solid red; */
    height: 60px;
      border-radius: 5px;

     video{
      width: 100%;
      height: 100%;
      border-radius: 5px;
    }
  }

  div{
    /* border: 1px solid red; */
    height: 60px;
      border-radius: 5px;

    img{
      width: 100%;
      height: 100%;
      margin-top: -40px;
      border-radius: 5px;
    }

    div{
    border: 1px solid red;
    height: 60px;
      border-radius: 5px;

    .preview-audio{
      width: 100%;
      height: 100%;
      margin-top: -80px;
      border-radius: 5px;
    }
  }
  }
}
.containerx{
    padding:20px;
    animation:fadeIn .6s ease;
}

/* Summary Cards */

.summary-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:15px;
    margin-bottom:20px;
}

.summary-card{
    background:#fff;
    padding:20px;
    border-radius:15px;
    text-align:center;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
}

.summary-card:hover{
    transform:translateY(-5px);
    box-shadow:0 10px 20px rgba(0,0,0,.15);
}

.summary-card h4{
    color:#666;
    margin-bottom:8px;
}

.summary-card h2{
    color:var(--primary);
}

/* Filters */

.filters{
    display:flex;
    gap:10px;
    margin-bottom:20px;
}

.filters input,
.filters select{
    flex:1;
    padding:12px;
    border:1px solid #ddd;
    border-radius:10px;
    outline:none;
}

.filters input:focus,
.filters select:focus{
    border-color:var(--primary);
    box-shadow:0 0 8px rgba(204,23,29,.2);
}

/* Transactions */

.section-title{
    margin-bottom:15px;
    color:var(--dark);
}

.transaction{
    background:#fff;
    padding:15px;
    border-radius:15px;
    margin-bottom:12px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
    animation:slideUp .5s ease;
}

.transaction:hover{
    transform:translateX(5px);
    box-shadow:0 10px 20px rgba(0,0,0,.12);
}

.transaction-info h4{
    margin-bottom:5px;
}

.transaction-info p{
    color:#777;
    font-size:13px;
}
.tran-info{
    color:#777;
    font-size:13px;
}
.credit, .Approved{
    color:var(--success);
    font-weight:bold;
}

.debit{
    color:var(--danger);
    font-weight:bold;
}

.pending{
    color:var(--warning);
    font-weight:bold;
}

/* ERROR */


.containerw{
    background:#fff;
    width:100%;
    max-width:420px;
    padding:35px 25px;
    border-radius:15px;
    text-align:center;
    box-shadow:0 10px 30px rgba(0,0,0,.12);
}

.iconw{
    width:80px;
    height:80px;
    margin:auto;
    border-radius:50%;
    background:#fff3cd;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:40px;
    margin-bottom:20px;
}

/* h2{
    color:#222;
    margin-bottom:15px;
} */

.pp{
    color:#666;
    line-height:1.6;
    margin-bottom:30px;
}

.btnw{
    display:block;
    width:100%;
    background:#0d6efd;
    color:#fff;
    text-decoration:none;
    padding:15px;
    border-radius:8px;
    font-size:16px;
    font-weight:bold;
    transition:.3s;
}

.btnw:hover{
    background:#0b5ed7;
}
.action_btn{
    /* border: 1px solid red; */
    display: flex;
    justify-content: space-between;
    column-gap: 5px;
    button{
        width: 80px;
        padding: 5px;
    }
}
.active-Unblock, .active-Approved{
    font-weight: 800;
    color: var(--success);
}
.active-Block{
    font-weight: 800;
    color: var(--primary-dark);
}

/* Select */
.custom-select {
    width: 100px;
    padding: 2px 5px;
    font-size: 16px;
    font-family: Arial, sans-serif;
    color: #333;
    background: var(--warning);
    border: 2px solid #007bff;
    border-radius: 8px;
    outline: none;
    cursor: pointer;
    transition: 0.3s ease;
}

.custom-select:hover {
    border-color: #0056b3;
}

.custom-select:focus {
    border-color: #28a745;
    box-shadow: 0 0 8px rgba(40, 167, 69, 0.4);
}

/* Options (limited browser support) */
.custom-select option {
    background: #ffffff;
    color: #333;
    font-size: 16px;
    padding: 10px;
}

/* Selected option */
.custom-select option:checked {
    background: #007bff;
    color: #fff;
}
.Successful{
      text-decoration:none;
    text-align:center;
    padding:15px;
    background:#fff;
    border-radius:15px;
    color:var(--light);
    border:  none;
    font-weight:bold;
    box-shadow:0 3px 10px rgba(0,0,0,.08);
    transition:.3s;
    background: var(--success);
}
.Failed{
      text-decoration:none;
    text-align:center;
    padding:15px;
    background:#fff;
    border-radius:15px;
    color:var(--light);
    border:  none;
    font-weight:bold;
    box-shadow:0 3px 10px rgba(0,0,0,.08);
    transition:.3s;
    background: var(--primary);
}
 

.xcontainer{
    /* max/-width:450px; */
    flex-wrap: wrap;
    margin:auto;
    display: flex;
    justify-content: center;
    column-gap: 20px;
}

.xcard{
    background:var(--light);
    border-radius:18px;
    padding:22px;
    margin-bottom:22px;
    border:1px solid #e6e6e6;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
    transition:.3s;
}

.xcard:hover{
    transform:translateY(-3px);
}
.subscription-box{
    max-width:420px;
    margin:30px auto;
    padding:25px;
    background:#fff;
    border-radius:12px;
    text-align:center;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
}

.subscription-box h3{
    margin:0 0 10px;
    color:#e53935;
    font-size:24px;
}

.subscription-box p{
    color:#555;
    margin-bottom:20px;
}

.btn-subscribe{
    display:inline-block;
    padding:12px 25px;
    background:#0d6efd;
    color:#fff;
    text-decoration:none;
    border-radius:8px;
    font-weight:bold;
    transition:.3s;
}

.btn-subscribe:hover{
    background:#0b5ed7;
}
.xcard h2{
    font-size:22px;
    color:#222;
    margin-bottom:18px;
}

.xinfo{
    margin-bottom:12px;
    font-size:17px;
    color:#444;
    line-height:1.6;
    display: flex;
    justify-content: space-between;
}

.xinfo span{
    color:var(--primary);
    font-weight:bold;
}

.xbtn-area{
    text-align:center;
    margin-top:20px;
}

.xbutton{
    width:260px;
    height:52px;
    border:none;
    border-radius:14px;
    background:var(--primary);
    color:var(--light);
    font-size:18px;
    font-weight:bold;
    cursor:pointer;
    transition:.3s;
}

.xbutton:hover{
    background:var(--primary-dark);
}

.task-overlay{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.9);
    z-index:99999;
    display:none;
    justify-content:center;
    align-items:center;
}

.task-box{
    width:95%;
    max-width:500px;
    background:#fff;
    padding:20px;
    border-radius:10px;
    text-align:center;
}

.task-box video,
.task-box audio,
.task-box img{
    width:100%;
    max-height:80vh;
}

.close-btn{
    float:right;
    /*background:red;*/
    color:#fff;
    border:none;
    padding:8px 15px;
    cursor:pointer;
    border-radius:5px;
}

#overlayProgress{
    width:0;
    height:10px;
    background:#28a745;
}
@media (max-width:500px){

    .xcontainer{
        max-width:100%;
    }

    .xcard{
        padding:18px;
    }

    .xcard h2{
        font-size:20px;
    }

    .xinfo{
        font-size:16px;
    }

    xbutton{
        width:100%;
    }

}

/* Popup */

.pin-modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.6);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:9999;
}

.pin-box{
    background:#fff;
    width:90%;
    max-width:360px;
    border-radius:15px;
    padding:25px;
    text-align:center;
}

.pin-box h2{
    color:var(--primary);
    margin-bottom:10px;
}

.pin-box p{
    color:#555;
    margin-bottom:20px;
}

.pin-inputs{
    display:flex;
    justify-content:center;
    gap:10px;
}

.pin{
    width:50px;
    height:55px;
    font-size:28px;
    text-align:center;
    border:2px solid #ddd;
    border-radius:8px;
    outline:none;
}

.pin:focus{
    border-color:var(--primary);
}

.cancel-btn{
    margin-top:20px;
    width:100%;
    border:none;
    background:#777;
    color:#fff;
    padding:12px;
    border-radius:8px;
    cursor:pointer;
}

.cancel-btn:hover{
    background:#555;
}
.taskimg{
    /* border: 1px solid red; */
    width: 100px;
    height: 100px;
}
.taskimg img{
    border-radius: 10px;
    width: 100%;

    /* border: 1px solid red; */
    height: 100%;
}
.taskimgx{
    /* border: 1px solid red; */
    width: 100%;
    height: 250px;
}
.taskimgx img{
    border-radius: 10px;
    width: 100%;

    /* border: 1px solid red; */
    height: 100%;
}
.with-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    width:100%;
    margin-top:2px;
    padding:2px;
    background:linear-gradient(135deg,var(--primary),var(--primary-dark));
    color:var(--light);
    text-decoration:none;
    border-radius:10px;
    font-size:15px;
    font-weight:600;
    transition:.3s ease;
    box-shadow:0 4px 12px rgba(204,23,29,.25);
}

.with-btn:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 18px rgba(204,23,29,.35);
    background:linear-gradient(135deg,var(--primary-dark),var(--primary));
}

.with-btn:active{
    transform:scale(.98);
}

.with-btn i{
    font-size:16px;
}
.calculator-box{
    background:#fff;
    padding:20px;
    border-radius:12px;
    box-shadow:0 4px 15px rgba(0,0,0,.08);
    max-width:400px;
    margin:auto;
}

.calculator-box label{
    display:block;
    margin-bottom:8px;
    font-weight:600;
    color:#333;
}

.calculator-box input{
    width:100%;
    padding:12px;
    border:1px solid #ddd;
    border-radius:8px;
    font-size:16px;
    outline:none;
    margin-bottom:20px;
    box-sizing:border-box;
}

.calculator-box input:focus{
    border-color:#cc171d;
}

.result{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:12px 0;
    border-top:1px solid #eee;
}

.result span{
    color:#666;
    font-weight:500;
}

.result h2{
    margin:0;
    color:#cc171d;
    font-size:20px;
}
/* ENNND */

.video-container{
    position:relative;
    width:100%;
    height: 30px;
}

.video-logo{
    position:absolute;
    top:50%;
    left:50%;
    height: 30px;
    transform:translate(-50%,-50%);
    width:150px;
    z-index:10;
    pointer-events:none;
    opacity:.9;
}
/* Animations */

@keyframes fadeIn{
    from{
        opacity:0;
        transform:translateY(20px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

@keyframes slideUp{
    from{
        opacity:0;
        transform:translateY(20px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

@media(max-width:500px){

.summary-grid{
    grid-template-columns:1fr 1fr;
}

.filters{
    flex-direction:column;
}

}
/* Mobile */
/* Popup */

.popup{
    position:fixed;
    inset:0;
    display:none;
    justify-content:center;
    align-items:center;
    background:rgba(0,0,0,.6);
    z-index:9999;
    padding:15px;
}

/* Receipt */

.receipt{
    width:420px;
    max-width:100%;
    max-height:92vh;
    /* overflow-y:auto; */
    background:var(--light);
    border-radius:15px;
    animation:popup .25s ease;
    box-shadow:0 20px 40px rgba(0,0,0,.25);
}

/* Custom Scroll */

.receipt::-webkit-scrollbar{
    width:6px;
}

.receipt::-webkit-scrollbar-thumb{
    background:var(--primary);
    border-radius:20px;
}

/* Smaller Header */

.receipt-header{
    background:var(--light);
    padding:15px;
    text-align:center;
    color: var(--primary);
}

/* Logo */

/* .logo{
    width:55px;
    height:55px;
    margin:auto;
    margin-bottom:8px;
    border-radius:50%;
    background:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:24px;
    color:var(--primary);
} */

.logo {
    height: 150px;
    width: 150px;
    // border: 2px solid red ;
}


.logo img{
    height: 100%;
    width: 100%;
    // border: 2px solid red ;
}

.receipt-header small{
    display:block;
    margin-top:-20px;
    font-size:12px;
    opacity:.9;
}

/* Body */

.receipt-body{
    padding:20px;
}

.amount-big{
    text-align:center;
    color:var(--primary);
    font-size:30px;
    font-weight:700;
    margin-bottom:12px;
}

.success-big{
    text-align:center;
    margin-bottom:18px;
}

.success-big span{
    display:inline-block;
    padding:7px 18px;
    border-radius:25px;
    background:#e8f8ed;
    color:var(--success);
    font-weight:600;
}

/* Rows */

.row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;
    padding:4px 0;
    border-bottom:1px solid #ececec;
    font-size:14px;
}

.row span{
    color:#666;
}

.row b{
    text-align:right;
    color:#222;
}

/* Buttons */

.buttons{
    display:flex;
    gap:10px;
    padding:18px;
    position:sticky;
    bottom:0;
    background:#fff;
    border-top:1px solid #eee;
}

.buttons button{
    flex:1;
    border:none;
    padding:12px;
    border-radius:8px;
    font-size:14px;
    cursor:pointer;
    color:#fff;
    font-weight:600;
    transition:.25s;
}

.share{
    background:var(--success);
}

.print{
    background:var(--primary);
}

.close{
    /*background:var(--danger);*/
}

.buttons button:hover{
    opacity:.9;
}
#menuTogglex{
    display: none;
}
/* Animation */

@keyframes popup{
    from{
        transform:translateY(30px);
        opacity:0;
    }
    to{
        transform:translateY(0);
        opacity:1;
    }
}
@media(max-width:768px){

.sidebar{
    left:-260px;
}

.sidebar.show{
    left:0;
}

.main{
    margin-left:0;
}

.heax{
    flex-wrap:wrap;
    gap:10px;
}

.stats{
    grid-template-columns:1fr;
}

table{
    min-width:700px;
}

}

@media screen and (max-width:768px) {
#menuToggle{
    display: none;
}
#menuTogglex{
    display: block;
    color: var(--light);
    font-weight: 600;
}
.heax{
    padding:5px 10px;
    top: 0px;
    z-index:998;
}
}