/* Color Variables (BMX Gold + Silver + Off-White Background Theme) */
:root {
    --bg-color: #f7f6f0;
    /* Off-White Background */
    --card-bg: #ffffff;
    /* Pure White Cards */
    --text-dark: #121212;
    /* Dark Gray / Black for text */
    --text-muted: #757575;
    /* Muted Gray Text */

    /* BMX Theme Metallic Colors */
    --gold-primary: #d4af37;
    --gold-gradient: linear-gradient(135deg, #f5d77f 0%, #c59b27 100%);
    --silver-gradient: linear-gradient(135deg, #e0e0e0 0%, #9e9e9e 100%);
    --balance-card-gradient: linear-gradient(135deg, #1c1a17 0%, #383121 100%);

    --border-gold: rgba(212, 175, 55, 0.25);
    --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-dark);
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.dashboard-container {
    width: 100%;
    max-width: 1024px;
    padding: 16px 16px 80px 16px;
}

.content-page {
  display: none;
}

.content-page.active {
  display: block;
}

/* Header Navbar */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.brand-title {
    display: flex;
    align-items: center;
    gap: 10px;
}


.brand-logo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 50%;
}

.brand-text h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.brand-text span {
    font-size: 12px;
    color: var(--text-muted);
}

.icon-btn {
    background: var(--card-bg);
    border: 1px solid var(--border-gold);
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-dark);
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease;
}

.icon-btn:active {
    transform: scale(0.95);
}

/* Main Cards Styling */
.card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-gold);
    position: relative;
}

/* Balance Card Layout */
.balance-card {
    background: var(--balance-card-gradient);
    color: #ffffff;
    border: 1px solid var(--gold-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 16px;
}

/* Left Section Content */
.balance-left-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.balance-header {
    font-size: 14px;
    color: #cfcbbe;
    display: flex;
    align-items: center;
    gap: 8px;
}

.balance-amount h1 {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}

.balance-amount h1 span {
    font-size: 18px;
    color: var(--gold-primary);
}

.balance-amount p {
    font-size: 13px;
    color: #a39f93;
    margin-top: 4px;
}

/* Right Section Image */
.balance-right-img {
    display: flex;
    align-items: center;
    justify-content: center;
}

.balance-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.gold-crown-icon {
    font-size: 64px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.8;
}

/* Action Buttons */
.action-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.btn {
    padding: 14px;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.1s ease;
}

.btn:active {
    transform: scale(0.98);
}

.btn-gold {
    background: var(--gold-gradient);
    color: #121212;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-silver {
    background: var(--card-bg);
    color: var(--text-dark);
    border: 1px solid #dcdcdc;
    box-shadow: var(--shadow-soft);
}

.btn-gold-small {
    background: var(--gold-gradient);
    color: #121212;
    padding: 8px 16px;
    font-size: 13px;
    margin-top: 10px;
}

/* Overview Section & Stats */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.section-header h3 {
    font-size: 18px;
    font-weight: 700;
}

.view-all {
    color: var(--gold-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.icon-gold {
    background: #fcf8eb;
    color: #c59b27;
}

.icon-silver {
    background: #f0f0f0;
    color: #616161;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

.stat-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
}

.stat-value span {
    font-size: 16px;
    color: var(--text-muted);
}

/* Invite Card Styling */
.invite-card {
    background: linear-gradient(135deg, #ffffff 0%, #fffdf7 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid var(--border-gold);
    box-shadow: var(--shadow-soft);
    gap: 12px;
}

.invite-content {
    flex: 1;
}

.invite-content h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.invite-content p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.invite-content p strong {
    color: var(--gold-primary);
}

/* Image Wrapper and Image Styling */
.invite-img-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.invite-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.gift-icon {
    font-size: 48px;
    color: var(--gold-primary);
}

/* Bottom Navigation Bar (Mobile View) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    border-top: 1px solid var(--border-gold);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 11px;
    gap: 2px;
}

.nav-item i {
    font-size: 20px;
}

.nav-item.active {
    color: #c59b27;
    font-weight: 700;
}

/* ==================================== */
/* Desktop Layout Adjustments (Responsive) */
/* ==================================== */
@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .dashboard-grid {
        display: grid;
        gap: 20px;
    }

}

.bottom-sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 20px 20px 24px;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform .3s ease;
  max-height: 88vh;
  overflow-y: auto;
  display: none;
  box-shadow: 0 -8px 30px rgba(0,0,0,.15);
  font-family: inherit;
}
.bottom-sheet.active { display: block; }
.bottom-sheet.show { transform: translateY(0); }

.sheet-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 999;
  display: none; opacity: 0;
  transition: opacity .25s ease;
}
.sheet-overlay.active { display: block; opacity: 1; }

.sheet-handle {
  width: 40px; height: 4px;
  background: #ddd;
  border-radius: 4px;
  margin: 0 auto 16px;
}

.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.sheet-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}
.sheet-close {
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: #333;
  cursor: pointer;
  padding: 4px;
}

.buytp-wallet-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  color: #222;
  margin-bottom: 14px;
}
.buytp-wallet-row .label { color: #444; }
.buytp-wallet-row .value { font-weight: 700; }

.buytp-field-label {
  display: block;
  font-size: 14px;
  color: #222;
  font-weight: 600;
  margin-bottom: 6px;
}

.buytp-amount-input,
.wd2-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  font-size: 15px;
  outline: none;
  margin-bottom: 6px;
  transition: border-color .2s;
}
.buytp-amount-input:focus,
.wd2-input:focus {
  border-color: #d4a017;
}

.buytp-hint,
.wd2-sub-text {
  font-size: 12.5px;
  color: #888;
  margin: 0 0 16px;
}

.buytp-quick-label {
  display: block;
  font-size: 13.5px;
  color: #555;
  margin-bottom: 8px;
}

.buytp-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}
.buytp-quick-btn {
  padding: 10px 0;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fafafa;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  transition: all .15s;
}
.buytp-quick-btn:hover { border-color: #d4a017; }
.buytp-quick-btn.active {
  background: #fff7e0;
  border-color: #d4a017;
  color: #a6790f;
}

.btn-gold-large {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #f0c14b 0%, #d4a017 100%);
  color: #1a1a1a;
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 4px;
  transition: opacity .2s;
}
.btn-gold-large.disabled,
.btn-gold-large:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.bottom-sheet .btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 14px;
  background: #f0f0f0;
  color: #333;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
}
.bottom-sheet .btn:hover { background: #e6e6e6; }
.wd2-balance-pill {
  font-size: 15px;
  color: #222;
  margin-bottom: 4px;
}
.wd2-balance-pill::before { content: none; }

.wd2-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.wd2-label {
  font-size: 14px;
  font-weight: 600;
  color: #222;
}

.wd2-addr-label {
  font-size: 14px;
  font-weight: 600;
  color: #222;
  margin: 16px 0 6px;
}

.wd2-info-box {
  font-size: 12.5px;
  color: #888;
  margin: 0 0 12px;
  line-height: 1.4;
}

.wd2-continue-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #f0c14b 0%, #d4a017 100%);
  color: #1a1a1a;
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
}
.wd2-continue-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}
.payment-section {
  margin-top: 6px;
}

.plan-card {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.plan-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #333;
}
.plan-row strong {
  color: #a6790f;
  font-size: 15px;
}

.payment-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 18px;
}
.payment-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 10px;
}

.payment-text {
  font-size: 13.5px;
  color: #555;
  margin: 0 0 12px;
  line-height: 1.4;
}
.payment-text strong {
  color: #1a1a1a;
}

.address-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f7f7f7;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 16px;
}
.wallet-address {
  flex: 1;
  font-size: 12.5px;
  word-break: break-all;
  color: #333;
  font-family: monospace;
}
.copy-btn-address {
  flex-shrink: 0;
  border: none;
  background: #d4a017;
  color: #1a1a1a;
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
}
.copy-btn-address:hover { background: #c4921a; }

.qr-box {
  display: flex;
  justify-content: center;
  padding: 14px;
  background: #fafafa;
  border-radius: 12px;
  margin-bottom: 14px;
}
.qr-box canvas {
  border-radius: 8px;
}

.verify-text {
  font-size: 12.5px;
  color: #888;
  text-align: center;
  margin: 0 0 14px;
  line-height: 1.4;
}

.timer-card {
  text-align: center;
  background: #fff7e0;
  border: 1px solid #f0d98a;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 14px;
}
.timer-title {
  font-size: 12px;
  font-weight: 600;
  color: #a6790f;
  margin-bottom: 4px;
}
.timer {
  font-size: 22px;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: 1px;
}

.warning-card {
  font-size: 12.5px;
  color: #b45309;
  background: #fff3e0;
  border: 1px solid #ffdca8;
  border-radius: 10px;
  padding: 10px 12px;
  text-align: center;
  line-height: 1.4;
}

/* Tasks Header Styling */
.tasks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 4px;
}

.tasks-header-text h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-dark);
}

.tasks-header-text p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

.task-banner-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

/* Tasks List Grid/Layout */
.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--card-bg);
    border-radius: 18px;
    border: 1px solid var(--border-gold);
    box-shadow: var(--shadow-soft);
}

/* Active Highlight Task Card */
.task-card.active-task {
    border: 1.5px solid var(--gold-primary);
    background: linear-gradient(135deg, #ffffff 0%, #fdfbf3 100%);
}

.task-icon {
    width: 30px;
    height: 30px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.task-info {
    flex: 1;
}

.task-info h3 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
}

.task-info p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 2px 0 6px 0;
}

.task-reward {
    display: inline;
    align-items: center;
    gap: 10px;
}

.reward-amount {
    font-size: 13px;
    font-weight: 700;
    color: #c59b27;
    /* Gold accent color */
}

.task-limit {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Task Buttons */
.task-btn {
    min-width: 55px;
    padding: 10px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

.btn-silver-small {
    background: #121212;
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.btn-silver-small:active {
    opacity: 0.8;
}


/* Referral Banner Card */
.referral-banner {
    background: var(--balance-card-gradient);
    color: #ffffff;
    border: 1px solid var(--gold-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.banner-text h2 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 4px;
}

.banner-text p {
    font-size: 13px;
    color: #cfcbbe;
}

.banner-text p strong {
    color: var(--gold-primary);
}

.banner-img {
    width: 95px;
    height: 100px;
    object-fit: contain;
}

/* Link Box */
.referral-link-card {
    margin-bottom: 16px;
}

.input-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: block;
}

.link-input-box {
    display: flex;
    align-items: center;
    background: #f4f3ed;
    border-radius: 12px;
    padding: 6px 10px 6px 14px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.link-input-box input {
    width: 100%;
    border: none;
    background: transparent;
    outline: none;
    font-size: 13px;
    color: var(--text-muted);
}

.copy-btn {
    background: var(--gold-gradient);
    border: none;
    color: #121212;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* Stats Row */
.ref-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.stat-box {
    background: var(--card-bg);
    border: 1px solid var(--border-gold);
    border-radius: 16px;
    padding: 14px 8px;
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 16px;
    font-weight: 800;
    color: var(--text-dark);
}

.stat-num span {
    font-size: 10px;
    color: var(--gold-primary);
}

.stat-sub {
    font-size: 11px;
    color: var(--text-muted);
}

/* Share Button */
.share-btn {
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    font-size: 15px;
    margin-bottom: 20px;
}

/* Leaderboard */
.leaderboard-card {
    padding: 0;
    overflow: hidden;
}

.leaderboard-header {
    background: var(--balance-card-gradient);
    color: #ffffff;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.trophy-icon {
    font-size: 28px;
    color: var(--gold-primary);
}

.leaderboard-header h3 {
    font-size: 16px;
    font-weight: 700;
}

.leaderboard-header p {
    font-size: 12px;
    color: #a39f93;
}

.leaderboard-list {
    padding: 12px 16px;
}

.rank-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0efea;
}

.rank-item:last-child {
    border-bottom: none;
}

.rank-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rank-title {
    font-size: 14px;
    font-weight: 700;
}

.rank-reward {
    font-size: 14px;
    font-weight: 700;
    color: #c59b27;
}

/* Profile Card Styling */
.profile-card {
    background: var(--balance-card-gradient);
    color: #ffffff;
    border: 1px solid var(--gold-primary);
    border-radius: 20px;
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: var(--shadow-soft);
}

.profile-avatar-wrapper {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    padding: 3px;
    background: var(--gold-gradient);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #ffffff;
}

.profile-info h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.profile-id {
    font-size: 12px;
    color: #cfcbbe;
}

/* Profile Menu List */
.profile-menu-card {
    padding: 0;
    overflow: hidden;
    border-radius: 20px;
}

.profile-menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    text-decoration: none;
    color: var(--text-dark);
    border-bottom: 1px solid #f0efea;
    transition: background 0.2s ease;
}

.profile-menu-item:last-child {
    border-bottom: none;
}

.profile-menu-item:active {
    background: #f7f6f0;
}

.menu-item-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.menu-item-left span {
    font-size: 15px;
    font-weight: 600;
}

.menu-icon {
    font-size: 20px;
}

.icon-red {
    color: #e53935;
}

.logout-text {
    color: #e53935;
}

.arrow-icon {
    font-size: 18px;
    color: var(--text-muted);
}

/* Farm Hero Card */
.farm-hero-card {
  padding: 0;
  overflow: hidden;
  margin-bottom: 24px;
}

.farm-banner {
  position: relative;
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
  display: flex;
  justify-content: flex-end;
  padding: 12px;
}

.farm-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.level-badge {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 14px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  height: max-content;
}

.level-badge span {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.level-badge strong {
  font-size: 13px;
  color: var(--text-dark);
}

/* Farm Progress & Stats */
.farm-progress-section {
  padding: 20px;
  background: var(--card-bg);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: #ecebe4;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 18px;
}

.progress-bar-fill {
  height: 100%;
  background: var(--gold-gradient);
  border-radius: 10px;
}

.farm-stats-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}

.stat-label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.stat-value {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-dark);
}

.gold-text {
  color: #c59b27;
}

.gold-text span {
  font-size: 11px;
}

.farm-claim-btn {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-disabled {
  background: #e5e4de;
  color: #9e9d96;
  border: none;
  cursor: not-allowed;
}

/* Boost Grid */
.section-title h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 14px;
}

.boost-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.boost-card {
  position: relative;
  text-align: center;
  padding: 16px 8px;
  border-radius: 16px;
}

.boost-card.disabled {
  opacity: 0.75;
}

.tag-soon, .tag-count {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

.tag-soon {
  background: #e0e0e0;
  color: #666;
}

.tag-count {
  background: #e8f5e9;
  color: #2e7d32;
}

.boost-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  margin: 8px auto 10px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.boost-card h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
}

.boost-card p {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    min-width: 280px;
    max-width: 92%;
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 9999;
}

    /* SUCCESS */
    .toast.success {
      background: linear-gradient(135deg, #00c853bb, #1b5e1fb4);
    }

    /* ERROR */
    .toast.error {
      background: linear-gradient(135deg, #ff1745d3, #b71c1c94);
    }

    /* SHOW */
    .toast.show {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }

/* Personal Details Page */
#page-personal-details .tasks-header {
  padding: 20px 4px 16px;
}
#page-personal-details .tasks-header-text h2 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 4px;
}
#page-personal-details .tasks-header-text p {
  font-size: 13.5px;
  color: #888;
  margin: 0;
}

#page-personal-details .card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}

#page-personal-details .form-group {
  margin-bottom: 16px;
}
#page-personal-details .form-group:last-of-type {
  margin-bottom: 0;
}

#page-personal-details .form-label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #222;
  margin-bottom: 6px;
}

#page-personal-details .form-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  font-size: 15px;
  color: #1a1a1a;
  background: #fff;
  outline: none;
  transition: border-color .2s;
}
#page-personal-details .form-input::placeholder {
  color: #aaa;
}
#page-personal-details .form-input:focus {
  border-color: #d4a017;
}

#page-personal-details .wd2-continue-btn {
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #f0c14b 0%, #d4a017 100%);
  color: #1a1a1a;
  font-size: 15.5px;
  font-weight: 700;
  padding: 14px;
  cursor: pointer;
}
#page-personal-details .wd2-continue-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}

#page-personal-details .btn {
  border: none;
  border-radius: 14px;
  background: #f0f0f0;
  color: #333;
  font-size: 15px;
  font-weight: 600;
  padding: 14px;
  cursor: pointer;
}
#page-personal-details .btn:hover {
  background: #e6e6e6;
}

/* ==========================================
   SUPPORT PAGE STYLES
   ========================================== */

#page-support {
  padding: 16px;
  color: #ffffff;
}

/* Page Title Header */
.page-title {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  background: var(--gold-gradient, linear-gradient(135deg, #fff 0%, #ffd700 100%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Containers Layout */
.withdraw-container {
  margin-bottom: 25px;
}

/* Form Card Styling (Glassmorphism) */
.support-card {
  background: var(--card-bg, rgba(20, 20, 20, 0.6));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-gold, rgba(255, 215, 0, 0.2));
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-soft, 0 8px 32px 0 rgba(0, 0, 0, 0.37));
}

/* Form Groups */
.support-form .form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted, rgba(255, 255, 255, 0.7));
  margin-bottom: 6px;
}

/* Inputs & Select Elements */
.form-input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-gold, rgba(255, 215, 0, 0.2));
  border-radius: 10px;
  color: #080808;
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-input:focus {
  border-color: var(--gold-primary, #ffd700);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

/* Dropdown Options Dark Theme Fix */
select.form-input option {
  background-color: #f7f6f0;
  color: #000000;
}

/* Textarea Adjustments */
textarea.form-input {
  resize: vertical;
  min-height: 90px;
}

/* Submit Button Layout */
.task-header {
  margin-top: 20px;
}

.continue-btn {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: var(--gold-gradient, linear-gradient(135deg, #ffd700 0%, #ffa500 100%));
  color: #121212;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.continue-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.continue-btn:active {
  transform: translateY(0);
}

/* ==========================================
   TICKET HISTORY SECTION
   ========================================== */

.withdraw-history {
  background: var(--card-bg, rgba(20, 20, 20, 0.6));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-gold, rgba(255, 215, 0, 0.15));
  border-radius: 16px;
  padding: 20px;
}

.history-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark, #ffffff);
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

/* View More Button */
.view-more-btn {
  padding: 8px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-gold, rgba(255, 215, 0, 0.3));
  color: var(--gold-primary, #ffd700);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.view-more-btn:hover {
  background: var(--gold-gradient, linear-gradient(135deg, #ffd700 0%, #ffa500 100%));
  color: #121212;
}

/* ==========================================
   SUPPORT TICKET HISTORY CARDS
   ========================================== */

/* Outer History List Container */
#supportHistoryContainer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
}

/* Individual Ticket Item Card */
.history-item {
  background: var(--card-bg, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border-gold, rgba(255, 215, 0, 0.15));
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.history-item:hover {
  border-color: var(--gold-primary, #ffd700);
  background: rgba(255, 255, 255, 0.05);
}

/* Header Row: Date & Status */
.history-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.history-date {
  font-size: 11px;
  color: var(--text-muted, rgba(255, 255, 255, 0.6));
  font-weight: 500;
}

/* Dynamic Status Badges */
.history-status {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.history-status.active {
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.history-status.pending {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.history-status.positive {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

/* Ticket Details Section */
.history-middle {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.history-detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.history-label {
  font-size: 11px;
  color: var(--gold-primary, #ffd700);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.history-value {
  font-size: 13px;
  color: #000000;
  line-height: 1.4;
  word-break: break-word;
}

/* Multiline Ellipsis Option */
.text-ellipsis {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================
   TASK INCOME HISTORY STYLES
   ========================================== */

/* Header Styling */
.ih-header {
  text-align: center;
  margin-bottom: 20px;
}

.ih-title {
  font-size: 22px;
  font-weight: 700;
  background: var(--gold-gradient, linear-gradient(135deg, #ffffff 0%, #ffd700 100%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}

.ih-subtitle {
  font-size: 12px;
  color: var(--text-muted, rgba(255, 255, 255, 0.6));
  margin-bottom: 6px;
}

.ih-brand {
  font-size: 11px;
  color: var(--gold-primary, #ffd700);
  font-weight: 600;
}

/* Stats Row Card */
.ih-stats-row {
  margin-bottom: 16px;
}

.ih-stat-card {
  background: var(--card-bg, rgba(20, 20, 20, 0.6));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-gold, rgba(255, 215, 0, 0.2));
  border-left: 4px solid var(--gold-primary, #ffd700);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.ih-stat-label {
  font-size: 12px;
  color: var(--text-muted, rgba(255, 255, 255, 0.7));
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ih-stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--gold-primary, #ffd700);
  margin-top: 4px;
}

/* Task Filter Card & Button */
.ih-filter-card {
  margin-bottom: 16px;
}

.ih-filter-scroll {
  display: flex;
  justify-content: center;
}

.ih-filter-btn {
  background: var(--gold-gradient, linear-gradient(135deg, #ffd700 0%, #ffa500 100%));
  color: #121212;
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.25);
  cursor: pointer;
}

/* Transactions Main Container */

.ih-transactions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ih-transactions-title {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
}

.ih-sort-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-gold, rgba(255, 215, 0, 0.2));
  color: var(--text-dark, #ffffff);
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
}

/* Single Item Layout */
#historyLogContainer {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-item-task {
  display: flex;
  align-items: center;
  justify-content: space-between;
    padding: 0px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid var(--border-gold, rgba(255, 215, 0, 0.15));
}

.history-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.history-title-task {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark, #ffffff);
    margin-bottom: 16px;
        margin-top: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.history-title-task h4 {
  font-size: 14px;
  font-weight: 600;
  color: #d4af37;
  margin: 0;
}

.history-title-task p {
  font-size: 11px;
  color: var(--text-muted, rgba(255, 255, 255, 0.6));
  margin: 2px 0 0 0;
}

.history-amount {
  text-align: right;
}

.amount-plus {
  font-size: 15px;
  font-weight: 700;
  color: #22c55e;
}

.history-status.success {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

/* Empty State & View More */
.ih-empty-state {
  text-align: center;
  padding: 40px 10px;
  color: var(--text-muted, rgba(255, 255, 255, 0.5));
  font-size: 14px;
}

.view-more-btn {
  padding: 8px 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-gold, rgba(255, 215, 0, 0.3));
  color: var(--gold-primary, #ffd700);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.view-more-btn:hover {
  background: var(--gold-gradient, linear-gradient(135deg, #ffd700 0%, #ffa500 100%));
  color: #121212;
}

/* ==========================================
   REFERRAL TEAM (USING EXISTING RANK-ITEM CSS)
   ========================================== */

/* User Badge inside Existing .rank-info */
.rank-info .user-avatar {
  font-size: 18px;
  margin-right: 8px;
  color: var(--gold-primary, #ffd700);
}

/* Right Side Reward Text Styling */
.rank-reward {
  font-size: 13px;
  font-weight: 700;
  color: #2ecc71; /* Green color for reward */
}

/* Active Status Badge (Optional Add-on) */
.badge.active-badge {
  background: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.3);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
}
.badge.inactive-badge {
  background: rgba(204, 46, 93, 0.15);
  color: #cc332e;
  border: 1px solid rgba(204, 46, 46, 0.3);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
}