@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@600;700&display=swap');

:root {
  --bg: #07090f;
  --bg-elevated: #0e121c;
  --panel: rgba(16, 21, 33, 0.82);
  --panel-solid: #111724;
  --panel-soft: #151c2b;
  --text: #f4f7fb;
  --muted: #8f9aae;
  --line: rgba(255,255,255,.09);
  --primary: #ff385c;
  --primary-hover: #ff5774;
  --cyan: #41d8ff;
  --green: #44dc9b;
  --warning: #ffc857;
  --shadow: 0 24px 80px rgba(0,0,0,.42);
  --radius: 22px;
}

body.light {
  --bg: #f5f7fb;
  --bg-elevated: #ffffff;
  --panel: rgba(255,255,255,.88);
  --panel-solid: #ffffff;
  --panel-soft: #eef2f8;
  --text: #111521;
  --muted: #657085;
  --line: rgba(12,20,36,.1);
  --shadow: 0 24px 70px rgba(50,67,95,.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% -10%, rgba(255,56,92,.13), transparent 36%),
    radial-gradient(circle at 90% 15%, rgba(65,216,255,.08), transparent 32%),
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, input, textarea, select { font: inherit; }

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

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

.page-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: .08;
  pointer-events: none;
  z-index: -1;
}
.glow-one { background: var(--primary); left: -180px; top: 18%; }
.glow-two { background: var(--cyan); right: -200px; top: 42%; }

.shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: min(1240px, calc(100% - 28px));
  margin: 14px auto 0;
  min-height: 72px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 24px;
  background: rgba(10,13,21,.75);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 12px 44px rgba(0,0,0,.18);
  backdrop-filter: blur(20px);
}
body.light .site-header { background: rgba(255,255,255,.82); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: 15px;
  background: #081329;
  box-shadow:
    0 10px 28px rgba(45,154,255,.24),
    0 0 0 1px rgba(79,226,255,.14);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.04);
}
.brand strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: .08em;
  font-size: 15px;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 2px;
}

.desktop-nav {
  margin-left: auto;
  display: flex;
  gap: 6px;
}
.desktop-nav a {
  padding: 11px 14px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: .2s ease;
}
.desktop-nav a:hover { color: var(--text); background: var(--panel-soft); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.button, .icon-button {
  border: 0;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.button:hover, .icon-button:hover { transform: translateY(-2px); }
.button {
  min-height: 42px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
}
.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #ff6b51);
  box-shadow: 0 12px 28px rgba(255,56,92,.24);
}
.button-primary:hover { background: linear-gradient(135deg, var(--primary-hover), #ff805f); }
.button-secondary {
  color: var(--text);
  background: var(--panel-soft);
  border: 1px solid var(--line);
}
.button-ghost {
  color: var(--text);
  border: 1px solid var(--line);
  background: transparent;
}
.button-large { min-height: 50px; padding: 0 21px; border-radius: 14px; }

/* Header action labels must stay on one line. */
.header-actions .button,
.project-header-actions .button {
  flex: 0 0 auto;
  white-space: nowrap;
  word-break: keep-all;
}
.icon-button {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--text);
  background: var(--panel-soft);
  border: 1px solid var(--line);
}

.hero {
  min-height: 660px;
  padding: 100px 0 70px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 70px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(68,220,155,.55);
  animation: pulse 1.7s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(68,220,155,0); }
  100% { box-shadow: 0 0 0 0 rgba(68,220,155,0); }
}
.hero h1 {
  max-width: 720px;
  margin: 22px 0 20px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(46px, 6vw, 78px);
  line-height: .98;
  letter-spacing: -.05em;
}
.hero h1 span {
  background: linear-gradient(100deg, var(--primary), #ff8b5f 55%, var(--cyan));
  -webkit-background-clip: text;
  color: transparent;
}
.hero-copy > p {
  max-width: 610px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}
.hero-buttons { display: flex; gap: 12px; margin-top: 30px; }
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
  color: var(--muted);
  font-size: 13px;
}
.trust-row span::first-letter { color: var(--green); }

.hero-panel {
  position: relative;
  padding: 20px;
  background: linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.hero-panel::before {
  content: "";
  position: absolute;
  inset: 18% -22% auto auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--primary);
  filter: blur(80px);
  opacity: .16;
  z-index: -1;
}
.hero-panel-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
}
.live-badge {
  color: var(--green);
  padding: 4px 7px;
  border: 1px solid rgba(68,220,155,.3);
  border-radius: 999px;
  background: rgba(68,220,155,.08);
}
.live-badge.progress { color: var(--yellow); border-color: rgba(255,200,92,.3); background: rgba(255,200,92,.08); }
.live-badge.completed { color: var(--cyan); border-color: rgba(68,216,255,.3); background: rgba(68,216,255,.08); }
.live-badge.released { color: var(--green); border-color: rgba(68,220,155,.3); background: rgba(68,220,155,.08); }
.live-badge.empty { color: var(--muted); border-color: var(--line); background: var(--panel-soft); }
.featured-project {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 18px;
  color: inherit;
  text-decoration: none;
  background: var(--panel-solid);
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.featured-project:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.16);
  box-shadow: 0 16px 34px rgba(0,0,0,.16);
}
.featured-project:focus-visible {
  outline: 3px solid rgba(255,77,109,.32);
  outline-offset: 3px;
}
.featured-project.is-empty { pointer-events: none; }
.featured-cover {
  min-height: 210px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: 29px;
  font-weight: 800;
  letter-spacing: .08em;
  color: rgba(255,255,255,.9);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
}
.cover-high-on-life { background: linear-gradient(145deg, #6d45ff, #ff3d80 55%, #ffd05a); }
.featured-info { padding: 8px 2px; }
.mini-label { color: var(--primary); font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.featured-info h2 { margin: 8px 0 6px; font-size: 25px; }
.featured-info p { margin: 0 0 20px; color: var(--muted); font-size: 13px; }
.progress-meta { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 8px; }
.progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--panel-soft);
}
.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #ff9a56);
}
.featured-info small { display: block; color: var(--muted); margin-top: 10px; font-size: 10px; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.stat-grid div {
  padding: 16px 10px;
  text-align: center;
  border-radius: 14px;
  background: var(--panel-solid);
  border: 1px solid var(--line);
}
.stat-grid strong { display: block; font-size: 22px; }
.stat-grid span { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }

.announcement {
  min-height: 70px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid rgba(255,56,92,.22);
  border-radius: 18px;
  background: linear-gradient(90deg, rgba(255,56,92,.1), rgba(65,216,255,.045));
}
.announcement > div { display: flex; align-items: center; gap: 14px; }
.announcement-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 11px;
  color: #fff;
  background: var(--primary);
}
.announcement p { margin: 0; color: var(--muted); font-size: 13px; }
.announcement p strong { color: var(--text); }
.announcement button {
  border: 0;
  background: none;
  color: var(--primary);
  cursor: pointer;
  font-weight: 700;
}

.patches-section, .updates-section { padding: 120px 0 30px; }
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.section-heading h2 {
  margin: 9px 0 7px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(34px, 5vw, 52px);
  letter-spacing: -.035em;
}
.section-heading p { margin: 0; color: var(--muted); }
.view-switcher {
  display: flex;
  gap: 6px;
  padding: 5px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel-solid);
}
.view-switcher button {
  width: 38px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}
.view-switcher button.active { color: #fff; background: var(--primary); }

.toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.search-box {
  min-width: 290px;
  height: 46px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel-solid);
}
.search-box span { color: var(--muted); font-size: 20px; }
.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}
.search-box input::placeholder { color: #667085; }
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter {
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--muted);
  background: var(--panel-solid);
  cursor: pointer;
}
.filter:hover, .filter.active {
  color: #fff;
  border-color: rgba(255,56,92,.35);
  background: var(--primary);
}

.patch-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.patch-grid.list-mode { grid-template-columns: 1fr; }

.patch-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--panel-solid);
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.patch-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,56,92,.35);
  box-shadow: 0 20px 48px rgba(0,0,0,.22);
}
.patch-cover {
  position: relative;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  overflow: hidden;
}
.patch-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(2,5,10,.88), rgba(2,5,10,.06) 62%),
    radial-gradient(circle at 25% 20%, rgba(255,255,255,.22), transparent 35%);
}
.patch-cover::after {
  content: attr(data-initials);
  position: absolute;
  top: 36%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -.04em;
  color: rgba(255,255,255,.84);
  text-shadow: 0 10px 38px rgba(0,0,0,.3);
}
.patch-cover-info { position: relative; z-index: 2; }
.patch-cover-info .status { margin-bottom: 10px; }
.patch-cover h3 {
  margin: 0;
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  line-height: 1.05;
}
.patch-cover p { margin: 7px 0 0; color: rgba(255,255,255,.64); font-size: 11px; }
.patch-content {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
}
.patch-description {
  min-height: 54px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.patch-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.patch-meta div { min-width: 0; }
.patch-meta span { display: block; color: var(--muted); font-size: 9px; }
.patch-meta strong { display: block; margin-top: 4px; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-actions {
  display: grid;
  grid-template-columns: 1fr 42px;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
}
.card-actions .button { width: 100%; }
.favorite-btn {
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--muted);
  background: var(--panel-soft);
  cursor: pointer;
}
.favorite-btn.active { color: var(--primary); border-color: rgba(255,56,92,.35); background: rgba(255,56,92,.09); }

.status {
  width: max-content;
  display: inline-flex;
  align-items: center;
  padding: 6px 8px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .09em;
}
.status-completed {
  color: var(--green);
  background: rgba(68,220,155,.12);
  border: 1px solid rgba(68,220,155,.25);
}
.status-progress {
  color: var(--warning);
  background: rgba(255,200,87,.12);
  border: 1px solid rgba(255,200,87,.25);
}

.patch-grid.list-mode .patch-card {
  display: grid;
  grid-template-columns: 190px 1fr;
}
.patch-grid.list-mode .patch-cover { aspect-ratio: auto; min-height: 210px; }
.patch-grid.list-mode .patch-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.patch-grid.list-mode .patch-description { min-height: 0; }

.empty-state {
  padding: 75px 20px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 20px;
  color: var(--muted);
}
.empty-state div { font-size: 40px; }
.empty-state h3 { color: var(--text); margin-bottom: 7px; }
.empty-state p { margin: 0; }
.hidden { display: none !important; }

.timeline {
  position: relative;
  margin-left: 12px;
  border-left: 1px solid var(--line);
}
.timeline article {
  position: relative;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 30px;
  padding: 0 0 48px 34px;
}
.timeline-dot {
  position: absolute;
  left: -6px;
  top: 8px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(255,56,92,.14);
}
.timeline-date { padding-top: 6px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.timeline-content {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel-solid);
}
.timeline-content h3 { margin: 13px 0 8px; font-size: 18px; }
.timeline-content p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 13px; }


.recent-updates-heading {
  align-items: flex-end;
  gap: 24px;
}
.recent-updates-heading p {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.65;
}
.recent-updates-limit {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-solid);
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
}
.recent-updates-timeline article:last-child { padding-bottom: 0; }
.recent-update-item .timeline-content {
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.recent-update-item .timeline-content::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--primary);
}
.recent-update-item.is-added .timeline-content::before { background: #26d49a; }
.recent-update-item.is-updated .timeline-content::before { background: #7f6cff; }
.recent-update-item:hover .timeline-content {
  transform: translateY(-2px);
  border-color: rgba(127,108,255,.45);
  box-shadow: 0 18px 45px rgba(0,0,0,.16);
}
.recent-update-item.is-added .timeline-dot {
  background: #26d49a;
  box-shadow: 0 0 0 4px rgba(38,212,154,.14);
}
.recent-update-item.is-updated .timeline-dot {
  background: #7f6cff;
  box-shadow: 0 0 0 4px rgba(127,108,255,.15);
}
.recent-update-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .09em;
}
.recent-update-badge-added {
  border: 1px solid rgba(38,212,154,.28);
  background: rgba(38,212,154,.11);
  color: #48e3ae;
}
.recent-update-badge-updated {
  border: 1px solid rgba(127,108,255,.30);
  background: rgba(127,108,255,.12);
  color: #aa9eff;
}
.recent-update-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 14px 0 8px;
}
.recent-update-title-row h3 { margin: 0; }
.recent-update-version {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.035);
  color: var(--text);
  font-size: 11px;
  letter-spacing: .04em;
}
.recent-update-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}
.recent-update-link span {
  color: var(--primary);
  transition: transform .2s ease;
}
.recent-update-link:hover span { transform: translateX(3px); }
.recent-update-loading .timeline-content,
.recent-update-empty .timeline-content { min-height: 125px; }

.community {
  margin-top: 100px;
  margin-bottom: 100px;
  padding: 60px;
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 70px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255,56,92,.18), transparent 34%),
    var(--panel-solid);
}
.community h2 {
  margin: 14px 0 16px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1;
  letter-spacing: -.04em;
}
.community-copy p { color: var(--muted); line-height: 1.7; margin-bottom: 28px; }
.community-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.community-cards div {
  padding: 22px;
  border-radius: 17px;
  background: rgba(255,255,255,.035);
  border: 1px solid var(--line);
}
.community-cards span { color: var(--primary); font-size: 10px; font-weight: 800; }
.community-cards strong { display: block; margin-top: 14px; font-size: 14px; }
.community-cards p { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }

.site-footer {
  min-height: 140px;
  padding: 30px 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
  border-top: 1px solid var(--line);
}
.site-footer > p { color: var(--muted); font-size: 11px; text-align: center; }
.site-footer > div { display: flex; gap: 15px; color: var(--muted); font-size: 12px; }
.site-footer a:hover { color: var(--primary); }

.floating-discord {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  color: #fff;
  background: #5865f2;
  box-shadow: 0 14px 34px rgba(88,101,242,.36);
  transition: .2s ease;
}
.floating-discord svg { width: 28px; height: 28px; display: block; fill: currentColor; }
.floating-discord:hover { transform: translateY(-4px) scale(1.05); }

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2,4,9,.75);
  backdrop-filter: blur(10px);
}
.modal-card {
  position: relative;
  z-index: 2;
  width: min(860px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  display: grid;
  grid-template-columns: 300px 1fr;
  background: var(--panel-solid);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--text);
  background: rgba(10,13,21,.8);
  cursor: pointer;
}
.modal-cover { min-height: 100%; background: linear-gradient(145deg, #3424a6, #ff385c, #ffb347); }
.modal-body { padding: 42px; }
.modal-body h2 {
  margin: 13px 0 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 36px;
}
.modal-body > p { color: var(--muted); line-height: 1.65; }
.modal-body h3 { margin-top: 28px; }
.modal-body ol { padding-left: 20px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.modal-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 26px 0;
}
.modal-meta div {
  padding: 13px;
  border-radius: 12px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
}
.modal-meta span { display: block; color: var(--muted); font-size: 9px; }
.modal-meta strong { display: block; margin-top: 5px; font-size: 12px; }
.modal-actions { display: flex; gap: 10px; margin-top: 28px; }

.add-form { display: block; width: min(760px, 100%); }
.add-form .modal-body { padding: 42px; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 28px;
}
.form-grid label span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 11px; font-weight: 600; }
.form-grid input, .form-grid select, .form-grid textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: 0;
  color: var(--text);
  background: var(--panel-soft);
}
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: rgba(255,56,92,.5); }
.form-wide { grid-column: 1 / -1; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 200;
  max-width: calc(100% - 32px);
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: var(--panel-solid);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: .25s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1050px) {
  .desktop-nav { display: none; }
  .header-actions { margin-left: auto; }
  .hero { grid-template-columns: 1fr; gap: 45px; padding-top: 80px; }
  .hero-copy { text-align: center; }
  .hero-copy > p { margin-left: auto; margin-right: auto; }
  .hero-buttons, .trust-row { justify-content: center; }
  .hero-panel { width: min(640px, 100%); margin: 0 auto; }
  .patch-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .community { grid-template-columns: 1fr; gap: 35px; }
}

@media (max-width: 780px) {
  .site-header { min-height: 64px; }
  .header-actions .button-secondary, .desktop-nav { display: none; }
  .header-actions .button-primary { padding: 0 12px; font-size: 11px; }
  .brand small { display: none; }
  .hero { min-height: auto; padding-top: 70px; }
  .hero h1 { font-size: clamp(44px, 13vw, 66px); }
  .featured-project { grid-template-columns: 120px 1fr; }
  .featured-cover { min-height: 180px; }
  .announcement { align-items: flex-start; }
  .announcement button { display: none; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .search-box { min-width: 0; width: 100%; }
  .patch-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .timeline article { grid-template-columns: 1fr; gap: 10px; }
  .recent-updates-heading { align-items: flex-start; }
  .recent-updates-limit { display: none; }
  .recent-update-title-row { align-items: flex-start; flex-direction: column; gap: 9px; }
  .community { padding: 36px 24px; }
  .site-footer { grid-template-columns: 1fr; text-align: center; gap: 18px; }
  .site-footer .brand, .site-footer > div { justify-self: center; }
  .modal-card { grid-template-columns: 1fr; }
  .modal-cover { min-height: 220px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-wide { grid-column: auto; }
}

@media (max-width: 540px) {
  .shell { width: min(100% - 24px, 1180px); }
  .site-header { width: calc(100% - 16px); margin-top: 8px; padding: 8px; }
  .brand-mark { width: 42px; height: 42px; border-radius: 12px; }
  .brand strong { font-size: 12px; }
  .header-actions .button-primary { display: none; }
  .hero { padding-top: 55px; }
  .hero-copy > p { font-size: 15px; }
  .hero-buttons { flex-direction: column; }
  .featured-project { grid-template-columns: 1fr; }
  .featured-cover { min-height: 150px; }
  .stat-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: flex-start; }
  .view-switcher { display: none; }
  .patch-grid { grid-template-columns: 1fr; }
  .patch-grid.list-mode .patch-card { grid-template-columns: 1fr; }
  .community-cards { grid-template-columns: 1fr; }
  .modal { padding: 10px; }
  .modal-body, .add-form .modal-body { padding: 30px 20px 24px; }
  .modal-meta { grid-template-columns: 1fr; }
  .modal-actions { flex-direction: column; }
  .floating-discord { right: 14px; bottom: 14px; }
}


.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(68,220,155,.28);
  border-radius: 999px;
  color: var(--green);
  background: rgba(68,220,155,.09);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}
.admin-badge span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(68,220,155,.7);
}
.login-grid { grid-template-columns: 1fr; }
.form-error {
  margin: 14px 0 0 !important;
  padding: 11px 13px;
  border: 1px solid rgba(255,56,92,.28);
  border-radius: 11px;
  color: #ff8096 !important;
  background: rgba(255,56,92,.08);
  font-size: 12px;
}
.button:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}
.disabled {
  opacity: .55;
  pointer-events: none;
}

@media (max-width: 880px) {
  .admin-badge { display: none; }
  #logoutButton { display: none; }
}


.status-released {
  color: #71d7ff;
  background: rgba(65,216,255,.12);
  border: 1px solid rgba(65,216,255,.28);
}

.member-badge {
  min-height: 36px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: var(--panel-soft);
  font-size: 11px;
  font-weight: 700;
}
.member-badge em {
  color: var(--green);
  font-size: 8px;
  font-style: normal;
  letter-spacing: .1em;
}
.member-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(65,216,255,.65);
}
.member-admin {
  border-color: rgba(68,220,155,.25);
  background: rgba(68,220,155,.08);
}
.member-admin .member-dot {
  background: var(--green);
  box-shadow: 0 0 12px rgba(68,220,155,.65);
}

.notification-button {
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: var(--panel-soft);
  cursor: pointer;
}
.notification-count {
  position: absolute;
  right: -5px;
  top: -6px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border: 2px solid var(--bg);
  border-radius: 999px;
  color: #fff;
  background: var(--primary);
  font-size: 9px;
  font-weight: 800;
}

.card-actions-admin {
  grid-template-columns: 1fr 42px 42px 42px;
}
.edit-patch-btn {
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--cyan);
  background: var(--panel-soft);
  cursor: pointer;
  font-size: 17px;
}
.edit-patch-btn:hover {
  border-color: rgba(65,216,255,.35);
  background: rgba(65,216,255,.08);
}
.favorite-active {
  color: var(--primary) !important;
  border-color: rgba(255,56,92,.35) !important;
  background: rgba(255,56,92,.09) !important;
}

.auth-card {
  width: min(620px, 100%);
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin: 24px 0 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel-soft);
}
.auth-tabs button {
  min-height: 40px;
  border: 0;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}
.auth-tabs button.active {
  color: #fff;
  background: var(--primary);
}

.notification-modal-card {
  width: min(720px, 100%);
}
.notification-list {
  max-height: 460px;
  overflow: auto;
  display: grid;
  gap: 10px;
  margin-top: 24px;
  padding-right: 4px;
}
.notification-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 13px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--panel-soft);
}
.notification-item.unread {
  border-color: rgba(255,56,92,.28);
  background: linear-gradient(90deg, rgba(255,56,92,.08), var(--panel-soft));
}
.notification-type {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  font-size: 20px;
  font-weight: 800;
}
.notification-updated {
  color: var(--warning);
  background: rgba(255,200,87,.12);
}
.notification-completed {
  color: var(--green);
  background: rgba(68,220,155,.12);
}
.notification-released {
  color: var(--cyan);
  background: rgba(65,216,255,.12);
}
.notification-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.notification-item h3 {
  margin: 0;
  font-size: 14px;
}
.notification-item p {
  margin: 6px 0 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.notification-item time {
  color: var(--muted);
  font-size: 9px;
}
.unread-dot {
  padding: 4px 6px;
  border-radius: 999px;
  color: #fff;
  background: var(--primary);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .08em;
}
.notification-empty {
  padding: 45px 20px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 16px;
}
.notification-empty > span {
  font-size: 34px;
}
.notification-empty h3 {
  margin: 13px 0 7px;
}
.notification-empty p {
  max-width: 420px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.admin-notice {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(65,216,255,.22);
  border-radius: 13px;
  color: var(--muted);
  background: rgba(65,216,255,.06);
  font-size: 11px;
  line-height: 1.6;
}
.admin-notice strong {
  color: var(--cyan);
}
.modal-actions-wrap {
  flex-wrap: wrap;
}

@media (max-width: 1100px) {
  .member-badge {
    display: none;
  }
}

@media (max-width: 900px) {
  .discord-header {
    display: none;
  }
}

@media (max-width: 680px) {
  #openRegister,
  #logoutButton,
  #openAddPatch {
    display: none;
  }
  .notification-button {
    width: 39px;
    height: 39px;
  }
  .card-actions-admin {
    grid-template-columns: 1fr repeat(3, 42px);
  }
  .notification-item {
    grid-template-columns: 38px 1fr;
  }
  .notification-type {
    width: 38px;
    height: 38px;
  }
}


/* Modal görünürlüğü ve scrollbar düzeltmesi */
html.modal-open,
body.modal-open {
  overflow: hidden !important;
  overscroll-behavior: none;
}

.modal {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.modal.hidden {
  display: none !important;
  visibility: hidden !important;
  opacity: 0;
  pointer-events: none;
}

.modal-card {
  animation: modal-enter .18s ease-out;
}

@keyframes modal-enter {
  from {
    opacity: 0;
    transform: translateY(14px) scale(.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


.text-count-line {
  margin-top: 9px;
  color: var(--muted);
  font-size: 10px;
  text-align: right;
}

.text-progress-summary {
  margin: -8px 0 24px;
  padding: 15px 17px;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  align-items: end;
  gap: 12px;
  border: 1px solid rgba(65,216,255,.2);
  border-radius: 14px;
  background: rgba(65,216,255,.06);
}
.text-progress-summary > div span {
  display: block;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .1em;
}
.text-progress-summary > div strong {
  display: block;
  margin-top: 5px;
  font-size: 20px;
}
.text-progress-divider {
  padding-bottom: 1px;
  color: var(--cyan);
  font-size: 25px;
}
.text-progress-summary small {
  padding-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
}

.calculated-progress {
  padding: 13px 14px;
  border: 1px solid rgba(255,56,92,.22);
  border-radius: 12px;
  background: rgba(255,56,92,.06);
}
.calculated-progress > span {
  display: block;
  color: var(--primary);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .11em;
}
.calculated-progress > strong {
  display: block;
  margin: 6px 0 2px;
  font-size: 22px;
}
.calculated-progress > small {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 9px;
}

@media (max-width: 540px) {
  .text-progress-summary {
    grid-template-columns: 1fr auto 1fr;
  }
  .text-progress-summary small {
    grid-column: 1 / -1;
  }
}


/* Sağ alt yeni bildirim kutuları */
.notification-toast-container {
  position: fixed;
  right: 22px;
  bottom: 88px;
  z-index: 180;
  width: min(440px, calc(100vw - 28px));
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.notification-toast {
  position: relative;
  padding: 15px 42px 15px 15px;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: start;
  gap: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.045), transparent 65%),
    var(--panel-solid);
  box-shadow: 0 20px 55px rgba(0,0,0,.38);
  backdrop-filter: blur(18px);
  cursor: pointer;
  pointer-events: auto;
  opacity: 0;
  transform: translateX(26px) scale(.98);
  transition: opacity .22s ease, transform .22s ease;
}

.notification-toast::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--warning);
}

.notification-toast.show {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.notification-toast.leaving {
  opacity: 0;
  transform: translateX(30px) scale(.98);
}

.notification-toast-updated::before {
  background: var(--warning);
}

.notification-toast-completed::before {
  background: var(--green);
}

.notification-toast-released::before {
  background: var(--cyan);
}

.notification-toast-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--warning);
  background: rgba(255,200,87,.11);
  font-size: 20px;
  font-weight: 800;
}

.notification-toast-completed .notification-toast-icon {
  color: var(--green);
  background: rgba(68,220,155,.11);
}

.notification-toast-released .notification-toast-icon {
  color: var(--cyan);
  background: rgba(65,216,255,.11);
}

.notification-toast-content {
  min-width: 0;
}

.notification-toast-label {
  display: block;
  margin-bottom: 5px;
  color: var(--primary);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .12em;
}

.notification-toast-content strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
}

.notification-toast-content p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.notification-toast-content small {
  display: inline-block;
  margin-top: 8px;
  color: var(--cyan);
  font-size: 9px;
  font-weight: 700;
}

.notification-toast-close {
  position: absolute;
  right: 9px;
  top: 9px;
  width: 27px;
  height: 27px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 18px;
}

.notification-toast-close:hover {
  color: var(--text);
  background: var(--panel-soft);
}

/* Çan sayacı sağ üst çaprazda sabit ve daha görünür */
.notification-button {
  overflow: visible;
}

.notification-count {
  right: -7px;
  top: -8px;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  box-shadow: 0 7px 18px rgba(255,56,92,.42);
}

@media (max-width: 680px) {
  .notification-toast-container {
    right: 10px;
    bottom: 76px;
    width: calc(100vw - 20px);
  }

  .notification-toast {
    padding: 13px 38px 13px 13px;
    grid-template-columns: 38px 1fr;
  }

  .notification-toast-icon {
    width: 38px;
    height: 38px;
  }
}


/* Nexus Çeviri bildirim silme ve daha güvenilir sağ-alt bildirimler */
.notification-toast-container {
  z-index: 10000;
  right: 18px;
  bottom: 82px;
}

.notification-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.notification-delete-button {
  padding: 6px 9px;
  border: 1px solid rgba(255,56,92,.24);
  border-radius: 8px;
  color: #ff8096;
  background: rgba(255,56,92,.07);
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
}

.notification-delete-button:hover {
  color: #fff;
  background: var(--primary);
}

.button-danger {
  color: #ff8096;
  border: 1px solid rgba(255,56,92,.3);
  background: rgba(255,56,92,.08);
}

.button-danger:hover {
  color: #fff;
  background: var(--primary);
}

.notification-actions {
  flex-wrap: wrap;
}

.notification-count {
  z-index: 5;
  right: -8px;
  top: -9px;
  border-color: var(--panel-solid);
}

@media (max-width: 560px) {
  .notification-item-footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .notification-actions .button {
    width: 100%;
  }
}


/* Yama kapak resmi */
.patch-cover {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.patch-cover.has-image::after {
  display: none;
}

.modal-cover.has-image {
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-position: center !important;
}

.cover-upload-field {
  margin: 26px 0 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: linear-gradient(135deg, rgba(255,56,92,.055), rgba(65,216,255,.035));
}

.cover-upload-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 13px;
}

.cover-upload-heading span {
  display: block;
  color: var(--primary);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .12em;
}

.cover-upload-heading strong {
  display: block;
  margin-top: 5px;
  font-size: 14px;
}

.cover-upload-heading small {
  color: var(--muted);
  font-size: 9px;
}

.cover-dropzone {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255,255,255,.18);
  border-radius: 15px;
  background:
    radial-gradient(circle at 25% 15%, rgba(255,56,92,.12), transparent 36%),
    var(--panel-soft);
  cursor: pointer;
  outline: none;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}

body.light .cover-dropzone {
  border-color: rgba(17,21,33,.18);
}

.cover-dropzone:hover,
.cover-dropzone:focus-visible,
.cover-dropzone.dragging {
  border-color: rgba(255,56,92,.62);
  background:
    radial-gradient(circle at 25% 15%, rgba(255,56,92,.2), transparent 40%),
    var(--panel-soft);
  transform: translateY(-2px);
}

.cover-dropzone.dragging {
  box-shadow: inset 0 0 0 2px rgba(255,56,92,.12);
}

.cover-image-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-preview-shade {
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  pointer-events: none;
  background: linear-gradient(to top, rgba(4,7,13,.58), transparent);
  opacity: 0;
  transition: opacity .2s ease;
}

.cover-dropzone.has-preview:hover .cover-preview-shade {
  opacity: 1;
}

.cover-image-empty {
  position: relative;
  z-index: 2;
  padding: 25px;
  text-align: center;
  color: var(--muted);
}

.cover-upload-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,56,92,.24);
  border-radius: 14px;
  color: var(--primary);
  background: rgba(255,56,92,.09);
  font-size: 23px;
}

.cover-image-empty strong {
  display: block;
  color: var(--text);
  font-size: 13px;
}

.cover-image-empty p {
  margin: 6px 0 0;
  font-size: 10px;
}

.cover-upload-actions {
  min-height: 42px;
  margin-top: 11px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cover-upload-actions > span {
  min-width: 0;
  margin-left: auto;
  color: var(--muted);
  font-size: 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Yama ekle / güncelle penceresi için özel scrollbar */
.patch-form-card {
  scrollbar-width: thin;
  scrollbar-color: var(--primary) rgba(255,255,255,.045);
  scrollbar-gutter: auto;
  overscroll-behavior: contain;
  overflow-x: hidden;
  overflow-y: auto;
}

.patch-form-card::-webkit-scrollbar {
  width: 8px;
}

.patch-form-card::-webkit-scrollbar-track {
  margin: 10px 0;
  border-radius: 999px;
  background: rgba(255,255,255,.035);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.035);
}

.patch-form-card::-webkit-scrollbar-thumb {
  min-height: 42px;
  border: 2px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(180deg, var(--primary), #ff7a45) padding-box;
}

.patch-form-card::-webkit-scrollbar-thumb:hover {
  background:
    linear-gradient(180deg, var(--primary-hover), var(--cyan)) padding-box;
}

body.light .patch-form-card {
  scrollbar-color: var(--primary) rgba(17,21,33,.06);
}

body.light .patch-form-card::-webkit-scrollbar-track {
  background: rgba(17,21,33,.045);
  box-shadow: inset 0 0 0 1px rgba(17,21,33,.035);
}

@media (max-width: 540px) {
  .cover-upload-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .cover-dropzone {
    min-height: 180px;
  }

  .cover-upload-actions {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .cover-upload-actions > span {
    width: 100%;
    margin-left: 0;
  }
}


/* Yama kütüphanesi sıralama ve büyük liste sistemi */
.sort-box {
  min-width: 205px;
  height: 46px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel-solid);
}

.sort-box > span {
  color: var(--primary);
  font-size: 17px;
  font-weight: 800;
}

.sort-box select {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.sort-box option {
  color: var(--text);
  background: var(--panel-solid);
}

.library-summary {
  min-height: 42px;
  margin: -8px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 11px;
}

.library-summary p {
  margin: 0;
}

.library-summary > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.library-summary i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(68,220,155,.55);
}

.patch-pagination {
  padding: 30px 0 5px;
  display: flex;
  justify-content: center;
}

.load-more-button {
  min-width: 285px;
  min-height: 64px;
  padding: 10px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border: 1px solid rgba(255,56,92,.26);
  border-radius: 17px;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(255,56,92,.1), rgba(65,216,255,.045)),
    var(--panel-solid);
  box-shadow: 0 14px 34px rgba(0,0,0,.13);
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.load-more-button:hover {
  transform: translateY(-3px);
  border-color: rgba(255,56,92,.48);
  background:
    linear-gradient(135deg, rgba(255,56,92,.16), rgba(65,216,255,.08)),
    var(--panel-solid);
}

.load-more-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #ff7a45);
  font-size: 22px;
  box-shadow: 0 9px 22px rgba(255,56,92,.22);
}

.load-more-button > span:last-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.load-more-button strong {
  font-size: 12px;
}

.load-more-button small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

/* Tarayıcı onayı yerine özel silme onay modalı */
.confirm-modal-card {
  width: min(500px, 100%);
  display: block;
  overflow: hidden;
}

.confirm-modal-body {
  padding: 42px;
  text-align: center;
}

.confirm-modal-icon {
  width: 66px;
  height: 66px;
  margin: 0 auto 19px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,56,92,.3);
  border-radius: 21px;
  color: #fff;
  background: linear-gradient(145deg, var(--primary), #ff724d);
  box-shadow: 0 16px 38px rgba(255,56,92,.24);
  font-family: "Space Grotesk", sans-serif;
  font-size: 30px;
  font-weight: 800;
}

.confirm-modal-body h2 {
  margin: 13px 0 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 29px;
  letter-spacing: -.035em;
}

.confirm-modal-body > p {
  margin: 0 auto;
  max-width: 390px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.confirm-warning {
  margin-top: 23px;
  padding: 13px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  border: 1px solid rgba(255,200,87,.24);
  border-radius: 13px;
  color: var(--warning);
  background: rgba(255,200,87,.07);
}

.confirm-warning > span {
  flex: 0 0 auto;
  font-size: 16px;
}

.confirm-warning p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.confirm-modal-actions {
  justify-content: center;
  margin-top: 25px;
}

.confirm-modal-actions .button {
  min-width: 155px;
}

@media (max-width: 900px) {
  .toolbar {
    flex-wrap: wrap;
  }

  .sort-box {
    min-width: 0;
    flex: 1 1 210px;
  }

  .filter-row {
    flex: 1 0 100%;
  }
}

@media (max-width: 600px) {
  .library-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .library-summary > span {
    white-space: normal;
  }

  .load-more-button {
    width: 100%;
    min-width: 0;
  }

  .confirm-modal-body {
    padding: 36px 20px 24px;
  }

  .confirm-modal-actions {
    flex-direction: column-reverse;
  }

  .confirm-modal-actions .button {
    width: 100%;
  }
}


/* Kart butonlarını aynı yatay çizgide tutar. */
.patch-grid:not(.list-mode) .patch-card {
  height: 100%;
}

.patch-grid:not(.list-mode) .patch-meta {
  margin-top: 14px;
}

.patch-grid:not(.list-mode) .patch-description {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}


/* Nexus Çeviri v9 — modern sıralama ve kategori filtreleri */
.library-toolbar {
  position: relative;
  z-index: 20;
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px 250px;
  gap: 12px;
}

.library-search {
  width: 100%;
  min-width: 0;
  height: 58px;
  padding: 0 14px 0 16px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.035), transparent 65%),
    var(--panel-solid);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.library-search:focus-within {
  border-color: rgba(255,56,92,.42);
  box-shadow: 0 0 0 4px rgba(255,56,92,.08), 0 16px 35px rgba(0,0,0,.16);
  transform: translateY(-1px);
}

.library-search .search-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--primary);
  background: rgba(255,56,92,.1);
  font-size: 21px;
}

.search-field {
  min-width: 0;
  flex: 1;
}

.search-field small {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .13em;
}

.search-field input {
  height: 22px;
  font-size: 13px;
  font-weight: 600;
}

.library-search kbd {
  min-width: 47px;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-bottom-color: rgba(255,255,255,.17);
  border-radius: 7px;
  color: var(--muted);
  background: var(--panel-soft);
  font-family: inherit;
  font-size: 8px;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 2px 0 rgba(0,0,0,.16);
}

.sort-control {
  position: relative;
  z-index: 30;
}

.sort-trigger {
  width: 100%;
  height: 58px;
  padding: 0 13px;
  display: grid;
  grid-template-columns: 36px 1fr 24px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(255,255,255,.035), transparent 65%),
    var(--panel-solid);
  cursor: pointer;
  text-align: left;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.sort-trigger:hover,
.sort-control.open .sort-trigger {
  border-color: rgba(65,216,255,.32);
  box-shadow: 0 0 0 4px rgba(65,216,255,.06), 0 16px 35px rgba(0,0,0,.16);
  transform: translateY(-1px);
}

.sort-trigger-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--cyan);
  background: rgba(65,216,255,.1);
  font-size: 17px;
  font-weight: 800;
}

.sort-trigger-copy {
  min-width: 0;
}

.sort-trigger-copy small {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .13em;
}

.sort-trigger-copy strong {
  display: block;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sort-chevron {
  color: var(--muted);
  font-size: 19px;
  transition: transform .2s ease;
}

.sort-control.open .sort-chevron {
  transform: rotate(180deg);
}

.sort-menu {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  width: min(330px, calc(100vw - 28px));
  padding: 7px;
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(15,20,31,.97);
  box-shadow: 0 24px 60px rgba(0,0,0,.43);
  backdrop-filter: blur(22px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px) scale(.985);
  transform-origin: top right;
  transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
}

body.light .sort-menu {
  background: rgba(255,255,255,.98);
}

.sort-control.open .sort-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.sort-option {
  width: 100%;
  min-height: 60px;
  padding: 9px 10px;
  display: grid;
  grid-template-columns: 38px 1fr 20px;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background .18s ease, border-color .18s ease;
}

.sort-option:hover {
  background: var(--panel-soft);
}

.sort-option.active {
  border-color: rgba(255,56,92,.23);
  background: rgba(255,56,92,.075);
}

.sort-option-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--primary);
  background: rgba(255,56,92,.1);
  font-size: 13px;
  font-weight: 800;
}

.sort-option > span:nth-child(2) {
  min-width: 0;
}

.sort-option strong,
.sort-option small {
  display: block;
}

.sort-option strong {
  font-size: 12px;
}

.sort-option small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.sort-option i {
  color: var(--primary);
  font-size: 12px;
  font-style: normal;
  opacity: 0;
}

.sort-option.active i {
  opacity: 1;
}

.filter-surface {
  margin-bottom: 27px;
  padding: 17px;
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background:
    radial-gradient(circle at 0 0, rgba(255,56,92,.07), transparent 32%),
    var(--panel-solid);
  box-shadow: 0 16px 42px rgba(0,0,0,.11);
}

.filter-section-heading {
  margin-bottom: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.filter-section-heading > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .035em;
}

.filter-section-heading > small {
  color: var(--muted);
  font-size: 9px;
}

.heading-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 12px rgba(255,56,92,.56);
}

.category-dot {
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(65,216,255,.56);
}

.status-filter-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.status-filter {
  min-width: 0;
  height: 43px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  font-size: 10px;
}

.status-filter .filter-icon {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: var(--muted);
  background: var(--panel-soft);
  font-size: 11px;
}

.status-filter.active .filter-icon {
  color: #fff;
  background: rgba(255,255,255,.17);
}

.status-filter.active,
.status-filter:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #ff6f52);
  border-color: transparent;
  box-shadow: 0 9px 22px rgba(255,56,92,.18);
}

.category-control {
  position: relative;
  z-index: 32;
  min-width: 0;
}

.category-trigger {
  width: 100%;
  height: 58px;
  padding: 0 12px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto 20px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(65,216,255,.05), rgba(180,60,255,.025) 65%),
    var(--panel-solid);
  cursor: pointer;
  text-align: left;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.category-trigger:hover,
.category-control.open .category-trigger {
  border-color: rgba(65,216,255,.38);
  box-shadow:
    0 0 0 4px rgba(65,216,255,.065),
    0 16px 35px rgba(0,0,0,.17);
  transform: translateY(-1px);
}

.category-trigger-logo {
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 12px;
  background: #081329;
  box-shadow: 0 0 18px rgba(55,184,255,.2);
}

.category-trigger-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.category-trigger-copy {
  min-width: 0;
}

.category-trigger-copy small {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .13em;
}

.category-trigger-copy strong {
  display: block;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-trigger-count {
  min-width: 29px;
  height: 25px;
  padding: 0 8px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(65,216,255,.18);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(65,216,255,.075);
  font-size: 9px;
  font-weight: 800;
}

.category-chevron {
  color: var(--muted);
  font-size: 19px;
  transition: transform .2s ease;
}

.category-control.open .category-chevron {
  transform: rotate(180deg);
}

.category-menu {
  position: absolute;
  top: calc(100% + 9px);
  left: 0;
  width: min(390px, calc(100vw - 28px));
  padding: 8px;
  border: 1px solid rgba(65,216,255,.16);
  border-radius: 19px;
  background:
    radial-gradient(circle at 12% 0, rgba(65,216,255,.12), transparent 32%),
    radial-gradient(circle at 100% 100%, rgba(180,60,255,.1), transparent 38%),
    rgba(12,17,30,.985);
  box-shadow: 0 28px 72px rgba(0,0,0,.5);
  backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px) scale(.985);
  transform-origin: top left;
  transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
}

body.light .category-menu {
  background:
    radial-gradient(circle at 12% 0, rgba(65,216,255,.12), transparent 32%),
    radial-gradient(circle at 100% 100%, rgba(180,60,255,.08), transparent 38%),
    rgba(255,255,255,.985);
}

.category-control.open .category-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.category-menu-brand {
  min-height: 62px;
  margin-bottom: 7px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(255,255,255,.065);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
}

.category-menu-brand img {
  width: 43px;
  height: 43px;
  flex: 0 0 auto;
  border-radius: 12px;
}

.category-menu-brand span {
  min-width: 0;
}

.category-menu-brand small,
.category-menu-brand strong {
  display: block;
}

.category-menu-brand small {
  color: var(--cyan);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .15em;
}

.category-menu-brand strong {
  margin-top: 3px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
}

.category-menu-search {
  min-height: 44px;
  margin-bottom: 7px;
  padding: 0 11px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(65,216,255,.12);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.category-menu-search:focus-within {
  border-color: rgba(65,216,255,.42);
  background: rgba(65,216,255,.05);
  box-shadow: 0 0 0 4px rgba(65,216,255,.055);
}

.category-menu-search > span {
  color: var(--cyan);
  font-size: 18px;
}

.category-menu-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 12px;
}

.category-menu-search input::placeholder {
  color: var(--muted);
}

.category-menu-search kbd {
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  background: rgba(255,255,255,.025);
  font-size: 8px;
  font-family: inherit;
}

.category-no-results {
  min-height: 150px;
  padding: 24px 16px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  color: var(--muted);
  text-align: center;
}

.category-no-results > span {
  font-size: 28px;
  color: var(--cyan);
}

.category-no-results strong {
  color: var(--text);
  font-size: 13px;
}

.category-no-results small {
  font-size: 10px;
}

.category-no-results.hidden {
  display: none;
}

.category-options {
  max-height: 390px;
  overflow-y: auto;
  display: grid;
  gap: 4px;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(65,216,255,.38) transparent;
}

.category-options::-webkit-scrollbar { width: 6px; }
.category-options::-webkit-scrollbar-track { background: transparent; }
.category-options::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(var(--cyan), #ad4cff);
}

.category-option {
  width: 100%;
  min-height: 64px;
  padding: 9px 10px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.category-option:hover {
  transform: translateX(2px);
  border-color: rgba(65,216,255,.12);
  background: var(--panel-soft);
}

.category-option.active {
  border-color: rgba(65,216,255,.38);
  background: linear-gradient(110deg, rgba(65,216,255,.14), rgba(173,76,255,.1));
  box-shadow: inset 3px 0 0 var(--cyan), 0 8px 22px rgba(0,0,0,.13);
}

.category-option-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--cyan);
  background: rgba(65,216,255,.1);
  font-size: 16px;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}

.category-icon-rpg { color: #c196ff; background: rgba(193,150,255,.12); }
.category-icon-action { color: var(--warning); background: rgba(255,200,87,.11); }
.category-icon-horror { color: #ff718b; background: rgba(255,113,139,.11); }
.category-icon-adventure { color: var(--green); background: rgba(68,220,155,.11); }
.category-icon-novel { color: #ff91c6; background: rgba(255,145,198,.11); }

.category-tone-0 .category-option-icon { color: var(--cyan); background: rgba(65,216,255,.1); }
.category-tone-1 .category-option-icon { color: #c196ff; background: rgba(193,150,255,.12); }
.category-tone-2 .category-option-icon { color: var(--warning); background: rgba(255,200,87,.11); }
.category-tone-3 .category-option-icon { color: #ff718b; background: rgba(255,113,139,.11); }
.category-tone-4 .category-option-icon { color: var(--green); background: rgba(68,220,155,.11); }
.category-tone-5 .category-option-icon { color: #ff91c6; background: rgba(255,145,198,.11); }

.category-option-copy {
  min-width: 0;
}

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

.category-option-copy strong {
  font-size: 12px;
}

.category-option-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.category-option b {
  min-width: 29px;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.025);
  font-size: 9px;
  font-weight: 800;
  text-align: center;
}

.category-option.active b {
  border-color: rgba(65,216,255,.25);
  color: var(--cyan);
  background: rgba(65,216,255,.08);
}

.category-option i {
  color: var(--cyan);
  font-size: 13px;
  font-style: normal;
  opacity: 0;
  transform: scale(.6);
  transition: opacity .18s ease, transform .18s ease;
}

.category-option.active i {
  opacity: 1;
  transform: scale(1);
}

.field-help {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

/* Yönetim formundaki kategori/durum select alanlarını da daha temiz gösterir. */
.form-grid select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 13px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.form-grid select:hover {
  border-color: rgba(65,216,255,.3);
}

.form-grid select option {
  color: var(--text);
  background: var(--panel-solid);
}

@media (max-width: 1050px) {
  .library-toolbar {
    grid-template-columns: minmax(0, 1fr) minmax(230px, .8fr);
  }

  .library-search {
    grid-column: 1 / -1;
  }

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

@media (max-width: 720px) {
  .library-toolbar {
    grid-template-columns: 1fr;
  }

  .category-control,
  .sort-control,
  .category-menu,
  .sort-menu {
    width: 100%;
  }

  .category-menu,
  .sort-menu {
    left: 0;
    right: auto;
    transform-origin: top center;
  }

  .filter-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .status-filter-row {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .status-filter-row::-webkit-scrollbar {
    display: none;
  }

  .status-filter {
    min-width: max-content;
  }
}

@media (max-width: 480px) {
  .library-search kbd {
    display: none;
  }

  .filter-surface {
    padding: 14px;
  }
}

/* 433 kategorili dinamik menü güncellemesi */
.category-menu-brand em {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
  line-height: 1.35;
}

.category-options {
  overscroll-behavior: contain;
  scroll-behavior: smooth;
}

.category-option:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.category-menu-search input::-webkit-search-cancel-button {
  cursor: pointer;
  filter: grayscale(1);
}

@media (max-width: 480px) {
  .category-menu-brand em {
    font-size: 8px;
  }

  .category-option {
    min-height: 58px;
    grid-template-columns: 38px minmax(0, 1fr) auto 16px;
    gap: 8px;
  }

  .category-option-icon {
    width: 38px;
    height: 38px;
  }
}


.category-trigger-icon-wrap {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 25%, rgba(65,216,255,.25), transparent 58%),
    linear-gradient(145deg, rgba(8,19,41,.98), rgba(31,51,90,.96));
}

.category-trigger-icon-wrap img {
  width: 22px;
  height: 22px;
}

.modal-media-section {
  margin-top: 18px;
}

.modal-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.modal-section-heading h3 {
  margin: 0;
}

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

.modal-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.modal-gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
}

.modal-gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.modal-video-wrapper {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #050811;
}

.modal-video-frame {
  width: 100%;
  min-height: 320px;
  border: 0;
  display: block;
  background: #050811;
}

.modal-video-link {
  margin-top: 10px;
  display: inline-flex;
  color: var(--cyan);
  font-weight: 700;
}

.media-field-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field-stack-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

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

.gallery-upload-box {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.02);
}

#galleryImagesInput {
  display: none;
}

.gallery-upload-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

#galleryImagesName {
  color: var(--muted);
  font-size: 12px;
}

.gallery-preview-list {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.gallery-preview-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-soft);
}

.gallery-preview-thumb {
  aspect-ratio: 16 / 9;
  background: rgba(255,255,255,.03);
}

.gallery-preview-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.gallery-preview-meta {
  padding: 8px 10px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.gallery-preview-meta strong {
  display: block;
  max-width: 100%;
  overflow: hidden;
  font-size: 11px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.gallery-preview-meta small {
  color: var(--muted);
  font-size: 10px;
}

.gallery-preview-remove {
  min-width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: rgba(255,255,255,.03);
  cursor: pointer;
}

.gallery-preview-empty {
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.patch-media-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.patch-media-badge {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.03);
  font-size: 10px;
  font-weight: 700;
}

@media (max-width: 720px) {
  .modal-video-frame {
    min-height: 220px;
  }

  .field-stack-heading,
  .modal-section-heading {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Yama formu: options biçiminde çoklu kategori seçimi */
.admin-category-field {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 16;
}

.admin-category-control {
  position: relative;
  min-width: 0;
}

.admin-category-trigger {
  width: 100%;
  min-height: 54px;
  padding: 8px 12px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto 20px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(65,216,255,.045), rgba(139,92,255,.025)),
    var(--panel-soft);
  cursor: pointer;
  text-align: left;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.admin-category-trigger:hover,
.admin-category-control.open .admin-category-trigger {
  border-color: rgba(65,216,255,.38);
  box-shadow: 0 0 0 4px rgba(65,216,255,.055);
}

.admin-category-trigger-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(65,216,255,.18);
  border-radius: 11px;
  color: var(--cyan);
  background: rgba(65,216,255,.07);
  font-size: 17px;
}

.admin-category-trigger-copy {
  min-width: 0;
}

.admin-category-trigger-copy small,
.admin-category-trigger-copy strong {
  display: block;
}

.admin-category-trigger-copy small {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .12em;
}

.admin-category-trigger-copy strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-category-trigger > b {
  min-width: 30px;
  height: 27px;
  padding: 0 8px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(65,216,255,.2);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(65,216,255,.07);
  font-size: 9px;
  font-weight: 800;
}

.admin-category-chevron {
  color: var(--muted);
  font-size: 19px;
  transition: transform .18s ease;
}

.admin-category-control.open .admin-category-chevron {
  transform: rotate(180deg);
}

.admin-category-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  max-height: min(430px, calc(100dvh - 150px));
  padding: 9px;
  overflow: hidden;
  border: 1px solid rgba(65,216,255,.2);
  border-radius: 17px;
  background:
    radial-gradient(circle at 10% 0, rgba(65,216,255,.1), transparent 34%),
    radial-gradient(circle at 100% 100%, rgba(139,92,255,.08), transparent 38%),
    rgba(12,17,30,.99);
  box-shadow: 0 24px 60px rgba(0,0,0,.48);
  backdrop-filter: blur(22px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-7px) scale(.99);
  transform-origin: top center;
  transition: opacity .16s ease, visibility .16s ease, transform .16s ease;
}

.admin-category-control.drop-up .admin-category-menu {
  top: auto;
  bottom: calc(100% + 8px);
  transform-origin: bottom center;
}

body.light .admin-category-menu {
  background:
    radial-gradient(circle at 10% 0, rgba(65,216,255,.1), transparent 34%),
    radial-gradient(circle at 100% 100%, rgba(139,92,255,.06), transparent 38%),
    rgba(255,255,255,.99);
}

.admin-category-control.open .admin-category-menu {
  display: flex;
  flex-direction: column;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.admin-category-search {
  min-height: 44px;
  padding: 0 11px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.admin-category-search:focus-within {
  border-color: rgba(65,216,255,.42);
  background: rgba(65,216,255,.045);
  box-shadow: 0 0 0 4px rgba(65,216,255,.055);
}

.admin-category-search > span {
  color: var(--cyan);
  font-size: 18px;
}

.admin-category-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 12px;
}

.admin-category-search input::placeholder {
  color: var(--muted);
}

.admin-category-search kbd {
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255,255,255,.025);
  font-family: inherit;
  font-size: 8px;
  font-weight: 800;
}

.admin-category-bulk-actions {
  margin: 8px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-category-bulk-actions button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  background: rgba(255,255,255,.025);
  cursor: pointer;
  font-size: 9px;
  font-weight: 750;
  transition: border-color .16s ease, color .16s ease, background .16s ease;
}

.admin-category-bulk-actions button:hover {
  color: var(--text);
  border-color: rgba(65,216,255,.28);
  background: rgba(65,216,255,.055);
}

.admin-category-bulk-actions button.danger:hover {
  color: #ff8da2;
  border-color: rgba(255,56,92,.28);
  background: rgba(255,56,92,.055);
}

.admin-category-selected {
  min-height: 0;
  max-height: 70px;
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(65,216,255,.3) transparent;
}

.admin-category-chip {
  min-height: 27px;
  padding: 0 7px 0 9px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(65,216,255,.2);
  border-radius: 999px;
  color: var(--text);
  background: rgba(65,216,255,.07);
  font-size: 9px;
  font-weight: 700;
}

.admin-category-chip button {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: rgba(255,255,255,.055);
  cursor: pointer;
}

.admin-category-empty {
  color: var(--muted);
  font-size: 10px;
}

.admin-category-options {
  min-height: 120px;
  max-height: 235px;
  flex: 1 1 235px;
  padding: 6px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255,255,255,.018);
  scrollbar-width: thin;
  scrollbar-color: rgba(65,216,255,.35) transparent;
}

.admin-category-options::-webkit-scrollbar,
.admin-category-selected::-webkit-scrollbar {
  width: 6px;
}

.admin-category-options::-webkit-scrollbar-track,
.admin-category-selected::-webkit-scrollbar-track {
  background: transparent;
}

.admin-category-options::-webkit-scrollbar-thumb,
.admin-category-selected::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(65,216,255,.35);
}

.admin-category-option {
  position: relative;
  min-width: 0;
  min-height: 38px;
  padding: 8px 9px;
  display: grid;
  grid-template-columns: 21px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--muted);
  background: rgba(255,255,255,.018);
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}

.admin-category-option:hover {
  color: var(--text);
  border-color: rgba(65,216,255,.15);
  background: rgba(65,216,255,.04);
}

.admin-category-option.hidden-by-search {
  display: none;
}

.admin-category-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.admin-category-check {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: transparent;
  background: rgba(255,255,255,.025);
  font-size: 11px;
  transition: .16s ease;
}

.admin-category-option:has(input:checked) {
  color: var(--text);
  border-color: rgba(65,216,255,.3);
  background: linear-gradient(135deg, rgba(65,216,255,.09), rgba(139,92,255,.055));
}

.admin-category-option input:checked + .admin-category-check {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan), #8b5cff);
  box-shadow: 0 0 14px rgba(65,216,255,.2);
}

.admin-category-option strong {
  min-width: 0;
  overflow: hidden;
  font-size: 11px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.admin-category-no-results {
  padding: 20px 12px;
  color: var(--muted);
  text-align: center;
  font-size: 11px;
}

@media (max-width: 620px) {
  .admin-category-menu {
    left: -2px;
    right: -2px;
    max-height: min(390px, calc(100dvh - 90px));
  }

  .admin-category-options {
    grid-template-columns: 1fr;
    max-height: 210px;
  }

  .admin-category-bulk-actions button {
    flex: 1 1 auto;
  }
}

/* Her alan için ayrı oyun içi görsel bağlantısı */
.gallery-link-grid {
  margin-top: 15px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.gallery-link-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gallery-link-field > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.gallery-link-field > div {
  min-height: 42px;
  padding: 0 8px 0 10px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 27px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.022);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.gallery-link-field > div:focus-within {
  border-color: rgba(65,216,255,.4);
  background: rgba(65,216,255,.035);
  box-shadow: 0 0 0 4px rgba(65,216,255,.05);
}

.gallery-link-field i {
  color: var(--cyan);
  font-style: normal;
  font-size: 12px;
}

.gallery-link-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 11px;
}

.gallery-link-field input::placeholder {
  color: #687489;
}

.gallery-link-clear {
  width: 27px;
  height: 27px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255,255,255,.025);
  cursor: pointer;
}

.gallery-link-clear:hover {
  color: #fff;
  border-color: rgba(255,56,92,.28);
  background: rgba(255,56,92,.1);
}

.gallery-preview-item.is-link .gallery-preview-meta small {
  max-width: 170px;
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

@media (max-width: 720px) {
  .admin-category-options,
  .gallery-link-grid {
    grid-template-columns: 1fr;
  }
}


/* Modal yalnızca gerçekten gerektiğinde kaydırılır. */
#patchFormModal .patch-form-card {
  max-height: min(900px, calc(100dvh - 32px));
}

#patchFormModal .modal-body {
  padding-bottom: 30px;
}

@media (max-width: 540px) {
  #patchFormModal .patch-form-card {
    max-height: calc(100dvh - 20px);
  }
}

/* =========================================================
   AYRI PROJE DETAY SAYFASI
   ========================================================= */

.brand-mark-image {
  overflow: hidden;
  padding: 0;
  background: #081329;
}

.brand-mark-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.project-detail-page {
  min-height: 100vh;
}

.project-header {
  margin-bottom: 0;
}

.project-header .desktop-nav {
  margin-left: auto;
}

.project-detail-shell {
  padding-top: 54px;
  padding-bottom: 90px;
}

.project-breadcrumb {
  margin-bottom: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
}

.project-breadcrumb a {
  transition: color .2s ease;
}

.project-breadcrumb a:hover {
  color: var(--cyan);
}

.project-breadcrumb strong {
  max-width: 430px;
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-hero-card {
  position: relative;
  overflow: hidden;
  padding: 26px;
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: 34px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 6% 5%, rgba(65,216,255,.1), transparent 35%),
    radial-gradient(circle at 100% 100%, rgba(255,56,92,.09), transparent 38%),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.project-hero-card::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -110px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: var(--primary);
  filter: blur(100px);
  opacity: .08;
  pointer-events: none;
}

.project-cover-column {
  position: relative;
  z-index: 1;
}

.project-cover-large {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  height: 100%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  box-shadow: 0 22px 50px rgba(0,0,0,.34);
}

.project-cover-large::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,8,17,.28), transparent 45%);
  pointer-events: none;
}

.project-cover-large img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  display: block;
  object-fit: cover;
}

.project-cover-large > strong {
  position: relative;
  z-index: 1;
  color: rgba(255,255,255,.92);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(44px, 7vw, 78px);
  letter-spacing: .08em;
  text-shadow: 0 12px 30px rgba(0,0,0,.28);
}

.project-hero-content {
  position: relative;
  z-index: 1;
  padding: 18px 8px 12px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.project-status-row {
  margin-bottom: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.project-language-badge {
  min-height: 27px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(65,216,255,.22);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(65,216,255,.07);
  font-size: 10px;
  font-weight: 800;
}

.project-hero-content h1 {
  max-width: 760px;
  margin: 12px 0 16px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(39px, 6vw, 72px);
  line-height: .98;
  letter-spacing: -.045em;
}

.project-lead {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.project-category-list {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-category-list span {
  min-height: 31px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255,255,255,.035);
  font-size: 11px;
  font-weight: 700;
}

.project-primary-actions {
  width: 100%;
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-download-button {
  min-width: 170px;
}

.project-stat-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.project-stat-grid article {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel-solid);
}

.project-stat-grid span,
.project-stat-grid strong,
.project-stat-grid small {
  display: block;
}

.project-stat-grid span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
}

.project-stat-grid strong {
  margin-top: 8px;
  overflow: hidden;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-stat-grid small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.project-content-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 350px);
  align-items: start;
  gap: 18px;
}

.project-main-column,
.project-side-column {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.project-side-column {
  position: sticky;
  top: 104px;
}

.project-section-card,
.project-side-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel-solid);
}

.project-section-heading {
  margin-bottom: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.project-section-heading h2,
.project-side-card h2 {
  margin: 7px 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 25px;
  letter-spacing: -.025em;
}

.project-section-heading > small {
  color: var(--muted);
  font-size: 11px;
}

.project-description-full {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.project-progress-value {
  color: var(--primary);
  font-size: 25px;
}

.project-progress-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--panel-soft);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.035);
}

.project-progress-track span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #ff9a56);
  box-shadow: 0 0 18px rgba(255,56,92,.28);
}

.project-text-counts {
  margin-top: 15px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.project-text-counts div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--panel-soft);
}

.project-text-counts span,
.project-text-counts strong {
  display: block;
}

.project-text-counts span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.project-text-counts strong {
  margin-top: 6px;
  font-size: 19px;
}

.project-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.project-gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-soft);
  cursor: pointer;
}

.project-gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .35s ease, filter .35s ease;
}

.project-gallery-item > span {
  position: absolute;
  left: 50%;
  bottom: 14px;
  min-height: 31px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  color: #fff;
  background: rgba(5,8,17,.7);
  font-size: 10px;
  font-weight: 800;
  opacity: 0;
  transform: translate(-50%, 9px);
  transition: opacity .25s ease, transform .25s ease;
  backdrop-filter: blur(10px);
}

.project-gallery-item:hover img {
  transform: scale(1.035);
  filter: brightness(.78);
}

.project-gallery-item:hover > span {
  opacity: 1;
  transform: translate(-50%, 0);
}

.project-video-wrapper {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #050811;
}

.project-video-wrapper iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.project-video-external {
  margin-top: 12px;
  display: inline-flex;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
}

.project-detail-list {
  margin: 18px 0 0;
}

.project-detail-list > div {
  padding: 12px 0;
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.project-detail-list > div:last-child {
  border-bottom: 0;
}

.project-detail-list dt {
  color: var(--muted);
  font-size: 11px;
}

.project-detail-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  text-align: right;
  font-size: 11px;
  font-weight: 700;
}

.project-install-card ol {
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  list-style: none;
}

.project-install-card li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.project-install-card li > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(65,216,255,.22);
  border-radius: 10px;
  color: var(--cyan);
  background: rgba(65,216,255,.065);
  font-size: 10px;
  font-weight: 800;
}

.project-install-card li p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.project-download-card p {
  margin: 14px 0 17px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.project-download-card .button {
  width: 100%;
}

.project-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  padding: 54px 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2,4,10,.94);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.project-lightbox.hidden {
  display: none;
}

.project-lightbox-stage {
  width: min(1320px, calc(100vw - 160px));
  height: calc(100vh - 108px);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
  touch-action: none;
  cursor: zoom-in;
}

.project-lightbox-stage.is-zoomed {
  cursor: grab;
}

.project-lightbox-stage.is-dragging {
  cursor: grabbing;
}

.project-lightbox-stage img {
  max-width: 100%;
  max-height: 100%;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  box-shadow: 0 28px 100px rgba(0,0,0,.6);
  transform-origin: center center;
  transition: transform .18s ease;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
}

.project-lightbox-stage.is-dragging img {
  transition: none;
}

.project-lightbox-close,
.project-lightbox-nav {
  position: absolute;
  z-index: 4;
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
  background: rgba(255,255,255,.07);
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.project-lightbox-close {
  top: 22px;
  right: 22px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-size: 26px;
}

.project-lightbox-nav {
  top: 50%;
  width: 48px;
  height: 58px;
  border-radius: 15px;
  font-size: 35px;
  line-height: 1;
  transform: translateY(-50%);
}

.project-lightbox-nav[hidden] {
  display: none;
}

.project-lightbox-previous {
  left: 22px;
}

.project-lightbox-next {
  right: 22px;
}

.project-lightbox-zoom {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 16px;
  background: rgba(10,15,25,.78);
  box-shadow: 0 14px 38px rgba(0,0,0,.28);
  backdrop-filter: blur(14px);
  transform: translateX(-50%);
}

.project-lightbox-zoom button {
  min-width: 40px;
  height: 38px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 11px;
  color: #fff;
  background: rgba(255,255,255,.06);
  font: inherit;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease, opacity .18s ease;
}

.project-lightbox-zoom button:hover:not(:disabled) {
  border-color: rgba(65,216,255,.34);
  background: rgba(65,216,255,.14);
  transform: translateY(-1px);
}

.project-lightbox-zoom button:active:not(:disabled) {
  transform: translateY(0) scale(.96);
}

.project-lightbox-zoom button:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.project-lightbox-zoom .project-lightbox-zoom-reset {
  min-width: 70px;
  font-size: 12px;
  letter-spacing: .03em;
}

.project-lightbox-count {
  position: absolute;
  z-index: 4;
  bottom: 77px;
  left: 50%;
  padding: 7px 11px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  color: #fff;
  background: rgba(10,15,25,.7);
  font-size: 11px;
  font-weight: 800;
  transform: translateX(-50%);
}

.project-not-found {
  min-height: calc(100vh - 190px);
  padding: 100px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.project-not-found-icon {
  width: 74px;
  height: 74px;
  margin-bottom: 22px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(65,216,255,.22);
  border-radius: 22px;
  color: var(--cyan);
  background: rgba(65,216,255,.065);
  font-size: 34px;
}

.project-not-found h1 {
  margin: 12px 0 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(36px, 6vw, 62px);
  letter-spacing: -.04em;
}

.project-not-found p {
  max-width: 580px;
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.7;
}

.project-footer {
  min-height: 110px;
  padding: 26px 0 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
}

.project-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 980px) {
  .project-hero-card {
    grid-template-columns: minmax(210px, 280px) minmax(0, 1fr);
    gap: 24px;
  }

  .project-cover-large,
  .project-cover-large img {
    min-height: 370px;
  }

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

  .project-content-grid {
    grid-template-columns: 1fr;
  }

  .project-side-column {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .project-header .desktop-nav,
  .project-header .member-badge {
    display: none;
  }

  .project-detail-shell {
    padding-top: 30px;
  }

  .project-hero-card {
    padding: 15px;
    grid-template-columns: 1fr;
    border-radius: 23px;
  }

  .project-cover-large,
  .project-cover-large img {
    min-height: 390px;
    max-height: 540px;
  }

  .project-hero-content {
    padding: 14px 6px 7px;
  }

  .project-hero-content h1 {
    font-size: clamp(38px, 13vw, 58px);
  }

  .project-primary-actions .button {
    flex: 1 1 calc(50% - 6px);
  }

  .project-stat-grid,
  .project-side-column {
    grid-template-columns: 1fr 1fr;
  }

  .project-gallery-grid {
    grid-template-columns: 1fr;
  }

  .project-text-counts {
    grid-template-columns: 1fr;
  }

  .project-lightbox {
    padding: 64px 12px 76px;
  }

  .project-lightbox-stage {
    width: 100%;
    height: calc(100vh - 140px);
    padding: 8px;
  }

  .project-lightbox-stage img {
    border-radius: 13px;
  }

  .project-lightbox-zoom {
    top: 14px;
    bottom: auto;
  }

  .project-lightbox-zoom button {
    min-width: 38px;
    height: 36px;
  }

  .project-lightbox-count {
    bottom: 73px;
  }

  .project-lightbox-nav {
    top: auto;
    bottom: 16px;
    width: 45px;
    height: 45px;
    transform: none;
  }

  .project-lightbox-previous {
    left: 16px;
  }

  .project-lightbox-next {
    right: 16px;
  }

  .project-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .project-stat-grid,
  .project-side-column {
    grid-template-columns: 1fr;
  }

  .project-primary-actions {
    flex-direction: column;
  }

  .project-primary-actions .button {
    width: 100%;
    flex-basis: auto;
  }

  .project-section-card,
  .project-side-card {
    padding: 19px;
    border-radius: 18px;
  }

  .project-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}


.gallery-drive-help {
  margin: 12px 0 0;
  padding: 11px 13px;
  border: 1px solid rgba(65,216,255,.16);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(65,216,255,.045);
  font-size: 11px;
  line-height: 1.55;
}

.gallery-drive-help strong {
  color: var(--cyan);
}


.delete-patch-btn {
  border: 1px solid rgba(255,56,92,.25);
  border-radius: 11px;
  color: #ff8096;
  background: rgba(255,56,92,.055);
  cursor: pointer;
  font-size: 16px;
  transition: border-color .2s ease, color .2s ease, background .2s ease, transform .2s ease;
}

.delete-patch-btn:hover {
  color: #fff;
  border-color: rgba(255,56,92,.55);
  background: var(--primary);
  transform: translateY(-1px);
}

.patch-form-actions {
  align-items: center;
  flex-wrap: wrap;
}

.patch-form-actions-spacer {
  flex: 1 1 auto;
}

.delete-patch-modal-card {
  width: min(560px, 100%);
}

.delete-patch-confirm-icon {
  color: #ff8096;
  border-color: rgba(255,56,92,.28);
  background: rgba(255,56,92,.09);
}

.delete-patch-warning {
  border-color: rgba(255,56,92,.22);
  background: rgba(255,56,92,.055);
}

.delete-confirm-field {
  margin-top: 15px;
  display: block;
}

.delete-confirm-field > span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.delete-confirm-field input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: none;
  color: var(--text);
  background: var(--panel-soft);
}

.delete-confirm-field input:focus {
  border-color: rgba(255,56,92,.5);
  box-shadow: 0 0 0 4px rgba(255,56,92,.07);
}

.project-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

@media (max-width: 680px) {
  .card-actions-admin {
    grid-template-columns: 1fr repeat(3, 39px);
  }

  .patch-form-actions-spacer {
    display: none;
  }

  .patch-form-actions > .button {
    flex: 1 1 100%;
  }
}


/* Nexus Çeviri indirme hazırlama ekranı */
.download-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.download-page .site-header {
  flex: 0 0 auto;
}

.download-shell {
  width: min(760px, calc(100% - 32px));
  margin: auto;
  padding: 72px 0 90px;
}

.download-card {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 5vw, 46px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 0, rgba(65,216,255,.12), transparent 34%),
    radial-gradient(circle at 100% 100%, rgba(255,56,92,.09), transparent 40%),
    var(--panel-solid);
  box-shadow: var(--shadow);
}

.download-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.035), transparent 68%);
  transform: translateX(-100%);
  animation: downloadShine 2.4s ease-in-out infinite;
}

@keyframes downloadShine {
  55%, 100% { transform: translateX(100%); }
}

.download-project-head {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
}

.download-project-cover {
  width: 96px;
  aspect-ratio: 1;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 22px;
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 24px;
  font-weight: 800;
  box-shadow: 0 18px 38px rgba(0,0,0,.24);
}

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

.download-project-copy .eyebrow {
  margin-bottom: 8px;
}

.download-project-copy h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(26px, 5vw, 42px);
  letter-spacing: -.035em;
}

.download-project-copy p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.download-stage {
  position: relative;
  margin-top: 34px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.025);
}

.download-stage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.download-stage-status {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.download-spinner {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 3px solid rgba(65,216,255,.16);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: downloadSpin .8s linear infinite;
}

.download-card.download-complete .download-spinner {
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: var(--green);
  animation: none;
}

.download-card.download-complete .download-spinner::before {
  content: "✓";
  font-size: 18px;
  font-weight: 800;
}

@keyframes downloadSpin {
  to { transform: rotate(360deg); }
}

.download-stage-status strong,
.download-stage-status small {
  display: block;
}

.download-stage-status strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.download-stage-status small {
  margin-top: 3px;
  color: var(--muted);
}

.download-percent {
  color: var(--cyan);
  font-family: "Space Grotesk", sans-serif;
  font-size: 24px;
  font-weight: 800;
}

.download-progress-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.065);
  box-shadow: inset 0 1px 4px rgba(0,0,0,.28);
}

.download-progress-track span {
  position: relative;
  display: block;
  width: 4%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), #8b5cff, var(--primary));
  transition: width .32s ease;
}

.download-progress-track span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.34), transparent);
  animation: downloadBarShine 1.25s linear infinite;
}

@keyframes downloadBarShine {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

.download-file-row {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 12px;
}

.download-file-row strong {
  max-width: 65%;
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.download-actions {
  position: relative;
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.download-note {
  position: relative;
  margin: 18px 0 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.download-note span {
  color: var(--cyan);
  font-weight: 800;
}

.download-error-card {
  text-align: center;
}

.download-error-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,200,87,.25);
  border-radius: 22px;
  color: var(--warning);
  background: rgba(255,200,87,.08);
  font-size: 30px;
}

.download-error-card h1 {
  margin: 0 0 10px;
  font-family: "Space Grotesk", sans-serif;
}

.download-error-card p {
  max-width: 520px;
  margin: 0 auto 24px;
  color: var(--muted);
  line-height: 1.7;
}

.download-hidden-frame {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 620px) {
  .download-shell {
    padding-top: 38px;
  }

  .download-project-head {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
  }

  .download-project-cover {
    width: 72px;
    border-radius: 18px;
    font-size: 19px;
  }

  .download-stage {
    padding: 17px;
  }

  .download-stage-top,
  .download-file-row {
    align-items: flex-start;
  }

  .download-file-row {
    flex-direction: column;
    gap: 5px;
  }

  .download-file-row strong {
    max-width: 100%;
  }

  .download-actions .button {
    width: 100%;
  }
}


.project-install-note {
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(255,200,87,.2);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255,200,87,.055);
  font-size: 12px;
  line-height: 1.6;
}

.project-install-note strong {
  color: var(--warning);
}


/* Yönetici güvenlik güncellemesi */
.admin-security-button {
  gap: 7px;
  border-color: rgba(68,220,155,.22);
}

.admin-verification-card {
  margin-bottom: 16px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid rgba(68,220,155,.2);
  border-radius: 16px;
  background: rgba(68,220,155,.06);
}

.admin-verification-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 13px;
  background: rgba(68,220,155,.12);
  font-size: 21px;
}

.admin-verification-card strong,
.admin-verification-card p {
  display: block;
  margin: 0;
}

.admin-verification-card p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.admin-totp-setup {
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid rgba(65,216,255,.22);
  border-radius: 16px;
  background: rgba(65,216,255,.055);
}

.admin-totp-setup > span,
.admin-totp-setup > strong,
.admin-totp-setup > small {
  display: block;
}

.admin-totp-setup > span {
  color: var(--cyan);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
}

.admin-totp-setup > strong {
  margin-top: 5px;
}

.admin-totp-setup p,
.admin-totp-setup small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.admin-totp-setup code {
  margin: 12px 0;
  padding: 12px;
  display: block;
  overflow-wrap: anywhere;
  border: 1px dashed rgba(65,216,255,.35);
  border-radius: 12px;
  color: var(--text);
  background: rgba(0,0,0,.18);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .12em;
  text-align: center;
  user-select: all;
}

.admin-code-field {
  display: block;
}

.admin-code-field span {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 700;
}

.admin-code-field input {
  width: 100%;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  color: var(--text);
  background: var(--panel-soft);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .32em;
  text-align: center;
}

.admin-code-field input:focus {
  border-color: rgba(68,220,155,.5);
  box-shadow: 0 0 0 4px rgba(68,220,155,.08);
}

.admin-security-modal-card {
  width: min(670px, calc(100% - 28px));
}

.admin-security-status-grid {
  margin: 20px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.admin-security-status-grid div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-soft);
}

.admin-security-status-grid span,
.admin-security-status-grid strong {
  display: block;
}

.admin-security-status-grid span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .1em;
}

.admin-security-status-grid strong {
  margin-top: 7px;
  font-size: 12px;
}

.password-security-note {
  margin-top: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid rgba(255,200,87,.2);
  border-radius: 13px;
  background: rgba(255,200,87,.055);
}

.password-security-note p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

@media (max-width: 720px) {
  .admin-security-status-grid {
    grid-template-columns: 1fr;
  }

  .admin-verify-actions {
    flex-direction: column-reverse;
  }

  .admin-verify-actions .button {
    width: 100%;
  }
}


/* Yamayı/Projeyi İncele etiketi kartlarda bölünmeden görünür. */
.detail-button {
  min-width: 0;
  padding-inline: 12px;
  white-space: nowrap;
  word-break: keep-all;
  line-height: 1.2;
}

@media (max-width: 420px) {
  .detail-button {
    padding-inline: 9px;
    font-size: 12px;
  }
}


/* Kart işlem düğmeleri: yazılar görünür, tek satırda ve dengeli hizalanır. */
.card-actions,
.card-actions-admin {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.card-actions .card-detail-action {
  grid-column: 1 / -1;
}

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

.card-actions-admin .card-detail-action {
  grid-column: 1 / -1;
}

.card-detail-action,
.card-utility-action {
  min-width: 0;
  min-height: 42px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  word-break: keep-all;
  overflow: hidden;
}

.card-utility-action > span:last-child,
.card-detail-action > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-action-icon {
  flex: 0 0 auto;
  font-size: 15px;
  line-height: 1;
}

.favorite-btn.card-utility-action,
.edit-patch-btn.card-utility-action {
  width: 100%;
  height: auto;
  text-decoration: none;
}

.favorite-btn.card-utility-action.active .favorite-label {
  color: var(--primary);
}

.edit-patch-btn.card-utility-action {
  color: var(--cyan);
  font-size: 11px;
}

.patch-grid.list-mode .card-actions,
.patch-grid.list-mode .card-actions-admin {
  align-self: stretch;
}

@media (max-width: 420px) {
  .card-detail-action,
  .card-utility-action {
    padding-inline: 8px;
    font-size: 10px;
    gap: 5px;
  }

  .card-action-icon {
    font-size: 14px;
  }
}


/* =========================================================
   Platforma özel yama indirme bağlantıları
   ========================================================= */
.platform-logo {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  color: currentColor;
  background: rgba(255,255,255,.065);
}
.platform-logo svg {
  width: 19px;
  height: 19px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.platform-logo svg text {
  fill: currentColor;
  stroke: none;
  font-family: Arial, sans-serif;
  font-size: 6px;
  font-weight: 900;
}
.platform-logo-microsoft svg path {
  fill: currentColor;
  stroke: none;
}
.project-platform-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}
.project-platform-primary .platform-logo {
  width: 27px;
  height: 27px;
  flex-basis: 27px;
  border-color: rgba(255,255,255,.24);
  background: rgba(0,0,0,.14);
}
.project-platform-downloads {
  display: grid;
  gap: 10px;
}
.project-platform-download {
  width: 100%;
  min-height: 62px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--text);
  background: rgba(255,255,255,.035);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.project-platform-download:hover {
  transform: translateY(-2px);
  border-color: rgba(65,216,255,.38);
  background: rgba(65,216,255,.075);
}
.project-platform-download.without-logo {
  padding-left: 15px;
}
.project-platform-download-copy {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 3px;
}
.project-platform-download-copy strong,
.project-platform-download-copy small {
  display: block;
}
.project-platform-download-copy strong {
  overflow: hidden;
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.project-platform-download-copy small {
  color: var(--muted);
  font-size: 9px;
}
.project-platform-download > b {
  color: var(--cyan);
  font-size: 17px;
}
.project-platform-downloads.single .project-platform-download {
  border-color: rgba(65,216,255,.24);
  background: linear-gradient(135deg,rgba(65,216,255,.09),rgba(120,87,255,.07));
}

/* İndirme ekranındaki platform seçimi */
.download-platform-card {
  max-width: 860px;
}
.download-platform-grid {
  margin-top: 25px;
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
}
.download-platform-option {
  min-height: 72px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 17px;
  color: var(--text);
  background: rgba(255,255,255,.035);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.download-platform-option:hover {
  transform: translateY(-2px);
  border-color: rgba(65,216,255,.42);
  background: rgba(65,216,255,.075);
  box-shadow: 0 15px 35px rgba(0,0,0,.16);
}
.download-platform-option > span:not(.platform-logo) {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 4px;
}
.download-platform-option strong,
.download-platform-option small {
  display: block;
}
.download-platform-option strong {
  overflow: hidden;
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.download-platform-option small {
  color: var(--muted);
  font-size: 10px;
}
.download-platform-option > b {
  color: var(--cyan);
  font-size: 18px;
}
.download-selected-platform {
  width: max-content;
  max-width: 100%;
  margin: 9px 0 2px;
  padding: 5px 9px 5px 6px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: rgba(255,255,255,.04);
  font-size: 10px;
  font-weight: 800;
}
.download-selected-platform .platform-logo {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
  border-radius: 8px;
}
.download-selected-platform .platform-logo svg {
  width: 15px;
  height: 15px;
}
html {
  scroll-behavior: smooth;
}
#indirme-secenekleri {
  scroll-margin-top: 105px;
}
@media (max-width: 700px) {
  .download-platform-grid {
    grid-template-columns: 1fr;
  }
  .project-platform-primary {
    white-space: normal;
  }
}

/* Platform seçimine hızlı kaydırma vurgusu */
#indirme-secenekleri {
  scroll-margin-top: 105px;
}
.project-download-card-focus {
  animation: project-download-card-highlight 1.45s ease;
}
@keyframes project-download-card-highlight {
  0%, 100% {
    border-color: var(--line);
    box-shadow: none;
  }
  35% {
    border-color: rgba(65,216,255,.72);
    box-shadow: 0 0 0 4px rgba(65,216,255,.10), 0 18px 45px rgba(0,0,0,.22);
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .project-download-card-focus { animation: none; }
}


/* Proje sayfası sonundaki sade ve kurallara uygun reklam alanı */
.project-ad-section {
  width: 100%;
  margin: 34px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.project-ad-label {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
  text-align: center;
}
.project-ad-frame {
  width: 100%;
  min-height: 100px;
  padding: 6px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 16px;
  background: rgba(255,255,255,.018);
}
.project-ad-frame .adsbygoogle { min-height: 90px; }
@media (max-width: 700px) {
  .project-ad-section { margin-top: 26px; padding-top: 20px; }
  .project-ad-frame { border-radius: 13px; }
}


/* Ana sayfanın en altındaki sade reklam alanı */
.home-ad-section {
  margin-top: 44px;
  margin-bottom: 8px;
}
@media (max-width: 700px) {
  .home-ad-section {
    margin-top: 32px;
    margin-bottom: 4px;
  }
}

/* Ana sayfa ve kategori sonuçları: 8 yamalık gerçek sayfalama */
.patch-pagination {
  padding: 32px 0 6px;
  display: grid;
  grid-template-columns: auto minmax(0, auto) auto;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.patch-page-nav,
.patch-page-number {
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, .1);
  color: var(--text);
  background: var(--panel-solid);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, opacity .2s ease;
}

.patch-page-nav {
  min-width: 116px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 14px;
  font-size: 12px;
}

.patch-page-nav > span {
  font-size: 17px;
  line-height: 1;
}

.patch-page-nav:hover:not(:disabled),
.patch-page-number:hover:not(.active) {
  transform: translateY(-2px);
  border-color: rgba(255, 56, 92, .4);
  background: linear-gradient(135deg, rgba(255, 56, 92, .1), rgba(65, 216, 255, .05)), var(--panel-solid);
}

.patch-page-nav:disabled {
  opacity: .38;
  cursor: not-allowed;
  box-shadow: none;
}

.patch-page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.patch-page-number {
  width: 46px;
  min-width: 46px;
  padding: 0;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 800;
}

.patch-page-number.active {
  border-color: rgba(255, 56, 92, .55);
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #ff7549);
  box-shadow: 0 12px 28px rgba(255, 56, 92, .24);
  cursor: default;
}

.patch-page-ellipsis {
  width: 24px;
  display: inline-grid;
  place-items: center;
  color: var(--muted);
  font-size: 17px;
  user-select: none;
}

.patch-page-summary {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}

body.light .patch-page-nav,
body.light .patch-page-number {
  border-color: rgba(22, 28, 48, .1);
}

@media (max-width: 700px) {
  .patch-pagination {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .patch-page-numbers {
    grid-column: 1 / -1;
    grid-row: 1;
    flex-wrap: wrap;
  }

  .patch-page-nav {
    width: 100%;
    min-width: 0;
  }

  .patch-page-number {
    width: 42px;
    min-width: 42px;
    min-height: 42px;
  }

  .patch-page-summary {
    margin-top: 0;
  }
}

@media (max-width: 420px) {
  .patch-page-number {
    width: 38px;
    min-width: 38px;
    min-height: 40px;
  }

  .patch-page-ellipsis {
    width: 16px;
  }
}


.ai-translation-note {
  margin: 18px 0 20px;
  padding: 13px 15px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  border: 1px solid rgba(68,216,255,.18);
  border-radius: 14px;
  background: rgba(68,216,255,.055);
}
.ai-translation-note > span {
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--cyan);
  background: rgba(68,216,255,.1);
  font-size: 10px;
  font-weight: 900;
}
.ai-translation-note p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: .01em;
}
.ai-translation-note strong {
  color: var(--text);
  font-size: 16px;
  font-weight: 900;
}

@media (max-width: 640px) {
  .ai-translation-note {
    padding: 14px;
    gap: 12px;
  }

  .ai-translation-note p {
    font-size: 14px;
    line-height: 1.6;
  }

  .ai-translation-note strong {
    font-size: 15px;
  }
}
.project-ai-badge {
  min-height: 27px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(177,104,255,.24);
  border-radius: 999px;
  color: #c89cff;
  background: rgba(177,104,255,.08);
  font-size: 10px;
  font-weight: 800;
}

/* Oyun Oylama bağlantısı: belirgin, dengeli ve mobil uyumlu üst menü düğmesi */
.desktop-nav .nav-voting-button {
  position: relative;
  isolation: isolate;
  min-height: 42px;
  padding: 0 15px 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  overflow: hidden;
  white-space: nowrap;
  color: #f2fcff;
  border: 1px solid rgba(78, 221, 255, .3);
  background:
    linear-gradient(135deg, rgba(44, 175, 225, .24), rgba(112, 75, 222, .18)),
    rgba(14, 22, 38, .72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 9px 24px rgba(32, 176, 224, .11);
}
.desktop-nav .nav-voting-button::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 58px;
  height: 110px;
  top: -34px;
  left: -76px;
  opacity: 0;
  transform: rotate(24deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.16), transparent);
  transition: left .38s ease, opacity .25s ease;
}
.desktop-nav .nav-voting-button:hover,
.desktop-nav .nav-voting-button.active {
  color: #fff;
  border-color: rgba(91, 228, 255, .58);
  background:
    linear-gradient(135deg, rgba(41, 187, 235, .36), rgba(123, 78, 232, .28)),
    rgba(14, 22, 38, .86);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.11),
    0 12px 30px rgba(32, 176, 224, .18);
  transform: translateY(-1px);
}
.desktop-nav .nav-voting-button:hover::after,
.desktop-nav .nav-voting-button.active::after {
  left: calc(100% + 20px);
  opacity: 1;
}
.nav-voting-icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #aaf3ff;
  background: rgba(78, 221, 255, .12);
  border: 1px solid rgba(78, 221, 255, .18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.nav-voting-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-voting-label {
  font-weight: 750;
  letter-spacing: .01em;
}
body.light .desktop-nav .nav-voting-button {
  color: #17324a;
  border-color: rgba(17, 151, 194, .24);
  background: linear-gradient(135deg, rgba(55, 195, 232, .16), rgba(121, 91, 229, .11));
  box-shadow: 0 9px 24px rgba(21, 124, 166, .09);
}
body.light .desktop-nav .nav-voting-button:hover,
body.light .desktop-nav .nav-voting-button.active {
  color: #092338;
  border-color: rgba(17, 151, 194, .38);
  background: linear-gradient(135deg, rgba(55, 195, 232, .25), rgba(121, 91, 229, .17));
}
body.light .nav-voting-icon {
  color: #087ca7;
  background: rgba(25, 164, 207, .1);
  border-color: rgba(25, 164, 207, .17);
}

.mobile-voting-button {
  display: none;
  min-height: 42px;
  padding: 0 12px 0 8px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  white-space: nowrap;
  color: #f2fcff;
  font-size: 12px;
  font-weight: 750;
  border-radius: 12px;
  border: 1px solid rgba(78, 221, 255, .28);
  background: linear-gradient(135deg, rgba(44, 175, 225, .24), rgba(112, 75, 222, .18));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.mobile-voting-button:hover,
.mobile-voting-button.is-active {
  transform: translateY(-1px);
  border-color: rgba(91, 228, 255, .52);
  background: linear-gradient(135deg, rgba(41, 187, 235, .34), rgba(123, 78, 232, .25));
}
.mobile-voting-button .nav-voting-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
}
.mobile-voting-button .nav-voting-icon svg {
  width: 17px;
  height: 17px;
}
body.light .mobile-voting-button {
  color: #17324a;
  border-color: rgba(17, 151, 194, .24);
  background: linear-gradient(135deg, rgba(55, 195, 232, .16), rgba(121, 91, 229, .11));
}

@media (max-width: 1050px) {
  .mobile-voting-button { display: inline-flex; }
}
@media (max-width: 680px) {
  .mobile-voting-button {
    width: 42px;
    padding: 0;
  }
  .mobile-voting-button > span:last-child { display: none; }
  .mobile-voting-button .nav-voting-icon {
    width: 30px;
    height: 30px;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
}

/* =========================================================
   Tüm düğmeler için ortak modern Nexus Çeviri tasarım sistemi
   ========================================================= */
.button,
.icon-button,
.notification-button,
.announcement button,
.view-switcher button,
.patch-page-nav,
.patch-page-number,
.favorite-btn,
.edit-patch-btn,
.delete-patch-btn,
.modal-close,
.project-lightbox-close,
.project-lightbox-nav {
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  gap: 8px;
  border: 1px solid transparent;
  letter-spacing: .012em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  transition:
    transform .2s ease,
    box-shadow .2s ease,
    border-color .2s ease,
    background .2s ease,
    color .2s ease;
}

.button::after {
  content: "";
  position: absolute;
  inset: -70% auto -70% -42%;
  width: 34%;
  pointer-events: none;
  opacity: 0;
  transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
  transition: left .42s ease, opacity .24s ease;
}

.button:hover::after {
  left: 118%;
  opacity: .72;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active:not(:disabled) {
  transform: translateY(0) scale(.985);
}

.button:focus-visible,
.icon-button:focus-visible,
.notification-button:focus-visible,
.announcement button:focus-visible,
.view-switcher button:focus-visible,
.patch-page-nav:focus-visible,
.patch-page-number:focus-visible,
.favorite-btn:focus-visible,
.edit-patch-btn:focus-visible,
.delete-patch-btn:focus-visible {
  outline: 3px solid rgba(65,216,255,.22);
  outline-offset: 3px;
}

.button-primary {
  border-color: rgba(255,116,139,.34);
  background:
    linear-gradient(135deg, rgba(255,255,255,.11), transparent 42%),
    linear-gradient(135deg, #ff355f 0%, #ff5c67 52%, #ff7853 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.2),
    0 12px 30px rgba(255,56,92,.25),
    0 0 0 1px rgba(255,56,92,.08);
}

.button-primary:hover {
  border-color: rgba(255,151,166,.5);
  background:
    linear-gradient(135deg, rgba(255,255,255,.16), transparent 44%),
    linear-gradient(135deg, #ff4c70 0%, #ff6d72 52%, #ff8b62 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.24),
    0 16px 36px rgba(255,56,92,.32),
    0 0 24px rgba(255,96,115,.1);
}

.button-secondary {
  color: var(--text);
  border-color: rgba(65,216,255,.17);
  background:
    linear-gradient(135deg, rgba(65,216,255,.075), rgba(162,105,255,.035)),
    var(--panel-soft);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.055),
    0 8px 22px rgba(0,0,0,.11);
}

.button-secondary:hover {
  color: #fff;
  border-color: rgba(65,216,255,.38);
  background:
    linear-gradient(135deg, rgba(65,216,255,.16), rgba(162,105,255,.08)),
    var(--panel-soft);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.09),
    0 12px 28px rgba(31,170,214,.13);
}

.button-ghost {
  color: var(--muted);
  border-color: rgba(255,255,255,.11);
  background: rgba(255,255,255,.018);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}

.button-ghost:hover {
  color: var(--text);
  border-color: rgba(255,255,255,.2);
  background: rgba(255,255,255,.06);
  box-shadow: 0 10px 25px rgba(0,0,0,.12);
}

.button-danger {
  color: #fff;
  border-color: rgba(255,111,132,.32);
  background:
    linear-gradient(135deg, rgba(255,255,255,.09), transparent 45%),
    linear-gradient(135deg, #d93655, #ff5c63 55%, #ff7858);
  box-shadow: 0 12px 28px rgba(233,62,89,.22);
}

.button-danger:hover {
  color: #fff;
  border-color: rgba(255,145,159,.48);
  background: linear-gradient(135deg, #e64560, #ff6c70 55%, #ff8966);
  box-shadow: 0 15px 34px rgba(233,62,89,.3);
}

body.light .button-secondary {
  color: #17253a;
  border-color: rgba(24,151,191,.18);
  background: linear-gradient(135deg, rgba(42,188,226,.08), rgba(130,91,225,.035)), #f4f7fb;
}
body.light .button-secondary:hover {
  color: #0d2638;
  border-color: rgba(24,151,191,.34);
  background: linear-gradient(135deg, rgba(42,188,226,.16), rgba(130,91,225,.07)), #eef4fa;
}
body.light .button-ghost {
  color: #56677e;
  border-color: rgba(18,31,52,.11);
  background: rgba(255,255,255,.58);
}
body.light .button-ghost:hover {
  color: #17253a;
  border-color: rgba(18,31,52,.19);
  background: #fff;
}

/* Normal masaüstü menü bağlantıları da düğme görünümünde */
.desktop-nav > a:not(.nav-voting-button) {
  position: relative;
  min-height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 12px;
  background: rgba(255,255,255,.018);
  transition: transform .2s ease, color .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.desktop-nav > a:not(.nav-voting-button)::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 5px;
  height: 2px;
  border-radius: 999px;
  opacity: 0;
  transform: scaleX(.45);
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  transition: opacity .2s ease, transform .2s ease;
}
.desktop-nav > a:not(.nav-voting-button):hover {
  color: var(--text);
  border-color: rgba(255,255,255,.1);
  background: rgba(255,255,255,.055);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  transform: translateY(-1px);
}
.desktop-nav > a:not(.nav-voting-button):hover::after,
.desktop-nav > a:not(.nav-voting-button).active::after {
  opacity: 1;
  transform: scaleX(1);
}
body.light .desktop-nav > a:not(.nav-voting-button) {
  background: rgba(22,34,55,.015);
}
body.light .desktop-nav > a:not(.nav-voting-button):hover {
  border-color: rgba(20,38,62,.1);
  background: rgba(20,38,62,.055);
}

/* Başlık ikon düğmeleri */
.icon-button,
.notification-button {
  position: relative;
  overflow: visible;
  border-color: rgba(65,216,255,.16);
  background:
    radial-gradient(circle at 35% 25%, rgba(65,216,255,.12), transparent 48%),
    var(--panel-soft);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 8px 22px rgba(0,0,0,.11);
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
}
.icon-button:hover,
.notification-button:hover {
  color: var(--cyan);
  border-color: rgba(65,216,255,.38);
  background:
    radial-gradient(circle at 35% 25%, rgba(65,216,255,.22), transparent 50%),
    var(--panel-soft);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.09),
    0 12px 28px rgba(30,174,217,.13);
  transform: translateY(-2px) rotate(-2deg);
}

/* Duyuru, görünüm, kart ve filtre düğmeleri */
.announcement button {
  min-height: 38px;
  padding: 0 14px;
  flex: 0 0 auto;
  border: 1px solid rgba(255,56,92,.2);
  border-radius: 11px;
  color: #ff8ba0;
  background: rgba(255,56,92,.07);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  transition: transform .2s ease, color .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.announcement button:hover {
  color: #fff;
  border-color: rgba(255,91,119,.42);
  background: linear-gradient(135deg, rgba(255,56,92,.24), rgba(255,112,82,.14));
  box-shadow: 0 10px 24px rgba(255,56,92,.15);
  transform: translateY(-1px);
}

.view-switcher {
  padding: 5px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(65,216,255,.045), rgba(255,56,92,.025)), var(--panel-solid);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}
.view-switcher button {
  position: relative;
  min-width: 38px;
  border: 1px solid transparent;
  transition: transform .2s ease, color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.view-switcher button:hover {
  color: var(--text);
  border-color: rgba(65,216,255,.16);
  background: rgba(65,216,255,.07);
  transform: translateY(-1px);
}
.view-switcher button.active {
  border-color: rgba(255,118,139,.35);
  background: linear-gradient(135deg, var(--primary), #ff7655);
  box-shadow: 0 8px 20px rgba(255,56,92,.22);
}

.favorite-btn,
.edit-patch-btn,
.delete-patch-btn {
  min-width: 42px;
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 8px 20px rgba(0,0,0,.1);
  transition: transform .2s ease, color .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.favorite-btn:hover,
.edit-patch-btn:hover,
.delete-patch-btn:hover {
  transform: translateY(-2px);
}
.favorite-btn:hover {
  color: #ff7890;
  border-color: rgba(255,56,92,.36);
  background: rgba(255,56,92,.1);
  box-shadow: 0 10px 24px rgba(255,56,92,.12);
}
.edit-patch-btn:hover {
  color: #8beaff;
  border-color: rgba(65,216,255,.38);
  background: rgba(65,216,255,.1);
  box-shadow: 0 10px 24px rgba(65,216,255,.11);
}
.delete-patch-btn:hover {
  color: #fff;
  border-color: rgba(255,88,113,.42);
  background: linear-gradient(135deg, rgba(233,62,89,.78), rgba(255,107,85,.72));
  box-shadow: 0 10px 24px rgba(233,62,89,.18);
}

.status-filter,
.category-trigger,
.sort-trigger {
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
}
.status-filter:hover,
.category-trigger:hover,
.sort-trigger:hover {
  transform: translateY(-1px);
  border-color: rgba(65,216,255,.26);
  box-shadow: 0 10px 25px rgba(0,0,0,.11);
}
.status-filter.active {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 24px rgba(255,56,92,.14);
}

/* Sayfalama ve görsel kontrol düğmeleri */
.patch-page-nav,
.patch-page-number {
  position: relative;
  overflow: hidden;
  border-color: rgba(65,216,255,.12);
  background: linear-gradient(135deg, rgba(65,216,255,.045), rgba(162,105,255,.025)), var(--panel-solid);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 10px 24px rgba(0,0,0,.11);
}
.patch-page-nav:hover:not(:disabled),
.patch-page-number:hover:not(.active) {
  border-color: rgba(65,216,255,.34);
  background: linear-gradient(135deg, rgba(65,216,255,.13), rgba(162,105,255,.07)), var(--panel-solid);
  box-shadow: 0 13px 29px rgba(31,170,214,.12);
}
.patch-page-number.active {
  border-color: rgba(255,125,145,.46);
  background: linear-gradient(135deg, #ff355f, #ff7655);
  box-shadow: 0 12px 28px rgba(255,56,92,.25);
}

.modal-close,
.project-lightbox-close,
.project-lightbox-nav {
  border: 1px solid rgba(255,255,255,.1);
  color: var(--text);
  background: rgba(12,17,28,.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 12px 30px rgba(0,0,0,.2);
  backdrop-filter: blur(14px);
  transition: transform .2s ease, color .2s ease, border-color .2s ease, background .2s ease;
}
.modal-close:hover,
.project-lightbox-close:hover,
.project-lightbox-nav:hover {
  color: #fff;
  border-color: rgba(65,216,255,.32);
  background: rgba(26,40,60,.9);
  transform: translateY(-1px);
}

/* Proje sayfasının ana eylemleri daha düzenli */
.project-primary-actions .button {
  min-width: 164px;
}
.project-primary-actions .button-primary {
  min-width: 210px;
}
.project-download-card .button {
  border-radius: 13px;
}

@media (max-width: 680px) {
  .announcement button {
    min-height: 40px;
  }
  .project-primary-actions .button,
  .project-primary-actions .button-primary {
    min-width: 0;
  }
  .button {
    letter-spacing: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button,
  .button::after,
  .icon-button,
  .notification-button,
  .desktop-nav > a,
  .announcement button,
  .view-switcher button,
  .favorite-btn,
  .edit-patch-btn,
  .delete-patch-btn,
  .patch-page-nav,
  .patch-page-number {
    transition: none !important;
  }
}

/* Yapay zekâ bilgilendirmesi: daha dengeli ve okunaklı metin ölçüsü */
.ai-translation-note p {
  font-size: 14px;
  line-height: 1.58;
}
.ai-translation-note strong {
  font-size: 15px;
}
@media (max-width: 640px) {
  .ai-translation-note p {
    font-size: 13px;
    line-height: 1.55;
  }
  .ai-translation-note strong {
    font-size: 14px;
  }
}


/* Proje galerisi: oklar hover sırasında merkezini kaybetmez. */
@media (min-width: 681px) {
  .project-lightbox .project-lightbox-nav:hover {
    transform: translateY(-50%) scale(1.04);
  }

  .project-lightbox .project-lightbox-nav:active {
    transform: translateY(-50%) scale(.96);
  }
}

@media (max-width: 680px) {
  .project-lightbox .project-lightbox-nav:hover {
    transform: translateY(-1px);
  }

  .project-lightbox .project-lightbox-nav:active {
    transform: scale(.96);
  }
}


/* Hata bildir ve çeviri düzeltme sistemi */
.button-warning {
  background: linear-gradient(135deg, rgba(255, 185, 67, .22), rgba(255, 102, 102, .2));
  border-color: rgba(255, 190, 84, .55);
  color: #fff4d7;
}
.button-warning:hover { border-color: rgba(255, 201, 113, .92); box-shadow: 0 12px 34px rgba(255, 146, 67, .2); }
body.light .button-warning { color: #7a3d00; background: linear-gradient(135deg, rgba(255,190,80,.24), rgba(255,112,112,.16)); border-color: rgba(196,112,20,.34); }
.project-report-modal { z-index: 10030; }
.project-report-modal-card { width: min(760px, calc(100vw - 28px)); max-height: min(90vh, 920px); overflow: auto; padding: 28px; }
.project-report-modal-heading { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.project-report-modal-heading h2 { margin: 4px 0 7px; font-size: clamp(24px, 3vw, 34px); }
.project-report-modal-heading p { margin: 0; color: var(--muted); line-height: 1.65; }
.project-report-modal-icon { display: grid; place-items: center; width: 52px; height: 52px; flex: 0 0 52px; border-radius: 17px; background: linear-gradient(135deg, rgba(255,190,80,.24), rgba(255,84,128,.2)); border: 1px solid rgba(255,190,80,.45); font-size: 24px; }
.project-report-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.project-report-form label { display: grid; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 700; }
.project-report-form label > span { color: var(--text); }
.project-report-form label b { color: #ff7598; }
.project-report-form input, .project-report-form select, .project-report-form textarea { width: 100%; border: 1px solid rgba(151,162,211,.22); border-radius: 13px; background: rgba(9,12,27,.78); color: var(--text); padding: 12px 13px; font: inherit; outline: none; resize: vertical; }
.project-report-form input:focus, .project-report-form select:focus, .project-report-form textarea:focus { border-color: rgba(127,107,255,.8); box-shadow: 0 0 0 3px rgba(115,89,255,.13); }
.project-report-form small { color: var(--muted); font-size: 12px; font-weight: 500; }
.project-report-full-field { grid-column: 1 / -1; }
.project-report-file-field input[type=file] { padding: 10px; }
.project-report-preview { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; border: 1px solid rgba(131,146,207,.22); background: rgba(12,16,34,.66); }
.project-report-preview img { width: 118px; height: 74px; object-fit: cover; border-radius: 10px; }
.project-report-preview button { border: 0; background: rgba(255,91,117,.15); color: #ff9aae; border-radius: 10px; padding: 9px 12px; cursor: pointer; font-weight: 800; }
.project-report-privacy-note { display: flex; gap: 11px; align-items: flex-start; margin-top: 18px; padding: 13px 14px; border-radius: 13px; background: rgba(73,139,255,.09); border: 1px solid rgba(92,153,255,.2); color: var(--muted); }
.project-report-privacy-note span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(95,154,255,.2); color: #bcd7ff; font-weight: 900; }
.project-report-privacy-note p { margin: 0; line-height: 1.55; }
.project-report-actions { margin-top: 20px; }
.project-report-history-card { overflow: hidden; }
.project-report-count { padding: 7px 11px; border: 1px solid rgba(137,151,213,.22); border-radius: 999px; color: var(--muted); font-size: 12px; font-weight: 800; }
.project-report-empty { display: flex; gap: 14px; align-items: center; padding: 17px; border: 1px dashed rgba(128,145,207,.24); border-radius: 16px; background: rgba(13,17,36,.52); }
.project-report-empty > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: rgba(83,216,169,.13); color: #75e5bd; font-weight: 900; }
.project-report-empty strong { display: block; margin-bottom: 4px; }
.project-report-empty p { margin: 0; color: var(--muted); line-height: 1.55; }
.project-report-history-list { display: grid; gap: 12px; }
.project-report-history-item { padding: 16px; border: 1px solid rgba(126,141,204,.2); border-radius: 15px; background: rgba(12,16,34,.58); }
.project-report-history-top { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.project-report-history-top div { display: grid; gap: 3px; }
.project-report-history-top span { color: #b9c3ed; font-size: 12px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.project-report-history-top strong { font-size: 13px; color: var(--muted); }
.project-report-history-item > p { margin: 12px 0 0; line-height: 1.65; }
.project-report-status { white-space: nowrap; border-radius: 999px; padding: 7px 10px; font-size: 11px; letter-spacing: .04em; }
.project-report-status.status-new { background: rgba(82,145,255,.14); color: #9cc1ff; border: 1px solid rgba(82,145,255,.28); }
.project-report-status.status-reviewing { background: rgba(255,181,67,.14); color: #ffd08b; border: 1px solid rgba(255,181,67,.28); }
.project-report-status.status-fixed { background: rgba(69,214,154,.13); color: #83e8bf; border: 1px solid rgba(69,214,154,.28); }
.project-report-status.status-rejected { background: rgba(255,89,116,.13); color: #ff9cb0; border: 1px solid rgba(255,89,116,.28); }
.project-report-admin-note { margin-top: 12px; padding: 12px 13px; border-radius: 12px; background: rgba(108,92,231,.1); color: #d8d1ff; line-height: 1.55; }
body.light .project-report-form input, body.light .project-report-form select, body.light .project-report-form textarea, body.light .project-report-history-item, body.light .project-report-empty { background: rgba(255,255,255,.82); }
@media (max-width: 680px) {
  .project-report-modal-card { padding: 20px 16px; }
  .project-report-field-grid { grid-template-columns: 1fr; }
  .project-report-full-field { grid-column: auto; }
  .project-report-modal-heading { gap: 11px; }
  .project-report-modal-icon { width: 44px; height: 44px; flex-basis: 44px; }
  .project-report-actions { display: grid; grid-template-columns: 1fr; }
  .project-report-history-top { align-items: flex-start; }
}


/* 2026-07-31 — Hata bildirim merkezi yeni tasarım */
.project-report-modal { padding: 18px; }
.project-report-dialog { position: relative; z-index: 2; display: grid; grid-template-columns: 300px minmax(0,1fr); width: min(1120px, calc(100vw - 36px)); max-height: min(94vh, 980px); overflow: hidden; border: 1px solid rgba(144,156,221,.24); border-radius: 28px; background: rgba(8,11,25,.97); box-shadow: 0 34px 100px rgba(0,0,0,.58), inset 0 1px 0 rgba(255,255,255,.05); }
.project-report-close { position: absolute; z-index: 5; top: 18px; right: 18px; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(152,164,220,.2); border-radius: 13px; background: rgba(16,21,42,.88); color: var(--text); font-size: 26px; line-height: 1; cursor: pointer; transition: .18s ease; }
.project-report-close:hover { transform: translateY(-1px); border-color: rgba(255,101,137,.5); color: #ff9cb3; }
.project-report-guide { position: relative; overflow: hidden; padding: 30px 24px; background: radial-gradient(circle at 15% 5%, rgba(120,86,255,.32), transparent 35%), linear-gradient(165deg, #141a3b, #0d1128 58%, #10142d); border-right: 1px solid rgba(145,157,217,.18); }
.project-report-guide::after { content:""; position:absolute; inset:auto -80px -100px auto; width:240px; height:240px; border-radius:50%; background:rgba(255,71,125,.12); filter:blur(8px); }
.project-report-guide-brand { position:relative; z-index:1; display:flex; gap:13px; align-items:center; }
.project-report-guide-icon { display:grid; place-items:center; width:48px; height:48px; border-radius:16px; background:linear-gradient(135deg,#7f63ff,#ff527e); box-shadow:0 12px 30px rgba(105,77,255,.28); font-size:22px; }
.project-report-guide-brand small,.project-report-game-card>span { display:block; color:#aeb9e5; font-size:10px; font-weight:900; letter-spacing:.12em; }
.project-report-guide-brand strong { display:block; margin-top:4px; line-height:1.35; font-size:15px; }
.project-report-game-card { position:relative; z-index:1; margin:28px 0; padding:18px; border:1px solid rgba(151,163,220,.16); border-radius:18px; background:rgba(6,9,22,.34); }
.project-report-game-card strong { display:block; margin:8px 0 7px; font-size:20px; line-height:1.2; }
.project-report-game-card small { color:#aab4da; line-height:1.55; }
.project-report-steps { position:relative; z-index:1; display:grid; gap:17px; margin:0; padding:0; list-style:none; }
.project-report-steps li { display:grid; grid-template-columns:34px 1fr; gap:12px; align-items:start; opacity:.58; }
.project-report-steps li.active { opacity:1; }
.project-report-steps b { display:grid; place-items:center; width:34px; height:34px; border-radius:12px; background:rgba(127,99,255,.15); border:1px solid rgba(138,111,255,.28); color:#cbbfff; }
.project-report-steps strong { display:block; margin:1px 0 4px; font-size:13px; }
.project-report-steps span { display:block; color:#96a1ca; font-size:11px; line-height:1.45; }
.project-report-safe-note { position:absolute; z-index:1; left:24px; right:24px; bottom:26px; display:flex; gap:10px; align-items:flex-start; padding:13px; border:1px solid rgba(74,214,158,.2); border-radius:14px; background:rgba(50,188,134,.08); }
.project-report-safe-note>span { color:#73e4b8; font-weight:900; }
.project-report-safe-note p { margin:0; color:#a8b4d7; font-size:11px; line-height:1.5; }
.project-report-workspace { min-width:0; overflow:auto; padding:30px 34px 0; }
.project-report-workspace-head { display:flex; justify-content:space-between; gap:22px; align-items:flex-start; padding-right:48px; margin-bottom:24px; }
.project-report-workspace-head h2 { margin:4px 0 6px; font-size:clamp(27px,3vw,38px); }
.project-report-workspace-head p { margin:0; color:var(--muted); line-height:1.55; }
.project-report-required { display:flex; gap:7px; align-items:center; padding:8px 10px; border:1px solid rgba(255,108,139,.22); border-radius:999px; color:#ffadc0; font-size:10px; font-weight:900; letter-spacing:.05em; white-space:nowrap; }
.project-report-required i { width:7px; height:7px; border-radius:50%; background:#ff6d91; box-shadow:0 0 12px #ff6d91; }
.project-report-form-new { display:grid; gap:15px; }
.project-report-form-section { padding:19px; border:1px solid rgba(145,157,216,.16); border-radius:19px; background:rgba(15,19,39,.55); }
.project-report-section-title { display:flex; gap:12px; align-items:flex-start; margin-bottom:16px; }
.project-report-section-title>span { display:grid; place-items:center; width:34px; height:34px; flex:0 0 34px; border-radius:11px; background:rgba(117,91,242,.14); color:#bfb1ff; font-size:11px; font-weight:900; }
.project-report-section-title strong { display:block; font-size:15px; }
.project-report-section-title small { display:block; margin-top:4px; color:var(--muted); font-size:11px; }
.project-report-type-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:9px; }
.project-report-type-option { min-width:0; min-height:88px; padding:12px 10px; border:1px solid rgba(146,159,217,.16); border-radius:15px; background:rgba(8,11,26,.58); color:var(--text); cursor:pointer; text-align:left; transition:.18s ease; }
.project-report-type-option:hover { transform:translateY(-2px); border-color:rgba(131,108,255,.42); }
.project-report-type-option.active { border-color:rgba(134,105,255,.75); background:linear-gradient(145deg,rgba(119,89,243,.22),rgba(79,59,180,.1)); box-shadow:0 0 0 3px rgba(113,83,239,.09); }
.project-report-type-option i { display:grid; place-items:center; width:29px; height:29px; margin-bottom:9px; border-radius:10px; background:rgba(121,95,244,.14); color:#c7bbff; font-style:normal; font-size:12px; font-weight:900; }
.project-report-type-option strong,.project-report-type-option small { display:block; overflow:hidden; text-overflow:ellipsis; }
.project-report-type-option strong { font-size:11px; white-space:nowrap; }
.project-report-type-option small { margin-top:4px; color:#909bc1; font-size:9px; line-height:1.35; }
.project-report-two-columns,.project-report-compare-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; }
.project-report-control { display:grid; gap:8px; color:var(--muted); font-size:12px; font-weight:700; }
.project-report-control>span { display:flex; align-items:center; color:var(--text); }
.project-report-control>span b { margin-left:5px; color:#ff7196; }
.project-report-control>span em { margin-left:auto; color:var(--muted); font-size:10px; font-style:normal; font-weight:800; }
.project-report-control>span em.near-limit { color:#ff9a76; }
.project-report-control input,.project-report-control select,.project-report-control textarea { width:100%; border:1px solid rgba(151,162,211,.2); border-radius:13px; background:rgba(7,10,24,.72); color:var(--text); padding:12px 13px; font:inherit; outline:none; resize:vertical; }
.project-report-control input:focus,.project-report-control select:focus,.project-report-control textarea:focus { border-color:rgba(127,105,255,.78); box-shadow:0 0 0 3px rgba(116,87,247,.12); }
.project-report-control-suggestion textarea { border-color:rgba(64,207,151,.2); }
.project-report-details-control { margin-top:13px; }
.project-report-dropzone { display:grid; place-items:center; min-height:142px; padding:20px; border:1px dashed rgba(137,151,214,.36); border-radius:17px; background:rgba(8,11,26,.44); text-align:center; cursor:pointer; transition:.18s ease; }
.project-report-dropzone:hover,.project-report-dropzone.dragging { border-color:rgba(127,100,255,.8); background:rgba(105,77,231,.1); }
.project-report-dropzone input { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }
.project-report-upload-icon { display:grid; place-items:center; width:42px; height:42px; margin-bottom:9px; border-radius:14px; background:rgba(119,91,242,.15); color:#c7bbff; font-size:20px; }
.project-report-dropzone strong { font-size:13px; }
.project-report-dropzone small { margin-top:6px; color:var(--muted); font-size:10px; }
.project-report-preview-new { margin-top:12px; display:grid; grid-template-columns:110px 1fr auto; align-items:center; }
.project-report-preview-new img { width:110px; height:68px; }
.project-report-preview-new strong,.project-report-preview-new small { display:block; }
.project-report-preview-new small { margin-top:4px; color:var(--muted); font-size:10px; }
.project-report-form-footer { position:sticky; z-index:3; bottom:0; display:flex; justify-content:space-between; gap:20px; align-items:center; margin:0 -34px; padding:17px 34px; border-top:1px solid rgba(145,157,216,.16); background:rgba(8,11,25,.94); backdrop-filter:blur(16px); }
.project-report-form-footer>div:first-child { display:flex; gap:9px; align-items:center; max-width:360px; }
.project-report-form-footer>div:first-child span { color:#69dfb1; }
.project-report-form-footer p { margin:0; color:var(--muted); font-size:10px; line-height:1.45; }
.project-report-actions { display:flex; gap:9px; margin:0; }
body.light .project-report-dialog { background:rgba(248,249,255,.98); }
body.light .project-report-workspace,.body.light .project-report-form-footer { color:#171b2e; }
body.light .project-report-form-section { background:rgba(255,255,255,.75); }
body.light .project-report-control input,body.light .project-report-control select,body.light .project-report-control textarea,body.light .project-report-type-option,body.light .project-report-dropzone { background:rgba(255,255,255,.9); }
body.light .project-report-form-footer { background:rgba(248,249,255,.94); }
@media (max-width:900px) { .project-report-dialog{grid-template-columns:1fr;width:min(760px,calc(100vw - 22px));} .project-report-guide{display:none;} .project-report-workspace{padding:24px 20px 0;} .project-report-workspace-head{padding-right:44px;} .project-report-form-footer{margin:0 -20px;padding:15px 20px;} .project-report-type-grid{grid-template-columns:repeat(2,minmax(0,1fr));} }
@media (max-width:600px) { .project-report-modal{padding:7px;} .project-report-dialog{width:calc(100vw - 14px);max-height:96vh;border-radius:20px;} .project-report-workspace{padding:20px 13px 0;} .project-report-workspace-head{display:block;padding-right:40px;} .project-report-required{display:none;} .project-report-type-grid,.project-report-two-columns,.project-report-compare-fields{grid-template-columns:1fr;} .project-report-form-section{padding:15px;} .project-report-form-footer{display:grid;margin:0 -13px;padding:13px;} .project-report-form-footer>div:first-child{display:none;} .project-report-actions{display:grid;grid-template-columns:1fr 1fr;} .project-report-preview-new{grid-template-columns:80px 1fr;} .project-report-preview-new img{width:80px;height:58px;} .project-report-preview-new button{grid-column:1/-1;width:100%;} }


/* 2026-07-31 — Hata bildir modalı görünür scrollbar ve sabit işlem alanı */
.project-report-modal {
  overflow: hidden;
}

.project-report-dialog {
  height: min(94dvh, 980px);
  max-height: calc(100dvh - 36px);
}

.project-report-workspace {
  display: flex;
  min-height: 0;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
}

.project-report-workspace-head {
  flex: 0 0 auto;
}

.project-report-form-new {
  min-height: 0;
  flex: 1 1 auto;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0;
  overflow: hidden;
}

.project-report-scroll-body {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: scroll;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: auto;
  scrollbar-color: #8d72ff rgba(255,255,255,.065);
  display: grid;
  align-content: start;
  gap: 15px;
  padding: 0 12px 22px 0;
}

.project-report-scroll-body::-webkit-scrollbar {
  width: 11px;
}

.project-report-scroll-body::-webkit-scrollbar-track {
  margin: 2px 0 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.055);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.045);
}

.project-report-scroll-body::-webkit-scrollbar-thumb {
  min-height: 56px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: linear-gradient(180deg, #9b82ff, #ff648c) padding-box;
  box-shadow: 0 0 14px rgba(132,101,255,.3);
}

.project-report-scroll-body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #b09cff, #ff83a4) padding-box;
}

.project-report-form-footer {
  position: relative;
  bottom: auto;
  flex: 0 0 auto;
  margin-top: 0;
  box-shadow: 0 -16px 30px rgba(4,7,18,.22);
}

.project-report-actions .button {
  min-width: 0;
  white-space: nowrap;
}

body.light .project-report-scroll-body {
  scrollbar-color: #7458e8 rgba(26,31,58,.09);
}

body.light .project-report-scroll-body::-webkit-scrollbar-track {
  background: rgba(26,31,58,.07);
  box-shadow: inset 0 0 0 1px rgba(26,31,58,.055);
}

@media (max-width: 900px) {
  .project-report-dialog {
    height: min(94dvh, 900px);
    max-height: calc(100dvh - 22px);
  }

  .project-report-scroll-body {
    padding-right: 9px;
  }
}

@media (max-width: 600px) {
  .project-report-dialog {
    height: calc(100dvh - 14px);
    max-height: calc(100dvh - 14px);
  }

  .project-report-scroll-body {
    gap: 13px;
    padding: 0 7px 16px 0;
  }

  .project-report-scroll-body::-webkit-scrollbar {
    width: 8px;
  }

  .project-report-form-footer {
    flex: 0 0 auto;
  }

  .project-report-actions .button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .project-report-actions {
    grid-template-columns: 1fr;
  }
}

/* 2026-07-31 — İşlem ve hata mesajları tüm modalların üstünde görünür. */
.toast,
.notification-toast-container {
  z-index: 12050 !important;
}

/* Hata bildirim formu açıkken mesajın alt bölümde kesilmesini engeller. */
.project-report-modal:not(.hidden) ~ .toast,
body:has(.project-report-modal:not(.hidden)) > .toast {
  z-index: 12060 !important;
}


/* 2026-07-31 — Proje detayında sürüm geçmişi zaman çizelgesi */
.project-release-history-card { overflow: hidden; }
.project-release-heading { align-items: center; }
.project-release-count { min-height: 31px; padding: 0 12px; display: inline-grid; place-items: center; border: 1px solid rgba(132,101,255,.24); border-radius: 999px; color: #b9a9ff; background: rgba(132,101,255,.08); font-size: 11px; font-weight: 800; white-space: nowrap; }
.project-release-timeline { display: grid; gap: 0; margin-top: 6px; }
.project-release-item { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 12px; }
.project-release-rail { position: relative; display: flex; justify-content: center; }
.project-release-rail::after { content: ''; position: absolute; top: 28px; bottom: -8px; width: 2px; border-radius: 99px; background: linear-gradient(180deg,rgba(132,101,255,.35),rgba(132,101,255,.06)); }
.project-release-item:last-child .project-release-rail::after { display: none; }
.project-release-rail>span { position: relative; z-index: 1; width: 16px; height: 16px; margin-top: 23px; border: 4px solid var(--panel-solid); border-radius: 50%; background: #687083; box-shadow: 0 0 0 1px var(--line); }
.project-release-item.current .project-release-rail>span { background: #8c6cff; box-shadow: 0 0 0 1px rgba(140,108,255,.65),0 0 22px rgba(140,108,255,.5); }
.project-release-content { margin-bottom: 13px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(135deg,rgba(132,101,255,.055),rgba(68,216,255,.025)),var(--panel-soft); transition: border-color .2s ease,transform .2s ease; }
.project-release-item.current .project-release-content { border-color: rgba(132,101,255,.3); box-shadow: inset 3px 0 0 #8c6cff; }
.project-release-content:hover { border-color: rgba(132,101,255,.28); transform: translateY(-1px); }
.project-release-content header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.project-release-version { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.project-release-version strong { color: var(--text); font-size: 19px; line-height: 1; }
.project-release-version span { min-height: 24px; padding: 0 8px; display: inline-grid; place-items: center; border-radius: 999px; color: #fff; background: linear-gradient(135deg,#7858ed,#ff5681); font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.project-release-content time { color: var(--muted); font-size: 11px; font-weight: 700; white-space: nowrap; }
.project-release-content ul { margin: 14px 0 0; padding: 0; display: grid; gap: 10px; list-style: none; }
.project-release-content li { display: grid; grid-template-columns: 23px minmax(0,1fr); gap: 9px; align-items: start; }
.project-release-content li>span { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid rgba(68,216,255,.18); border-radius: 7px; color: var(--cyan); background: rgba(68,216,255,.055); font-size: 10px; font-weight: 900; }
.project-release-content li p { margin: 1px 0 0; color: var(--text-soft,var(--muted)); font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
body.light .project-release-rail>span { border-color: #fff; }
@media(max-width:600px){.project-release-heading{align-items:flex-start;flex-direction:column}.project-release-item{grid-template-columns:24px minmax(0,1fr);gap:7px}.project-release-content{padding:15px}.project-release-content header{align-items:flex-start;flex-direction:column}.project-release-version strong{font-size:17px}.project-release-content li p{font-size:12px}}

/* 2026-07-31 — İndirme bağlantısı bakım durumu */
.project-download-maintenance {
  margin-top: 16px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255,196,92,.24);
  border-radius: 15px;
  background: linear-gradient(135deg,rgba(255,196,92,.1),rgba(255,112,82,.045));
}
.project-download-maintenance > span {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #ffd377;
  background: rgba(255,196,92,.11);
  font-size: 20px;
  font-weight: 900;
}
.project-download-maintenance strong,.project-download-maintenance small { display: block; }
.project-download-maintenance strong { color: #ffe0a0; font-size: 14px; }
.project-download-maintenance small { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.45; }
body.light .project-download-maintenance { background: rgba(255,196,92,.09); }
body.light .project-download-maintenance strong { color: #8a5b00; }

/* 2026-07-31 — VirusTotal güvenlik kartı */
.project-virustotal-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(76, 220, 171, .22);
  background:
    radial-gradient(circle at 100% 0, rgba(76, 220, 171, .12), transparent 44%),
    var(--panel);
}
.project-virustotal-card::after {
  content: '';
  position: absolute;
  inset: auto -34px -42px auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(76, 220, 171, .055);
  filter: blur(2px);
  pointer-events: none;
}
.project-virustotal-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.project-virustotal-heading h2 {
  margin: 4px 0 0;
}
.project-virustotal-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(76, 220, 171, .28);
  border-radius: 15px;
  color: #67e6b6;
  background: rgba(76, 220, 171, .095);
  box-shadow: inset 0 0 20px rgba(76, 220, 171, .04);
}
.project-virustotal-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.project-virustotal-card > p {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}
.project-virustotal-meta {
  margin-top: 14px;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(76, 220, 171, .14);
  border-radius: 13px;
  background: rgba(76, 220, 171, .045);
}
.project-virustotal-meta span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}
.project-virustotal-meta strong {
  color: #76e8bd;
  font-size: 12px;
}
.project-virustotal-link {
  min-height: 48px;
  margin-top: 11px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(76, 220, 171, .3);
  border-radius: 14px;
  color: #eafff7;
  background: linear-gradient(135deg, rgba(37, 177, 125, .78), rgba(30, 126, 160, .78));
  box-shadow: 0 12px 28px rgba(24, 132, 104, .16);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.project-virustotal-link:hover {
  transform: translateY(-2px);
  border-color: rgba(111, 244, 193, .58);
  box-shadow: 0 16px 34px rgba(24, 132, 104, .24);
}
.project-virustotal-link b {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(255,255,255,.11);
  font-size: 13px;
}
.project-virustotal-note {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  display: block;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}
.project-virustotal-empty {
  margin-top: 15px;
  padding: 13px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px dashed rgba(151, 163, 184, .26);
  border-radius: 14px;
  background: rgba(151, 163, 184, .045);
}
.project-virustotal-empty > span {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--muted);
  background: rgba(151, 163, 184, .08);
  font-size: 20px;
}
.project-virustotal-empty strong,
.project-virustotal-empty small {
  display: block;
}
.project-virustotal-empty strong {
  color: var(--text);
  font-size: 11px;
}
.project-virustotal-empty small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}
body.light .project-virustotal-card {
  background:
    radial-gradient(circle at 100% 0, rgba(31, 171, 117, .09), transparent 44%),
    var(--panel);
}
body.light .project-virustotal-link {
  color: #fff;
}
body.light .project-virustotal-meta strong {
  color: #0d8057;
}
@media (max-width: 600px) {
  .project-virustotal-link {
    min-height: 46px;
    font-size: 11px;
  }
}


/* 2026-07-31 — Üst menü çıkış düğmesi taşma düzeltmesi */
.site-header,
.site-header .brand,
.site-header .header-actions {
  min-width: 0;
}
.site-header .brand {
  flex: 0 1 auto;
}
.site-header .brand > span:last-child {
  min-width: 0;
}
.header-actions {
  flex: 0 1 auto;
  justify-content: flex-end;
  max-width: 100%;
}
#logoutButton {
  min-width: 72px;
  flex: 0 0 auto;
}

@media (max-width: 1180px) and (min-width: 781px) {
  .site-header {
    gap: 14px;
    padding-inline: 12px;
  }
  .header-actions {
    gap: 6px;
  }
  .header-actions .member-badge,
  .header-actions .admin-security-button {
    display: none !important;
  }
  .header-actions .button {
    padding-inline: 12px;
    font-size: 12px;
  }
}

@media (max-width: 880px) {
  #logoutButton {
    display: inline-flex !important;
  }
}

@media (max-width: 680px) {
  .site-header {
    gap: 8px;
  }
  .site-header .brand {
    flex: 1 1 auto;
  }
  .site-header .brand > span:last-child {
    display: none;
  }
  .header-actions {
    flex: 0 0 auto;
    gap: 5px;
  }
  .header-actions .admin-security-button,
  .header-actions .button-secondary {
    display: none !important;
  }
  #logoutButton {
    display: inline-flex !important;
    width: 42px;
    min-width: 42px;
    height: 42px;
    padding: 0;
    font-size: 0;
    overflow: visible;
  }
  #logoutButton::before {
    content: "↪";
    display: block;
    font-size: 18px;
    line-height: 1;
  }
}

@media (max-width: 430px) {
  .mobile-voting-button {
    display: none !important;
  }
}


/* 2026-07-31 — Yönetim Paneli kısayolu üst menüden taşındı */
.floating-admin-panel {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 1180;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  border: 1px solid rgba(139, 92, 246, .46);
  border-radius: 18px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(113, 67, 204, .96), rgba(64, 38, 124, .96));
  box-shadow:
    0 18px 38px rgba(28, 14, 62, .34),
    inset 0 1px 0 rgba(255, 255, 255, .16);
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .01em;
  white-space: nowrap;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.floating-admin-panel:hover {
  transform: translateY(-4px);
  border-color: rgba(184, 144, 255, .8);
  box-shadow:
    0 22px 46px rgba(28, 14, 62, .44),
    0 0 0 4px rgba(139, 92, 246, .1),
    inset 0 1px 0 rgba(255, 255, 255, .2);
}
.floating-admin-panel:focus-visible {
  outline: 3px solid rgba(191, 160, 255, .7);
  outline-offset: 3px;
}
.floating-admin-panel-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255,255,255,.13);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
  font-size: 19px;
  line-height: 1;
}
.floating-admin-panel-label {
  line-height: 1;
}
body.light .floating-admin-panel {
  color: #fff;
  border-color: rgba(109, 62, 190, .42);
  box-shadow: 0 16px 34px rgba(72, 43, 132, .25);
}
@media (max-width: 600px) {
  .floating-admin-panel {
    left: 14px;
    bottom: 14px;
    width: 50px;
    min-width: 50px;
    height: 50px;
    min-height: 50px;
    padding: 7px;
    justify-content: center;
    border-radius: 16px;
  }
  .floating-admin-panel-icon {
    width: 36px;
    height: 36px;
  }
  .floating-admin-panel-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}
