/* ============================================
   E.ON Dashboard – Styles
   ============================================ */

/* ---- RED HEADER ---- */
.dash-header {
  background: var(--eon-red);
  padding: 4px 20px 20px;
  flex-shrink: 0;
}

.dash-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dash-address {
  font-size: 16px;
  font-weight: 700;
  color: white;
}

.dash-header-icons {
  display: flex;
  gap: 4px;
}

.dash-icon-btn {
  width: 38px;
  height: 38px;
  border: none;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: background 150ms ease;
}
.dash-icon-btn:hover { background: rgba(255,255,255,0.25); }

.dash-notif-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: #FACC15;
  border-radius: 50%;
  border: 2px solid var(--eon-red);
}

/* ---- DASHBOARD CONTENT ---- */
.dash-content {
  background: var(--bg-app);
  padding: 0 16px;
  margin-top: -12px;
  border-radius: 16px 16px 0 0;
  position: relative;
  z-index: 2;
}

/* ---- CURRENT CONTRACT CARD ---- */
.current-contract-card {
  background: #1E1E2E;
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin: 16px 0 12px;
  color: white;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.current-contract-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
}

.current-contract-body {
  flex: 1;
  min-width: 0;
}

.current-contract-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.9);
  margin: 0 0 4px;
}

.current-contract-offer {
  font-size: 15px;
  font-weight: 600;
  color: white;
  margin: 0 0 8px;
  line-height: 1.35;
}

.current-contract-offer strong {
  font-weight: 700;
}

.current-contract-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: white;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 150ms ease;
}

.current-contract-link:hover {
  color: white;
  opacity: 0.9;
}

.current-contract-link svg {
  flex-shrink: 0;
  opacity: 0.9;
}

/* ---- SMART PROMO BANNER ---- */
.promo-banner {
  background: linear-gradient(135deg, #1E1E2E, #2D2D44);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin: 16px 0 12px;
  color: white;
  position: relative;
  overflow: hidden;
}

.promo-banner::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(227,6,19,0.2) 0%, transparent 70%);
}

.promo-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 150ms ease;
  z-index: 2;
}
.promo-close:hover { background: rgba(255,255,255,0.2); }

.promo-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #FDE68A;
  background: rgba(253,230,138,0.15);
  border: 1px solid rgba(253,230,138,0.25);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.promo-title {
  font-size: 18px;
  font-weight: 800;
  color: white;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}

.promo-text {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,0.7);
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.promo-text strong { color: white; }

.promo-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--eon-red);
  color: white;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 150ms ease;
  position: relative;
  z-index: 1;
}
.promo-cta:hover { background: var(--eon-red-dark); text-decoration: none; transform: translateY(-1px); }

/* ---- PAYMENT CARD ---- */
.payment-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-card);
}

.payment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.payment-label {
  font-size: 13px;
  color: var(--text-muted);
}

.payment-status {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #F59E0B;
}

.payment-amount {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -1px;
  margin-bottom: 2px;
}

.payment-due {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.payment-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--eon-red);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 150ms ease;
}
.payment-btn:hover { background: var(--eon-red-dark); }

/* ---- QUICK ACTIONS ---- */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.qa-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 4px;
  background: var(--bg-white);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 150ms ease;
}
.qa-item:hover { border-color: var(--eon-red); background: var(--eon-red-50); }

.qa-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qa-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.3;
}

/* ---- OFFERS SECTION ---- */
.offers-section {
  margin-bottom: 16px;
}

.offers-header {
  margin-bottom: 14px;
}

.offers-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.offers-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}

.offers-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  padding-left: 24px;
}

/* ---- OFFER CARDS ---- */
.offer-card {
  display: block;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 12px;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: var(--text-primary);
  transition: all 200ms ease;
  position: relative;
  opacity: 0;
  transform: translateY(16px);
}

.offer-card--visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 400ms ease, transform 400ms ease;
}

.offer-card:hover {
  border-color: var(--eon-red);
  box-shadow: var(--shadow-card-hover);
  text-decoration: none;
  transform: translateY(-2px);
}

.offer-card--featured {
  border: 2px solid var(--eon-red);
  background: linear-gradient(180deg, var(--eon-red-50), var(--bg-white) 40%);
}

.offer-card--service {
  background: linear-gradient(180deg, #F5F3FF, var(--bg-white) 40%);
  border-color: #DDD6FE;
}

/* Match score badge */
.offer-card-match {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  background: var(--bg-app);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
}

.offer-card--featured .offer-card-match {
  background: var(--eon-red);
  border-color: var(--eon-red);
}
.offer-card--featured .offer-match-score { color: white; }
.offer-card--featured .offer-match-label { color: rgba(255,255,255,0.8); }

.offer-match-score {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.offer-match-label {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1;
}

/* Badge */
.offer-card-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  background: var(--border-light);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 6px;
}

.offer-card-badge--green { color: var(--green); background: #DCFCE7; }
.offer-card-badge--blue { color: var(--blue); background: #DBEAFE; }
.offer-card-badge--purple { color: #7C3AED; background: #EDE9FE; }

/* Content */
.offer-card-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  padding-right: 80px;
}

.offer-card-hook {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
  padding-right: 20px;
}

/* Metrics row */
.offer-card-metrics {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-app);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}

.offer-metric {
  flex: 1;
  text-align: center;
}

.offer-metric-value {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.3px;
}

.offer-metric-label {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

.offer-metric-divider {
  width: 1px;
  height: 28px;
  background: var(--border-light);
  flex-shrink: 0;
}

/* Tags */
.offer-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.offer-tag {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-app);
  border: 1px solid var(--border-light);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.offer-tag--green { color: var(--green); background: #F0FDF4; border-color: #BBF7D0; }
.offer-tag--blue { color: var(--blue); background: #EFF6FF; border-color: #BFDBFE; }
.offer-tag--purple { color: #7C3AED; background: #F5F3FF; border-color: #DDD6FE; }

/* CTA link */
.offer-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--eon-red);
  transition: gap 150ms ease;
}

.offer-card:hover .offer-card-cta { gap: 8px; }

/* Variants (for E.ON zawodowiec) */
.offer-card-variants {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.offer-variant {
  flex: 1;
  padding: 10px 8px;
  background: var(--bg-app);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  text-align: center;
  transition: all 150ms ease;
}

.offer-variant:hover {
  border-color: #7C3AED;
  background: #F5F3FF;
}

.offer-variant-name {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.offer-variant-price {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #7C3AED;
}

/* Current plan note */
.current-plan-note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-light);
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.current-plan-note svg { flex-shrink: 0; }
.current-plan-note strong { color: var(--text-secondary); }

/* ---- BOTTOM TAB BAR ---- */
.tab-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
  padding: 6px 8px 22px;
  z-index: 50;
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 150ms ease;
}

.tab-item span {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
}

.tab-item--active {
  color: var(--eon-red);
}

.tab-item--active span { font-weight: 600; }

/* ---- ANIMATION STAGGER ---- */
.offer-card:nth-child(1) { transition-delay: 0ms; }
.offer-card:nth-child(2) { transition-delay: 80ms; }
.offer-card:nth-child(3) { transition-delay: 160ms; }
.offer-card:nth-child(4) { transition-delay: 240ms; }
