:root {
  color-scheme: dark;
  --bg: #050217;
  --surface: #100d2b;
  --soft: #17133a;
  --primary: #0d0782;
  --accent: #716aff;
  --text: #f4f1ff;
  --muted: #aaa4cb;
  --line: #2a2458;
  --danger: #ff657d;
  --ok: #a49eff;
  --shadow: 0 14px 40px #0006;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  padding: 18px 18px 80px;
  background: radial-gradient(circle at 12% 0%, #0d0782c7, transparent 42%),
    linear-gradient(145deg, #0d0782, #050217 68%);
  background-attachment: fixed;
  color: var(--text);
  font:
    14px system-ui,
    "Segoe UI",
    sans-serif;
}
.wrap {
  max-width: 960px;
  margin: auto;
}
.bar,
.card,
.stat,
.modal {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-radius: 16px;
  margin-bottom: 20px;
}
.bar b {
  color: #c8c4ff;
}
.bar a {
  color: var(--danger);
  text-decoration: none;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin: 8px 2px 16px;
}
.heading h1 {
  font-size: clamp(24px, 5vw, 32px);
  margin: 0;
}
.heading p,
.muted {
  color: var(--muted);
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.stat {
  padding: 14px;
  border-radius: 15px;
}
.stat span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}
.stat strong {
  font-size: 24px;
}
.upload {
  border: 2px dashed #716aff99;
  text-align: center;
  padding: 22px;
  border-radius: 18px;
  margin-bottom: 18px;
  background: #100d2bcc;
}
.upload p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  border: 0;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 750;
  color: white;
  cursor: pointer;
  background: linear-gradient(135deg, #0d0782, #463be0);
}
.btn:disabled {
  opacity: 0.6;
}
.outline {
  background: var(--surface);
  border: 1px solid #49427c;
}
.danger {
  background: #9d2840;
}
.small {
  padding: 7px 9px;
  font-size: 12px;
}
.toolbar {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}
.toolbar input,
.toolbar select {
  padding: 10px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
}
.toolbar input {
  flex: 1;
  min-width: 0;
}
.card {
  padding: 15px;
  border-radius: 17px;
  margin-bottom: 12px;
}
.top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.name {
  font-weight: 800;
  word-break: break-word;
}
.pill {
  font-size: 10px;
  border: 1px solid #625bd2;
  border-radius: 20px;
  padding: 4px 9px;
  color: var(--ok);
}
.pill.off {
  color: var(--danger);
  border-color: #8e3d55;
}
.meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.toggles {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.toggles label {
  font-size: 12px;
  color: var(--muted);
}
.actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 7px;
}
.actions .btn {
  font-size: 12px;
  padding: 8px 4px;
}
.empty {
  text-align: center;
  padding: 32px;
  color: var(--muted);
}
.modal-bg {
  display: none;
  position: fixed;
  inset: 0;
  background: #030211cc;
  z-index: 10;
  align-items: center;
  justify-content: center;
  padding: 15px;
}
.modal {
  width: min(100%, 620px);
  max-height: 88vh;
  overflow: auto;
  padding: 18px;
  border-radius: 16px;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-head h3 {
  margin: 0;
}
.modal-tools {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
}
.copy-log {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid #716aff66;
  border-radius: 10px;
  background: linear-gradient(145deg, #26205d, #100d30);
  color: #e9e6ff;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  box-shadow:
    inset 0 1px #ffffff1c,
    0 5px 12px #03001455;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    transform 0.16s ease;
}
.copy-log svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.copy-log:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: #aaa4ff;
  background: linear-gradient(145deg, #39317f, #171144);
}
.copy-log:disabled {
  opacity: 0.55;
  cursor: wait;
}
.copy-log[hidden] {
  display: none;
}
.copy-log.is-copied {
  border-color: #50d5a0;
  color: #a8f1d6;
}
.delete-log {
  border-color: #ff6d8666;
  color: #ffdce3;
}
.delete-log:hover:not(:disabled) {
  border-color: #ff8298;
  background: linear-gradient(145deg, #65213a, #211025);
}
.clipboard-helper {
  position: fixed;
  top: 0;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.x {
  cursor: pointer;
  color: var(--danger);
  font-size: 22px;
}
.log {
  white-space: pre-wrap;
  word-break: break-word;
  background: #08061b;
  color: #c6c1ff;
  padding: 12px;
  border-radius: 10px;
  max-height: 55vh;
  overflow: auto;
  font: 12px monospace;
}
.file {
  padding: 9px;
  margin: 5px 0;
  background: var(--soft);
  border-radius: 8px;
  cursor: pointer;
}
.editor {
  width: 100%;
  height: 45vh;
  background: #08061b;
  color: #e1deff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  font: 12px monospace;
}
.error {
  color: #ffb2c0;
}
@media (max-width: 560px) {
  body {
    padding: 12px 12px 70px;
  }
  .heading {
    align-items: start;
    flex-direction: column;
  }
  .stats {
    gap: 6px;
  }
  .stat {
    padding: 10px;
  }
  .stat strong {
    font-size: 19px;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .toolbar input {
    flex-basis: 100%;
  }
  .actions {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Unified icon and text palette */
.fa-solid,
.fa-regular,
.fa-brands {
  color: var(--accent);
}
.btn i {
  color: currentColor;
}
.btn.outline i {
  color: #a49eff;
}
.btn.danger i {
  color: #ffd1d8;
}
.bar > span > i {
  color: #a49eff;
}
.bar a i {
  color: var(--danger);
}
.upload > i {
  color: #a49eff !important;
}
.heading h1,
.stat strong,
.name {
  color: var(--text);
}
.btn {
  transition:
    filter 0.15s ease,
    transform 0.15s ease;
}
.btn:hover {
  filter: brightness(1.16);
  transform: translateY(-1px);
}
.btn:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid #a49eff;
  outline-offset: 2px;
}
.pill {
  color: #c9c5ff;
}
.pill.off {
  color: #ff9caf;
}
.meta,
.toggles label {
  color: #c1bbdf;
}

/* Professional dimensional surfaces and restrained 3D motion */
:root {
  --glass: rgba(17, 14, 48, 0.82);
  --edge: rgba(164, 158, 255, 0.2);
  --glow: rgba(113, 106, 255, 0.22);
}
body {
  background: radial-gradient(
      ellipse at 10% -10%,
      rgba(64, 46, 255, 0.42),
      transparent 38%
    ),
    radial-gradient(
      ellipse at 90% 18%,
      rgba(104, 64, 255, 0.13),
      transparent 30%
    ),
    linear-gradient(145deg, #0b0753 0%, #050217 70%);
  perspective: 1400px;
  isolation: isolate;
}
body:before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(
      rgba(164, 158, 255, 0.035) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(164, 158, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}
.wrap {
  max-width: 1040px;
  transform-style: preserve-3d;
}
.bar,
.card,
.stat,
.upload,
.modal {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    145deg,
    rgba(26, 22, 68, 0.94),
    rgba(9, 7, 31, 0.96)
  );
  border: 1px solid var(--edge);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.4),
    inset 0 1px rgba(255, 255, 255, 0.08),
    inset 0 -1px rgba(0, 0, 0, 0.35);
  transform-style: preserve-3d;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}
.bar:after,
.card:after,
.stat:after,
.upload:after,
.modal:after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(210, 206, 255, 0.55),
    transparent
  );
  pointer-events: none;
}
.bar {
  padding: 15px 18px;
  border-radius: 18px;
  background: linear-gradient(
    120deg,
    rgba(37, 31, 101, 0.94),
    rgba(13, 10, 43, 0.92)
  );
  backdrop-filter: blur(16px);
  box-shadow:
    0 18px 50px #0005,
    inset 0 1px #ffffff22,
    inset 0 -8px 18px #03001455;
}
.bar b {
  letter-spacing: 0.2px;
  text-shadow: 0 2px 14px #9b95ff66;
}
.heading {
  margin-top: 24px;
}
.heading h1 {
  letter-spacing: -0.04em;
  text-shadow: 0 5px 22px #08051d;
}
.heading p {
  margin-top: 7px;
}
.stats {
  gap: 14px;
  margin: 20px 0;
}
.stat {
  border-radius: 17px;
  padding: 16px 18px;
  background: linear-gradient(
    150deg,
    rgba(25, 21, 75, 0.97),
    rgba(10, 8, 35, 0.96)
  );
  box-shadow:
    0 14px 30px #02010d66,
    inset 0 1px #ffffff12,
    inset 0 -10px 22px #04021a66;
}
.stat:nth-child(1) {
  border-color: #716aff55;
}
.stat:nth-child(2) {
  border-color: #51d8b155;
}
.stat:nth-child(3) {
  border-color: #ff789155;
}
.stat strong {
  margin-top: 5px;
  text-shadow: 0 0 18px #aaa4ff55;
}
.upload {
  position: relative;
  border: 1px solid rgba(151, 143, 255, 0.32);
  border-radius: 20px;
  padding: 27px;
  background: radial-gradient(
      ellipse at 50% 0%,
      rgba(113, 106, 255, 0.18),
      transparent 65%
    ),
    linear-gradient(145deg, rgba(25, 21, 75, 0.92), rgba(9, 7, 31, 0.95));
  box-shadow:
    0 22px 44px #02010d88,
    inset 0 1px #ffffff1c,
    inset 0 -12px 25px #03001455;
}
.upload p {
  font-size: 14px;
  color: #eeeaff;
  font-weight: 750;
  letter-spacing: 0.01em;
  margin: 11px 0 15px;
  text-shadow: 0 2px 8px #0008;
}
.toolbar {
  margin: 18px 0 13px;
}
.toolbar input,
.toolbar select {
  border-color: #49427c;
  background: linear-gradient(180deg, #15113c, #0b0927);
  box-shadow:
    inset 0 2px 8px #0005,
    0 4px 12px #0002;
}
.card {
  padding: 17px;
  border-radius: 18px;
  margin-bottom: 14px;
  background: linear-gradient(
    145deg,
    rgba(25, 21, 72, 0.97),
    rgba(9, 7, 31, 0.97)
  );
  box-shadow:
    0 16px 34px #02010d66,
    inset 0 1px #ffffff12,
    inset 0 -10px 22px #03001455;
}
.name {
  font-size: 15px;
  letter-spacing: 0.01em;
}
.pill {
  background: linear-gradient(145deg, #221c61, #13103d);
  box-shadow:
    inset 0 1px #ffffff1c,
    0 4px 10px #0003;
}
.pill.off {
  background: linear-gradient(145deg, #40152c, #210d22);
}
.btn {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(145deg, #5148ec 0%, #21178d 60%, #120b55 100%);
  box-shadow:
    inset 0 1px 0 #ffffff3b,
    inset 0 -2px 0 #05022566,
    0 7px 14px #03001466;
  text-shadow: 0 1px 5px #03001466;
  transition:
    transform 0.18s ease,
    filter 0.18s ease,
    box-shadow 0.18s ease;
}
.btn:hover {
  filter: brightness(1.14);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px #ffffff55,
    0 11px 20px #03001488;
}
.btn:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 2px 6px #0005,
    0 2px 5px #0004;
}
.btn.outline {
  background: linear-gradient(145deg, #201b4d, #100d2c);
  border-color: #625bd266;
  box-shadow:
    inset 0 1px #ffffff19,
    inset 0 -2px #05021755,
    0 5px 11px #03001455;
}
.btn.danger {
  background: linear-gradient(145deg, #bd3554, #65142f);
  border-color: #ff8ca133;
}
.modal-bg {
  backdrop-filter: blur(8px);
  background: rgba(3, 2, 17, 0.72);
}
.modal {
  background: linear-gradient(145deg, #191548, #0a0825);
  box-shadow:
    0 32px 90px #000b,
    inset 0 1px #ffffff1a;
  border-color: #716aff55;
  animation: modalLift 0.22s ease-out;
}
@keyframes modalLift {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.log,
.editor {
  border: 1px solid #464077;
  box-shadow: inset 0 8px 20px #0006;
}
.file {
  border: 1px solid #ffffff0b;
  box-shadow: inset 0 1px #ffffff09;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease;
}
.file:hover {
  transform: translateX(3px);
  border-color: #716aff66;
}
@media (hover: hover) {
  .stat:hover,
  .card:hover {
    transform: translateY(-4px) rotateX(1deg);
    border-color: #8b84ff77;
    box-shadow:
      0 24px 45px #02010d88,
      inset 0 1px #ffffff1e,
      inset 0 -10px 22px #03001455;
  }
  .upload:hover {
    transform: translateY(-2px);
    border-color: #aaa4ff88;
    box-shadow:
      0 26px 54px #02010d99,
      inset 0 1px #ffffff25;
  }
}
@media (max-width: 560px) {
  .stats {
    gap: 8px;
  }
  .stat {
    padding: 12px 10px;
  }
  .upload {
    padding: 21px 14px;
  }
  .card {
    padding: 13px;
  }
  .bar {
    padding: 12px 13px;
  }
  .btn:hover {
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Right-side account drawer */
.brand-left {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.brand-left b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brand-glyph {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid #a49eff55;
  border-radius: 12px;
  background: linear-gradient(145deg, #5148ec, #171050);
  box-shadow:
    inset 0 1px #ffffff55,
    inset 0 -4px #07042a88,
    0 7px 15px #03001477;
}
.brand-glyph i {
  color: #efedff !important;
  font-size: 16px;
}
.menu-toggle {
  width: 48px;
  height: 46px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: none;
  border: 1px solid #aaa4ff66;
  border-radius: 14px;
  background: linear-gradient(145deg, #302881, #100d36);
  box-shadow:
    inset 0 1px #ffffff44,
    inset 0 -4px #05021e88,
    0 8px 17px #03001477;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.menu-toggle:hover {
  transform: translateY(-2px);
  border-color: #c3beff;
  box-shadow:
    inset 0 1px #ffffff66,
    0 12px 22px #03001499;
}
.menu-toggle span {
  width: 23px;
  height: 3px;
  border-radius: 4px;
  background: linear-gradient(90deg, #fff, #aaa4ff);
  box-shadow: 0 1px 4px #0009;
  transition:
    transform 0.14s ease-out,
    opacity 0.12s ease-out;
}
.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-8px) rotate(-45deg);
}
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  justify-content: flex-end;
  background: rgba(3, 2, 17, 0.58);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.13s ease-out;
}
.drawer-backdrop[hidden] {
  display: none;
}
.drawer-backdrop.open {
  opacity: 1;
}
.account-drawer {
  width: min(390px, calc(100vw - 22px));
  height: min(760px, calc(100dvh - 24px));
  min-height: 460px;
  position: relative;
  align-self: flex-start;
  margin: 12px 12px 12px 0;
  padding: 22px;
  display: flex;
  flex-direction: column;
  overflow: auto;
  border: 1px solid #a49eff55;
  border-radius: 24px;
  background: radial-gradient(ellipse at 70% 0%, #5148ec2b, transparent 45%),
    linear-gradient(155deg, #1b174d, #0b0928 68%, #08061d);
  box-shadow:
    -22px 20px 70px #000a,
    inset 0 1px #ffffff22,
    inset 0 -10px 25px #02011688;
  transform: translateX(30px) scale(0.985);
  opacity: 0.85;
  transition:
    transform 0.15s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.13s ease-out;
  will-change: transform, opacity;
}
.account-drawer.open {
  transform: translateX(0) scale(1);
  opacity: 1;
}
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 17px;
}
.drawer-kicker {
  font-size: 10px;
  letter-spacing: 0.18em;
  font-weight: 850;
  color: #aaa4ff;
}
.drawer-close {
  width: 34px;
  height: 34px;
  border: 1px solid #ffffff1b;
  border-radius: 10px;
  background: #ffffff09;
  color: #e9e6ff;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}
.profile-card {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 16px 13px;
  border: 1px solid #9f97ff4d;
  border-radius: 18px;
  background: linear-gradient(145deg, #292369, #15113e 72%);
  box-shadow:
    inset 0 1px #ffffff20,
    inset 0 -5px 14px #05032166,
    0 12px 24px #03001466;
}
.profile-avatar {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  border: 1px solid #d0ccff88;
  background: linear-gradient(145deg, #9089ff, #3a30c5 58%, #171052);
  box-shadow:
    inset 0 1px #ffffff77,
    inset 0 -5px 11px #100b4d88,
    0 7px 14px #05032b88;
  color: #fff;
  font-size: 21px;
  font-weight: 900;
  text-shadow: 0 2px 7px #0008;
}
.profile-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.profile-copy b {
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #f5f3ff;
}
.profile-copy span {
  font-size: 11px;
  color: #b9b4db;
  overflow-wrap: anywhere;
}
.profile-status {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  border: 1px solid #50d5a044;
  border-radius: 20px;
  color: #a8f1d6;
  font-size: 9px;
  font-weight: 800;
}
.profile-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5ce0ab;
  box-shadow: 0 0 9px #5ce0ab;
}
.drawer-nav {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}
.menu-item,
.menu-signout {
  width: 100%;
  min-height: 52px;
  display: grid;
  grid-template-columns: 38px 1fr 16px;
  align-items: center;
  gap: 11px;
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: #dad7f2;
  text-decoration: none;
  text-align: left;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.menu-item:hover {
  transform: translateX(-2px);
  border-color: #8d86ff44;
  background: linear-gradient(110deg, #716aff20, #ffffff04);
  box-shadow: inset 0 1px #ffffff0d;
}
.menu-item.active {
  border-color: #938cff59;
  background: linear-gradient(110deg, #5148ec37, #716aff0c);
  color: #fff;
  box-shadow:
    inset 0 1px #ffffff16,
    0 5px 13px #03001433;
}
.menu-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid #716aff35;
  border-radius: 11px;
  background: linear-gradient(145deg, #28235d, #141135);
  box-shadow:
    inset 0 1px #ffffff16,
    inset 0 -3px #05021c66;
}
.menu-icon i {
  color: #b5afff;
}
.menu-chevron {
  font-size: 10px;
  color: #79739f;
}
.drawer-footer {
  margin-top: auto;
  padding-top: 18px;
}
.drawer-divider {
  height: 1px;
  margin-bottom: 12px;
  background: linear-gradient(90deg, transparent, #716aff66, transparent);
}
.menu-signout {
  grid-template-columns: 38px 1fr;
  color: #ffb9c4;
}
.menu-signout .menu-icon {
  border-color: #ff789133;
  background: linear-gradient(145deg, #451a39, #241028);
}
.menu-signout .menu-icon i {
  color: #ff9daf;
}
.menu-signout:hover {
  border-color: #ff829833;
  background: #ff657d0d;
}
.drawer-footer small {
  display: block;
  margin: 9px 0 0 49px;
  color: #746e95;
  font-size: 10px;
  letter-spacing: 0.04em;
}
body.menu-open {
  overflow: hidden;
}
@media (max-width: 480px) {
  .account-drawer {
    width: calc(100vw - 14px);
    height: calc(100dvh - 14px);
    margin: 7px 7px 7px 0;
    border-radius: 21px;
    padding: 18px;
  }
  .profile-card {
    grid-template-columns: 49px minmax(0, 1fr) auto;
    gap: 9px;
    padding: 13px 10px;
  }
  .profile-avatar {
    width: 47px;
    height: 47px;
    border-radius: 15px;
  }
  .profile-status {
    font-size: 8px;
    padding: 4px 6px;
  }
}

.settings-field {
  display: grid;
  gap: 8px;
  text-align: left;
  color: #c8c4e6;
  font-size: 13px;
  font-weight: 700;
}
.settings-field input {
  width: 100%;
  padding: 12px;
  border: 1px solid #625bd2;
  border-radius: 10px;
  background: #08061b;
  color: #f4f1ff;
  font: inherit;
  outline: none;
}
.settings-field input:focus {
  border-color: #a49eff;
  box-shadow: 0 0 0 3px #716aff2b;
}
.settings-email {
  margin: 14px 0 0;
  color: #aaa4cb;
  font-size: 12px;
}
.settings-email b {
  color: #e4e1ff;
  overflow-wrap: anywhere;
}
.plan-placeholder {
  padding: 8px 6px 4px;
  text-align: center;
  color: #c8c4e6;
}
.plan-placeholder span {
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid #716aff55;
  border-radius: 20px;
  color: #b8b2ff;
  font-size: 10px;
  letter-spacing: 0.12em;
  font-weight: 850;
}
.plan-placeholder p {
  margin: 14px 0 7px;
  font-weight: 700;
  color: #f0edff;
}
.plan-placeholder small {
  color: #aaa4cb;
}

.brand-glyph svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #efedff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.menu-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: #b5afff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.menu-signout .menu-icon svg {
  stroke: #ff9daf;
}
.menu-chevron {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: #79739f;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Shared multi-page plan and account settings surfaces */
.surface-card {
  position: relative;
  overflow: hidden;
  width: min(100%, 680px);
  margin: 30px auto;
  padding: 30px;
  border: 1px solid rgba(164, 158, 255, 0.25);
  border-radius: 24px;
  background: radial-gradient(ellipse at 10% 0%, #5148ec22, transparent 45%),
    linear-gradient(145deg, rgba(25, 21, 75, 0.97), rgba(9, 7, 31, 0.98));
  box-shadow:
    0 24px 60px #02010d88,
    inset 0 1px #ffffff20,
    inset 0 -12px 24px #03001466;
}
.surface-card h2 {
  margin: 12px 0 5px;
  font-size: 22px;
}
.surface-card > p {
  max-width: 560px;
  line-height: 1.7;
}
.plan-orb,
.settings-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid #aaa4ff66;
  border-radius: 18px;
  background: linear-gradient(145deg, #716aff, #21178d);
  box-shadow:
    inset 0 1px #ffffff66,
    inset 0 -5px #08052d77,
    0 12px 22px #03001488;
}
.plan-orb svg {
  width: 25px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.settings-mark i {
  font-size: 23px;
  color: #fff;
}
.plan-eyebrow {
  display: inline-block;
  margin-top: 22px;
  color: #aaa4ff;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.16em;
}
.plan-panel .btn {
  margin-top: 12px;
}
.settings-form {
  display: grid;
  gap: 15px;
  max-width: 480px;
  margin-top: 22px;
}
.settings-form label {
  display: grid;
  gap: 7px;
  color: #d8d4f0;
  font-size: 13px;
  font-weight: 750;
}
.settings-form input {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid #49427c;
  border-radius: 11px;
  background: linear-gradient(180deg, #15113c, #0b0927);
  color: #f4f1ff;
  font: inherit;
  box-shadow: inset 0 2px 8px #0005;
}
.settings-form input[readonly] {
  color: #aaa4cb;
}
.settings-status {
  min-height: 18px;
  color: #b9b4db;
  font-size: 12px;
}
.settings-status.success {
  color: #9be3c2;
}
.settings-status.error {
  color: #ff9caf;
}
@media (max-width: 560px) {
  .surface-card {
    padding: 22px 18px;
    margin: 20px auto;
    border-radius: 20px;
  }
  .surface-card h2 {
    font-size: 20px;
  }
}

.upload-icon {
  font-size: 26px;
  color: #aaa4ff;
}
.upload #uploadStatus {
  margin-top: 10px;
}
.modal-body {
  margin-top: 14px;
}
.x {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  line-height: 1;
}
