:root {
  --bg: #040708;
  --bg-2: #0a1011;
  --panel: #0d1518;
  --panel-2: #101b1f;
  --line: #1f3234;
  --text: #e8fff3;
  --muted: #8fb7a8;
  --accent: #56ffb4;
  --accent-2: #92ffd1;
  --danger: #ff5a7a;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Avenir Next", "Futura", "Century Gothic", "Noto Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% -8%, rgba(58, 145, 118, 0.28) 0%, transparent 30%),
    radial-gradient(circle at 90% -18%, rgba(42, 98, 78, 0.24) 0%, transparent 35%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  overflow-x: hidden;
}

.bg-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 0.6px, transparent 0.6px);
  background-size: 3px 3px;
}

.shell {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 16px 48px;
  display: grid;
  gap: 16px;
  z-index: 1;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  box-shadow: var(--shadow);
}

.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 22px;
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-family: "Marck Script", cursive;
  font-size: clamp(2.53rem, 5.3vw, 3.57rem);
  letter-spacing: 0.01em;
  line-height: 1.08;
}

.hero-sub {
  margin-top: 10px;
  color: var(--muted);
  max-width: 60ch;
}

.hero-actions {
  display: grid;
  justify-items: end;
  gap: 14px;
}

.hero-art {
  position: relative;
  width: min(440px, 46vw);
  height: 108px;
  margin-right: 22px;
  pointer-events: none;
}

.hero-art-img {
  position: absolute;
  border-radius: 14px;
  object-fit: contain;
  opacity: 0.72;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.34)) saturate(0.95) brightness(0.94);
}

.hero-art-1 {
  width: 68px;
  height: 68px;
  top: 26px;
  left: 0;
  transform: rotate(-8deg);
}

.hero-art-2 {
  width: 86px;
  height: 86px;
  top: 2px;
  left: 62px;
  opacity: 0.78;
  transform: rotate(-3deg);
}

.hero-art-3 {
  width: 74px;
  height: 74px;
  top: 24px;
  left: 132px;
  opacity: 0.66;
  transform: rotate(4deg);
}

.hero-art-4 {
  width: 74px;
  height: 74px;
  top: 0;
  left: 236px;
  opacity: 0.8;
  transform: rotate(7deg);
}

.hero-art-5 {
  width: 64px;
  height: 64px;
  top: 20px;
  left: 308px;
  opacity: 0.7;
  transform: rotate(-6deg);
}

.hero-art-6 {
  width: 54px;
  height: 54px;
  top: 6px;
  left: 378px;
  opacity: 0.62;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.32)) blur(0.2px) saturate(0.95) brightness(0.94);
  transform: rotate(10deg);
}

.mini-links {
  display: flex;
  gap: 6px;
}

.mini-btn {
  border: 1px solid #2a4b3e;
  background: #0b1914;
  color: var(--accent-2);
  font-size: 0.74rem;
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
}

.mini-btn:hover {
  background: #11231b;
}

.updated {
  color: var(--muted);
  font-size: 0.9rem;
}

.controls {
  padding: 18px;
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}

.control-block {
  display: grid;
  gap: 10px;
}

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

.control-head h2 {
  font-size: 1rem;
  color: var(--accent);
}

.hint {
  color: var(--muted);
  font-size: 0.82rem;
}

.search-wrap {
  position: relative;
}

.search-input {
  width: 100%;
  border: 1px solid #284138;
  background: #0a1512;
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(86, 255, 180, 0.18);
}

.inline-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: none;
  z-index: 8;
  border: 1px solid #2a4d40;
  background: #0a1512;
  border-radius: 10px;
  overflow: hidden;
  max-height: 250px;
  overflow-y: auto;
}

.search-results.visible {
  display: block;
}

.search-option {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--text);
  padding: 10px 12px;
  cursor: pointer;
}

.search-option:hover,
.search-option:focus-visible {
  background: rgba(86, 255, 180, 0.12);
}

.search-meta {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 34px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #2a4b40;
  background: #0f1e19;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.82rem;
  color: #dfe9ff;
}

.tag-remove {
  border: 0;
  background: transparent;
  color: #ff8ca0;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.86rem;
  line-height: 1;
}

.actions-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.btn {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.07);
}

.btn:active {
  transform: translateY(1px);
}

.btn:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(86, 255, 180, 0.2);
}

.btn-primary {
  background: linear-gradient(120deg, #7bffcc 0%, #56ffb4 100%);
  color: #052115;
}

.btn-soft {
  background: #14261f;
  color: #dfffee;
  border-color: #2e4b40;
}

.btn-danger {
  background: linear-gradient(120deg, #ff5a7a 0%, #d73759 100%);
  color: #fff3f7;
}

.btn-ghost {
  background: transparent;
  color: var(--accent-2);
  border-color: #325748;
}

.layout {
  display: grid;
  gap: 16px;
  grid-template-columns: 1.08fr 0.92fr;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 18px 18px 0;
}

.section-head h2 {
  font-size: 1.05rem;
}

.grid {
  padding: 18px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.card {
  border: 1px solid #284038;
  background: #0b1714;
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 6px;
}

.card h3 {
  font-size: 0.98rem;
}

.label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

.value {
  font-size: 1.02rem;
  font-weight: 700;
}

.rate {
  color: var(--accent);
  font-size: 1.06rem;
  font-weight: 800;
}

.time {
  color: var(--accent-2);
  font-weight: 700;
}

.status {
  color: var(--muted);
  font-size: 0.82rem;
}

.status.error {
  color: var(--danger);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(3, 6, 12, 0.78);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  padding: 18px;
}

.modal.open {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  max-width: min(1100px, 100%);
  max-height: min(90vh, 100%);
  transform: translateY(8px) scale(0.96);
  transition: transform 0.25s ease;
}

.modal.open .modal-content {
  transform: translateY(0) scale(1);
}

.modal-image {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid #33476d;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.55);
}

.reveal-up {
  animation: revealUp 0.45s ease both;
}

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

@media (max-width: 1000px) {
  .layout {
    grid-template-columns: 1fr;
  }

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

  .hero-art {
    width: min(390px, 62vw);
    height: 100px;
    margin-right: 4px;
  }

  .hero-art-1 { width: 62px; height: 62px; top: 24px; left: 0; }
  .hero-art-2 { width: 78px; height: 78px; top: 2px; left: 50px; }
  .hero-art-3 { width: 66px; height: 66px; top: 24px; left: 112px; }
  .hero-art-4 { width: 66px; height: 66px; top: 0; left: 194px; }
  .hero-art-5 { width: 58px; height: 58px; top: 20px; left: 252px; }
  .hero-art-6 { width: 48px; height: 48px; top: 6px; left: 314px; }
}

@media (max-width: 680px) {
  .shell {
    padding: 18px 12px 36px;
  }

  .hero,
  .controls,
  .section-head,
  .grid {
    padding-left: 12px;
    padding-right: 12px;
  }

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

  .inline-form {
    grid-template-columns: 1fr;
  }

  .hero {
    align-items: flex-start;
  }

  .hero-actions {
    justify-items: start;
    width: 100%;
  }

  .hero-art {
    width: min(100%, 320px);
    height: 90px;
    margin-right: 0;
  }

  .hero-art-1 { width: 56px; height: 56px; top: 20px; left: 0; }
  .hero-art-2 { width: 66px; height: 66px; top: 2px; left: 40px; }
  .hero-art-3 { width: 58px; height: 58px; top: 20px; left: 86px; }
  .hero-art-4 { width: 58px; height: 58px; top: 0; left: 152px; }
  .hero-art-5 { width: 50px; height: 50px; top: 18px; left: 202px; }
  .hero-art-6 { width: 42px; height: 42px; top: 6px; left: 252px; }
}
