:root {
  --bg-primary: #0a0e14;
  --bg-card: #111318;
  --bg-input: #0d1117;
  --border-color: rgba(255, 255, 255, 0.08);
  --text-primary: #fff;
  --text-secondary: rgba(255, 255, 255, 0.5);
  --accent-green: #10b981;
  --accent-cyan: #06b6d4;
  --accent-red: #ef4444;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  padding-bottom: env(safe-area-inset-bottom);
}

.header {
  display: flex;
  align-items: center;
  padding: 1rem;
  position: sticky;
  top: 0;
  background: var(--bg-primary);
  z-index: 10;
  border-bottom: 1px solid var(--border-color);
}

.back-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
}

.header-title {
  flex: 1;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  margin-right: 40px;
}

.main-content {
  padding: 1.5rem 1rem;
  max-width: 480px;
  margin: 0 auto;
}

.info-box {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 0.75rem;
}

.info-box svg {
  flex-shrink: 0;
  color: var(--accent-orange);
}

.info-box p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

.section-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 1.5rem 0 0.75rem;
}

.setting-item {
  background: rgba(13, 17, 23, 0.9) !important;
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.setting-info {
  flex: 1;
}

.setting-info h3 {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.setting-info p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.toggle-switch {
  position: relative;
  width: 48px;
  height: 28px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.3s;
  flex-shrink: 0;
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s;
}

.toggle-switch.active {
  background: var(--accent-green);
}

.toggle-switch.active::after {
  transform: translateX(20px);
}

.timeout-card {
  background: rgba(13, 17, 23, 0.9) !important;
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.timeout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.timeout-label {
  font-size: 0.95rem;
  font-weight: 500;
}

.timeout-value {
  font-size: 0.9rem;
  color: var(--accent-orange);
  font-weight: 600;
}

.timeout-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.timeout-option {
  padding: 0.5rem 1rem;
  background: rgba(13, 17, 23, 0.9) !important;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.timeout-option.selected {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

.lock-methods {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.lock-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(13, 17, 23, 0.9) !important;
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  cursor: pointer;
  transition: border-color 0.2s;
}

.lock-method.selected {
  border-color: var(--accent-orange);
  background: rgba(245, 158, 11, 0.05);
}

.method-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(13, 17, 23, 0.9) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.lock-method.selected .method-icon {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-orange);
}

.method-info {
  flex: 1;
}

.method-name {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.method-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.method-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lock-method.selected .method-check {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
}

.save-btn {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--accent-orange), #ea580c);
  border: none;
  border-radius: 0.75rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1.5rem;
  transition: filter 0.2s, transform 0.2s;
}

.save-btn:hover {
  filter: brightness(1.1);
}

.save-btn:active {
  transform: scale(0.98);
}

.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--accent-green);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  transition: all 0.3s;
  z-index: 100;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}