.tool-hero {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  padding: 5rem 1.5rem 3rem;
  margin-top: 68px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.tool-hero::before {
  content: ''; position: absolute;
  width: 400px; height: 400px; border-radius: 50%;
  background: rgba(255,255,255,0.06); top: -150px; right: -100px;
}
.tool-hero::after {
  content: ''; position: absolute;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(255,255,255,0.04); bottom: -100px; left: -50px;
}
.tool-hero-content { position: relative; z-index: 1; }
.tool-hero-icon {
  width: 72px; height: 72px; border-radius: 20px;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; margin: 0 auto 1.25rem;
  border: 1px solid rgba(255,255,255,0.2);
}
.tool-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800; color: white;
  letter-spacing: -1px; margin-bottom: 0.75rem;
}
.tool-hero p { font-size: 1rem; color: rgba(255,255,255,0.78); max-width: 480px; margin: 0 auto; }
.tool-main { max-width: 900px; margin: 0 auto; padding: 2.5rem 1.5rem 5rem; }

.pomodoro-layout { display: grid; grid-template-columns: 1fr 360px; gap: 1.5rem; align-items: start; }

/* Timer Card */
.timer-card {
  background: white; border-radius: var(--radius-lg);
  border: 1px solid var(--border); box-shadow: var(--shadow-md);
  overflow: hidden;
}

.timer-card-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: space-between;
}
.timer-mode-tabs { display: flex; gap: 0.375rem; }
.timer-mode-tab {
  padding: 0.4rem 0.875rem;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: transparent;
  font-size: 0.78rem; font-weight: 600; font-family: 'Inter', sans-serif;
  color: var(--text-muted); cursor: pointer;
  transition: var(--transition);
}
.timer-mode-tab.active {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  border-color: transparent; color: white;
}
.timer-mode-tab.active.break-mode {
  background: linear-gradient(135deg, #10b981, #059669);
}
.timer-session-label {
  font-size: 0.78rem; font-weight: 600; color: var(--text-muted);
  display: flex; align-items: center; gap: 0.35rem;
}
.session-dot { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; display: inline-block; }
.session-dot.break { background: #10b981; }

.timer-body { padding: 2.5rem 2rem; display: flex; flex-direction: column; align-items: center; gap: 2rem; }

/* Ring */
.timer-ring-wrap { position: relative; width: 240px; height: 240px; }
.timer-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.timer-track { fill: none; stroke: var(--border); stroke-width: 10; }
.timer-progress {
  fill: none; stroke: #ef4444; stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 690;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear, stroke 0.5s;
}
.timer-progress.break-mode { stroke: #10b981; }
.timer-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.25rem;
}
.timer-display {
  font-size: 3.5rem; font-weight: 900;
  letter-spacing: -3px; color: var(--text);
  line-height: 1; font-variant-numeric: tabular-nums;
}
.timer-phase { font-size: 0.78rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* Controls */
.timer-controls { display: flex; align-items: center; gap: 0.875rem; }
.btn-timer-main {
  padding: 0.875rem 2.5rem;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: white; border: none; border-radius: 100px;
  font-size: 1rem; font-weight: 700; font-family: 'Inter', sans-serif;
  cursor: pointer; transition: var(--transition);
  box-shadow: 0 4px 12px rgba(239,68,68,0.35);
  min-width: 140px;
}
.btn-timer-main:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(239,68,68,0.45); }
.btn-timer-main:active { transform: translateY(0); }
.btn-timer-main.break-mode { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 4px 12px rgba(16,185,129,0.35); }
.btn-timer-main.break-mode:hover { box-shadow: 0 6px 16px rgba(16,185,129,0.45); }

.btn-timer-secondary {
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--border);
  background: white; color: var(--text-muted);
  font-size: 1.1rem; cursor: pointer;
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.btn-timer-secondary:hover { border-color: var(--text-muted); color: var(--text); background: var(--bg); }

/* Dots sessions */
.session-dots { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.session-dot-item {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border); transition: var(--transition);
}
.session-dot-item.done { background: #ef4444; }
.session-dot-item.done.break { background: #10b981; }

/* Settings panel */
.settings-panel {
  background: white; border-radius: var(--radius-lg);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  overflow: hidden;
}
.settings-panel-header {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center; gap: 0.75rem;
}
.settings-panel-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(239,68,68,0.1);
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.settings-panel-title { font-size: 0.9rem; font-weight: 700; color: var(--text); }
.settings-panel-body { padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem; }

.setting-row { display: flex; flex-direction: column; gap: 0.4rem; }
.setting-label { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; }
.setting-control { display: flex; align-items: center; gap: 0.75rem; }
.setting-input {
  flex: 1; padding: 0.6rem 0.75rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 700; font-family: 'Inter', sans-serif;
  color: var(--text); outline: none;
  transition: var(--transition); background: var(--bg);
  text-align: center;
}
.setting-input:focus { border-color: #ef4444; background: white; box-shadow: 0 0 0 3px rgba(239,68,68,0.1); }
.setting-unit { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); white-space: nowrap; }

.setting-divider { border: none; border-top: 1px solid var(--border-light); margin: 0.25rem 0; }

/* Stats panel */
.stats-panel {
  background: white; border-radius: var(--radius-lg);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  overflow: hidden; margin-top: 0;
}
.stats-panel-header {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center; gap: 0.75rem;
}
.stats-panel-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(239,68,68,0.1);
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.stats-panel-title { font-size: 0.9rem; font-weight: 700; color: var(--text); }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; }
.stat-item {
  padding: 1.1rem; text-align: center;
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.stat-item:nth-child(even) { border-right: none; }
.stat-item:nth-last-child(-n+2) { border-bottom: none; }
.stat-value { font-size: 1.5rem; font-weight: 900; color: var(--text); letter-spacing: -0.5px; display: block; }
.stat-label { font-size: 0.7rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; display: block; margin-top: 2px; }

.notif-toggle {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--border-light);
}
.notif-label { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
.notif-switch-wrap { display: flex; align-items: center; gap: 0.5rem; }
.notif-switch-label { font-size: 0.78rem; color: var(--text-light); }
.toggle-switch {
  position: relative; width: 40px; height: 22px; cursor: pointer;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0;
  background: #cbd5e1; border-radius: 100px;
  transition: var(--transition);
}
.toggle-slider::before {
  content: ''; position: absolute;
  width: 16px; height: 16px; border-radius: 50%;
  left: 3px; top: 3px; background: white;
  transition: var(--transition); box-shadow: var(--shadow-sm);
}
.toggle-switch input:checked + .toggle-slider { background: #ef4444; }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(18px); }

@media (max-width: 720px) {
  .pomodoro-layout { grid-template-columns: 1fr; }
  .timer-ring-wrap { width: 200px; height: 200px; }
  .timer-display { font-size: 3rem; }
}
