/* ─── URGES PAGE ─── */
.urge-main {
  max-width: 780px;
  margin: 0 auto;
  padding: 80px 1.25rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* ─── EMERGENCY BANNER ─── */
.emergency-section {
  text-align: center;
  padding: 2.5rem 1.5rem;
  position: relative;
  border-radius: 20px;
  background: radial-gradient(ellipse at center, rgba(14,165,233,0.08) 0%, transparent 70%);
  overflow: hidden;
}

.emergency-pulse {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  border: 1px solid rgba(14,165,233,0.15);
  animation: ePulse 3s ease-in-out infinite;
}
@keyframes ePulse {
  0%, 100% { border-color: rgba(14,165,233,0.15); box-shadow: inset 0 0 30px rgba(14,165,233,0.03); }
  50%      { border-color: rgba(14,165,233,0.35); box-shadow: inset 0 0 60px rgba(14,165,233,0.06); }
}

.emergency-title {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 700;
  background: linear-gradient(135deg, #7dd3fc, #38bdf8, #0ea5e9);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.75rem;
}

.emergency-sub {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 500px;
  margin: 0 auto 1rem;
}
.emergency-sub strong { color: var(--blue-2); }

.streak-remind {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.25);
  color: #f59e0b;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* ─── SECTION HEADINGS ─── */
.section-heading {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--blue-2);
  margin-bottom: 0.3rem;
}
.section-sub {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

/* ─── BREATHING EXERCISE ─── */
.breathe-section {
  text-align: center;
}

.breathe-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.breathe-ring {
  position: relative;
  width: 200px;
  height: 200px;
}

.breathe-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.breathe-track {
  fill: none;
  stroke: rgba(14,165,233,0.1);
  stroke-width: 5;
}

.breathe-progress {
  fill: none;
  stroke: var(--blue-2);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 534.07;
  stroke-dashoffset: 534.07;
  transition: stroke-dashoffset 0.3s linear, stroke 0.4s;
  filter: drop-shadow(0 0 8px rgba(56,189,248,0.4));
}

.breathe-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.breathe-text {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--blue-2);
  letter-spacing: 0.08em;
  transition: color 0.3s;
}

.breathe-count {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--blue-3);
  font-variant-numeric: tabular-nums;
  margin-top: 0.2rem;
}

.breathe-btn {
  padding: 0.7rem 2rem;
  border-radius: 50px;
  border: 1px solid rgba(14,165,233,0.3);
  background: rgba(14,165,233,0.08);
  color: var(--blue-2);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.breathe-btn:hover { background: rgba(14,165,233,0.16); }
.breathe-btn.active {
  background: rgba(239,68,68,0.1);
  border-color: rgba(239,68,68,0.4);
  color: #ef4444;
}

.breathe-cycles {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

/* breathing phase colors */
.breathe-ring.inhale .breathe-progress { stroke: #38bdf8; }
.breathe-ring.hold   .breathe-progress { stroke: #a78bfa; }
.breathe-ring.exhale .breathe-progress { stroke: #34d399; }

.breathe-ring.inhale .breathe-text { color: #38bdf8; }
.breathe-ring.hold   .breathe-text { color: #a78bfa; }
.breathe-ring.exhale .breathe-text { color: #34d399; }

/* ring scale animation */
.breathe-ring.inhale { animation: ringGrow 4s ease-in-out forwards; }
.breathe-ring.hold   { animation: none; }
.breathe-ring.exhale { animation: ringShrink 8s ease-in-out forwards; }

@keyframes ringGrow {
  from { transform: scale(0.9); } to { transform: scale(1.1); }
}
@keyframes ringShrink {
  from { transform: scale(1.1); } to { transform: scale(0.9); }
}

/* ─── PERSONALIZED TIPS ─── */
.tips-section { }

.tips-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tip-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(7,21,37,0.7);
  border: 1px solid rgba(14,165,233,0.12);
  border-radius: 12px;
  transition: border-color 0.3s;
}
.tip-card:hover { border-color: rgba(14,165,233,0.3); }

.tip-icon { font-size: 1.5rem; flex-shrink: 0; }

.tip-text {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
}
.tip-text strong { color: var(--blue-2); }

.placeholder-tip { opacity: 0.5; }

/* ─── EMERGENCY ACTIONS GRID ─── */
.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.85rem;
}

.action-card {
  padding: 1.25rem;
  background: rgba(7,21,37,0.7);
  border: 1px solid rgba(14,165,233,0.12);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.25s;
}
.action-card:hover {
  border-color: rgba(14,165,233,0.35);
  background: rgba(14,165,233,0.06);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(14,165,233,0.08);
}

.action-icon { font-size: 2rem; margin-bottom: 0.6rem; }
.action-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.action-desc {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ─── URGE SURF TIMER ─── */
.surf-section { text-align: center; }

.surf-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto;
}

.surf-display {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--blue-2);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 30px rgba(56,189,248,0.4);
}

.surf-bar-wrap {
  width: 100%;
  height: 6px;
  border-radius: 6px;
  background: rgba(14,165,233,0.1);
  overflow: hidden;
}

.surf-bar {
  height: 100%;
  width: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, #ef4444 0%, #f59e0b 40%, #34d399 100%);
  transform-origin: right;
  transition: transform 1s linear;
}

.surf-label {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.surf-btn {
  padding: 0.7rem 2rem;
  border-radius: 50px;
  border: 1px solid rgba(52,211,153,0.3);
  background: rgba(52,211,153,0.08);
  color: #34d399;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.surf-btn:hover { background: rgba(52,211,153,0.16); }
.surf-btn.active {
  background: rgba(239,68,68,0.1);
  border-color: rgba(239,68,68,0.4);
  color: #ef4444;
}

/* ─── QUOTES ─── */
.quotes-section { text-align: center; }

.quote-card {
  padding: 2rem 1.5rem;
  background: rgba(7,21,37,0.7);
  border: 1px solid rgba(14,165,233,0.12);
  border-radius: 16px;
  margin-bottom: 1rem;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.quote-text {
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.7;
  font-style: italic;
  max-width: 550px;
}

.quote-attr {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.quote-btn {
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  border: 1px solid rgba(14,165,233,0.2);
  background: rgba(14,165,233,0.05);
  color: var(--muted);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.quote-btn:hover { color: var(--blue-2); background: rgba(14,165,233,0.1); }

/* ─── COLD SHOWER MODAL ─── */
.cold-modal { text-align: center; }
.cold-icon { font-size: 3rem; margin-bottom: 0.5rem; }
.cold-timer {
  font-size: 4rem;
  font-weight: 700;
  color: #38bdf8;
  font-variant-numeric: tabular-nums;
  margin: 1rem 0;
  text-shadow: 0 0 30px rgba(56,189,248,0.5);
}
.cold-actions {
  display: flex; gap: 0.75rem; justify-content: center; margin-top: 1rem;
}
.cold-start {
  background: rgba(56,189,248,0.12) !important;
  border-color: rgba(56,189,248,0.4) !important;
  color: #38bdf8 !important;
}
.cold-start:hover { background: rgba(56,189,248,0.2) !important; }

/* ─── MOBILE ─── */
@media (max-width: 640px) {
  .urge-main { padding: 75px 1rem 4rem; gap: 2.5rem; }
  .actions-grid { grid-template-columns: 1fr 1fr; }
  .emergency-title { font-size: 1.6rem; }
  .surf-display { font-size: 2.5rem; }
}
@media (max-width: 400px) {
  .actions-grid { grid-template-columns: 1fr; }
}
