
/* -------------------------------------- */
/* 0. NEW BISMILLAH HEADER & KEYFRAMES    */
/* -------------------------------------- */

/* Bismillah Header - Mobile First */
.bismillah-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  font-size: 1.2em;
  font-weight: 700;
  color: #1e88e5;
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  font-family: 'Times New Roman', serif;
  position: sticky;
  top: 0;
  z-index: 200;
}

.bismillah-header .header-center {
    font-size: 1.25em;
    font-weight: 700;
    flex-grow: 1;
    text-align: center;
    color: #1e88e5;
}

.bismillah-header .header-left,
.bismillah-header .header-right {
    font-size: 0.8em;
    font-weight: 600;
    color: #000;
    white-space: nowrap;
    padding: 0 5px;
}

/* Keyframes */
@keyframes slide-show {
  0% { transform: translateX(0%); } 9% { transform: translateX(0%); }
  10% { transform: translateX(-10%); } 19% { transform: translateX(-10%); }
  20% { transform: translateX(-20%); } 29% { transform: translateX(-20%); }
  30% { transform: translateX(-30%); } 39% { transform: translateX(-30%); }
  40% { transform: translateX(-40%); } 49% { transform: translateX(-40%); }
  50% { transform: translateX(-50%); } 59% { transform: translateX(-50%); }
  60% { transform: translateX(-60%); } 69% { transform: translateX(-60%); }
  70% { transform: translateX(-70%); } 79% { transform: translateX(-70%); }
  80% { transform: translateX(-80%); } 89% { transform: translateX(-80%); }
  90% { transform: translateX(-90%); } 99% { transform: translateX(-90%); }
  100% { transform: translateX(0%); }
}
@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}
@keyframes extra-bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-7px); }
}
@keyframes balance-slide-animation {
    0%, 20% { transform: translateX(0%); }
    25%, 45% { transform: translateX(-25%); }
    50%, 70% { transform: translateX(-50%); }
    75%, 95% { transform: translateX(-75%); }
    100% { transform: translateX(0%); }
}
@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(244, 67, 54, 0); }
    100% { box-shadow: 0 0 0 0 rgba(244, 67, 54, 0); }
}
#start-recognition-btn.recording {
    background-color: #f44336;
    animation: pulse-red 1.5s infinite;
}
#start-recognition-btn .fa-microphone {
    margin-right: 8px;
}

/* -------------------------------------- */
/* 1. GENERAL & BASE STYLES               */
/* -------------------------------------- */
body {
  font-family: Arial, sans-serif;
  background-color: #f8f9fa;
  margin: 0;
  padding: 0;
  padding-bottom: 60px; /* Space for fixed mobile footer */
  color: #333;
}
a { text-decoration: none; color: inherit; }
.content-section { display: none; }
.content-section.active { display: block; }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Social Ad Modal Styles */
#social-ad-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    display: none;
    justify-content: center; align-items: center;
    z-index: 5000;
}
#social-ad-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    width: 80%;
    max-width: 400px;
    text-align: center;
    position: relative;
    animation: fadeInScale 0.3s ease-out;
}
#social-ad-content .ad-close {
    position: absolute;
    top: 5px; right: 5px;
    background: #f44336;
    color: white;
    border-radius: 50%;
    width: 25px; height: 25px;
    line-height: 25px;
    font-size: 0.8em;
    cursor: pointer;
}
#social-ad-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 15px;
    min-height: 100px;
    background-color: #f0f0f0;
}
#social-ad-content .ad-button {
    display: block;
    padding: 10px 15px;
    background-color: #1e88e5;
    color: white;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    margin-top: 10px;
}

/* -------------------------------------- */
/* 2. HEADER & TOP NAVIGATION             */
/* -------------------------------------- */

/* App Header - Mobile First */
.app-header {
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 45px; /* Below Bismillah header */
  z-index: 100;
}
.app-header-top {
  background-color: #e0e0e0;
  padding: 15px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 0 0 20px 20px;
  position: relative;
}
.app-header-top .back-arrow { font-size: 1.5em; margin-right: 15px; color: #555; cursor: pointer; display: none; }
.app-header-top .title { font-size: 1.2em; font-weight: bold; color: #333; flex-grow: 1; text-align: left; }
.header-icons a i { font-size: 1.2em; margin-left: 15px; color: #555; cursor: pointer; }

/* Flat Header Style */
.app-header.flat-header .app-header-top {
    background-color: #f0f2f5;
    border-radius: 0;
    justify-content: flex-start;
}
.app-header.flat-header .app-header-top .title {
    position: absolute; left: 50%; transform: translateX(-50%); flex-grow: 0; text-align: center; font-size: 1.2em; color: #333;
}
.app-header.flat-header .app-header-top .header-icons { display: none; }
.app-header.flat-header .app-header-top .back-arrow { display: block !important; z-index: 10; color: #000; }

/* Tab Navigation - Mobile First */
.tab-navigation {
  display: none; /* Hidden on mobile by default, shown by JS on certain tabs */
  justify-content: space-around;
  padding: 0 10px;
  background-color: #f0f2f5;
  border-bottom: none;
}
.tab-navigation a {
  padding: 12px 15px;
  font-weight: bold;
  color: #777;
  position: relative;
  transition: color 0.3s;
  flex: 1;
  text-align: center;
  font-size: 0.9em;
  letter-spacing: 0.5px;
}
.tab-navigation a.active { color: #000; }
.tab-navigation a.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 20%;
  width: 60%; height: 3px;
  background-color: #000;
  border-radius: 2px;
}

/* -------------------------------------- */
/* 3. FIXED MOBILE FOOTER NAVIGATION      */
/* -------------------------------------- */

/* Mobile Footer - Default (Mobile First) */
.mobile-footer {
  position: fixed; bottom: 0; left: 0;
  width: 100%; height: 60px;
  background-color: #fff;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 200;
}
.mobile-footer a {
  display: flex; flex-direction: column; align-items: center;
  font-size: 0.75em;
  color: #777;
  padding: 5px;
  flex: 1;
  text-align: center;
}
.mobile-footer a.active { color: #000; }
.mobile-footer a i { font-size: 1.5em; margin-bottom: 3px; }

/* -------------------------------------- */
/* 4. HOME CONTENT (Daily Task & Carousel)*/
/* -------------------------------------- */
#home-content { padding-top: 0; }
.carousel-wrapper { width: 100%; height: 220px; overflow: hidden; position: relative; }
.carousel-track { display: flex; width: 1000%; height: 100%; animation: slide-show 50s infinite; }
.carousel-slide {
  width: 10%; height: 100%; flex-shrink: 0; display: block;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  position: relative;
}

.task-heading { font-size: 1.5em; font-weight: bold; margin: 20px 20px 15px; color: #333; }
.task-grid { display: grid; gap: 15px; padding: 0 20px; grid-template-columns: repeat(2, 1fr); margin: 0 auto; max-width: 500px; }
.task-item {
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  height: 140px; padding: 10px; padding-top: 60px;
  border-radius: 40px 40px 10px 10px;
  font-weight: 600; font-size: 14px;
  position: relative; overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  cursor: pointer;
}
.task-icon-area { position: absolute; top: 0; left: 0; right: 0; height: 80px; display: flex; justify-content: center; align-items: flex-start; }
.task-name { font-size: 1.1em; line-height: 1.2; padding-left: 5px; padding-bottom: 5px; font-weight: 700; }

/* Base icon styling for task types */
.task-daily-check { background: linear-gradient(to bottom, #d2eafb, #f0f8ff); } .task-daily-check .task-icon-area::before { content: '\f005'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 30px; position: absolute; top: 25px; color: #ffc107; }
.task-scratch-card { background: linear-gradient(to bottom, #ffe8b5, #fff8e1); } .task-scratch-card .task-icon-area::before { content: '\f2c2'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 30px; position: absolute; top: 25px; color: #f39c12; }
.task-captcha { background: linear-gradient(to bottom, #e4d7ff, #f3e5f5); } .task-captcha .task-icon-area::before { content: '\f021'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 30px; position: absolute; top: 25px; color: #8e44ad; }
.task-spin-wheel { background: linear-gradient(to bottom, #ffdae9, #ffebee); } .task-spin-wheel .task-icon-area::before { content: '\f110'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 30px; position: absolute; top: 25px; color: #e91e63; }
.task-magic-box { background: linear-gradient(to bottom, #ffd9c0, #fff8e1); } .task-magic-box .task-icon-area::before { content: '\f06b'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 30px; position: absolute; top: 25px; color: #ff9800; }
.task-silver-box { background: linear-gradient(to bottom, #c9ffcf, #e8f5e9); } .task-silver-box .task-icon-area::before { content: '\f5e3'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 30px; position: absolute; top: 25px; color: #9e9e9e; }
.task-gold-box { background: linear-gradient(to bottom, #e6e0d0, #f5f5f5); } .task-gold-box .task-icon-area::before { content: '\f5e3'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 30px; position: absolute; top: 25px; color: #ffc107; }
.task-bronze-box { background: linear-gradient(to bottom, #d1c4e9, #f3e5f5); } .task-bronze-box .task-icon-area::before { content: '\f5e3'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 30px; position: absolute; top: 25px; color: #cd7f32; }
.task-bonus { background: linear-gradient(to bottom, #ffe9b5, #fffde7); } .task-bonus .task-icon-area::before { content: '\f51e'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 30px; position: absolute; top: 25px; color: #ffc107; }
.task-survey { background: linear-gradient(to bottom, #b3e5fc, #e1f5fe); } .task-survey .task-icon-area::before { content: '\f03d'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 30px; position: absolute; top: 25px; color: #03a9f4; }

/* Custom icons for specific locked tasks */
.task-bronze-box .task-icon-area::before { content: '\f023'; color: #cd7f32; }
.task-bonus.locked-task[data-feature="lockedTask2"] .task-icon-area::before { content: '\f1b9'; color: #ffc107; }
.task-daily-check.locked-task[data-feature="lockedTask3"] .task-icon-area::before { content: '\f7d9'; color: #1e88e5; }
.task-scratch-card.locked-task[data-feature="lockedTask4"] .task-icon-area::before { content: '\f518'; color: #00bcd4; }
.task-captcha.locked-task[data-feature="lockedTask5"] .task-icon-area::before { content: '\f291'; color: #e91e63; }
.task-spin-wheel.locked-task[data-feature="lockedTask6"] .task-icon-area::before { content: '\f06b'; color: #ff5722; }
.task-magic-box.locked-task[data-feature="lockedTask7"] .task-icon-area::before { content: '\f09d'; color: #4caf50; }
.task-silver-box.locked-task[data-feature="lockedTask8"] .task-icon-area::before { content: '\f5d9'; color: #607d8b; }
.task-gold-box.locked-task[data-feature="lockedTask9"] .task-icon-area::before { content: '\f51e'; color: #ffc107; }
.task-bonus.locked-task[data-feature="lockedTask10"] .task-icon-area::before { content: '\f0ad'; color: #9c27b0; }

/* Styles for locked & bouncing task */
.task-item.locked-task {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
    animation: extra-bounce 2s infinite ease-in-out;
}
.task-item.locked-task .lock-overlay-icon {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3em;
    color: #f44336;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 10;
    opacity: 0.9;
}

/* Lock Overlay for Home Withdrawal */
.task-item.withdrawal-box {
    position: relative;
}
.lock-time-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 40px 40px 10px 10px;
    z-index: 15;
    font-size: 0.9em;
    font-weight: bold;
}
.lock-time-overlay i {
    font-size: 2em;
    margin-bottom: 5px;
    color: #ffc107;
}

/* Admin Controlled Lock Overlay */
.admin-locked-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(100, 0, 0, 0.85);
    border-radius: 10px;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    color: white;
    z-index: 50;
    text-align: center;
    cursor: not-allowed;
    transition: opacity 0.3s;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 40px 40px 10px 10px;
}
.admin-locked-overlay i {
    font-size: 2em;
    margin-bottom: 5px;
    color: #ffc107;
}
.admin-locked-container.locked {
    pointer-events: none;
}

/* Ad Placeholder Style */
.ad-placeholder { background-color: #f44336; color: white; margin: 0 20px 20px 20px; padding: 10px; border-radius: 5px; font-size: 0.8em; display: flex; justify-content: space-between; align-items: center; max-width: 500px; margin-left: auto; margin-right: auto; }

/* -------------------------------------- */
/* 5. REWARDS CONTENT (Refer & Earn)      */
/* -------------------------------------- */
#rewards-content { padding: 0 0 20px 0; }
#invite-tab-content { padding: 20px; max-width: 500px; margin: 0 auto; }
.referral-card { background-color: #1e2a38; color: white; border-radius: 20px; padding: 20px; text-align: center; box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2); }
.illustration-placeholder { height: 120px; background: url('https://i.ibb.co/4RzTfVh4/IMG-20251110-WA0008.jpg') no-repeat center center; background-size: cover; border-radius: 15px 15px 0 0; margin: -20px -20px 0; }
.referral-card h3 { font-size: 1.1em; margin-top: 10px; margin-bottom: 5px; }
.referral-card .bonus { font-size: 1.8em; font-weight: 900; color: #ffc107; margin-bottom: 20px; }
.referral-link-box { border: 2px dashed rgba(255, 255, 255, 0.5); border-radius: 10px; padding: 15px 10px; margin-bottom: 25px; font-size: 0.9em; word-break: break-all; position: relative; }
.referral-link-box .social-icons { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; background-color: rgba(255, 255, 255, 0.2); border-radius: 5px; }
.invite-button { display: block; width: 80%; margin: 0 auto; padding: 12px; background-color: white; color: #1e2a38; font-weight: bold; border-radius: 8px; cursor: pointer; }
.invite-button:hover { background-color: #eee; }
.how-to-get { padding: 20px 0; }
.how-to-get h2 { font-size: 1.4em; margin-bottom: 20px; }
.rule-item { display: flex; align-items: flex-start; margin-bottom: 25px; }
.rule-item .icon-container { width: 60px; height: 60px; border-radius: 50%; background-color: #e0f7fa; display: flex; justify-content: center; align-items: center; margin-right: 15px; flex-shrink: 0; }
.rule-item .text-content { font-size: 0.95em; }
.rule-item .text-content strong { display: block; font-size: 1.1em; margin-bottom: 5px; }

/* REWARDS TAB styles */
#rewards-tab-content { padding: 20px; }
.rewards-stats-box { display: flex; justify-content: space-around; align-items: center; background-color: white; padding: 25px 0; border-radius: 10px; box-shadow: 0 4px 8px rgba(0,0,0,0.05); margin-bottom: 15px; max-width: 500px; margin-left: auto; margin-right: auto; }
.rewards-stats-item { text-align: center; flex: 1; padding: 0 10px; }
.rewards-stats-item .count { font-size: 2em; font-weight: 900; color: #000; }
.rewards-stats-item .label { font-size: 0.9em; color: #555; font-weight: 600; }
.rewards-stats-separator { width: 1px; height: 50px; background-color: #ccc; }
.active-invite-note { font-size: 0.9em; color: #777; margin-bottom: 30px; padding: 0 20px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* Reward Timeline Styling */
.reward-timeline { padding-left: 20px; position: relative; max-width: 500px; margin: 0 auto; padding: 0 20px 0 35px; }
.reward-timeline::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background-color: #ddd; border-radius: 2px; }
.timeline-item { margin-bottom: 30px; padding-left: 30px; position: relative; }
.timeline-item-icon { position: absolute; left: -12px; top: 5px; width: 28px; height: 28px; background-color: white; border: 4px solid #ddd; border-radius: 50%; z-index: 2; display: flex; justify-content: center; align-items: center; }
.timeline-item.unlocked .timeline-item-icon { border-color: #4CAF50; color: #4CAF50; }
.timeline-item.locked .timeline-item-icon i { color: #f44336; }
.timeline-title { font-weight: bold; margin-bottom: 15px; color: #333; }
.timeline-card { background-color: white; border-radius: 10px; padding: 15px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); display: flex; align-items: center; width: 100%; }
.card-coins { background: linear-gradient(135deg, #4d8aff, #2a6bf2); color: white; }
.card-bluetooth { background: linear-gradient(135deg, #7ad399, #4CAF50); color: white; }
.card-coins .reward-icon, .card-bluetooth .reward-icon { font-size: 2em; margin-right: 15px; }
.card-text strong { font-size: 1.1em; display: block; font-weight: bold; }
.card-text span { font-size: 0.9em; }

/* LEADERBOARD TAB (Custom Styles) */
#leaderboard-tab-content { padding: 0; }
.leaderboard-banner-custom { background-color: #1a237e; border-radius: 10px; margin: 0 auto; padding: 0; height: 250px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; overflow: hidden; position: relative; max-width: 500px; }
.leaderboard-banner-custom::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 100%; background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 250" preserveAspectRatio="none"><defs><linearGradient id="g1" x1="0" y1="0" x2="0" y2="1"><stop offset="0%" stop-color="%23673ab7"/><stop offset="100%" stop-color="%231a237e"/></linearGradient></defs><rect x="0" y="0" width="400" height="250" fill="url(%23g1)"/><path d="M 0 100 Q 200 -50, 400 100 L 400 250 L 0 250 Z" fill="%23101757"/><g transform="translate(200, 70)"><rect x="-50" y="15" width="100" height="40" fill="%23e53935" rx="5"/><rect x="-105" y="30" width="50" height="25" fill="%23c0ca33" rx="5"/><rect x="55" y="40" width="50" height="15" fill="%2342a5f5" rx="5"/><text x="0" y="45" font-size="18" font-weight="bold" fill="white" text-anchor="middle">1</text><text x="-80" y="45" font-size="18" font-weight="bold" fill="white" text-anchor="middle">2</text><text x="80" y="45" font-size="18" font-weight="bold" fill="white" text-anchor="middle">3</text><text x="0" y="-10" font-size="40" font-weight="bold" fill="%23ffc107" text-anchor="middle">🏆</text></g></svg>');
    background-repeat: no-repeat; background-size: cover;
}
.leaderboard-banner-custom .podium-text-overlay { position: relative; z-index: 10; padding: 15px 0; width: 100%; text-align: center; background-color: rgba(26, 35, 126, 0.7); }
.leaderboard-banner-custom h2 { color: white; font-size: 1.4em; font-weight: 700; margin: 0; }

.leaderboard-table-custom { width: 90%; max-width: 500px; border-collapse: collapse; background-color: white; border-radius: 10px; overflow: hidden; margin: 20px auto 20px auto; box-shadow: 0 4px 8px rgba(0,0,0,0.05); }
.leaderboard-table-custom th, .leaderboard-table-custom td { padding: 15px 15px; text-align: left; border-bottom: 1px solid #eee; }
.leaderboard-table-custom th { background-color: #f8f8f8; color: #555; font-size: 0.9em; font-weight: 600; }
.leaderboard-table-custom .rank-cell { width: 15%; font-weight: 600; }
.leaderboard-table-custom .user-cell { width: 55%; }
.leaderboard-table-custom .coins-cell { width: 30%; display: flex; align-items: center; justify-content: flex-end; font-weight: bold; color: #333; font-size: 0.95em; }
.leaderboard-table-custom .coin-icon { color: #ffc107; margin-left: 5px; font-size: 1em; }

/* -------------------------------------- */
/* 6. WALLET CONTENT STYLES               */
/* -------------------------------------- */
#wallet-content { padding: 20px 20px 80px 20px; }

/* WALLET BALANCE CARD STYLES (Modified for rotation) */
.wallet-balance-card {
    background: linear-gradient(135deg, #1e88e5, #0d47a1); color: white; padding: 25px; margin: 0 auto 30px; border-radius: 15px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); max-width: 500px; position: relative; overflow: hidden;
}
.wallet-balance-card::before { content: '\f51e'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; top: -10px; right: -10px; font-size: 80px; color: rgba(255, 255, 255, 0.1); }

/* Rotating Balance Styles */
.rotating-balance-container {
    overflow: hidden;
    height: 100px;
}
.balance-track {
    display: flex;
    width: 400%;
    animation: balance-slide-animation 20s infinite ease-in-out;
}
.balance-slide {
    width: 25%;
    flex-shrink: 0;
    padding-right: 20px;
}
.balance-slide h3 {
    font-size: 1em;
    margin-top: 0;
    margin-bottom: 5px;
    opacity: 0.8;
}
.balance-slide .balance-amount {
    font-size: 2.5em;
    font-weight: 900;
    display: flex;
    align-items: center;
}
.balance-slide .balance-amount i {
    font-size: 0.8em;
    margin-right: 10px;
    color: #ffc107;
}
/* Specific icon colors for better visibility */
.balance-slide.tiktok-coins .balance-amount i { color: #000; }
.balance-slide.amazon-coins .balance-amount i { color: #ff9900; }
.balance-slide.pubg-uc-coins .balance-amount i { color: #f39c12; }


.withdrawal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-bottom: 30px; max-width: 500px; margin-left: auto; margin-right: auto; }
.withdrawal-item { padding-bottom: 45px; background-color: white; border-radius: 15px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); overflow: hidden; text-align: center; padding: 10px 10px 0 10px; position: relative; cursor: pointer; min-height: 190px; }
.withdrawal-item.locked-item { opacity: 0.5; cursor: default; pointer-events: none; }

/* Lock Overlay for Withdrawal Items (Dynamic) */
.withdrawal-item.locked-item::before {
    content: '\f023';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3em;
    color: rgba(244, 67, 54, 0.7);
    z-index: 10;
}

.withdrawal-image { height: 100px; width: 100%; margin-bottom: 10px; background-size: contain; background-position: center; background-repeat: no-repeat; }

/* Specific Image Placeholders (Logo URLs) */
.upi-logo { background-image: url('https://i.ibb.co/N60yHzCh/images.png'); height: 80px; margin-top: 15px; }
.bank-logo { background-image: url('https://i.ibb.co/bM7zSR2G/download-38.png'); }
.paypal-logo { background-image: url('https://i.ibb.co/8n7SMNXv/download-39.png'); }
.binance-logo { background-image: url('https://i.ibb.co/Zp3SzD29/download-37.png'); }
.googleplay-logo { background-image: url('https://i.ibb.co/BF6wRhZ/google-pay-logo-png-seeklogo-324563.png'); }
.amazon-logo { background-image: url('https://upload.wikimedia.org/wikipedia/commons/a/a9/Amazon_logo.svg'); }
.easypaisa-logo { background-image: url('https://i.ibb.co/tPz8VcqP/download-36.png'); }

/* Game Redemption Logo Styles */
.pubg-logo {
    background-image: none; height: 80px; margin-top: 15px;
    display: flex; align-items: center; justify-content: center;
    font-size: 40px; color: #f39c12;
}
.pubg-logo::before {
    content: '\f3fb';
    font-family: 'Font Awesome 6 Free'; font-weight: 900;
}

.freefire-logo {
    background-image: none; height: 80px; margin-top: 15px;
    display: flex; align-items: center; justify-content: center;
    font-size: 40px; color: #e74c3c;
}
.freefire-logo::before {
    content: '\f11b';
    font-family: 'Font Awesome 6 Free'; font-weight: 900;
}

.withdrawal-item .coin-band { background-color: #f0f0f0; padding: 10px 0; width: 100%; margin-top: 10px; position: absolute; bottom: 0; left: 0; }
.withdrawal-item .coin-band span { font-weight: bold; color: #333; display: flex; align-items: center; justify-content: center; }
.withdrawal-item .coin-band i { color: #ffc107; margin-right: 5px; }

/* -------------------------------------- */
/* 7. MORE CONTENT (Settings Menu)        */
/* -------------------------------------- */
#more-content { padding: 20px 20px 80px 20px; }

/* PROFILE CARD IN MORE SECTION */
.user-profile-card {
    background-color: white; padding: 20px; border-radius: 10px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); margin: 0 auto 25px; display: flex; align-items: center; max-width: 500px; cursor: pointer;
}
.profile-avatar { width: 60px; height: 60px; background-color: #bbdefb; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 2em; color: #1e88e5; margin-right: 15px; flex-shrink: 0; }
.profile-info h3 { margin: 0; font-size: 1.3em; font-weight: 700; color: #333; }
.profile-info p { margin: 3px 0 0; font-size: 0.9em; color: #555; }

.menu-list { background-color: white; margin: 0 auto 30px; border-radius: 10px; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); max-width: 500px; }
.menu-item { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; border-bottom: 1px solid #eee; color: #333; font-size: 1.1em; cursor: pointer; }
.menu-item:last-child { border-bottom: none; }
.menu-item i { color: #777; }
.menu-item .icon-left { margin-right: 15px; color: #1e88e5; width: 25px; text-align: center; }

/* Social Community Styles */
.social-proof { text-align: center; padding: 0 20px; max-width: 500px; margin: 0 auto; }
.social-proof p { font-size: 0.95em; color: #555; margin-bottom: 20px; }
.social-icons-group a { display: inline-block; margin: 0 8px; width: 50px; height: 50px; border-radius: 50%; line-height: 50px; color: white; font-size: 1.5em; text-align: center; transition: transform 0.2s; }
.social-icons-group .instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.social-icons-group .facebook { background-color: #3b5998; }
.social-icons-group .youtube { background-color: #ff0000; }
.social-icons-group .telegram { background-color: #0088cc; }

/* -------------------------------------- */
/* 8. AUTH MODAL STYLES                   */
/* -------------------------------------- */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.75); display: none; justify-content: center; align-items: center; z-index: 1000; padding: 20px; }
.auth-form-container { background-color: #ffffff; padding: 30px; border-radius: 15px; box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4); width: 90%; max-width: 350px; text-align: center; animation: fadeInScale 0.3s ease-out; }
.auth-form-container h2 { color: #1e88e5; margin-bottom: 25px; font-size: 1.8em; font-weight: 700; }
#auth-form input { width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid #ddd; border-radius: 8px; box-sizing: border-box; font-size: 1em; transition: border-color 0.3s, box-shadow 0.3s; }
#auth-form input:focus { border-color: #1e88e5; outline: none; box-shadow: 0 0 5px rgba(30, 136, 229, 0.3); }
#auth-submit-btn { width: 100%; padding: 15px; background-color: #1e88e5; color: white; border: none; border-radius: 8px; font-size: 1.1em; font-weight: bold; cursor: pointer; transition: background-color 0.3s, transform 0.1s; margin-top: 10px; }
#auth-submit-btn:hover { background-color: #1565c0; }
#auth-submit-btn:disabled { background-color: #90caf9; cursor: not-allowed; }
.switch-auth-mode { margin-top: 20px; font-size: 0.9em; }
.switch-auth-mode a { color: #1e88e5; font-weight: bold; }

/* -------------------------------------- */
/* 9. NEW FEATURE CARD STYLES             */
/* -------------------------------------- */
.feature-section {
    padding: 0 20px;
    max-width: 500px;
    margin: 20px auto;
}
.feature-grid {
    display: grid;
    gap: 15px;
    margin-bottom: 20px;
}
.feature-grid-2-col {
    grid-template-columns: repeat(2, 1fr);
}

.feature-card {
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    color: #333;
}
.feature-card .content {
    flex-grow: 1;
    padding-right: 15px;
}
.feature-card h3 {
    margin: 0;
    font-size: 1.2em;
    font-weight: 700;
    line-height: 1.2;
}
.feature-card p {
    margin: 5px 0 0;
    font-size: 0.85em;
    color: #777;
}
.feature-card .icon-placeholder {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    margin-left: 10px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5em;
}

/* Specific Card Styles (Full Width Cards) */
.card-word-puzzle {
    background: linear-gradient(135deg, #4d8aff, #2a6bf2);
    color: white;
}
.card-word-puzzle p { color: rgba(255, 255, 255, 0.85); }
.card-word-puzzle .icon-placeholder {
    color: #ffc107;
}
.card-word-puzzle .new-badge {
    position: absolute;
    top: 0; right: 0;
    background-color: #ff476e;
    color: white;
    padding: 3px 8px;
    font-size: 0.7em;
    font-weight: bold;
    border-radius: 0 10px 0 10px;
}

.card-knowledge {
    background-color: #1e2a38;
    color: white;
}
.card-knowledge p { color: rgba(255, 255, 255, 0.85); }
.card-knowledge .icon-placeholder {
    color: #4CAF50;
}
.card-knowledge .coin-overlay {
    position: absolute;
    top: 5px; right: 5px;
    font-size: 1.5em;
    color: #ffc107;
}

.card-extra-bonus, .card-play-game {
    background-color: #1e2a38;
    color: white;
    padding: 20px 15px;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}
.card-extra-bonus .icon-placeholder {
    color: #1e88e5;
}
.card-play-game .icon-placeholder {
    color: #9c27b0;
}

.card-task-challenge {
    background: linear-gradient(90deg, #ff476e, #f44336);
    color: white;
    padding: 15px;
}
.card-task-challenge h3 { font-size: 1.4em; }
.card-task-challenge p { color: rgba(255, 255, 255, 0.9); font-weight: 500;}
.card-task-challenge .icon-time {
    font-size: 2.5em;
    color: white;
    margin-right: 15px;
}
.card-task-challenge .icon-fire {
    font-size: 1.5em;
    color: #ffc107;
    margin-left: 10px;
}

/* Offerwall/Survey Grid Styles */
.feature-card-grid {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 15px;
}
.feature-card-grid .card-item {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    padding: 15px;
    flex: 1;
    text-align: center;
}
.feature-card-grid .card-item .img-placeholder {
    height: 80px;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3em;
}
.feature-card-grid .card-item h4 {
    margin: 5px 0;
    font-size: 1.1em;
    font-weight: 700;
}
.feature-card-grid .card-item .coins {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 10px;
}
.feature-card-grid .card-item .rating {
    color: #ffc107;
    font-size: 0.9em;
}

/* Pubscale Offerwall Card (Special Design) */
.card-pubscale {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}
.card-pubscale .logo-placeholder {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    flex-shrink: 0;
    font-size: 2.5em;
    color: #f44336;
    transform: rotate(-15deg);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    line-height: 1;
}
.card-pubscale .logo-placeholder::before {
    content: '\f062';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #000;
    position: absolute;
    top: 5px; left: 10px;
    font-size: 1.2em;
    transform: rotate(15deg);
}
.card-pubscale h3 { margin: 0; font-size: 1.3em; color: #333; }
.card-pubscale .offer-text { font-size: 0.85em; color: #555; margin: 3px 0; }
.card-pubscale .coins-highlight { font-size: 1.2em; font-weight: 900; color: #f44336; margin-bottom: 5px; }
.card-pubscale .earn-button {
    background-color: #ffc107;
    color: #333;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: bold;
    display: inline-block;
    margin-top: 10px;
}

/* -------------------------------------- */
/* 10. NEW EXIT MODAL STYLES              */
/* -------------------------------------- */
#exit-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center; align-items: center; z-index: 1001;
}

#exit-modal-content {
    background-color: white;
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 85%;
    max-width: 350px;
    text-align: center;
}

#exit-modal-content .star-icon {
    font-size: 5em;
    color: #ffc107;
    margin-bottom: 15px;
}

#exit-modal-content .rating-stars {
    color: #ccc;
    font-size: 2em;
    margin-bottom: 30px;
}

#exit-modal-content .button-group {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

#exit-modal-content .modal-button {
    flex: 1;
    padding: 12px 10px;
    font-size: 1.1em;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#exit-modal-content .btn-no {
    background-color: #ffc107;
    color: #333;
}

#exit-modal-content .btn-exit {
    background-color: #1a237e;
    color: white;
}

/* -------------------------------------- */
/* 11. STATS CARD (Live Withdrawal etc.)  */
/* -------------------------------------- */
.stats-card-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 400px;
  margin: auto;
  padding: 20px;
}

.stats-card {
  background: #f0f4ff;
  border-radius: 16px;
  padding: 25px 20px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.stats-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0,0,0,0.15);
}

.stats-card h3 {
  font-size: 28px;
  color: #2a6cf7;
  margin-bottom: 10px;
}

.stats-card p {
  font-size: 14px;
  color: #555;
  margin: 5px 0;
  line-height: 1.5;
}

.live-withdrawal-box{
  background:#0b1220;
  color:#fff;
  padding:14px;
  border-radius:10px;
  margin:15px 0;
  font-family: Arial, Helvetica, sans-serif;
  max-width: 500px; /* Constrain width for mobile */
  margin-left: auto;
  margin-right: auto;
}

.live-withdrawal-box h3{
  margin:0 0 6px;
  font-size:16px;
}

.live-note{
  font-size:11px;
  color:#facc15;
  margin-bottom:10px;
}

.live-card{
  background:#020617;
  border-left:4px solid #22c55e;
  border-radius:8px;
  padding:10px;
  margin-bottom:8px;
}

.live-method{
  font-weight:bold;
  font-size:13px;
}

.live-amount{
  color:#22c55e;
  font-size:16px;
  margin:3px 0;
}

.live-time{
  font-size:11px;
  color:#94a3b8;
}

/* -------------------------------------- */
/* 12. RESPONSIVE STYLES                  */
/* -------------------------------------- */

/* --- Default (Mobile) styles --- */
.desktop-footer {
    display: none; /* Hide desktop footer by default on mobile */
}

/* --- Tablet View (min-width: 768px) --- */
@media (min-width: 768px) {
  /* General Layout */
  body {
    padding-bottom: 0; /* No fixed mobile footer on tablet/desktop */
  }

  /* Bismillah Header */
  .bismillah-header {
    padding: 10px 25px;
    font-size: 1.3em;
  }
  .bismillah-header .header-center { font-size: 1.4em; }
  .bismillah-header .header-left,
  .bismillah-header .header-right { font-size: 0.9em; }

  /* App Header & Top Navigation */
  .app-header {
    top: 50px; /* Adjust sticky position for slightly larger bismillah header */
  }
  .app-header-top {
    padding: 20px 30px;
    border-radius: 0 0 25px 25px;
  }
  .app-header-top .title { font-size: 1.4em; }
  .header-icons a i { font-size: 1.4em; }

  /* Tab Navigation (visible for rewards and other multi-tab sections) */
  .tab-navigation {
    display: flex; /* Always show tab navigation on tablet/PC */
    padding: 0 20px;
  }
  .tab-navigation a {
    padding: 15px 20px;
    font-size: 1em;
  }
  .tab-navigation a.active::after {
    height: 4px;
  }

  /* Mobile Footer hidden */
  .mobile-footer {
    display: none !important; /* Hide mobile footer on tablet/desktop */
  }

  /* Home Content */
  .carousel-wrapper { height: 280px; }
  .task-heading { margin: 30px 30px 20px; font-size: 1.6em; }
  .task-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 760px; /* Max width for tablet grid */
    padding: 0 30px;
  }
  .ad-placeholder {
    margin: 0 30px 30px;
    max-width: 760px;
    padding: 15px;
    font-size: 1em;
  }

  /* Rewards Content */
  #invite-tab-content,
  #rewards-tab-content {
      max-width: 760px;
  }
  .referral-card {
      padding: 30px;
  }
  .rewards-stats-box {
      padding: 30px 0;
      max-width: 600px;
  }
  .rewards-stats-item .count { font-size: 2.2em; }
  .rewards-stats-item .label { font-size: 1em; }
  .reward-timeline {
      max-width: 600px;
      padding: 0 30px 0 45px;
  }
  .reward-timeline::before { left: 5px; }
  .timeline-item-icon { left: -15px; }
  .leaderboard-banner-custom {
      max-width: 760px;
      height: 300px;
  }
  .leaderboard-table-custom {
      max-width: 760px;
      margin: 30px auto;
  }

  /* Wallet Content */
  #wallet-content {
      padding: 20px 30px 40px;
  }
  .wallet-balance-card {
      max-width: 600px;
      padding: 30px;
  }
  .balance-slide .balance-amount { font-size: 3em; }
  .withdrawal-grid {
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
      max-width: 760px;
  }
  .withdrawal-item { min-height: 220px; } /* Adjust height for larger cards */

  /* More Content */
  #more-content {
      padding: 20px 30px 40px;
  }
  .user-profile-card {
      max-width: 600px;
      padding: 25px;
  }
  .menu-list {
      max-width: 600px;
  }
  .social-proof {
      max-width: 600px;
  }

  /* Feature Cards */
  .feature-section {
      max-width: 760px;
      padding: 0 30px;
  }
  .feature-grid-2-col {
      grid-template-columns: repeat(3, 1fr); /* More columns for some feature grids */
  }
  .feature-card-grid {
      flex-wrap: nowrap; /* Prevent wrapping if cards fit side-by-side */
      gap: 20px;
  }
  .stats-card-container {
    flex-direction: row;
    justify-content: space-around;
    max-width: 760px;
  }
  .stats-card {
    flex: 1 1 220px;
  }
  .live-withdrawal-box {
    max-width: 760px;
    padding: 20px;
  }
}

/* --- PC/Desktop View (min-width: 1024px) --- */
@media (min-width: 1024px) {
  /* General Layout */
  body {
    background-color: #f0f2f5; /* Slightly different background for desktop */
    padding-bottom: 70px; /* Space for the new fixed desktop footer */
  }
  .bismillah-header {
    padding: 10px 50px;
    font-size: 1.4em;
  }
  .bismillah-header .header-center { font-size: 1.5em; }
  .bismillah-header .header-left,
  .bismillah-header .header-right { font-size: 1em; }

  .app-header {
    top: 55px; /* Adjust sticky position */
    border-bottom: 1px solid #eee;
  }
  .app-header-top {
    padding: 20px 50px;
    max-width: 1200px; /* Content max width */
    margin: 0 auto;
    border-radius: 0; /* Flat on desktop */
    background-color: #fff; /* Match general header background */
    box-shadow: none; /* No extra shadow */
  }
  .app-header-top .title { font-size: 1.6em; text-align: center; flex-grow: 0; position: absolute; left: 50%; transform: translateX(-50%); }
  .app-header-top .back-arrow { display: none !important; } /* Hide back arrow on main PC view */
  .app-header-top .header-icons { display: flex; align-items: center; } /* Show icons always */

  .tab-navigation {
    padding: 0 50px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex; /* Ensure tab navigation is visible on PC */
  }
  .tab-navigation a {
    padding: 18px 25px;
    font-size: 1.1em;
    flex: none; /* Don't force them to stretch */
  }
  .tab-navigation a.active::after {
    left: 15%; width: 70%;
  }

  /* Main Content Area Styling for Desktop */
  main {
      padding-bottom: 0; /* Body padding handles space for fixed footer */
  }
  #home-content, #rewards-content, #wallet-content, #more-content {
      max-width: 1000px; /* Wider content area */
      margin: 20px auto;
      padding-bottom: 30px; /* Ensure content doesn't touch the fixed footer */
      background-color: #fff;
      border-radius: 10px;
      box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  }
  /* For Rewards, Wallet, More sections, ensure their own top/bottom padding works within the main container */
  #rewards-content, #wallet-content, #more-content {
      padding-top: 20px; /* Re-add top padding if the container has a border-radius */
  }


  /* Home Content */
  .carousel-wrapper {
      height: 350px; /* Taller carousel */
      border-radius: 10px 10px 0 0;
  }
  .task-heading {
      margin: 40px 40px 25px;
      font-size: 1.8em;
  }
  .task-grid {
      grid-template-columns: repeat(4, 1fr); /* 4 columns on desktop */
      gap: 25px;
      max-width: 920px; /* Adjust max-width based on 4 columns */
      padding: 0 40px 40px;
  }
  .ad-placeholder {
      margin: 0 40px 40px;
      max-width: 920px;
      padding: 20px;
      font-size: 1.1em;
  }

  /* Rewards Content */
  #rewards-content {
      padding: 20px 0; /* Adjusted for overall container padding */
  }
  #invite-tab-content,
  #rewards-tab-content {
      max-width: 900px; /* Wider for desktop */
      padding: 30px;
      margin: 0 auto;
  }
  .referral-card {
      padding: 40px;
  }
  .how-to-get h2 { font-size: 1.6em; }
  .rewards-stats-box {
      max-width: 800px;
      padding: 40px 0;
  }
  .rewards-stats-item .count { font-size: 2.5em; }
  .rewards-stats-item .label { font-size: 1.1em; }
  .reward-timeline {
      max-width: 800px;
      padding: 0 40px 0 60px;
  }
  .reward-timeline::before { left: 10px; }
  .timeline-item-icon { left: -18px; width: 32px; height: 32px; }
  .leaderboard-banner-custom {
      max-width: 900px;
      height: 350px;
      border-radius: 10px 10px 0 0;
  }
  .leaderboard-banner-custom h2 { font-size: 1.8em; }
  .leaderboard-table-custom {
      max-width: 900px;
      margin: 0 auto 30px;
      border-radius: 0 0 10px 10px;
  }
  .leaderboard-table-custom th, .leaderboard-table-custom td { padding: 18px 20px; }


  /* Wallet Content */
  #wallet-content {
      padding: 40px; /* Adjusted for overall container padding */
  }
  .wallet-balance-card {
      max-width: 800px;
      padding: 40px;
      margin-bottom: 40px;
  }
  .wallet-balance-card::before { font-size: 100px; }
  .rotating-balance-container { height: 120px; }
  .balance-slide h3 { font-size: 1.1em; }
  .balance-slide .balance-amount { font-size: 3.5em; }

  .withdrawal-grid {
      grid-template-columns: repeat(4, 1fr); /* 4 columns on desktop */
      gap: 25px;
      max-width: 920px;
      margin: 0 auto 40px;
  }
  .withdrawal-item { min-height: 240px; }
  .withdrawal-image { height: 120px; margin-top: 20px; }

  /* More Content */
  #more-content {
      padding: 40px; /* Adjusted for overall container padding */
  }
  .user-profile-card {
      max-width: 800px;
      padding: 30px;
  }
  .profile-avatar { width: 70px; height: 70px; font-size: 2.2em; }
  .profile-info h3 { font-size: 1.5em; }
  .profile-info p { font-size: 1em; }
  .menu-list {
      max-width: 800px;
  }
  .menu-item { padding: 18px 25px; font-size: 1.2em; }
  .social-proof {
      max-width: 800px;
  }
  .social-proof p { font-size: 1em; }
  .social-icons-group a { margin: 0 10px; width: 55px; height: 55px; line-height: 55px; font-size: 1.8em; }

  /* Feature Cards */
  .feature-section {
      max-width: 1000px;
      margin: 20px auto;
      padding: 0 40px;
  }
  .feature-grid {
      gap: 25px;
  }
  .feature-grid-2-col {
      grid-template-columns: repeat(4, 1fr); /* 4 columns for these on desktop */
  }
  .feature-card { padding: 20px; }
  .feature-card h3 { font-size: 1.3em; }
  .feature-card p { font-size: 0.9em; }
  .feature-card .icon-placeholder { width: 70px; height: 70px; font-size: 3em; }

  .card-task-challenge { padding: 20px; }
  .card-task-challenge h3 { font-size: 1.6em; }
  .card-task-challenge .icon-time { font-size: 3em; }

  .feature-card-grid {
      gap: 25px;
  }
  .feature-card-grid .card-item { padding: 20px; }
  .feature-card-grid .card-item .img-placeholder { height: 90px; font-size: 3.5em; }
  .feature-card-grid .card-item h4 { font-size: 1.2em; }
  .feature-card-grid .card-item .coins { font-size: 1em; }

  .card-pubscale { padding: 25px; }
  .card-pubscale .logo-placeholder { width: 70px; height: 70px; font-size: 3em; }
  .card-pubscale h3 { font-size: 1.4em; }
  .card-pubscale .offer-text { font-size: 0.9em; }
  .card-pubscale .coins-highlight { font-size: 1.3em; }
  .card-pubscale .earn-button { padding: 10px 20px; }

  .stats-card-container {
    max-width: 960px;
    padding: 0 40px 40px;
  }
  .stats-card {
    flex: 1 1 280px;
    padding: 30px 25px;
  }
  .stats-card h3 { font-size: 32px; }
  .stats-card p { font-size: 15px; }

  .live-withdrawal-box {
    max-width: 960px;
    padding: 25px;
    margin: 25px auto;
  }
  .live-withdrawal-box h3 { font-size: 18px; }
  .live-note { font-size: 12px; }
  .live-card { padding: 12px; }
  .live-method { font-size: 14px; }
  .live-amount { font-size: 18px; }
  .live-time { font-size: 12px; }

  /* -------------------------------------- */
  /* 13. PC/DESKTOP FOOTER (Mobile-like)    */
  /* -------------------------------------- */
  .desktop-footer {
    display: flex !important; /* Force display on desktop */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px; /* Slightly taller than mobile for PC */
    background-color: #fff;
    box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.15); /* Stronger shadow for PC */
    justify-content: space-around;
    align-items: center;
    z-index: 200;
    padding: 0 20px; /* Add some horizontal padding */
    border-top: none; /* Remove any default border-top */
  }

  .desktop-footer .nav-link { /* Use .nav-link for consistency with mobile footer */
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.9em; /* Slightly larger text */
    color: #777;
    padding: 5px;
    flex: 1;
    text-align: center;
    transition: color 0.3s;
  }

  .desktop-footer .nav-link.active {
    color: #000;
  }

  .desktop-footer .nav-link i {
    font-size: 1.8em; /* Slightly larger icons */
    margin-bottom: 5px;
  }
  
  /* Hide the old desktop-footer content (e.g., about, support, etc.) */
  .desktop-footer .desktop-footer-content,
  .desktop-footer .footer-bottom {
      display: none !important;
  }

  /* Ensure mobile footer is completely hidden */
  .mobile-footer { display: none !important; }
}

/* --- iPhone X/XS/XR/11/12/13/14/15 specific adjustments (notch areas, safe areas) --- */
@media only screen and (min-device-width: 375px) and (max-device-width: 428px) and (-webkit-min-device-pixel-ratio: 2) and (orientation: portrait) {
    body {
        /* Env variables for safe areas (iOS) */
        padding-top: env(safe-area-inset-top);
        padding-bottom: calc(60px + env(safe-area-inset-bottom)); /* Adjust for mobile footer + safe area */
    }
    .bismillah-header {
        padding-top: calc(10px + env(safe-area-inset-top));
    }
    .app-header {
        top: calc(45px + env(safe-area-inset-top)); /* Adjust sticky header position */
    }
    .mobile-footer {
        padding-bottom: env(safe-area-inset-bottom);
        height: calc(60px + env(safe-area-inset-bottom));
    }
}
