:root {
  --bg: #0d0e12;
  --panel: #17191f;
  --panel-2: #20232b;
  --line: #2c3039;
  --text: #f4f7fb;
  --muted: #9aa3b2;
  --green: #78f0b3;
  --cyan: #65d8ff;
  --yellow: #ffd166;
  --red: #ff7788;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 76% 18%, rgba(101, 216, 255, .18), transparent 26%),
    linear-gradient(135deg, #0d0e12 0%, #10151a 45%, #0d0e12 100%);
  color: var(--text);
  font-family: Inter, "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

button, input, textarea, select { font: inherit; }

button {
  border: 0;
  color: var(--text);
  cursor: pointer;
}

input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101218;
  color: var(--text);
  padding: 11px 12px;
  outline: none;
}

textarea { min-height: 96px; resize: vertical; }

label { display: grid; gap: 8px; color: var(--muted); font-size: 13px; }

.app-shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 0;
  border-right: 1px solid var(--line);
  background: rgba(13, 14, 18, .86);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand strong { display: block; font-size: 18px; letter-spacing: .2px; }
.brand span { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.brand-logo {
  width: 54px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 8px 18px rgba(45, 214, 222, .24));
}

.logo {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #06120d;
  font-weight: 900;
  background: linear-gradient(135deg, var(--green), var(--cyan));
}

.nav { display: grid; gap: 8px; }
.nav button, .folder-item, .tabs button {
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  padding: 11px 12px;
}
.nav { max-height: calc(100vh - 250px); overflow: auto; padding-right: 3px; padding-bottom: 150px; }

.nav button.active, .nav button:hover, .folder-item.active, .folder-item:hover, .tabs button.active {
  background: #232832;
  color: var(--text);
}

.sidebar-user-card {
  position: fixed;
  left: 16px;
  bottom: 20px;
  width: 212px;
  z-index: 20;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(101, 216, 255, .28);
  border-radius: 8px;
  background: rgba(17, 27, 34, .82);
}

.sidebar-user-card img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  background: #26303d;
}

.sidebar-user-card strong,
.sidebar-user-card span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-user-card span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.sidebar-user-card button {
  grid-column: 1 / -1;
  width: 100%;
  padding: 9px 12px;
}

.upgrade {
  margin-top: auto;
  background: linear-gradient(145deg, rgba(120, 240, 179, .15), rgba(101, 216, 255, .1));
  border: 1px solid rgba(120, 240, 179, .25);
  border-radius: 8px;
  padding: 16px;
}

.upgrade span, .upgrade small { display: block; color: var(--muted); }
.upgrade strong { font-size: 34px; color: var(--green); line-height: 1.2; }

.workspace { padding: 24px; overflow: hidden; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 20px; }
h1 { margin: 0; font-size: 28px; line-height: 1.2; }
h2 { margin: 0 0 16px; font-size: 18px; }
p { margin: 6px 0 0; color: var(--muted); }

.top-actions { display: flex; gap: 10px; align-items: center; min-width: 360px; }
.top-actions input { min-width: 240px; }

.primary, .ghost, .link-button {
  border-radius: 8px;
  padding: 11px 14px;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.primary { background: linear-gradient(135deg, #22d88d, #48bfff); color: #06120d; font-weight: 800; }
.ghost { background: #20242d; color: var(--text); border: 1px solid var(--line); }

.stats { display: grid; grid-template-columns: repeat(4, minmax(130px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stats div, .panel, .folders, .admin-card, .admin-login {
  background: rgba(23, 25, 31, .84);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stats div { padding: 16px; }
.stats span { color: var(--muted); display: block; font-size: 13px; }
.stats strong { display: block; font-size: 28px; margin-top: 6px; }

.content-layout { display: grid; grid-template-columns: 220px 1fr; gap: 16px; min-height: 560px; }
.folders { padding: 14px; }
.section-title { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.folder-item { width: 100%; display: flex; justify-content: space-between; margin-bottom: 6px; }

.panel { padding: 16px; min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.tabs { display: flex; gap: 8px; }
.tabs button { padding: 9px 14px; }
#resultCount { color: var(--muted); font-size: 13px; }

.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); gap: 14px; }
.project-grid.table { display: grid; grid-template-columns: 1fr; }
.dynamic-view { min-height: 560px; }

.work-card {
  position: relative;
  background: #11141a;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .16s ease, transform .16s ease, background .16s ease;
}
.work-link {
  display: grid;
  grid-template-rows: 126px 1fr;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.work-card:hover {
  border-color: rgba(101, 216, 255, .48);
  background: #131b24;
  transform: translateY(-1px);
}
.delete-work {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 84, 130, .32);
  border-radius: 8px;
  background: rgba(17, 20, 26, .86);
  color: #ff5d8f;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease, background .16s ease, border-color .16s ease;
}
.delete-work svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.work-card:hover .delete-work,
.delete-work:focus-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.delete-work:hover {
  background: rgba(255, 84, 130, .14);
  border-color: rgba(255, 84, 130, .72);
}

.project-grid:not(.table) .work-card {
  height: 266px;
}
.project-grid.table .work-card { display: grid; grid-template-columns: 168px 1fr auto; align-items: center; height: auto; }
.cover {
  width: 100%;
  height: 126px;
  background: #242833;
  object-fit: cover;
  display: block;
}
.project-grid.table .cover {
  height: auto;
  aspect-ratio: 16 / 9;
}
.work-body {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto 1fr;
  padding: 13px;
}
.work-title {
  min-width: 0;
  font-weight: 800;
  height: 22px;
  line-height: 22px;
  margin-bottom: 8px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.work-script {
  color: var(--muted);
  font-size: 13px;
  min-width: 0;
  min-height: 20px;
  max-height: 20px;
  line-height: 1.55;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.project-grid.table .work-script {
  max-height: 42px;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow-wrap: anywhere;
}
.meta { align-self: end; display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; color: var(--muted); font-size: 12px; }
.badge { border: 1px solid var(--line); border-radius: 999px; padding: 3px 8px; }
.badge.done { color: var(--green); border-color: rgba(120, 240, 179, .35); }
.badge.running { color: var(--yellow); border-color: rgba(255, 209, 102, .35); }

dialog { border: 0; border-radius: 8px; background: var(--panel); color: var(--text); width: min(560px, calc(100vw - 32px)); }
dialog::backdrop { background: rgba(0, 0, 0, .65); }
.modal { display: grid; gap: 14px; }
.modal-head, .modal-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.modal-head button { background: transparent; font-size: 24px; color: var(--muted); }
.auth-dialog {
  width: min(430px, calc(100vw - 40px));
  border: 1px solid rgba(55, 218, 221, .28);
}
.auth-dialog::backdrop {
  background: rgba(2, 6, 10, .76);
  backdrop-filter: blur(5px);
}
.auth-modal {
  padding: 4px;
}
.auth-modal .modal-head {
  align-items: flex-start;
}
.auth-modal .modal-head p {
  margin: 6px 0 0;
  color: var(--muted);
}
.auth-error {
  min-height: 20px;
  margin: 0;
  color: var(--red);
  font-size: 13px;
}
.auth-code-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}
.auth-code-row button {
  min-width: 112px;
}
.confirm-dialog {
  width: min(420px, calc(100vw - 40px));
  border: 1px solid rgba(255, 84, 130, .28);
  border-radius: 14px;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 84, 130, .16), transparent 35%),
    #171b23;
  box-shadow: 0 24px 90px rgba(0, 0, 0, .58), inset 0 1px 0 rgba(255, 255, 255, .04);
}
.confirm-dialog::backdrop {
  background: rgba(2, 6, 10, .74);
  backdrop-filter: blur(5px);
}
.confirm-modal { gap: 16px; padding: 4px; }
.confirm-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 84, 130, .35);
  border-radius: 12px;
  background: rgba(255, 84, 130, .11);
  color: #ff6f9d;
}
.confirm-icon svg { width: 22px; height: 22px; fill: currentColor; }
.confirm-copy h2 { margin: 0 0 8px; font-size: 20px; }
.confirm-copy p { margin: 0; color: var(--muted); line-height: 1.65; }
.danger-primary {
  background: linear-gradient(135deg, #ff4d7d, #ff7f9f);
  color: #fff;
  box-shadow: 0 10px 28px rgba(255, 77, 125, .26);
}
.danger-primary:hover { filter: brightness(1.05); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.admin-shell { min-height: 100vh; padding: 28px; }
.admin-login { width: min(420px, 100%); margin: 12vh auto; padding: 22px; display: grid; gap: 16px; }
.hidden { display: none !important; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.admin-card { padding: 18px; }
.admin-card.wide { grid-column: span 2; }
.admin-table { display: grid; gap: 10px; }
.admin-row { display: grid; grid-template-columns: 1fr 90px 90px 150px; gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #11141a; }
.admin-row button { padding: 8px 10px; border-radius: 8px; background: #242a34; }
.danger { color: var(--red) !important; }
.code-editor {
  min-height: 420px;
  margin: 12px 0;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  line-height: 1.55;
}

.dashboard-grid, .module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.hero-panel, .info-panel, .module-card, .section-panel, .wide-row, .empty-panel, .profile-panel {
  background: rgba(23, 25, 31, .84);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hero-panel {
  grid-column: span 2;
  min-height: 210px;
  padding: 24px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 14px;
  background:
    linear-gradient(135deg, rgba(120, 240, 179, .2), rgba(101, 216, 255, .12)),
    #17191f;
}

.hero-panel h2 { font-size: 30px; margin: 0; }
.info-panel { padding: 18px; }
.info-panel span, .module-card span { color: var(--muted); font-size: 13px; display: block; }
.info-panel strong { display: block; font-size: 24px; margin-top: 8px; }

.module-card {
  overflow: hidden;
  background: #11141a;
}

.module-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.module-card > div:last-child { padding: 14px; }
.module-card strong { display: block; font-size: 16px; margin-bottom: 6px; }
.module-card p { min-height: 44px; font-size: 13px; }

.module-icon {
  height: 122px;
  display: grid;
  place-items: center;
  font-size: 42px;
  font-weight: 900;
  color: #07130e;
  background: linear-gradient(135deg, var(--green), var(--cyan));
}

.section-panel { padding: 18px; margin-top: 16px; }
.list-row, .wide-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.list-row {
  width: 100%;
  background: transparent;
  color: var(--text);
  text-align: left;
  text-decoration: none;
}
.clickable-row {
  cursor: pointer;
  border-radius: 6px;
  padding-left: 8px;
  padding-right: 8px;
}
.clickable-row:hover {
  background: rgba(101, 216, 255, .08);
  border-color: rgba(101, 216, 255, .32);
}
.list-row span { color: var(--muted); }

.wide-row {
  grid-template-columns: minmax(160px, 1fr) minmax(180px, 40%) 52px;
  padding: 14px;
  margin-bottom: 12px;
}

.progress {
  height: 8px;
  background: #0c0e13;
  border-radius: 99px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.progress.big { height: 14px; width: min(520px, 100%); }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--cyan)); }

.empty-panel { padding: 32px; color: var(--muted); text-align: center; }
.profile-panel { display: flex; gap: 16px; align-items: center; padding: 18px; margin-bottom: 16px; }
.profile-panel img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: #242833; }
.profile-avatar-upload {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  cursor: pointer;
  overflow: hidden;
  color: #fff;
}
.profile-avatar-upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.profile-avatar-upload span {
  position: absolute;
  inset: auto 0 0;
  padding: 5px 4px;
  background: rgba(0, 0, 0, .68);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  text-align: center;
}
.profile-avatar-upload:hover span {
  background: rgba(55, 218, 221, .86);
  color: #061016;
  font-weight: 800;
}

.index-wallet {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 21, 29, .94);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
}

.index-wallet div {
  display: grid;
  gap: 2px;
  min-width: 108px;
}

.index-wallet strong,
.index-wallet span {
  font-size: 12px;
  line-height: 1.25;
}

.point-panel .point-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.points-account-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.points-account-panel article {
  padding: 18px;
  border: 1px solid rgba(101, 216, 255, .28);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(78, 241, 207, .12), rgba(101, 216, 255, .08));
}

.points-account-panel span {
  display: block;
  color: var(--muted);
  margin-bottom: 6px;
}

.points-account-panel strong {
  display: block;
  font-size: 34px;
  line-height: 1;
  margin-bottom: 8px;
}

.points-account-panel p {
  min-height: 42px;
  color: var(--muted);
}

.points-account-panel button,
.index-wallet button,
.point-actions button {
  border: 0;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  color: #051014;
  font-weight: 900;
}

.account-storage-entry,
.storage-overview-panel,
.storage-rule-grid article,
.storage-plan-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(23, 25, 31, .84);
}

.account-storage-entry {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
}

.account-storage-entry span,
.storage-overview-panel span,
.storage-rule-grid span,
.storage-plan-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}

.account-storage-entry strong,
.storage-rule-grid strong,
.storage-plan-card strong {
  display: block;
  font-size: 22px;
  margin-bottom: 8px;
}

.account-storage-entry p,
.storage-overview-panel p,
.storage-rule-grid p,
.storage-plan-card p,
.storage-plan-card small {
  color: var(--muted);
  line-height: 1.65;
}

.account-storage-entry button,
.storage-plan-card button {
  border: 0;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  color: #051014;
  font-weight: 900;
}

.storage-overview-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
  gap: 22px;
  align-items: center;
  padding: 22px;
  margin-bottom: 16px;
  background:
    linear-gradient(135deg, rgba(120, 240, 179, .14), rgba(101, 216, 255, .08)),
    rgba(23, 25, 31, .92);
}

.storage-overview-panel h2 {
  margin: 0 0 8px;
  font-size: 30px;
}

.storage-meter {
  display: grid;
  gap: 10px;
}

.storage-meter strong {
  font-size: 24px;
}

.storage-meter small {
  color: var(--muted);
}

.storage-rule-grid,
.storage-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.storage-rule-grid article,
.storage-plan-card {
  padding: 16px;
}

.storage-plan-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 12px 0 0;
}

.storage-plan-card {
  display: grid;
  align-content: start;
  gap: 8px;
  background: #11141a;
}

.storage-plan-card.active {
  border-color: rgba(46, 230, 200, .55);
  box-shadow: inset 0 0 0 1px rgba(46, 230, 200, .18);
}

.storage-plan-card button {
  margin-top: 8px;
}

.storage-plan-card button:disabled {
  opacity: .7;
  cursor: default;
}

.wallet-dialog.hidden { display: none; }
.wallet-dialog {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}
.wallet-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 12, .66);
  backdrop-filter: blur(4px);
}
.wallet-dialog-card {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid rgba(80, 218, 236, .28);
  border-radius: 14px;
  background: #1f232c;
  padding: 18px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .48);
}
.wallet-dialog-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.wallet-dialog-card h2 { margin: 0 0 6px; font-size: 20px; }
.wallet-dialog-card header p { margin: 0; color: var(--muted); }
.wallet-dialog-card header button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #303540;
  color: #f5f7fb;
  font-size: 20px;
}
.wallet-form { display: grid; gap: 14px; }
.wallet-form label { display: grid; gap: 8px; color: #c9d7e6; font-weight: 800; }
.wallet-form input {
  height: 42px;
  border: 1px solid rgba(119, 141, 171, .34);
  border-radius: 9px;
  background: #151922;
  color: #fff;
  padding: 0 12px;
  outline: none;
}
#indexWalletStatus { min-height: 22px; margin: 0; color: #9fd6e3; line-height: 1.6; }
.wallet-form footer,
.wallet-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.wallet-primary,
.wallet-secondary {
  min-height: 38px;
  border-radius: 999px;
  padding: 0 16px;
  font-weight: 900;
}
.wallet-primary { background: linear-gradient(135deg, var(--green), var(--cyan)); color: #07120f; }
.wallet-secondary { border: 1px solid rgba(125, 243, 244, .34); background: rgba(125, 243, 244, .08); color: #e8fbff; }
.recharge-plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.recharge-plan-card {
  min-height: 78px;
  display: grid;
  place-items: center;
  gap: 5px;
  border: 1px solid rgba(80, 218, 236, .28);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(23, 63, 73, .72), rgba(24, 30, 41, .95));
  color: #f5f7fb;
}
.recharge-plan-card strong { font-size: 20px; }
.recharge-plan-card span { color: #9fd6e3; font-size: 13px; }
.custom-recharge { grid-template-columns: 1fr auto; align-items: end; margin-top: 14px; }
.payment-qr-wrap { display: grid; justify-items: center; gap: 10px; text-align: center; color: #c9d7e6; }
.payment-qr-wrap img { width: 192px; height: 192px; border-radius: 14px; background: #fff; }
.payment-qr-wrap strong { color: #fff; font-size: 20px; }

@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .topbar, .top-actions { flex-direction: column; align-items: stretch; min-width: 0; }
  .stats, .content-layout, .admin-grid, .form-row { grid-template-columns: 1fr; }
  .points-account-panel { grid-template-columns: 1fr; }
  .account-storage-entry,
  .storage-overview-panel,
  .storage-rule-grid,
  .storage-plan-grid { grid-template-columns: 1fr; }
  .hero-panel { grid-column: auto; }
  .admin-card.wide { grid-column: auto; }
  .project-grid.table .work-card, .admin-row, .wide-row { grid-template-columns: 1fr; }
}

/* Unified product polish layer */
:root {
  --surface-0: #0b0f14;
  --surface-1: rgba(18, 24, 33, .92);
  --surface-2: rgba(24, 31, 42, .94);
  --surface-3: rgba(35, 44, 58, .96);
  --brand-a: #2ee6c8;
  --brand-b: #45c7ff;
  --focus: rgba(69, 199, 255, .32);
  --soft-shadow: 0 18px 48px rgba(0, 0, 0, .28);
}

body {
  background:
    linear-gradient(135deg, rgba(46, 230, 200, .08), transparent 34%),
    linear-gradient(180deg, #0d1218 0%, #070a0f 100%);
}

button,
.primary,
.ghost,
.link-button,
.tabs button,
.nav button,
.folder-item {
  min-height: 40px;
  border-radius: 8px;
  font-weight: 800;
  transition: transform .14s ease, border-color .14s ease, background .14s ease, box-shadow .14s ease, opacity .14s ease;
}

button:hover,
.primary:hover,
.ghost:hover,
.link-button:hover {
  transform: translateY(-1px);
}

button:active,
.primary:active,
.ghost:active,
.link-button:active {
  transform: translateY(0);
}

button:disabled {
  cursor: not-allowed;
  opacity: .55;
  transform: none;
}

.primary,
.wallet-primary,
.point-actions button:last-child,
[data-recharge-points] {
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
  color: #04141b;
  box-shadow: 0 10px 26px rgba(45, 213, 218, .18);
}

.ghost,
.link-button,
.tabs button,
.nav button,
.folder-item,
.wallet-secondary,
[data-redeem-code] {
  border: 1px solid rgba(118, 140, 170, .24);
  background: linear-gradient(180deg, rgba(35, 42, 55, .98), rgba(25, 31, 42, .98));
  color: #e8f2ff;
}

.ghost:hover,
.link-button:hover,
.tabs button:hover,
.nav button:hover,
.folder-item:hover,
[data-redeem-code]:hover {
  border-color: rgba(69, 199, 255, .58);
  background: linear-gradient(180deg, rgba(39, 51, 68, .98), rgba(28, 39, 53, .98));
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(69, 199, 255, .78);
  box-shadow: 0 0 0 3px var(--focus);
}

.sidebar,
.stats div,
.panel,
.folders,
.profile-panel,
.points-account-panel article,
.work-card,
.wallet-dialog-card,
dialog {
  border-color: rgba(118, 140, 170, .22);
  background: var(--surface-1);
  box-shadow: var(--soft-shadow);
}

.stats div,
.panel,
.folders,
.profile-panel,
.points-account-panel article,
.wallet-dialog-card,
dialog {
  border-radius: 10px;
}

.work-card {
  background: linear-gradient(180deg, rgba(20, 26, 35, .96), rgba(14, 18, 25, .96));
}

.work-card:hover {
  border-color: rgba(69, 199, 255, .58);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .30);
}

.point-actions button,
.points-account-panel button,
.wallet-form button,
.recharge-plan-card {
  font-weight: 900;
}

.wallet-dialog-card {
  border: 1px solid rgba(69, 199, 255, .34);
}

.wallet-dialog-card header button,
dialog button[value="cancel"] {
  background: rgba(118, 140, 170, .16);
  border: 1px solid rgba(118, 140, 170, .24);
}
