body {
  background: linear-gradient(135deg, #f7faff 60%, #e3edfa 100%);
  min-height: 100vh;
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #222;
}
.settings-header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 32px 32px 18px 32px;
}
.settings-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: #1976f9;
  letter-spacing: 1px;
}
.settings-back-btn {
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 12px #e3edfa;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
  margin-right: 18px;
}
.settings-back-btn:hover {
  background: #e3edfa;
  box-shadow: 0 4px 18px #e3edfa;
}
.settings-main {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 60vh;
}
.tg-settings-form {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 32px rgba(45,127,249,0.10);
  margin-top: 32px;
  padding: 32px 28px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.tg-bots-block {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.tg-bot {
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tg-bot label {
  font-size: 0.98rem;
  color: #1976f9;
  margin-bottom: 2px;
}
.tg-bot input {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #e3edfa;
  font-size: 1rem;
  margin-bottom: 8px;
}
.tg-actions-block label {
  font-size: 1.05rem;
  color: #1976f9;
  margin-bottom: 8px;
  display: block;
}
.tg-actions-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 6px;
}
.tg-actions-list label {
  font-size: 1rem;
  color: #333;
  background: #f7faff;
  border-radius: 8px;
  padding: 6px 14px 6px 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s;
}
.tg-actions-list label:hover {
  background: #e3edfa;
}
.tg-action-checkbox {
  accent-color: #1976f9;
  width: 18px;
  height: 18px;
}
.tg-save-btn {
  background: linear-gradient(90deg, #1976f9 60%, #43a047 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 0;
  font-size: 1.08rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  box-shadow: 0 2px 12px #e3edfa;
  transition: background 0.2s, box-shadow 0.2s;
}
.tg-save-btn:hover {
  background: linear-gradient(90deg, #43a047 60%, #1976f9 100%);
  box-shadow: 0 4px 18px #e3edfa;
}
.tg-status {
  margin-top: 12px;
  font-size: 1rem;
  color: #1976f9;
  min-height: 22px;
}
.tg-panel-toggle {
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 12px #e3edfa;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
  margin: 0 auto 24px auto;
  outline: none;
}
.tg-panel-toggle:hover {
  background: #e3edfa;
  box-shadow: 0 4px 18px #e3edfa;
}
.tg-panel {
  transition: max-height 0.4s cubic-bezier(.4,2,.6,1), opacity 0.3s;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin: 0 auto;
}
.tg-panel.open {
  max-height: 1200px;
  opacity: 1;
  margin-top: 0;
}
.tg-changepass-block {
  margin-top: 38px;
  background: #f7faff;
  border-radius: 14px;
  box-shadow: 0 2px 10px #e3edfa;
  padding: 22px 18px 18px 18px;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}
.tg-changepass-block h4 {
  margin: 0 0 12px 0;
  font-size: 1.12rem;
  color: #1976f9;
  text-align: center;
}
.tg-changepass-row {
  margin-bottom: 10px;
}
.tg-changepass-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tg-changepass-form label {
  font-size: 1rem;
  color: #333;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
#tg-changepass-phone {
  background: #e3edfa;
  border: 1px solid #b3c6e6;
  border-radius: 7px;
  padding: 7px 12px;
  font-size: 1rem;
  color: #1976f9;
  font-weight: 600;
}
#tg-changepass1, #tg-changepass2 {
  padding: 8px 12px;
  border-radius: 7px;
  border: 1px solid #e0e4ea;
  background: #fff;
  font-size: 1rem;
}
.tg-changepass-form button {
  background: linear-gradient(90deg, #1976f9 60%, #43a047 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 0;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  box-shadow: 0 2px 12px #e3edfa;
  transition: background 0.2s, box-shadow 0.2s;
}
.tg-changepass-form button:hover {
  background: linear-gradient(90deg, #43a047 60%, #1976f9 100%);
  box-shadow: 0 4px 18px #e3edfa;
}
.tg-changepass-hint {
  color: #e53935;
  font-size: 1rem;
  margin-top: 4px;
  text-align: left;
  min-height: 18px;
} 