:root {
  --dhl-yellow: #ffcc00;
  --dhl-red: #d40511;
  --dhl-red-dark: #b0040e;
  --dhl-black: #1a1a1a;
  --dhl-warm-bg: #fff6e0;
}

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

html,
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body.page-warm {
  margin: 0;
  background: linear-gradient(160deg, #fff9e8 0%, #ffe8b8 45%, #ffd98a 100%);
  background-color: var(--dhl-warm-bg);
  min-height: 100vh;
  color: var(--dhl-black);
}

.hidden {
  display: none !important;
}

/* Small utility helpers (previously Tailwind) */
.list-disc {
  list-style-type: disc;
}

.pl-5 {
  padding-left: 1.25rem;
}

.space-y-1 > * + * {
  margin-top: 0.25rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

/* Landing */
body.page-warm.landing-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.landing-shell {
  width: 100%;
  max-width: 44rem;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(255, 204, 0, 0.4);
  border-top: 4px solid var(--dhl-yellow);
  box-shadow: 0 8px 32px rgba(26, 26, 26, 0.1);
  padding: 2rem;
}

@media (min-width: 640px) {
  .landing-shell {
    padding: 2.5rem 2.75rem;
  }
}

.landing-hero {
  text-align: center;
  margin-bottom: 2rem;
}

.landing-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dhl-red);
}

.landing-title {
  font-size: 1.625rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  line-height: 1.25;
}

@media (min-width: 640px) {
  .landing-title {
    font-size: 2rem;
  }
}

.landing-lead {
  margin: 0 auto;
  max-width: 32rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #475569;
}

.landing-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(255, 204, 0, 0.4);
  box-shadow: 0 8px 32px rgba(26, 26, 26, 0.1);
  border-top: 4px solid var(--dhl-yellow);
}

.city-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  border-radius: 0.75rem;
  padding: 1.5rem 1.25rem;
  text-decoration: none;
  color: var(--dhl-black);
  border: 2px solid #f0e4c8;
  background: #fffbf0;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.city-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.08);
}

.city-card-name {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.city-card-meta {
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
}

.city-card-venue {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #64748b;
}

.city-card-cta {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dhl-red);
}

.city-card-izmir:hover {
  border-color: var(--dhl-yellow);
  background: #fff9e0;
}

.city-card-istanbul:hover {
  border-color: var(--dhl-red);
  background: #fff5f5;
}

.city-card-istanbul:hover .city-card-cta {
  color: var(--dhl-red-dark);
}

.city-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  padding: 2.5rem 2rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid #f0e4c8;
  background: #fffbf0;
  color: var(--dhl-black);
}

.city-btn:hover {
  border-color: var(--dhl-yellow);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(212, 5, 17, 0.15);
}

.city-btn-izmir:hover {
  background: #ffcc00;
}

.city-btn-istanbul:hover {
  background: var(--dhl-red);
  color: #fff;
  border-color: var(--dhl-red);
}

.city-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .city-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.landing-trust {
  margin-top: 1.75rem;
  padding: 1rem 1.125rem;
  border-radius: 0.5rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.landing-trust-list {
  margin: 0;
  padding: 0 0 0 1.125rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #475569;
}

.landing-trust-list li + li {
  margin-top: 0.35rem;
}

.landing-footer {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #f0e4c8;
  text-align: center;
}

.landing-footer p {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #94a3b8;
}

/* Register pages */
.city-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(255, 204, 0, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(212, 5, 17, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.city-page > * {
  position: relative;
  z-index: 1;
}

.card {
  background: #ffffff;
  box-shadow: 0 8px 32px rgba(26, 26, 26, 0.1), 0 0 0 1px rgba(255, 204, 0, 0.35);
  border-radius: 12px;
  border: 1px solid rgba(255, 204, 0, 0.4);
  overflow: hidden;
}

.city-main {
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 1rem 2rem;
}

@media (min-width: 640px) {
  .city-main {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.card--flush {
  padding: 0;
}

.banner-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.card-content {
  border-top: 4px solid var(--dhl-yellow);
  padding: 1.5rem;
}

@media (min-width: 640px) {
  .card-content {
    padding: 2rem;
  }
}

@media (min-width: 1024px) {
  .card-content {
    padding: 2.5rem;
  }
}

.section-spaced {
  margin-bottom: 1.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-grid-full {
    grid-column: span 2;
  }
}

.form-fade {
  opacity: 0;
}

.city-footer {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.625;
  padding: 0 0.5rem;
}

.field {
  width: 100%;
  border-radius: 0.5rem;
  border: 2px solid #e8dcc0;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  background: #fff;
  color: var(--dhl-black);
}

.field::placeholder {
  color: #9a8f7a;
}

.field:hover {
  border-color: var(--dhl-yellow);
}

.field:focus {
  outline: none;
  border-color: var(--dhl-red);
  box-shadow: 0 0 0 4px rgba(255, 204, 0, 0.35);
}

.label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
}

.hint {
  font-size: 0.75rem;
  margin-top: 0.25rem;
  color: #5c5347;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
  border: none;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  background: var(--dhl-red);
  box-shadow: 0 4px 14px rgba(212, 5, 17, 0.35);
  transition: all 0.3s ease;
}

.btn:hover {
  background: var(--dhl-red-dark);
  transform: translateY(-2px);
}

.field-error {
  color: var(--dhl-red);
  font-size: 0.875rem;
  margin-top: 0.25rem;
  font-weight: 500;
}

.section-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--dhl-yellow);
  display: inline-block;
}

.intro-text,
.intro-sign {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: #333;
}

.intro-sign {
  font-style: italic;
}

.required-mark {
  color: var(--dhl-red);
}

.form-divider {
  background: linear-gradient(90deg, var(--dhl-yellow), var(--dhl-red), var(--dhl-yellow));
  height: 2px;
  opacity: 0.5;
  margin: 1.5rem 0;
}

.form-error-global {
  background: var(--dhl-red);
  color: #fff;
  margin-bottom: 1rem;
  border-radius: 0.375rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.success-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.success-modal.open {
  display: flex;
}

.success-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.success-modal.open .success-backdrop {
  opacity: 1;
}

.success-card {
  position: relative;
  width: 100%;
  max-width: 28rem;
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  padding: 1.5rem;
  border: 2px solid var(--dhl-yellow);
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.success-modal.open .success-card {
  transform: scale(1);
  opacity: 1;
}

.success-card-body {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.success-icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dhl-red);
}

.success-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: #fff;
}

.success-content {
  flex: 1;
}

.success-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--dhl-black);
}

.success-text {
  font-size: 0.875rem;
  color: #333;
}

.success-text p {
  margin: 0 0 0.5rem;
}

.success-text p:last-child {
  padding-top: 0.5rem;
  margin-bottom: 0;
}

.success-actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-end;
}

.kvkk-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 0.5rem;
  background: #fffbf0;
  border: 2px solid #f0e4c8;
}

.kvkk-row input[type="checkbox"] {
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--dhl-red);
  cursor: pointer;
}

.kvkk-label {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #333;
}

.kvkk-link {
  font-weight: 600;
  text-decoration: underline;
  margin-left: 0.25rem;
  color: var(--dhl-red);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.kvkk-text-panel {
  margin-top: 0.75rem;
  padding: 0 1rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  line-height: 1.6;
  overflow-y: auto;
  max-height: 0;
  opacity: 0;
  background: #fff;
  border: 2px solid transparent;
  transition: max-height 0.4s ease, opacity 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
}

.kvkk-text-panel.open {
  max-height: min(70vh, 520px);
  opacity: 1;
  border-color: #f0e4c8;
  padding: 1rem;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.5s ease-out forwards;
}

/* Report page */
body.rapor-page {
  margin: 0;
}

body.rapor-login {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.rapor-login-card {
  width: 100%;
  max-width: 24rem;
  background: #fff;
  border-radius: 1rem;
  border: 2px solid #ffcc00;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
}

.rapor-wrap {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

.rapor-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: #1e293b;
}

.rapor-subtitle {
  margin: 0;
  color: #475569;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

@media (min-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat-card {
  background: #fff;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  padding: 1rem;
  text-align: center;
}

.stat-card.primary {
  border: 2px solid #ffcc00;
}

.stat-label {
  font-size: 0.875rem;
  color: #475569;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
}

.panel {
  background: #fff;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.search-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 1024px) {
  .search-form {
    flex-direction: row;
    align-items: flex-end;
  }
}

.field-grow {
  flex: 1;
}

.field-city {
  width: 100%;
}

@media (min-width: 1024px) {
  .field-city {
    width: 12rem;
  }
}

input[type="text"],
input[type="password"],
select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
}

input:focus,
select:focus {
  outline: none;
  border-color: #d40511;
  box-shadow: 0 0 0 2px rgba(255, 204, 0, 0.45);
}

.btn-red {
  background: #d40511;
}

.btn-green {
  background: #059669;
}

.btn-outline {
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #334155;
  box-shadow: none;
}

.btn-sm {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}

.table-wrap {
  background: #fff;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 56rem;
}

thead {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

th,
td {
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: top;
}

tbody tr {
  border-bottom: 1px solid #e2e8f0;
}

.text-muted {
  color: #64748b;
  font-size: 0.875rem;
}

.text-xs {
  font-size: 0.75rem;
  color: #64748b;
}

.text-strong {
  font-weight: 600;
}

.empty-cell {
  text-align: center;
  padding: 3rem 1rem;
  color: #64748b;
}

.badge {
  display: inline-flex;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-izmir {
  background: #ffcc00;
  color: #1a1a1a;
}

.badge-istanbul {
  background: #d40511;
  color: #fff;
}

.mobile-cards {
  display: none;
}

@media (max-width: 768px) {
  .table-responsive {
    display: none;
  }
  .mobile-cards {
    display: block;
  }
}

@media (min-width: 769px) {
  .table-responsive {
    display: block;
  }
}

.mobile-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.mobile-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.mobile-card-actions {
  display: flex;
  gap: 0.5rem;
}

.pagination {
  margin-top: 2rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1rem;
}

.pagination-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.page-link {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #cbd5e1;
  text-decoration: none;
  color: #334155;
}

.page-link.active {
  background: #d40511;
  border-color: #d40511;
  color: #fff;
}

.pagination-info {
  text-align: center;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: #475569;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.modal-card {
  position: relative;
  background: #fff;
  width: 100%;
  max-width: 32rem;
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  padding: 1.5rem;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.modal-close {
  border: none;
  background: none;
  font-size: 1.5rem;
  color: #64748b;
  cursor: pointer;
}

.detail-grid {
  display: grid;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.alert-error {
  margin-bottom: 1rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 0.875rem;
}
