/* =========================
   HERO SECTION
========================= */

.hero-container {
    position: relative;
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
    background-image: url('/image/images/clouds.png');
    background-size: cover;
    background-position: center;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* Purple gradient overlay (left side fade) */
.hero-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(75, 0, 130, 0.9) 0%,
        rgba(75, 0, 130, 0.75) 35%,
        rgba(75, 0, 130, 0.4) 55%,
        rgba(75, 0, 130, 0) 75%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 60px;
}

.hero-text h2 {
    color: white;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 8px;
}

.hero-text p {
    color: #e0d8ff;
    font-size: 1rem;
    margin: 0;
}

.hero-plane img {
    height: 200px;
    max-width: 600px;
    object-fit: contain;
}

.hero-divider{
  height: 2px;
  width: 620px;
  max-width: 60vw;
  margin: 10px 0 12px 0;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,1) 0%,
    rgba(255,255,255,0.75) 40%,
    rgba(255,255,255,0.2) 65%,
    rgba(255,255,255,0) 100%
  );
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(255,255,255,0.3);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content {
        padding: 0 30px;
    }

    .hero-plane img {
        height: 140px;
    }

    .hero-text h2 {
        font-size: 1.5rem;
    }
}


.rank-badge{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding:.25rem .6rem;
  border-radius:999px;
  background: rgba(255,77,0,.12);
  color:#ff4d00;
  font-weight:700;
  font-size:.85rem;
}

.rank-insignia{
  width:28px;
  height:28px;
  object-fit:contain;
}

/* --- Card System --- */
.av-card{
  background:#fff;
  border-radius:16px;
  box-shadow:0 10px 30px rgba(0,0,0,.10);
  overflow:hidden;
}

/* Page layout wrapper */
.av-page-wrap{
  width:100%;
  max-width:1400px;
  margin:0 auto;
  padding-left:24px;
  padding-right:24px;
}

/* Larger screens */
@media (min-width:1600px){
  .av-page-wrap{
    max-width:1500px;
  }
}

/* Ultrawide monitors */
@media (min-width:2000px){
  .av-page-wrap{
    max-width:1600px;
  }
}

.av-card-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 16px;
  border-bottom: none;
  color: #fff;
  background: rgba(75, 0, 130, 1);
}

.av-card-title{
  font-weight:700;
  font-size:1rem;
  color: #fff;
}

.av-card-body{
  padding:16px;
}

/* --- Small pill (like “Live”) --- */
.av-pill{
  display:inline-block;
  padding:4px 10px;
  border-radius:999px;
  font-size:.75rem;
  font-weight:700;
  background:rgba(75,0,130,.12);
  color:rgba(75,0,130,1);
}

/* Force equal height stat cards */
.row.g-3.mb-4 > [class*="col-"] {
  display: flex;
}

.av-stat {
  flex: 1;
  display: flex;
  height: 100%;
  gap: 14px;
  align-items: center;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 14px 35px rgba(0,0,0,.08);
  padding: 16px;
  min-height: 110px;   /* equal height */
  transition: transform .2s ease, box-shadow .2s ease;
}

.av-stat-icon{
  width:44px;
  height:44px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,77,0,.12);
  color:#ff4d00;
  font-size:1.25rem;
}

.av-stat-label{
  font-size:.85rem;
  color:rgba(0,0,0,.55);
  font-weight:600;
  margin-bottom:2px;
}

.av-stat-value{
  font-size:1.6rem;
  font-weight:800;
  line-height:1.1;
}
.av-stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 45px rgba(0,0,0,.12);
}

/* rank bar */
.av-rank-bar {
  height: 8px;
  margin-top: 6px;
}

.av-rank-sub {
  margin-top: 6px;
  font-size: .75rem;
}

.av-rank-bar-fill{
  height:100%;
  background:#ff4d00;
  width:0;
  transition:width .6s ease;
}

.av-card-headerright .av-pill {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* --- Live map containment --- */
.av-map-wrap{
  padding:0; /* remove inner padding so map sits flush */
}



.av-map-wrap .leaflet-container{
  border-radius:0 0 16px 16px;
}

/* METAR sizing */
.av-metar-wrap{
  padding: 10px 12px 0 12px;
}

.av-metar-anchor{
  display:block;
  width:100%;
  height:170px;          /* smaller METAR */
  font-size:.95rem;
}

.av-metar-standalone {
  border-radius: 14px;
  overflow: hidden;
}

/* --- Active bookings cleanup (tables tend to look messy) --- */
.av-booking-wrap table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
}

.av-booking-wrap table th{
  font-size:.78rem;
  text-transform:uppercase;
  letter-spacing:.03em;
  color:rgba(0,0,0,.50);
  border-bottom:1px solid rgba(0,0,0,.08);
  padding:10px 8px;
}

.av-booking-wrap table td{
  padding:10px 8px;
  border-bottom:1px solid rgba(0,0,0,.06);
  vertical-align:middle;
}

.av-booking-wrap table tr:last-child td{
  border-bottom:0;
}



/* Purple navbar */
.navbar.av-navbar {
  background: rgba(75, 0, 130, 1) !important;
}
.navbar.av-navbar .navbar-brand,
.navbar.av-navbar .nav-link {
  color: #fff !important;
}
.navbar.av-navbar .nav-link:hover {
  opacity: 0.85;
}

/* Navbar sizing + logo */
.av-navbar{
  background: rgba(75, 0, 130, 1) !important;
}

.av-nav-logo{
  height: 40px;
  object-fit: contain;
}

.av-nav-avatar{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.35);
}

.av-nav-username{
  color:#fff;
  font-weight:800;
}

/* Dropdown */
.av-dropdown{
  border-radius: 14px;
  padding: 8px;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 14px 40px rgba(0,0,0,.18);
}

.av-dropdown .dropdown-item{
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 700;
}

.av-dropdown .dropdown-item:hover{
  background: rgba(75,0,130,.08);
}

/* METAR widget: force Avelo purple background + white text */
#metartaf-DispoThM {
  background: #4b0082 !important;
  color: #ffffff !important;
  border-radius: 12px;
  overflow: hidden;
}

/* Force all injected text inside the widget to be white */
#metartaf-DispoThM * {
  color: #ffffff !important;
}

/* Links inside the widget */
#metartaf-DispoThM a {
  color: #ffffff !important;
}

/* Make included cards fill column height */
.h-100 > .av-card { height: 100%; }

.row.align-items-stretch > div > .av-card {
  height: 100%;
}

/* ===== AUTH PAGE BACKGROUND (matches login markup) ===== */
.av-auth-page{
  min-height: 100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 3rem 0;
  position: relative;
  overflow:hidden;
}

/* Animated gradient background */
.av-auth-bg{
  position:absolute;
  inset:0;
  background: radial-gradient(
    circle at 20% 10%,
    rgba(106,27,191,0.55) 0%,
    rgba(75,0,130,0.90) 40%,
    rgba(58,0,102,1) 100%
  );
  animation: avGradient 10s ease-in-out infinite alternate;
  z-index:0;
}

/* Cloud haze overlay */
.av-auth-bg::after{
  content:"";
  position:absolute;
  inset:-30%;
  background:
    radial-gradient(circle at 20% 65%, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0) 55%),
    radial-gradient(circle at 55% 75%, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 55%),
    radial-gradient(circle at 80% 55%, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0) 60%);
  filter: blur(10px);
  opacity: .9;
}

/* Keep content above bg */
.av-auth-page .container{
  position:relative;
  z-index:1;
}

/* Card */
.av-auth-card{
  background: rgba(255,255,255,0.96);
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(0,0,0,.35);
  overflow:hidden;
  backdrop-filter: blur(10px);
}

.av-auth-header{
  padding: 18px 18px 16px 18px;
  background: linear-gradient(90deg, #4b0082 0%, #6a1bbf 100%);
  color:#fff;
}

.av-auth-brand{
  display:flex;
  align-items:center;
  gap:12px;
  
}

.av-auth-logo{
  width:46px;
  height:46px;
  border-radius:14px;
  object-fit:contain;
  background: rgba(255,255,255,.12);
  padding:7px;
}

.av-auth-title{ font-weight:800; font-size:1.25rem; line-height:1.2; }
.av-auth-subtitle{ opacity:.9; font-size:.9rem; }

.av-auth-body{ 
  padding: 18px; 
}

.av-auth-body-inner { padding: 18px; }

.av-input{
  border-radius: 12px;
  padding: 10px 12px;
}

.av-btn{
  background:#ff4d00;
  border:none;
  color:#fff;
  font-weight:800;
  font-size: .95rem;
  border-radius: 12px;
  padding: 12px 18px;
}

.av-btn:hover{ opacity:.95; }

.av-link{
  color:#4b0082;
  text-decoration:none;
  font-weight:700;
}
.av-link:hover{ text-decoration:underline; }

@keyframes avGradient{
  0% { transform: scale(1) translate3d(0,0,0); }
  100% { transform: scale(1.05) translate3d(-1%, -1%, 0); }
}

/* ===== PROFILE HEADER (Pilot ID Banner) ===== */
.av-profile-header{
  background:#fff;
  border-radius:18px;
  box-shadow:0 14px 40px rgba(0,0,0,.08);
  overflow:hidden;
  position:relative;
}

.av-profile-topbar{
  height:8px;
  background: linear-gradient(90deg, #4b0082 0%, #6a1bbf 60%, #ff4d00 120%);
}

.av-profile-status{
  position:absolute;
  top:12px;
  right:12px;

  border-radius:999px;
  padding:4px 10px;

  font-weight:800;
  font-size:.72rem;
  letter-spacing:.05em;

  box-shadow:0 3px 8px rgba(0,0,0,.15);
}

/* Email as plain text (not a pill) */
.av-profile-email{
  color: rgba(0,0,0,.65);
  font-weight: 700;
  font-size: .9rem;
}

.av-container{
  max-width: 1200px;
}
/* Outline button to match your rounded style */
.av-btn-outline{
  border-radius: 12px;
  font-weight: 800;
  padding: 10px 12px;
}

.av-profile-inner{
  padding:18px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.av-profile-avatar{
  width:84px;
  height:84px;
  border-radius:18px;
  object-fit:cover;
  border:3px solid rgba(75,0,130,.15);
  box-shadow:0 10px 25px rgba(0,0,0,.10);
  background:#f6f4ff;
}

.av-profile-name{
  font-weight:900;
  font-size:1.6rem;
  line-height:1.1;
  color:#14121a;
}

.av-profile-sub{
  color:rgba(0,0,0,.65);
  font-weight:600;
  margin-top:4px;
}

.av-profile-flag{
  font-size:.8rem;
  font-weight:800;
  color:rgba(0,0,0,.45);
  margin-left:8px;
}

.av-chip{
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  padding:.45rem .7rem;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.08);
  background:#fff;
  color:rgba(0,0,0,.75);
  font-weight:700;
  font-size:.85rem;
}

@media (max-width: 992px){
  .av-profile-inner{
    flex-direction:column;
    align-items:flex-start;
  }
  .av-profile-inner > div:last-child{
    width:100%;
    align-items:flex-start !important;
  }
}

.av-discord-btn{
  border-radius:12px;
  font-weight:700;
  padding:10px 14px;
  border:1px solid #5865F2;
  color:#5865F2;
  background:#fff;
}

.av-discord-btn:hover{
  background:#5865F2;
  color:#fff;
  border-color:#5865F2;
}

/* Disconnect version */
.av-discord-disconnect{
  border-color:#dc3545;
  color:#dc3545;
}

.av-discord-disconnect:hover{
  background:#dc3545;
  color:#fff;
}

.av-details-compact{
  padding: 12px 16px;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}

/* If your details area is a list/table, make it tighter without clipping */
.av-details-compact table{
  width: 100%;
}
.av-details-compact table td,
.av-details-compact table th{
  padding: 6px 0 !important;
  vertical-align: top;
  white-space: normal;       /* allow wrapping */
}

/* For long values (e.g., timezone), allow wrap */
.av-details-compact .av-detail-value{
  overflow-wrap: anywhere;
  word-break: break-word;
}
.av-profile-right .av-card{
  height: auto !important;
}

.av-award-card{
  background:#fff;
  border-radius:12px;
  padding:14px;
  text-align:center;
  border:1px solid rgba(0,0,0,.05);
  transition:all .15s ease;
}

.av-award-card:hover{
  transform:translateY(-3px);
  box-shadow:0 6px 18px rgba(0,0,0,.08);
}

.av-award-img{
  max-width:90px;
  margin-bottom:8px;
}

.av-award-name{
  font-size:.85rem;
  font-weight:700;
  color:#444;
}

/* Flights table cleanup inside Avelo cards */
.av-flights-table table { width:100%; border-collapse:separate; border-spacing:0; }
.av-flights-table th {
  font-size:.78rem;
  text-transform:uppercase;
  letter-spacing:.03em;
  color:rgba(0,0,0,.55);
  border-bottom:1px solid rgba(0,0,0,.08);
  padding:10px 8px;
}
.av-flights-table td {
  padding:10px 8px;
  border-bottom:1px solid rgba(0,0,0,.06);
  vertical-align:middle;
}
.av-flights-table tr:last-child td { border-bottom:0; }

/* ===== Flights: Modern Card List ===== */
.av-flightcard{
  background:#fff;
  border-radius:16px;
  box-shadow:0 10px 30px rgba(0,0,0,.10);
  padding: 14px 16px;
  overflow:hidden;
}

.av-flightcard-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.av-flight-ident{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
}

.av-flight-badge{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(75,0,130,.12);
  color: rgba(75,0,130,1);
  font-weight:900;
  font-size:.8rem;
}

.av-flight-route{
  font-weight:900;
  font-size:1.15rem;
}

.av-flight-sub{ margin-top:4px; }

.av-flightcard-right{
  display:flex;
  align-items:center;
  gap:10px;
  flex-shrink:0;
}

.av-btn-lite{
  border-radius:12px !important;
  font-weight:800 !important;
}

.av-flightcard-meta{
  display:grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap:12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,.06);
}

.av-meta-item{
  display:flex;
  flex-direction:column;
  gap:2px;
  padding:10px 10px;
  border-radius:14px;
  background: rgba(0,0,0,.02);
}

.av-meta-item i{
  color: rgba(75,0,130,1);
  margin-bottom: 4px;
}

.av-meta-label{
  font-size:.72rem;
  color: rgba(0,0,0,.55);
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.03em;
}

.av-meta-value{
  font-size: .98rem;
  font-weight:900;
}

.av-meta-sub{
  font-size: .78rem;
  color: rgba(0,0,0,.55);
}

.av-flightcard-notes{
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,.06);
  color: rgba(0,0,0,.70);
  font-size: .92rem;
}

/* Responsive */
@media (max-width: 992px){
  .av-flightcard-meta{
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}
/* ===== Flights Quick Filter Bar ===== */
.av-filter-label{
  font-size:.78rem;
  font-weight:800;
  color: rgba(0,0,0,.60);
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-bottom: .35rem;
}

.av-filterbar .form-control .av-filterbar .form-select{
  border-radius: 12px;
}

.av-filterbar{
  padding: 2px;
}

/* Jumpseat helper note */
.av-jumpseat-note{
  width:100%;
  display:flex;
  align-items:center;
  gap:8px;

  font-size:.8rem;
  color:#4b0082;

  background:rgba(75,0,130,.08);
  border-left:3px solid rgba(75,0,130,.45);
  border-radius:8px;

  padding:6px 10px;
  margin-top:6px;
}

/* animated plane */
.av-jumpseat-plane{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#4b0082;
  font-size:.8rem;

  animation: avJumpseatPlane 3s ease-in-out infinite;
}

/* animation */
@keyframes avJumpseatPlane{
  0%   { transform: translateX(0px); opacity:.8; }
  50%  { transform: translateX(6px); opacity:1; }
  100% { transform: translateX(0px); opacity:.8; }
}