:root {
  --daily-surface: rgba(12, 18, 34, 0.96);
  --daily-surface-soft: rgba(20, 29, 52, 0.94);
  --daily-border: rgba(117, 140, 191, 0.16);
  --daily-border-strong: rgba(99, 102, 241, 0.42);
  --daily-text: #eef2ff;
  --daily-text-muted: #b8c3e0;
  --daily-accent: #7c3aed;
  --daily-accent-soft: rgba(124, 58, 237, 0.18);
  --daily-success: #22c55e;
  --daily-shadow: 0 24px 60px rgba(5, 10, 25, 0.35);
  --daily-shadow-soft: 0 16px 36px rgba(5, 10, 25, 0.28);
}

.daily-task-page {
  color: var(--daily-text);
}

.daily-task-shell {
  max-width: 1180px;
}

.daily-task-card {
  border: 1px solid var(--daily-border);
  border-radius: 1.8rem;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(17, 24, 39, 0.98));
  box-shadow: var(--daily-shadow);
}

.daily-task-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  background: radial-gradient(circle at top left, rgba(124, 58, 237, 0.24), rgba(15, 23, 42, 0.18) 55%);
}

.daily-task-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: #c4b5fd;
}

.daily-task-header h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 800;
  color: #fff;
}

.daily-task-header p {
  max-width: 720px;
  margin: 0;
  color: var(--daily-text-muted);
  line-height: 1.7;
}

.daily-balance-card {
  min-width: 240px;
  padding: 1.3rem 1.4rem;
  border-radius: 1.3rem;
  border: 1px solid rgba(129, 140, 248, 0.18);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.92), rgba(17, 24, 39, 0.92));
  box-shadow: var(--daily-shadow-soft);
}

.daily-balance-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--daily-text-muted);
}

.daily-balance-value {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.9rem;
  font-weight: 800;
  color: #facc15;
}

.daily-task-body {
  padding: 2rem;
}

.daily-alert-stack {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.daily-alert-stack .alert {
  margin-bottom: 0;
  border-radius: 1rem;
}

.daily-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.daily-summary-card {
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--daily-border);
  border-radius: 1.2rem;
  background: var(--daily-surface-soft);
  box-shadow: var(--daily-shadow-soft);
}

.daily-summary-label {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--daily-text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.daily-summary-value {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
}

.daily-ad-stream {
  display: grid;
  gap: 1rem;
}

.daily-script-frame {
  width: 100%;
  min-height: 120px;
  padding: 0.5rem 0;
  overflow: hidden;
}

.daily-ad-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: 1rem;
  border: 1px dashed rgba(129, 140, 248, 0.3);
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.58);
  color: var(--daily-text-muted);
  text-align: center;
}

.daily-timer-card {
  margin-top: 1.5rem;
  padding: 1.8rem;
  border: 1px solid var(--daily-border-strong);
  border-radius: 1.5rem;
  background: linear-gradient(180deg, rgba(49, 46, 129, 0.28), rgba(15, 23, 42, 0.96));
  box-shadow: var(--daily-shadow-soft);
}

.daily-timer-card.is-hidden {
  display: none;
}

.daily-timer-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.daily-timer-title {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
}

.daily-timer-text {
  margin: 0;
  color: var(--daily-text-muted);
  line-height: 1.7;
}

.daily-countdown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 4px solid rgba(129, 140, 248, 0.55);
  background: rgba(15, 23, 42, 0.95);
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.35);
}

.daily-timer-state {
  margin-top: 1rem;
}

.daily-timer-state .alert {
  margin-bottom: 0;
  border-radius: 1rem;
}

.daily-empty-state {
  padding: 2rem;
  border: 1px dashed rgba(148, 163, 184, 0.3);
  border-radius: 1.25rem;
  text-align: center;
  color: var(--daily-text-muted);
}

@media (max-width: 991.98px) {
  .daily-summary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .daily-task-header,
  .daily-task-body {
    padding: 1.25rem;
  }
}
