/* =========================================================
   BalkanLogistics — Dark UI (single, de-duped stylesheet)
   ========================================================= */

:root{
  --bg-grad-1:#0b1222;
  --bg-grad-2:#1a1f35;
  --sidebar:#0f172a;

  --card-bg:rgba(255, 255, 255, 0.06);
  --card-br:rgba(255,255,255,.12);

  --blur: 8px;
  --primary:#6c7cff;
  --primary-2:#906CFF;
  --badge:#ffb84d;
}

/* ---- Page chrome -------------------------------------------------------- */
html,body{height:100%;}
body{
  /* pin background; content will scroll in .layout */
  overflow: hidden; /* key: stop body from scrolling */
  background:
    radial-gradient(1200px 600px at 70% -10%, rgba(144,108,255,.25), transparent),
    linear-gradient(160deg, var(--bg-grad-1), var(--bg-grad-2));
  background-attachment: fixed;
  color:#e6e6f0;
}

/* subtle global bottom glow so nothing looks "cut" */
body::before{
  content:"";
  position: fixed;
  inset:-12% -12% -12% -12%;
  pointer-events:none;
  z-index:-1;
  background:
    radial-gradient(1000px 560px at 50% 92%, rgba(144,108,255,.14), transparent),
    radial-gradient(820px 420px at 12% 66%, rgba(34,197,94,.08), transparent);
}

/* The scrollable app area (everything below the topbar) */
.layout{
  height: calc(100vh - 56px); /* navbar is 56px high */
  overflow: auto;             /* only this scrolls */
}

/* Keep navbar always visible and clickable */
.topbar{
  position: sticky;  /* stays at the top */
  top:0;
  z-index: 2000;     /* above everything else */
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(var(--blur));
}
.topbar .nav-link{ color:#cbd5e1 !important; }
.topbar .nav-link:hover{ color:#fff !important; }

/* Dropdown is guaranteed to be above hero content */
.dropdown-menu{ z-index: 3000; }

/* Sidebar (when logged in) scrolls independently */
/* Sidebar (when logged in) scrolls independently inside .layout */
.sidebar{
  position: sticky;
  top: 0;              /* .layout already accounts for the 56px navbar */
  height: 95vh;        /* fill the scroll area */

  overflow: auto;

  display:flex; flex-direction:column;
  background: linear-gradient(180deg, rgba(15,23,42,.95), rgba(15,23,42,.8));
  border-right:1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(var(--blur));
}

/* ensure columns stretch to the same height */
.layout > .row{ align-items: stretch; }

.sidebar-menu{ display:flex; flex-direction:column; gap:.25rem; }
.sidebar-link{
  display:flex; align-items:center; gap:.5rem;
  color:#cbd5e1; padding:.5rem .75rem; border-radius:.5rem;
  text-decoration:none;
}
.sidebar-link:hover{ background: rgba(255,255,255,.06); color:#fff; }

/* Cards & common bits */
.card-hero{
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.12);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.card-glass{
  border-radius: 14px;
  background: var(--card-bg);
  border:1px solid var(--card-br);
  box-shadow: 0 6px 24px rgba(0,0,0,.2);
}
.card h1, .card h2, .card h3, .card h4, .card h5 { color:#eef1ff; }

.hero-title{ font-size: clamp(1.6rem, 2.5vw + 1rem, 2.2rem); font-weight:700; }
.hero-subtitle{ color:#c9c9d8; max-width: 70ch; }

.bg-badge{ background: var(--badge); color:#1d1d1d; }
.text-truncate-2{ display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }

/* Buttons */
.btn-ghost{ color:#e6e6f0; border:1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); }
.btn-ghost:hover{ background: rgba(255,255,255,.08); }
.btn-primary{
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  border:0;
}
.btn-primary:hover{ filter: brightness(1.1); }
.btn-outline-light{ color:#e6e6f0; border-color: rgba(255,255,255,.35); }
.btn-outline-light:hover{ background: rgba(255,255,255,.08); border-color:#fff; color:#fff; }

/* Links */
a { color:#9ab4ff; }
a:hover { color:#c5d1ff; }

/* Forms */
.form-label{ color:#e2e8f0; }
.form-control, .form-select{
  background-color: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.18);
  color:#e6e6f0;
}
.form-control:focus, .form-select:focus{
  background-color: rgba(255,255,255,.08);
  border-color: rgba(144,108,255,.55);
  color:#fff;
  box-shadow: 0 0 0 .2rem rgba(144,108,255,.15);
}
.form-control::placeholder { color:#9aa0b3; opacity:1; }

/* Alerts */
.alert{ background-color: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color:#e6e6f0; }
.alert-info{ background-color: rgba(99,179,237,.15); border-color: rgba(99,179,237,.35); color:#dbeafe; }
.alert-success{ background-color: rgba(34,197,94,.18); border-color: rgba(34,197,94,.35); color:#dcfce7; }

/* Badges & lists */
.badge { color:#1b1f31; }
.bg-badge { background:#ffb84d; color:#1b1f31; }
.card li{ color:#e6e6f0; }

/* -------------------------------------------------------
   HERO Glow (no cut line, no click blockers)
   ------------------------------------------------------- */
.hero{ position:relative; overflow:visible; }
.gradient-bg{
  position:absolute;
  inset:-8% -12% -40% -12%;     /* extends far below the hero */
  pointer-events:none;           /* never blocks clicks */
  z-index:0;                     /* always behind content */
  background:
    radial-gradient(680px 280px at 14% 24%, rgba(144,108,255,.25), rgba(144,108,255,0)),
    radial-gradient(760px 320px at 82% 8%,  rgba(34,197,94,.16),  rgba(34,197,94,0));
  /* soft fade towards the very bottom */
  -webkit-mask-image: linear-gradient(#000 85%, transparent);
  mask-image: linear-gradient(#000 85%, transparent);
}

/* Stats tiles */
.stat-tile{
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 16px 12px;
  text-align:center;
}
.stat-value{ font-weight:700; font-size:28px; line-height:1; }
.stat-label{ opacity:.75; font-size:12px; text-transform:uppercase; letter-spacing:.06em; }

/* Feature list, graph, trusted strip */
.hero-graph .border-bottom{ border-color: rgba(255,255,255,.12) !important; }
.trusted-strip { display:flex; gap:14px; padding-left:0; }
.flag-img{
  display:inline-block; width:18px; height:18px; border-radius:50%;
  border:1px solid rgba(255,255,255,.14);
}

/* Flow pills */
.pill-step{
  display:inline-flex; align-items:center; gap:.5rem;
  padding:.5rem .75rem; border-radius:999px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  font-weight: 600;
}
.pill-step .num{
  display:inline-grid; place-items:center;
  width:24px; height:24px; border-radius:50%;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  color:#0b1222; font-weight:700;
}

/* Testimonial avatar */
.avatar-circle{
  width:40px; height:40px; border-radius:50%;
  display:grid; place-items:center; flex:0 0 40px;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
}
.avatar-circle i{ font-size:18px; opacity:.85; }

/* Muted text tone */
.text-muted{ color:#a9b4d0 !important; opacity:1 !important; }


/* navbar brand as image */
.navbar-brand img {
  height: auto;    
  width: 100px;        /* tweak to taste (20–28px) */
  display: block;
  filter: brightness(0) invert(1); /* make any colored logo render as white */
  opacity: .95;
}
.navbar-brand { padding: 0; }  /* slightly tighter vertical rhythm */


/* ----------------------------
   Mobile refinement & fixes
   ---------------------------- */

/* 1) Phones: let the BODY scroll (more reliable than a scroll
      container with mobile browser chrome), and drop fixed bg. */
@media (max-width: 576px) {
  html, body { height: auto; }
  body {
    overflow: auto;                 /* restore natural scrolling */
    background-attachment: scroll;  /* fixed => scroll for perf */
  }

  /* The “only content scrolls” pattern works great on desktop,
     but on phones the address bar resizing can clip children.
     Let the page flow normally on mobile. */
  .layout {
    height: auto;
    overflow: visible;
  }

  /* 2) Navbar & brand sizing */
  .topbar { position: sticky; top: 0; z-index: 2000; }
  .navbar-brand { padding: 0; }
  .navbar-brand img {
    height: 28px;       /* was wide; keep logo crisp but compact */
    width: auto;
    filter: brightness(0) invert(1);
    opacity: .98;
  }

  /* 3) Hero spacing & typography */
  .hero { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
  .display-5 { font-size: clamp(1.6rem, 6vw + .6rem, 2.1rem); line-height: 1.12; }
  .lead { font-size: 1rem; }

  /* 4) Background glow never blocks clicks & never “cuts” */
  .gradient-bg {
    inset: -12% -12% -32% -12%;
    -webkit-mask-image: linear-gradient(#000 82%, transparent);
            mask-image: linear-gradient(#000 82%, transparent);
  }

  /* 5) Tighten cards/pills for small screens */
  .card-glass { border-radius: 12px; }
  .stat-tile { padding: 12px 10px; }
  .stat-value { font-size: 22px; }
  .stat-label { font-size: 11px; letter-spacing: .05em; }

  .pill-step { padding: .4rem .6rem; gap: .4rem; }
  .pill-step .num { width: 22px; height: 22px; font-size: .9rem; }

  /* 6) Trusted-by strip: allow wrap and avoid overflow */
  .trusted-strip {
    flex-wrap: wrap;
    gap: 10px;
  }
  .trusted-strip li { margin-right: 2px; }
  .trusted-strip .text-muted { white-space: nowrap; }

  /* Optionally hide country names on extra-small screens */
  @media (max-width: 380px) {
    .trusted-strip .text-muted { display: none; }
  }

  /* 7) Graph card: reduce height a bit */
  .hero-graph svg { height: 180px !important; }
}

/* 8) Make sure dropdowns are never clipped by any parent overflow */
.dropdown-menu { z-index: 3000; }

/* 9) Safety: nothing should sit on top of the dropdown trigger */
.topbar { isolation: isolate; }



/* --- horizontal overflow fixes (mobile) --- */
html, body { overflow-x: hidden; }

/* let hero glow extend vertically but never push page width */
.hero{ overflow-y: visible; overflow-x: hidden; }

/* absolutely-positioned gradients can trigger side scroll on some browsers */
.gradient-bg{
  inset: -8% 0 -40% 0;      /* no negative left/right */
  width: 100%;
}

/* very long inline bits (chips/flags/buttons) shouldn’t cause overflow */
.trusted-strip{ flex-wrap: wrap; }
.trusted-strip li{ white-space: nowrap; }

/* safety: SVG/figures/images shrink within the container */
svg, img { max-width: 100%; height: auto; }

/* buttons/inline pills won’t create a long unbreakable line */
.btn, .pill-step { max-width: 100%; }


@media (min-width: 992px){
  body { overflow: hidden; }        /* desktop content-only scroll */
  .layout{ height: calc(100vh - 56px); overflow: auto; }
}
@media (max-width: 991.98px){
  body { overflow: auto; }          /* phones: normal page scroll */
  .layout{ height: auto; overflow: visible; }
}
/* tighter brand & toggler on small screens */
.navbar-brand { padding: 0; }
.navbar-brand img { height: 28px; width: auto; filter: brightness(0) invert(1); }
.navbar-toggler { border: 1px solid rgba(255,255,255,.2); }


@media (max-width:576px){
  .hero .d-flex.align-items-center.gap-2.small.text-muted.mt-1{
    flex-direction:column !important;
    align-items:flex-start !important;
    gap:.5rem !important;
  }
}
/* Contact page brand image */
.contact-brand{
  width: 160px;
  max-width: 60%;
  height: auto;
  opacity: .95;
}

/* Slightly tighter layout on small screens */
@media (max-width: 576px){
  .card.card-glass.p-4.p-md-5{ padding: 1.25rem !important; }
}
.main-narrow, .legal-content {
  max-width: var(--content-max);
  margin-left: auto; margin-right: auto;
}
.legal-content h1, .legal-content h2, .legal-content h3 {
  line-height: 1.25;
  margin-top: 1.25rem;
  margin-bottom: .75rem;
}
.legal-updated { opacity:.8; font-size:.95rem; }

.legal-toc {
  position: relative;
  padding: .75rem 1rem;
  border-radius: .75rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
.legal-toc a { text-decoration: none; }
.legal-toc .list-group-item {
  background: transparent; border: 0; padding: .25rem 0;
}
.legal-content p { margin-bottom: .9rem; }
.legal-content ul, .legal-content ol {
  padding-left: 1.25rem; margin-bottom: 1rem;
}
.legal-content li + li { margin-top: .25rem; }

.hero .trusted-strip { gap:.5rem; }
@media (max-width: 991.98px) {
  .hero .display-5 { font-size: 2rem; }
  .stat-tile { text-align:center; }
}

.card-glass { backdrop-filter: blur(6px); background: rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.08); }

.avatar-circle {
  width:40px;height:40px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;
  background: rgba(255,255,255,.08);
}
.pill-step { display:inline-flex; align-items:center; gap:.5rem; padding:.35rem .6rem; border-radius:999px;
  border:1px solid rgba(255,255,255,.12); font-size:.9rem; }
.pill-step .num { width:1.4rem;height:1.4rem;border-radius:999px; display:inline-grid; place-items:center;
  background: rgba(255,255,255,.08); font-weight:600; font-size:.85rem; }


.card-header {
  background-color: #8073ff;
}

.card {
  
  background-color: #192237e8;
}
.bg-dark {
  background-color: #8276ed !important;
}

