/* Google Fonts - Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap');

:root {
  --bg-dark: #030a06;
  --bg-gradient: radial-gradient(circle at top right, #0a2414, #030a06);
  --glass-bg: rgba(9, 28, 18, 0.45);
  --glass-border: rgba(0, 255, 136, 0.15);
  --neon-primary: #00ff88;
  --neon-glow: rgba(0, 255, 136, 0.4);
  --text-main: #f0fdf6;
  --text-muted: #80b396;
  --danger: #ff4757;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  user-select: none; /* Prevent text selection in mini app */
}

body {
  background: var(--bg-gradient);
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  padding: 15px;
  padding-bottom: 90px;
  overflow-x: hidden;
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 255, 136, 0.3);
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Balance Box */
.balance-box {
  text-align: center;
  margin: 10px 0;
}
.balance-amount {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--neon-primary);
  text-shadow: 0 0 15px var(--neon-glow);
  letter-spacing: -1px;
}

/* Buttons */
.neon-btn {
  background: linear-gradient(135deg, #00b359, #00ff88);
  color: #000;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  padding: 14px 24px;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 4px 15px var(--neon-glow);
  transition: all 0.3s ease;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.neon-btn:active {
  transform: scale(0.95);
  box-shadow: 0 2px 8px var(--neon-glow);
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.9rem;
  width: auto;
  border-radius: 10px;
}

.btn-outline {
  background: transparent;
  color: var(--neon-primary);
  border: 1px solid var(--neon-primary);
  box-shadow: none;
}

/* Tasks List */
.task-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--glass-border);
}
.task-item:last-child {
  border-bottom: none;
}
.task-info h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}
.task-meta {
  font-size: 0.8rem;
  color: var(--neon-primary);
  font-weight: 600;
}

/* Inputs */
.glass-input {
  width: 100%;
  padding: 14px;
  margin-bottom: 12px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: 0.3s;
}
.glass-input:focus {
  border-color: var(--neon-primary);
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}

/* Custom Modern Toast Notification */
#toast {
  position: fixed;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 26, 18, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--neon-primary);
  color: #fff;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 15px var(--neon-glow);
  transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1000;
  white-space: nowrap;
}
#toast.show {
  bottom: 30px;
}

/* Ad Timer Modal Container */
#adModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 10, 6, 0.95);
  backdrop-filter: blur(15px);
  z-index: 9999;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Circular Progress for Ad Timer */
.timer-circle {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid rgba(0, 255, 136, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}
.timer-circle::after {
  content: '';
  position: absolute;
  top: -4px; left: -4px; right: -4px; bottom: -4px;
  border-radius: 50%;
  border: 4px solid transparent;
  border-top-color: var(--neon-primary);
  animation: spin 1s linear infinite;
}
.timer-text {
  font-size: 2rem;
  font-weight: 800;
  color: var(--neon-primary);
  text-shadow: 0 0 10px var(--neon-glow);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}