﻿:root {
  --bg: #090d14;
  --text: #ecf1ff;
  --muted: #9ca9c7;
  --line: rgba(173, 199, 255, 0.2);
  --card: rgba(14, 21, 35, 0.8);
  --accent: #54d6be;
  --accent-2: #7eb3ff;
  --cta: #ff9f4a;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% -10%, #1d355f 0%, transparent 36%),
    radial-gradient(circle at 95% 8%, #5a2d19 0%, transparent 42%),
    linear-gradient(180deg, #06090f, var(--bg));
  overflow-x: hidden;
}

.profile-lang {
  justify-self: end;
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(161, 188, 241, 0.26);
  background: rgba(8, 13, 22, 0.76);
  backdrop-filter: blur(8px);
}

h1,
h2,
strong {
  font-family: "Space Grotesk", sans-serif;
}

.bg-glow {
  position: fixed;
  width: 70vw;
  height: 70vw;
  border-radius: 999px;
  filter: blur(72px);
  opacity: 0.3;
  z-index: -2;
  pointer-events: none;
}

.glow-a {
  left: -22vw;
  top: -16vw;
  background: #4f79ce;
}

.glow-b {
  right: -22vw;
  top: 22vh;
  background: #2abda8;
}

.page {
  width: min(100%, 520px);
  margin: 0 auto;
  padding: 18px 14px 30px;
  position: relative;
}

.card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 42px rgba(3, 9, 19, 0.45);
  padding: 16px;
}

.card + .card,
.card + .footer {
  margin-top: 12px;
}

.profile {
  text-align: center;
  display: grid;
  gap: 10px;
}

.avatar-wrap {
  width: 116px;
  aspect-ratio: 1;
  margin: 2px auto 2px;
  border-radius: 999px;
  padding: 3px;
  background: linear-gradient(145deg, var(--cta), var(--accent), var(--accent-2));
}

.avatar-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  border: 2px solid #070c16;
}

.profile h1 {
  margin: 0;
  font-size: 1.55rem;
  letter-spacing: 0.01em;
}

.tagline {
  margin: 0;
  color: #dbe8ff;
  font-size: 0.95rem;
  font-weight: 700;
}

.bio {
  margin: -2px 0 2px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  max-width: 38ch;
  justify-self: center;
}

.platform-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.platform-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(176, 201, 245, 0.24);
  border-radius: 14px;
  padding: 9px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #d7e5ff;
  background: rgba(13, 22, 37, 0.86);
  font-family: inherit;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(3, 9, 19, 0.28);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.platform-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(205, 224, 255, 0.5);
  box-shadow: 0 14px 26px rgba(3, 9, 19, 0.35);
}

.platform-chip.is-active {
  border-color: rgba(255, 199, 124, 0.75);
  background: rgba(255, 159, 74, 0.2);
}

.icon {
  width: 14px;
  height: 14px;
  display: block;
}

.mono-icon {
  filter: brightness(0) invert(1);
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 12px;
}

.social-btn {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(174, 198, 245, 0.25);
  background: rgba(17, 26, 42, 0.78);
  display: inline-grid;
  place-items: center;
  transition: transform 180ms ease, border-color 180ms ease;
}

.social-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(204, 224, 255, 0.55);
}

.social-btn.is-disabled {
  opacity: 0.45;
  cursor: default;
}

.social-btn.is-disabled:hover {
  transform: none;
  border-color: rgba(174, 198, 245, 0.25);
}

.social-icon {
  width: 22px;
  height: 22px;
}

.social-fallback {
  color: #d7e5ff;
  font-weight: 800;
  font-size: 0.88rem;
}

.projects {
  display: grid;
  gap: 10px;
}

.projects-head {
  display: grid;
  gap: 4px;
  justify-items: center;
  text-align: center;
}

.floating-platforms {
  margin-top: 12px;
}

.floating-platforms + .card {
  margin-top: 12px;
}

.projects-list-card {
  display: grid;
  gap: 10px;
}

.projects h2 {
  margin: 0 0 2px;
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #bcd2ff;
}

.projects-hint {
  margin: 0;
  color: #92a8d3;
  font-size: 0.72rem;
  line-height: 1.35;
}

#projectsList {
  display: grid;
  gap: 10px;
}

.project-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(174, 198, 245, 0.25);
  border-radius: 14px;
  background: rgba(16, 25, 40, 0.72);
  padding: 8px;
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease;
}

.project-item:hover {
  transform: translateY(-2px);
  border-color: rgba(204, 224, 255, 0.55);
}

.project-item > img {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

.project-copy {
  display: grid;
  gap: 4px;
}

.project-copy strong {
  font-size: 0.92rem;
}

.project-copy > span {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.project-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-platforms .icon {
  width: 12px;
  height: 12px;
}

.platform-mini {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(172, 197, 240, 0.3);
  border-radius: 999px;
  padding: 3px 7px;
  background: rgba(12, 19, 32, 0.7);
  color: #d6e6ff;
  font-size: 0.68rem;
  font-weight: 700;
}

.muted {
  grid-template-columns: auto 1fr;
  cursor: default;
}

.muted:hover {
  transform: none;
  border-color: rgba(174, 198, 245, 0.25);
}

.pill {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #0f1a2b;
  background: linear-gradient(145deg, #a7f4e8, #88b9ff);
}

.pill-icon {
  width: 24px;
  height: 24px;
}

.pill-text {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.footer {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #8ca0c9;
  font-size: 0.74rem;
  padding: 8px 2px;
}

.lang-btn {
  border: 0;
  border-radius: 999px;
  padding: 6px;
  color: #d0dcf8;
  background: transparent;
  font: inherit;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--cta), #ffd185);
  color: #0c1324;
}

.flag-btn img {
  width: 20px;
  height: 20px;
  display: block;
  border-radius: 50%;
}

.hidden {
  display: none !important;
}

.edit-fab {
  position: sticky;
  top: 12px;
  margin-left: auto;
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(174, 198, 245, 0.28);
  background: rgba(12, 19, 33, 0.86);
  color: #dce9ff;
  font-size: 1rem;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  box-shadow: 0 12px 24px rgba(3, 9, 19, 0.3);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.edit-fab:hover {
  transform: translateY(-1px);
  border-color: rgba(206, 224, 255, 0.55);
}

.edit-fab.is-active {
  border-color: rgba(255, 199, 124, 0.75);
  background: rgba(255, 159, 74, 0.2);
}

.editor-panel {
  display: grid;
  gap: 12px;
  text-align: left;
}

.editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.editor-head h2 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #dbe8ff;
}

.editor-close {
  border: 1px solid rgba(174, 198, 245, 0.28);
  border-radius: 999px;
  padding: 6px 10px;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  color: #dce8ff;
  background: rgba(17, 26, 42, 0.78);
  cursor: pointer;
}

.editor-note {
  margin: 0;
  color: #93a8d3;
  font-size: 0.74rem;
  line-height: 1.4;
}

.editor-remote {
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(174, 198, 245, 0.16);
  background: rgba(10, 15, 26, 0.34);
}

.editor-remote label {
  display: grid;
  gap: 5px;
  color: #cfe0ff;
  font-size: 0.75rem;
  font-weight: 700;
}

.editor-remote input {
  width: 100%;
  border: 1px solid rgba(173, 198, 245, 0.22);
  border-radius: 10px;
  padding: 8px 9px;
  background: rgba(14, 21, 35, 0.76);
  color: #eff4ff;
  font: inherit;
  font-size: 0.8rem;
}

.editor-remote input::placeholder {
  color: #8ca2ce;
}

.editor-remote input:focus {
  outline: none;
  border-color: rgba(124, 176, 255, 0.6);
}

.editor-sync-status {
  margin: 0;
  color: #9ab1dd;
  font-size: 0.72rem;
  line-height: 1.35;
}

.editor-form {
  display: grid;
  gap: 12px;
}

.editor-section {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(174, 198, 245, 0.16);
  background: rgba(10, 15, 26, 0.34);
}

.editor-section h3 {
  margin: 0;
  font-size: 0.82rem;
  color: #d7e6ff;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.editor-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.editor-grid,
.editor-row-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.editor-grid label,
.editor-row-grid label {
  display: grid;
  gap: 5px;
  color: #cfe0ff;
  font-size: 0.75rem;
  font-weight: 700;
}

.editor-grid label.wide,
.editor-row-grid label.wide {
  grid-column: 1 / -1;
}

.editor-grid input,
.editor-grid textarea,
.editor-row-grid input,
.editor-row-grid select {
  width: 100%;
  border: 1px solid rgba(173, 198, 245, 0.22);
  border-radius: 10px;
  padding: 8px 9px;
  background: rgba(14, 21, 35, 0.76);
  color: #eff4ff;
  font: inherit;
  font-size: 0.8rem;
}

.editor-grid textarea {
  resize: vertical;
  min-height: 72px;
}

.editor-grid input::placeholder,
.editor-row-grid input::placeholder {
  color: #8ca2ce;
}

.editor-grid input:focus,
.editor-grid textarea:focus,
.editor-row-grid input:focus,
.editor-row-grid select:focus {
  outline: none;
  border-color: rgba(124, 176, 255, 0.6);
}

.editor-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.editor-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(174, 198, 245, 0.2);
  border-radius: 999px;
  background: rgba(13, 20, 34, 0.74);
  padding: 5px 9px;
  color: #d6e6ff;
  font-size: 0.72rem;
  font-weight: 700;
}

.editor-check input {
  margin: 0;
}

.editor-list {
  display: grid;
  gap: 8px;
}

.editor-row {
  border: 1px solid rgba(174, 198, 245, 0.16);
  border-radius: 12px;
  background: rgba(10, 15, 26, 0.42);
  padding: 9px;
}

.editor-row-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.editor-row-head strong {
  font-size: 0.82rem;
  color: #e5efff;
}

.editor-inline-check {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  justify-content: flex-start;
  align-self: end;
  min-height: 38px;
}

.editor-inline-check input {
  width: auto;
}

.editor-subtitle {
  margin: 8px 0 6px;
  color: #9ab1dd;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.tiny-btn,
.row-remove-btn,
.save-btn,
.ghost-btn,
.danger-btn {
  border: 1px solid rgba(174, 198, 245, 0.24);
  border-radius: 999px;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 6px 10px;
  cursor: pointer;
  color: #dce8ff;
  background: rgba(17, 26, 42, 0.78);
}

.tiny-btn:hover,
.row-remove-btn:hover,
.save-btn:hover,
.ghost-btn:hover,
.danger-btn:hover {
  border-color: rgba(206, 224, 255, 0.52);
}

.row-remove-btn {
  color: #ffd2d2;
  border-color: rgba(255, 135, 135, 0.28);
  background: rgba(77, 21, 28, 0.5);
}

.editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.save-btn {
  color: #0f1726;
  background: linear-gradient(135deg, var(--cta), #ffd58f);
  border-color: rgba(255, 207, 142, 0.5);
}

.ghost-btn {
  background: rgba(17, 26, 42, 0.58);
}

.danger-btn {
  color: #ffd0d0;
  border-color: rgba(255, 122, 122, 0.28);
  background: rgba(77, 21, 28, 0.5);
}

body.editor-open .edit-fab {
  box-shadow: 0 0 0 3px rgba(255, 159, 74, 0.14), 0 12px 24px rgba(3, 9, 19, 0.3);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
}

.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 420ms ease, transform 420ms ease;
}

@media (min-width: 640px) {
  .page {
    padding-top: 26px;
  }

  .card {
    padding: 18px;
  }
}

@media (max-width: 560px) {
  .editor-grid,
  .editor-row-grid {
    grid-template-columns: 1fr;
  }

  .editor-inline-check {
    min-height: auto;
    align-self: stretch;
  }

  .editor-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
