﻿:root {
  --bg-0: #02060c;
  --bg-1: #07111d;
  --bg-2: #0f1e2e;
  --panel: rgba(7, 17, 29, 0.88);
  --panel-strong: #0b1827;
  --panel-soft: #111f31;
  --line: #1c3247;
  --line-strong: #2a4a67;
  --text: #e7edf4;
  --muted: #9db0c4;
  --ok: #38b56d;
  --ok-2: #1b8a4b;
  --warn: #e6a10f;
  --danger: #d14a4a;
  --info: #3fa9f5;
  --accent: #21c78b;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Exo 2", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 20%, rgba(33, 199, 139, 0.12), transparent 35%),
    radial-gradient(circle at 80% 0%, rgba(63, 169, 245, 0.15), transparent 28%),
    linear-gradient(140deg, var(--bg-0), var(--bg-1) 52%, var(--bg-2));
  background-attachment: fixed;
}

.app-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: rgba(2, 10, 18, 0.75);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 14px 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.logo-ring {
  width: 66px;
  height: 66px;
  border-radius: 999px;
  border: 2px solid #f6d462;
  box-shadow:
    0 0 0 3px rgba(246, 212, 98, 0.16),
    0 0 18px rgba(246, 212, 98, 0.4);
  background: radial-gradient(circle at 30% 28%, rgba(255, 221, 116, 0.3), rgba(19, 27, 38, 0.92));
  overflow: hidden;
  flex: 0 0 auto;
}

.logo-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.brand h1 {
  margin: 0;
  font-family: "Rajdhani", sans-serif;
  letter-spacing: 1px;
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  color: #f8d95f;
  text-shadow:
    0 0 8px rgba(248, 217, 95, 0.35),
    0 0 18px rgba(248, 217, 95, 0.2);
}

.brand p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.brand .credit-name {
  color: #f8d95f;
  font-weight: 800;
  text-shadow: 0 0 8px rgba(248, 217, 95, 0.25);
}

.nav-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.nav-link {
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--panel-soft);
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-btn {
  font-family: inherit;
  line-height: 1;
  cursor: pointer;
}

.music-control-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.music-icon-btn {
  width: 42px;
  height: 42px;
  padding: 0;
  border-color: #345270;
  background: #112238;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.music-icon-btn.active {
  border-color: #2aa86f;
  background: #0f2a1f;
  color: #c8ffe3;
}

.music-icon-btn.muted {
  border-color: #8d6a2b;
  background: #2c210f;
  color: #f9db96;
}

.speaker-svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.speaker-svg .speaker-wave {
  fill: none;
}

.music-icon-btn.muted .speaker-wave {
  opacity: 0.34;
}

.music-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  min-width: 232px;
  padding: 8px 10px;
  border: 1px solid #23445c;
  border-radius: 12px;
  background: rgba(8, 18, 32, 0.96);
  box-shadow: 0 10px 24px rgba(2, 7, 13, 0.56);
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 50;
}

.music-popover.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.music-volume-slider {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  min-width: 0;
  height: 4px;
  border-radius: 999px;
  background: #2a3f50;
  cursor: pointer;
}

.music-volume-slider::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: #2a3f50;
}

.music-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1px solid #8d6a2b;
  background: #f3c86d;
  margin-top: -5px;
  box-shadow: none;
}

.music-volume-slider::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: #2a3f50;
}

.music-volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1px solid #8d6a2b;
  background: #f3c86d;
  box-shadow: none;
}

.music-volume-value {
  min-width: 24px;
  text-align: right;
  font-weight: 700;
  font-size: 0.9rem;
  color: #d6e7f8;
}

.nav-link.active {
  border-color: var(--line-strong);
  background: #12304a;
}

.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(9, 24, 39, 0.75);
}

.account-mail {
  font-size: 0.78rem;
  color: var(--muted);
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page {
  margin-top: 16px;
  display: grid;
  gap: 14px;
}

.yt-music-host {
  position: fixed;
  width: 1px;
  height: 1px;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  pointer-events: none;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.panel h2,
.panel h3 {
  margin: 0;
  font-family: "Rajdhani", sans-serif;
  letter-spacing: 0.6px;
}

.panel-note {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 0.85rem;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #06111d;
  color: var(--text);
  padding: 8px 10px;
  font-family: inherit;
  font-size: 0.95rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(33, 199, 139, 0.35);
  border-color: #2d7f65;
}

.btn {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 13px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  color: white;
  background: #24445d;
}

.btn:hover {
  filter: brightness(1.08);
}

.btn.primary {
  background: linear-gradient(120deg, var(--ok-2), var(--ok));
}

.btn.info {
  background: linear-gradient(120deg, #216a9d, var(--info));
}

.btn.warn {
  background: linear-gradient(120deg, #ab7412, var(--warn));
}

.btn.danger {
  background: linear-gradient(120deg, #8d2c2c, var(--danger));
}

.btn.ghost {
  border-color: var(--line);
  background: #0d1b2b;
}

.btn.small {
  padding: 7px 10px;
  font-size: 0.82rem;
}

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

.history-tools {
  align-items: center;
}

.dashboard-switcher {
  max-width: 1060px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border-color: #265374;
  background:
    radial-gradient(circle at 12% -16%, rgba(248, 217, 95, 0.2), transparent 38%),
    radial-gradient(circle at 96% 120%, rgba(33, 199, 139, 0.16), transparent 40%),
    linear-gradient(160deg, rgba(4, 14, 24, 0.96), rgba(7, 19, 31, 0.9));
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.dashboard-switcher::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(247, 216, 127, 0.55), transparent);
}

.home-tool-hub {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(210px, 1fr));
  gap: 14px;
}

.home-tool-btn {
  text-decoration: none;
  color: #e7eef7;
  border: 1px solid #274d6d;
  border-radius: 16px;
  padding: 14px;
  display: grid;
  gap: 8px;
  background: linear-gradient(155deg, rgba(8, 23, 37, 0.92), rgba(9, 18, 28, 0.88));
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
  min-height: 132px;
}

.home-tool-btn strong {
  font-family: "Rajdhani", sans-serif;
  font-size: 1.23rem;
  letter-spacing: 0.5px;
  color: #f3d487;
}

.home-tool-btn small {
  color: #9db0c4;
  font-size: 0.84rem;
  line-height: 1.35;
}

.home-tool-btn:hover {
  transform: translateY(-2px);
  border-color: #4d8fbd;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.26);
}

.home-tool-tag {
  display: inline-flex;
  width: max-content;
  min-height: 24px;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.73rem;
  font-weight: 700;
  border: 1px solid #3b789f;
  background: rgba(31, 81, 114, 0.32);
  color: #cbe5fb;
}

.home-tool-btn-farm {
  border-color: #2f6f4e;
}

.home-tool-btn-farm .home-tool-tag {
  border-color: #3f8662;
  background: rgba(37, 101, 73, 0.3);
  color: #b7efd0;
}

.home-tool-btn-pus {
  border-color: #315f8b;
}

.home-tool-btn-pus .home-tool-tag {
  border-color: #3d6ea6;
  background: rgba(33, 78, 127, 0.3);
  color: #bedcff;
}

.home-tool-btn-gb {
  border-color: #7f6131;
}

.home-tool-btn-gb .home-tool-tag {
  border-color: #9c7a35;
  background: rgba(101, 75, 27, 0.32);
  color: #ffe4a8;
}

.home-tool-btn-expense {
  border-color: #7a3b6d;
}

.home-tool-btn-expense .home-tool-tag {
  border-color: #a05590;
  background: rgba(101, 38, 88, 0.34);
  color: #ffd2f4;
}

.dashboard-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 16px;
}

.dashboard-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #214764;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(10, 25, 41, 0.9), rgba(7, 18, 30, 0.84));
  padding: 16px;
  display: grid;
  gap: 10px;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.dashboard-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(124, 211, 255, 0.82), transparent);
}

.dashboard-card::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 90px;
  height: 90px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(124, 211, 255, 0.16), transparent 70%);
  pointer-events: none;
}

.dashboard-card:hover {
  transform: translateY(-2px);
  border-color: #3a81ae;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.28);
}

.dashboard-card-farm {
  border-color: #2f6f4e;
}

.dashboard-card-farm::before {
  background: linear-gradient(90deg, transparent, rgba(120, 238, 169, 0.88), transparent);
}

.dashboard-card-farm::after {
  background: radial-gradient(circle, rgba(120, 238, 169, 0.18), transparent 70%);
}

.dashboard-card-pus {
  border-color: #315f8b;
}

.dashboard-card-pus::before {
  background: linear-gradient(90deg, transparent, rgba(140, 193, 255, 0.88), transparent);
}

.dashboard-card-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.dashboard-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #356c8f;
  background: rgba(34, 95, 129, 0.28);
  color: #bdddf5;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.dashboard-card-farm .dashboard-chip {
  border-color: #3f8662;
  background: rgba(37, 101, 73, 0.3);
  color: #b7efd0;
}

.dashboard-card-pus .dashboard-chip {
  border-color: #3d6ea6;
  background: rgba(33, 78, 127, 0.3);
  color: #bedcff;
}

.dashboard-card-gb {
  border-color: #7f6131;
}

.dashboard-card-gb::before {
  background: linear-gradient(90deg, transparent, rgba(244, 186, 79, 0.88), transparent);
}

.dashboard-card-gb::after {
  background: radial-gradient(circle, rgba(244, 186, 79, 0.2), transparent 70%);
}

.dashboard-card-gb .dashboard-chip {
  border-color: #9c7a35;
  background: rgba(101, 75, 27, 0.32);
  color: #ffe4a8;
}

.dashboard-card h3 {
  margin: 0;
  color: #f4d37a;
  font-family: "Rajdhani", sans-serif;
  letter-spacing: 0.6px;
  font-size: 1.35rem;
}

.dashboard-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.dashboard-card .inline-actions {
  margin-top: 2px;
}

.farm-dashboard-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.farm-dashboard-tab-btn {
  border: 1px solid var(--line);
  background: #0d1f31;
  color: #d4e1ef;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.farm-dashboard-tab-btn.active {
  background: #2b6d49;
  border-color: #3e9a66;
  color: #dfffe9;
}

.gb-control-panel {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.gb-periods {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.gb-period-btn {
  border: 1px solid #2b425a;
  border-radius: 10px;
  background: #0e1d2d;
  color: #c9d8e6;
  min-height: 32px;
  min-width: 42px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.gb-period-btn.active {
  border-color: #bb8a2f;
  background: #4a3413;
  color: #ffe2a7;
}

.gb-all-btn {
  margin-left: 6px;
}

.gb-server-row {
  display: grid;
  gap: 6px;
}

.gb-server-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gb-server-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #102338;
  color: #c9d8e7;
  min-height: 32px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.gb-server-chip.active {
  border-color: #2f81a9;
  background: #123149;
  color: #e6f4ff;
}

.gb-server-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
  flex: 0 0 auto;
}

.gb-chart-wrap {
  margin-top: 6px;
  border: 1px solid #1b3249;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(8, 20, 33, 0.96), rgba(6, 15, 25, 0.9));
  overflow: hidden;
}

.gb-chart-svg {
  width: 100%;
  height: auto;
  display: block;
}

.gb-plot-bg {
  fill: rgba(9, 24, 39, 0.75);
  stroke: #1a3148;
  stroke-width: 1;
}

.gb-grid-line {
  stroke: #1d344a;
  stroke-width: 1;
}

.gb-grid-line-x {
  stroke: #1a2b3d;
}

.gb-axis-label {
  fill: #8ea6bb;
  font-size: 11px;
  font-family: "Exo 2", "Segoe UI", sans-serif;
}

.gb-line {
  fill: none;
  stroke-width: 2.3;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.gb-dot {
  opacity: 0.95;
}

.gb-legend {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gb-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
  color: #d7e7f5;
  background: rgba(14, 33, 51, 0.74);
}

.gb-table td {
  vertical-align: middle;
}

.gb-table-server {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.gb-change-up {
  color: #6ee7a8;
  font-weight: 700;
}

.gb-change-down {
  color: #ff9393;
  font-weight: 700;
}

.gb-change-flat {
  color: #a8bacd;
  font-weight: 700;
}

.pus-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  gap: 14px;
}

.expense-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  gap: 14px;
}

.pus-left-col {
  display: grid;
  gap: 14px;
}

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

.pus-server-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pus-server-btn {
  border: 1px solid var(--line);
  background: #0d1f31;
  color: #d2deec;
  border-radius: 10px;
  padding: 8px 10px;
  min-width: 104px;
  font-size: 0.82rem;
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 2px;
}

.pus-server-btn small {
  color: #9fb0c3;
  font-size: 0.76rem;
}

.pus-server-btn.active {
  border-color: #d9a440;
  background: #3a2a12;
  color: #ffd98d;
}

.pus-tab-btn {
  border: 1px solid var(--line);
  background: #0d1f31;
  color: #d4e1ef;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.pus-tab-btn.active {
  background: #1d6ea0;
  border-color: #3297d7;
  color: white;
}

.pus-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pus-title-plus {
  color: #9eb0c5;
  font-weight: 800;
  font-size: 0.92rem;
}

.pus-anchor-tab {
  border: 1px solid #9c7a35;
  background: rgba(101, 75, 27, 0.32);
  color: #ffe4a8;
  border-radius: 999px;
  min-height: 26px;
  padding: 3px 10px;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.3px;
}

.pus-anchor-tab:hover {
  border-color: #c79a45;
  background: rgba(116, 83, 28, 0.45);
}

.pus-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.pus-item-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(11, 24, 39, 0.72);
  padding: 10px;
  display: grid;
  gap: 8px;
}

.pus-item-icon-wrap {
  width: 100%;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pus-item-icon {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.45));
}

.pus-item-icon-placeholder {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  border: 1px dashed var(--line);
  background: #15273a;
  color: #9bb0c4;
  font-size: 0.78rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pus-item-icon-asset {
  width: 72px;
  border-style: solid;
  border-color: #a38344;
  background: #2d220f;
  color: #ffe4a8;
  font-size: 0.68rem;
  letter-spacing: 0.4px;
}

.pus-item-name {
  font-size: 0.88rem;
  min-height: 36px;
  color: #e4edf8;
  line-height: 1.2;
  text-align: center;
}

.pus-item-cash {
  font-weight: 700;
  color: #ffd888;
  font-size: 0.85rem;
}

.pus-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid #916d2a;
  background: #f3c55f;
  color: #20180b;
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pus-cart-panel {
  position: sticky;
  top: 92px;
  align-self: start;
}

.pus-cart-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 2px;
}

.pus-cart-row {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(12, 30, 47, 0.74);
  padding: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.pus-cart-name {
  font-size: 0.84rem;
  font-weight: 700;
}

.pus-cart-qty {
  min-width: 22px;
  text-align: center;
  font-weight: 700;
}

.pus-summary {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  display: grid;
  gap: 7px;
}

.pus-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.88rem;
}

.pus-summary-row-total {
  border-top: 1px dashed #24445f;
  padding-top: 8px;
  margin-top: 2px;
}

.pus-summary-row-total strong {
  color: #8af2bb;
}

.pus-daily-target {
  margin-top: 14px;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
  display: grid;
  gap: 8px;
}

.pus-daily-target-title {
  font-size: 0.86rem;
  font-weight: 800;
  color: #f3d082;
  letter-spacing: 0.3px;
}

.auth-panel {
  max-width: 760px;
  margin: 0 auto;
}

.branding-preview-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.preview-ring {
  width: 76px;
  height: 76px;
}

.membership-select {
  min-height: 34px;
  min-width: 108px;
  font-size: 0.84rem;
}

.member-pass-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.member-pass-code {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 8px;
  border: 1px solid #24445f;
  border-radius: 8px;
  background: rgba(10, 28, 44, 0.75);
  color: #ffe3a8;
  font-size: 0.78rem;
  font-family: "JetBrains Mono", "Fira Code", Consolas, monospace;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 12px;
}

.stat-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: rgba(11, 24, 39, 0.8);
}

.stat-title {
  font-size: 0.78rem;
  color: var(--muted);
}

.stat-value {
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 6px;
  color: #74dca8;
}

.stat-sub {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 4px;
}

.clan-stats-list {
  display: grid;
  gap: 12px;
}

.clan-stat-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(11, 24, 39, 0.72);
  padding: 12px;
  display: grid;
  gap: 10px;
}

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

.clan-name {
  font-size: 1.03rem;
  font-weight: 700;
  color: #9decc8;
}

.metric-row {
  display: grid;
  grid-template-columns: 112px 1fr auto;
  align-items: center;
  gap: 10px;
}

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

.metric-track {
  position: relative;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #102336;
  border: 1px solid #1f354b;
  overflow: hidden;
}

.metric-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
}

.metric-fill.metric-drop {
  background: linear-gradient(120deg, #1f7fbc, #44c2ff);
}

.metric-fill.metric-revenue {
  background: linear-gradient(120deg, #1f8a4b, #40d482);
}

.weekday-grid {
  display: grid;
  gap: 6px;
}

.weekday-row {
  display: grid;
  grid-template-columns: 36px 1fr 48px;
  align-items: center;
  gap: 8px;
}

.weekday-label {
  font-size: 0.76rem;
  color: var(--muted);
}

.weekday-track {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: #0f2030;
  border: 1px solid #1b3146;
}

.weekday-fill {
  display: block;
  height: 100%;
  background: linear-gradient(120deg, #f0b34f, #f7d57d);
}

.weekday-value {
  font-size: 0.78rem;
  color: #dbe8f6;
  text-align: right;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.76rem;
  border: 1px solid var(--line);
  color: var(--text);
  background: #0f2133;
}

.badge.active {
  border-color: #2f7d63;
  color: #a9f4d3;
}

.badge.closed {
  border-color: #986b2f;
  color: #ffd390;
}

.badge.archived {
  border-color: #5b6270;
  color: #c8ced8;
}

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

.list-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(11, 24, 39, 0.7);
  padding: 11px;
  display: grid;
  gap: 8px;
}

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

.farm-title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.farm-check-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.farm-select {
  width: 18px;
  height: 18px;
  min-height: 18px;
  accent-color: #f3c95f;
  cursor: pointer;
}

.list-item-title {
  font-weight: 700;
}

.muted {
  color: var(--muted);
}

.segment-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: rgba(11, 24, 39, 0.72);
  display: grid;
  gap: 10px;
}

.segment-title {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.table th,
.table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 0.9rem;
}

.table th {
  font-size: 0.8rem;
  color: #c9d8e6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(12, 31, 48, 0.8);
}

.table tr:last-child td {
  border-bottom: none;
}

.money {
  color: #7cedb5;
  font-weight: 700;
}

.warning {
  color: #ffcd78;
  font-weight: 700;
}

.success {
  color: #8af2bb;
  font-weight: 700;
}

.job-pill {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.74rem;
  font-weight: 700;
}

.job-Warrior { background: rgba(188, 61, 61, 0.2); border-color: #8f3a3a; color: #f2b8b8; }
.job-Priest { background: rgba(64, 153, 113, 0.2); border-color: #3d7f62; color: #ace9cd; }
.job-Rogue { background: rgba(176, 136, 41, 0.2); border-color: #8c6f2f; color: #f2dd9c; }
.job-Mage { background: rgba(47, 114, 173, 0.2); border-color: #2d638f; color: #a7d7ff; }
.job-Archer { background: rgba(72, 151, 92, 0.22); border-color: #3d8051; color: #b7f0c4; }

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

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  background: #0b2236;
  border: 1px solid var(--line-strong);
  color: #d4ebff;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.9rem;
  display: none;
  max-width: min(90vw, 360px);
}

.empty {
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
}

@media (max-width: 1080px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
  .home-tool-hub { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .pus-main-grid { grid-template-columns: 1fr; }
  .expense-main-grid { grid-template-columns: 1fr; }
  .pus-cart-panel {
    position: static;
    top: auto;
  }
}

@media (max-width: 760px) {
  .app-shell { padding: 12px; }
  .topbar { border-radius: 16px; }
  .brand-wrap { width: 100%; }
  .logo-ring { width: 56px; height: 56px; }
  .brand h1 { line-height: 1; }
  .history-tools { width: 100%; }
  .account-chip { width: 100%; justify-content: space-between; }
  .account-mail { max-width: 58vw; }
  .branding-preview-wrap { flex-direction: column; align-items: flex-start; }
  .stats { grid-template-columns: 1fr; }
  .table { min-width: 620px; }
  .btn { width: 100%; }
  .inline-actions .btn,
  .inline-actions .nav-link {
    width: auto;
  }
  .metric-row { grid-template-columns: 1fr; gap: 5px; }
  .weekday-row { grid-template-columns: 30px 1fr 44px; }
  .home-tool-btn { min-height: 116px; }
  .music-icon-btn {
    width: 38px;
    height: 38px;
  }
  .music-popover {
    min-width: 190px;
    padding: 7px 8px;
  }
}
