/* ===== SETTINGS SCREEN ===== */

#settings-screen {
  flex: 1;
  display: none;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #0b0f14;
}

.settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid #1e2530;
  background: #0e131a;
  flex-shrink: 0;
}

.settings-header h2 {
  margin: 0;
  color: var(--accent-color);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 2px;
}

.settings-back-btn {
  background: none;
  border: 1px solid #2a3040;
  border-radius: 6px;
  color: #aaa;
  cursor: pointer;
  font-size: 13px;
  padding: 6px 14px;
  font-family: Arial, sans-serif;
}

.settings-back-btn:hover {
  border-color: var(--accent-color);
  color: white;
}

.settings-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.settings-nav {
  width: 180px;
  min-width: 180px;
  border-right: 1px solid #1e2530;
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #0e131a;
}

.settings-nav-item {
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  color: #aaa;
}

.settings-nav-item:hover {
  background: #1a2030;
  color: white;
}

.settings-nav-item.active {
  background: #1a2d4a;
  color: var(--accent-color);
  font-weight: 600;
}

.settings-content {
  flex: 1;
  overflow-y: auto;
  padding: 28px 36px;
}

.settings-panel {
  display: none;
  max-width: 560px;
}

.settings-panel.active {
  display: block;
}

.settings-section-title {
  font-size: 18px;
  font-weight: 700;
  color: white;
  margin: 0 0 24px;
  letter-spacing: 1px;
}

.settings-field {
  margin-bottom: 18px;
}

.settings-field label {
  display: block;
  font-size: 13px;
  color: #aaa;
  margin-bottom: 6px;
  font-weight: 500;
}

.settings-field input,
.settings-field select {
  width: 100%;
  padding: 10px 12px;
  background: #0e131a;
  border: 1px solid #2a3040;
  border-radius: 6px;
  color: white;
  font-size: 14px;
  font-family: Arial, sans-serif;
}

.settings-field input:focus,
.settings-field select:focus {
  outline: none;
  border-color: var(--accent-color);
}

.settings-field input:disabled,
.settings-field input[readonly] {
  color: #666;
  cursor: not-allowed;
  background: #0a0d12;
}

.settings-field select option {
  background: #1a2030;
  color: white;
}

.settings-btn {
  padding: 10px 20px;
  background: var(--accent-color);
  border: none;
  border-radius: 6px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  font-family: Arial, sans-serif;
}

.settings-btn:hover {
  background: #1a6fd8;
}

.settings-btn.secondary {
  background: #1a2030;
  border: 1px solid #2a3040;
  color: #ccc;
}

.settings-btn.secondary:hover {
  background: #222d3f;
  color: white;
  border-color: var(--accent-color);
}

.settings-btn.danger {
  background: #2a1010;
  border: 1px solid #6b2222;
  color: #ff8b8b;
}

.settings-btn.danger:hover {
  background: #3a1515;
  border-color: #ff6b6b;
  color: #ffaaaa;
}

.settings-message {
  font-size: 13px;
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 6px;
  min-height: 20px;
}

.settings-message.success {
  color: #90ee90;
  background: #1a2a1a;
  border: 1px solid #2a4a2a;
}

.settings-message.error {
  color: #ff8b8b;
  background: #2a1a1a;
  border: 1px solid #4a2a2a;
}

.settings-divider {
  border: none;
  border-top: 1px solid #1e2530;
  margin: 24px 0;
}

/* ===== BILLING CARD ===== */

.billing-plan-card {
  background: #0e131a;
  border: 1px solid #2a3040;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 20px;
}

.billing-plan-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 8px;
}

.billing-plan-detail {
  font-size: 13px;
  color: #aaa;
  margin: 4px 0;
}

/* ===== SECURITY ACTIONS ===== */

.security-action {
  background: #0e131a;
  border: 1px solid #2a3040;
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 16px;
}

.security-action-title {
  font-size: 14px;
  font-weight: 600;
  color: white;
  margin-bottom: 4px;
}

.security-action-desc {
  font-size: 13px;
  color: #888;
  margin-bottom: 12px;
}

/* ===== PREFERENCES TOGGLES ===== */

.pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid #1e2530;
}

.pref-row:last-child {
  border-bottom: none;
}

.pref-label {
  font-size: 14px;
  color: #ccc;
}

.pref-desc {
  font-size: 12px;
  color: #666;
  margin-top: 2px;
}

.pref-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.pref-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.pref-toggle-slider {
  position: absolute;
  inset: 0;
  background: #2a3040;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.pref-toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #666;
  border-radius: 50%;
  transition: transform 0.2s, background 0.2s;
}

.pref-toggle input:checked + .pref-toggle-slider {
  background: rgba(45, 140, 255, 0.25);
}

.pref-toggle input:checked + .pref-toggle-slider::before {
  transform: translateX(20px);
  background: var(--accent-color);
}

/* ===== EMAIL VERIFICATION SCREEN ===== */

#verification-screen {
  flex: 1;
  display: none;
  justify-content: center;
  align-items: center;
}

.verification-box {
  background: #111;
  padding: 40px;
  border-radius: 12px;
  width: 400px;
  border: 1px solid #1e2530;
  text-align: center;
}

.verification-box h2 {
  margin: 0 0 8px;
  color: var(--accent-color);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 2px;
}

.verification-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.verification-box p {
  color: #aaa;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 20px;
}

.verification-email-display {
  background: #0e131a;
  border: 1px solid #2a3040;
  border-radius: 6px;
  padding: 10px 14px;
  color: var(--accent-color);
  font-size: 14px;
  margin-bottom: 24px;
  word-break: break-all;
}

.verification-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#verification-message {
  font-size: 13px;
  min-height: 18px;
  color: #90ee90;
}

/* ===== SETTINGS SIDEBAR BUTTON ===== */

.sidebar-settings-btn {
  width: 100%;
  padding: 8px 10px;
  background: transparent;
  border: 1px solid #1e2530;
  border-radius: 6px;
  color: #888;
  cursor: pointer;
  font-size: 13px;
  text-align: left;
  margin-top: 6px;
  font-family: Arial, sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-settings-btn:hover {
  background: #1a2030;
  border-color: #2a3040;
  color: #ccc;
}
