:root {
  color: #1b1730;
  background: #f5f7fb;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: #7438f5; }
h1 { margin: 0; font-size: 30px; letter-spacing: -0.04em; }
h2 { margin: 0 0 12px; font-size: 18px; }
button, input, select, textarea { font: inherit; }

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 15% 10%, rgba(155, 109, 255, .45), transparent 32%),
    radial-gradient(circle at 90% 90%, rgba(116, 56, 245, .28), transparent 28%),
    #120f1c;
}
.login-panel { width: min(440px, 100%); }
.login-brand, .brand { display: flex; align-items: center; gap: 12px; color: white; }
.login-brand { margin-bottom: 18px; }
.login-brand strong, .brand strong { display: block; font-size: 22px; letter-spacing: -0.04em; }
.login-brand p, .brand small { margin: 0; color: #d9cff2; font-size: 13px; }
.mark {
  width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 16px; background: #7438f5; color: white; font-weight: 800; font-size: 22px;
  box-shadow: 0 10px 24px rgba(116, 56, 245, .35);
}
.login { display: grid; gap: 14px; padding: 28px; }
.login h1 { color: #1b1730; }
.login .btn { width: 100%; margin-top: 6px; }

.app { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
aside {
  background: #1d1830; color: white; padding: 22px 16px;
  display: flex; flex-direction: column; gap: 22px;
}
aside nav { display: grid; gap: 4px; }
aside a, aside button {
  color: #efeaff; text-decoration: none; background: transparent; border: 0;
  text-align: left; padding: 12px 14px; border-radius: 14px; cursor: pointer;
}
aside a:hover, aside button:hover { background: #2b2444; }
aside a.active { background: #7438f5; color: white; }
.aside-foot { margin-top: auto; display: grid; gap: 8px; }
.aside-foot small { color: #b7aec9; padding: 0 8px; word-break: break-all; }
main { padding: 28px; }
.page-head { margin-bottom: 18px; }
.card {
  background: white; border-radius: 22px; padding: 18px;
  box-shadow: 0 10px 30px rgba(27, 23, 48, .06);
}
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.metric { position: relative; overflow: hidden; min-height: 112px; }
.metric::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: #7438f5;
}
.metric span { color: #6f6886; display: block; font-size: 13px; font-weight: 700; }
.metric strong { display: block; margin-top: 10px; font-size: 34px; letter-spacing: -0.05em; }
.split { display: grid; grid-template-columns: 1.4fr .8fr; gap: 14px; margin-top: 14px; }
.toolbar, .filters {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: end;
  background: white; border-radius: 18px; padding: 14px; margin-bottom: 14px;
}
.form { display: grid; gap: 14px; max-width: 760px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: #6f6886; }
input, select, textarea {
  border: 1px solid #e4e0ef; border-radius: 14px; padding: 12px 14px;
  color: #1b1730; background: #fbfbfe; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: #7438f5; background: white; box-shadow: 0 0 0 4px rgba(116, 56, 245, .12); }
textarea { min-height: 110px; resize: vertical; }
.check { display: flex; align-items: center; gap: 8px; }
.btn, button.btn {
  background: #7438f5; color: white; border: 0; border-radius: 14px;
  padding: 12px 16px; text-decoration: none; cursor: pointer; font-weight: 700;
}
.btn:hover { background: #6230d6; }
.btn.danger { background: #d64545; }
.btn.ghost { background: #efeaff; color: #7438f5; }
table { width: 100%; border-collapse: collapse; background: white; border-radius: 22px; overflow: hidden; box-shadow: 0 10px 30px rgba(27, 23, 48, .05); }
th { color: #6f6886; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
th, td { text-align: left; padding: 14px; border-bottom: 1px solid #f0edf6; }
tr:last-child td { border-bottom: 0; }
.edit { font-weight: 800; text-decoration: none; }
.thumb, .preview { width: 52px; height: 52px; border-radius: 16px; object-fit: cover; display: inline-block; }
.preview { width: 128px; height: 128px; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 10px; font-size: 12px; font-weight: 800; }
.badge.on { background: #efeaff; color: #7438f5; }
.badge.off { background: #f3f1f7; color: #6f6886; }
.badge.premium { background: #fff4d6; color: #8a6500; }
.alert { padding: 12px 14px; border-radius: 14px; margin-bottom: 14px; font-weight: 700; }
.alert.ok { background: #e8f8ef; color: #146c3a; }
.alert.bad { background: #fdecec; color: #9d2c2c; }
.muted { color: #6f6886; }
.ok { color: #1d8a4e; font-weight: 700; }
.chart { display: flex; align-items: end; gap: 8px; min-height: 160px; }
.chart div { display: grid; justify-items: center; gap: 6px; }
.chart span { display: block; width: 28px; min-height: 6px; background: linear-gradient(#9b6dff, #7438f5); border-radius: 10px 10px 4px 4px; }
.chart small { color: #6f6886; }
.stickers { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin: 14px 0; }
.stickers article { background: white; border-radius: 18px; padding: 10px; display: grid; gap: 8px; box-shadow: 0 8px 24px rgba(27, 23, 48, .05); }
.stickers img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #f5f7fb; border-radius: 14px; }
#dropzone { border: 2px dashed #c9b8ff; border-radius: 18px; padding: 28px; text-align: center; color: #6f6886; background: #fbf9ff; }
.file-btn input { display: none; }
.preview-card { display: grid; justify-items: start; gap: 8px; align-content: start; }
.cards + .split, .split + .card, main > .card { margin-top: 14px; }
@media (max-width: 860px) {
  .app, .split { grid-template-columns: 1fr; }
  aside nav { grid-template-columns: 1fr 1fr; }
  .aside-foot { margin-top: 8px; }
  main { padding: 18px; }
}
