* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f5f5f5;
  color: #333;
  min-height: 100vh;
}

.hidden {
  display: none !important;
}

/* Overlay / Popup */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.popup {
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.popup h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.popup p {
  color: #666;
  margin-bottom: 20px;
  font-size: 14px;
}

.popup input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  margin-bottom: 16px;
  outline: none;
}

.popup input:focus {
  border-color: #000;
}

.popup button {
  width: 100%;
  padding: 12px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}

.popup button:hover {
  background: #333;
}

.error {
  color: #e74c3c;
  font-size: 13px;
  margin-top: 8px;
}

/* Header */
header {
  background: #fff;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
}

header h1 {
  font-size: 20px;
  font-weight: 600;
}

.user-email {
  font-size: 13px;
  color: #888;
}

/* Tabs */
nav {
  background: #fff;
  display: flex;
  border-bottom: 1px solid #eee;
}

.tab {
  flex: 1;
  padding: 14px;
  background: none;
  border: none;
  font-size: 15px;
  cursor: pointer;
  color: #888;
  border-bottom: 2px solid transparent;
}

.tab.active {
  color: #000;
  font-weight: 600;
  border-bottom-color: #000;
}

/* Main */
main {
  max-width: 500px;
  margin: 0 auto;
  padding: 24px 16px;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Balance Card */
.balance-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  margin-bottom: 20px;
}

.balance-label {
  display: block;
  font-size: 13px;
  color: #888;
  margin-bottom: 4px;
}

.balance-value {
  display: block;
  font-size: 36px;
  font-weight: 700;
}

.balance-unit {
  display: block;
  font-size: 14px;
  color: #888;
  margin-top: 2px;
}

/* Claim */
.claim-section {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.reward-text {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

.timer-container {
  margin-bottom: 20px;
}

.timer {
  font-size: 40px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #000;
}

.timer-label {
  font-size: 13px;
  color: #888;
  margin-top: 4px;
}

.claim-btn {
  width: 100%;
  padding: 14px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.claim-btn:hover:not(:disabled) {
  background: #333;
}

.claim-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.claim-message {
  margin-top: 12px;
  font-size: 14px;
  min-height: 20px;
}

.claim-message.success {
  color: #27ae60;
}

.claim-message.error {
  color: #e74c3c;
}

/* Withdraw */
.withdraw-section {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.withdraw-info {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.withdraw-section input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  margin: 16px 0;
  outline: none;
}

.withdraw-section input:focus {
  border-color: #000;
}

.withdraw-btn {
  width: 100%;
  padding: 14px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.withdraw-btn:hover:not(:disabled) {
  background: #333;
}

.withdraw-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.withdraw-message {
  margin-top: 12px;
  font-size: 14px;
  min-height: 20px;
}

.withdraw-message.success {
  color: #27ae60;
}

.withdraw-message.error {
  color: #e74c3c;
}

/* History */
.history-section {
  margin-top: 20px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 20px;
}

.history-section h3 {
  font-size: 16px;
  margin-bottom: 12px;
}

.history-list {
  max-height: 200px;
  overflow-y: auto;
}

.history-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}

.history-item:last-child {
  border-bottom: none;
}

.history-item .amount {
  font-weight: 600;
}

.history-item .date {
  color: #888;
}

.empty-history {
  color: #aaa;
  font-size: 14px;
  text-align: center;
  padding: 16px 0;
}

#adslab-banner-unit-f0tholob7 {
  max-width: 500px;
  margin: 0 auto;
  padding: 0 16px 24px;
  text-align: center;
}
