:root {
  --bg: #ffffff;
  --bg-subtle: #fdfbf7;
  /* Kiosk için daha sıcak alt ton */
  --text: #0a0a0a;
  --text-soft: #404040;
  --muted: #737373;
  --line: #d4d4d4;
  --line-strong: #171717;
  --star-fill-hi: #f5e6a8;
  --star-fill-mid: #d4af37;
  --star-fill-lo: #8b7318;
  --accent: #d4af37;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.1);
  --shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
  --radius: 16px;
  --radius-lg: 22px;
  --radius-card: 24px;
  --star-empty: #f0f0f0;
}

body.kiosk-body {
  --text: #1a1612;
  --text-soft: #403830;
  --muted: #706860;
  --line: rgba(0, 0, 0, 0.15);
  --bg-panel: rgba(255, 255, 255, 0.45);
}

body.kiosk-body:not(.kiosk-body--photo) {
  --text: #141414;
  --text-soft: #3a3a3a;
  --muted: #5a5a5a;
  --line: rgba(0, 0, 0, 0.12);
  --bg-panel: rgba(255, 255, 255, 0.72);
}

body.kiosk-body:not(.kiosk-body--photo) .kiosk__tagline {
  color: rgba(55, 55, 55, 0.78);
}

body.kiosk-body:not(.kiosk-body--photo) .kiosk__tagline::before,
body.kiosk-body:not(.kiosk-body--photo) .kiosk__tagline::after {
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.12), transparent);
}

/* Sayfa Geçiş Animasyonları */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translate3d(12px, 0, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes starPop {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.25);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes morphSoft {

  0%,
  100% {
    border-radius: var(--radius-lg);
  }

  40% {
    border-radius: calc(var(--radius-lg) + 8px) calc(var(--radius-lg) - 6px) calc(var(--radius-lg) + 4px) calc(var(--radius-lg) - 4px);
  }

  70% {
    border-radius: calc(var(--radius-lg) - 5px) calc(var(--radius-lg) + 7px) calc(var(--radius-lg) - 7px) calc(var(--radius-lg) + 5px);
  }
}

@keyframes glowPulse {

  0%,
  100% {
    box-shadow: var(--shadow-sm), 0 0 0 0 transparent;
  }

  50% {
    box-shadow: var(--shadow-md), 0 0 0 1px rgba(23, 23, 23, 0.12);
  }
}

@keyframes adminLift {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {

  .btn-kiosk,
  .rating-row,
  .star,
  .panel,
  .summary-card,
  .avg-card,
  .admin-toolbar,
  .admin-btn,
  .admin-votes-section,
  .today-vote,
  .panel {
    animation: none !important;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

html:has(body.admin-body),
html:has(body.admin-login-body) {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  background-color: #ffffff;
}

body.admin-body,
body.admin-login-body {
  height: auto;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  background-color: #ffffff;
}

/* ——— Kiosk atmosfer (arka plan) ——— */
/* Foto yok: düz kırık beyaz — sıcak/sarı gradient kullanılmaz */
html:has(body.kiosk-body:not(.kiosk-body--photo)),
body.kiosk-body:not(.kiosk-body--photo) {
  background-color: #f5f5f4;
}

/* Foto var: kenarlarda koyu letterbox */
html:has(body.kiosk-body.kiosk-body--photo),
body.kiosk-body.kiosk-body--photo {
  background-color: #12100e;
}

body.kiosk-body {
  position: relative;
}

.kiosk-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

body.kiosk-body:not(.kiosk-body--photo) .kiosk-bg {
  background-color: #f5f5f4;
  background-image: none;
}

/* Foto modu: görsel + okunabilirlik katmanları */
.kiosk-body--photo .kiosk-bg {
  background-color: #2c2620;
  background-image:
    linear-gradient(180deg, rgba(255, 252, 246, 0.2) 0%, rgba(255, 255, 255, 0) 35%, rgba(0, 0, 0, 0.15) 75%, rgba(0, 0, 0, 0.45) 100%),
    radial-gradient(ellipse 95% 80% at 50% 48%, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0.35) 100%),
    var(--kiosk-bg-image);
  background-size: cover, cover, cover;
  background-position: center, center, center;
  background-repeat: no-repeat;
}

body.kiosk-body:not(.kiosk-body--photo) .kiosk {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

/* ——— Kiosk ——— */
.kiosk {
  position: relative;
  z-index: 1;
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  padding: clamp(12px, 1.8vh, 22px) clamp(18px, 3.5vw, 44px);
  overflow: hidden;
  background: transparent;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

@media (min-width: 700px) and (orientation: landscape) {
  .kiosk {
    padding: clamp(10px, 1.4vh, 18px) clamp(26px, 4.5vw, 56px);
  }

  .kiosk__main {
    align-items: stretch;
  }

  .screen.is-active {
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    column-gap: clamp(24px, 4vw, 48px);
  }

  .screen__title {
    flex: 1 1 100%;
    max-width: none;
  }

  .screen__subtitle {
    flex: 1 1 100%;
  }

  .btn-grid {
    flex: 1 1 auto;
    max-width: 920px;
  }

  .ratings-panel {
    flex: 1 1 100%;
    width: 100%;
    max-width: min(720px, 94vw);
    align-self: center;
  }

  .actions-row {
    flex: 1 1 100%;
    display: flex;
    justify-content: center;
  }
}

.kiosk__header {
  flex-shrink: 0;
  text-align: center;
  padding: clamp(10px, 1.4vh, 18px) clamp(14px, 2.5vw, 28px) clamp(12px, 1.6vh, 20px);
  margin-bottom: clamp(6px, 1vh, 14px);
  border-radius: clamp(18px, 2.5vw, 26px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(225deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 40%),
    rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(8px) saturate(1.2);
  backdrop-filter: blur(8px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.1),
    inset 0 1px 1px rgba(255, 255, 255, 0.5),
    inset 0 -1px 1px rgba(255, 255, 255, 0.05);
  transform: translateZ(0);
}

.kiosk__logo {
  display: block;
  margin: 0 auto;
  max-width: min(520px, 72vw);
  height: auto;
  max-height: clamp(96px, 22vh, 120px);
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.05));
}

.kiosk__logo--on-light {
  filter: brightness(0) saturate(100%) drop-shadow(0 2px 10px rgba(22, 22, 22, 0.08));
}

.kiosk__brand-fallback {
  font-size: clamp(1.25rem, 2.8vw, 1.75rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
}

.kiosk__tagline {
  margin: clamp(14px, 2vh, 20px) 0 0;
  font-size: clamp(11px, 1.35vw, 13px);
  font-weight: 700;
  color: rgba(64, 56, 48, 0.75);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.5vw, 14px);
}

.kiosk__tagline::before,
.kiosk__tagline::after {
  content: "";
  flex: 0 0 clamp(18px, 3.5vw, 44px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.55), transparent);
}

.kiosk__main {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.screen {
  display: none;
  width: 100%;
  max-width: 1180px;
}

.screen.is-active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.5vh, 26px);
  animation: slideIn 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

#screen-welcome.is-active {
  margin-top: -150px;
}

#screen-sources.is-active {
  margin-top: -130px;
}

.screen__title {
  margin: 0;
  text-align: center;
  font-size: clamp(1.55rem, 4.2vw, 2.35rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--text);
  text-wrap: balance;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.screen__subtitle {
  margin: 0;
  text-align: center;
  color: var(--muted);
}

.btn-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: clamp(12px, 2vw, 18px);
  width: 100%;
  max-width: 700px;
}

.btn-grid--sources {
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  gap: clamp(14px, 2.2vw, 22px);
  max-width: min(480px, 92vw);
  margin-top:10px;
}

.btn-kiosk {
  appearance: none;
  cursor: pointer;
  font-size: clamp(1.1rem, 1.95vw, 1.3rem);
  font-weight: 800;
  padding: clamp(20px, 2.8vh, 28px) clamp(18px, 2.6vw, 26px);
  border-radius: var(--radius-lg);
  color: #000;
  background: rgb(255 255 255 / 60%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-kiosk:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.25) 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.btn-kiosk:active {
  transform: translateY(4px);
  box-shadow: none;
}



.ratings-panel {
  width: 100%;
  max-width: min(720px, 100%);
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2vh, 18px);
}

.rating-row {
  display: grid;
  grid-template-columns: minmax(9rem, 13rem) minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(28px, 7vw, 56px);
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-card);
  padding: clamp(14px, 2.2vh, 22px) clamp(16px, 2.4vw, 24px);
  border: 1px solid rgba(255, 255, 255, 1);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.rating-row__label {
  margin: 0;
  font-weight: 900;
  font-size: clamp(1.15rem, 3vw, 1.6rem);
  color: #000;
  letter-spacing: -0.03em;
}

.stars {
  display: flex;
  gap: clamp(6px, 1.2vw, 10px);
}

.star {
  flex-shrink: 0;
  width: clamp(45px, 8vw, 60px);
  height: clamp(45px, 8vw, 60px);
  border: 1px solid rgba(0, 0, 0, 1);
  border-radius: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.5);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.star__svg {
  width: 60%;
  height: 60%;
  fill: rgba(0, 0, 0, 0.2);
}

.star.is-on {
  background: #d4af37;
  transform: scale(1.08);
  border-color: #f5e6a8;
  box-shadow:
    0 8px 20px rgba(212, 175, 55, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.star.is-on .star__svg {
  fill: #ffffff;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.6));
}

.star.just-clicked {
  animation: starPop 0.4s ease;
}

.actions-row {
  margin-top: clamp(10px, 1.5vh, 16px);
}

.btn-submit {
  min-width: 280px;
  background: linear-gradient(135deg, #2a241c 0%, #12100e 100%);
  color: #fffaf0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  padding: 20px;
  font-size: 1.4rem;
}

.btn-submit:active {
  transform: translateY(6px);
  box-shadow: none;
}

.btn-submit:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-back {
  position: absolute;
  top: 18px;
  left: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 12px 20px;
  border-radius: 14px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  z-index: 10;
}

.btn-back:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-back[hidden] {
  display: none !important;
}



.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--bg);
  padding: 16px 24px;
  border-radius: 14px;
  font-weight: 600;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  z-index: 100;
}

.toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.thank-you {
  font-size: clamp(1.45rem, 4.5vw, 2.1rem);
  font-weight: 800;
  text-align: center;
  color: var(--text);
  animation: slideIn 0.8s ease;
  text-wrap: balance;
  padding: clamp(16px, 3vh, 28px) clamp(18px, 4vw, 36px);
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.45) 0%, rgba(240, 235, 225, 0.3) 100%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* ——— Admin paneli ——— */
.admin-body {
  min-height: 100vh;
  margin: 0;
  background-color: #ffffff;
  color: var(--text);
  position: relative;
}

.admin-body .kiosk-bg,
.admin-login-body .kiosk-bg {
  display: none !important;
}

/* Ensure admin content is readable on background */
.admin-wrap {
  position: relative;
  z-index: 1;
}

.admin-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 20px 44px;
}

@media (min-width: 1024px) {
  .admin-wrap {
    max-width: min(1320px, calc(100vw - 48px));
    padding-left: clamp(22px, 2.5vw, 40px);
    padding-right: clamp(22px, 2.5vw, 40px);
  }
}

.admin-header {
  margin-bottom: 26px;
  padding: 20px 24px;
  background: #ffffff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.admin-header h1 {
  margin: 0 0 8px;
  font-size: 1.72rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.admin-header p {
  margin: 0;
  color: var(--muted);
}

.summary-card {
  background: #ffffff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 26px;
  border: 1px solid var(--line);
}

.summary-card__meta {
  margin: 12px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.summary-card__meta--stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.summary-card__meta-line {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
  line-height: 1.4;
}

.summary-card__label {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0 0 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.summary-card__value {
  font-size: 2.65rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.03em;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 22px;
  align-items: start;
}

@media (min-width: 1024px) {
  .admin-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
}

.panel {
  background: #ffffff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}

.panel h2 {
  margin: 0 0 16px;
  font-size: 1.12rem;
  font-weight: 700;
}

.chart-wrap {
  position: relative;
  height: 280px;
}

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

.avg-card {
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}

.avg-card__label {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0 0 6px;
  font-weight: 600;
}

.avg-card__value {
  font-size: 1.78rem;
  font-weight: 800;
  margin: 0;
}

.avg-card__max {
  font-size: 0.78rem;
  color: var(--muted);
}

.admin-empty {
  color: var(--muted);
  font-size: 0.94rem;
  margin: 0;
}

.admin-bar-chart {
  height: 300px;
}

.link-kiosk {
  display: inline-block;
  margin-top: 14px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--line);
  padding-bottom: 2px;
}

.admin-toolbar {
  background: #ffffff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}

.admin-toolbar__title {
  margin: 0 0 14px;
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-filters-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 18px;
}

.admin-filters-row label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}

.admin-select,
.admin-date {
  padding: 10px 12px;
  font-size: 1rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
}

.admin-select:focus,
.admin-date:focus {
  outline: none;
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.admin-btn {
  padding: 10px 18px;
  font-size: 1rem;
  font-weight: 700;
  border: 2px solid var(--line-strong);
  border-radius: 10px;
  cursor: pointer;
  background: var(--bg);
  color: var(--text);
}

.admin-btn:hover {
  background: var(--bg-subtle);
  border-color: #000;
}

.summary-card__period {
  margin: 14px 0 0;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--muted);
}

.admin-toolbar-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(252px, 340px);
  gap: 22px;
  align-items: start;
  margin-bottom: 26px;
}

.admin-toolbar-summary .admin-toolbar,
.admin-toolbar-summary .summary-card {
  margin-bottom: 0;
}

.summary-card--aside {
  padding: 22px 24px;
}

@media (max-width: 920px) {
  .admin-toolbar-summary {
    grid-template-columns: 1fr;
  }
}

.admin-header__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px 16px;
}

.admin-header__title-col {
  justify-self: start;
  min-width: 0;
}

.admin-header__logo-col {
  justify-self: center;
  display: flex;
  align-items: center;
}

.admin-header__logo {
  display: block;
  max-height: clamp(48px, 8vh, 76px);
  width: auto;
  max-width: min(240px, 36vw);
  object-fit: contain;
  scale: 1.5;
}

.admin-header__actions-col {
  justify-self: end;
  display: flex;
  gap: 10px;
}

.admin-nav-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  padding: 8px 14px;
  border: 2px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg);
}

.admin-nav-link:hover {
  background: var(--bg-subtle);
}

.admin-logout {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-subtle);
}

.admin-login-body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background-color: #ffffff;
  position: relative;
  overflow: hidden;
}

.admin-login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  padding: 28px 26px 32px;
  box-shadow: var(--shadow-xl);
}

.admin-login-card__logo-wrap {
  text-align: center;
  margin-bottom: 22px;
}

.admin-login-card__logo {
  max-height: 72px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.admin-login-card h1 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 800;
  text-align: center;
}

.admin-login-card>p {
  margin: 0 0 22px;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.admin-login-error {
  background: var(--bg-subtle);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 16px;
  font-size: 0.88rem;
}

.admin-login-card label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
}

.admin-login-card input {
  width: 100%;
  padding: 11px 12px;
  font-size: 1rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  margin-bottom: 14px;
}

.admin-login-card button[type='submit'] {
  width: 100%;
  margin-top: 8px;
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 700;
  border: 2px solid var(--line-strong);
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  cursor: pointer;
}

.admin-login-back {
  display: block;
  text-align: center;
  margin-top: 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

@media (max-width: 768px) {
  .admin-header__top {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .admin-header__title-col {
    order: 2;
  }

  .admin-header__logo-col {
    order: 1;
  }

  .admin-header__actions-col {
    order: 3;
  }
}

/* ——— Admin Oy Listesi (votes.php) — JS article.today-vote kartları ——— */

.admin-votes-toolbar {
  margin-bottom: 28px;
}

.admin-votes-section {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-radius: var(--radius-lg);
  padding: 26px 28px 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}

.admin-votes-section::before {
  content: '';
  position: absolute;
  inset: -40% 40% auto -20%;
  height: 55%;
  background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.12), transparent 70%);
  pointer-events: none;
}

.admin-today-votes__head {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px 20px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.admin-today-votes__title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.admin-today-votes__date {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 700;
  text-align: right;
  max-width: min(100%, 420px);
  line-height: 1.45;
}

/* Oy kartları: responsive grid */
.admin-today-votes__list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 16px 18px;
  width: 100%;
}

.today-vote {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.2s ease;
  overflow: hidden;
}

.today-vote:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--accent);
}

.today-vote:not(.today-vote--returning) {
  border-left: 4px solid var(--accent);
}

.today-vote--returning {
  border-left: 4px solid #9a948a;
}

.today-vote>time {
  position: absolute;
  top: 20px;
  right: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.today-vote__main {
  min-width: 0;
}

.today-vote__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.today-vote__badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  background: #fef9e7;
  color: #8b7318;
  border: 1px solid #f5e6a8;
}

.today-vote__badge--returning {
  background: #f5f5f5;
  color: #666;
  border-color: #e5e5e5;
}

.today-vote__source {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.35;
}

.today-vote__scores {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

@media (min-width: 520px) {
  .today-vote__scores {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.today-vote__score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #f5f5f5;
}

.today-vote__score:last-child {
  border-bottom: none;
}

.today-vote__score-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-soft);
  flex: 1;
}

.today-vote__score-val {
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent);
  min-width: 1.2rem;
  text-align: right;
}

.today-vote__meter {
  width: 60px;
  height: 6px;
  border-radius: 10px;
  background: #eee;
  position: relative;
  overflow: hidden;
}

.today-vote__meter::after {
  content: '';
  display: block;
  height: 100%;
  width: calc(var(--score, 0) * 20%);
  min-width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--star-fill-lo), var(--star-fill-mid) 55%, var(--star-fill-hi));
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.35);
}

/* Sayfalama */
.today-votes-pager {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.today-votes-pager__tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.today-votes-pager__btn {
  min-width: 2.5rem;
  padding: 9px 14px;
  font-size: 0.92rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.today-votes-pager__btn:hover {
  background: var(--bg-subtle);
  border-color: var(--line-strong);
}

.today-votes-pager__btn--active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
  box-shadow: var(--shadow-sm);
}

.today-votes-pager__btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.admin-today-votes__empty,
.admin-today-votes__error {
  text-align: center;
  padding: 36px 22px;
  font-size: 1.02rem;
  font-weight: 600;
  background: rgba(253, 251, 247, 0.9);
  border-radius: var(--radius);
  margin-top: 8px;
  border: 1px dashed var(--line);
}

.admin-today-votes__error {
  color: #b42318;
  border: 1px solid rgba(180, 35, 24, 0.35);
  background: linear-gradient(180deg, #fff5f5 0%, #fdecec 100%);
}

@media (max-width: 480px) {
  .admin-votes-section {
    padding: 20px 16px 22px;
  }

  .admin-today-votes__list {
    grid-template-columns: 1fr;
  }

  .today-vote {
    grid-template-columns: 1fr;
  }

  .today-vote>time {
    flex-direction: row;
    width: fit-content;
    min-width: unset;
  }
}

@media (prefers-reduced-motion: reduce) {

  .today-vote,
  .admin-votes-section {
    animation: none !important;
  }

  .today-vote:hover {
    transform: none;
  }
}