:root {
  --bg: #09101b;
  --panel: #101a29;
  --panel-2: #142235;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f4f7fb;
  --muted: #9eacbe;
  --blue: #2f7df6;
  --cyan: #27d6c3;
  --gold: #f1b94a;
  --red: #ed5a5a;
  --green: #55c982;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(rgba(9, 16, 27, 0.86), rgba(9, 16, 27, 0.94)),
    url("https://images.unsplash.com/photo-1515896769750-31548aa180ed?auto=format&fit=crop&w=1800&q=80") center/cover fixed;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.modal-open {
  overflow: hidden;
}

img,
video,
canvas {
  max-width: 100%;
}

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

button {
  border: 0;
  cursor: pointer;
}

button,
input,
textarea,
select {
  min-width: 0;
}

.shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 28px;
  background: rgba(8, 14, 23, 0.86);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.creator-credit {
  margin: auto 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

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

.brand-logo {
  width: 66px;
  height: 66px;
  flex: 0 0 66px;
  border-radius: 50%;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 24px rgba(47, 125, 246, 0.24);
}

.eyebrow,
.small-label {
  margin: 0 0 6px;
  color: var(--cyan);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  font-size: 1.12rem;
  line-height: 1.15;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
}

.nav {
  display: grid;
  gap: 8px;
}

.nav-item,
.primary,
.secondary,
.tab,
.segmented button,
.icon-btn {
  min-height: 42px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text);
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.nav-item {
  justify-content: flex-start;
  padding: 0 14px;
  background: transparent;
  color: var(--muted);
}

.nav-item:hover,
.nav-item.active {
  background: rgba(47, 125, 246, 0.16);
  color: var(--text);
}

.nav-item svg,
.primary svg,
.secondary svg,
.icon-btn svg {
  width: 18px;
  height: 18px;
}

.sidebar-card {
  margin-top: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.sidebar-card strong,
.sidebar-card span {
  display: block;
  font-size: 0.9rem;
}

.sidebar-card span {
  margin-top: 6px;
  color: var(--muted);
}

.main {
  min-width: 0;
  padding: 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.session {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.session-name {
  max-width: min(360px, 46vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.92rem;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.hero {
  min-height: 380px;
  display: flex;
  align-items: end;
  padding: min(7vw, 64px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(7, 12, 20, 0.9), rgba(7, 12, 20, 0.28)),
    url("/media/police_group.webp") center/cover;
  box-shadow: var(--shadow);
}

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

.hero-copy h3 {
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 0.98;
  margin-bottom: 18px;
}

.hero-copy p:not(.eyebrow) {
  max-width: 620px;
  color: #d7dfeb;
  font-size: 1.04rem;
  line-height: 1.7;
}

.hero-actions,
.section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.section-head {
  justify-content: space-between;
  margin-bottom: 16px;
}

.primary {
  padding: 0 16px;
  background: linear-gradient(135deg, var(--blue), #1658bc);
  font-weight: 800;
}

.primary:hover,
.secondary:hover,
.icon-btn:hover {
  transform: translateY(-1px);
}

.secondary,
.icon-btn {
  padding: 0 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
}

.wide {
  width: 100%;
}

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

.stats-grid article,
.surface,
.auth-panel,
.list-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 26, 41, 0.88);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.stats-grid article {
  padding: 18px;
}

.stats-grid span {
  display: block;
  color: var(--gold);
  font-size: 2rem;
  font-weight: 900;
}

.stats-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.auth-layout {
  min-height: 65vh;
  place-items: center;
}

.auth-layout.active {
  display: grid;
}

.auth-panel {
  width: min(440px, 100%);
  padding: 20px;
}

.tabs,
.segmented {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.tab,
.segmented button {
  padding: 0 16px;
  background: transparent;
  color: var(--muted);
}

.tab.active,
.segmented button.active {
  background: rgba(47, 125, 246, 0.24);
  color: var(--text);
}

.form {
  display: grid;
  gap: 14px;
}

.auth-panel .form {
  margin-top: 16px;
}

.surface {
  padding: 18px;
}

.compact-form {
  grid-template-columns: minmax(220px, 1fr) 180px 150px auto;
  align-items: end;
  margin-bottom: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 10, 18, 0.76);
  color: var(--text);
  outline: none;
}

input,
select {
  height: 44px;
  padding: 0 12px;
}

textarea {
  min-height: 106px;
  resize: vertical;
  padding: 12px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(39, 214, 195, 0.8);
  box-shadow: 0 0 0 3px rgba(39, 214, 195, 0.1);
}

.check-row {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
}

.check-row input {
  width: 18px;
  height: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(241, 185, 74, 0.34);
  border-radius: 999px;
  background: rgba(241, 185, 74, 0.12);
  color: #ffe0a0;
  font-size: 0.82rem;
  font-weight: 800;
}

.list {
  display: grid;
  gap: 12px;
}

.list-item {
  padding: 16px;
}

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

.list-title {
  margin-bottom: 4px;
  font-weight: 900;
}

.meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.answer-grid {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.applicant-profile {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.applicant-profile span {
  min-width: 0;
  padding: 10px;
  border-radius: 8px;
  background: rgba(39, 214, 195, 0.08);
  color: var(--muted);
  overflow-wrap: anywhere;
}

.applicant-profile strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.answer {
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.answer strong {
  display: block;
  margin-bottom: 5px;
}

.gallery-form {
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) auto;
  align-items: end;
  margin-bottom: 16px;
}

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

.gallery-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 26, 41, 0.88);
}

.gallery-photo-button {
  display: block;
  width: 100%;
  padding: 0;
  background: transparent;
  color: inherit;
}

.gallery-photo-button img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
  transition: transform 0.18s ease, filter 0.18s ease;
}

.gallery-photo-button:hover img {
  transform: scale(1.025);
  filter: brightness(1.08);
}

.gallery-card-body {
  padding: 14px;
}

.gallery-card-body .actions {
  margin-top: 10px;
}

.actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.status-Bekliyor {
  border-color: rgba(241, 185, 74, 0.34);
  color: #ffe0a0;
}

.status-Onaylandı {
  border-color: rgba(85, 201, 130, 0.36);
  background: rgba(85, 201, 130, 0.12);
  color: #b9f3cf;
}

.status-Reddedildi {
  border-color: rgba(237, 90, 90, 0.36);
  background: rgba(237, 90, 90, 0.12);
  color: #ffc1c1;
}

.hidden {
  display: none !important;
}

.empty {
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  max-width: min(360px, calc(100vw - 32px));
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f7fb;
  color: #0b1422;
  font-weight: 800;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 88px;
  align-items: center;
  gap: 18px;
  padding: 28px;
  background: rgba(3, 7, 13, 0.9);
  backdrop-filter: blur(16px);
}

.lightbox-frame {
  min-width: 0;
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 14px;
}

.lightbox-frame img {
  display: block;
  max-width: 100%;
  max-height: min(78vh, 820px);
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: contain;
  box-shadow: var(--shadow);
}

.lightbox-frame figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--text);
}

.lightbox-frame figcaption span {
  color: var(--muted);
  font-weight: 800;
}

.lightbox-close,
.lightbox-arrow {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
}

.lightbox-prev {
  justify-self: center;
}

.lightbox-next {
  justify-self: center;
}

.lightbox-close svg,
.lightbox-arrow svg {
  width: 26px;
  height: 26px;
}

.lightbox-close:hover,
.lightbox-arrow:hover {
  background: rgba(47, 125, 246, 0.34);
  transform: translateY(-1px);
}

.success-modal {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 7, 13, 0.74);
  backdrop-filter: blur(12px);
}

.success-panel {
  width: min(420px, 100%);
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 28px;
  border: 1px solid rgba(85, 201, 130, 0.4);
  border-radius: 8px;
  background: rgba(16, 26, 41, 0.96);
  box-shadow: var(--shadow);
  text-align: center;
}

.success-check {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(85, 201, 130, 0.18);
  color: var(--green);
}

.success-check svg {
  width: 44px;
  height: 44px;
  stroke-width: 3;
}

.success-panel h3 {
  margin-bottom: 0;
}

.success-panel p {
  margin-bottom: 6px;
  color: var(--muted);
}

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

  .sidebar {
    position: static;
    height: auto;
    gap: 18px;
    padding-bottom: 18px;
  }

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

  .creator-credit {
    margin-top: 0;
  }

  .stats-grid,
  .compact-form,
  .gallery-form,
  .gallery-grid,
  .applicant-profile {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body {
    background-attachment: scroll;
  }

  .main,
  .sidebar {
    padding: 14px;
  }

  .topbar,
  .list-head {
    align-items: stretch;
    flex-direction: column;
  }

  .session,
  .section-head {
    justify-content: flex-start;
  }

  .session {
    width: 100%;
  }

  .session .secondary {
    width: 100%;
  }

  .session-name {
    max-width: 100%;
    white-space: normal;
  }

  .brand {
    align-items: flex-start;
  }

  .brand-logo {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
  }

  h1 {
    font-size: 1rem;
  }

  h2 {
    font-size: 1.55rem;
  }

  .nav,
  .stats-grid,
  .compact-form,
  .gallery-form,
  .gallery-grid,
  .applicant-profile {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 420px;
    padding: 24px;
  }

  .hero-copy h3 {
    font-size: 2.1rem;
  }

  .auth-layout {
    min-height: auto;
  }

  .auth-panel,
  .surface {
    padding: 14px;
  }

  .tabs {
    width: 100%;
  }

  .tab {
    padding: 0 10px;
  }

  .segmented {
    width: 100%;
    grid-auto-flow: row;
  }

  .segmented button {
    width: 100%;
  }

  .lightbox {
    grid-template-columns: 56px minmax(0, 1fr) 56px;
    gap: 8px;
    padding: 18px 10px;
  }

  .lightbox-frame img {
    max-height: 72vh;
  }

  .lightbox-close,
  .lightbox-arrow {
    width: 44px;
    height: 44px;
  }

  .hero-actions,
  .hero-actions button {
    width: 100%;
  }

  .creator-credit {
    font-size: 0.78rem;
  }
}

@media (max-width: 380px) {
  .main,
  .sidebar {
    padding: 10px;
  }

  .hero {
    min-height: 380px;
    padding: 18px;
  }

  .hero-copy h3 {
    font-size: 1.8rem;
  }

  .nav-item,
  .primary,
  .secondary,
  .tab,
  .segmented button,
  .icon-btn {
    min-height: 40px;
  }
}
