/* Premium Flight Card Design - Black Card Aesthetic */

.premium-card {
  background: rgba(255, 255, 255, 0.05); /* Extremely light white tint */
  backdrop-filter: blur(25px) saturate(150%);
  -webkit-backdrop-filter: blur(25px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.15); /* Slightly visible white border for glass effect */
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  color: var(--text-primary);
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin-bottom: 2rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.2); /* Outer shadow + inner reflection */
  position: relative;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.premium-card:hover {
  background: rgba(255, 255, 255, 0.08); /* Slightly less transparent on hover */
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.3);
  transform: translateY(-4px);
}

body.light-mode .premium-card {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(25px) saturate(150%);
  -webkit-backdrop-filter: blur(25px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

body.light-mode .premium-card:hover {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), inset 0 1px 2px rgba(255, 255, 255, 1);
  transform: translateY(-4px);
}

body.light-mode .premium-card:hover {
  background: rgba(222, 178, 67, 0.1);
  border-color: rgba(222, 178, 67, 0.4);
  box-shadow: inset 0 0 15px rgba(222, 178, 67, 0.2), 0 20px 40px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.premium-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)"/></svg>');
  opacity: 0.015; /* Very subtle texture */
  pointer-events: none;
}

.premium-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.airline-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.airline-logo-placeholder {
  width: 32px;
  height: 32px;
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.airline-name {
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 2px;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  color: var(--primary-color);
}

.flight-number {
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
}

.flight-date {
  color: var(--primary-color);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 1px;
}

.premium-card-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem 0.85rem 2rem;
}

.flight-point {
  display: flex;
  flex-direction: column;
}

.flight-point.right {
  text-align: right;
}

.point-label {
  color: var(--text-secondary);
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: 2px;
  margin-bottom: 4px;
}

.point-time {
  font-size: 2.5rem;
  font-weight: 300;
  line-height: 1;
  margin-bottom: 6px;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
}

.point-code {
  font-size: 3rem;
  font-weight: 400;
  line-height: 1;
  margin-top: 10px;
  margin-bottom: 4px;
  letter-spacing: 2px;
  color: var(--primary-color);
}

.point-city {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 1px;
}

.point-terminal {
  display: inline-block;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-top: 8px;
  width: fit-content;
  letter-spacing: 1px;
}

.flight-route {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 3rem;
  position: relative;
}

.route-stops {
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.route-line {
  width: 100%;
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  position: absolute;
  top: 50%;
  z-index: 1;
}

.route-icon {
  color: var(--primary-color);
  font-size: 1.2rem;
  background-color: transparent; /* No black background */
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transform: rotate(45deg); /* Point airplane right */
}

.route-connection {
  color: var(--primary-color);
  font-size: 0.75rem;
  font-weight: 400;
  margin-top: 8px;
  text-align: center;
  letter-spacing: 1px;
}

.premium-card-details {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0.75rem 2rem;
  background-color: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.detail-block {
  display: flex;
  flex-direction: column;
}

.detail-label {
  color: #9ca3af;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 3px;
}

.detail-value {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
}

.detail-value.highlight {
  color: #fbbf24;
}

.premium-card-notice {
  text-align: center;
  padding: 0.65rem 1rem;
  color: #9ca3af;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  background-color: #0d0f17;
}

.notice-icon {
  color: #fbbf24;
  margin-right: 4px;
}

.premium-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 2rem;
  background-color: rgba(18, 21, 33, 0.4);
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9ca3af;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.status-dot-grey {
  width: 8px;
  height: 8px;
  background-color: #4b5563;
  border-radius: 50%;
}

.footer-powered {
  color: #6b7280;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.btn-footer-view-bp {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: 1px solid rgba(147, 197, 253, 0.45);
  border-radius: 6px;
  padding: 4px 11px;
  font-size: 0.76rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-decoration: none;
  font-family: inherit;
  letter-spacing: 0.3px;
}

.btn-footer-view-bp:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
  color: #ffffff;
}

.btn-footer-view-bp:active {
  transform: translateY(0);
}


/* Action Buttons Overlay */
/* Flight Card Header Right (Date + Icon Actions Under Date) */
.flight-header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
  z-index: 2;
}

.flight-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-card-action {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.16);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: 0.78rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  backdrop-filter: blur(4px);
  padding: 0;
}

.btn-card-action:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.btn-card-action.delete {
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.25);
}

.btn-card-action.delete:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: rgba(239, 68, 68, 0.6);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Fallback legacy classes */
.premium-actions {
  display: flex;
  gap: 0.5rem;
}
.btn-premium-action {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
  backdrop-filter: blur(4px);
}



/* =========================================================
   PREMIUM ONLINE CHECK-IN BANNER (48H ALERT)
   ========================================================= */
.premium-checkin-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.4rem;
  margin: 0.35rem 1rem 0.85rem 1rem;
  border-radius: 12px;
  flex-wrap: wrap;
  transition: all 0.3s ease;
}

.premium-checkin-banner.checkin-open {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18) 0%, rgba(6, 95, 70, 0.32) 100%);
  border: 1.5px solid rgba(16, 185, 129, 0.55);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.25);
  animation: checkinBorderGlow 3s ease-in-out infinite alternate;
}

@keyframes checkinBorderGlow {
  0% { border-color: rgba(16, 185, 129, 0.45); box-shadow: 0 4px 16px rgba(16, 185, 129, 0.15); }
  100% { border-color: rgba(52, 211, 153, 0.85); box-shadow: 0 6px 26px rgba(16, 185, 129, 0.35); }
}

.premium-checkin-banner.checkin-upcoming {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.6) 0%, rgba(30, 41, 59, 0.35) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.premium-checkin-banner.checkin-departed {
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.65rem 1.4rem;
  color: #94a3b8;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkin-banner-info {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.checkin-pulse-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.8);
  animation: checkinPulse 1.8s infinite;
  flex-shrink: 0;
}

@keyframes checkinPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.8);
  }
  70% {
    transform: scale(1.15);
    box-shadow: 0 0 0 9px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.checkin-badge-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #34d399;
  letter-spacing: 0.6px;
  display: flex;
  align-items: center;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.checkin-badge-sub {
  font-size: 0.76rem;
  color: #e2e8f0;
  margin-top: 3px;
  font-weight: 500;
}

.btn-checkin-glow {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  padding: 0.6rem 1.25rem !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.45) !important;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
  letter-spacing: 0.4px !important;
  flex-shrink: 0 !important;
  text-transform: uppercase;
}

.btn-checkin-glow:hover {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%) !important;
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.65), inset 0 1px 2px rgba(255, 255, 255, 0.6) !important;
  transform: translateY(-2px);
  color: #ffffff !important;
}

.btn-checkin-preview {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #e2e8f0 !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  padding: 0.45rem 0.95rem !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: all 0.2s ease !important;
  flex-shrink: 0 !important;
}

.btn-checkin-preview:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.status-dot-green {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
}

.premium-checkin-banner.bp-ready {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.16) 0%, rgba(15, 23, 42, 0.5) 100%) !important;
  border-color: rgba(59, 130, 246, 0.45) !important;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.15) !important;
}

.premium-checkin-banner.bp-ready::before {
  background: linear-gradient(to bottom, #3b82f6, #60a5fa) !important;
}

.btn-view-bp {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.45) !important;
  border: 1px solid rgba(147, 197, 253, 0.4) !important;
  cursor: pointer;
}

.btn-view-bp:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.7), inset 0 1px 2px rgba(255, 255, 255, 0.6) !important;
  transform: translateY(-2px);
  color: #ffffff !important;
}

@media (max-width: 768px) {
  .premium-card-header {
    padding: 0.85rem 1.2rem;
  }
  .premium-card-body {
    padding: 1rem 1.2rem 0.7rem 1.2rem;
  }
  .flight-route {
    padding: 0 1rem;
  }
  .point-time {
    font-size: 2rem;
  }
  .point-code {
    font-size: 2.2rem;
    margin-top: 6px;
  }
  .premium-card-details {
    padding: 0.65rem 1.2rem;
  }
  .premium-card-footer {
    padding: 0.55rem 1.2rem;
  }
}

