/* *, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
} */

/* body {
  font-family: 'Inter', system-ui, Avenir, Helvetica, Arial, sans-serif;
  background-color: #EFF6FF;
  background-image:
    radial-gradient(ellipse at 15% 15%, rgba(59,130,246,0.1) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 85%, rgba(29,78,216,0.08) 0%, transparent 55%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
} */

.page-wrapper {
  width: 100%;
  max-width: 460px;
}

/* ===== CARD ===== */
.card {
  background: #0F172A !important;
  border-radius: 24px !important;
  border: 1px solid rgba(59, 130, 246, 0.15) !important;
  padding: 28px 32px 32px !important;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 32px 80px rgba(0, 0, 0, 0.35),
    0 8px 24px rgba(59, 130, 246, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

/* ===== HEADER ===== */
.card-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.window-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.wd {
  width: 11px;
  height: 11px;
  border-radius: 50% !important;
  display: block;
}

.wd-red    { background: #FF5F57;  }
.wd-yellow { background: #FFBD2E; }
.wd-green  { background: #28C840; }

.card-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #94A3B8;
  text-transform: uppercase;
}

.header-spacer {
  width: 44px;
}

/* ===== RING ===== */
.ring-wrapper {
  position: relative !important;
  width: 256px !important;
  height: 256px !important;
}

.ring-svg {
  width: 100% !important;
  height: 100% !important;
  transform: rotate(-90deg) !important;
}

.ring-track {
  fill: none !important;
  stroke: rgba(255,255,255,0.06) !important;
  stroke-width: 10 !important;
}

.ring-progress {
  fill: none !important;
  stroke-width: 10 !important;
  stroke-linecap: round !important;
  transition: stroke-dashoffset 1s linear !important;
  filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.65)) !important;
}

.ring-content {
  position: absolute !important;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.time-display {
  font-size: 52px !important;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #F1F5F9 !important;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 20px rgba(59, 130, 246, 0.25) !important;
}

.status-label {
  font-size: 13px !important;
  font-weight: 500;
  color: #94A3B8 !important;
  letter-spacing: 0.03em;
}

/* ===== PRESETS ===== */
.presets-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.preset-btn {
  padding: 8px 16px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(255,255,255,0.07) !important;
  background: #1E293B !important;
  color: #94A3B8 !important;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer !important;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.preset-btn:hover {
  background: #293548 !important;
  color: #F1F5F9 !important;
  border-color: rgba(59, 130, 246, 0.3) !important;
  transform: translateY(-1px) !important;
}

.preset-btn.active {
  background: linear-gradient(135deg, #1E40AF 0%, #3B82F6 100%) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.38);
}

.preset-btn:active {
  transform: translateY(0) scale(0.97);
}

button:focus-visible {
  outline: 2px solid #3B82F6 !important;
  outline-offset: 2px;
}

/* ===== CUSTOM ===== */
.custom-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.custom-toggle-btn {
  padding: 8px 32px !important;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.07) !important;
    background: #0000ff29 !important;
  color: white;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.custom-toggle-btn:hover {
  background: var(--btn-hover);
  color: white !important;
  border-color: rgba(59, 130, 246, 0.3);
}

.custom-toggle-btn.active {
  background: linear-gradient(135deg, var(--blue-deeper) 0%, var(--blue-mid) 100%);
  border-color: transparent;
  color: #fff !important;
}

.custom-input-row {
  display: none;
  gap: 10px;
  align-items: center;
}

.custom-input-row.visible {
  display: flex;
  animation: fadeSlideIn 0.2s ease;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.custom-input {
  width: 148px;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: var(--btn-bg);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  /* -moz-appearance: textfield; */
}

.custom-input::-webkit-outer-spin-button,
.custom-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.custom-input::placeholder {
  color: var(--text-muted);
  font-size: 12.5px;
}

.custom-input:focus {
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.set-btn {
  padding: 9px 20px !important;
  border-radius: 10px !important;
  border: none !important;
  background: linear-gradient(135deg, var(--blue-deeper) 0%, var(--blue-mid) 100%) !important;
  color: #fff !important;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.set-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.42);
}

.set-btn:active {
  transform: translateY(0);
}

/* ===== CONTROLS ===== */
.controls-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.ctrl-btn {
  border: none !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-family: inherit;
}

.ctrl-btn svg {
  display: block;
}

.ctrl-btn--secondary {
  width: 48px;
  height: 48px;
  border-radius: 50% !important;
  background: var(--btn-bg);
  color: var(--text-secondary);
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.ctrl-btn--secondary svg {
  width: 18px;
  height: 18px;
}

.ctrl-btn--secondary:hover {
  background: var(--btn-hover);
  color: var(--text-primary);
  border-color: rgba(59, 130, 246, 0.25);
  transform: scale(1.06);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.ctrl-btn--secondary:active {
  transform: scale(0.94);
}

.ctrl-btn--primary {
  width: 68px;
  height: 68px;
  border-radius: 50% !important;
  background: linear-gradient(140deg, var(--blue-light) 0%, var(--blue-mid) 45%, var(--blue-dark) 100%) !important;
  color: #fff !important;
  box-shadow:
    0 8px 28px rgba(59, 130, 246, 0.5),
    0 2px 8px rgba(0,0,0,0.25),
    0 0 0 6px rgba(59, 130, 246, 0.1);
}

.ctrl-btn--primary svg {
  width: 22px;
  height: 22px;
}

.ctrl-btn--primary:hover {
  transform: scale(1.06);
  box-shadow:
    0 12px 36px rgba(59, 130, 246, 0.6),
    0 2px 8px rgba(0,0,0,0.25),
    0 0 0 8px rgba(59, 130, 246, 0.14);
}

.ctrl-btn--primary:active {
  transform: scale(0.96);
}

/* ===== COMPLETION PULSE ===== */
@keyframes pulse {
  0%   { box-shadow: 0 8px 28px rgba(59,130,246,0.5), 0 0 0 6px rgba(59,130,246,0.1); }
  50%  { box-shadow: 0 12px 40px rgba(59,130,246,0.7), 0 0 0 14px rgba(59,130,246,0.2); }
  100% { box-shadow: 0 8px 28px rgba(59,130,246,0.5), 0 0 0 6px rgba(59,130,246,0.1); }
}

.ctrl-btn--primary.pulsing {
  animation: pulse 1s ease-in-out infinite;
}

/* ===== SESSIONS ===== */
.sessions-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sessions-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.session-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.dot {
  width: 9px !important;
  height: 9px !important;
  border-radius: 50% !important;
  background: transparent !important;
  border: 1.5px solid var(--text-muted);
  display: block;
  transition: all 0.35s ease;
}

.dot.completed {
  background: var(--blue-mid);
  border-color: var(--blue-mid);
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.55);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 520px) {
  .card {
    padding: 22px 18px 26px;
    gap: 18px;
    border-radius: 20px;
  }

  .ring-wrapper {
    width: 218px;
    height: 218px;
  }

  .time-display {
    font-size: 42px;
  }

  .preset-btn {
    padding: 7px 12px;
    font-size: 12px;
  }

  .ctrl-btn--primary {
    width: 60px;
    height: 60px;
  }

  .ctrl-btn--secondary {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 360px) {
  .ring-wrapper {
    width: 188px;
    height: 188px;
  }

  .time-display {
    font-size: 36px;
  }

  .preset-btn {
    padding: 6px 10px;
    font-size: 11px;
  }

  .controls-row {
    gap: 14px;
  }
}
