:root {
  --orange: #F58220;
  --orange-light: #FFB373;
  /* Slightly lighter orange for accents */
  --orange-glow: rgba(245, 130, 32, 0.4);
  --navy: #051A53;
  --navy-light: #0A2E8D;
  /* Lighter navy for gradients */
  --bg-color: #F0F4F8;
  /* Soft blueish white */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.5);
  --text-dark: #0F172A;
  --text-gray: #64748B;
  --transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,700;1,700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Outfit', sans-serif;
}

body {
  background: var(--bg-color);
  color: var(--text-dark);
  min-height: 100vh;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* --- Ambient Floating Blobs Background --- */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.45;
  animation: float 25s infinite alternate ease-in-out;
}

.blob.orange {
  background: var(--orange);
  width: 600px;
  height: 600px;
  top: -200px;
  right: -150px;
}

.blob.navy {
  background: #4299E1;
  width: 500px;
  height: 500px;
  bottom: -100px;
  left: -200px;
  animation-delay: 5s;
}

.blob.orange-light {
  background: #FCD34D;
  width: 400px;
  height: 350px;
  top: 40%;
  left: 40%;
  animation-delay: 2s;
  opacity: 0.2;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(-150px, 80px) scale(1.15);
  }
}

/* --- Elegant Top Bar --- */
.app-header {
  background: white;
  padding: 1rem 5%;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 15px rgba(5, 26, 83, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.brand-logo {
  height: 80px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(5, 26, 83, 0.15));
}

.brand-titles h1 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.brand-titles p {
  font-size: 0.8rem;
  color: var(--text-gray);
  font-weight: 600;
  margin-top: 4px;
}

.brand-titles p strong {
  color: var(--navy);
}

.header-widgets {
  display: flex;
  align-items: center;
  gap: 20px;
}

.widget-time {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-color);
  padding: 8px 15px;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
}

.widget-time ion-icon {
  font-size: 1.5rem;
  color: var(--orange);
}

.time-text {
  display: flex;
  flex-direction: column;
}

.time-text span {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}

.time-text small {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-gray);
  text-transform: uppercase;
  margin-top: 2px;
}

.widget-count {
  background: var(--navy);
  color: white;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 10px rgba(5, 26, 83, 0.2);
}

.count-badge {
  background: var(--orange);
  color: white;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 800;
}

.ubp-home-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: 2px solid rgba(5, 26, 83, 0.2);
  color: var(--navy);
  padding: 8px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  transition: 0.25s;
  white-space: nowrap;
}

.ubp-home-btn ion-icon {
  font-size: 1.1rem;
}

.ubp-home-btn:hover {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(5, 26, 83, 0.2);
}

.mobile-filter-trigger {
  display: none;
  background: var(--orange);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 700;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px var(--orange-glow);
  cursor: pointer;
  transition: 0.3s;
}

.mobile-filter-trigger ion-icon {
  font-size: 1.2rem;
}

.mobile-close-btn {
  display: none;
}

/* --- Hero Banner --- */
.hero-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #0A2E8D 50%, #0B1D58 100%);
  padding: 2.5rem 5%;
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.hero-text {
  flex: 1;
}

.hero-slogan {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(245, 130, 32, 0.15);
  border: 1px solid rgba(245, 130, 32, 0.4);
  color: var(--orange);
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-star {
  font-size: 0.75rem;
  color: var(--orange);
}

.hero-title {
  font-size: 2rem;
  font-weight: 800;
  color: white;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  max-width: 600px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 1.8rem 2.5rem;
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.hero-stat-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-stat-divider {
  width: 1px;
  height: 50px;
  background: rgba(255, 255, 255, 0.15);
}

/* --- Advanced Layout Structure --- */
.creative-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 4rem;
  max-width: 1400px;
  margin: 2rem auto 6rem;
  padding: 0 5%;
}

/* Glass Card Global Styles */
.glass {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 28px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}

/* --- Control Dashboard (Sticky Sidebar) --- */
.control-panel {
  position: sticky;
  top: 30px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
}

.panel-card {
  padding: 2rem;
}

.panel-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.filter-group {
  margin-bottom: 2rem;
}

.group-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--navy);
  margin-bottom: 1rem;
  font-weight: 700;
}

.pill-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  background: white;
  color: var(--text-gray);
  border: 1px solid rgba(226, 232, 240, 0.8);
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.01);
}

.pill:hover {
  border-color: var(--navy-light);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.pill.active {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
  box-shadow: 0 8px 20px rgba(11, 29, 58, 0.25);
  transform: translateY(-2px);
}

.reset-btn {
  width: 100%;
  padding: 14px;
  background: rgba(250, 140, 22, 0.1);
  border: 2px dashed var(--orange);
  color: #D97706;
  border-radius: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: 0.3s;
}

.reset-btn:hover {
  background: var(--orange);
  color: white;
  border-style: solid;
}

.print-btn {
  width: 100%;
  padding: 14px;
  margin-top: 12px;
  background: rgba(5, 26, 83, 0.05);
  border: 2px solid var(--navy);
  color: var(--navy);
  border-radius: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: 0.3s;
}

.print-btn:hover {
  background: var(--navy);
  color: white;
  transform: translateY(-2px);
}

.download-btn {
  width: 100%;
  padding: 14px;
  margin-top: 12px;
  background: var(--orange);
  border: none;
  color: white;
  border-radius: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: 0.3s;
  box-shadow: 0 4px 15px var(--orange-glow);
}

.download-btn:hover {
  background: #E67E22;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--orange-glow);
}

.download-btn ion-icon {
  font-size: 1.2rem;
}

/* --- Print Handling --- */
/* --- PDF & Print Shared Styling --- */
.print-only {
  display: none;
}

.print-header {
  display: flex;
  background: white;
}

.print-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 9.5pt;
  background: white;
  font-family: 'Outfit', sans-serif;
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}

.print-table thead {
  display: table-header-group;
}

.print-table th {
  background: #051A53;
  color: white;
  padding: 11px 10px;
  border: none;
  text-align: left;
  font-weight: 700;
  font-size: 8pt;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.print-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #EEF2F7;
  color: #1E293B;
  font-size: 9pt;
  vertical-align: top;
}

.print-table tr:nth-child(even) td {
  background: #F8FAFD;
}

.print-table tr {
  page-break-inside: avoid;
}


.print-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 2px solid var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  background: white;
}

.print-title-bottom h2 {
  color: var(--navy);
  font-size: 1.5rem;
  margin-bottom: 2px;
}

.print-title-bottom p {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--orange);
}

.print-meta-bottom {
  text-align: right;
  font-size: 8pt;
  color: #94A3B8;
}

@media print {
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Hide UI elements */
  .app-header,
  .hero-banner,
  .creative-layout,
  .site-footer,
  .ambient-bg,
  .overlay,
  .mobile-filter-trigger {
    display: none !important;
  }

  /* Show and style the print-area */
  .print-only {
    display: block !important;
  }

  body {
    background: white !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Set paper size and margins */
  @page {
    size: A4 landscape;
    margin: 1cm;
  }
}

/* --- Stunning Timeline Feed --- */

.timeline-feed {
  position: relative;
  padding-left: 60px;
  padding-bottom: 2rem;
}

/* The glowing vertical line */
.timeline-feed::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--orange) 0%, var(--orange-light) 60%, rgba(245, 130, 32, 0) 100%);
  border-radius: 4px;
}

/* Timeline Cards */
.tl-item {
  position: relative;
  margin-bottom: 3.5rem;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 0.8s forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tl-dot {
  position: absolute;
  left: -54px;
  top: 35px;
  width: 26px;
  height: 26px;
  background: var(--bg-color);
  border: 5px solid var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(245, 130, 32, 0.1), 0 0 20px var(--orange-glow);
  z-index: 2;
  transition: var(--transition);
}

.tl-item:hover .tl-dot {
  background: var(--orange);
  transform: scale(1.3);
  box-shadow: 0 0 0 4px rgba(245, 130, 32, 0.2), 0 0 20px var(--orange-glow);
}

.tl-content {
  background: linear-gradient(135deg, #071E52 0%, #0B2868 60%, #0F337A 100%);
  border-radius: 20px;
  padding: 1.8rem 2rem;
  box-shadow: 0 8px 32px rgba(5, 26, 83, 0.25), 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  gap: 2rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Parlak sol şerit */
.tl-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(to bottom, #F58220, #FBBF24);
  transition: width 0.3s;
}

/* Sağ üstte dekoratif daire */
.tl-content::after {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(245, 130, 32, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.tl-content:hover {
  transform: translateY(-4px) translateX(4px);
  box-shadow: 0 20px 50px rgba(5, 26, 83, 0.4), 0 0 0 1px rgba(245, 130, 32, 0.3);
}

.tl-content:hover::before {
  width: 8px;
}

/* Card Date Block */
.tl-date {
  text-align: center;
  min-width: 80px;
  flex-shrink: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding-right: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.tl-date h3 {
  font-size: 2.8rem;
  color: white;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -1px;
}

.tl-date span {
  font-size: 0.8rem;
  font-weight: 700;
  color: #F58220;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.tl-date small {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 2px;
  font-weight: 500;
}

/* Card Info */
.tl-info {
  flex: 1;
  min-width: 0;
}

/* İlçe + kategori aynı satırda, başlığın üstünde */
.tl-info-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.tl-tag {
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  height: 24px;
  background: rgba(245, 130, 32, 0.2);
  color: #FBBF24;
  border: 1px solid rgba(245, 130, 32, 0.35);
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.tl-info h4 {
  font-size: 2rem;
  color: white;
  margin-bottom: 10px;
  margin-top: 2px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.tl-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.tl-meta>* {
  display: inline-flex;
  align-items: center;
  height: 26px;
  box-sizing: border-box;
}

.tl-meta div {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Premium saat rozeti */
.tl-time-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0 11px;
  height: 26px;
  border-radius: 20px;
  font-size: 0.82rem;
  white-space: nowrap;
}

.tl-time-pill ion-icon {
  color: #F58220;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.tl-time-pill strong {
  font-weight: 800;
  font-size: 0.88rem;
  color: white;
}

/* Gün adı rozeti */
.tl-day-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  padding: 0 10px;
  height: 26px;
  border-radius: 20px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.tl-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: center;
  align-items: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.1rem;
  transition: var(--transition);
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.tl-content:hover .tl-arrow {
  background: var(--orange);
  color: white;
  border-color: var(--orange);
  transform: scale(1.1) translateX(8px);
}

/* Update info to accommodate district */
.district-highlight {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  padding: 0 12px;
  height: 24px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.district-highlight ion-icon {
  font-size: 0.85rem;
  color: #F58220;
}

/* Past events — soluk koyu kart */
.tl-item.past-event .tl-content {
  background: linear-gradient(135deg, #1E293B 0%, #293548 100%);
  box-shadow: none;
  opacity: 0.55;
}

.tl-item.past-event .tl-content::before {
  background: #475569;
}

.tl-item.past-event .district-highlight {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.tl-item.past-event .tl-date h3,
.tl-item.past-event .tl-date span {
  color: rgba(255, 255, 255, 0.5);
}

.tl-item.past-event .tl-dot {
  border-color: #475569;
  box-shadow: none;
}

.tl-item.past-event:hover .tl-dot {
  background: #94A3B8;
}

.tl-item.past-event .tl-tag {
  background: #E2E8F0;
  color: #64748B;
}

/* Today events */
.tl-item.today-event {
  z-index: 10;
}

.tl-item.today-event .tl-content {
  border: 2px solid var(--orange);
  box-shadow: 0 15px 40px var(--orange-glow);
  transform: scale(1.02);
}

.tl-item.today-event .tl-content::before {
  background: var(--orange);
  width: 8px;
}

.tl-item.today-event .tl-dot {
  border-color: var(--orange);
  background: var(--orange);
  box-shadow: 0 0 0 6px rgba(245, 130, 32, 0.3), 0 0 20px var(--orange-glow);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 130, 32, 0.7);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(245, 130, 32, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(245, 130, 32, 0);
  }
}

.today-badge {
  position: absolute;
  top: -12px;
  right: 25px;
  background: var(--orange);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 0.85rem;
  z-index: 5;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 10px var(--orange-glow);
}

.today-badge.now-badge {
  background: #E11D48;
  box-shadow: 0 4px 10px rgba(225, 29, 72, 0.4);
  animation: pulseNow 1.5s infinite;
}

@keyframes pulseNow {
  0% {
    box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(225, 29, 72, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(225, 29, 72, 0);
  }
}

.today-badge.tomorrow-badge {
  background: var(--navy-light);
  box-shadow: 0 4px 10px rgba(10, 46, 141, 0.3);
}

.today-badge.completed-badge {
  background: #10B981;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.4);
  display: flex;
  align-items: center;
  gap: 5px;
}

.today-badge.completed-badge ion-icon {
  font-size: 1.1rem;
}

/* --- Spectacular Event Modal --- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 29, 58, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: 0.4s;
}

.overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  background: white;
  width: 92%;
  max-width: 550px;
  border-radius: 32px;
  overflow: hidden;
  transform: translateY(60px) scale(0.95);
  transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
  position: relative;
}

.overlay.active .modal-card {
  transform: translateY(0) scale(1);
}

/* Custom Close Btn */
.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 1.6rem;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
  color: white;
  transition: var(--transition);
}

.close-btn:hover {
  background: white;
  color: #ef4444;
  transform: rotate(90deg) scale(1.1);
}

/* Modal Top Art Area */
.modal-art {
  height: 240px;
  background: linear-gradient(135deg, var(--navy), #1e3a8a);
  position: relative;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: white;
  overflow: hidden;
}

/* Abstract geometry in background */
.modal-art::after {
  content: '';
  position: absolute;
  right: -50px;
  top: -50px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, var(--orange-glow) 0%, transparent 70%);
  border-radius: 50%;
}

/* Modal logo */
.modal-logo-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 3;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-ubp-logo {
  height: 42px;
  width: auto;
}

.modal-date-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  left: auto;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  padding: 12px 22px;
  border-radius: 20px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}


.modal-date-badge #mDay {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.modal-date-badge #mMonth {
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 2px;
}

.modal-art h2 {
  font-size: 2.2rem;
  font-weight: 800;
  position: relative;
  z-index: 2;
  line-height: 1.2;
  font-family: 'Playfair Display', serif;
  letter-spacing: -1px;
}

.m-category {
  position: relative;
  z-index: 2;
  margin-top: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--orange-light);
  letter-spacing: 1px;
}

.modal-details {
  padding: 2.5rem;
  display: grid;
  gap: 1.8rem;
  background: #fff;
}

.detail-tile {
  display: flex;
  align-items: center;
  gap: 18px;
}

.detail-tile ion-icon {
  font-size: 2.2rem;
  color: var(--orange);
  background: #FFF7ED;
  padding: 14px;
  border-radius: 18px;
}

.detail-tile small {
  font-size: 0.8rem;
  color: var(--text-gray);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.detail-tile p {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: 4px;
  line-height: 1.4;
}

/* Past Events Collapse Area */
.past-events-wrapper {
  margin-top: 2rem;
  padding-left: 60px;
}

.past-events-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  padding: 12px 24px;
  border-radius: 30px;
  border: 1px solid #E2E8F0;
  color: var(--text-gray);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  margin-bottom: 2rem;
  font-size: 0.95rem;
  user-select: none;
}

.past-events-toggle:hover {
  background: var(--bg-color);
  color: var(--navy);
  border-color: #CBD5E1;
}

.past-events-toggle .toggle-icon {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.past-events-wrapper.open .toggle-icon {
  transform: rotate(180deg);
}

.past-events-container {
  display: none;
  position: relative;
  /* Glowing line for past events */
}

.past-events-container::before {
  content: '';
  position: absolute;
  left: -42px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, #CBD5E1, rgba(203, 213, 225, 0));
  border-radius: 4px;
}

.past-events-wrapper.open .past-events-container {
  display: block;
  animation: fadeUp 0.5s ease;
}

/* Footer Styling */
.site-footer {
  background: linear-gradient(160deg, #030E30 0%, #051A53 50%, #0A2570 100%);
  padding: 0;
  margin-top: 4rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  line-height: 1.6;
  position: relative;
}

.footer-wave {
  width: 100%;
  height: 60px;
  overflow: hidden;
}

.footer-wave svg {
  width: 100%;
  height: 100%;
}

.footer-main {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  padding: 3rem 5% 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Kolon 1 - Marka */
.footer-logo {
  height: 60px;
  width: auto;
  margin-bottom: 1rem;
  filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.1));
}

.footer-col-brand {
  font-size: 1.2rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.3px;
  margin-bottom: 0.4rem;
}

.footer-slogan {
  font-size: 0.88rem;
  color: var(--orange);
  font-weight: 600;
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.footer-desc {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* Sosyal medya */
.footer-social {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-social-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
  flex-shrink: 0;
}

.footer-social-btn svg {
  width: 15px;
  height: 15px;
  fill: rgba(255, 255, 255, 0.6);
  transition: fill 0.25s;
}

.footer-social-btn:hover {
  transform: translateY(-3px);
}

.footer-social-btn:hover svg {
  fill: white;
}

.fsb-facebook:hover {
  background: #1877F2;
  border-color: #1877F2;
  box-shadow: 0 6px 20px rgba(24, 119, 242, 0.4);
}

.fsb-twitter:hover {
  background: #1DA1F2;
  border-color: #1DA1F2;
  box-shadow: 0 6px 20px rgba(29, 161, 242, 0.4);
}

.fsb-instagram:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  border-color: #e6683c;
  box-shadow: 0 6px 20px rgba(220, 39, 67, 0.4);
}

.fsb-youtube:hover {
  background: #FF0000;
  border-color: #FF0000;
  box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
}

/* Diğer kolonlar */
.footer-col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col-title ion-icon {
  color: var(--orange);
  font-size: 1rem;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-link-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.87rem;
  transition: color 0.2s, transform 0.2s;
  cursor: pointer;
}

.footer-link-item:hover {
  color: white;
  transform: translateX(4px);
}

.fli-icon {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fli-icon ion-icon {
  font-size: 0.9rem;
  color: var(--orange);
}

/* Kolon 4 */
.footer-about-text {
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 130, 32, 0.12);
  border: 1px solid rgba(245, 130, 32, 0.3);
  color: var(--orange);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
}

.footer-badge ion-icon {
  font-size: 0.9rem;
}

/* Alt çizgi */
.footer-bottom {
  padding: 1.2rem 5%;
  background: rgba(0, 0, 0, 0.2);
}

.footer-bottom-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom-inner strong {
  color: rgba(255, 255, 255, 0.7);
}

.site-footer .developer-link {
  margin: 0;
}

.site-footer a {
  color: var(--orange);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: white;
}


/* =============================================
   RESPONSIVE — %100 MOBİL UYUMLULUK
   ============================================= */

/* --- Tablet büyük (≤1024px) --- */
@media (max-width: 1024px) {
  .creative-layout {
    grid-template-columns: 260px 1fr;
    gap: 2rem;
  }

  .hero-inner {
    gap: 2rem;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

/* --- Tablet (≤850px) --- */
@media (max-width: 850px) {

  /* Hero Banner — dikey düzen */
  .hero-inner {
    flex-direction: column;
    gap: 1.5rem;
  }

  .hero-stats {
    width: 100%;
    justify-content: space-around;
    padding: 1.2rem 1.5rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-desc {
    font-size: 0.88rem;
  }

  /* Header — tek satır compact */
  .app-header {
    flex-direction: row;
    gap: 10px;
    padding: 0.8rem 4%;
    justify-content: space-between;
    align-items: center;
  }

  .header-brand {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    text-align: left;
    min-width: 0;
    flex: 1;
  }

  .brand-logo {
    height: 46px;
    flex-shrink: 0;
  }

  .brand-titles h1 {
    font-size: 0.95rem;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-titles p {
    display: none;
  }

  .header-widgets {
    width: auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 8px;
    flex-shrink: 0;
  }

  /* Masaüstü widgetları gizle, sadece filtre butonunu göster */
  .widget-time,
  .widget-count {
    display: none;
  }

  /* UBP Anasayfa butonunu gizle (mobil için fazla yer kaplıyor) */
  .ubp-home-btn {
    display: none;
  }

  .mobile-filter-trigger {
    display: flex;
    padding: 9px 16px;
    font-size: 0.85rem;
    white-space: nowrap;
  }

  /* Filtre paneli — tam ekran drawer */
  .creative-layout {
    display: flex;
    flex-direction: column;
    margin-top: 1rem;
    gap: 1rem;
  }

  .control-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    z-index: 2000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 5rem 1.5rem 2rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.35s ease;
  }

  .control-panel.mobile-open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: all;
  }

  .control-panel .panel-card {
    box-shadow: none;
    background: transparent;
    border: none;
    padding: 0;
  }

  .mobile-close-btn {
    display: flex;
    position: fixed;
    top: 16px;
    right: 16px;
    background: var(--navy);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    z-index: 2100;
  }

  /* Footer — 2 kolon */
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2.5rem 5%;
  }

  .footer-brand-col {
    grid-column: 1 / -1;
  }
}

/* --- Mobil (≤600px) --- */
@media (max-width: 600px) {

  /* Hero */
  .hero-banner {
    padding: 1.5rem 4%;
  }

  .hero-slogan {
    font-size: 0.75rem;
    padding: 5px 12px;
  }

  .hero-title {
    font-size: 1.3rem;
    letter-spacing: -0.5px;
  }

  .hero-desc {
    font-size: 0.82rem;
  }

  .hero-stats {
    gap: 0;
    padding: 1rem;
    border-radius: 16px;
  }

  .hero-stat {
    flex: 1;
    padding: 0 0.5rem;
  }

  .hero-stat-num {
    font-size: 1.8rem;
  }

  .hero-stat-label {
    font-size: 0.65rem;
  }

  .hero-stat-divider {
    height: 35px;
  }

  /* Layout */
  .creative-layout {
    margin: 0.5rem auto 3rem;
    padding: 0 4%;
    gap: 0;
  }

  /* Timeline */
  .timeline-feed {
    padding-left: 32px;
  }

  .timeline-feed::before {
    left: 12px;
    width: 3px;
  }

  .tl-dot {
    left: -11px;
    width: 22px;
    height: 22px;
    border-width: 4px;
    top: 32px;
  }

  .tl-item {
    margin-bottom: 2rem;
  }

  .tl-content {
    flex-direction: column;
    gap: 0.8rem;
    align-items: flex-start;
    padding: 1.2rem;
    border-radius: 18px;
  }

  /* Tarih bloğu — yatay satır */
  .tl-date {
    border-right: none;
    border-bottom: 1px solid #E2E8F0;
    padding-right: 0;
    padding-bottom: 0.8rem;
    width: 100%;
    text-align: left;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
  }

  .tl-date h3 {
    font-size: 2rem;
    min-width: auto;
  }

  .tl-info {
    width: 100%;
    padding-top: 0;
  }

  .tl-info h4 {
    font-size: 1.7rem;
    line-height: 1.15;
  }

  .district-highlight {
    font-size: 0.75rem;
    padding: 3px 10px;
    margin-bottom: 0.5rem;
  }

  /* Saat rozeti mobil */
  .tl-meta {
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
  }

  .tl-time-pill {
    padding: 3px 10px;
    font-size: 0.8rem;
  }

  .tl-day-pill {
    font-size: 0.72rem;
    padding: 3px 8px;
  }

  .tl-tag {
    font-size: 0.72rem;
    padding: 3px 8px;
  }

  .tl-arrow {
    display: none;
  }

  /* Geçmiş etkinlikler */
  .past-events-wrapper {
    padding-left: 32px;
  }

  .past-events-container::before {
    left: -20px;
  }

  .past-events-toggle {
    font-size: 0.9rem;
    padding: 1rem 1.2rem;
  }

  /* Modal */
  .overlay {
    padding: 0;
    align-items: flex-end;
  }

  .modal-card {
    width: 100%;
    max-width: 100%;
    border-radius: 24px 24px 0 0;
    max-height: 92dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .modal-art {
    height: auto;
    min-height: 160px;
    padding: 6rem 1.5rem 1.5rem;
  }

  .modal-art h2 {
    font-size: 1.5rem;
  }

  .modal-date-badge {
    top: auto;
    bottom: 20px;
    right: 20px;
    left: auto;
  }

  .modal-details {
    padding: 1.5rem;
    gap: 1rem;
  }

  .detail-tile {
    padding: 0.8rem;
  }

  .close-btn {
    background: rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    top: 12px;
    right: 12px;
  }

  /* Footer — tek kolon */
  .footer-main {
    grid-template-columns: 1fr;
    padding: 2rem 4%;
    gap: 2rem;
  }

  .footer-brand-col {
    grid-column: auto;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 4px;
  }

  /* Filtre panel içi */
  .pill-container {
    gap: 6px;
  }

  .pill {
    font-size: 0.78rem;
    padding: 6px 12px;
  }

  .reset-btn,
  .print-btn,
  .download-btn {
    padding: 12px;
    font-size: 0.9rem;
  }
}

/* --- Küçük mobil (≤400px) --- */
@media (max-width: 400px) {
  .brand-titles h1 {
    font-size: 0.82rem;
  }

  .brand-logo {
    height: 38px;
  }

  .mobile-filter-trigger {
    padding: 8px 12px;
    font-size: 0.78rem;
  }

  .hero-title {
    font-size: 1.15rem;
  }

  .hero-stats {
    display: none;
    /* istatistikleri çok küçük ekranda gizle */
  }

  .tl-content {
    padding: 1rem;
    border-radius: 14px;
  }

  .tl-info h4 {
    font-size: 1.45rem;
  }
}

/* ============================================
   FEEDBACK — Floating Button + Modal + Toast
   ============================================ */
.feedback-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px 14px 18px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--orange), #E86B0C);
  color: white;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.2px;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(245, 130, 32, 0.45), 0 4px 10px rgba(5, 26, 83, 0.15);
  transition: transform var(--transition), box-shadow var(--transition), background 0.3s;
}

.feedback-fab ion-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.feedback-fab-text {
  white-space: nowrap;
}

.feedback-fab:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 18px 36px rgba(245, 130, 32, 0.55), 0 6px 14px rgba(5, 26, 83, 0.18);
  background: linear-gradient(135deg, #FF9233, var(--orange));
}

.feedback-fab:active {
  transform: translateY(-1px) scale(1);
}

.feedback-fab-pulse {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--orange);
  opacity: 0.5;
  animation: feedbackPulse 2.2s ease-out infinite;
  z-index: -1;
}

@keyframes feedbackPulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* --- Feedback Modal --- */
.feedback-overlay {
  z-index: 1100;
}

.feedback-card {
  background: white;
  width: 94%;
  max-width: 640px;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 28px;
  padding: 0;
  box-shadow: 0 40px 80px rgba(5, 26, 83, 0.35);
  transform: translateY(60px) scale(0.95);
  transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.feedback-overlay.active .feedback-card {
  transform: translateY(0) scale(1);
}

.feedback-close {
  background: rgba(255, 255, 255, 0.85);
  color: var(--navy);
  border: 1px solid rgba(5, 26, 83, 0.1);
}

.feedback-close:hover {
  background: white;
  color: #ef4444;
}

.feedback-header {
  background: linear-gradient(135deg, var(--navy), #1e3a8a);
  padding: 2.2rem 2rem 1.8rem;
  color: white;
  border-radius: 28px 28px 0 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.feedback-header::after {
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  background: var(--orange);
  border-radius: 50%;
  top: -150px;
  right: -80px;
  opacity: 0.18;
  filter: blur(10px);
}

.feedback-header-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 0.9rem;
  background: linear-gradient(135deg, var(--orange), #E86B0C);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(245, 130, 32, 0.4);
}

.feedback-header-icon ion-icon {
  font-size: 1.9rem;
  color: white;
}

.feedback-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 0.4rem;
}

.feedback-header p {
  font-size: 0.88rem;
  opacity: 0.85;
  max-width: 460px;
  margin: 0 auto;
  line-height: 1.5;
}

.feedback-form {
  padding: 1.8rem 2rem 1.6rem;
}

.fb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.fb-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.fb-group.fb-full {
  grid-column: 1 / -1;
}

.fb-group label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 6px;
}

.fb-group label ion-icon {
  font-size: 1rem;
  color: var(--orange);
}

.fb-optional {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-gray);
  margin-left: 4px;
}

.fb-group input,
.fb-group select,
.fb-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.92rem;
  color: var(--text-dark);
  background: #F8FAFC;
  transition: 0.25s;
  outline: none;
}

.fb-group textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

.fb-group input:focus,
.fb-group select:focus,
.fb-group textarea:focus {
  border-color: var(--orange);
  background: white;
  box-shadow: 0 0 0 4px rgba(245, 130, 32, 0.12);
}

.fb-char-count {
  font-size: 0.72rem;
  color: var(--text-gray);
  text-align: right;
  margin-top: 2px;
  font-weight: 600;
}

.fb-actions {
  display: flex;
  gap: 0.8rem;
  justify-content: flex-end;
  margin-top: 1.4rem;
  flex-wrap: wrap;
}

.fb-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: none;
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: 0.25s;
}

.fb-btn ion-icon {
  font-size: 1.15rem;
}

.fb-btn-secondary {
  background: #F1F5F9;
  color: var(--text-dark);
}

.fb-btn-secondary:hover {
  background: #E2E8F0;
}

.fb-btn-primary {
  background: linear-gradient(135deg, var(--orange), #E86B0C);
  color: white;
  box-shadow: 0 8px 18px rgba(245, 130, 32, 0.35);
}

.fb-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(245, 130, 32, 0.45);
}

.fb-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.fb-privacy {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-gray);
  margin-top: 1rem;
  font-weight: 500;
}

.fb-privacy ion-icon {
  font-size: 0.95rem;
  color: #16a34a;
}

/* --- Toast notifications (public site) --- */
.toast-container {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: white;
  color: var(--text-dark);
  padding: 14px 20px;
  border-radius: 14px;
  box-shadow: 0 14px 32px rgba(5, 26, 83, 0.18);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
  max-width: 380px;
  font-size: 0.9rem;
  font-weight: 600;
  border-left: 4px solid var(--orange);
  animation: toastInFb 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: all;
}

.toast.success { border-left-color: #16a34a; }
.toast.error   { border-left-color: #ef4444; }
.toast.info    { border-left-color: #3b82f6; }

.toast .toast-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.toast.success .toast-icon { color: #16a34a; }
.toast.error   .toast-icon { color: #ef4444; }
.toast.info    .toast-icon { color: #3b82f6; }

.toast.toast-out {
  animation: toastOutFb 0.4s ease forwards;
}

@keyframes toastInFb {
  from { opacity: 0; transform: translateX(100px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes toastOutFb {
  to { opacity: 0; transform: translateX(100px); }
}

/* --- Responsive adjustments --- */
@media (max-width: 768px) {
  .feedback-fab {
    bottom: 18px;
    right: 18px;
    padding: 12px 18px 12px 14px;
    font-size: 0.85rem;
  }

  .feedback-fab ion-icon {
    font-size: 1.3rem;
  }

  .feedback-card {
    border-radius: 22px;
    max-height: 94vh;
  }

  .feedback-header {
    padding: 1.8rem 1.4rem 1.4rem;
    border-radius: 22px 22px 0 0;
  }

  .feedback-header h2 {
    font-size: 1.25rem;
  }

  .feedback-form {
    padding: 1.4rem 1.2rem 1.2rem;
  }

  .fb-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .fb-actions {
    flex-direction: column-reverse;
  }

  .fb-btn {
    width: 100%;
    justify-content: center;
  }

  .toast-container {
    top: 12px;
    right: 12px;
    left: 12px;
  }

  .toast {
    min-width: auto;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .feedback-fab-text {
    display: none;
  }

  .feedback-fab {
    padding: 14px;
    border-radius: 50%;
  }
}

/* Hide feedback UI when printing */
@media print {
  .feedback-fab,
  .feedback-overlay,
  .toast-container {
    display: none !important;
  }
}

/* ============================================
   ROLE LOGIN SCREEN (index.php, oturumsuz)
   ============================================ */
body.role-login-body {
  background: linear-gradient(135deg, #030F33 0%, var(--navy) 55%, #1e3a8a 100%);
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

.role-login-ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.role-login-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  animation: roleBlobFloat 22s infinite alternate ease-in-out;
}

.role-login-blob.b1 {
  background: var(--orange);
  width: 500px;
  height: 500px;
  top: -160px;
  right: -120px;
  opacity: 0.28;
}

.role-login-blob.b2 {
  background: #4299E1;
  width: 420px;
  height: 420px;
  bottom: -120px;
  left: -140px;
  opacity: 0.22;
  animation-delay: 5s;
}

.role-login-blob.b3 {
  background: #FCD34D;
  width: 320px;
  height: 320px;
  top: 45%;
  left: 48%;
  opacity: 0.12;
  animation-delay: 2s;
}

@keyframes roleBlobFloat {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(-120px, 80px) scale(1.2); }
}

.role-login-wrap {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.2rem;
}

.role-login-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 28px;
  padding: 2.5rem 2.4rem 2rem;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  animation: loginCardIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes loginCardIn {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.role-login-header {
  text-align: center;
  margin-bottom: 1.8rem;
}

.role-login-logo {
  height: 80px;
  width: auto;
  margin-bottom: 1rem;
  filter: drop-shadow(0 8px 20px rgba(5, 26, 83, 0.2));
}

.role-login-header h1 {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.5px;
  margin-bottom: 0.4rem;
}

.role-login-header p {
  font-size: 0.9rem;
  color: var(--text-gray);
  font-weight: 500;
  line-height: 1.5;
}

.role-login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.role-input-group {
  position: relative;
  display: flex;
  align-items: center;
  background: #F8FAFC;
  border: 1.5px solid var(--glass-border);
  border-color: #E2E8F0;
  border-radius: 14px;
  padding: 4px 6px 4px 16px;
  transition: 0.25s;
}

.role-input-group:focus-within {
  border-color: var(--orange);
  background: white;
  box-shadow: 0 0 0 4px rgba(245, 130, 32, 0.12);
}

.role-input-group > ion-icon {
  font-size: 1.3rem;
  color: var(--orange);
  margin-right: 10px;
  flex-shrink: 0;
}

.role-input-group input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 14px 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  color: var(--text-dark);
  outline: none;
  letter-spacing: 2px;
}

.role-input-group input::placeholder {
  letter-spacing: 0;
  color: #94A3B8;
}

.role-toggle-visibility {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text-gray);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: 0.2s;
}

.role-toggle-visibility:hover {
  background: rgba(5, 26, 83, 0.08);
  color: var(--navy);
}

.role-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--orange), #E86B0C);
  color: white;
  padding: 14px 24px;
  border: none;
  border-radius: 14px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(245, 130, 32, 0.35);
  transition: 0.25s;
}

.role-login-btn ion-icon {
  font-size: 1.3rem;
}

.role-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(245, 130, 32, 0.45);
}

.role-login-btn:disabled {
  opacity: 0.75;
  cursor: wait;
  transform: none;
}

.role-login-error {
  background: rgba(239, 68, 68, 0.1);
  color: #B91C1C;
  border-left: 3px solid #EF4444;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 4px;
  animation: errShake 0.4s ease;
}

@keyframes errShake {
  0%, 100% { transform: translateX(0); }
  25%      { transform: translateX(-6px); }
  75%      { transform: translateX(6px); }
}

.role-login-footer {
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid #F1F5F9;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 500;
}

.role-login-footer ion-icon {
  color: #16a34a;
  font-size: 1rem;
}

.role-login-foot-brand {
  margin-top: 2rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.role-login-foot-brand img {
  height: 28px;
  opacity: 0.9;
}

/* ============================================
   ROLE CHIP + LOGOUT (header)
   ============================================ */
.role-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #1e3a8a, var(--navy));
  color: white;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(5, 26, 83, 0.25);
  max-width: 230px;
}

.role-chip ion-icon {
  font-size: 1.2rem;
  color: var(--orange);
  flex-shrink: 0;
}

.role-chip .role-chip-super {
  color: #FFD29A;
}

.role-chip-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.role-logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: var(--navy);
  border: 1.5px solid #E2E8F0;
  padding: 9px 16px;
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s;
}

.role-logout-btn ion-icon {
  font-size: 1.15rem;
  color: #EF4444;
}

.role-logout-btn:hover {
  background: #EF4444;
  border-color: #EF4444;
  color: white;
}

.role-logout-btn:hover ion-icon {
  color: white;
}

@media (max-width: 900px) {
  .role-chip {
    max-width: 150px;
    font-size: 0.72rem;
    padding: 6px 10px;
  }

  .role-logout-btn span {
    display: none;
  }

  .role-logout-btn {
    padding: 8px 10px;
  }
}

@media (max-width: 560px) {
  .role-login-card {
    padding: 2rem 1.4rem 1.6rem;
    border-radius: 22px;
  }

  .role-login-header h1 {
    font-size: 1.4rem;
  }

  .role-login-foot-brand {
    text-align: center;
    flex-direction: column;
    gap: 6px;
  }
}