/* =========================================================
   Public VIP Squad – Clean Dark UI (Full CSS)
   CSS location: /assets/style.css
========================================================= */

:root{
  --bg: #0b0b0b;
  --panel: #121212;
  --panel2: #1a1a1a;
  --panel3: #202020;
  --line: rgba(255,255,255,.08);

  --accent: #00bfff;
  --text: #eaeaea;
  --muted: #b7b7b7;

  --radius: 18px;
  --shadow: 0 16px 48px rgba(0,0,0,.45);
}

*{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:smooth; }

body{
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =========================
   Global links (fix purple/visited)
========================= */
a{ color: var(--accent); text-decoration: none; }
a:hover{ text-decoration: underline; }

/* =========================
   Layout helpers
========================= */
.section-inner,
.header-inner,
.footer-inner{
  max-width: 1400px;
  margin: 0 auto;
}

section{ padding: 78px 40px; }
@media (max-width:650px){
  section{ padding: 70px 18px; }
}

/* IMPORTANT: wrapper for PHP pages (convoys/forum/account/gallery) */
.page-wrap{
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px;
}
@media (max-width:650px){
  .page-wrap{ padding: 24px 18px; }
}

/* =========================
   Header / Nav
========================= */
header{
  position: sticky;
  top: 0;
  z-index: 5000;
  background: linear-gradient(180deg, rgba(20,20,20,.95), rgba(18,18,18,.92));
  border-bottom: 2px solid var(--accent);
  backdrop-filter: blur(8px);
}

.header-inner{
  padding: 20px 40px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 20px;
}

@media (max-width:650px){
  .header-inner{ padding: 16px 18px; }
}

.logo img{
  height: 72px;
  width: auto;
  display:block;
}

.nav{
  display:flex;
  align-items:center;
  gap: 22px;
  flex-wrap: wrap;
}

.nav a,
.dropbtn{
  color: var(--text);
  text-decoration:none;
  font-weight: 700;
  font-size: .95rem;
  cursor:pointer;
}

.nav a:hover,
.dropbtn:hover{
  color: var(--accent);
}

/* Dropdown */
.dropdown{ position:relative; }
.dropdown-content{
  display:none;
  position:absolute;
  top:100%;
  left:0;
  min-width: 190px;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-bottom: 3px solid var(--accent);
  border-radius: 12px;
  overflow:hidden;
  z-index: 6000;
  box-shadow: var(--shadow);
}

.dropdown-content a{
  display:block;
  padding: 12px 16px;
}

.dropdown-content a:hover{
  background: var(--panel3);
}

.dropdown:hover .dropdown-content{ display:block; }

/* Highlight button in nav */
.nav a.nav-cta{
  border: 2px solid var(--accent);
  padding: 10px 14px;
  border-radius: 999px;
  margin-left: 18px;
}
.nav a.nav-cta:hover{
  background: rgba(0,191,255,0.10);
}

/* =========================
   Hero (Banner)
========================= */
.hero{
  position: relative;
  min-height: 460px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;

  background:
    linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.82)),
    url("hero.png") center/cover no-repeat;

  background-attachment: fixed;
}

@media (max-width: 900px){
  .hero{ background-attachment: scroll; }
}

.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(circle at 50% 40%, rgba(0,191,255,.12), rgba(0,0,0,0) 58%);
  pointer-events:none;
}

.hero-inner{
  position: relative;
  z-index: 2;
  max-width: 1100px;
  padding: 110px 20px;
}

.hero h1{
  font-size: 3.6rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: .2px;
}

.hero p{
  margin-top: 14px;
  font-size: 1.1rem;
  color: var(--muted);
}

@media (max-width:650px){
  .hero{ min-height: 380px; }
  .hero-inner{ padding: 90px 18px; }
  .hero h1{ font-size: 2.7rem; }
}

.hero.hero-small{ min-height: 260px; }
.hero.hero-small .hero-inner{ padding: 80px 18px; }

/* =========================
   Typography blocks
========================= */
.section-title{
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 26px;
  padding-left: 14px;
  border-left: 6px solid var(--accent);
}

.about-block{
  max-width: 1050px;
  line-height: 1.85;
  font-size: 1.05rem;
}

.about-block p{
  margin-bottom: 18px;
  color: var(--muted);
}

.about-block strong{ color: var(--text); }

.about-block blockquote{
  margin: 18px 0 22px;
  padding: 10px 0 10px 16px;
  border-left: 4px solid var(--accent);
  color: var(--text);
  font-style: italic;
}

/* =========================
   Generic cards
========================= */
.cards{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card{
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border-bottom: 4px solid var(--accent);
}

.card p{ color: var(--muted); margin-top: 8px; }

.muted{ color: var(--muted); }

/* =========================
   Forms / Buttons  (FIXES Settings + New Thread + Reply)
========================= */
input, textarea, select{
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: #0f0f0f;
  color: var(--text);
  outline: none;
}

textarea{ min-height: 130px; resize: vertical; }

label{ display:block; margin-bottom:6px; }

input:focus, textarea:focus, select:focus{
  border-color: rgba(0,191,255,.35);
  box-shadow: 0 0 0 3px rgba(0,191,255,.10);
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:44px;
  padding:0 16px;
  border-radius:12px;
  background: var(--accent);
  color:#001018;
  font-weight:900;
  text-decoration:none;
  border:0;
  cursor:pointer;
}

.btn:hover{ filter: brightness(1.05); text-decoration:none; }

.btn.secondary{
  background: rgba(255,255,255,.08);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.12);
}

.error{
  background: rgba(255,0,0,.12);
  border: 1px solid rgba(255,0,0,.25);
  border-left: 6px solid #ff4d4d;
  padding: 12px 14px;
  border-radius: 14px;
  margin: 14px 0;
}

/* =========================
   Stats
========================= */
.stats-wrap{
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 70px 40px;
}

.stats-inner{ max-width: 1400px; margin:0 auto; }

.stats-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 260px));
  justify-content:center;
  gap: 26px;
}

.stat-card{
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 26px;
  text-align:center;
  box-shadow: var(--shadow);
}

.stat-number{
  font-size: 3.1rem;
  font-weight: 950;
  line-height: 1.1;
}

.stat-label{
  margin-top: 10px;
  font-weight: 900;
  color: var(--accent);
  font-size: 1.15rem;
}

/* =========================
   Team page
========================= */
.team-section-title{
  display:block;
  margin: 26px 0 18px;
  padding: 10px 14px;
  border-left: 6px solid var(--accent);
  border-radius: 10px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  font-size: 1.15rem;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text);
}

.team-grid + .team-section-title{
  margin-top: 60px;
}

.team-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 0;
}

@media (max-width:1000px){
  .team-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width:650px){
  .team-grid{ grid-template-columns: 1fr; }
}

.team-card{
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow);
  transition: transform .22s ease, border-color .22s ease;
}

.team-card:hover{
  transform: translateY(-6px);
  border-color: rgba(0,191,255,.35);
}

.team-photo{
  width:100%;
  height: 360px;
  object-fit: cover;
  display:block;
}

.team-content{
  padding: 18px 18px 20px;
  text-align:center;
}

.team-flag-wrap{
  display:flex;
  justify-content:center;
  margin-top: 2px;
  margin-bottom: 8px;
}

.team-flag{
  width: 24px;
  height: 16px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 6px 18px rgba(0,0,0,.55);
  display:block;
}

.team-content h3{
  font-size: 1.35rem;
  font-weight: 950;
  margin-bottom: 6px;
}

.team-role{
  color: var(--accent);
  font-weight: 850;
  margin-bottom: 10px;
}

.team-meta{
  color: var(--muted);
  font-size: .92rem;
}

/* =========================
   Convoys (FIXES "verbuggt")
========================= */
.convoy-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
  margin-top: 20px;
}

.convoy-card{
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow);
}

.convoy-banner img{
  width:100%;
  height:240px;
  object-fit:cover;
  display:block;
}

.convoy-body{ padding: 16px 18px 18px; }

.convoy-title{ font-size:1.25rem; font-weight:950; margin-bottom:6px; }
.convoy-sub{ color: var(--muted); margin-bottom: 12px; }

.convoy-meta{ display:grid; gap: 8px; margin-top: 8px; }

.meta-row{
  display:flex;
  gap:10px;
  align-items:flex-start;
  color: var(--muted);
}

.meta-ico{ width:22px; flex: 0 0 22px; }

.convoy-badges{ display:flex; flex-wrap:wrap; gap:8px; margin-top: 14px; }

.badge{
  display:inline-flex;
  align-items:center;
  height:24px;
  padding:0 10px;
  border-radius:999px;
  font-weight:900;
  font-size:.8rem;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.10);
  color: var(--text);
}

.badge.accent{
  background: rgba(0,191,255,.10);
  border-color: rgba(0,191,255,.25);
}

/* =========================
   Footer
========================= */
footer, .site-footer{
  background: #070707;
  border-top: 1px solid var(--line);
  padding: 42px 40px;
  margin-top: 60px;
}

.footer-inner{
  padding: 0;
  display:flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

footer a, .site-footer a{
  color: var(--muted);
  text-decoration:none;
}
footer a:hover, .site-footer a:hover{ color: var(--accent); }

.slots{
 display:flex;
 flex-wrap:wrap;
 gap:20px;
 margin-top:20px;
}

.slot{
 background:#111;
 border:2px solid #333;
 border-radius:10px;
 width:140px;
 padding:15px;
 text-align:center;
}

.slot.free:hover{
 border-color:#00ff88;
 transform:scale(1.05);
}

.slot.reserved{
 opacity:.4;
}

.slot a{
 color:#00ff88;
 text-decoration:none;
 font-weight:bold;
}

.slot-form input,
.slot-form button{
 display:block;
 width:100%;
 margin-top:10px;
 padding:8px;
}

/* =========================
   Convoy Slot Booking
========================= */

.slot-page{
  min-height: calc(100vh - 160px);
  padding: 48px 20px 70px;
  background:
    radial-gradient(circle at top left, rgba(0,191,255,.07), transparent 25%),
    var(--bg);
}

.slot-container{
  max-width: 1200px;
  margin: 0 auto;
}

.slot-narrow{
  max-width: 760px;
}

.slot-page-header{
  margin-bottom: 28px;
}

.slot-page-header h1{
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 10px;
}

.slot-page-header p{
  color: var(--muted);
  font-size: 1rem;
}

.convoy-grid,
.slot-grid,
.request-list{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.event-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.convoy-card,
.slot-card,
.event-panel,
.request-card,
.confirm-box{
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px;
  box-shadow: 0 16px 44px rgba(0,0,0,.35);
}

.convoy-card-body,
.slot-card-body,
.event-panel,
.request-card,
.confirm-box{
  padding: 22px;
}

.slot-card-image{
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.slot-table{
  width: 100%;
  border-collapse: collapse;
}

.slot-table th,
.slot-table td{
  text-align: left;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.slot-table th{
  width: 170px;
  color: var(--muted);
  font-weight: 600;
}

.slot-meta{
  color: var(--muted);
  margin: 8px 0;
}

.slot-card-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.slot-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: .2s ease;
}

.slot-btn:hover{
  transform: translateY(-1px);
  border-color: var(--accent);
}

.slot-btn-primary{
  background: rgba(0,191,255,.14);
  border-color: rgba(0,191,255,.5);
  color: #fff;
}

.slot-btn-disabled{
  opacity: .5;
  cursor: not-allowed;
}

.slot-btn-full{
  width: 100%;
}

.slot-form{
  display: grid;
  gap: 14px;
}

.slot-form label,
.admin-action-form label{
  font-weight: 600;
  color: #fff;
}

.slot-form input,
.slot-form textarea,
.slot-form select,
.admin-action-form input,
.admin-action-form textarea,
.admin-action-form select{
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  color: #fff;
  outline: none;
}

.slot-form textarea,
.admin-action-form textarea{
  min-height: 120px;
  resize: vertical;
}

.slot-alert{
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
}

.slot-alert-warning{
  background: rgba(255,193,7,.08);
  border-color: rgba(255,193,7,.35);
  color: #ffd86a;
}

.badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 800;
  border: 1px solid transparent;
}

.badge-pending{
  background: rgba(255,193,7,.1);
  color: #ffd86a;
  border-color: rgba(255,193,7,.35);
}

.badge-approved{
  background: rgba(33, 200, 122, .12);
  color: #5cffad;
  border-color: rgba(33, 200, 122, .35);
}

.badge-rejected{
  background: rgba(255, 80, 80, .12);
  color: #ff8e8e;
  border-color: rgba(255, 80, 80, .35);
}

.badge-changed{
  background: rgba(0,191,255,.12);
  color: #69d8ff;
  border-color: rgba(0,191,255,.35);
}

.badge-cancelled{
  background: rgba(180,180,180,.12);
  color: #d3d3d3;
  border-color: rgba(180,180,180,.3);
}

.admin-note{
  margin-top: 16px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
}

.admin-action-form{
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

@media (max-width: 900px){
  .event-grid{
    grid-template-columns: 1fr;
  }
}