:root {
  color-scheme: dark;
  --bg: #150807;
  --bg-deep: #0d0404;
  --bg-elevated: #1e0f0c;
  --bg-soft: #261311;
  --panel: rgba(32, 16, 13, 0.88);
  --panel-strong: #271410;
  --panel-hover: #30190f;
  --line: rgba(236, 197, 158, 0.14);
  --line-strong: rgba(242, 178, 66, 0.42);
  --text: #f8f0e5;
  --text-soft: #d9c6b2;
  --text-muted: #a68d79;
  --gold: #e5a63d;
  --gold-bright: #ffcb5c;
  --gold-deep: #9c5c15;
  --teal: #55c4c3;
  --teal-soft: #92dfdc;
  --green: #65cf9a;
  --red: #ff7a63;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 14px 35px rgba(0, 0, 0, 0.3);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --header-height: 76px;
  --page-width: 1440px;
  --transition: 180ms ease;
}

* {
  box-sizing: border-box;
}

/* hidden niteligi her zaman kazanmali (display:flex/grid kurallari ezmesin) */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: rgba(229, 166, 61, 0.55) #150807;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 15% -10%, rgba(163, 45, 18, 0.22), transparent 34rem),
    radial-gradient(circle at 88% 12%, rgba(255, 122, 26, 0.12), transparent 31rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.dialog-open,
body.filter-open {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

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

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
  width: 100%;
  height: 100%;
}

::selection {
  background: rgba(242, 178, 66, 0.3);
  color: #fff;
}

::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

::-webkit-scrollbar-track {
  background: #150807;
}

::-webkit-scrollbar-thumb {
  background: rgba(242, 178, 66, 0.34);
  border: 3px solid #150807;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(242, 178, 66, 0.55);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--gold-bright);
  color: #101010;
  transform: translateY(-160%);
  transition: transform var(--transition);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-width {
  width: min(calc(100% - 48px), var(--page-width));
  margin-inline: auto;
}

.section-space {
  padding: 96px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--gold-bright);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.25;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(242, 178, 66, 0.1);
}

.section-heading {
  margin-bottom: 38px;
}

.section-heading h2 {
  margin: 10px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  align-items: end;
  gap: 48px;
}

.split-heading > p {
  max-width: 640px;
  margin: 0;
  color: var(--text-soft);
  font-size: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  background: rgba(21, 8, 7, 0.74);
  backdrop-filter: blur(18px) saturate(140%);
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  border-color: var(--line);
  background: rgba(21, 8, 7, 0.95);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  width: min(calc(100% - 36px), 1760px);
  height: 100%;
  margin-inline: auto;
  gap: 18px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(242, 178, 66, 0.34);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(242, 178, 66, 0.13), rgba(242, 178, 66, 0.03));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07);
}

.brand-mark svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: var(--gold-bright);
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}

.brand-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand-copy span {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.header-search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 180px;
  margin-left: auto;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-soft);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}

.header-search-trigger:hover,
.header-search-trigger:focus-visible {
  border-color: rgba(242, 178, 66, 0.35);
  background: rgba(242, 178, 66, 0.06);
  color: var(--text);
  outline: none;
}

.header-search-trigger > span:first-child {
  width: 17px;
  height: 17px;
}

.header-search-trigger > span:nth-child(2) {
  flex: 1;
  text-align: left;
  font-size: 0.85rem;
}

kbd,
.search-shortcut {
  display: inline-grid;
  place-items: center;
  min-width: 23px;
  height: 23px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255,255,255,0.035);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.72rem;
  box-shadow: none;
}

.category-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-nav::-webkit-scrollbar {
  display: none;
}

.category-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: max-content;
  padding: 10px 7px;
  border-radius: 9px;
  color: var(--text-soft);
  font-size: 0.76rem;
  font-weight: 650;
  transition: background var(--transition), color var(--transition);
}

.category-nav a:hover,
.category-nav a:focus-visible,
.category-nav a.active {
  background: rgba(242, 178, 66, 0.07);
  color: var(--gold-bright);
  outline: none;
}

.category-nav a span {
  width: 16px;
  height: 16px;
}

.nav-toggle {
  display: none;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255,255,255,0.025);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  margin: 4px 0;
  border-radius: 99px;
  background: var(--text);
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(820px, calc(100vh - var(--header-height)));
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(100deg, rgba(15, 7, 5, 0.68), rgba(15, 7, 5, 0.15)),
    radial-gradient(circle at 69% 45%, rgba(163, 45, 18, 0.18), transparent 30rem),
    linear-gradient(180deg, #1c0d0a 0%, #150807 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  right: -16%;
  bottom: -64%;
  width: 80%;
  aspect-ratio: 1;
  border: 1px solid rgba(242, 178, 66, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 70px rgba(242, 178, 66, 0.018),
    0 0 0 150px rgba(242, 178, 66, 0.012),
    0 0 0 250px rgba(242, 178, 66, 0.008);
  pointer-events: none;
}

.ambient {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  pointer-events: none;
}

.ambient-one {
  top: 10%;
  left: 4%;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(255, 140, 40, 0.08), transparent 68%);
}

.ambient-two {
  right: 12%;
  bottom: 10%;
  width: 290px;
  height: 290px;
  background: radial-gradient(circle, rgba(242, 178, 66, 0.08), transparent 68%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, 0.9fr);
  align-items: center;
  gap: clamp(54px, 8vw, 126px);
  min-height: min(820px, calc(100vh - var(--header-height)));
  padding: 84px 0 96px;
}

.hero-copy {
  max-width: 830px;
}

.hero-copy h1 {
  margin: 22px 0 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 8vw, 7.8rem);
  font-weight: 500;
  line-height: 0.86;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.hero-copy h1 span {
  color: var(--gold-bright);
  font-style: italic;
  font-weight: 400;
}

.hero-copy > p {
  max-width: 720px;
  margin: 0;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.7vw, 1.24rem);
  line-height: 1.7;
}

.hero-search {
  position: relative;
  display: flex;
  align-items: center;
  width: min(100%, 720px);
  margin-top: 40px;
  border: 1px solid rgba(242, 178, 66, 0.3);
  border-radius: 17px;
  background: rgba(30, 14, 11, 0.88);
  box-shadow: 0 18px 50px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.045);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.hero-search:focus-within {
  border-color: rgba(242, 210, 141, 0.72);
  box-shadow: 0 20px 60px rgba(0,0,0,0.34), 0 0 0 4px rgba(242,178,66,0.08);
  transform: translateY(-1px);
}

.hero-search-icon {
  flex: 0 0 auto;
  width: 23px;
  height: 23px;
  margin-left: 20px;
  color: var(--gold-bright);
}

.hero-search input {
  width: 100%;
  min-width: 0;
  height: 64px;
  padding: 0 14px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
}

.hero-search input::placeholder {
  color: #96826f;
}

.clear-search {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-right: 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}

.clear-search:hover,
.clear-search:focus-visible {
  background: rgba(255,255,255,0.05);
  color: var(--text);
  outline: none;
}

.clear-search span {
  width: 17px;
  height: 17px;
}

.hero-search .search-shortcut {
  margin-right: 17px;
}

.search-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.search-suggestions button {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
  color: var(--text-muted);
  font-size: 0.75rem;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.search-suggestions button:hover,
.search-suggestions button:focus-visible {
  border-color: rgba(242,178,66,0.35);
  background: rgba(242,178,66,0.06);
  color: var(--gold-bright);
  outline: none;
}

.hero-panel {
  position: relative;
  min-height: 0;
  padding: 0;
}

.hero-emblem {
  position: relative;
  z-index: 1;
  width: min(67%, 280px);
  margin: -5px auto 8px;
  opacity: 0.94;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.28));
}

.hero-emblem svg {
  fill: none;
  stroke: rgba(242,178,66,0.62);
  stroke-width: 1.4;
}

.hero-emblem .emblem-fill {
  fill: url(#emblemGradient);
  stroke: none;
}

.hero-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 8px;
}

.hero-stat {
  min-width: 0;
  padding: 16px 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(20, 10, 7, 0.38);
  text-align: center;
}

.hero-stat strong {
  display: block;
  color: var(--gold-bright);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 500;
  line-height: 1;
}

.hero-stat span {
  display: block;
  margin-top: 7px;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-panel-note {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(85,196,195,0.15);
  border-radius: 13px;
  background: rgba(85,196,195,0.04);
}

.hero-panel-note > span {
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  color: var(--teal-soft);
}

.hero-panel-note p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.78rem;
  line-height: 1.55;
}

/* System */
.system-section {
  position: relative;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(30, 13, 10, 0.68), rgba(21,8,7,0));
}

.system-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.system-flow::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 38px;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242,178,66,0.4), transparent);
}

.flow-card {
  position: relative;
  z-index: 1;
  min-height: 185px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(48,23,17,0.85), rgba(27,13,10,0.82));
  box-shadow: var(--shadow-soft);
}

.flow-step {
  display: inline-grid;
  place-items: center;
  min-width: 64px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(242,178,66,0.4);
  border-radius: 999px;
  background: #21100b;
  color: var(--gold-bright);
  font-weight: 800;
  box-shadow: 0 0 0 7px rgba(242,178,66,0.045);
}

.flow-card h3 {
  margin: 28px 0 7px;
  font-size: 1.08rem;
}

.flow-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.system-notes-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 18px;
  margin-top: 18px;
}

.info-panel {
  display: flex;
  gap: 20px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(40, 19, 14, 0.72);
}

.panel-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(242,178,66,0.22);
  border-radius: 14px;
  background: rgba(242,178,66,0.06);
  color: var(--gold-bright);
}

.panel-icon svg {
  width: 23px;
  height: 23px;
}

.panel-kicker {
  display: block;
  color: var(--gold-bright);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.info-panel h3 {
  max-width: 640px;
  margin: 7px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.25;
}

.info-panel p {
  margin: 12px 0 0;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.bonus-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bonus-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(85,196,195,0.22);
  border-radius: 999px;
  background: rgba(85,196,195,0.05);
  color: var(--teal-soft);
  font-size: 0.73rem;
  font-weight: 700;
}

.general-notes-panel ul {
  display: grid;
  gap: 11px;
  margin: 9px 0 0;
  padding: 0;
  list-style: none;
}

.general-notes-panel li {
  position: relative;
  padding-left: 19px;
  color: var(--text-soft);
  font-size: 0.86rem;
}

.general-notes-panel li::before {
  content: "";
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--gold);
  transform: rotate(45deg);
}

.technical-details {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(27, 13, 10, 0.65);
  overflow: hidden;
}

.technical-details summary {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 18px 21px;
  cursor: pointer;
  color: var(--text-soft);
  font-size: 0.86rem;
  font-weight: 700;
  list-style: none;
}

.technical-details summary::-webkit-details-marker {
  display: none;
}

.technical-details summary > span:first-child {
  width: 19px;
  height: 19px;
  color: var(--gold-bright);
}

.technical-details summary > span:last-child {
  width: 17px;
  height: 17px;
  margin-left: auto;
  transition: transform var(--transition);
}

.technical-details[open] summary > span:last-child {
  transform: rotate(180deg);
}

.technical-details-content {
  display: grid;
  gap: 12px;
  padding: 0 21px 20px 51px;
}

.technical-note {
  position: relative;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.technical-note::before {
  content: "";
  position: absolute;
  top: 0.65em;
  left: -18px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

.scope-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(239,133,133,0.16);
  border-radius: var(--radius-md);
  background: rgba(239,133,133,0.035);
}

.scope-note > span {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: #efaaaa;
}

.scope-note p {
  margin: 0;
  color: #c9b3b3;
  font-size: 0.82rem;
}

/* Categories */
.categories-section {
  border-bottom: 1px solid var(--line);
}

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

.category-card {
  position: relative;
  display: flex;
  min-height: 290px;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 100% 0, rgba(var(--category-accent-rgb), 0.1), transparent 48%),
    linear-gradient(145deg, rgba(48, 23, 17, 0.84), rgba(26, 13, 10, 0.9));
  box-shadow: 0 16px 40px rgba(0,0,0,0.14);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.category-card::after {
  content: "";
  position: absolute;
  right: -38px;
  bottom: -50px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(var(--category-accent-rgb), 0.13);
  border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(var(--category-accent-rgb), 0.025), 0 0 0 54px rgba(var(--category-accent-rgb), 0.012);
}

.category-card:hover,
.category-card:focus-visible {
  border-color: rgba(var(--category-accent-rgb), 0.38);
  box-shadow: 0 22px 60px rgba(0,0,0,0.24);
  transform: translateY(-5px);
  outline: none;
}

.category-card-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(var(--category-accent-rgb), 0.28);
  border-radius: 16px;
  background: rgba(var(--category-accent-rgb), 0.06);
  color: rgb(var(--category-accent-rgb));
}

.category-card-icon svg {
  width: 29px;
  height: 29px;
}

.category-card h3 {
  margin: 24px 0 7px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  font-weight: 500;
}

.category-card-description {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.category-card-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 22px;
}

.category-card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.category-card-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0,0,0,0.12);
  color: var(--text-soft);
  font-size: 0.7rem;
  font-weight: 700;
}

.category-card-arrow {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(var(--category-accent-rgb), 0.3);
  border-radius: 11px;
  color: rgb(var(--category-accent-rgb));
  transition: transform var(--transition), background var(--transition);
}

.category-card:hover .category-card-arrow {
  background: rgba(var(--category-accent-rgb), 0.08);
  transform: translateX(3px);
}

.category-card-arrow svg {
  width: 18px;
  height: 18px;
}

/* Browser */
.browser-section {
  position: relative;
  scroll-margin-top: var(--header-height);
  min-height: 800px;
  background: linear-gradient(180deg, rgba(18,9,7,0.22), rgba(18,9,7,0.72));
}

.browser-shell {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  align-items: start;
  gap: 28px;
}

.filter-panel {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(33, 16, 12, 0.88);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.filter-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}

.filter-panel-header h2 {
  margin: 5px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.32rem;
  font-weight: 500;
}

.filter-close {
  display: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.filter-close span {
  width: 18px;
  height: 18px;
}

.filter-group {
  margin: 22px 0 0;
  padding: 0;
  border: 0;
}

.filter-group > label,
.filter-group > legend {
  display: block;
  margin-bottom: 9px;
  padding: 0;
  color: var(--text-soft);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.03em;
}

.select-wrap,
.sort-control {
  position: relative;
  display: flex;
  align-items: center;
}

.select-wrap select,
.sort-control select {
  width: 100%;
  appearance: none;
  border: 1px solid var(--line);
  outline: none;
  background: rgba(255,255,255,0.025);
  color: var(--text);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.select-wrap select {
  height: 45px;
  padding: 0 38px 0 12px;
  border-radius: 10px;
  font-size: 0.83rem;
}

.select-wrap select:hover,
.select-wrap select:focus,
.sort-control select:hover,
.sort-control select:focus {
  border-color: rgba(242,178,66,0.34);
  background: rgba(242,178,66,0.035);
}

.select-wrap > span {
  position: absolute;
  right: 12px;
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

select option {
  background: #2d1710;
  color: var(--text);
}

.level-inputs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 8px;
}

.level-inputs label span {
  display: block;
  margin-bottom: 5px;
  color: var(--text-muted);
  font-size: 0.67rem;
}

.level-inputs input {
  width: 100%;
  height: 43px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  background: rgba(255,255,255,0.025);
  color: var(--text);
  transition: border-color var(--transition), background var(--transition);
}

.level-inputs input:focus {
  border-color: rgba(242,178,66,0.38);
  background: rgba(242,178,66,0.035);
}

.range-separator {
  padding-bottom: 11px;
  color: var(--text-muted);
}

.radio-row {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  margin: 9px 0 !important;
  color: var(--text-soft) !important;
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  cursor: pointer;
}

.radio-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.custom-radio {
  position: relative;
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  border: 1px solid rgba(208,193,176,0.36);
  border-radius: 50%;
  transition: border-color var(--transition), background var(--transition);
}

.custom-radio::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--gold-bright);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity var(--transition), transform var(--transition);
}

.radio-row input:checked + .custom-radio {
  border-color: var(--gold);
  background: rgba(242,178,66,0.08);
}

.radio-row input:checked + .custom-radio::after {
  opacity: 1;
  transform: scale(1);
}

.radio-row input:focus-visible + .custom-radio {
  box-shadow: 0 0 0 3px rgba(242,178,66,0.12);
}

.reset-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255,255,255,0.025);
  color: var(--text-soft);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.reset-button:hover,
.reset-button:focus-visible {
  border-color: rgba(242,178,66,0.32);
  background: rgba(242,178,66,0.055);
  color: var(--gold-bright);
  outline: none;
}

.reset-button span {
  width: 17px;
  height: 17px;
}

.source-mini-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 16px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(85,196,195,0.035);
}

.source-mini-note > span {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--teal-soft);
}

.source-mini-note p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.7rem;
}

.browser-content {
  min-width: 0;
}

.browser-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  margin-bottom: 16px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.breadcrumb button,
.breadcrumb a {
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
}

.breadcrumb button:hover,
.breadcrumb a:hover {
  color: var(--gold-bright);
}

.breadcrumb .separator {
  width: 13px;
  height: 13px;
  opacity: 0.55;
}

.mobile-filter-button {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,0.025);
  cursor: pointer;
}

.mobile-filter-button > span:first-child {
  width: 17px;
  height: 17px;
}

.filter-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--gold);
  color: #101010;
  font-size: 0.68rem;
  font-weight: 800;
}

.browser-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 23px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(48,23,17,0.8), rgba(27,13,10,0.76));
  box-shadow: var(--shadow-soft);
}

.browser-title-wrap {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 17px;
}

.browser-category-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(242,178,66,0.22);
  border-radius: 16px;
  background: rgba(242,178,66,0.06);
  color: var(--gold-bright);
}

.browser-category-icon svg {
  width: 28px;
  height: 28px;
}

.browser-kicker {
  display: block;
  color: var(--gold-bright);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.browser-header h2 {
  margin: 3px 0 3px;
  overflow: hidden;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-weight: 500;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-header p {
  display: -webkit-box;
  max-width: 690px;
  margin: 0;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.76rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.browser-controls {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
}

.sort-control > [data-icon="sort"] {
  position: absolute;
  z-index: 1;
  left: 11px;
  width: 17px;
  height: 17px;
  color: var(--text-muted);
  pointer-events: none;
}

.sort-control select {
  height: 43px;
  padding: 0 37px 0 36px;
  border-radius: 10px;
  font-size: 0.78rem;
}

.sort-control > [data-icon="chevron"] {
  position: absolute;
  right: 10px;
  width: 15px;
  height: 15px;
  color: var(--text-muted);
  pointer-events: none;
}

.view-toggle {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.view-toggle button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 41px;
  border: 0;
  background: rgba(255,255,255,0.02);
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.view-toggle button + button {
  border-left: 1px solid var(--line);
}

.view-toggle button.active,
.view-toggle button:hover,
.view-toggle button:focus-visible {
  background: rgba(242,178,66,0.08);
  color: var(--gold-bright);
  outline: none;
}

.view-toggle button span {
  width: 18px;
  height: 18px;
}

.active-filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(33,16,12,0.52);
}

.active-filter-bar > span:first-child {
  margin-right: 2px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 4px 7px 4px 9px;
  border: 1px solid rgba(242,178,66,0.2);
  border-radius: 999px;
  background: rgba(242,178,66,0.05);
  color: var(--gold-bright);
  font-size: 0.7rem;
}

.filter-pill button {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  color: inherit;
  cursor: pointer;
}

.filter-pill button span {
  width: 11px;
  height: 11px;
}

.result-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 17px 0 11px;
  padding: 0 2px;
}

.result-summary p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.79rem;
}

.result-summary p strong {
  color: var(--text);
}

.result-summary button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.72rem;
  cursor: pointer;
}

.result-summary button:hover,
.result-summary button:focus-visible {
  color: var(--gold-bright);
  outline: none;
}

.result-summary button span {
  width: 15px;
  height: 15px;
}

.results-table-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(30,14,11,0.72);
  box-shadow: var(--shadow-soft);
}

.results-table-scroller {
  overflow-x: auto;
}

.results-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  table-layout: fixed;
}

.results-table col:nth-child(1) { width: 27%; }
.results-table col:nth-child(2) { width: 9%; }
.results-table col:nth-child(3) { width: 14%; }
.results-table col:nth-child(4) { width: 20%; }
.results-table col:nth-child(5) { width: 11%; }
.results-table col:nth-child(6) { width: 11%; }
.results-table col:nth-child(7) { width: 8%; }

.results-table thead th {
  position: sticky;
  z-index: 2;
  top: 0;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  background: #301a12;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
}

.results-table tbody tr {
  border-bottom: 1px solid rgba(236,197,158,0.085);
  cursor: pointer;
  transition: background var(--transition);
}

.results-table tbody tr:last-child {
  border-bottom: 0;
}

.results-table tbody tr:hover,
.results-table tbody tr:focus-within {
  background: rgba(242,178,66,0.045);
}

.results-table td {
  padding: 14px 15px;
  color: var(--text-soft);
  font-size: 0.78rem;
  vertical-align: middle;
}

.table-item-cell {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.table-item-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  width: 38px;
  height: 52px;
  border: 1px solid rgba(var(--category-accent-rgb),0.22);
  border-radius: 11px;
  background: rgba(var(--category-accent-rgb),0.055);
  color: rgb(var(--category-accent-rgb));
}

.table-item-icon svg {
  width: 20px;
  height: 20px;
}

.table-item-name {
  min-width: 0;
}

.table-item-name strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-item-name span {
  display: block;
  margin-top: 3px;
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.66rem;
}

.level-badge,
.restriction-badge,
.mode-badge {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 700;
}

.level-badge {
  border: 1px solid rgba(242,178,66,0.2);
  background: rgba(242,178,66,0.055);
  color: var(--gold-bright);
}

.restriction-badge {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.025);
  color: var(--text-soft);
}

.mode-badge {
  border: 1px solid rgba(85,196,195,0.18);
  background: rgba(85,196,195,0.045);
  color: var(--teal-soft);
  white-space: normal;
}

.rate-value {
  display: inline-block;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.rate-label {
  display: block;
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 0.61rem;
}

.row-detail-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background var(--transition), transform var(--transition);
}

tr:hover .row-detail-button,
.row-detail-button:hover,
.row-detail-button:focus-visible {
  border-color: rgba(242,178,66,0.28);
  background: rgba(242,178,66,0.06);
  color: var(--gold-bright);
  transform: translateX(2px);
  outline: none;
}

.row-detail-button span {
  width: 17px;
  height: 17px;
}

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

.item-card {
  position: relative;
  display: flex;
  min-height: 276px;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 100% 0, rgba(var(--category-accent-rgb),0.08), transparent 48%),
    rgba(36, 17, 13, 0.78);
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.item-card:hover,
.item-card:focus-visible {
  border-color: rgba(var(--category-accent-rgb),0.34);
  box-shadow: 0 18px 46px rgba(0,0,0,0.2);
  transform: translateY(-3px);
  outline: none;
}

.item-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.item-card-icon {
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 46px;
  height: 60px;
  border: 1px solid rgba(var(--category-accent-rgb),0.24);
  border-radius: 14px;
  background: rgba(var(--category-accent-rgb),0.055);
  color: rgb(var(--category-accent-rgb));
}

.item-card-icon svg {
  width: 25px;
  height: 25px;
}

.item-card-vnum {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.65rem;
}

.item-card h3 {
  margin: 18px 0 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.26rem;
  font-weight: 500;
  line-height: 1.2;
}

.item-card-subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.72rem;
}

.item-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 13px;
}

.item-card-rates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
}

.item-card-rate {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0,0,0,0.12);
}

.item-card-rate span {
  display: block;
  color: var(--text-muted);
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.item-card-rate strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
}

.item-card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--gold-bright);
  font-size: 0.72rem;
  font-weight: 700;
}

.item-card-action span:last-child {
  width: 16px;
  height: 16px;
}

.empty-state {
  padding: 78px 24px;
  border: 1px dashed rgba(236,197,158,0.2);
  border-radius: var(--radius-lg);
  background: rgba(30,14,11,0.45);
  text-align: center;
}

.empty-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto;
  color: var(--text-muted);
}

.empty-state h3 {
  margin: 18px 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 500;
}

.empty-state p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.empty-state button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin-top: 20px;
  padding: 0 15px;
  border: 1px solid rgba(242,178,66,0.25);
  border-radius: 10px;
  background: rgba(242,178,66,0.06);
  color: var(--gold-bright);
  cursor: pointer;
}

.empty-state button span {
  width: 17px;
  height: 17px;
}

/* Dialog */
.item-dialog {
  width: min(calc(100% - 32px), 1120px);
  max-height: min(92vh, 980px);
  padding: 0;
  border: 1px solid rgba(242,178,66,0.2);
  border-radius: 24px;
  background: #21100b;
  color: var(--text);
  box-shadow: 0 38px 120px rgba(0,0,0,0.65);
  overflow: hidden;
}

.item-dialog::backdrop {
  background: rgba(8, 4, 3, 0.78);
  backdrop-filter: blur(7px);
}

.dialog-frame {
  position: relative;
  max-height: min(92vh, 980px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.dialog-close {
  position: sticky;
  z-index: 5;
  top: 16px;
  float: right;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 16px 16px -56px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(21,8,7,0.88);
  color: var(--text-soft);
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.dialog-close:hover,
.dialog-close:focus-visible {
  border-color: rgba(242,178,66,0.34);
  color: var(--gold-bright);
  outline: none;
}

.dialog-close span {
  width: 19px;
  height: 19px;
}

.dialog-hero {
  position: relative;
  min-height: 270px;
  padding: 42px 78px 36px 38px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 88% 18%, rgba(var(--category-accent-rgb),0.14), transparent 25rem),
    linear-gradient(145deg, rgba(56,26,19,0.8), rgba(26,13,10,0.95));
  overflow: hidden;
}

.dialog-hero::after {
  content: "";
  position: absolute;
  right: -78px;
  bottom: -110px;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(var(--category-accent-rgb),0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 45px rgba(var(--category-accent-rgb),0.025), 0 0 0 95px rgba(var(--category-accent-rgb),0.012);
}

.dialog-hero-main {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 22px;
}

.dialog-item-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 74px;
  height: 74px;
  border: 1px solid rgba(var(--category-accent-rgb),0.32);
  border-radius: 22px;
  background: rgba(var(--category-accent-rgb),0.07);
  color: rgb(var(--category-accent-rgb));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.055);
}

.dialog-item-icon svg {
  width: 40px;
  height: 40px;
}

.dialog-category-label {
  display: block;
  color: rgb(var(--category-accent-rgb));
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.dialog-hero h2 {
  margin: 8px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.dialog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dialog-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 31px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(0,0,0,0.13);
  color: var(--text-soft);
  font-size: 0.72rem;
}

.dialog-meta span svg {
  width: 15px;
  height: 15px;
  color: var(--gold-bright);
}

.dialog-summary-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
  margin-top: 24px;
}

.dialog-summary-card {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(15,8,6,0.25);
}

.dialog-summary-card > span {
  display: block;
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dialog-summary-card p {
  margin: 7px 0 0;
  color: var(--text-soft);
  font-size: 0.82rem;
}

.dialog-content-body {
  display: grid;
  gap: 20px;
  padding: 30px 38px 40px;
}

.dialog-section {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(38,18,14,0.58);
  overflow: hidden;
}

.dialog-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.dialog-section-header > div:first-child {
  display: flex;
  align-items: center;
  gap: 11px;
}

.dialog-section-header .section-icon {
  width: 20px;
  height: 20px;
  color: var(--gold-bright);
}

.dialog-section-header h3 {
  margin: 0;
  font-size: 0.94rem;
}

.dialog-section-header p {
  margin: 3px 0 0;
  color: var(--text-muted);
  font-size: 0.7rem;
}

.table-legend {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-muted);
  font-size: 0.67rem;
}

.table-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.table-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

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

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

.upgrade-table th,
.upgrade-table td {
  padding: 12px 13px;
  border-right: 1px solid rgba(236, 197, 158, 0.3);
  border-bottom: 1px solid rgba(236,197,158,0.09);
  text-align: center;
}

.upgrade-table th:last-child,
.upgrade-table td:last-child {
  border-right: 0;
}

.upgrade-table tbody tr:last-child td {
  border-bottom: 0;
}

.upgrade-table thead th {
  background: #301a12;
  color: var(--text-muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.upgrade-table thead tr:first-child th.group-high {
  color: var(--gold-bright);
}

.upgrade-table thead tr:first-child th.group-low {
  color: var(--teal-soft);
}

.upgrade-table tbody td {
  color: var(--text-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
}

.upgrade-table .step-cell {
  color: var(--text);
  font-family: inherit;
  font-weight: 800;
}

.upgrade-table .status-cell {
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.7rem;
}

.upgrade-table tr.inactive-row {
  background: rgba(255,255,255,0.01);
}

.upgrade-table tr.active-row {
  background: rgba(242,178,66,0.018);
}

.upgrade-table tr.activation-row {
  background: rgba(242,178,66,0.065);
}

.upgrade-table tr.max-row {
  background: rgba(85,196,195,0.05);
}

.upgrade-table tr.activation-row .step-cell {
  color: var(--gold-bright);
}

.upgrade-table tr.max-row .step-cell {
  color: var(--teal-soft);
}

.upgrade-table .dash {
  color: rgba(164,146,127,0.45);
}

.dialog-note {
  display: flex;
  gap: 12px;
  padding: 18px 20px;
}

.dialog-note > span {
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  color: var(--gold-bright);
}

.dialog-note p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.83rem;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

.dialog-action-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,0.025);
  color: var(--text-soft);
  cursor: pointer;
}

.dialog-action-button:hover,
.dialog-action-button:focus-visible {
  border-color: rgba(242,178,66,0.3);
  background: rgba(242,178,66,0.055);
  color: var(--gold-bright);
  outline: none;
}

.dialog-action-button span {
  width: 17px;
  height: 17px;
}

/* Footer and utility */
.site-footer {
  border-top: 1px solid var(--line);
  background: #110805;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 32px;
  min-height: 180px;
  padding: 34px 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand strong,
.footer-sources strong {
  font-size: 0.82rem;
}

.footer-brand p,
.footer-sources p {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 0.72rem;
}

.back-to-top {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.025);
  color: var(--text-soft);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background var(--transition), transform var(--transition);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  border-color: rgba(242,178,66,0.3);
  background: rgba(242,178,66,0.06);
  color: var(--gold-bright);
  transform: translateY(-2px);
  outline: none;
}

.back-to-top span {
  width: 19px;
  height: 19px;
}

.filter-backdrop {
  position: fixed;
  z-index: 1190;
  inset: 0;
  background: rgba(8,4,3,0.64);
  backdrop-filter: blur(4px);
}

.toast {
  position: fixed;
  z-index: 3000;
  right: 22px;
  bottom: 22px;
  max-width: min(380px, calc(100% - 44px));
  padding: 12px 15px;
  border: 1px solid rgba(242,178,66,0.25);
  border-radius: 11px;
  background: rgba(33,16,12,0.96);
  color: var(--text);
  font-size: 0.78rem;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.noscript-message {
  position: fixed;
  z-index: 9999;
  right: 16px;
  bottom: 16px;
  left: 16px;
  padding: 14px;
  border: 1px solid var(--red);
  border-radius: 10px;
  background: #351a1a;
  text-align: center;
}

[data-icon] {
  display: inline-block;
}

/* Responsive */
@media (max-width: 1260px) {
  .header-search-trigger {
    display: none;
  }

  .category-nav {
    margin-left: auto;
  }

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

  .results-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1040px) {
  :root {
    --header-height: 68px;
  }

  .page-width {
    width: min(calc(100% - 36px), var(--page-width));
  }

  .section-space {
    padding: 78px 0;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .category-nav {
    position: fixed;
    z-index: 1100;
    top: var(--header-height);
    right: 12px;
    left: 12px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    max-height: calc(100vh - var(--header-height) - 24px);
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: rgba(27,13,10,0.98);
    box-shadow: var(--shadow);
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-12px) scale(0.98);
    transform-origin: top;
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition);
  }

  .category-nav.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  .category-nav a {
    padding: 12px;
    border: 1px solid transparent;
  }

  .category-nav a:hover,
  .category-nav a.active {
    border-color: var(--line);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 50px;
    min-height: auto;
    padding: 96px 0 76px;
  }

  .hero-copy {
    max-width: 900px;
  }

  .hero-copy h1 {
    font-size: clamp(4rem, 13vw, 7.5rem);
  }

  .hero-panel {
    display: grid;
    grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr);
    align-items: center;
    gap: 24px;
    min-height: auto;
  }

  .hero-emblem {
    width: 100%;
    max-width: 240px;
    margin: 0 auto;
    grid-row: 1 / span 2;
  }

  .hero-emblem-logo {
    grid-row: 1 / span 2;
    margin-bottom: 0;
  }

  .hero-cta-row {
    grid-column: 2;
    margin-top: 0;
  }

  .hero-stats {
    margin-top: 0;
  }

  .hero-panel-note {
    margin-top: 0;
  }

  .split-heading {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 16px;
  }

  .system-notes-grid {
    grid-template-columns: 1fr;
  }

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

  .browser-shell {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    position: fixed;
    z-index: 1200;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(380px, calc(100% - 44px));
    padding: 24px;
    border-width: 0 1px 0 0;
    border-radius: 0 18px 18px 0;
    overflow-y: auto;
    transform: translateX(-104%);
    transition: transform 240ms ease;
  }

  .filter-panel.open {
    transform: translateX(0);
  }

  .filter-close,
  .mobile-filter-button {
    display: grid;
  }

  .mobile-filter-button {
    display: inline-flex;
  }

  .browser-topbar {
    margin-bottom: 13px;
  }
}

@media (max-width: 760px) {
  .page-width {
    width: min(calc(100% - 24px), var(--page-width));
  }

  .section-space {
    padding: 62px 0;
  }

  .header-inner {
    width: calc(100% - 24px);
  }

  .brand-mark {
    width: 39px;
    height: 39px;
  }

  .brand-copy strong {
    font-size: 1rem;
  }

  .brand-copy span {
    font-size: 0.62rem;
  }

  .hero-grid {
    padding: 76px 0 62px;
  }

  .hero-copy h1 {
    margin-top: 18px;
    font-size: clamp(3.55rem, 19vw, 6rem);
  }

  .hero-copy > p {
    font-size: 0.98rem;
  }

  .hero-search {
    margin-top: 30px;
    border-radius: 14px;
  }

  .hero-search input {
    height: 58px;
    font-size: 0.9rem;
  }

  .hero-search .search-shortcut {
    display: none;
  }

  .hero-panel {
    display: block;
    padding: 0;
  }

  .hero-emblem {
    width: 62%;
    max-width: 210px;
    margin-bottom: 14px;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-stat {
    padding: 13px 6px;
  }

  .hero-stat strong {
    font-size: 1.65rem;
  }

  .hero-stat span {
    font-size: 0.59rem;
  }

  .hero-panel-note {
    margin-top: 10px;
  }

  .section-heading h2 {
    font-size: 2.45rem;
  }

  .system-flow {
    grid-template-columns: 1fr;
  }

  .system-flow::before {
    top: 16%;
    bottom: 16%;
    left: 43px;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, transparent, rgba(242,178,66,0.35), transparent);
  }

  .flow-card {
    min-height: auto;
    padding: 21px;
  }

  .flow-card h3 {
    margin-top: 20px;
  }

  .info-panel {
    padding: 21px;
  }

  .panel-icon {
    width: 42px;
    height: 42px;
  }

  .info-panel h3 {
    font-size: 1.25rem;
  }

  .technical-details-content {
    padding-left: 39px;
  }

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

  .category-card {
    min-height: 250px;
  }

  .browser-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px;
  }

  .browser-title-wrap {
    align-items: flex-start;
  }

  .browser-category-icon {
    width: 48px;
    height: 48px;
  }

  .browser-header h2 {
    white-space: normal;
  }

  .browser-controls {
    width: 100%;
  }

  .sort-control {
    flex: 1;
  }

  .result-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .results-table-wrap {
    display: none;
  }

  .results-card-grid {
    grid-template-columns: 1fr;
  }

  .view-toggle {
    display: none;
  }

  .item-dialog {
    width: 100%;
    max-width: none;
    max-height: 94vh;
    margin: auto 0 0;
    border-width: 1px 0 0;
    border-radius: 22px 22px 0 0;
  }

  .dialog-frame {
    max-height: 94vh;
  }

  .dialog-hero {
    padding: 36px 58px 28px 22px;
  }

  .dialog-hero-main {
    gap: 15px;
  }

  .dialog-item-icon {
    width: 58px;
    height: 58px;
    border-radius: 17px;
  }

  .dialog-item-icon svg {
    width: 31px;
    height: 31px;
  }

  .dialog-hero h2 {
    font-size: 2rem;
  }

  .dialog-summary-grid {
    grid-template-columns: 1fr;
  }

  .dialog-content-body {
    padding: 20px 12px 28px;
  }

  .dialog-section-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .table-legend {
    display: none;
  }

  .dialog-actions {
    justify-content: stretch;
  }

  .dialog-action-button {
    flex: 1;
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr auto;
    gap: 22px;
    min-height: 220px;
  }

  .footer-sources {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 480px) {
  .category-nav {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: clamp(3.1rem, 18vw, 4.6rem);
  }

  .hero-stats {
    gap: 6px;
  }

  .hero-stat strong {
    font-size: 1.4rem;
  }

  .search-suggestions button:nth-child(3) {
    display: none;
  }

  .info-panel {
    flex-direction: column;
  }

  .browser-title-wrap {
    gap: 12px;
  }

  .browser-category-icon {
    width: 44px;
    height: 44px;
  }

  .sort-control select {
    font-size: 0.72rem;
  }

  .dialog-hero-main {
    display: block;
  }

  .dialog-item-icon {
    margin-bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  :root {
    color-scheme: light;
  }

  body {
    background: #fff;
    color: #111;
  }

  .site-header,
  .hero,
  .system-section,
  .categories-section,
  .filter-panel,
  .browser-topbar,
  .browser-controls,
  .active-filter-bar,
  .result-summary button,
  .site-footer,
  .dialog-close,
  .dialog-actions {
    display: none !important;
  }

  .browser-section {
    padding: 0;
    background: #fff;
  }

  .page-width,
  .browser-shell {
    width: 100%;
  }

  .browser-header,
  .results-table-wrap,
  .dialog-section {
    border-color: #bbb;
    background: #fff;
    box-shadow: none;
  }

  .results-table thead th,
  .upgrade-table thead th {
    background: #eee;
    color: #111;
  }

  .results-table td,
  .upgrade-table tbody td,
  .browser-header p,
  .browser-kicker {
    color: #222;
  }
}

/* --- Gear Score + tam yukseltme zinciri (item_proto / refine_proto) --- */

/* Sargisiz svg ikonlarin dev buyumesine karsi kalici sinir (global svg %100 kuralina onlem). */
.dialog-action-button svg,
.row-detail-button svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.gs-tablo-wrap {
  margin-bottom: 14px;
}

.refine-steps thead th:last-child {
  text-align: right;
}

.gs-tablo thead th:not(:first-child) {
  text-align: right;
  width: 17%;
}

.gs-tablo td.num {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 600;
}

.gs-tablo tr.gs-h td.num {
  color: var(--gold-bright);
}

.gs-tablo tr.gs-l td.num {
  color: var(--teal-soft);
}

.refine-branch-note {
  margin: 0 0 10px;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.refine-branch-title {
  margin: 14px 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
}

.refine-steps-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.refine-steps {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}

.refine-steps th,
.refine-steps td {
  padding: 9px 12px;
  border-bottom: 1px solid rgba(236, 197, 158, 0.09);
  text-align: left;
  font-size: 0.78rem;
}

.refine-steps thead th {
  background: #301a12;
  color: var(--text-muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.refine-steps tbody tr:last-child td {
  border-bottom: 0;
}

.refine-steps td.step {
  white-space: nowrap;
  font-weight: 700;
  color: var(--text);
}

.refine-steps td.mats {
  color: var(--text-soft);
}

.refine-steps td.num {
  text-align: right;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--text);
}

.refine-steps tr.hl td {
  background: rgba(242, 178, 66, 0.07);
}

.refine-steps tr.hl td.step {
  color: var(--gold-bright);
}

.refine-steps .mats .none {
  color: var(--text-muted);
}

/* --- Ana sayfa tek bilgi kutusu (oyuncu-yuzu sadelestirme) --- */

.system-summary-panel {
  max-width: 900px;
  margin: 0 auto;
}

.system-summary-head {
  text-align: center;
  margin-bottom: 26px;
}

.system-summary-head h3 {
  margin: 8px 0 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 500;
}

.system-summary-head::after {
  content: "";
  display: block;
  width: 76px;
  height: 2px;
  margin: 18px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.system-summary-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.system-summary-list li {
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid rgba(229, 166, 61, 0.55);
  border-radius: 12px;
  background: rgba(40, 19, 14, 0.55);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-soft);
}

@media (max-width: 760px) {
  .system-summary-list {
    grid-template-columns: 1fr;
  }
}

.system-summary-list b {
  color: var(--text);
  font-weight: 700;
}

/* --- Ust bar yerinde arama + oneriler (Google tarzi, en fazla 3 satir) --- */

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 220px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.header-search > span[data-icon] {
  width: 15px;
  height: 15px;
  color: var(--text-muted);
  flex: 0 0 auto;
}

.header-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  outline: none;
}

.header-search input::placeholder {
  color: var(--text-muted);
}

.header-search kbd {
  padding: 1px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.66rem;
  color: var(--text-muted);
}

.header-suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 40;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel-strong);
  box-shadow: var(--shadow-soft);
}

.header-suggest button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-bottom: 1px solid rgba(236, 197, 158, 0.08);
  background: none;
  color: var(--text-soft);
  font: inherit;
  font-size: 0.8rem;
  text-align: left;
  cursor: pointer;
}

.header-suggest button:last-child {
  border-bottom: 0;
}

.header-suggest button:hover {
  background: rgba(242, 178, 66, 0.08);
  color: var(--text);
}

.header-suggest .hs-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: var(--text-muted);
}

.header-suggest .hs-icon svg {
  width: 15px;
  height: 15px;
}

.header-suggest strong {
  font-weight: 600;
}

.header-suggest em {
  margin-left: auto;
  font-style: normal;
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Hesaplayici baglantilari */
.category-card.gear-calc-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.category-nav .nav-gear-link {
  color: var(--gold-bright);
}

@media (max-width: 900px) {
  .header-search {
    min-width: 0;
  }
  .header-search kbd {
    display: none;
  }
}


/* ============ Misali2 Feda logo entegrasyonu (30.07) ============ */
.brand-logo {
  display: block;
  height: 48px;
  width: auto;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.5));
}
.brand-alt {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}
.hero-emblem-logo {
  position: relative;
  z-index: 1;
  width: min(92%, 400px);
  margin: 0 auto 16px;
  filter: drop-shadow(0 20px 34px rgba(0, 0, 0, 0.5));
}
.hero-emblem-logo img { width: 100%; height: auto; display: block; }
.footer-logo {
  display: block;
  height: 42px;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

/* ============ Liste/kart eşya ikonları (30.07) ============ */
.table-item-icon .item-icon-img,
.item-card-icon .item-icon-img {
  width: 100%;
  height: 100%;
  padding: 4px;
  object-fit: contain;
  image-rendering: pixelated;
  display: block;
}
.table-item-icon {
  background: linear-gradient(160deg, rgba(40, 19, 14, 0.85), rgba(20, 10, 7, 0.9));
}
.item-card-icon {
  background: linear-gradient(160deg, rgba(40, 19, 14, 0.85), rgba(20, 10, 7, 0.9));
}

/* Detay penceresi ikon kutusu: uzun Metin2 ikonlari icin genis dikey slot (31.07) */
.dialog-item-icon {
  width: 96px;
  height: 128px;
  border-radius: 16px;
  padding: 10px;
  overflow: hidden;
  /* otomatik izlerde %100 yukseklik cozulmez, ikon dogal boyutuna kacar */
  grid-template-columns: 100%;
  grid-template-rows: 100%;
  background: linear-gradient(160deg, rgba(40, 19, 14, 0.9), rgba(20, 10, 7, 0.92));
}

/* Gelistirme tablosu: Yuksek ve Dusuk ayri tablolar, yan yana (31.07) */
.upgrade-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

.upgrade-branch {
  border: 1px solid rgba(236, 197, 158, 0.14);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.012);
}

.upgrade-branch-title {
  margin: 0;
  padding: 12px 16px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #301a12;
  border-bottom: 1px solid rgba(236, 197, 158, 0.14);
}

.upgrade-branch-high .upgrade-branch-title {
  color: var(--gold-bright);
}

.upgrade-branch-low .upgrade-branch-title {
  color: var(--teal-soft);
}

.upgrade-split .upgrade-table {
  min-width: 340px;
}

@media (max-width: 900px) {
  .upgrade-split {
    grid-template-columns: 1fr;
  }
}

/* 6-7. efsun oranlari bolumu (31.07) */
.enchant-section {
  border-bottom: 1px solid var(--line);
}

.enchant-intro {
  max-width: 620px;
  margin: -8px auto 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.enchant-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}

.enchant-table-wrap {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(40, 19, 14, 0.55);
}

.enchant-table {
  width: 100%;
  border-collapse: collapse;
}

.enchant-table th,
.enchant-table td {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(236, 197, 158, 0.09);
  text-align: left;
  font-size: 0.82rem;
}

.enchant-table th:last-child,
.enchant-table td:last-child {
  text-align: right;
  white-space: nowrap;
}

.enchant-table thead th {
  background: #301a12;
  color: var(--text-muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.enchant-table tbody td {
  color: var(--text-soft);
}

.enchant-table tbody td:last-child {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
}

.enchant-table tbody tr:last-child td {
  border-bottom: 0;
}

.enchant-table tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.014);
}

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

/* Hero: Gear Score Hesapla butonu (31.07) */
.hero-gear-cta {
  display: block;
  width: fit-content;
  margin: 20px auto 0;
  padding: 14px 36px;
  border: 1px solid rgba(229, 166, 61, 0.55);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(229, 166, 61, 0.18), rgba(229, 166, 61, 0.05));
  color: var(--gold-bright);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hero-gear-cta:hover {
  border-color: rgba(255, 203, 92, 0.8);
  background: linear-gradient(160deg, rgba(229, 166, 61, 0.3), rgba(229, 166, 61, 0.1));
  transform: translateY(-1px);
}

/* Drop Listesi sayfasi (31.07) */
.drop-main {
  padding: 46px 0 70px;
}

.drop-top-nav {
  display: flex;
  gap: 18px;
  margin-left: auto;
}

.drop-top-nav a {
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.drop-top-nav a:hover {
  color: var(--gold-bright);
}

.drop-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0 6px;
}

.drop-controls input {
  flex: 1;
  min-width: 240px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(20, 10, 7, 0.6);
  color: var(--text);
  font-size: 0.9rem;
}

.drop-controls input:focus {
  outline: none;
  border-color: rgba(229, 166, 61, 0.55);
}

.drop-tabs {
  display: flex;
  gap: 8px;
}

.drop-tabs button {
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(40, 19, 14, 0.55);
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.drop-tabs button.active {
  border-color: rgba(229, 166, 61, 0.55);
  background: rgba(229, 166, 61, 0.12);
  color: var(--gold-bright);
}

.drop-sonuc {
  margin: 6px 0 16px;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.drop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}

.drop-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(40, 19, 14, 0.55);
}

.drop-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  background: #301a12;
  border-bottom: 1px solid var(--line);
}

.drop-card h3 {
  margin: 0;
  color: var(--gold-bright);
  font-size: 0.88rem;
}

.drop-sv {
  padding: 3px 9px;
  border: 1px solid rgba(85, 196, 195, 0.3);
  border-radius: 999px;
  color: var(--teal-soft);
  font-size: 0.64rem;
  font-weight: 700;
  white-space: nowrap;
}

.drop-card table {
  width: 100%;
  border-collapse: collapse;
}

.drop-card th,
.drop-card td {
  padding: 8px 14px;
  border-bottom: 1px solid rgba(236, 197, 158, 0.08);
  text-align: left;
  font-size: 0.78rem;
  color: var(--text-soft);
}

.drop-card thead th {
  background: rgba(48, 26, 18, 0.6);
  color: var(--text-muted);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.drop-card th:nth-child(2),
.drop-card td:nth-child(2) {
  width: 54px;
  text-align: center;
}

.drop-card th:last-child,
.drop-card td:last-child {
  text-align: right;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.drop-card tbody tr:last-child td {
  border-bottom: 0;
}

.drop-bos {
  color: var(--text-muted);
  font-size: 0.85rem;
}

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

/* Drop: aranan esya satiri vurgusu (31.07) */
.drop-card tr.drop-eslesen td {
  color: var(--gold-bright);
  background: rgba(229, 166, 61, 0.1);
  font-weight: 700;
}

/* Hero CTA sirasi: butonlar alt alta ortali (31.07) */
.hero-cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.hero-cta-row .hero-gear-cta {
  margin: 0;
}

/* Coin droplari: bolum ara basliklari (31.07) */
.drop-card tr.drop-altbaslik td {
  padding: 9px 14px;
  background: rgba(229, 166, 61, 0.09);
  color: var(--gold-bright);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Drop sekmeleri ustte, ortali ve belirgin (31.07) */
.drop-tabs-ust {
  justify-content: center;
  flex-wrap: wrap;
  margin: 4px 0 18px;
}

.drop-tabs-ust button {
  padding: 13px 26px;
  font-size: 0.84rem;
}

/* Drop ozel sayfa basligi (31.07) */
.drop-detay-baslik {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 18px 22px;
  border: 1px solid rgba(229, 166, 61, 0.3);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(229, 166, 61, 0.1), rgba(40, 19, 14, 0.5));
}

.drop-detay-baslik h2 {
  margin: 0;
  color: var(--gold-bright);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  font-weight: 500;
}

.drop-detay-baslik p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.drop-detay-baslik a {
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.drop-detay-baslik a:hover {
  color: var(--gold-bright);
}

/* Diyalog: Dusecegi Moblar bolumu (31.07) */
.drop-kaynak-listesi {
  padding: 16px 20px;
  display: grid;
  gap: 10px;
}

.drop-kaynak-listesi p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.82rem;
  line-height: 1.6;
}

.drop-kaynak-listesi strong {
  color: var(--gold-bright);
  font-weight: 700;
}

.drop-kaynak-link {
  color: var(--text-soft);
  font-size: 0.74rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.drop-kaynak-link:hover {
  color: var(--gold-bright);
}

/* Orta genislikte (1041-1500px) header menusu sigmiyor: ikinci satira sar (31.07) */
@media (min-width: 1041px) and (max-width: 1500px) {
  .site-header {
    height: auto;
  }

  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 8px 0;
    row-gap: 2px;
  }

  .category-nav {
    order: 5;
    width: 100%;
    flex-wrap: wrap;
    overflow: visible;
    margin-left: 0;
    justify-content: center;
  }
}

/* Malzeme drop ipucu (31.07) */
.malzeme-ipucu {
  border-bottom: 1px dotted rgba(229, 166, 61, 0.55);
  cursor: help;
}

.malzeme-ipucu:hover {
  color: var(--gold-bright);
}

.malzeme-tooltip {
  position: fixed;
  z-index: 60;
  max-width: 340px;
  padding: 12px 15px;
  border: 1px solid rgba(229, 166, 61, 0.45);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(40, 19, 14, 0.98), rgba(20, 10, 7, 0.98));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  font-size: 0.74rem;
  line-height: 1.55;
}

.malzeme-tooltip strong {
  display: block;
  margin-bottom: 6px;
  color: var(--gold-bright);
  font-size: 0.76rem;
}

.malzeme-tooltip p {
  margin: 3px 0 0;
  color: var(--text-soft);
}

.malzeme-tooltip p b {
  color: var(--teal-soft);
  font-weight: 700;
}

.malzeme-tooltip p i {
  color: var(--text-muted);
  font-style: normal;
}

.malzeme-tooltip .mt-yok {
  color: var(--text-muted);
}

/* Uretim & F11 sayfasi (31.07, v31108) */
.uretim-bolum-baslik {
  grid-column: 1 / -1;
  margin: 14px 0 0;
  font-family: Cinzel, serif;
  font-variant: small-caps;
  letter-spacing: 0.08em;
  font-size: 1.02rem;
  color: var(--gold-bright);
  border-bottom: 1px solid rgba(229, 166, 61, 0.25);
  padding-bottom: 6px;
}

.uretim-esya-link {
  color: var(--gold-bright);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 203, 92, 0.45);
}

.uretim-esya-link:hover {
  color: #ffe1a0;
  border-bottom-color: #ffe1a0;
}

.uretim-alt {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding: 9px 14px;
  border-top: 1px dashed rgba(236, 197, 158, 0.15);
  background: rgba(48, 26, 18, 0.45);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
}

.uretim-genis {
  grid-column: 1 / -1;
}

.uretim-genis th:nth-child(2),
.uretim-genis td:nth-child(2) {
  width: auto;
  text-align: right;
  white-space: normal;
  font-family: inherit;
}

.odul-chip {
  display: inline-block;
  margin: 2px 0 2px 6px;
  padding: 2px 9px;
  border: 1px solid rgba(236, 197, 158, 0.25);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-soft);
  white-space: nowrap;
}

.odul-chip.gs {
  border-color: rgba(255, 203, 92, 0.55);
  background: rgba(229, 166, 61, 0.14);
  color: var(--gold-bright);
}

/* Hero CTA: uc buton esit ve genis; uzun etiket tek satirda ferah durur (31.07, v31112) */
.hero-cta-row .hero-gear-cta {
  width: 330px;
  max-width: 100%;
  height: 50px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}

.hero-cta-row .hero-cta-uzun {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

/* ================= Arindirma penceresi — oyun UI kopyasi (31.07, v31113) ================= */
.m2-pencere {
  grid-column: 1 / -1;
  width: 420px;
  max-width: 100%;
  margin: 6px auto 0;
  border: 2px solid #0d0705;
  border-radius: 10px;
  background: linear-gradient(175deg, #2e1d12, #221408 55%, #1b0f07);
  box-shadow: inset 0 0 0 1px rgba(214, 168, 106, 0.22), inset 0 0 26px rgba(0, 0, 0, 0.55), 0 14px 34px rgba(0, 0, 0, 0.55);
  padding: 7px;
  user-select: none;
}

.m2-baslik {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 30px;
  margin-bottom: 7px;
  border: 1px solid #120a05;
  border-radius: 6px;
  background: linear-gradient(180deg, #52341c, #33200f 55%, #241407);
  box-shadow: inset 0 1px 0 rgba(236, 197, 158, 0.22);
  color: #f0d9b2;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}

.m2-kapat {
  position: absolute;
  right: 5px;
  top: 5px;
  width: 20px;
  height: 20px;
  border: 1px solid #1a0f08;
  border-radius: 4px;
  background: linear-gradient(180deg, #6b402a, #3a2212);
  color: #f0d9b2;
  font-size: 0.6rem;
  cursor: pointer;
  line-height: 1;
}

.m2-kapat:hover { background: linear-gradient(180deg, #86512f, #4a2c16); }

.m2-agac {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #120a05;
  border-radius: 6px;
  background: rgba(12, 6, 3, 0.55);
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.5);
  padding: 5px;
  scrollbar-width: thin;
  scrollbar-color: #5a3d24 #1a0f08;
}

.m2-kat {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 3px 0;
  padding: 6px 8px;
  border: 1px solid #1c1008;
  border-radius: 5px;
  background: linear-gradient(180deg, #4a3018, #2c1b0c);
  box-shadow: inset 0 1px 0 rgba(236, 197, 158, 0.16);
  color: #ecd7ae;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}

.m2-kat:hover { background: linear-gradient(180deg, #59391d, #35200e); }

.m2-kat i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border: 1px solid #6b4a28;
  border-radius: 3px;
  background: #1c1008;
  color: #ffcb5c;
  font-style: normal;
  font-size: 0.7rem;
  line-height: 1;
  flex: none;
}

.m2-tarif {
  margin: 2px 0 2px 20px;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #c9b28c;
  font-size: 0.72rem;
  cursor: pointer;
}

.m2-tarif::before { content: '- '; color: #8a6f4c; }

.m2-tarif:hover { background: rgba(229, 166, 61, 0.1); color: #f0d9b2; }

.m2-tarif.aktif {
  border-color: #6b4a28;
  background: linear-gradient(180deg, #5c3c1e, #38220f);
  box-shadow: inset 0 1px 0 rgba(236, 197, 158, 0.2);
  color: #ffe3ae;
  font-weight: 700;
}

.m2-slotlar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 62px;
  margin-top: 7px;
  padding: 8px;
  border: 1px solid #120a05;
  border-radius: 6px;
  background: rgba(12, 6, 3, 0.55);
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.5);
}

.m2-slot {
  position: relative;
  width: 46px;
  height: 46px;
  border: 2px solid;
  border-color: #4d3820 #170d06 #170d06 #4d3820;
  border-radius: 5px;
  background: radial-gradient(circle at 32% 28%, #352212, #170d06 78%);
  cursor: default;
  flex: none;
}

.m2-slot[data-tikla="1"] { cursor: pointer; }

.m2-slot[data-tikla="1"]:hover { border-color: #b8863f #5a3d1c #5a3d1c #b8863f; }

.m2-slot-urun {
  border-color: #e5a63d #6b4a12 #6b4a12 #e5a63d;
  box-shadow: 0 0 10px rgba(229, 166, 61, 0.35);
}

.m2-slot img {
  position: absolute;
  inset: 3px;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  object-fit: contain;
}

.m2-slot-glif {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 203, 92, 0.72);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.9));
}

.m2-slot-glif svg {
  width: 27px;
  height: 27px;
}

.m2-slot-adet {
  position: absolute;
  right: 2px;
  bottom: 1px;
  font-size: 0.6rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 2px #000, 0 0 4px #000;
  font-style: normal;
  z-index: 1;
}

.m2-slot-ok { color: #8a6f4c; font-size: 1rem; margin: 0 2px; }

.m2-bos { color: var(--text-muted); font-size: 0.72rem; padding: 6px; }

.m2-altbilgi {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 7px;
}

.m2-yang {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid #120a05;
  border-radius: 6px;
  background: rgba(12, 6, 3, 0.7);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
  color: #ffe3ae;
  font-size: 0.74rem;
  font-weight: 700;
  justify-content: flex-end;
}

.m2-coin {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe08a, #d18f1f 60%, #7a4d0d);
  box-shadow: 0 0 5px rgba(255, 203, 92, 0.5);
  margin-right: auto;
  flex: none;
}

.m2-sans { color: #9fdc9a; font-size: 0.7rem; font-weight: 700; white-space: nowrap; }

.m2-sans.dusuk { color: #e08a8a; }

.m2-butonlar {
  display: flex;
  gap: 8px;
  margin-top: 7px;
}

.m2-dugme {
  flex: 1;
  height: 28px;
  border: 1px solid #170d06;
  border-radius: 6px;
  background: linear-gradient(180deg, #5c3a20, #33200f);
  box-shadow: inset 0 1px 0 rgba(236, 197, 158, 0.2);
  color: #f0d9b2;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.m2-dugme:hover { background: linear-gradient(180deg, #6f4626, #3d2612); }

.m2-arama {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  height: 28px;
  padding: 0 6px 0 10px;
  border: 1px solid #120a05;
  border-radius: 6px;
  background: rgba(12, 6, 3, 0.7);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
}

.m2-arama input {
  flex: 1;
  background: none;
  border: 0;
  outline: 0;
  color: #f0d9b2;
  font-size: 0.72rem;
}

.m2-arama input::placeholder { color: #8a6f4c; }

.m2-arama-sil {
  width: 18px;
  height: 18px;
  border: 1px solid #1a0f08;
  border-radius: 3px;
  background: linear-gradient(180deg, #6b402a, #3a2212);
  color: #f0d9b2;
  font-size: 0.55rem;
  cursor: pointer;
  line-height: 1;
  flex: none;
}

.m2-not {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.72rem;
  margin: 10px 0 0;
}

.m2-not b { color: var(--teal-soft); }

@keyframes m2Parla {
  0% { box-shadow: inset 0 0 0 1px rgba(214, 168, 106, 0.22), 0 0 0 rgba(255, 203, 92, 0); }
  40% { box-shadow: inset 0 0 0 1px rgba(255, 203, 92, 0.7), 0 0 26px rgba(255, 203, 92, 0.45); }
  100% { box-shadow: inset 0 0 0 1px rgba(214, 168, 106, 0.22), 0 0 0 rgba(255, 203, 92, 0); }
}

.m2-parla { animation: m2Parla 0.7s ease; }

/* ================= Nesne Market — oyun arayuzu 1:1 kopya (01.08, v31122; kesitler gear-img/ui/) ================= */
.m4-sahne { overflow-x: auto; padding-bottom: 8px; }

.m4-panel {
  position: relative;
  width: 980px;
  margin: 0 auto;
  background: #0d1725;
  border: 1px solid #1b2c42;
  font-family: Tahoma, Verdana, sans-serif;
  user-select: none;
}

.m4-panel img { image-rendering: auto; display: block; }

/* ---- ust bar ---- */
.m4-ust {
  position: relative;
  height: 62px;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, #1a2836 0%, #16222f 70%, #24364a 100%);
  border-bottom: 1px solid #2b3f57;
}

.m4-cuzdan { display: inline-flex; align-items: center; gap: 8px; margin-left: 32px; }
.m4-cuzdan:first-child { margin-left: 30px; }
.m4-cuzdan img { width: 26px; height: 26px; }
.m4-cuzdan b { display: block; color: #ffb428; font-size: 11px; font-weight: 400; line-height: 1.35; }
.m4-cuzdan i { color: #8fa3bc; font-style: normal; font-size: 10px; }

.m4-ust-butonlar { display: inline-flex; align-items: center; margin-left: 40px; }
.m4-ust-butonlar img { height: 41px; width: auto; cursor: default; }
.m4-ust-butonlar img + img { margin-left: 1px; }

.m4-ust input {
  width: 178px;
  height: 34px;
  margin-left: 8px;
  padding: 0 12px;
  border: 1px solid #2a3e5c;
  border-radius: 2px;
  background: #0c141f;
  color: #c7d5e8;
  font: 12px Tahoma, Verdana, sans-serif;
  outline: none;
}
.m4-ust input::placeholder { color: #5d738f; }

.m4-x { position: absolute; right: 6px; top: 7px; width: 28px; height: 26px; }

/* ---- govde ---- */
.m4-govde { position: relative; display: flex; align-items: stretch; min-height: 461px; }

.m4-yan { flex: none; width: 176px; padding: 9px 0 0 10px; }

.m4-yan button {
  position: relative;
  display: block;
  width: 150px;
  height: 24px;
  margin-bottom: 8px;
  border: 1px solid #3d5677;
  border-bottom-color: #101c2c;
  background: linear-gradient(180deg, #24384f, #16273a);
  color: #b9c9dd;
  font: 13px Tahoma, Verdana, sans-serif;
  cursor: pointer;
  padding: 0;
}
.m4-yan button img { position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%); width: 14px; height: 12px; }
.m4-yan button:hover { color: #e6eefa; }
.m4-yan button.aktif { border-color: #6f8cb0; color: #eef4fc; background: linear-gradient(180deg, #2b4159, #1a2c42); }
.m4-yan button.renkli { color: #22e14b; }
.m4-yan button.renkli.aktif { color: #35ff5f; }

.m4-icerik {
  flex: 1;
  position: relative;
  margin: 4px 4px 4px 0;
  border: 1px solid #1b2c42;
  background: #0d1725;
  padding: 2px 0 12px 10px;
  min-width: 0;
}

.m4-oklar { display: flex; height: 10px; margin-bottom: 1px; }
.m4-oklar img { width: 16px; height: 10px; margin-left: 234px; } .m4-oklar img:first-child { margin-left: 116px; }

.m4-grid {
  display: grid;
  grid-template-columns: repeat(3, 249px);
  grid-auto-rows: 132px;
  gap: 2px;
  width: fit-content;
}

.m4-bos { color: #6e84a3; font-size: 12px; padding: 20px; }

.m4-kaydirak {
  flex: none;
  width: 17px;
  margin: 4px 3px 4px 0;
  border: 1px solid #1b2c42;
  background: #0b1420;
  position: relative;
}
.m4-kaydirak span {
  position: absolute;
  left: 2px;
  top: 3px;
  width: 11px;
  height: 56px;
  border: 1px solid #31475f;
  background: linear-gradient(180deg, #24384f, #16273a);
}

/* ---- kart (249x132, oyun yerlesimi) ---- */
.m4-kart { position: relative; width: 249px; height: 132px; background: #0a111a; overflow: hidden; box-shadow: 0 0 0 1px #152435; }
.m4-sandikli { cursor: pointer; }
.m4-sandikli:hover { outline: 1px solid #4e7fc0; outline-offset: -1px; }

.m4-serit { position: absolute; left: 0; top: 0; width: 56px; height: 44px; }

.m4-kart h3 {
  position: absolute;
  left: 90px;
  top: 15px;
  margin: 0;
  color: #ffb428;
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
}

.m4-fiyat { position: absolute; left: 92px; top: 33px; display: flex; align-items: center; gap: 4px; }
.m4-fiyat img { width: 14px; height: 14px; }
.m4-fiyat b { color: #d6d6d6; font-size: 13px; font-weight: 400; }

.m4-slot { position: absolute; left: 28px; top: 45px; width: 34px; height: 34px; }
.m4-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

.m4-glif { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(140, 180, 230, 0.7); }
.m4-glif svg { width: 24px; height: 24px; }

.m4-adet { position: absolute; left: 44px; top: 76px; width: 22px; text-align: center; color: #e8e8e8; font-size: 11px; text-shadow: 0 1px 2px #000; }

.m4-secici { position: absolute; left: 65px; top: 80px; width: 62px; height: 22px; }

.m4-satinal { position: absolute; left: 155px; top: 77px; width: 95px; height: 42px; cursor: default; }

.m4-soru { position: absolute; left: 2px; top: 98px; width: 26px; height: 26px; }

.m4-stok {
  position: absolute;
  right: 8px;
  top: 4px;
  color: #ffcc66;
  font-size: 10px;
  opacity: 0.85;
}

.m4-kart::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -2px;
  transform: translateX(-50%);
  width: 20px;
  height: 18px;
  background: url('gear-img/ui/elmas.png?v=31123') no-repeat center bottom;
  pointer-events: none;
}

/* ---- sandik onizleme penceresi (358x458 birebir) ---- */
.m4-ortu {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 8, 14, 0.72);
  padding: 20px;
}

.m4-pencere {
  position: relative;
  width: 358px;
  height: 458px;
  flex: none;
  font-family: Tahoma, Verdana, sans-serif;
  filter: drop-shadow(0 18px 50px rgba(0, 0, 0, 0.8));
}

.m4-p-baslik { position: relative; width: 358px; height: 24px; background-repeat: no-repeat; }
.m4-kapat { position: absolute; right: 3px; top: 3px; width: 22px; height: 18px; border: 0; background: transparent; cursor: pointer; }

.m4-p-banner { width: 358px; height: 76px; background-repeat: no-repeat; }

.m4-p-serit { position: relative; width: 358px; height: 28px; display: flex; }
.m4-p-serit span { height: 28px; background-repeat: no-repeat; }
.m4-p-serit span:first-child { width: 10px; }
.m4-p-serit span:last-child { width: 10px; }
.m4-p-serit .orta { flex: 1; background-size: 100% 100%; display: flex; align-items: center; justify-content: center; }
.m4-p-serit .orta em { color: #d8d8d8; font-style: normal; font-size: 12px; white-space: nowrap; overflow: hidden; }

.m4-p-grid { position: relative; width: 358px; height: 256px; background-repeat: repeat-y; }

.m4-hucre { position: absolute; width: 32px; height: 32px; }
.m4-hucre img { position: absolute; inset: 1px; width: 30px; height: 30px; object-fit: contain; }
.m4-hucre b { position: absolute; right: 1px; bottom: 0; color: #fff; font-size: 10px; font-weight: 700; text-shadow: 0 1px 2px #000, 0 0 3px #000; z-index: 1; }
.m4-hucre .m4-glif svg { width: 20px; height: 20px; }

.m4-p-alt { position: relative; width: 358px; height: 66px; background-repeat: no-repeat; }
.m4-p-urun { position: absolute; left: 24px; top: 17px; width: 34px; height: 34px; background: #0d0a06; }
.m4-p-urun img { position: absolute; inset: 1px; width: 32px; height: 32px; object-fit: contain; }
.m4-p-ad {
  position: absolute;
  left: 60px;
  top: 23px;
  width: 155px;
  height: 20px;
  display: flex;
  align-items: center;
  padding: 0 6px;
  background: #0c0904;
  border: 1px solid #6b6b6b;
  color: #e0e0e0;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
}


/* ============ Metin element savunma notlari (05.08) ============ */
.drop-element-panel {
  grid-column: 1 / -1;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(40, 19, 14, 0.55);
  padding: 14px 18px;
}
.drop-element-panel h4 {
  margin: 0 0 9px;
  color: var(--gold-bright);
  font-size: 0.88rem;
  letter-spacing: 0.03em;
}
.drop-element-panel ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}
.drop-element-panel li {
  color: var(--text-soft);
  font-size: 0.78rem;
}
.drop-element-panel li b { color: var(--text); }
.drop-element-panel li::marker { color: var(--gold); }
.drop-element-panel li.e-simsek::marker { color: #ffd95c; }
.drop-element-panel li.e-ruzgar::marker { color: var(--teal-soft); }
.drop-element-panel li.e-olumsuz::marker { color: #c9a2ff; }
.drop-element-notu {
  margin: 0;
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(48, 26, 18, 0.45);
  font-size: 0.72rem;
  font-weight: 600;
  color: #ffb066;
}
.drop-element-notu.e-simsek { color: #ffd95c; }
.drop-element-notu.e-ruzgar { color: var(--teal-soft); }
.drop-element-notu.e-olumsuz { color: #c9a2ff; }

/* ================= Discord butonu (10.08, v31127) ================= */
.nav-discord {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #5865f2;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.nav-discord:hover { background: #6b76ff; color: #fff; }

.nav-discord svg { width: 16px; height: 16px; flex: none; }

.drop-top-nav .nav-discord { font-size: 0.76rem; align-self: center; }

.category-nav .nav-discord span { display: inline-flex; }
.category-nav .nav-discord span svg { width: 16px; height: 16px; }
