﻿:root {
  color-scheme: dark;
  --bg: #111923;
  --bg-soft: #1a2532;
  --card: #17212b;
  --card-bright: #1f2c3a;
  --text: #e8eef5;
  --muted: #9fb2c8;
  --accent: #2d7ff9;
  --success: #3ad27a;
  --danger: #ff6868;
  --warning: #ffb34d;
  --badge: #1f4a37;
  --badge-text: #32d07a;
  --shadow: 0 18px 35px rgba(8, 12, 18, 0.45);
  --radius: 20px;
  font-family: "Manrope", "Segoe UI", sans-serif;
}

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

body {
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(45, 127, 249, 0.15), transparent 50%),
    radial-gradient(circle at 80% 10%, rgba(58, 210, 122, 0.12), transparent 55%),
    var(--bg);
  color: var(--text);
  display: flex;
  justify-content: center;
  padding: 24px 16px 32px;
}

.no-scroll {
  overflow: hidden;
}

.app {
  width: min(420px, 100%);
  background: linear-gradient(180deg, rgba(23, 33, 43, 0.97), rgba(17, 25, 35, 0.92));
  border-radius: 28px;
  padding: 18px 18px 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.app__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app__eyebrow {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.app__title {
  font-size: 1.4rem;
  font-weight: 700;
}

.app__actions {
  display: flex;
  gap: 10px;
}

.icon-btn {
  border: none;
  background: var(--card-bright);
  color: var(--muted);
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.icon-btn:hover {
  transform: translateY(-1px);
  background: #243242;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile__name {
  font-weight: 700;
  font-size: 1.05rem;
}

.profile__id {
  color: var(--muted);
  font-size: 0.9rem;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.list-item {
  border: none;
  background: var(--card);
  padding: 14px;
  border-radius: 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.list-item:hover {
  background: var(--card-bright);
  transform: translateY(-1px);
}

.list-item__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.list-item__title {
  font-weight: 600;
  font-size: 1rem;
}

.list-item__subtitle {
  color: var(--muted);
  font-size: 0.88rem;
}

.list-item__badge {
  background: var(--badge);
  color: var(--badge-text);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
}

.icon-circle {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #0b131b;
}

.icon-circle svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.icon-circle--blue {
  background: linear-gradient(135deg, #4aa3ff, #2b6ded);
  color: #0c1a2b;
}

.icon-circle--green {
  background: linear-gradient(135deg, #3ae58c, #1aa35a);
  color: #0b2518;
}

.icon-circle--red {
  background: linear-gradient(135deg, #ff8181, #f44b4b);
  color: #2b0e0e;
}

.icon-circle--orange {
  background: linear-gradient(135deg, #ffbc5b, #ff8a34);
  color: #2b1605;
}

.app__footer {
  margin-top: auto;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.app__version {
  font-weight: 600;
  color: #b8c7d8;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 16, 23, 0.9);
  backdrop-filter: blur(6px);
  display: none;
  z-index: 40;
}

.overlay--active {
  display: block;
}

.overlay__surface.app {
  width: 100%;
  height: 100%;
  border-radius: 0;
  padding: 18px 18px 24px;
  overflow-y: auto;
  box-shadow: none;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 0.85rem;
}

.form-field input {
  background: var(--card);
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 0.95rem;
  transition: border 0.2s ease, background 0.2s ease;
}

.form-field select {
  background: var(--card);
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 0.95rem;
  transition: border 0.2s ease, background 0.2s ease;
}

.toggle-single {
  border: none;
  border-radius: 12px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
  background: var(--card);
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.toggle-single--on {
  background: linear-gradient(135deg, #4aa3ff, #2b6ded);
  color: #071424;
}

.toggle-single--off {
  background: rgba(159, 178, 200, 0.18);
  color: #b8c7d8;
}

.form-field input:focus {
  outline: none;
  border-color: rgba(74, 163, 255, 0.6);
  background: var(--card-bright);
}

.form-field select:focus {
  outline: none;
  border-color: rgba(74, 163, 255, 0.6);
  background: var(--card-bright);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-note {
  color: #9aaec6;
  font-size: 0.78rem;
  line-height: 1.4;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 6px;
}

.btn {
  border: none;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, #4aa3ff, #2b6ded);
  color: #071424;
}

.btn--ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(159, 178, 200, 0.3);
}

@media (max-width: 420px) {
  body {
    padding: 16px 12px 28px;
  }

  .app {
    border-radius: 22px;
    padding: 16px 14px 22px;
  }

  .icon-circle {
    width: 38px;
    height: 38px;
  }
}
