* {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      font-family: Inter, Arial, sans-serif;
    }

    :root {
      --avatar-size: 120px;
    }

    body {
      min-height: 100vh;
      background:
        radial-gradient(circle at top left, rgba(168, 85, 247, 0.35), transparent 35%),
        radial-gradient(circle at bottom right, rgba(236, 72, 153, 0.22), transparent 35%),
        linear-gradient(135deg, #090014, #130321 45%, #090014);
      color: #fff;
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 20px;
    }

    .app {
      width: 100%;
      max-width: 430px;
    }

    .logo {
      text-align: center;
      margin-bottom: 28px;
    }

    .logo-badge {
      width: 76px;
      height: 76px;
      margin: 0 auto 14px;
      border-radius: 24px;
      background: linear-gradient(135deg, #a855f7, #ec4899);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 34px;
      box-shadow: 0 18px 50px rgba(168, 85, 247, 0.45);
      transform: rotate(-6deg);
    }

    .logo h1 {
      font-size: 38px;
      line-height: 1;
      letter-spacing: -1px;
      margin-bottom: 8px;
    }

    .logo p {
      color: #c9b8dd;
      font-size: 15px;
    }

    .card {
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 28px;
      padding: 18px;
      backdrop-filter: blur(18px);
      box-shadow: 0 25px 80px rgba(0, 0, 0, 0.45);
    }

    .tabs {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
      background: rgba(0, 0, 0, 0.28);
      border-radius: 18px;
      padding: 6px;
      margin-bottom: 18px;
    }

    .tab {
      border: 0;
      border-radius: 14px;
      padding: 13px 10px;
      background: transparent;
      color: #bfaad7;
      font-size: 15px;
      font-weight: 700;
      cursor: pointer;
    }

    .tab.active {
      background: linear-gradient(135deg, #8b5cf6, #d946ef);
      color: #fff;
      box-shadow: 0 10px 24px rgba(217, 70, 239, 0.28);
    }

    .panel {
      display: none;
    }

    .panel.active {
      display: block;
      animation: fade 0.25s ease;
    }

    @keyframes fade {
      from {
        opacity: 0;
        transform: translateY(8px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .form-group {
      margin-bottom: 14px;
    }

    label {
      display: block;
      font-size: 13px;
      font-weight: 700;
      color: #dfd1f1;
      margin-bottom: 7px;
    }

    input {
      width: 100%;
      border: 1px solid rgba(255, 255, 255, 0.14);
      background: rgba(0, 0, 0, 0.28);
      color: #fff;
      border-radius: 16px;
      padding: 15px 16px;
      font-size: 16px;
      outline: none;
      transition: 0.2s;
    }

    input::placeholder {
      color: #8c7a9e;
    }

    input:focus {
      border-color: #c084fc;
      box-shadow: 0 0 0 4px rgba(192, 132, 252, 0.16);
    }

    .row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }

    .main-btn {
      width: 100%;
      border: 0;
      border-radius: 18px;
      padding: 16px;
      margin-top: 6px;
      color: #fff;
      font-size: 16px;
      font-weight: 800;
      cursor: pointer;
      background: linear-gradient(135deg, #9333ea, #ec4899);
      box-shadow: 0 16px 34px rgba(236, 72, 153, 0.28);
      transition: 0.2s;
    }

    .main-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 20px 40px rgba(236, 72, 153, 0.35);
    }

    .hint {
      margin-top: 14px;
      color: #a995be;
      font-size: 13px;
      line-height: 1.45;
      text-align: center;
    }

    .divider {
      height: 1px;
      background: rgba(255, 255, 255, 0.1);
      margin: 20px 0;
    }

    .section-title {
      font-size: 17px;
      margin-bottom: 5px;
    }

    .section-subtitle {
      font-size: 13px;
      color: #ad98c6;
      margin-bottom: 16px;
    }

    .avatar-picker {
      width: 100%;
      overflow-x: auto;
      overflow-y: hidden;
      padding: 14px 8px 12px 2px;
      scrollbar-width: thin;
      scrollbar-color: rgba(192, 132, 252, 0.7) rgba(0, 0, 0, 0.22);
    }

    .avatar-picker::-webkit-scrollbar {
      height: 8px;
    }

    .avatar-picker::-webkit-scrollbar-track {
      background: rgba(0, 0, 0, 0.22);
      border-radius: 999px;
    }

    .avatar-picker::-webkit-scrollbar-thumb {
      background: rgba(192, 132, 252, 0.7);
      border-radius: 999px;
    }

    .avatar-list {
      display: flex;
      gap: 14px;
      width: max-content;
    }

    .avatar-option {
      width: var(--avatar-size);
      height: var(--avatar-size);
      min-width: var(--avatar-size);
      border: 0;
      background: rgba(0, 0, 0, 0.28);
      border-radius: 50%;
      padding: 0;
      cursor: pointer;
      position: relative;
      overflow: visible;
      transition: 0.2s;
    }

    .avatar-option img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 50%;
      display: block;
      pointer-events: none;
      transition: 0.2s;
    }

    .avatar-option:hover {
      transform: translateY(-2px);
      box-shadow: 0 12px 26px rgba(192, 132, 252, 0.22);
    }

    .avatar-option.active {
      box-shadow:
        0 0 0 4px rgba(168, 85, 247, 0.95),
        0 0 0 8px rgba(217, 70, 239, 0.32),
        0 16px 34px rgba(168, 85, 247, 0.55);
    }

    .avatar-option.active img {
      filter: brightness(1.08) saturate(1.18);
    }

    .avatar-check {
      position: absolute;
      right: 7px;
      top: -7px;
      z-index: 5;
      width: 30px;
      height: 30px;
      border-radius: 50%;
      background: #22c55e;
      color: #fff;
      display: none;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      font-weight: 900;
      box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.35),
        0 0 10px rgba(34, 197, 94, 0.45);
    }

    .avatar-option.active .avatar-check {
      display: flex;
    }

    .category {
      --thumb-color: #eab308;
      background: rgba(0, 0, 0, 0.22);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 18px;
      padding: 13px;
      margin-bottom: 10px;
    }

    .category-top {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      margin-bottom: 12px;
    }

    .category-name {
      display: flex;
      align-items: center;
      gap: 9px;
      font-weight: 700;
      font-size: 14px;
    }

    .category-name span:first-child {
      width: 28px;
      height: 28px;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(168, 85, 247, 0.2);
    }

    .level-value {
      color: #dfd1f1;
      font-weight: 800;
      font-size: 13px;
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 999px;
      padding: 6px 10px;
      white-space: nowrap;
    }

    .level-dots {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 0;
      margin-bottom: 12px;
      padding: 0 11px;
    }

    .dot {
      width: 18px;
      height: 18px;
      justify-self: center;
      border-radius: 50%;
      background: #16091f;
      opacity: 0.75;
      transition: 0.2s ease;
      position: relative;
    }

    .dot.off {
      border: 2px solid #fff;
      background: #fff;
    }

    .dot.blue {
      border: 2px solid #00c2ff;
    }

    .dot.green {
      border: 2px solid #22c55e;
    }

    .dot.yellow {
      border: 2px solid #eab308;
    }

    .dot.orange {
      border: 2px solid #f97316;
    }

    .dot.red {
      border: 2px solid #ef4444;
    }

    .dot.active {
      opacity: 1;
      transform: scale(1.25);
      box-shadow: 0 0 18px var(--dot-color);
    }

    .dot.active::after {
      content: "";
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--dot-color);
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
    }

    .dot.off {
      --dot-color: #fff;
    }

    .dot.blue {
      --dot-color: #00c2ff;
    }

    .dot.green {
      --dot-color: #22c55e;
    }

    .dot.yellow {
      --dot-color: #eab308;
    }

    .dot.orange {
      --dot-color: #f97316;
    }

    .dot.red {
      --dot-color: #ef4444;
    }

    input[type="range"] {
      appearance: none;
      -webkit-appearance: none;
      width: calc(100% - 22px);
      height: 7px;
      padding: 0;
      border: 0;
      border-radius: 999px;
      display: block;
      margin: 0 11px;
      background: linear-gradient(
        90deg,
        #ffffff 0%,
        #00c2ff 20%,
        #22c55e 40%,
        #eab308 60%,
        #f97316 80%,
        #ef4444 100%
      );
      cursor: pointer;
    }

    input[type="range"]::-webkit-slider-thumb {
      appearance: none;
      -webkit-appearance: none;
      width: 22px;
      height: 22px;
      border-radius: 50%;
      background: #fff;
      border: 4px solid var(--thumb-color);
      box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    }

    input[type="range"]::-moz-range-thumb {
      width: 22px;
      height: 22px;
      border-radius: 50%;
      background: #fff;
      border: 4px solid var(--thumb-color);
      box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    }

    @media (max-width: 380px) {
      body {
        padding: 14px;
      }

      .logo h1 {
        font-size: 32px;
      }

      .card {
        border-radius: 24px;
        padding: 15px;
      }

      .row {
        grid-template-columns: 1fr;
      }

      .level-dots {
        padding: 0 11px;
      }
    }
    .form-message {
      min-height: 20px;
      margin-top: 12px;
      padding: 0 4px;
      color: #dfd1f1;
      font-size: 13px;
      line-height: 1.4;
      text-align: center;
    }

    .form-message.success {
      color: #86efac;
    }

    .form-message.error {
      color: #fca5a5;
    }

    .main-btn:disabled {
      opacity: 0.65;
      cursor: not-allowed;
      transform: none;
    }

    .main-btn.loading::after {
      content: "...";
    }
