:root {
  --bg: #0c111b;
  --panel: #141b28;
  --border: #243044;
  --text: #e8edf5;
  --muted: #8b9bb8;
  --green: #22c55e;
  --blue: #3d7bfd;
  --gold: #d4a853;
  --ko-blue: #4a9eff;
  --radius: 14px;
  --font: system-ui, "Segoe UI", Roboto, Ubuntu, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}
a { color: var(--ko-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  padding: 16px 16px 10px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #121a28 0%, var(--bg) 100%);
}
.site-header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px 20px;
  max-width: 1180px;
  margin: 0 auto;
}
.site-header-logo {
  justify-self: start;
  min-height: 1px;
  display: flex;
  align-items: center;
  min-width: 0;
}
.site-header-logo-box {
  flex-shrink: 0;
  line-height: 0;
}
.site-header-logo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.site-header-brand {
  grid-column: 2;
  justify-self: center;
  text-align: center;
}
.site-header-spacer {
  grid-column: 3;
}
@media (max-width: 520px) {
  .site-header-inner {
    grid-template-columns: auto 1fr;
    gap: 10px 12px;
  }
  .site-header-brand {
    grid-column: 2;
    justify-self: end;
    text-align: right;
  }
  .site-header-spacer {
    display: none;
  }
  .site-header-logo {
    grid-column: 1;
  }
}
.logo {
  font-size: clamp(1.4rem, 4vw, 1.85rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--gold);
  text-transform: uppercase;
}
.logo span { color: #c41e3a; }
.logo small {
  display: block;
  font-size: 0.55em;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.2em;
  margin-top: 4px;
}

.shell { max-width: 1180px; margin: 0 auto; padding: 0 16px 48px; }
.shell-main { flex: 1; min-width: 0; max-width: 1180px; }

.page-with-rails {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(8px, 2vw, 28px);
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 clamp(6px, 1.5vw, 20px) 48px;
}
.sponsor-rail-spacer {
  flex: 0 0 0;
  width: 0;
  overflow: hidden;
  pointer-events: none;
}
.sponsor-rail-column {
  flex: 0 0 var(--sp-col-w, 160px);
  width: var(--sp-col-w, 160px);
  position: sticky;
  top: 12px;
  z-index: 4;
  align-self: flex-start;
  margin-top: clamp(36px, 4.5vw, 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 2.8vw, 34px);
}
.sponsor-rail-column > .sponsor-rail + .sponsor-rail--secondary {
  margin-top: clamp(28px, 4.5vw, 72px);
}
.sponsor-rail-column-left {
  margin-left: clamp(-10px, -1.8vw, -28px);
}
.sponsor-rail-column-right {
  margin-right: clamp(-10px, -1.8vw, -28px);
}
.sponsor-rail {
  flex: 0 0 auto;
  width: var(--sp-w, 160px);
  max-width: 100%;
  position: static;
  margin-top: 0;
  z-index: 0;
}
.sponsor-rail--in-column {
  align-self: center;
}
.sponsor-rail-column > .sponsor-rail--secondary {
  width: min(100%, calc(var(--sp-w, 160px) * 1.14));
}
.sponsor-rail-inner {
  border-radius: 6px 6px 10px 10px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(26, 34, 53, 0.95) 0%, rgba(8, 12, 22, 0.98) 100%);
  border: 2px solid rgba(212, 168, 83, 0.45);
  box-shadow:
    0 0 0 3px rgba(61, 156, 253, 0.2),
    0 16px 48px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.sponsor-rail-inner-left {
  transform: rotate(-4deg);
  transform-origin: 50% 0;
}
.sponsor-rail-inner-right {
  transform: rotate(4deg);
  transform-origin: 50% 0;
}
.sponsor-rail-inner--secondary {
  border-color: rgba(61, 156, 253, 0.38);
  box-shadow:
    0 0 0 2px rgba(212, 168, 83, 0.15),
    0 12px 36px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.sponsor-rail-left .sponsor-rail-inner--secondary {
  transform: rotate(-2deg);
  transform-origin: 50% 0;
}
.sponsor-rail-right .sponsor-rail-inner--secondary {
  transform: rotate(2deg);
  transform-origin: 50% 0;
}
.sponsor-rail-inner img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}
@media (max-width: 1180px) {
  .page-with-rails {
    flex-wrap: wrap;
    padding-bottom: 32px;
  }
  .sponsor-rail,
  .sponsor-rail-spacer,
  .sponsor-rail-column {
    display: none;
  }
  .shell-main {
    max-width: none;
    flex: 1 1 100%;
  }
}

.hero {
  display: block;
  margin-top: 20px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--panel);
}
.hero-visual {
  min-height: 300px;
  background: linear-gradient(135deg, #1a2235 0%, #0d1524 50%, #1e2a42 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
}
.hero-visual-slider {
  min-height: var(--hero-sl-h);
  width: min(100%, var(--hero-sl-w));
  max-width: 100%;
  height: auto;
  aspect-ratio: var(--hero-ar-w) / var(--hero-ar-h);
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  display: block;
  overflow: hidden;
  position: relative;
}
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.65s ease;
  pointer-events: none;
}
@media (max-width: 900px) {
  .hero-visual-slider {
    min-height: max(var(--hero-sl-h), 36vw);
  }
  img.hero-slide {
    object-fit: contain;
  }
}
video.hero-slide {
  background: #0d1524;
}
.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}
.hero-visual-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-visual-hasimg::after {
  opacity: 0.35;
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath fill='%23d4a853' fill-opacity='0.06' d='M0 0h40v40H0zm40 40h40v40H40z'/%3E%3C/svg%3E");
  opacity: 0.9;
  pointer-events: none;
}
.server-pick-hero {
  margin-top: 0;
}
.server-pick-wrap {
  margin-bottom: 4px;
}
.server-pick-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #93c5fd;
  margin-bottom: 10px;
  text-shadow: 0 0 18px rgba(61, 156, 253, 0.45);
}
.server-pick-shell {
  position: relative;
  max-width: 340px;
  padding: 3px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(8, 12, 20, 0.5);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 8px 32px rgba(61, 156, 253, 0.32),
    0 0 40px rgba(34, 197, 94, 0.12);
  animation: server-pick-pulse 2.4s ease-in-out infinite;
}
/* Dönen canlı çerçeve (koni gradyan) */
.server-pick-shell::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 200%;
  height: 200%;
  margin-left: -100%;
  margin-top: -100%;
  background: conic-gradient(
    from 0deg,
    #bef264,
    #22d3ee,
    #38bdf8,
    #a78bfa,
    #f472b6,
    #fde047,
    #bef264
  );
  animation: server-pick-orbit 3.2s linear infinite;
  z-index: 0;
}
.server-pick-shell--engaged {
  animation: none;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 6px 24px rgba(61, 156, 253, 0.22),
    0 0 28px rgba(34, 197, 94, 0.1);
}
.server-pick-shell--engaged::before {
  animation-duration: 14s;
  opacity: 0.82;
  filter: saturate(0.92);
}
@keyframes server-pick-orbit {
  to {
    transform: rotate(360deg);
  }
}
@keyframes server-pick-pulse {
  0%,
  100% {
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.35));
  }
  50% {
    filter: drop-shadow(0 0 18px rgba(190, 242, 100, 0.45));
  }
}
@media (prefers-reduced-motion: reduce) {
  .server-pick-shell {
    animation: none;
  }
  .server-pick-shell::before {
    animation: none;
    opacity: 0.85;
    transform: rotate(45deg);
  }
  .server-pick-shell--engaged::before {
    opacity: 0.75;
  }
}
.server-pick-inner {
  position: relative;
  z-index: 1;
  border-radius: 13px;
  overflow: hidden;
  background: linear-gradient(180deg, #1a2438 0%, #0d1524 100%);
}
.server-pick-shell--compact {
  max-width: 260px;
}
.server-pick-select {
  width: 100%;
  margin: 0;
  display: block;
  appearance: none;
  -webkit-appearance: none;
  padding: 14px 44px 14px 18px;
  border-radius: 13px;
  border: none;
  background: transparent;
  color: #f8fafc;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}
.server-pick-select option,
.server-pick-select optgroup {
  background-color: #0d1524;
  color: #f8fafc;
}
.server-pick-inner::after {
  content: "▾";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  color: #7dd3fc;
  pointer-events: none;
  opacity: 0.95;
  z-index: 2;
}
.server-pick-select:hover {
  filter: brightness(1.08);
}
.server-pick-select:focus {
  outline: none;
  box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.45), 0 0 0 3px rgba(61, 156, 253, 0.45);
}
.btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--green);
  color: #041208;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  text-decoration: none;
}
.btn-wa:hover { filter: brightness(1.08); text-decoration: none; }
.btn-wa--ticker {
  white-space: nowrap;
  padding: 11px 18px;
  font-size: 0.88rem;
}
.phone-big { font-size: 1.5rem; font-weight: 800; color: var(--green); }
.phone-big--ticker {
  font-size: 1.05rem;
  text-align: center;
  margin-top: 6px;
}

.ticker {
  margin-top: 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.92rem;
}
.ticker-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 16px 22px;
  padding: 16px 20px 18px;
}
.ticker-server {
  flex: 0 0 auto;
  margin: 0;
  align-self: center;
}
.ticker-server .server-pick-wrap {
  margin-bottom: 0;
}
.ticker-main {
  flex: 1 1 340px;
  min-width: min(100%, 320px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.ticker-tagline {
  width: 100%;
  max-width: 640px;
}
.ticker-title {
  margin: 0;
  font-size: clamp(0.98rem, 2.1vw, 1.18rem);
  line-height: 1.35;
  font-weight: 800;
}
.ticker-sub {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}
.ticker-prices {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  width: 100%;
}
.ticker-prices-label {
  flex: 0 0 auto;
  width: 100%;
  text-align: center;
  font-size: 0.95rem;
}
@media (min-width: 640px) {
  .ticker-prices-label {
    width: auto;
    text-align: inherit;
  }
}
.ticker-upd {
  flex: 1 1 100%;
  text-align: center;
}
@media (min-width: 640px) {
  .ticker-upd {
    flex: 0 1 auto;
    text-align: inherit;
  }
}
.ticker-wa {
  flex: 0 0 auto;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 4px;
  min-width: min(100%, 200px);
}
@media (max-width: 900px) {
  .ticker-wa {
    margin-left: 0;
    width: 100%;
    align-items: center;
  }
}
.pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
}
.pill-buy { background: rgba(34,197,94,0.2); color: #86efac; border: 1px solid rgba(34,197,94,0.35); }
.pill-sell { background: rgba(61,123,253,0.2); color: #93c5fd; border: 1px solid rgba(61,123,253,0.35); }
.ticker .muted { color: var(--muted); font-size: 0.82rem; }

.boxes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.box-card {
  display: flex;
  flex-direction: column;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 280px;
  border: 1px solid var(--border);
  background: #0a0f16;
}
.box-card-media {
  position: relative;
  flex: 1 1 auto;
  min-height: 160px;
  overflow: hidden;
}
.box-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  opacity: 0.92;
}
.box-card-meta {
  flex: 0 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  padding: 10px 12px;
  background: linear-gradient(180deg, #151d2e 0%, #0c111b 100%);
  border-top: 1px solid var(--border);
  z-index: 1;
}
.box-card-meta--tag-only {
  justify-content: center;
}
.box-card-meta--tag-only .tag {
  text-align: center;
}
.box-card .tag {
  font-size: 0.65rem;
  color: var(--ko-blue);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  flex-shrink: 0;
  white-space: nowrap;
}
.box-card .title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.95rem, 2.5vw, 1.2rem);
  font-weight: 800;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-align: right;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 380px) {
  .box-card-meta {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .box-card .title {
    text-align: left;
    white-space: normal;
  }
}

.toolbar-pub {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}
.cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 2px 0 4px;
}
.cat-tabs a {
  position: relative;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(165deg, #1c2738 0%, #121a28 55%, #0f1622 100%);
  border: 1px solid rgba(100, 116, 139, 0.35);
  color: #e2e8f0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-decoration: none;
  box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition:
    transform 0.18s ease,
    box-shadow 0.22s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.22s ease;
}
.cat-tabs a:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.5);
  color: #f8fafc;
  box-shadow:
    0 8px 24px rgba(34, 211, 238, 0.12),
    0 2px 12px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.cat-tabs a.on {
  background: linear-gradient(145deg, #2563eb 0%, #1d4ed8 42%, #1e3a8a 100%);
  border-color: rgba(147, 197, 253, 0.85);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  box-shadow:
    0 0 0 1px rgba(96, 165, 250, 0.35),
    0 6px 22px rgba(37, 99, 235, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.cat-tabs a.on:hover {
  border-color: rgba(191, 219, 254, 0.95);
  box-shadow:
    0 0 0 1px rgba(147, 197, 253, 0.45),
    0 10px 28px rgba(37, 99, 235, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.cat-tabs a:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.85);
  outline-offset: 3px;
}
@media (max-width: 480px) {
  .cat-tabs a {
    padding: 8px 14px;
    font-size: 0.76rem;
  }
}
.search-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.search-row input {
  min-width: 180px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #0a0f16;
  color: var(--text);
}
.search-row button {
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  background: #2a3548;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 20px;
  align-items: stretch;
}
/* Kategori / #urunler anchor: ürün grid’i görünür olsun */
#urunler.products {
  scroll-margin-top: 24px;
}
.p-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}
.p-tooltip {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #05080d;
  padding: 14px;
  font-size: 0.82rem;
  color: #cbd5e1;
  border-bottom: 1px solid var(--border);
}
.p-tooltip-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.p-tooltip .pname {
  font-weight: 700;
  color: #f8fafc;
  margin: 0;
  font-size: 0.95rem;
  text-align: center;
  width: 100%;
}
.p-tooltip-placeholder {
  flex-shrink: 0;
  text-align: center;
}
.p-bar {
  padding: 10px 12px;
  background: #1c2636;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
.p-bar .srv {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  margin: 0 auto;
  padding: 8px 12px 9px;
  border-radius: 10px;
  text-align: center;
  line-height: 1.35;
  border: 1px solid rgba(125, 211, 252, 0.55);
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.22) 0%, rgba(34, 94, 168, 0.35) 50%, rgba(15, 23, 42, 0.65) 100%);
  box-shadow:
    0 0 0 1px rgba(14, 165, 233, 0.15),
    0 4px 18px rgba(34, 211, 238, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: srv-badge-glow 2.4s ease-in-out infinite;
}
@keyframes srv-badge-glow {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(14, 165, 233, 0.15),
      0 4px 18px rgba(34, 211, 238, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(250, 204, 21, 0.35),
      0 6px 26px rgba(56, 189, 248, 0.42),
      0 0 28px rgba(251, 191, 36, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .p-bar .srv {
    animation: none;
  }
}
.p-bar .srv-lbl {
  display: block;
  width: 100%;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #fef08a;
  text-shadow: 0 0 14px rgba(250, 204, 21, 0.6), 0 1px 2px rgba(0, 0, 0, 0.55);
}
.p-bar .srv-val {
  display: block;
  width: 100%;
  font-size: 0.78rem;
  font-weight: 800;
  color: #e0f2fe;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  word-break: break-word;
  text-align: center;
}
.p-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  flex-shrink: 0;
}
.p-actions a, .p-actions button {
  padding: 12px;
  text-align: center;
  font-weight: 700;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.p-actions .ask { background: var(--green); color: #041008; }
.p-actions .view { background: var(--blue); color: #fff; }
.p-thumb-wrap {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(260px, 32vw, 340px);
  min-height: 260px;
  margin: 0 0 12px;
  background: #020508;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  overflow: hidden;
}
.p-thumb-wrap--empty {
  opacity: 0.35;
  background: repeating-linear-gradient(
    -12deg,
    #0a1018,
    #0a1018 8px,
    #0d1522 8px,
    #0d1522 16px
  );
}
.p-thumb {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Sayfa altı kredi — tek satır, küçük mor-altın dönen çerçeve */
.site-footer {
  margin-top: auto;
  padding: 10px 10px 16px;
  text-align: center;
}
.footer-credit-shell {
  position: relative;
  display: inline-block;
  max-width: min(100%, 200px);
  padding: 2px;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(124, 58, 237, 0.14);
}
.footer-credit-shell::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 220%;
  height: 220%;
  margin-left: -110%;
  margin-top: -110%;
  background: conic-gradient(
    from 0deg,
    #a78bfa,
    #e879f9,
    #f59e0b,
    #f472b6,
    #c084fc,
    #a78bfa
  );
  animation: footer-credit-spin 5s linear infinite reverse;
  z-index: 0;
}
@keyframes footer-credit-spin {
  to {
    transform: rotate(360deg);
  }
}
.footer-credit-link {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 5px 14px 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, #1a1428 0%, #0d0a12 100%);
  color: #faf5ff !important;
  text-decoration: none !important;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.2;
  box-shadow: inset 0 1px 8px rgba(0, 0, 0, 0.45);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  transition: filter 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}
.footer-credit-link:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
@media (prefers-reduced-motion: reduce) {
  .footer-credit-shell::before {
    animation: none;
    opacity: 0.85;
    transform: rotate(72deg);
  }
}

body.modal-open { overflow: hidden; }

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal.on { display: flex; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 14, 0.82);
  cursor: pointer;
}
.modal-panel {
  position: relative;
  z-index: 2;
  width: min(1040px, 96vw);
  max-height: min(92vh, 900px);
  overflow: auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0f1624;
  color: var(--text);
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.modal-close:hover { background: #1a2436; color: #fff; }
.modal-layout {
  display: grid;
  grid-template-columns: minmax(300px, 1.05fr) minmax(260px, 0.95fr);
  gap: 0;
  min-height: min(70vh, 640px);
}
@media (max-width: 820px) {
  .modal-layout {
    grid-template-columns: 1fr;
    min-height: unset;
  }
}
.modal-visual {
  background: #05080d;
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px 24px;
}
@media (max-width: 820px) {
  .modal-visual { border-right: none; border-bottom: 1px solid var(--border); }
}
.modal-visual-inner {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: #000;
  padding: 12px;
}
.modal-visual-inner img {
  width: 100%;
  max-width: 100%;
  max-height: min(58vh, 520px);
  height: auto;
  object-fit: contain;
  display: block;
}
.modal-noimg { margin: 2rem; text-align: center; }
.modal-side {
  padding: 28px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.modal-title {
  margin: 36px 0 0;
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  font-weight: 800;
  line-height: 1.25;
  color: #f8fafc;
  padding-right: 36px;
}
.modal-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 520px) {
  .modal-meta { grid-template-columns: 1fr; }
}
.modal-meta-box {
  background: #1c2636;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.88rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.modal-meta-box .lbl {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.modal-desc-h {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
}
.modal-desc-body {
  background: #0a0f16;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.9rem;
  max-height: 200px;
  overflow: auto;
}
.modal-desc-body .muted { color: var(--muted); }
.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}
.btn-wa-modal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--green);
  color: #041208;
  font-weight: 700;
  padding: 14px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.95rem;
}
.btn-wa-modal:hover { filter: brightness(1.08); text-decoration: none; }
.btn-back-modal {
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #1c2636;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}
.btn-back-modal:hover { background: #243044; }
