* {
  box-sizing: border-box;
}

:root {
  --bg: #08101d;
  --panel: rgba(18, 29, 48, 0.96);
  --panel-soft: rgba(255, 255, 255, 0.04);
  --line: rgba(224, 187, 83, 0.18);
  --gold: #e0bb53;
  --text: #f3efe6;
  --muted: #b5bfd0;
  --success: #9fe3a4;
  --danger: #ff9f8c;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(224, 187, 83, 0.10), transparent 26%),
    linear-gradient(180deg, #08101d 0%, #0b1526 100%);
  color: var(--text);
}

.page-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.48), transparent 90%);
  pointer-events: none;
}

a {
  color: inherit;
}

.topbar,
.page {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.topbar {
  margin: 28px auto 24px;
}

.top-banner {
  width: 100%;
  height: clamp(112px, 14vw, 170px);
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 28px;
  border: 1px solid rgba(224, 187, 83, 0.16);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.34);
}

.page {
  max-width: 1180px;
  padding: 0 18px 48px;
}

.page-top-actions {
  margin-bottom: 18px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(224, 187, 83, 0.24);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.back-link::before {
  content: "←";
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--gold);
  border-color: rgba(224, 187, 83, 0.48);
  background: rgba(224, 187, 83, 0.10);
  transform: translateY(-1px);
}

.event-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 24px;
  align-items: stretch;
}

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

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.34);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.event-hero img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.event-hero-poster-only img {
  aspect-ratio: auto;
  max-height: none;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.02);
}

.event-body,
.form-body {
  padding: 26px;
}

.event-body {
  flex: 1;
}

.form-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 2.8vw, 2.45rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  max-width: 18ch;
  text-wrap: balance;
}

.summary {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.facts span {
  display: inline-flex;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.description {
  margin: 0;
  color: var(--text);
  line-height: 1.8;
}

.registration-info-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
}

.registration-info-item {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(224, 187, 83, 0.16);
  background: linear-gradient(180deg, rgba(20, 31, 49, 0.96), rgba(13, 23, 39, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.registration-info-list + .registration-info-list {
  margin-top: 14px;
}

.registration-info-item-action {
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.registration-info-item-action:hover,
.registration-info-item-action:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(224, 187, 83, 0.3);
  background: linear-gradient(180deg, rgba(25, 38, 59, 0.98), rgba(15, 27, 46, 0.98));
}

.registration-info-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(224, 187, 83, 0.12);
  border: 1px solid rgba(224, 187, 83, 0.18);
}

.registration-info-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(74%) sepia(48%) saturate(486%) hue-rotate(3deg) brightness(99%) contrast(91%);
}

.registration-info-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.registration-info-label {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.registration-info-value {
  color: var(--text);
  line-height: 1.45;
  word-break: break-word;
}

.registration-info-value-strong {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

.registration-info-subvalue {
  color: var(--muted);
  line-height: 1.5;
  word-break: break-word;
}

.registration-info-list-actions {
  margin-top: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.registration-info-list-actions .registration-info-item {
  height: 100%;
}

.registration-info-list-actions .registration-info-copy {
  align-content: center;
}

.registration-info-list-actions .registration-info-label {
  color: #ffffff;
}

.registration-address {
  margin-top: 14px;
}

.status-card {
  margin-top: 20px;
  padding: 18px;
  border-radius: 20px;
  background: var(--panel-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.action-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.registration-form-title {
  margin: 0 0 16px;
  font-size: 1.55rem;
  line-height: 1.2;
}

.registration-form-status {
  margin-top: 0;
  margin-bottom: 18px;
}

.poster-action-wrap {
  padding: 20px 26px 24px;
  border-top: 1px solid rgba(224, 187, 83, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    rgba(255, 255, 255, 0.02);
}

.poster-action-grid {
  margin-top: 0;
  gap: 12px;
}

.action-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(224, 187, 83, 0.25);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.action-chip:hover,
.action-chip:focus-visible {
  color: var(--gold);
  border-color: rgba(224, 187, 83, 0.46);
  background: rgba(224, 187, 83, 0.08);
  transform: translateY(-1px);
}

.poster-action-chip {
  min-width: 178px;
  justify-content: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(18, 29, 48, 0.96), rgba(12, 22, 38, 0.96));
  border-color: rgba(224, 187, 83, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.poster-action-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(224, 187, 83, 0.12);
  color: var(--gold);
  flex: 0 0 auto;
}

.poster-action-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.poster-action-label {
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.action-chip-icon {
  width: 48px;
  height: 48px;
  padding: 0;
  position: relative;
}

.action-chip-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.action-chip-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(4px);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(8, 16, 29, 0.96);
  border: 1px solid rgba(224, 187, 83, 0.22);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  transition: opacity 0.14s ease, transform 0.14s ease;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

.action-chip-icon:hover::after,
.action-chip-icon:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.status-card strong {
  display: block;
  margin-bottom: 8px;
}

.program-panel {
  width: min(960px, 100%);
  margin: 0 auto;
  padding: clamp(22px, 3vw, 34px);
  gap: 22px;
  border-radius: 24px;
}

.program-page .topbar {
  width: min(960px, 100%);
}

.program-page .top-banner {
  border-radius: 24px;
}

.program-head {
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
}

.program-head h1 {
  max-width: 24ch;
  margin-bottom: 0;
}

.program-presenters {
  margin: -2px 0 2px;
  color: var(--muted);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  font-weight: 700;
  line-height: 1.45;
}

.program-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.program-meta span {
  display: inline-flex;
  padding: 8px 12px;
  border: 1px solid rgba(224, 187, 83, 0.16);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.92rem;
}

.program-list {
  display: grid;
  gap: 10px;
}

.program-row {
  display: grid;
  grid-template-columns: minmax(112px, 0.22fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(224, 187, 83, 0.12);
  background: linear-gradient(180deg, rgba(18, 29, 48, 0.82), rgba(12, 22, 38, 0.86));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.program-time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(224, 187, 83, 0.16);
  background: rgba(224, 187, 83, 0.08);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  text-align: center;
}

.program-time-empty {
  color: rgba(255, 255, 255, 0.62);
}

.program-copy {
  display: grid;
  align-content: center;
  gap: 6px;
  min-width: 0;
}

.program-copy h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1rem, 1.45vw, 1.15rem);
  line-height: 1.38;
  font-weight: 700;
}

.program-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.program-empty {
  margin-top: 0;
}

.program-footer {
  width: min(960px, 100%);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.program-footer .footer-grid {
  grid-template-columns: 1fr;
  justify-items: center;
}

.program-footer .footer-col-main {
  max-width: 720px;
}

.program-footer .footer-col-right {
  justify-content: center;
}

.event-shell-poster {
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
}

.flash {
  padding: 14px 16px;
  border-radius: 16px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.flash-success {
  background: rgba(159, 227, 164, 0.10);
  color: var(--success);
}

.flash-error {
  background: rgba(255, 159, 140, 0.10);
  color: var(--danger);
}

.custom-popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.custom-popup.open {
  display: flex;
}

.custom-popup-card {
  width: min(92vw, 440px);
  background: #111827;
  border: 1px solid rgba(224, 187, 83, 0.22);
  border-radius: 18px;
  padding: 22px;
  color: #f3f4f6;
  text-align: center;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.4);
}

.custom-popup-text {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.55;
}

.custom-popup-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.custom-popup-btn {
  border: 0;
  border-radius: 999px;
  background: #0f766e;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 11px 18px;
  cursor: pointer;
}

.custom-popup-btn-secondary {
  background: rgba(224, 187, 83, 0.16);
  color: var(--gold);
  border: 1px solid rgba(224, 187, 83, 0.35);
}

.field {
  margin-bottom: 16px;
}

.field label,
.field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 1rem;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 1rem;
}

.attendance-choice-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.attendance-choice {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin: 0;
  cursor: pointer;
}

.attendance-choice input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.attendance-choice span {
  width: 100%;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.96rem;
  font-weight: 700;
  text-align: center;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.attendance-choice input:checked + span {
  border-color: rgba(224, 187, 83, 0.62);
  background: rgba(224, 187, 83, 0.16);
  color: #ffffff;
}

.attendance-choice input:focus-visible + span {
  outline: 2px solid rgba(224, 187, 83, 0.62);
  outline-offset: 3px;
}

.attendance-choice input:disabled + span {
  cursor: default;
  opacity: 0.58;
}

.grid-2 {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
}

.hidden-input {
  display: none !important;
}

.kvkk-box {
  margin-top: 6px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  padding: 14px 16px;
  font-size: 12px;
  color: #d1d5db;
  line-height: 1.65;
}

.kvkk-box p {
  margin: 0 0 10px;
}

.kvkk-box p:last-of-type {
  margin-bottom: 0;
}

.kvkk-title {
  font-size: 13px;
  font-weight: 700;
  color: #f3f4f6;
  margin: 0 0 8px;
}

.kvkk-check {
  margin-top: 12px;
  margin-bottom: 0;
}

.checkbox-field {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.65;
}

.checkbox-field input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(224, 187, 83, 0.35);
  background: rgba(224, 187, 83, 0.14);
  color: var(--gold);
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.18s ease, transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.button-submit:not(:disabled):hover,
.button-submit:not(:disabled):focus-visible {
  transform: translateY(-1px);
  background: rgba(224, 187, 83, 0.22);
}

.button-submit:disabled,
.button-submit.is-disabled {
  opacity: 0.48;
  cursor: not-allowed;
  filter: grayscale(0.1);
}

.helper {
  margin-top: auto;
  padding-top: 14px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.site-footer {
  margin-top: 34px;
  padding-top: 12px;
}

.footer-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(224, 187, 83, 0.45), rgba(255, 255, 255, 0.12), rgba(224, 187, 83, 0.45));
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding-top: 22px;
}

.footer-col-main {
  display: grid;
  gap: 6px;
  max-width: 860px;
}

.footer-col-right {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-link,
.footer-address,
.footer-phone {
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.55;
  text-decoration: none;
  margin: 0;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.footer-link:hover {
  color: var(--gold);
}

.footer-phone {
  color: var(--muted);
}

.social-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(224, 187, 83, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.social-icon:hover,
.social-icon:focus-visible {
  color: var(--gold);
  border-color: rgba(224, 187, 83, 0.48);
  background: rgba(224, 187, 83, 0.12);
  transform: translateY(-1px);
}

.social-icon svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.social-tooltip {
  position: relative;
}

.social-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(4px);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(8, 16, 29, 0.96);
  border: 1px solid rgba(224, 187, 83, 0.22);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  transition: opacity 0.14s ease, transform 0.14s ease;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

.social-tooltip:hover::after,
.social-tooltip:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

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

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

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

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

  .footer-col-right {
    justify-content: flex-start;
  }

  .poster-action-chip {
    width: 100%;
    min-width: 0;
  }

  .program-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .program-time {
    justify-content: flex-start;
    width: 100%;
  }
}
