:root {
  --primary: #ec1b2d;
  --primary-dark: #c41524;
  --secondary: #2d3748;
  --text: #1a202c;
  --text-light: #718096;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --radius-lg: 16px;
}
body.dark-theme {
  --text: #e2e8f0;
  --text-light: #a0aec0;
  --bg-light: #1a202c;
  --bg-white: #111827;
  --border: #2d3748;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg-white);
  color: var(--text);
  line-height: 1.5;
  padding-bottom: 80px;
  transition: background 0.25s ease, color 0.25s ease;
}
.header {
  padding: 50px 20px 15px;
  color: white;
}
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.logo {
  color: var(--text);
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo i {
  font-size: 22px;
}
.user-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}
.user-actions i {
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.user-actions i:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}
.theme-toggle {
  border: none;
  background: var(--border);
  color: var(--text);
  border-radius: 999px;
  padding: 4px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  cursor: pointer;
}
.theme-toggle i {
  font-size: 14px;
}
.search-area {
  padding: 0px 10px 10px 10px;
  background: var(--bg-white);
}
.search-box {
  position: relative;
  margin-bottom: 12px;
  border-radius: 10px;
  overflow: visible;
  box-shadow: var(--shadow);
  border: 2px solid var(--border);
  background: var(--bg-white);
}
.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  background: var(--bg-white);
}
.input-with-icon:first-child {
  /* border-bottom: 1px solid var(--border); */
}
.edit-favorite-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    background: var(--bg-light);
    border-radius: var(--radius);
}

.edit-favorite-form input {
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 4px;
}

.edit-favorite-form button {
    padding: 8px;
    cursor: pointer;
}
.input-icon {
  color: var(--primary);
  font-size: 18px;
  margin-right: 12px;
  width: 24px;
  text-align: center;
}
.input-box {
  border: none;
  outline: none;
  font-size: 16px;
  font-family: "Inter", sans-serif;
  width: 100%;
  background: transparent;
  color: var(--text);
}
.input-box::placeholder {
  color: var(--text-light);
}
.autocomplete-list {
  position: absolute;
  left: 52px;
  right: 16px;
  top: 100%;
  margin-top: 4px;
  background: var(--bg-white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  z-index: 10;
  max-height: 220px;
  overflow-y: auto;
  font-size: 14px;
}
.autocomplete-item {
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: background 0.15s ease;
}
.autocomplete-item:hover {
  background: var(--bg-light);
}
.autocomplete-main {
  font-weight: 500;
}
.autocomplete-sub {
  font-size: 12px;
  color: var(--text-light);
}
.swap-btn {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.swap-btn:hover {
  transform: translateY(-52%) scale(1.02);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  opacity: 0.96;
}
.search-btn {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  color: white;
  padding: 15px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  width: 100%;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.15s ease;
}
.search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(236, 27, 45, 0.25);
  filter: brightness(1.02);
}
.search-btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow);
  filter: brightness(0.96);
}
.search-btn i {
  margin-right: 8px;
}
.live-indicator {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
}
.d-ticket-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border);
  transition: 0.3s;
  border-radius: 26px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
input:checked + .slider {
  background-color: var(--primary);
}
input:checked + .slider:before {
  transform: translateX(24px);
} /* Alles in einer Zeile mit Trennlinie - FIXED */
.start-row {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 8px 0 4px;
  padding: 8px 16px;
  white-space: nowrap;
  overflow: visible;
  flex-wrap: nowrap;
}
.start-row .d-ticket-toggle {
  /* min-width: 160px; */
  padding-right: 16px;
  flex-shrink: 0;
}
.start-row .divider {
  width: 1px;
  height: 24px;
  background: var(--border); /* margin: 0 16px; */
  flex-shrink: 0;
}
.start-row .start-bar {
  flex: 0 1 auto;
  padding-left: 16px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
  min-width: 0;
}
flex-shrink: 0;
@media (max-width: 480px) {
  .start-row {
    flex-direction: column;
    align-items: stretch;
  }
  .start-row .d-ticket-toggle {
    justify-content: center;
  }
}
.start-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  font-size: 13px;
  color: var(--text);
}
.start-bar-label {
  font-weight: 500;
  white-space: nowrap;
}
.start-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-light);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  color: var(--text);
  font-size: 12px;
}
.start-pill i {
  font-size: 11px;
  color: var(--text-light);
}
.start-hint {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-light);
  white-space: nowrap;
}
.start-dropdown {
  position: absolute;
  z-index: 50;
  margin-top: 6px;
  padding: 10px;
  background: var(--bg-white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  font-size: 13px;
  min-width: 190px;
}
.start-dropdown-row {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}
.start-dropdown input {
  flex: 1;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
}
.start-dropdown-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 8px;
  font-size: 12px;
}
.start-link {
  border: none;
  background: none;
  color: var(--primary);
  cursor: pointer;
  padding: 2px 4px;
}
.result-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 0px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.result-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.result-card.expanded {
  border-color: var(--primary);
  transform: translateY(-2px);
}
.card-header {
  padding: 10px;
  border-radius: 10px;
}
.res-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.time-badge {
  color: var(--text);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
}
.time-picker-container {
  position: relative;
}
.time-picker-menu {
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 4px;
  z-index: 1000;
  width: 200px;
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 12px;
}
.res-stations {
  font-size: 10px;
  color: var(--text-light);
  margin-bottom: 12px;
}
.res-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--text-light);
}
.meta-item i {
  font-size: 12px;
  color: var(--primary);
}
.res-chip-row {
  /* display: flex; */
  flex-wrap: wrap;
  gap: 8px;
}
.res-chip {
  background: var(--bg-light);
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
}
.res-chip.highlight {
  width: 100%;
  border: 1px solid rgba(98, 98, 98, 0.2);
}
.card-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  background: var(--bg-light);
  opacity: 0;
}
.result-card.expanded .card-details {
  max-height: 1000px;
  opacity: 1;
}
.legs-box {
  padding: 10px;
}
.leg-item {
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}
.leg-item:last-child {
  border-bottom: none;
}
.leg-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-right: 14px;
  flex-shrink: 0;
}
.leg-info {
  flex: 1;
}
.leg-line {
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 15px;
}
.leg-time {
  font-size: 14px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.leg-platform {
  color: var(--primary);
  font-weight: 500;
}
.leg-arrow {
  color: var(--text-light);
  font-size: 12px;
}
.leg-duration {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 4px;
}
.lsdf1 {
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}
.lsdf2 {
  border-bottom-right-radius: var(--radius);
  border-bottom-left-radius: var(--radius);
}
.no-results {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-light);
}
.no-results i {
  font-size: 48px;
  margin-bottom: 16px;
  color: #cbd5e0;
}
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--bg-white);
  padding: 12px 0;
  display: flex;
  justify-content: space-around;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
  border-top: 1px solid var(--border);
  z-index: 100;
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-light);
  cursor: pointer;
  transition: color 0.2s, transform 0.1s ease;
  flex: 1;
}
.nav-item.active {
  color: var(--primary);
}
.nav-item i {
  font-size: 20px;
  margin-bottom: 4px;
}
.nav-item span {
  font-size: 12px;
  font-weight: 500;
}
.line-group {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-item:hover {
  color: var(--primary);
  transform: translateY(-1px);
}
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: var(--text-light);
}
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(236, 27, 45, 0.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.page-container {
  position: relative;
  overflow: hidden;
}
.page-section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: calc(100vh - 80px);
  opacity: 0;
  transform: translateX(100%);
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.page-section.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  position: relative;
}
#results {
  margin-top: 20px;
  padding: 0 10px;
}
.page-section.slide-out-left {
  transform: translateX(-100%);
  opacity: 0;
}
.page-section.slide-out-right {
  transform: translateX(100%);
  opacity: 0;
}
#map {
  width: 100%;
  height: calc(100vh - 170px);
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
}
.placeholder {
  padding: 20px;
  color: var(--text-light);
  font-size: 14px;
}
.placeholder h3 {
  margin-bottom: 8px;
  font-size: 18px;
  color: var(--text);
}
.profile-settings {
  padding: 20px;
}

.favorites-section {
  /* margin-top: 30px;
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow); */
  border-bottom: 1px solid var(--border);
}

.add-favorite .search-btn{
  margin-bottom: 30px;
}

.favorites-list {
  margin: 15px 0 0 0;
  display: flex;
  flex-direction: row;
  gap: 12px;
}

.favorite-item {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 7px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  border: 1px solid var(--border);
}

.fvfff{
  flex-direction: column;
}

.fav-name {
  font-weight: 600;
  margin-bottom: 4px;
}

.fav-route {
  font-size: 13px;
  color: var(--text-light);
}

.fav-actions {
  display: flex;
  gap: 8px;
}

.fav-actions button {
  background: transparent;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  font-size: 16px;
  transition: color 0.2s ease;
}

.fav-actions button:hover {
  color: var(--primary);
}

.add-favorite {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.add-favorite h4 {
  margin-bottom: 15px;
  font-size: 16px;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  font-size: 14px;
}

.setting-row:last-child {
  border-bottom: none;
}

.setting-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.setting-label i {
  color: var(--primary);
}
@media (min-width: 768px) {
  .header,
  .search-area,
  #results,
  .profile-settings,
  .placeholder {
    max-width: 600px;
    margin: 0 auto;
  }
  #map {
    max-width: 600px;
    margin: 0 auto;
  }
} /* Kompakte Search-Area - etwas größer #search-area { padding: 6px !important; font-size: 11px !important; } .search-area { font-size: 12px !important; } .search-box { margin-bottom: 6px !important; border-radius: 4px !important; border: 1px solid var(--border) !important; } .input-with-icon { padding: 10px 12px !important; font-size: 12px !important; } .input-icon { font-size: 16px !important; margin-right: 10px !important; width: 24px !important; } .input-box { font-size: 12px !important; } .search-form { padding: 5px !important; border-radius: 4px !important; margin-bottom: 8px !important; font-size: 11px !important; } .search-form input, .search-form select, .search-form button { padding: 5px 8px !important; font-size: 12px !important; height: 28px !important; margin: 2px 0 !important; } .form-group { margin-bottom: 5px !important; font-size: 11px !important; } .result-card { padding: 8px !important; margin: 15px 0 !important; font-size: 11px !important; } .search-label { font-size: 10px !important; margin-bottom: 2px !important; } .search-title { font-size: 12px !important; } .search-btn { padding: 8px 12px !important; font-size: 12px !important; border-radius: 5px !important; } .start-row { padding: 8px 10px !important; margin-bottom: 10px !important; font-size: 11px !important; } .d-ticket-toggle { font-size: 11px !important; } .start-pill { padding: 6px 10px !important; font-size: 12px !important; border-radius: 20px !important; } .start-pill i { font-size: 11px !important; } .switch { width: 42px !important; height: 22px !important; } .slider:before { height: 20px !important; width: 20px !important; left: 2px !important; bottom: 2px !important; } */
.res-chip[data-product="nationalExpress"] {
  background-color: rgba(236, 27, 45, 0.2);
  color: var(--text);
}
.res-chip[data-product="suburban"] {
  background-color: rgba(0, 165, 39, 0.2);
  color: var(--text);
}
.res-chip[data-product="regional"] {
  background-color: rgba(0, 123, 255, 0.2);
  color: var(--text);
}
.res-chip[data-product="undefined"] {
  background-color: rgba(255, 213, 45, 0.2);
  color: var(--text);
}



/* Start Row */
.start-row {
  display: flex;
  align-items: center; /* gap: 20px; */
  padding: 12px 16px;
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.transfer-text {
  padding: 10px;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-top: 5px;
} /* D-Ticket Toggle */
.d-ticket-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
}
.toggle-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
}
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border);
  transition: 0.2s;
}
.slider.round {
  border-radius: 24px;
}
.slider.round:before {
  border-radius: 50%;
}
.switch input:checked + .slider {
  background-color: var(--primary);
}
.switch input:checked + .slider:before {
  transform: translateX(20px);
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.2s;
} /* Start Bar */
.start-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-grow: 1;
}
.start-bar-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
}
.start-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
}
.start-pill:hover {
  background: var(--border);
}
.start-pill i {
  font-size: 14px;
  color: var(--primary);
}
.start-hint {
  font-size: 12px;
  color: var(--text-light);
  margin-left: auto;
}


.login-btn,
.logout-btn {
    padding: 8px 16px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius);
    text-decoration: none;
    margin-right: 10px;
    transition: all 0.2s ease;
}

.login-btn:hover,
.logout-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.user-profile {
    text-align: center;
    padding: 20px;
}

.profile-pic {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 10px;
    border: 3px solid var(--primary);
    box-shadow: 0 4px 12px rgba(236, 27, 45, 0.2);
}

.login-prompt {
    text-align: center;
    padding: 20px;
}

.input-with-icon {
  /* margin-bottom: 15px; */
}

.input-with-icon:last-child {
  margin-bottom: 0;
}


.transport-options-container {
  overflow-x: auto;
  margin: 15px 0;
}

.transport-options {
  display: flex;
  gap: 8px;
  width: max-content; /* Verhindert Umbruch */
  min-width: 100%; /* Füllt Container */
}

.option-item {
  flex-shrink: 0; /* Verhindert Schrumpfen */
  width: calc(100% / 5 - 8px); /* 5 Optionen sichtbar */
}

.option-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  background: var(--bg-light);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid var(--border);
  font-size: 12px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 100%;
}


.option-label:hover {
  background: var(--border);
}

.option-item input:checked + .option-label {
  background: var(--primary);
  color: white;
  border-color: var(--primary-dark);
}

.option-item input[type="checkbox"] {
  display: none;
}

.option-label i {
  font-size: clamp(12px, 1.5vw, 14px); /* Responsive Icons */
}

/* Modern Ticket Styles */
.ticket-sample {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ticket-sample.active {
  opacity: 1;
  pointer-events: all;
}

.ticket-container {
  background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15);
  width: 90%;
  max-width: 420px;
  padding: 30px;
  position: relative;
  border: 1px solid rgba(0,0,0,0.05);
  overflow: hidden;
}

.ticket-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: linear-gradient(90deg, #ec1b2d 0%, #ff6b6b 100%);
}

.ticket-header {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
}

.ticket-logo {
  width: 60px;
  height: 60px;
  margin-right: 20px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.ticket-title {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(90deg, #ec1b2d 0%, #ff6b6b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
  line-height: 1.2;
}

.ticket-field {
  margin-bottom: 20px;
  position: relative;
  padding-left: 30px;
}

.ticket-field::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 20px;
  height: 20px;
  background-size: contain;
  background-repeat: no-repeat;
}

.ticket-passenger::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ec1b2d'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
}

.ticket-validity::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ec1b2d'%3E%3Cpath d='M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM9 10H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm-8 4H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2z'/%3E%3C/svg%3E");
}

.ticket-label {
  display: block;
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 5px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.ticket-value {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
}

.ticket-qr-placeholder {
  margin: 30px auto;
  width: 220px;
  height: 220px;
  background: #f5f5f5;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.05);
}

.ticket-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #888;
  transition: all 0.2s ease;
}

.ticket-close:hover {
  color: #ec1b2d;
  transform: rotate(90deg);
}

/* Tickets Page */
#page-tickets {
  padding: 30px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.tickets-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.tickets-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.btn-primary {
  background: linear-gradient(90deg, #ec1b2d 0%, #ff6b6b 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(236, 27, 45, 0.3);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(236, 27, 45, 0.4);
}

.btn-primary i {
  font-size: 1.1rem;
}

.tickets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
}

.ticket-fullscreen{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  padding: 40px 20px;
}

.ticket-card {
  background: var(--bg-light);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  padding: 25px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.03);
}

.ticket-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.ticket-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #ec1b2d 0%, #ff6b6b 100%);
}

.ticket-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.ticket-type {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
}

.ticket-status {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 50px;
}

.ticket-status.active {
  background: rgba(46, 125, 50, 0.1);
  color: #2e7d32;
}

.ticket-card-body {
  display: flex;
  gap: 20px;
  align-items: center;
}

.ticket-qr-small {
  width: 80px;
  height: 80px;
  background: #f5f5f5;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(0,0,0,0.05);
}

.ticket-info {
  flex: 1;
}

.ticket-passenger,
.ticket-validity {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: #555;
  font-size: 0.95rem;
}

.ticket-passenger i,
.ticket-validity i {
  color: #ec1b2d;
  font-size: 1.1rem;
}