* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-primary: #0f0f11;
  --bg-secondary: #1a1a1f;
  --bg-tertiary: #242429;
  --accent: #6366f1;
  --text-primary: #e8e8ed;
  --text-secondary: #9898a0;
  --text-muted: #6b6b73;
  --border: #2a2a30;
  --success: #22c55e;
  --error: #ef4444;
}

body {
  font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 12px 16px;
  padding-top: calc(12px + env(safe-area-inset-top, 20px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 15, 17, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-title { font-size: 18px; font-weight: 600; }
.header-btn {
  font-size: 13px;
  padding: 6px 16px;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}
.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover { background: #4f46e5; }

.main-content {
  padding: 80px 16px;
  padding-bottom: calc(100px + env(safe-area-inset-bottom, 20px));
}

.section {
  background: var(--bg-secondary);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}
.section-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}
.section-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.setting-item:last-child { border-bottom: none; }
.setting-label {
  font-size: 15px;
  color: var(--text-primary);
}
.setting-control {
  display: flex;
  align-items: center;
  gap: 8px;
}
.setting-input {
  width: 80px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 10px;
  border-radius: 10px;
  font-size: 16px;
  text-align: center;
  outline: none;
}
.setting-input:focus { border-color: var(--accent); }
.setting-input[type="time"] {
  width: 120px;
  font-family: inherit;
}

.stepper-btn {
  width: 36px;
  height: 36px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.stepper-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.toggle-switch {
  width: 50px;
  height: 28px;
  background: var(--bg-tertiary);
  border-radius: 14px;
  position: relative;
  cursor: pointer;
  transition: background 0.3s;
}
.toggle-switch.on { background: var(--accent); }
.toggle-slider {
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: left 0.3s;
}
.toggle-switch.on .toggle-slider { left: 24px; }

.danger-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
}
.danger-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--error);
  color: var(--error);
}
.danger-btn:not(:last-child) { margin-bottom: 10px; }
.btn-icon { font-size: 20px; }
.btn-text { font-weight: 500; }

.hint-card {
  background: rgba(99, 102, 241, 0.08);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.hint-icon {
  font-size: 20px;
  flex-shrink: 0;
}
.hint-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}
