.ad-half{
    width: 50%; 
    float: left; 
    box-sizing: border-box; 
    padding: 10px;
}
.custom-two-third{
    padding-right:50px;
    padding-left:10px;
}
.earning-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.earning-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
    min-height: 130px;
    flex: 1 1 19%;
    justify-content: center;
}
body.dark-mode .earning-card{
    background-color: #1e1e1e;
}

.earning-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.unpaid h2{
    color:#ffa500;
}
body.dark-mode .unpaid h2{
    color:#ffa500;
}
.paid h2{
    color:#40c730;
}
body.dark-mode .paid h2{
    color:#40c730;
}
.total h2{
    color: #7f00ff;
}
body.dark-mode .total h2{
    color: #00c6ff;
}

.earning-card h2 {
    margin: 0;
    font-size: 1.8em;
    font-weight: 700;
}

.earning-card p {
    margin: 10px 0 0;
    font-size: 0.95em;
    color: #333;
    line-height: 1.2em;
}
body.dark-mode p {
    color:#fff;
}
.progress-container {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 25px;
    overflow: hidden;
    height: 20px;
    margin-bottom: 10px;
}
body.dark-mode .progress-container{
    background-color: #333;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(to right, #7f00ff, #00c6ff);
    /*background-color: #28a745;  green for completed portion */
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.95em;
    color: #333;
    text-align: center;
    margin-top: 5px;
}
body.dark-mode .progress-text{
    color:#fff;
}
@media screen and (max-width: 768px) {
  .earning-card {
    flex: 1 1 100%;
  }
  .custom-two-third{
      width:100%;
      padding:10px;
  }
  .custom-third{
      width:100%;
      margin-bottom:30px;
  }
  .ad-half{
      width:100%;
  }
}