:root {
  --bg: #050608;
  --bg-soft: #0a0d11;
  --panel: rgba(10, 13, 16, 0.82);
  --panel-strong: rgba(13, 15, 19, 0.94);
  --panel-soft: rgba(255, 255, 255, 0.055);
  --ink: #f8efe1;
  --muted: #b9ad9a;
  --faint: #766c5e;
  --line: rgba(226, 176, 74, 0.22);
  --line-soft: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(238, 182, 61, 0.56);
  --gold: #d99a22;
  --gold-bright: #ffd66d;
  --green: #46e176;
  --red: #ff514d;
  --blue: #8ec8ff;
  --burgundy: #5b111b;
  --black: #050608;
  --radius-xl: 22px;
  --radius: 15px;
  --radius-sm: 10px;
  --sidebar: 248px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
  --glow: 0 0 32px rgba(217, 154, 34, 0.24);
  --mouse-x: 58vw;
  --mouse-y: 22vh;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -5;
  background:
    radial-gradient(circle at 58% 18%, rgba(255, 156, 45, 0.13), transparent 32vw),
    linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(5, 6, 8, 0.62) 48%, rgba(0, 0, 0, 0.88) 100%),
    linear-gradient(180deg, rgba(6, 7, 9, 0.18), rgba(5, 6, 8, 0.96) 70%),
    url("/assets/login-bg.png") center / cover no-repeat fixed;
  filter: saturate(1.05) contrast(1.04);
  transform: scale(1.02);
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  min-height: 42px;
  border: 0;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #f1bc47, #a76612);
  color: #1a0f04;
  cursor: pointer;
  font-weight: 850;
  padding: 0 15px;
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: var(--glow);
}

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

input,
select {
  min-height: 44px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.34);
  color: var(--ink);
  outline: none;
  padding: 0 13px;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

select {
  color-scheme: dark;
}

input::placeholder {
  color: rgba(248, 239, 225, 0.46);
}

input:focus,
select:focus {
  border-color: rgba(255, 214, 109, 0.8);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 0 0 4px rgba(217, 154, 34, 0.15);
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  margin-bottom: 0;
}

h1 {
  max-width: 760px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 4.25vw, 66px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-shadow: 0 16px 48px rgba(0, 0, 0, 0.86);
}

h2 {
  color: #fff7e9;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 700;
}

img {
  max-width: 100%;
}

.ambient-scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.scene-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(217, 154, 34, 0.14), transparent 25vw),
    radial-gradient(circle at 78% 14%, rgba(128, 24, 33, 0.28), transparent 36vw),
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.78));
}

.fog {
  position: absolute;
  width: 68vw;
  height: 28vh;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(238, 219, 176, 0.08), transparent);
  filter: blur(28px);
  opacity: 0.44;
  animation: drift 26s ease-in-out infinite alternate;
}

.fog-one {
  top: 16vh;
  left: -24vw;
}

.fog-two {
  right: -25vw;
  bottom: 12vh;
  animation-duration: 34s;
}

.ember-field {
  position: absolute;
  inset: 0;
  opacity: 0.32;
  background-image:
    radial-gradient(circle, rgba(236, 167, 64, 0.64) 0 1px, transparent 1.8px),
    radial-gradient(circle, rgba(255, 232, 170, 0.32) 0 1px, transparent 1.6px);
  background-size: 72px 90px, 116px 138px;
  animation: embers 18s linear infinite;
}

.cursor-light {
  position: absolute;
  left: var(--mouse-x);
  top: var(--mouse-y);
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 197, 101, 0.12), transparent 62%);
  filter: blur(18px);
  transform: translate(-50%, -50%);
}

.dashboard-layout {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(9, 11, 14, 0.96), rgba(5, 7, 10, 0.94)),
    radial-gradient(circle at 50% 0%, rgba(217, 154, 34, 0.13), transparent 180px);
  box-shadow: 18px 0 54px rgba(0, 0, 0, 0.28);
  padding: 18px 14px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.brand-lockup {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  color: var(--ink);
  text-decoration: none;
  padding: 2px 4px 18px;
  border-bottom: 1px solid rgba(217, 154, 34, 0.34);
}

.brand-sigil {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 225, 139, 0.76);
  border-radius: 50%;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 40px;
  line-height: 1;
  text-shadow: 0 0 18px rgba(255, 214, 109, 0.5);
  box-shadow: inset 0 0 22px rgba(217, 154, 34, 0.2), 0 0 22px rgba(217, 154, 34, 0.16);
}

.brand-sigil::before,
.brand-sigil::after {
  content: "";
  position: absolute;
  background: rgba(255, 225, 139, 0.9);
  box-shadow: 0 0 12px rgba(255, 214, 109, 0.42);
}

.brand-sigil::before {
  width: 2px;
  height: 63px;
  transform: rotate(-20deg);
}

.brand-sigil::after {
  width: 2px;
  height: 63px;
  transform: rotate(20deg);
}

.brand-copy strong,
.brand-copy small {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  text-transform: uppercase;
}

.brand-copy strong {
  color: #fff;
  font-size: 28px;
  letter-spacing: 0.04em;
  line-height: 0.94;
}

.brand-copy small {
  color: var(--gold-bright);
  font-size: 15px;
  letter-spacing: 0.32em;
  margin-left: 3px;
}

.sidebar-nav {
  display: grid;
  gap: 5px;
  margin: 14px 0;
}

.sidebar-nav a {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 39px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: rgba(248, 239, 225, 0.74);
  text-decoration: none;
  padding: 0 10px;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.is-active {
  color: #fff1c5;
  border-color: rgba(238, 182, 61, 0.36);
  background: linear-gradient(90deg, rgba(119, 18, 28, 0.86), rgba(72, 17, 20, 0.42));
  transform: translateX(2px);
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: rgba(255, 240, 195, 0.9);
  font-size: 20px;
}

.nav-arrow {
  color: rgba(255, 214, 109, 0.8);
  font-size: 19px;
}

.count-badge,
.hot-badge {
  min-width: 28px;
  border-radius: 7px;
  color: #ffe7a5;
  background: rgba(151, 96, 22, 0.72);
  font-size: 12px;
  line-height: 22px;
  text-align: center;
  padding: 0 6px;
}

.hot-badge,
.count-badge.is-red {
  background: rgba(140, 28, 36, 0.78);
  color: #fff;
}

.premium-card {
  border: 1px solid rgba(217, 154, 34, 0.28);
  border-radius: 10px;
  background:
    radial-gradient(circle at 80% 12%, rgba(255, 214, 109, 0.18), transparent 74px),
    linear-gradient(180deg, rgba(24, 20, 11, 0.86), rgba(8, 10, 11, 0.78));
  margin-top: auto;
  padding: 14px;
  box-shadow: inset 0 0 26px rgba(217, 154, 34, 0.05);
}

.premium-card strong {
  display: block;
  color: var(--gold-bright);
  font-size: 16px;
  margin-bottom: 9px;
}

.premium-card strong::before {
  content: "♕";
  margin-right: 8px;
}

.premium-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 0 0 12px;
}

.premium-card a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: 7px;
  background: linear-gradient(180deg, #efb744, #95590d);
  color: #fff6d9;
  font-weight: 800;
  text-decoration: underline;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.sidebar-note {
  color: rgba(248, 239, 225, 0.58);
  font-size: 12px;
  line-height: 1.42;
  margin: 16px 8px 10px;
}

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

.social-row span {
  display: grid;
  place-items: center;
  height: 38px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(248, 239, 225, 0.82);
}

.main-stage {
  min-width: 0;
  padding: 14px 20px 80px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) auto auto auto auto;
  align-items: center;
  gap: 14px;
  min-height: 66px;
  padding: 0 0 14px;
  background: linear-gradient(180deg, rgba(5, 6, 8, 0.88) 0%, rgba(5, 6, 8, 0.58) 66%, transparent 100%);
  backdrop-filter: blur(12px);
}

.top-search {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  width: min(420px, 100%);
  min-height: 46px;
  justify-self: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(5, 6, 8, 0.72);
  box-shadow: inset 0 0 22px rgba(255, 255, 255, 0.025), 0 18px 48px rgba(0, 0, 0, 0.2);
  padding: 0 10px 0 8px;
}

.search-icon {
  color: var(--gold-bright);
  font-size: 29px;
  line-height: 0;
  transform: rotate(-20deg);
}

.top-search input {
  min-height: 44px;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0 8px;
}

.top-search input:focus {
  box-shadow: none;
}

kbd {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(248, 239, 225, 0.58);
  font-size: 12px;
  font-family: inherit;
  padding: 5px 8px;
}

.discord-pill,
.region-pill,
.icon-button,
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  background: rgba(5, 6, 8, 0.68);
  color: var(--ink);
  text-decoration: none;
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.025);
}

.discord-pill {
  padding: 0 17px;
  font-weight: 800;
}

.discord-pill span {
  color: #b7a4ff;
  font-size: 20px;
}

.region-pill {
  padding: 0 10px 0 14px;
}

.region-pill span {
  font-size: 20px;
  color: #fff;
}

.region-pill select {
  min-height: 34px;
  border: 0;
  background: transparent;
  padding: 0 24px 0 0;
  color: #fff;
  font-weight: 800;
  box-shadow: none;
}

.icon-button {
  position: relative;
  justify-content: center;
  width: 48px;
  padding: 0;
  color: #fff2cf;
  background: rgba(5, 6, 8, 0.68);
}

.icon-button span {
  font-size: 21px;
}

.notification-button b {
  position: absolute;
  top: -7px;
  right: -4px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e93634;
  color: #fff;
  font-size: 11px;
}

.user-chip {
  min-width: 184px;
  justify-content: flex-start;
  padding: 0 10px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 214, 109, 0.34);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 25%, rgba(255, 255, 255, 0.12), rgba(7, 10, 14, 0.92));
  color: var(--gold-bright);
  font-size: 22px;
}

.user-chip strong,
.user-chip small {
  display: block;
}

.user-chip strong {
  color: #fff;
  font-size: 14px;
}

.user-chip small {
  color: var(--gold-bright);
  font-size: 12px;
}

.logout-button {
  min-height: 30px;
  margin-left: auto;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font-size: 12px;
}

.app-shell {
  display: grid;
  gap: 16px;
  width: min(1260px, 100%);
  margin: 0 auto;
}

.creator-strip,
.control-panel,
.catalog-panel,
.tracked-bar,
.detail-panel,
.metric,
.panel,
.hub-widget,
.live-feed-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(13, 16, 19, 0.88), rgba(5, 7, 9, 0.78));
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 374px;
  gap: 14px;
  align-items: stretch;
}

.hero-card {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 356px;
  overflow: hidden;
  border: 1px solid rgba(226, 176, 74, 0.16);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 72% 30%, rgba(255, 151, 54, 0.18), transparent 300px),
    linear-gradient(90deg, rgba(5, 6, 8, 0.96) 0%, rgba(8, 10, 13, 0.72) 46%, rgba(6, 7, 9, 0.25) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.86)),
    url("/assets/login-bg.png") 60% center / cover no-repeat;
  box-shadow: var(--shadow);
  padding: clamp(22px, 3.5vw, 36px) clamp(22px, 4vw, 44px) 58px;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 214, 109, 0.07), transparent 30%),
    radial-gradient(circle at 72% 18%, rgba(255, 214, 109, 0.18), transparent 34%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-bright);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero-lead {
  max-width: 620px;
  margin: 16px 0 0;
  color: rgba(248, 239, 225, 0.82);
  font-size: 17px;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.primary-link,
.ghost-action,
.csv-link,
.panel-link-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  border-radius: 9px;
  padding: 0 22px;
  font-weight: 850;
  text-decoration: none;
}

.primary-link {
  border: 1px solid rgba(255, 214, 109, 0.34);
  background: linear-gradient(180deg, #d28b18, #84500e);
  color: #fff8dc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), var(--glow);
}

.ghost-action,
.csv-link,
.panel-link-inline {
  border: 1px solid rgba(226, 176, 74, 0.34);
  background: rgba(5, 6, 8, 0.44);
  color: var(--ink);
}

.hero-stats {
  position: relative;
  z-index: 1;
  display: inline-grid;
  grid-template-columns: repeat(4, minmax(116px, 1fr));
  width: min(620px, 100%);
  margin-top: 22px;
  border: 1px solid rgba(226, 176, 74, 0.17);
  border-radius: 11px;
  background: rgba(6, 8, 10, 0.72);
  overflow: hidden;
}

.hero-stats div {
  position: relative;
  display: grid;
  grid-template-columns: 18px 1fr;
  grid-template-areas: "dot value" ". label";
  align-items: center;
  column-gap: 6px;
  min-height: 68px;
  padding: 12px 14px;
}

.hero-stats div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-stats strong {
  grid-area: value;
  color: #fff;
  font-size: 18px;
  font-weight: 650;
}

.hero-stats small {
  grid-area: label;
  color: rgba(248, 239, 225, 0.75);
  font-size: 12px;
}

.stat-dot {
  grid-area: dot;
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--green);
  box-shadow: 0 0 12px currentColor;
}

.stat-dot.is-gold,
.stat-dot.is-shield {
  color: var(--gold-bright);
}

.market-ticker {
  position: absolute;
  z-index: 2;
  left: 20px;
  right: 20px;
  bottom: 18px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  border: 1px solid rgba(226, 176, 74, 0.18);
  border-radius: 10px;
  background: rgba(7, 9, 12, 0.78);
  overflow: hidden;
  padding: 0 12px;
}

.ticker-label {
  border-radius: 5px;
  background: rgba(157, 33, 43, 0.82);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 7px;
}

.ticker-track {
  display: flex;
  min-width: 0;
  gap: 34px;
  color: rgba(248, 239, 225, 0.84);
  font-size: 13px;
  white-space: nowrap;
  animation: ticker 34s linear infinite;
}

.market-ticker a,
.panel-link,
.panel-header a {
  color: var(--gold-bright);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.live-feed-panel {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 8px;
  min-height: 356px;
  padding: 17px;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.panel-header.compact {
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.panel-header h2 {
  margin: 0 0 4px;
}

.panel-header span {
  color: var(--muted);
  font-size: 12px;
}

.live-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink) !important;
}

.live-state i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px var(--green);
}

.latest-feed {
  display: grid;
  align-content: start;
}

.activity-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 8px 0;
}

.activity-item img,
.trending-list img,
.black-list img,
.table-item img {
  display: block;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(226, 176, 74, 0.26);
  border-radius: 7px;
  background: linear-gradient(145deg, rgba(217, 154, 34, 0.2), rgba(255, 255, 255, 0.04));
  object-fit: contain;
}

.activity-item strong,
.activity-item small,
.trending-list span,
.trending-list small,
.black-list strong,
.black-list small,
.table-item strong,
.table-item small {
  display: block;
}

.activity-item strong {
  color: #fff;
  font-size: 13px;
  font-weight: 750;
}

.activity-item small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.activity-item em {
  color: var(--gold-bright);
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
}

.next-fetch {
  color: var(--faint);
  font-size: 11px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.hub-widget {
  position: relative;
  min-height: 132px;
  overflow: hidden;
  padding: 15px 16px;
}

.hub-widget::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 84% 22%, rgba(217, 154, 34, 0.16), transparent 68px);
  pointer-events: none;
}

.hub-widget.is-red::before {
  background: radial-gradient(circle at 84% 22%, rgba(255, 81, 77, 0.13), transparent 70px);
}

.hub-widget.safe-score-card::before {
  background: radial-gradient(circle at 84% 22%, rgba(142, 200, 255, 0.14), transparent 70px);
}

.widget-copy {
  position: relative;
  z-index: 1;
}

.widget-copy > span,
.metric span,
.freshness-card span {
  color: var(--gold-bright);
  font-size: 13px;
}

.widget-copy strong {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 6px;
  color: #fff;
  font-size: 26px;
  font-weight: 560;
}

.widget-copy strong small {
  color: var(--muted);
  font-size: 13px;
}

.widget-copy small {
  display: block;
  color: rgba(248, 239, 225, 0.6);
  font-size: 12px;
  margin-top: 7px;
}

.up,
.positive,
.excellent {
  color: var(--green) !important;
}

.down,
.negative {
  color: var(--red) !important;
}

.widget-icon {
  position: absolute;
  right: 16px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--gold-bright);
  font-size: 38px;
  line-height: 1;
  text-shadow: 0 0 18px rgba(255, 214, 109, 0.45);
}

.widget-icon.bell {
  color: #ffd477;
}

.widget-icon.shield {
  color: var(--blue);
}

.sparkline {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 116px;
  height: 34px;
  color: var(--gold);
  opacity: 0.9;
}

.hub-widget.is-red .sparkline {
  color: var(--red);
}

.safe-score-card .sparkline {
  color: var(--green);
}

.sparkline path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.control-panel {
  padding: 18px;
}

.command-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.command-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(226, 176, 74, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(248, 239, 225, 0.76);
  font-size: 12px;
  font-weight: 800;
  padding: 0 10px;
}

.settings-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 0.9fr auto auto auto auto auto;
  align-items: end;
  gap: 10px;
  margin-top: 16px;
}

.toggle-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(248, 239, 225, 0.78);
  padding: 0 12px;
}

.toggle-line input {
  min-height: auto;
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
}

.ghost-button {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}

.sr-only-button {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.content-grid,
.lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.72fr);
  gap: 14px;
}

.panel {
  overflow: hidden;
  padding: 16px;
}

.table-title {
  align-items: center;
  margin-bottom: 10px;
}

.table-title h2 {
  font-size: 18px;
}

.table-title b {
  color: var(--gold-bright);
}

.table-wrap {
  overflow-x: auto;
}

.market-table,
table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

.market-table th,
.market-table td,
th,
td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
  padding: 11px 10px;
  text-align: left;
  vertical-align: middle;
}

.market-table th,
th {
  color: rgba(248, 239, 225, 0.62);
  font-size: 12px;
  font-weight: 700;
}

.market-table td,
td {
  color: rgba(248, 239, 225, 0.88);
  font-size: 13px;
}

.market-table tr:hover td {
  background: rgba(255, 255, 255, 0.025);
}

.compact-table th,
.compact-table td {
  padding-top: 10px;
  padding-bottom: 10px;
}

.table-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 220px;
}

.table-item strong {
  color: #fff;
  font-size: 13px;
}

.table-item small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}

.price {
  color: #fff4d1;
  font-weight: 750;
}

.view-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  min-width: 58px;
  border: 1px solid rgba(238, 182, 61, 0.5);
  border-radius: 5px;
  background: rgba(142, 82, 10, 0.15);
  color: var(--gold-bright);
  font-weight: 750;
  text-decoration: none;
}

.empty,
.catalog-empty,
.city-empty,
.empty-inline {
  color: rgba(248, 239, 225, 0.56) !important;
  font-size: 13px;
}

.trending-list,
.black-list {
  display: grid;
  gap: 2px;
}

.trending-list article,
.black-list article {
  display: grid;
  align-items: center;
  min-height: 54px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
  gap: 10px;
}

.trending-list article {
  grid-template-columns: 30px 44px minmax(0, 1fr) auto;
}

.black-list article {
  grid-template-columns: 48px minmax(0, 1fr) auto;
  border-radius: 11px;
  border: 1px solid rgba(255, 81, 77, 0.16);
  background: linear-gradient(90deg, rgba(92, 17, 25, 0.28), rgba(255, 255, 255, 0.02));
  padding: 10px;
}

.trending-list b {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(255, 214, 109, 0.74);
  border-radius: 50%;
  color: var(--gold-bright);
  font-size: 12px;
}

.trending-list span,
.black-list strong {
  color: #fff;
  font-size: 13px;
  font-weight: 750;
}

.trending-list small,
.black-list small {
  display: inline-flex;
  width: max-content;
  min-height: 20px;
  margin-top: 3px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  font-size: 11px;
  padding: 2px 6px;
}

.trending-list em,
.black-list em {
  color: var(--green);
  font-size: 13px;
  font-style: normal;
  white-space: nowrap;
}

.black-list em {
  color: var(--red);
}

.catalog-panel,
.tracked-bar,
.detail-panel {
  padding: 16px;
}

.catalog-header {
  align-items: center;
  margin-bottom: 14px;
}

.catalog-filters select {
  min-width: 134px;
}

.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.category-tab {
  flex: 0 0 auto;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(248, 239, 225, 0.78);
  font-size: 12px;
  padding: 0 12px;
}

.category-tab.is-active {
  border-color: rgba(255, 214, 109, 0.52);
  background: rgba(217, 154, 34, 0.16);
  color: #fff2be;
}

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

.item-card {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  grid-template-areas:
    "image main"
    "meta meta"
    "market market";
  align-items: center;
  gap: 10px 12px;
  min-height: 148px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  color: var(--ink);
  text-align: left;
  padding: 12px;
}

.item-card:hover,
.item-card.is-active {
  border-color: rgba(255, 214, 109, 0.52);
  background: linear-gradient(145deg, rgba(217, 154, 34, 0.13), rgba(255, 255, 255, 0.035));
}

.item-image {
  grid-area: image;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(226, 176, 74, 0.28);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
}

.item-image img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.item-main {
  grid-area: main;
  min-width: 0;
}

.item-main strong,
.item-main small,
.item-meta span,
.item-market-meta span {
  display: block;
}

.item-main strong {
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-main small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-meta,
.item-market-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.item-meta {
  grid-area: meta;
}

.item-market-meta {
  grid-area: market;
}

.item-meta span,
.item-market-meta span {
  min-height: 22px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(248, 239, 225, 0.68);
  font-size: 11px;
  padding: 4px 7px;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

.pager button {
  min-height: 36px;
}

.pager span {
  color: var(--muted);
  font-size: 13px;
}

.tracked-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.tracked-bar strong,
.tracked-bar small {
  display: block;
}

.tracked-bar strong {
  color: #fff;
}

.tracked-bar small {
  color: var(--muted);
  font-size: 12px;
}

.tracked-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tracked-chip {
  display: inline-grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  padding: 5px 9px 5px 5px;
}

.tracked-chip.is-active {
  border-color: rgba(255, 214, 109, 0.5);
  background: rgba(217, 154, 34, 0.14);
}

.tracked-chip img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.tracked-chip strong,
.tracked-chip small {
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tracked-chip strong {
  color: #fff;
  font-size: 12px;
}

.tracked-chip small {
  color: var(--muted);
  font-size: 11px;
}

.tracked-chip .remove {
  color: var(--red);
  font-size: 16px;
}

.detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.active-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.active-image {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(226, 176, 74, 0.3);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.active-image img {
  width: 66px;
  height: 66px;
  object-fit: contain;
}

.active-item h2 {
  font-size: 22px;
}

.active-item span {
  color: var(--muted);
  font-size: 13px;
}

.freshness-card {
  min-width: 220px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  padding: 12px;
}

.freshness-card strong,
.freshness-card small {
  display: block;
}

.freshness-card strong {
  color: #fff;
  font-size: 22px;
  margin-top: 3px;
}

.freshness-card small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  margin-top: 5px;
}

.city-price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.city-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  padding: 12px;
}

.city-card.is-empty {
  opacity: 0.58;
}

.city-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.city-card-head strong {
  color: #fff;
  font-size: 13px;
}

.city-prices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.city-prices span {
  display: grid;
  gap: 4px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  padding: 8px;
}

.city-prices small {
  color: var(--muted);
  font-size: 11px;
}

.city-prices b {
  color: #fff1bf;
  font-size: 12px;
}

.city-foot {
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 11px;
  padding: 0 8px;
}

.tag.black {
  background: rgba(255, 81, 77, 0.13);
  color: #ffaaa8;
}

.tag.city {
  background: rgba(70, 225, 118, 0.11);
  color: #a8ffc1;
}

.tag.outlands {
  background: rgba(142, 200, 255, 0.12);
  color: #c5e3ff;
}

.age-fresh {
  color: var(--green) !important;
}

.age-stale {
  color: var(--gold-bright) !important;
}

.age-old {
  color: var(--red) !important;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.metric {
  padding: 16px;
}

.metric strong,
.metric small {
  display: block;
}

.metric strong {
  color: #fff;
  font-size: 24px;
  margin-top: 5px;
}

.metric small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 5px;
}

.suggestions {
  position: absolute;
  z-index: 60;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: grid;
  gap: 6px;
  max-height: 360px;
  overflow-y: auto;
  border: 1px solid rgba(226, 176, 74, 0.22);
  border-radius: 12px;
  background: rgba(7, 9, 12, 0.96);
  box-shadow: var(--shadow);
  padding: 8px;
}

.suggestions:empty {
  display: none;
}

.suggestion {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 52px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink);
  text-align: left;
  padding: 6px;
}

.suggestion:hover,
.suggestion.is-selected {
  border-color: rgba(255, 214, 109, 0.42);
  background: rgba(217, 154, 34, 0.12);
}

.suggestion img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.suggestion strong,
.suggestion small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suggestion strong {
  color: #fff;
  font-size: 13px;
}

.suggestion small {
  color: var(--muted);
  font-size: 11px;
}

.is-updated {
  animation: popValue 420ms ease both;
}

.mobile-dock {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: 14px;
  display: none;
  transform: translateX(-50%);
  border: 1px solid rgba(226, 176, 74, 0.24);
  border-radius: 999px;
  background: rgba(5, 6, 8, 0.84);
  box-shadow: var(--shadow);
  padding: 6px;
  backdrop-filter: blur(16px);
}

.mobile-dock a,
.mobile-dock button {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  padding: 9px 12px;
  min-height: auto;
  box-shadow: none;
}

.mobile-dock button:hover,
.mobile-dock a:hover {
  color: var(--gold-bright);
  transform: none;
  box-shadow: none;
}

@keyframes drift {
  from { transform: translate3d(-2vw, -1vh, 0) rotate(-2deg); }
  to { transform: translate3d(7vw, 3vh, 0) rotate(3deg); }
}

@keyframes embers {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 -180px, 0 -276px; }
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes popValue {
  0% { transform: translateY(0); color: #fff; }
  50% { transform: translateY(-2px); color: var(--gold-bright); }
  100% { transform: translateY(0); }
}

@keyframes drawerIn {
  from {
    opacity: 0;
    transform: translateX(32px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@media (max-width: 1280px) {
  :root { --sidebar: 226px; }
  .dashboard-hero,
  .content-grid,
  .lower-grid {
    grid-template-columns: 1fr;
  }
  .live-feed-panel {
    min-height: 0;
  }
  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .settings-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: relative;
    height: auto;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .premium-card,
  .sidebar-note,
  .social-row {
    display: none;
  }
  .main-stage {
    padding: 12px 12px 84px;
  }
  .topbar {
    grid-template-columns: 1fr auto auto;
    gap: 8px;
  }
  .top-search {
    width: 100%;
    justify-self: stretch;
  }
  .region-pill,
  .user-chip {
    display: none;
  }
  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-stats div:nth-child(3) {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .hero-stats div:nth-child(4) {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mobile-dock {
    display: flex;
  }
}

@media (max-width: 680px) {
  .sidebar {
    padding: 14px 10px;
  }
  .brand-lockup {
    grid-template-columns: 50px 1fr;
    min-height: 62px;
  }
  .brand-sigil {
    width: 46px;
    height: 46px;
    font-size: 32px;
  }
  .brand-sigil::before,
  .brand-sigil::after {
    height: 51px;
  }
  .brand-copy strong {
    font-size: 23px;
  }
  .brand-copy small {
    font-size: 12px;
  }
  .sidebar-nav {
    grid-template-columns: 1fr;
  }
  .topbar {
    grid-template-columns: 1fr auto;
  }
  .discord-pill,
  .notification-button,
  kbd {
    display: none;
  }
  .hero-card {
    min-height: 480px;
    padding: 22px 18px 74px;
  }
  .hero-actions a {
    flex: 1 1 180px;
  }
  .hero-stats,
  .dashboard-grid,
  .settings-grid,
  .metrics-grid,
  .tracked-bar,
  .detail-head {
    grid-template-columns: 1fr;
  }
  .hero-stats div + div,
  .hero-stats div:nth-child(3),
  .hero-stats div:nth-child(4) {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .market-ticker {
    grid-template-columns: auto 1fr;
  }
  .market-ticker a {
    display: none;
  }
  .activity-item,
  .trending-list article,
  .black-list article {
    grid-template-columns: 40px minmax(0, 1fr);
  }
  .activity-item em,
  .trending-list em,
  .black-list em {
    grid-column: 2;
  }
  .freshness-card {
    min-width: 0;
  }
}


/* İç sayfalar ve Türkçe panel düzeni */
.reveal-panel,
.dashboard-hero,
.dashboard-grid,
#market,
#controlPanel,
#opportunities,
#logs,
#trackedSection,
.detail-panel,
.metrics-grid,
.inner-page {
  scroll-margin-top: 92px;
}

.profile-link {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  color: var(--gold-bright);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.055);
}

.user-chip-copy {
  min-width: 0;
}

.user-chip {
  min-width: 236px;
}

.inner-page {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(13, 16, 19, 0.88), rgba(5, 7, 9, 0.78));
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  padding: 18px;
}

.inner-header {
  align-items: center;
  margin-bottom: 16px;
}

.inner-grid {
  display: grid;
  gap: 14px;
}

.inner-grid.two {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
}

.inner-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mini-card {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.045);
  padding: 15px;
}

.mini-card h3 {
  margin: 0 0 12px;
  color: #fff7e9;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.mini-card p,
.mini-card small,
.mini-card > span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.mini-card > strong {
  display: block;
  color: #fff;
  font-size: 26px;
  margin: 8px 0 3px;
}

.wide-card {
  grid-column: span 1;
}

.form-grid {
  display: grid;
  gap: 10px;
}

.form-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.small-link {
  min-height: 40px;
  padding: 0 14px;
  font-size: 13px;
}

.full-link {
  width: 100%;
  margin-top: 12px;
}

.status-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.status-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(248, 239, 225, 0.82);
  font-size: 13px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 12px currentColor;
}

.dot.green { background: var(--green); color: var(--green); }
.dot.gold { background: var(--gold-bright); color: var(--gold-bright); }
.dot.red { background: var(--red); color: var(--red); }

.result-card {
  display: grid;
  align-content: start;
  gap: 8px;
}

.result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.result-row span {
  color: var(--muted);
  font-size: 13px;
}

.result-row strong {
  color: #fff3c8;
  font-size: 14px;
  text-align: right;
}

.soft-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(226, 176, 74, 0.24);
  border-radius: 999px;
  background: rgba(217, 154, 34, 0.12);
  color: var(--gold-bright) !important;
  font-weight: 800;
  padding: 0 12px;
}

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

.message-list article {
  display: grid;
  grid-template-columns: minmax(170px, 0.45fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  padding: 12px;
}

.message-list b {
  color: #fff;
  font-size: 14px;
}

.message-list span {
  color: var(--muted);
  font-size: 13px;
}

.message-list em {
  color: var(--gold-bright);
  font-style: normal;
  font-size: 12px;
}

.settings-page-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(280px, 1fr) minmax(280px, 1fr);
  gap: 14px;
}

.profile-summary {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.big-avatar {
  width: 58px;
  height: 58px;
  font-size: 28px;
}

.profile-summary h3 {
  margin-bottom: 6px;
}

.settings-toggle {
  min-height: 46px;
}

.settings-status {
  display: block;
  margin-top: 10px;
  color: var(--gold-bright) !important;
}

body.ui-compact .app-shell {
  gap: 11px;
}

body.ui-compact .panel,
body.ui-compact .inner-page,
body.ui-compact .control-panel,
body.ui-compact .catalog-panel,
body.ui-compact .tracked-bar,
body.ui-compact .detail-panel,
body.ui-compact .metric {
  padding: 13px;
}

body.hide-demo-data .trending-panel,
body.hide-demo-data .black-panel,
body.hide-demo-data #activityPanel {
  opacity: 0.78;
}

@media (max-width: 1280px) {
  .inner-grid.two,
  .inner-grid.three,
  .settings-page-grid {
    grid-template-columns: 1fr;
  }
  .drawer-settings-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .message-list article,
  .profile-summary,
  .form-grid.two-col {
    grid-template-columns: 1fr;
  }
  .settings-drawer-panel {
    top: 10px;
    right: 10px;
    bottom: 10px;
    width: calc(100% - 20px);
    padding: 12px;
    border-radius: 20px;
  }
  .user-chip {
    min-width: 0;
  }
}


/* v6: fixed settings page, user menu and craft calculator */
.user-chip.user-menu {
  position: relative;
  padding: 0;
  overflow: visible;
}

.user-menu-button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 46px;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0 10px;
  box-shadow: none;
}

.user-menu-button:hover {
  transform: none;
  box-shadow: none;
}

.menu-caret {
  color: var(--gold-bright);
  font-size: 18px;
}

.user-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 100;
  display: grid;
  gap: 7px;
  width: 224px;
  border: 1px solid rgba(238, 182, 61, 0.35);
  border-radius: 14px;
  background: rgba(6, 7, 10, 0.97);
  box-shadow: 0 24px 62px rgba(0, 0, 0, 0.48);
  padding: 10px;
}

.user-menu-panel[hidden] { display: none; }

.user-menu-panel a,
.user-menu-panel button {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(248, 239, 225, 0.92);
  text-align: left;
  text-decoration: none;
  padding: 9px 11px;
}

.user-menu-panel a:hover,
.user-menu-panel button:hover {
  border-color: rgba(238, 182, 61, 0.38);
  background: rgba(119, 18, 28, 0.55);
}

.fixed-settings-grid {
  grid-template-columns: minmax(300px, 0.9fr) minmax(330px, 1.1fr) minmax(280px, 0.85fr);
}

.fixed-profile-card {
  align-items: start;
}

.single-field {
  display: grid;
  gap: 7px;
  margin: 12px 0 10px;
}

.fixed-market-settings p {
  margin-top: -4px;
  margin-bottom: 12px;
}

.settings-summary-box {
  display: grid;
  gap: 2px;
  margin-top: 13px;
}

#savePanelSettings,
#saveProfileName,
#craftCalcButton {
  margin-top: 12px;
}

#craftCostResult,
#craftNetResult,
#craftProfitResult {
  color: #fff3c8;
}

@media (max-width: 1280px) {
  .fixed-settings-grid {
    grid-template-columns: 1fr;
  }
}

/* v7: sade tek sayfa panel, canlı tarama ve scroll aktif menü */
.sidebar-nav a.is-active::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe18b, #a86410);
  box-shadow: 0 0 16px rgba(255, 214, 109, 0.55);
}

.topbar {
  grid-template-columns: minmax(260px, 1fr) auto auto auto;
}

.top-search {
  grid-template-columns: 28px minmax(0, 1fr);
  justify-self: start;
  width: min(520px, 100%);
  min-height: 44px;
  border-radius: 12px;
  padding: 0 12px;
}

.search-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: rgba(217, 154, 34, 0.12);
  color: #ffe18b;
  font-size: 14px;
  line-height: 1;
  transform: none;
}

.top-search input {
  min-height: 42px;
  padding-left: 10px;
}

.region-pill select:disabled {
  opacity: 1;
  cursor: default;
}

.quick-action-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.55fr) auto auto auto auto;
  align-items: end;
  gap: 10px;
  margin-top: 16px;
}

.quick-action-grid label {
  min-width: 0;
}

.quick-action-grid button,
.quick-action-grid .quick-settings-link {
  min-height: 44px;
  white-space: nowrap;
}

.quick-settings-link {
  align-self: end;
  justify-content: center;
}

.settings-drawer[hidden] {
  display: none;
}

.settings-drawer {
  position: fixed;
  inset: 0;
  z-index: 140;
}

.settings-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(8px);
}

.settings-drawer-panel {
  position: absolute;
  top: 18px;
  right: 18px;
  bottom: 18px;
  width: min(940px, calc(100% - 36px));
  overflow: auto;
  border: 1px solid rgba(238, 182, 61, 0.35);
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 4%, rgba(217, 154, 34, 0.16), transparent 280px),
    linear-gradient(180deg, rgba(11, 14, 18, 0.98), rgba(5, 7, 10, 0.98));
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.62);
  padding: 18px;
  animation: drawerIn 240ms ease both;
}

.drawer-header {
  border-radius: 18px;
  margin-bottom: 14px;
}

.drawer-settings-grid {
  grid-template-columns: minmax(260px, 0.85fr) minmax(300px, 1fr);
}

.premium-ops-card {
  background:
    linear-gradient(145deg, rgba(92, 17, 27, 0.36), rgba(255, 255, 255, 0.05)),
    radial-gradient(circle at 80% 0%, rgba(217, 154, 34, 0.12), transparent 180px);
}

.ops-stack {
  display: grid;
  gap: 10px;
}

.ops-stack div {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  padding: 12px;
}

.ops-stack span,
.ops-stack small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.ops-stack strong {
  display: block;
  color: var(--gold-bright);
  margin: 4px 0;
}

body.settings-open {
  overflow: hidden;
}

[id] {
  scroll-margin-top: 26px;
}

.hidden-settings-fields {
  display: none !important;
}

.empty-list-row {
  min-height: 54px;
  border: 1px dashed rgba(255, 255, 255, 0.12) !important;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025) !important;
  padding: 12px !important;
}

.empty-list-row span,
.empty-list-row strong,
.empty-list-row small,
.empty-list-row em {
  color: rgba(248, 239, 225, 0.72) !important;
}

body.hide-demo-data .trending-panel,
body.hide-demo-data .black-panel,
body.hide-demo-data #activityPanel {
  opacity: 1;
}

#detailPanel {
  scroll-margin-top: 92px;
}

.live-data-card strong::before {
  content: "●";
  color: var(--green);
}

@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: minmax(220px, 1fr) auto auto;
  }
  .discord-pill {
    display: none;
  }
  .quick-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }
  .region-pill,
  .notification-button {
    display: none;
  }
  .quick-action-grid {
    grid-template-columns: 1fr;
  }
}
