: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;
}

.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 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(auto-fit, 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;
}

.home-tool-btn-market {
  border-color: #2a746f;
}

.home-tool-btn-market .home-tool-tag {
  border-color: #3d8c84;
  background: rgba(32, 106, 99, 0.34);
  color: #b8fff4;
}

.home-tool-btn-item-search {
  border-color: #6f5d2d;
}

.home-tool-btn-item-search .home-tool-tag {
  border-color: #9b8744;
  background: rgba(104, 86, 34, 0.34);
  color: #ffe8a8;
}

.home-tool-btn-taxi {
  border-color: #7b4c2c;
}

.home-tool-btn-taxi .home-tool-tag {
  border-color: #9b6b42;
  background: rgba(116, 74, 39, 0.34);
  color: #ffe0be;
}

.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;
}

.market-tab-switch {
  gap: 10px;
}

.market-tab-switch .market-main-tab {
  min-height: 40px;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.2px;
  border-color: #2d5d84;
  background: linear-gradient(160deg, rgba(14, 39, 61, 0.95), rgba(9, 27, 44, 0.9));
  box-shadow:
    0 0 0 1px rgba(86, 157, 204, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.market-tab-switch .market-main-tab:hover {
  border-color: #4e9ed8;
  box-shadow:
    0 0 0 1px rgba(91, 173, 228, 0.26),
    0 0 14px rgba(69, 158, 221, 0.28);
}

.market-tab-switch .market-main-tab.active {
  border-color: #47b46f;
  color: #eafff4;
  background: linear-gradient(160deg, rgba(29, 125, 83, 0.96), rgba(23, 98, 68, 0.9));
  box-shadow:
    0 0 0 1px rgba(90, 202, 144, 0.3),
    0 0 16px rgba(61, 194, 132, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.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 {
  position: relative;
  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-hover-crosshair {
  stroke: rgba(140, 191, 255, 0.45);
  stroke-width: 1.2;
  stroke-dasharray: 4 4;
  pointer-events: none;
}

.gb-hover-dot {
  stroke-width: 1.6;
  filter: drop-shadow(0 0 6px rgba(114, 184, 255, 0.5));
  pointer-events: none;
}

.gb-chart-tooltip {
  position: absolute;
  min-width: 160px;
  max-width: 240px;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid #3a5f86;
  background: linear-gradient(180deg, rgba(10, 28, 44, 0.98), rgba(7, 19, 31, 0.96));
  color: #e8f3ff;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 4;
  display: grid;
  gap: 2px;
}

.gb-chart-tooltip strong {
  font-size: 0.82rem;
  color: #ffffff;
}

.gb-chart-tooltip span {
  font-size: 0.78rem;
  color: #bfe1ff;
}

.gb-chart-tooltip small {
  margin-top: 2px;
  font-size: 0.72rem;
  color: #9bb6ce;
}

.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;
}

.market-recommendations {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: #d9e7f5;
}

.market-recommendations li {
  line-height: 1.4;
}

.market-profit-chart {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.market-profit-row {
  display: grid;
  grid-template-columns: minmax(160px, 0.8fr) minmax(0, 1.2fr) minmax(140px, auto);
  gap: 10px;
  align-items: center;
}

.market-profit-item {
  font-size: 0.85rem;
  color: #ddeaf8;
}

.market-profit-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid #27455f;
  background: #102335;
}

.market-profit-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.market-profit-fill.up {
  background: linear-gradient(120deg, #1f8f55, #4ad287);
}

.market-profit-fill.down {
  background: linear-gradient(120deg, #8f2b43, #e05a7a);
}

.market-profit-value {
  text-align: right;
  font-size: 0.82rem;
  font-weight: 700;
}

.market-profit-value.up {
  color: #87f4bd;
}

.market-profit-value.down {
  color: #ff9fb2;
}

.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;
}

.market-table-wrap {
  position: relative;
}

.market-action-col {
  position: sticky;
  right: 0;
  z-index: 6;
  min-width: 160px;
  background: rgba(13, 30, 45, 0.98);
  box-shadow: -10px 0 16px rgba(0, 0, 0, 0.22);
}

.market-action-cell {
  position: sticky;
  right: 0;
  z-index: 4;
  min-width: 160px;
  background: rgba(8, 22, 36, 0.95);
  box-shadow: -8px 0 14px rgba(0, 0, 0, 0.18);
}

.market-action-buttons {
  display: grid;
  gap: 7px;
  justify-items: start;
}

.market-action-buttons .btn {
  min-width: 108px;
  justify-content: center;
}

.taxi-active-list {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.taxi-active-card {
  border: 1px solid #2a4e6d;
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(10, 25, 41, 0.9), rgba(7, 18, 30, 0.85));
  padding: 11px;
  display: grid;
  gap: 8px;
}

.taxi-active-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.taxi-countdown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 4px 10px;
  border: 1px solid #2f7462;
  background: rgba(19, 78, 57, 0.35);
  color: #b9f4d6;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.taxi-countdown.expired {
  border-color: #8f4d40;
  background: rgba(96, 35, 35, 0.35);
  color: #ffd5d5;
}

.hr-line {
  border: none;
  border-top: 1px dashed #28506d;
  margin: 12px 0;
}

.taxi-finance-chart {
  display: grid;
  gap: 10px;
}

.taxi-chart-row {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: 10px;
  align-items: center;
}

.taxi-chart-label {
  color: #c9dcf0;
  font-size: 0.82rem;
  font-weight: 700;
}

.taxi-chart-bars {
  display: grid;
  gap: 4px;
}

.taxi-chart-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(17, 38, 58, 0.92);
  overflow: hidden;
}

.taxi-chart-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.taxi-chart-bar.income span {
  background: linear-gradient(90deg, #27b36d, #45e19b);
}

.taxi-chart-bar.expense span {
  background: linear-gradient(90deg, #d49c29, #f0c45f);
}

.taxi-chart-bar.profit span {
  background: linear-gradient(90deg, #2e8de2, #68b0f3);
}

.taxi-chart-bar.loss span {
  background: linear-gradient(90deg, #bf4e4e, #ea7e7e);
}

.taxi-chart-values {
  display: inline-flex;
  gap: 8px;
  color: #b6cadf;
  font-size: 0.74rem;
}

.item-search-filters {
  margin-top: 12px;
}

.usko-search-secondary .inline-actions {
  margin-top: 2px;
}

.item-search-merchant-toggle {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.item-search-merchant-toggle .btn {
  min-width: 84px;
}

.item-search-meta-note {
  margin-top: 10px;
}

.usko-sync-setup-panel {
  margin-top: 12px;
}

.sync-command-box {
  width: 100%;
  resize: vertical;
  min-height: 52px;
  background: rgba(6, 20, 32, 0.94);
  border: 1px solid #2f5978;
  color: #d4ebff;
  border-radius: 10px;
  padding: 10px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.8rem;
  line-height: 1.35;
}

.item-search-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.item-search-card {
  border: 1px solid #2a5474;
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(160deg, rgba(7, 21, 33, 0.96), rgba(8, 17, 27, 0.9));
  display: grid;
  gap: 10px;
}

.item-search-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
}

.item-search-thumb-wrap {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 1px solid #3a6789;
  background: linear-gradient(145deg, rgba(14, 39, 61, 0.8), rgba(12, 30, 48, 0.6));
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.item-search-thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.item-search-thumb-placeholder {
  color: #cbe4ff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.item-search-head-meta {
  display: grid;
  gap: 4px;
}

.item-search-rank {
  width: max-content;
  border-radius: 999px;
  padding: 2px 8px;
  border: 1px solid #5e7d2d;
  background: rgba(96, 122, 37, 0.28);
  color: #eaf7c7;
  font-size: 0.7rem;
  font-weight: 700;
}

.item-search-title {
  color: #f6ddb1;
  line-height: 1.22;
  font-size: 0.98rem;
}

.item-search-server {
  color: #9fbbd3;
}

.item-search-price {
  color: #8cf1be;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.item-search-table-wrap {
  margin-top: 8px;
}

.item-search-table-wrap table th,
.item-search-table-wrap table td {
  vertical-align: middle;
}

.item-search-table-wrap table th {
  color: #cde4ff;
  font-size: 0.86rem;
}

.item-search-table-wrap table td {
  font-size: 0.92rem;
}

.item-search-row-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.item-search-row-thumb-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid #35597a;
  background: rgba(9, 31, 51, 0.82);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 auto;
}

.item-search-row-thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.item-search-row-fallback {
  color: #cfe3f9;
  font-size: 0.72rem;
  font-weight: 700;
}

.item-search-row-main {
  display: grid;
  gap: 6px;
}

.item-search-row-main strong {
  color: #f6ddb1;
}

.item-search-row-main .btn {
  width: max-content;
  padding-inline: 12px;
}

.item-search-loc {
  color: #77f3bf;
  font-weight: 700;
}

.item-search-price-cell {
  color: #ff7d8c;
  font-weight: 800;
}

.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; }
  .grid-4 { grid-template-columns: 1fr; }
  .grid-5 { 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;
  }
  .taxi-chart-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .taxi-chart-values {
    justify-content: flex-start;
  }
  .music-popover {
    min-width: 190px;
    padding: 7px 8px;
  }

  .market-tab-switch .market-main-tab {
    min-height: 38px;
    padding: 8px 13px;
    font-size: 0.87rem;
  }

  .market-action-col,
  .market-action-cell {
    min-width: 148px;
  }

  .market-action-buttons .btn {
    width: auto;
  }
}

/* enucuzgb canlipazar — server + iki satırlı fiyat hücresi */
.item-search-server-cell {
  white-space: nowrap;
  font-weight: 600;
  color: #cbd5e1;
  letter-spacing: 0.02em;
}
.item-search-price-cell .item-search-price-noah {
  color: #ef4444;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.15;
  white-space: nowrap;
}
.item-search-price-cell .item-search-price-gb {
  color: #94a3b8;
  font-size: 0.78rem;
  line-height: 1.15;
  margin-top: 2px;
}

/* ============================================================
   enucuzgb canlipazar UI — server pills + filter controls
   ============================================================ */

.enucuzgb-server-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}
.enucuzgb-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: rgba(255,255,255,0.04);
  color: #cbd5e1;
  border: 2px solid #f5b800;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.05s;
  white-space: nowrap;
}
.enucuzgb-pill:hover {
  background: rgba(245, 184, 0, 0.15);
}
.enucuzgb-pill:active {
  transform: scale(0.97);
}
.enucuzgb-pill.active {
  background: #f5b800;
  color: #1a1a1a;
  border-color: #f5b800;
}
.enucuzgb-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
  flex-shrink: 0;
}
.enucuzgb-pill.active .enucuzgb-pill-dot {
  background: #1a1a1a;
}

.enucuzgb-search-box {
  position: relative;
  margin: 12px 0 16px 0;
}
.enucuzgb-search-box input[type="search"] {
  width: 100%;
  padding: 14px 16px 14px 44px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  color: #e6edf3;
  font-size: 0.95rem;
  box-sizing: border-box;
}
.enucuzgb-search-box input[type="search"]:focus {
  outline: none;
  border-color: rgba(245,184,0,0.5);
}
.enucuzgb-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  pointer-events: none;
  color: #64748b;
}

.enucuzgb-control-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 16px 0;
}
.enucuzgb-merchant-toggle {
  display: inline-flex;
  gap: 8px;
}
.enucuzgb-merchant-btn {
  padding: 10px 22px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  color: #cbd5e1;
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s;
}
.enucuzgb-merchant-btn:hover {
  background: rgba(255,255,255,0.08);
}
.enucuzgb-merchant-btn.active.sell {
  background: #f5b800;
  color: #1a1a1a;
  border-color: #f5b800;
}
.enucuzgb-merchant-btn.active.buy {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

.enucuzgb-control {
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  color: #e6edf3;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  min-width: 180px;
}
.enucuzgb-control:focus {
  outline: none;
  border-color: rgba(245,184,0,0.5);
}

.enucuzgb-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

/* Tablo: kolonlar arası daha geniş boşluk */
.item-search-table-wrap table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}
.item-search-table-wrap th,
.item-search-table-wrap td {
  padding: 12px 18px;
}
.item-search-table-wrap thead th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.item-search-table-wrap tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.item-search-table-wrap tbody tr:hover {
  background: rgba(255,255,255,0.02);
}

/* Mobil */
@media (max-width: 720px) {
  .enucuzgb-control-row { flex-direction: column; align-items: stretch; }
  .enucuzgb-control { width: 100%; }
  .enucuzgb-merchant-toggle { width: 100%; }
  .enucuzgb-merchant-btn { flex: 1; justify-content: center; }
}

/* Dropdown options — koyu arkaplan, sarı yazı */
.enucuzgb-control option,
.enucuzgb-control optgroup {
  background-color: #0e1117;
  color: #f5b800;
  padding: 8px 12px;
  font-weight: 500;
}
.enucuzgb-control option:hover,
.enucuzgb-control option:checked,
.enucuzgb-control option:focus {
  background-color: #1c2230;
  color: #fcd34d;
  box-shadow: inset 0 0 0 100px #1c2230;
}
.enucuzgb-control option:disabled {
  color: #475569;
}
/* Firefox: select element açılış oku ve focus rengi */
.enucuzgb-control {
  color-scheme: dark;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='%23f5b800'><path d='M6 8L0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 10px;
  padding-right: 36px;
}

/* enucuzgb: merchant kendi satırında, 3 dropdown başka satırda yan yana */
.enucuzgb-merchant-row {
  display: flex;
  margin: 16px 0 12px 0;
}
.enucuzgb-control-row .enucuzgb-control {
  flex: 1 1 0;
  min-width: 0;
}
@media (max-width: 720px) {
  .enucuzgb-control-row { flex-direction: column; }
  .enucuzgb-control-row .enucuzgb-control { width: 100%; flex: 1 1 auto; }
}

/* enucuzgb item adı renkleri (KO grade konvansiyonu) */
.item-color-normal     { color: #e6edf3; }              /* normal: beyaz */
.item-color-reverse    { color: #d946ef; }              /* reverse: parlak magenta */
.item-color-hepas      { color: #c084fc; }              /* hepas: mor */
.item-color-exceptional{ color: #fbbf24; }              /* exceptional: altın */
.item-color-unique     { color: #facc15; }              /* unique: sarı */
.item-color-rare       { color: #3b82f6; }              /* rare: mavi */

/* enucuzgb item type renkleri (KO ItemType numeric mapping) */
.item-color-normal     { color: #e6edf3; }              /* 0 — Normal beyaz */
.item-color-magic      { color: #3b82f6; }              /* 1 — Magic mavi */
.item-color-rare       { color: #3b82f6; }              /* 2 — Rare mavi (kullanıcı isteği) */
.item-color-craft      { color: #22c55e; }              /* 3 — Craft yeşil */
.item-color-unique     { color: #facc15; }              /* 4 — Unique altın sarısı */
.item-color-upgrade    { color: #a855f7; }              /* 5 — Upgrade mor */
.item-color-event      { color: #fbbf24; }              /* 6 — Event sarı */
.item-color-teleport   { color: #c084fc; }              /* 7 — Teleport mor */
.item-color-cospre     { color: #ec4899; }              /* 8/9 — Cospre pembe */
.item-color-reverse    { color: #fb923c; }              /* 11/12 — Reverse turuncu */

/* enucuzgb: server pills ikiye bölündü — bireysel üstte, gruplar (Tum) altta */
.enucuzgb-server-pills-individual {
  margin-bottom: 14px;
}
.enucuzgb-server-pills-group {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px dashed rgba(245, 184, 0, 0.18);
}
.enucuzgb-server-pills-group .enucuzgb-pill {
  border-color: rgba(245, 184, 0, 0.6);
  border-style: dashed;
}
.enucuzgb-server-pills-group .enucuzgb-pill.active {
  border-style: solid;
}
