[data-app="earn_rewards"] {
  background: var(--bg);
  min-height: 100vh;
}
.earn-page-wrapper {
  padding: 16px;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.exchange-toolbar {
  display: flex;
  gap: 8px;
  background: var(--bg-2);
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.toolbar-btn {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  color: var(--text-2);
  font-weight: 600;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--ease);
}
.toolbar-btn.active {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.exchange-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
}
.stats-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.stat {
  flex: 1;
  text-align: center;
}
.stat small {
  display: block;
  font-size: 11px;
  color: var(--text-2);
  margin-bottom: 4px;
  text-transform: uppercase;
  font-weight: 600;
}
.stat strong {
  font-size: 18px;
  color: var(--text);
}
.viewer-card {
  padding: 0;
  overflow: hidden;
  height: 50vh;
  min-height: 300px;
}
#task-frame {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 16px;
  background: #000;
}
.earn-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.earn-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.earn-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}
.earn-card small {
  font-size: 11px;
  color: var(--text-2);
}
.progress-bar-container {
  height: 6px;
  background: var(--bg-3);
  border-radius: 4px;
  overflow: hidden;
}
#earn-progress-bar {
  height: 100%;
  background: var(--accent);
  width: 0;
  transition: width 0.3s ease;
}
#claim-button {
  display: block;
  width: 100%;
  padding: 14px;
  margin-top: 10px;
  background: var(--success);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.earn-form-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.earn-form-group input {
  width: 100%;
  padding: 14px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 15px;
}
.earn-form-group button {
  padding: 14px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}
.task-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  border-bottom: 1px solid var(--border);
}
.task-item:last-child {
  border-bottom: none;
}
.delete-task-btn {
  background: var(--danger);
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
#reward-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: 16px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
}

.wallet-banktrans {
  padding: 16px;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.bank-requisites {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
}
.bank-requisites__account-bank-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}
.upi-btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  margin-bottom: 20px;
}
#qrContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: #fff;
  border-radius: 12px;
  margin: 0 auto;
  max-width: 220px;
}
#qrContainer a {
  color: #000;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 10px;
  text-decoration: none;
}

.user-data-container {
  padding: 16px;
  max-width: var(--max-w);
  margin: 0 auto;
  color: var(--text);
}
.user-data-section {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 20px;
  overflow: hidden;
}
.user-data-header {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-3);
}
.user-data-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.user-data-body {
  padding: 16px;
}
.user-cover {
  position: relative;
  height: 150px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 40px;
}
.user-cover > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.user-cover .user-avatar {
  position: absolute;
  bottom: -30px;
  left: 20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid var(--bg-2);
  overflow: hidden;
  background: var(--bg-2);
}
.user-cover .user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.user-name h3 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
}
.user-name p {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--text-2);
}
.user-info table {
  width: 100%;
  border-collapse: collapse;
}
.user-info td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.user-info tr:last-child td {
  border-bottom: none;
}
.info-label {
  font-weight: 600;
  color: var(--text-2);
}
.info-value {
  color: var(--text);
}
.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}
.badge-primary {
  background: var(--accent-soft);
  color: var(--accent);
}
.badge-dark {
  background: var(--bg-3);
  color: var(--text-2);
}
.badge-success {
  background: rgba(0, 186, 124, 0.15);
  color: var(--success);
}
.user-connections {
  display: flex;
  flex-direction: column;
}
.user-connections .list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.user-connections .list-item:last-child {
  border-bottom: none;
}
.user-connections .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.user-connections .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.history-record {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.history-record:last-child {
  border-bottom: none;
}
.history-record .amount {
  font-weight: 700;
  color: var(--success);
}

.gallery-container {
  padding-bottom: 24px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  width: 100%;
}
.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-3);
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  transition: opacity var(--ease);
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}
.gallery-stat {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.gallery-stat svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.podcast-container {
  padding: 16px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.podcast-header {
  margin-bottom: 20px;
}
.podcast-header h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
}
.podcast-header h2 svg {
  width: 24px;
  height: 24px;
  fill: var(--accent);
}
.podcast-header p {
  margin: 0;
  font-size: 14px;
  color: var(--text-2);
}
.podcast-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.podcast-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  cursor: pointer;
  transition: background var(--ease);
}
.podcast-item:hover {
  background: var(--surface-hover);
}
.podcast-cover {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.podcast-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.podcast-placeholder svg {
  width: 24px;
  height: 24px;
  fill: var(--text-2);
}
.podcast-info {
  flex: 1;
  min-width: 0;
}
.podcast-author {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.podcast-author img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}
.podcast-author span {
  font-size: 12px;
  color: var(--text-2);
  font-weight: 600;
}
.podcast-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.podcast-text {
  font-size: 12px;
  color: var(--text-3);
}

.stat-page-content {
  padding: 24px 16px;
  max-width: var(--max-w);
  margin: 0 auto;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.6;
}
.stat-page-content h4 {
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  margin: 24px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.stat-page-content h4:first-child {
  margin-top: 0;
}
.stat-page-content p {
  margin-bottom: 16px;
}
.stat-page-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}
.stat-page-content li {
  margin-bottom: 8px;
}
.stat-page-content strong {
  color: var(--text);
  font-weight: 600;
}
.stat-page-content a {
  color: var(--accent);
  text-decoration: none;
}
.stat-page-content a:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .gallery-grid {
    gap: 1px;
  }
  .podcast-cover {
    width: 56px;
    height: 56px;
    min-width: 56px;
  }
  .podcast-title {
    font-size: 14px;
  }
  .user-cover .user-avatar {
    width: 64px;
    height: 64px;
    bottom: -24px;
  }
  .user-cover {
    height: 120px;
  }
}