/* Fonts (UI + Display) */
@font-face {
  font-family: 'Bionix Fat';
  src: url('../styles/bionixfat.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

:root{
  --font-ui: "Bionix Fat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-display: "Bionix Fat", system-ui, sans-serif;

    --bg: radial-gradient(circle at 50% 10%, rgba(38, 104, 255, 0.15), transparent 50%),
      linear-gradient(180deg, #1a2d4d 0%, #152742 50%, #0f1a2e 100%);
  --text: rgba(255,255,255,.92);
  --ink: var(--text);
  --muted: rgba(255,255,255,.70);

  --pill:#e7dfd2;
  --pill-ink:#121212;

  /* tuned to sit better on the dark background */
  --green:#89c64a; /* was #b7f25a — slightly more muted and deeper */
  --orange:#d9571f; /* was #ff6a2a — slightly warmer and less saturated */
  --purple:#7c6cff;

  --card: rgba(255,255,255,.06);
  --card-border: rgba(255,255,255,.10);
  --tools-bg: url('../uploads/media/tools-bg.png');

  --shadow: 0 20px 60px rgba(0,0,0,.55);
  --r: 28px;
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family: var(--font-ui) !important;
  background-image: url('../uploads/media/layout.svg'), var(--bg);
  background-attachment: fixed; /* keep gradient steady while scrolling */
  background-repeat: repeat, no-repeat;
  background-size: 800px, cover;
  background-position: center, top center;
  background-blend-mode: lighten;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings */
h1, h2, .hero-title, .projects-hero__title{
  font-family: var(--font-display) !important;
  letter-spacing: -0.02em;
}

/* Inline color accents used in hero text */
/* In the hero title we force each accent onto its own line for emphasis */
.hero-title .inline-green,
.hero-title .inline-orange,
.hero-title .inline-purple{
  display: inline-block; /* pill-like but kept on its own line via markup */
  font-weight: 800;
  white-space: nowrap;
  margin-top: 6px;
}

/* In the hero subtitle keep accents inline with surrounding text (no extra gaps) */
.hero-sub .inline-green,
.hero-sub .inline-orange,
.hero-sub .inline-purple{
  display: inline-block;
  font-weight: 800;
  white-space: nowrap;
  margin-top: 0;
  padding: 3px 8px; /* smaller pill for inline text */
  border-radius: 8px;
  color: var(--pill-ink);
}

/* specific subtitle pill colors */
.hero-sub .inline-green{ background: var(--green); }
.hero-sub .inline-orange{ background: var(--orange); }
.hero-sub .inline-purple{ background: var(--purple); }
 

.inline-green{ color: var(--green); }
.inline-orange{ color: var(--orange); }
.inline-purple{ color: var(--purple); }

/* Purple pill style for hero (Network Administrator) */
.hero-title .inline-purple{
  display: inline-block; /* make pill fit content */
  background: var(--purple);
  color: var(--pill-ink); /* dark text to match background */
  padding: 6px 12px;
  border-radius: 12px; /* less rounded, more square corners */
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 6px 20px rgba(124,108,255,0.10);
  margin-top: 8px;
}

/* Green pill (e.g. Kosovo Security Force, Networking) */
.hero-title .inline-green{
  display: inline-block;
  background: var(--green);
  color: var(--pill-ink);
  padding: 6px 12px;
  border-radius: 12px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 6px 20px rgba(137,198,74,0.08);
  margin-top: 8px;
}

/* Orange pill (e.g. Network Operations) */
.hero-title .inline-orange{
  display: inline-block;
  background: var(--orange);
  color: var(--pill-ink);
  padding: 6px 12px;
  border-radius: 12px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 6px 20px rgba(217,87,31,0.08);
  margin-top: 8px;
}

.muted{ color: var(--muted); }

/* hide visually, keep for accessibility */
.sr-only{
  position:absolute !important;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* remove noise overlay (we'll use a clean dark background) */
.noise{ display:none !important }

/* Apply the dark background to project/writing/speaking sections */
.projects, .writing, .speaking{
  background: transparent; /* use body background to avoid repeating gradient bands */
  color: var(--text);
}

.wrap{max-width:1100px; margin:0 auto; padding:32px 18px 90px}

/* ===== Top pill nav ===== */
.top{
  position:sticky;
  top:0;
  z-index:5;
  padding:18px 0;
  backdrop-filter: blur(10px);
}
.pill{
  max-width:1100px; margin:0 auto;
  background: var(--pill);
  color: var(--pill-ink);
  border-radius: 999px;
  padding:16px 18px;
  display:flex; align-items:center; justify-content:space-between;
  box-shadow: var(--shadow);
}

.pill a{
  color:var(--pill-ink);
  text-decoration:none;
  font-weight:900;
  letter-spacing:.06em;
  margin-right:16px;
  font-size:14px;
  text-transform: uppercase;
}
.pill a:hover{ 
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  transition: all 0.2s ease;
}
.pill a.is-active{
  background: rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 8px 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.1);
  transition: all 0.2s ease;
}

.pill-left{display:flex; align-items:center; gap:10px}

/* =========================================
   Home icon (dot) - shared (nav + floating)
   (KJO zëvendëson .pill .home-dot scoped)
========================================= */
.home-dot{
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #111;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 10px 26px rgba(0,0,0,.25);
  text-decoration: none;
  margin-right: 10px;
  flex: 0 0 auto;
  font-size: 0;
  letter-spacing: 0;
  text-transform: none;
}
.home-dot__inner{
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--green);
  display: grid;
  place-items: center;
}
.home-dot svg{
  width: 17px;
  height: 17px;
  stroke: #111;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.home-dot:focus-visible{
  outline: 3px solid rgba(17,17,17,.45);
  outline-offset: 4px;
}

/* floating home button */
.home-fab{
  position: fixed;
  left: 26px;
  bottom: 26px;
  z-index: 20;
  margin-right: 0 !important;
}
@media (max-width: 600px){
  .home-fab{ left: 14px; bottom: 14px; }
}

/* ===== Hero (home) ===== */
.hero{
  padding:26px 0 10px;
  min-height: 700px;
  position: relative;
}
.hero-grid{
  display: flex;
  flex-direction: row;
  gap: 26px;
  align-items: center;
}
.avatar-card{
  flex: 0 0 532px;
  max-width: 532px;
  transform: translate(-210px, 304px);
  border-radius: var(--r);
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
}
.avatar-inner{
  border-top-left-radius: calc(var(--r) - 10px);
  border-top-right-radius: 30%;
  border-bottom-right-radius: calc(var(--r) - 10px);
  border-bottom-left-radius: calc(var(--r) - 10px);
  overflow: hidden;
  background: #111;
  aspect-ratio: 17/15;
  width: 100%;
}
.avatar-inner img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-copy{
  flex: 1;
  transform: translate(-220px, -30px);
}

/* Mobile hero layout */
@media (max-width: 768px){
  .hero{
    padding: 12px 0 8px;
    min-height: auto;
  }
  .hero-grid{
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .avatar-card{
    flex: none;
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    order: 2;
    transform: none;
  }
  .hero-copy{
    order: 1;
    transform: none;
    width: 100%;
  }
  .avatar-inner{
    border-top-left-radius: 20px;
    border-top-right-radius: 30%;
    border-bottom-right-radius: 20px;
    border-bottom-left-radius: 20px;
    aspect-ratio: 17/15;
    max-height: 400px;
    max-width: 100%;
    margin: 0;
  }
}

/* Tablet specific adjustments (between phone and desktop) */
@media (min-width: 481px) and (max-width: 768px){
  .avatar-card{
    max-width: 420px;
  }
  
  .avatar-inner{
    aspect-ratio: 17/15;
    max-height: 480px;
  }
  .hero-title{
    font-size: clamp(18px, 4.5vw, 24px);
    line-height: 1.15;
    margin: 6px 0;
  }
  .hero-sub{
    font-size: 11px;
    line-height: 1.35;
  }
  .tag{
    font-size: 10px;
    padding: 3px 8px;
    margin-bottom: 4px;
  }
}
.avatar-placeholder{padding:24px; color:var(--muted)}

.tag{
  display:inline-block;
  padding:10px 16px;
  border-radius: 14px;
  color:#121212;
  font-weight:900;
  letter-spacing:.01em;
  margin: 0 8px 10px 0;
}
.tag-green{background:var(--green)}
.tag-orange{background:var(--orange)}
.tag-purple{background:var(--purple); color:#0b0b0b}

.hero-title{
  font-size: 58px;
  line-height: 1.02;
  margin: 8px 0 12px;
  font-weight: 900;
  text-shadow: 0 10px 24px rgba(0,0,0,.55);
}
.heavy{font-weight:1000}
.hero-sub{color:var(--muted); margin:0; max-width: 62ch}

/* ===== Section title ===== */
.section-title{
  text-align:center;
  font-size: clamp(28px, 4vw, 52px);
  letter-spacing: 1px;
  opacity: .9;
  margin: 40px 0 18px;
}

/* ===== Tools orbit ===== */
.tools{ 
  padding: 18px 0 40px;
  margin-top: 100px;
}
.tool-orbit{
  position: relative;
  width: min(820px, 92vw);
  height: min(520px, 62vw);
  margin: 0 auto;
  border-radius: 32px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  background: var(--card);
}

/* Mobile tools orbit */
@media (max-width: 768px){
  .tools{
    padding: 20px 16px 32px;
    margin-top: 40px;
  }
  .section-title{
    font-size: clamp(16px, 4.5vw, 28px) !important;
    margin: 20px 0 24px !important;
    padding: 0 16px !important;
    line-height: 1.3 !important;
    letter-spacing: 0.5px !important;
  }
  .tool-orbit{
    width: calc(100vw - 40px) !important;
    height: min(360px, 85vw) !important;
    border-radius: 24px !important;
    max-width: 500px !important;
    margin: 0 auto !important;
  }
  .tool-orbit::before{
    border-radius: 24px !important;
  }
  .tool-orbit__bg{
    border-radius: 24px !important;
  }
  .tool-dot{
    /* Force smaller icons on mobile */
    max-width: 28px !important;
    max-height: 28px !important;
    width: 28px !important;
    height: 28px !important;
    box-shadow: 0 6px 24px rgba(0,0,0,.45);
    animation: orbitSpinMobile 18s linear infinite !important;
  }
  .tool-dot img{
    width: 70% !important;
    height: 70% !important;
  }
}

@media (max-width: 480px){
  /* Avatar adjustments for small phones */
  .avatar-card{
    max-width: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
  }
  
  .avatar-inner{
    aspect-ratio: 17/15;
    max-height: 360px;
  }
  
  /* Tools orbit */
  .tool-orbit{
    width: calc(100vw - 32px) !important;
    height: calc(100vw - 32px) !important;
    max-height: 340px !important;
    border-radius: 20px !important;
  }
  .tool-orbit::before{
    border-radius: 20px !important;
  }
  .tool-orbit__bg{
    border-radius: 20px !important;
  }
  .tool-dot{
    max-width: 24px !important;
    max-height: 24px !important;
    width: 24px !important;
    height: 24px !important;
    box-shadow: 0 4px 18px rgba(0,0,0,.4);
    animation: orbitSpinSmall 18s linear infinite !important;
  }
}
  .tool-dot img{
    width: 75% !important;
    height: 75% !important;
  }
}
.tool-orbit__bg{
  position:absolute;
  inset:0;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.35), rgba(0,0,0,0) 60%);
  filter: blur(12px);
  opacity: 1;
}
.tool-dot{
  position: absolute;
  width: var(--s);
  height: var(--s);
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.92);
  box-shadow: 0 18px 70px rgba(0,0,0,.55);
  transform:
    rotate(calc(var(--i) * 360deg / var(--n)))
    translateX(var(--r))
    rotate(calc(var(--i) * -360deg / var(--n)));
  animation: orbitSpin 18s linear infinite;
}
.tool-dot img{ width: 68%; height: 68%; object-fit: contain; display:block; }
.tool-dot span{ font-weight: 800; color:#111; }
@keyframes orbitSpin{
  from { transform:
    rotate(calc(var(--i) * 360deg / var(--n)))
    translateX(var(--r))
    rotate(calc(var(--i) * -360deg / var(--n))); }
  to { transform:
    rotate(calc(var(--i) * 360deg / var(--n) + 360deg))
    translateX(var(--r))
    rotate(calc(var(--i) * -360deg / var(--n) - 360deg)); }
}

@keyframes orbitSpinMobile{
  from { transform:
    rotate(calc(var(--i) * 360deg / var(--n)))
    translateX(calc(var(--r) * 0.6))
    rotate(calc(var(--i) * -360deg / var(--n))); }
  to { transform:
    rotate(calc(var(--i) * 360deg / var(--n) + 360deg))
    translateX(calc(var(--r) * 0.6))
    rotate(calc(var(--i) * -360deg / var(--n) - 360deg)); }
}

@keyframes orbitSpinSmall{
  from { transform:
    rotate(calc(var(--i) * 360deg / var(--n)))
    translateX(calc(var(--r) * 0.5))
    rotate(calc(var(--i) * -360deg / var(--n))); }
  to { transform:
    rotate(calc(var(--i) * 360deg / var(--n) + 360deg))
    translateX(calc(var(--r) * 0.5))
    rotate(calc(var(--i) * -360deg / var(--n) - 360deg)); }
}

/* ===== Carousel base ===== */
.carousel{ margin-top: 10px; }
.carousel-track{
  display:flex;
  gap:18px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  padding: 6px 2px 14px;
  scrollbar-width:none;
}
.carousel-track::-webkit-scrollbar{ display:none; }
.carousel-track.dragging{ scroll-snap-type:none; cursor:grabbing; }

.carousel-slide{
  flex: 0 0 clamp(280px, 72vw, 760px);
  scroll-snap-align: start;
}

.carousel-dots{
  display:flex;
  justify-content:center;
  gap:8px;
  margin-top: 10px;
}
.carousel-dot{
  width:10px;
  height:10px;
  border-radius:999px;
  border: 1px solid rgba(255,255,255,.25);
  background: transparent;
  cursor:pointer;
}
.carousel-dot.is-active{
  background: var(--green);
  border-color: rgba(0,0,0,.25);
}

/* ===== Cards (general) ===== */
.projects .cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card{
  border-radius: var(--r);
  background: var(--card);
  border: 1px solid var(--card-border);
  overflow:hidden;
  box-shadow: var(--shadow);
}
.card-media{height:170px; background:#0f0f0f}
.card-media img{width:100%; height:100%; object-fit:cover; display:block}
.media-placeholder{height:100%; display:flex; align-items:center; justify-content:center; color:var(--muted)}
.card-body{padding:14px 14px 16px}
.card-body h3{margin:0 0 8px; font-size:18px}
.card-body p{margin:0 0 12px; color:var(--muted); font-size:13px; line-height:1.35}
.card-links{display:flex; gap:10px; flex-wrap:wrap}

.chip{
  display:inline-block;
  padding:10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  color: var(--text);
  text-decoration:none;
  font-weight:800;
  font-size:12px;
}
.chip--orange{
  background: var(--orange);
  color:#111;
}

/* ===== Contact ===== */
.contact{margin-top: 56px}
.cta-card{
  border-radius: var(--r);
  padding: 36px;
  /* Dark, semi-opaque panel with background image */
  background: linear-gradient(180deg, rgba(18,24,28,0.35), rgba(9,11,13,0.30)), url('../uploads/media/contact7a95.png');
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 12px 36px rgba(0,0,0,0.45);
}
.cta.card{
  border-radius: var(--r);
  padding: 36px;
  /* Dark, semi-opaque panel with gradient background image */
  background: linear-gradient(180deg, rgba(18,24,28,0.65), rgba(9,11,13,0.60)), url('../uploads/media/gradient_3c0d5.png');
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 12px 36px rgba(0,0,0,0.45);
}
.cta-card h2{
  margin:0 0 16px;
  font-size: 44px;
  line-height:1.04;
  font-weight: 1000;
}

/* Mobile contact section */
@media (max-width: 768px){
  .contact{
    margin-top: 32px;
  }
  .cta-card, .cta.card{
    padding: 24px 16px;
    border-radius: 16px;
  }
  .cta-card h2{
    font-size: clamp(24px, 6vw, 36px);
    line-height: 1.15;
    margin: 0 0 12px;
  }
  .contact .social-row,
  .social-row{
    gap: 12px !important;
    padding-top: 16px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    display: flex !important;
  }
  .contact .social-row .btn,
  .contact .btn-orange,
  .social-row .btn,
  .social-row .btn-orange,
  .cta-card .btn,
  .cta-card .btn-dark,
  .cta-copy .btn,
  form .btn,
  form .btn-accent{
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    padding: 18px 20px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    display: block !important;
    box-sizing: border-box !important;
  }
}

.social-row{
  display:flex;
  gap:24px;
  justify-content:center;
  padding-top: 28px;
  flex-wrap:wrap;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 18px 26px;
  border-radius: 18px;
  text-decoration:none;
  font-weight: 1000;
  letter-spacing:.02em;
  box-shadow: var(--shadow);
}
.btn-ghost{background:#efe9df; color:#111}
.btn-accent{background: var(--green); color:#111}
.btn-dark{background:#101010; color:#fff}

/* Make Send Email / CTA buttons more visible: thin outline + subtle lift */
.cta .btn, .cta-card .btn, .contact .btn{
  border: 1px solid rgba(255,255,255,0.10); /* very thin rim */
  box-shadow: 0 12px 28px rgba(0,0,0,0.45), 0 0 0 1px rgba(0,0,0,0.02) inset;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.cta .btn:hover, .cta-card .btn:hover, .contact .btn:hover{
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(0,0,0,0.52), 0 0 0 1px rgba(255,255,255,0.02) inset;
  border-color: rgba(255,255,255,0.14);
}
.btn-orange{background: var(--orange); color:#111; min-width: 180px}

/* ===== Responsive base ===== */
@media (max-width: 980px){
  .hero-title{font-size: 46px}
  .projects .cards{grid-template-columns: 1fr}
}

/* ================================================
   COMPREHENSIVE RESPONSIVE STYLES
================================================ */

/* ================================================
   MOBILE RESPONSIVE FIXES - COMPREHENSIVE
   Target: 360-430px mobile devices
   
   Key fixes:
   - Navigation pill: smaller, wrapped, touch-friendly
   - Hero section: reduced padding, better text scaling
   - Project cards: fluid width, no overflow
   - Carousel: full-width with proper padding
   - Social buttons: grid layout, equal heights
   - FAB button: safe positioning, no overlap
================================================ */

/* Tablet & Mobile - 768px and below */
@media (max-width: 768px){
  /* Prevent horizontal scroll globally */
  body.page-projects,
  body.site{
    overflow-x: hidden;
    max-width: 100vw;
  }

  /* Main wrapper padding - prevent horizontal overflow */
  .wrap{
    padding: 24px 16px 80px; /* Extra bottom for FAB */
    max-width: 100%;
    overflow-x: hidden;
  }

  /* PAGE-SPECIFIC: Projects page wrapper */
  .page-projects .wrap{
    padding-bottom: 100px; /* More space for FAB + social buttons */
  }

  /* Navigation pill - MOBILE OPTIMIZED with HORIZONTAL SCROLL */
  .pill{
    padding: 10px 8px;
    flex-direction: row;
    align-items: center;
    gap: 0;
    border-radius: 20px;
    max-width: calc(100vw - 20px);
    margin: 0 auto;
    position: relative;
  }

  .pill-left{
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    position: relative;
  }

  .pill-left::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
  }

  .pill-left .home-dot{
    position: sticky;
    left: 0;
    z-index: 10;
    margin-right: 8px;
    flex-shrink: 0;
    width: 44px !important;
    height: 44px !important;
  }

  .pill-left .home-dot .home-dot__inner{
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
    border-radius: 15px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .pill-left .home-dot svg{
    width: 16px !important;
    height: 16px !important;
  }

  .pill-left > a:not(.home-dot) {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .pill a{
    font-size: 11px;
    margin-right: 0;
    padding: 8px 12px;
    min-height: 40px; /* Touch target */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
  }

  .pill-right{
    position: sticky;
    right: 0;
    z-index: 10;
    margin-left: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
  }

  /* Admin toggle button - mobile sizing */
  .pill-right .pill-toggle{
    width: 40px;
    height: 40px;
  }

  .pill-right .pill-toggle .pill-toggle__icon{
    width: 20px;
    height: 20px;
  }

  /* Hide text navigation links on mobile */
  .pill-left > a:not(.home-dot) {
    display: none !important;
  }

  /* Mobile menu toggle button */
  .pill-menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: #111;
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    cursor: pointer;
    padding: 0;
    margin-right: 8px;
    border-radius: 999px;
    transition: all 0.2s ease;
    position: relative;
    z-index: 100;
    pointer-events: auto;
    box-shadow: 0 10px 26px rgba(0,0,0,.25);
  }

  .pill-menu-toggle:hover {
    background: #1a1a1a;
  }

  .pill-menu-toggle:active {
    transform: scale(0.95);
  }

  .pill-menu-icon {
    width: 24px;
    height: 24px;
    stroke: currentColor;
  }
}

/* ================================================
   MOBILE MENU STYLES (Global - works on all screens)
================================================ */

/* Mobile menu dropdown - hidden by default */
.mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  right: 10px;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 8px;
  min-width: 220px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
  z-index: 9999;
  backdrop-filter: blur(20px);
}

.mobile-menu.is-open {
  display: block !important;
  animation: menuSlideIn 0.3s ease-out;
}

@keyframes menuSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu__nav a {
  display: block;
  padding: 12px 16px;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.mobile-menu__nav a:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

/* Hide menu toggle button on desktop (outside mobile media query) */
@media (min-width: 769px) {
  .pill-menu-toggle {
    display: none !important;
  }
  
  .mobile-menu {
    display: none !important;
  }
}

/* Continue tablet/mobile styles */
@media (max-width: 768px){
  /* Hero section */
  .hero{
    padding: 20px 0 10px;
  }

  .hero-title{
    font-size: clamp(28px, 7.5vw, 38px);
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .hero-sub{
    font-size: 15px;
    line-height: 1.5;
  }

  .tag{
    padding: 8px 12px;
    font-size: 13px;
    margin: 0 6px 8px 0;
  }

  /* Hero title inline pills - smaller on mobile */
  .hero-title .inline-purple,
  .hero-title .inline-green,
  .hero-title .inline-orange{
    padding: 4px 10px;
    font-size: inherit;
    border-radius: 10px;
    white-space: normal; /* Allow wrapping on mobile */
    display: inline;
    line-height: 1.3;
  }

  /* Hero subtitle pills */
  .hero-sub .inline-green,
  .hero-sub .inline-orange,
  .hero-sub .inline-purple{
    padding: 2px 6px;
    border-radius: 6px;
  }

  /* Section titles */
  .section-title{
    font-size: clamp(18px, 5vw, 32px);
    margin: 28px 0 20px;
    padding: 0 20px;
    line-height: 1.2;
  }

  /* Tools orbit */
  .tools{
    padding: 20px 0 32px;
  }

  .tool-orbit{
    width: calc(100vw - 32px);
    height: min(400px, 90vw);
    max-width: 600px;
  }

  .tool-dot{
    --s: calc(var(--s) * 0.75) !important; /* Smaller tool icons on mobile */
  }

  /* Cards grid */
  .projects .cards{
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .card-media{
    height: 200px;
  }

  /* Contact section */
  .contact{
    margin-top: 42px;
  }

  .cta-card, .cta.card{
    padding: 24px 18px;
    border-radius: 20px;
  }

  .cta-card h2{
    font-size: clamp(28px, 7vw, 36px);
    margin: 0 0 12px;
  }

  /* Social buttons row - MOBILE GRID */
  .social-row{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    padding-top: 20px;
    max-width: 100%;
  }

  /* On very small screens, stack buttons */
  @media (max-width: 380px){
    .social-row{
      grid-template-columns: 1fr;
    }
  }

  /* Buttons - TOUCH OPTIMIZED */
  .btn{
    padding: 14px 20px;
    font-size: 14px;
    border-radius: 14px;
    min-height: 48px; /* Touch target */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
  }

  .btn-orange{
    min-width: 0; /* Remove fixed width for flexibility */
    width: 100%; /* Fill grid cell */
  }

  /* Form elements */
  form input,
  form textarea{
    font-size: 16px !important; /* Prevents zoom on iOS */
  }

  /* Projects hero section - MOBILE OPTIMIZED */
  .projects-hero{
    padding: 60px 16px 40px; /* Reduced from 80px/50px */
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    overflow: hidden;
  }

  .projects-hero .wrap{
    padding: 0;
    max-width: 100%;
  }

  .projects-hero__inner{
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .projects-hero__title{
    font-size: clamp(26px, 7vw, 44px);
    line-height: 0.95;
    margin: 0;
  }

  .projects-hero__sub{
    font-size: clamp(13px, 3.5vw, 16px);
    text-align: left;
    line-height: 1.45;
    max-width: 100%;
  }

  .projects-hero__right{
    justify-items: start;
  }

  .projects-hero__arrow{
    width: 64px;
    height: 42px;
    font-size: 24px;
  }

  /* Project frame (carousel) - MOBILE OPTIMIZED */
  .page-projects .carousel{
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .page-projects .carousel-track{
    padding: 10px 12px 20px;
    gap: 16px;
  }

  .page-projects .project-frame{
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,.35);
    width: 100%;
  }

  .page-projects .project-frame__media{
    aspect-ratio: 4/3; /* Taller ratio for mobile */
    width: 100%;
    overflow: hidden;
  }

  .page-projects .project-frame__media img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .page-projects .project-frame__bar{
    flex-direction: column;
    align-items: flex-start;
    padding: 14px;
    gap: 12px;
  }

  .page-projects .project-frame__name{
    font-size: 14px;
    font-weight: 900;
  }

  .page-projects .project-frame__chips{
    margin-top: 6px;
    gap: 6px;
    display: flex;
    flex-wrap: wrap;
  }

  /* Carousel slides - FLUID WIDTH */
  .carousel-slide{
    flex: 0 0 calc(100vw - 64px); /* Better side margins */
    max-width: 500px;
    min-width: 280px;
  }

  /* Carousel navigation - MOBILE CENTERED */
  .page-projects .projects-nav{
    margin: 20px auto 0;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(10px);
    width: fit-content;
    max-width: calc(100vw - 40px);
  }

  .page-projects .nav-btn{
    width: 42px;
    height: 42px;
    min-width: 42px; /* Prevent shrinking */
    font-size: 20px;
  }

  .page-projects .carousel-dots{
    gap: 8px;
    max-width: calc(100vw - 180px); /* Space for buttons */
    overflow-x: auto;
    scrollbar-width: none;
  }

  .page-projects .carousel-dots::-webkit-scrollbar{
    display: none;
  }

  /* Writing items */
  .writing-item{
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 14px;
  }

  .writing-cover{
    aspect-ratio: 16/9;
  }

  .writing-title{
    font-size: clamp(22px, 5vw, 34px);
  }

  /* Home FAB - MOBILE SAFE POSITIONING */
  .home-fab.home-dot{
    width: 47px !important;
    height: 47px !important;
    left: 14px;
    bottom: 18px;
    z-index: 100; /* Above content but below modals */
    
    /* Safe area for notched phones */
    bottom: calc(18px + env(safe-area-inset-bottom));
  }

  .home-fab .home-dot__inner{
    width: 30px !important;
    height: 30px !important;
  }

  .home-fab svg{
    width: 17px !important;
    height: 17px !important;
  }

  /* On projects page, move FAB higher to avoid CTA overlap */
  .page-projects .home-fab{
    bottom: calc(18px + env(safe-area-inset-bottom));
    left: 14px;
  }

  .home-fab .home-dot__inner{
    width: 36px;
    height: 36px;
  }

  .home-fab svg{
    width: 20px;
    height: 20px;
  }

  /* Ensure FAB doesn't cover carousel controls */
  .page-projects .projects-nav{
    position: relative;
    z-index: 10;
  }

  /* Coming soon card */
  .coming-card{
    padding: 52px 18px;
    border-radius: 24px;
  }

  .coming-soon{
    font-size: clamp(28px, 8vw, 56px);
  }
}

/* Small Mobile - 480px and below */
@media (max-width: 480px){
  /* Even tighter spacing */
  .wrap{
    padding: 20px 12px 50px;
  }

  .top{
    padding: 12px 0;
  }

  .pill{
    padding: 8px 10px;
    gap: 10px;
  }

  .pill-left{
    gap: 5px 8px;
  }

  .pill a{
    font-size: 10px;
    padding: 6px 10px;
    margin-right: 0;
    letter-spacing: 0.04em;
  }

  .home-dot{
    width: 36px;
    height: 36px;
  }

  .home-dot__inner{
    width: 18px;
    height: 18px;
  }

  .home-dot svg{
    width: 11px;
    height: 11px;
  }

  .pill-right .pill-toggle{
    width: 38px;
    height: 38px;
  }

  .pill-right .pill-toggle .pill-toggle__icon{
    width: 18px;
    height: 18px;
  }

  /* Hero adjustments */
  .hero{
    padding: 16px 0 10px;
  }

  .avatar-inner{
    min-height: 240px;
  }

  .hero-title{
    font-size: clamp(28px, 9vw, 36px);
    margin: 6px 0 10px;
  }

  .hero-sub{
    font-size: 14px;
  }

  .tag{
    padding: 6px 10px;
    font-size: 12px;
  }

  /* Section titles */
  .section-title{
    font-size: clamp(20px, 7vw, 32px);
    margin: 20px 0 12px;
  }

  /* Tools orbit - more compact */
  .tool-orbit{
    width: min(600px, 96vw);
    height: min(380px, 75vw);
  }

  /* CTA section */
  .cta-card h2{
    font-size: clamp(24px, 8vw, 32px);
    line-height: 1.1;
  }

  .social-row{
    gap: 10px;
    padding-top: 16px;
  }

  .btn{
    padding: 12px 16px;
    font-size: 13px;
  }

  .btn-orange{
    min-width: 120px;
  }

  /* Contact form */
  .cta.card{
    padding: 16px 14px;
  }

  form input,
  form textarea,
  form button{
    border-radius: 10px;
    padding: 10px;
  }

  form textarea{
    min-height: 100px;
  }

  /* Projects hero */
  .projects-hero{
    padding: 60px 0 40px;
  }

  .projects-hero__title{
    font-size: clamp(24px, 8vw, 38px);
  }

  .projects-hero__arrow{
    width: 60px;
    height: 38px;
    font-size: 24px;
  }

  /* Carousel adjustments */
  .carousel-track{
    gap: 12px;
  }

  .carousel-slide{
    flex: 0 0 clamp(240px, 90vw, 600px);
  }

  /* Home FAB - smallest size */
  .home-fab{
    width: 64px !important;
    height: 64px !important;
    left: 12px;
    bottom: 12px;
  }

  .home-fab .home-dot__inner{
    width: 34px;
    height: 34px;
  }

  .home-fab svg{
    width: 20px;
    height: 20px;
  }

  /* Gate (landing page) */
  .gate{
    padding: 20px 12px;
  }

  .gate-buttons{
    gap: 16px;
    flex-direction: column;
    width: 100%;
  }

  .gate-buttons .btn{
    width: 100%;
    max-width: 280px;
  }
}

/* Very small devices - 360px and below */
@media (max-width: 360px){
  .hero-title{
    font-size: 20px !important;
    line-height: 1.15;
    margin: 4px 0;
  }
  
  .hero-sub{
    font-size: 10px !important;
  }
  
  .avatar-inner{
    max-height: 250px !important;
  }

  .section-title{
    font-size: 18px;
  }

  .tool-orbit{
    width: 98vw;
    height: 280px;
  }

  .home-fab{
    width: 56px !important;
    height: 56px !important;
  }

  .home-fab .home-dot__inner{
    width: 30px;
    height: 30px;
  }

  .home-fab svg{
    width: 18px;
    height: 18px;
  }
}

/* Landscape orientation fixes for mobile */
@media (max-height: 600px) and (orientation: landscape){
  .hero{
    padding: 12px 0 8px;
  }

  .avatar-inner{
    min-height: 220px;
  }

  .tool-orbit{
    height: 50vh;
  }

  .home-fab{
    width: 56px !important;
    height: 56px !important;
  }
}

/* =========================================
   FIX: Landing / Intro Gate (index.php)
========================================= */
.gate{
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 18px;
}
.gate-wrap{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gate-buttons{
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ======================================================
   PAGE WRAPS (Projects/Writing/Speaking)
====================================================== */
.page-projects .wrap,
.page-writing  .wrap,
.page-speaking .wrap{
  max-width: 1180px;
  width: min(1180px, 92vw);
  margin: 0 auto;
  padding: 32px 18px 70px;
}

/* ======================================================
   SECTION HERO (shared layout): projects / writing / speaking
   (KJO rregullon arrow-in që të mos dalë si katror i vogël)
====================================================== */
.projects-hero{
  width: 100%;
  padding: 110px 0 70px;
  border-bottom-left-radius: 48px;
  border-bottom-right-radius: 48px;
  margin-bottom: 28px;
}
.projects-hero .wrap{ padding: 0 18px; }

.projects-hero__inner{
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: center;
}

.projects-hero__title{
  margin: 0;
  line-height: .9;
  letter-spacing: 1px;
  /* increased by ~10% from the current values */
  font-size: clamp(31px, 4.125vw, 53px);
}

.projects-hero__right{
  display: grid;
  gap: 14px;
  justify-items: end;
}

.projects-hero__sub{
  max-width: 560px;
  margin: 0;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.4;
  text-align: right;
  font-weight: 800;
}

.projects-hero__arrow{
  width: 96px;
  height: 58px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  text-decoration:none;
  font-size: 36px;
  box-shadow: 0 8px 22px rgba(0,0,0,.25);
}

/* page-specific colors + header seam fix */
.page-projects .top{ background: var(--orange); }
.page-projects .projects-hero{ background: var(--orange); }
.page-projects .projects-hero__title{ color:#111; }
.page-projects .projects-hero__sub{ color: rgba(0,0,0,.72); }
.page-projects .projects-hero__arrow{ background: var(--purple); color:#111; }

.page-writing .top{ background: var(--green); }
.page-writing .projects-hero{ background: var(--green); }
.page-writing .projects-hero__title{ color:#111; }
.page-writing .projects-hero__sub{ color: rgba(0,0,0,.72); }
.page-writing .projects-hero__arrow{ background: var(--orange); color:#111; }

.page-speaking .top{ background: var(--purple); }
.page-speaking .projects-hero{ background: var(--purple); }
.page-speaking .projects-hero__title{ color: #111; }
.page-speaking .projects-hero__sub{ color: rgba(0,0,0,.72); }
.page-speaking .projects-hero__arrow{ background: var(--green); color:#111; }

@media (max-width: 820px){
  .projects-hero__inner{ grid-template-columns: 1fr; }
  .projects-hero__right{ justify-items: start; }
  .projects-hero__sub{ text-align: left; }
  .pill a{ font-size: 13px; }
}

/* ======================================================
   PROJECTS PAGE: BIG carousel (projects.php)
====================================================== */
.page-projects .carousel.carousel--big{
  margin: 0 auto;
}
.page-projects .carousel.carousel--big .carousel-track{
  display:flex;
  gap: 0;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  padding: 10px 0 18px;
  scrollbar-width:none;
}
.page-projects .carousel.carousel--big .carousel-track::-webkit-scrollbar{ display:none; }
.page-projects .carousel.carousel--big .carousel-track.dragging{ scroll-snap-type:none; scroll-behavior:auto; cursor:grabbing; }

.page-projects .carousel.carousel--big .carousel-slide{
  flex: 0 0 100%;
  scroll-snap-align: center;
  padding: 0 10px;
}

.page-projects .project-frame{
  max-width: 1120px;
  margin: 0 auto;
  border-radius: 26px;
  overflow:hidden;
  background: rgba(25,25,25,.92);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 10px 40px rgba(0,0,0,.45);
}
.page-projects .project-frame__media{ aspect-ratio: 16/9; background:#0f0f0f; }
.page-projects .project-frame__media img{ width:100%; height:100%; object-fit:cover; display:block; }
.page-projects .project-frame__bar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 12px;
  padding: 12px 14px;
}
.page-projects .project-frame__name{ font-weight: 1000; font-size: 14px; }
.page-projects .project-frame__chips{
  margin-top: 6px;
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
}

.page-projects .projects-nav{
  margin: 16px auto 0;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(0,0,0,.55);
  display:flex;
  align-items:center;
  gap: 12px;
}
.page-projects .nav-btn{
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.10);
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}
.page-projects .projects-nav .carousel-dots{ display:flex; gap:10px; margin:0; }
.page-projects .projects-nav .carousel-dot{
  width:10px; height:10px;
  border-radius:999px;
  border:0;
  background: rgba(255,255,255,.25);
}
.page-projects .projects-nav .carousel-dot.is-active{ background: rgba(255,255,255,.9); }

/* ======================================================
   WRITING / SPEAKING placeholders + list styles
====================================================== */

/* “Coming Soon” base */
.coming-soon{
  text-align:center;
  font-family: var(--font-display);
  font-size: clamp(34px, 6vw, 72px);
  letter-spacing: 1px;
  opacity: .92;
  margin: 48px 0 70px;
}

/* optional: make coming soon look like a soft card */
.coming-card{
  max-width: 1120px;
  margin: 22px auto 0;
  border-radius: 32px;
  padding: 78px 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow);
}
.coming-card .coming-soon{
  margin: 0;
  font-size: clamp(44px, 6vw, 88px);
  color: rgba(255,255,255,.78);
}

/* Writing list (future-ready) */
.writing-list{
  max-width: 1120px;
  margin: 0 auto;
}
.writing-item{
  display:grid;
  grid-template-columns: 320px 1fr;
  gap: 26px;
  align-items:center;
  padding: 18px;
  border-radius: 26px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
}
.writing-cover{
  border-radius: 22px;
  overflow:hidden;
  background: linear-gradient(135deg, rgba(183,242,90,.18), rgba(255,106,42,.18));
  border: 1px solid rgba(255,255,255,.10);
  aspect-ratio: 4/5;
  display:grid;
  place-items:center;
}
.writing-cover span{
  font-family: var(--font-display);
  letter-spacing: 1px;
  text-align:center;
  padding: 14px;
  color: rgba(255,255,255,.92);
}
.writing-topline{
  display:flex;
  gap: 10px;
  align-items:center;
  flex-wrap:wrap;
  margin-bottom: 10px;
}
.writing-date{ color: rgba(255,255,255,.65); font-weight: 800; font-size: 12px; letter-spacing:.06em; }
.writing-title{
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.0;
}
.writing-excerpt{
  margin: 0 0 12px;
  color: rgba(255,255,255,.70);
  max-width: 70ch;
}

@media (max-width: 920px){
  .writing-item{ grid-template-columns: 1fr; }
}

/* Home FAB - Desktop only (bigger) */
@media (min-width: 769px){
  .home-fab{
    width: 50px !important;
    height: 50px !important;
    left: 26px;
    bottom: 26px;
    z-index: 50;
  }

  .home-fab .home-dot__inner{
    width: 34px;
    height: 34px;
  }

  .home-fab svg{
    width: 18px;
    height: 18px;
    stroke-width: 2.6;
  }
}

/* =========================
   TOOLS section custom bg image
   (title + orbit area only)
========================= */
.tools{
  position: relative;
  isolation: isolate;   /* keeps layering clean */
}

/* Image layer behind the orbit so it lines up with the tool icons */
.tool-orbit::before{
  content: "";
  position: absolute;
  inset: 0; /* fill the orbit container so image aligns with icons */

  background-image: var(--tools-bg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  border-radius: 32px; /* match .tool-orbit radius */
  
  opacity: 0.8;
  filter: grayscale(0) contrast(1.1) brightness(1.1);

  z-index: 1;
  pointer-events: none;
}

/* ensure orbit content stays above the image */
.tool-orbit > *{
  position: relative;
  z-index: 2;
}

.pill-right .pill-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  border-radius:999px;
  background:#111;
  color:#fff;
  text-decoration:none;
}

.pill-right .pill-toggle .pill-toggle__icon{
  width:22px;
  height:22px;
  stroke:#fff;
  stroke-width:1.8;
  fill:none;
  stroke-linecap:round;
  stroke-linejoin:round;
}
/* ================================================
   ADMIN PANEL MOBILE TYPOGRAPHY
   Scoped to .admin-panel class (only on admin pages)
   Only affects mobile (max-width: 768px)
   Does NOT affect desktop or public pages
================================================ */
@media (max-width: 768px) {
  /* Base font size for entire admin panel */
  body.admin-panel,
  body.admin-panel * {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }
  
  body.admin-panel h1,
  body.admin-panel h2,
  body.admin-panel h3 {
    font-size: 23px !important;
    line-height: 1.3 !important;
  }
  
  body.admin-panel h4 {
    font-size: 18px !important;
  }
  
  body.admin-panel p,
  body.admin-panel div,
  body.admin-panel td,
  body.admin-panel th,
  body.admin-panel label,
  body.admin-panel li,
  body.admin-panel span,
  body.admin-panel a {
    font-size: 14px !important;
  }
  
  /* Sidebar buttons / Admin navigation chips */
  body.admin-panel .chip {
    font-size: 14px !important;
    padding: 13px 17px !important;
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
  }
  
  body.admin-panel input[type="text"],
  body.admin-panel input[type="email"],
  body.admin-panel input[type="url"],
  body.admin-panel input[type="date"],
  body.admin-panel input[type="number"],
  body.admin-panel input[type="password"],
  body.admin-panel textarea,
  body.admin-panel select {
    font-size: 14px !important;
    padding: 13px !important;
    min-height: 44px !important;
  }
  
  body.admin-panel button,
  body.admin-panel input[type="submit"],
  body.admin-panel .btn {
    font-size: 14px !important;
    padding: 13px 19px !important;
    min-height: 44px !important;
  }
  
  body.admin-panel .pill a {
    font-size: 13px !important;
    padding: 11px 15px !important;
  }
  
  body.admin-panel .muted {
    font-size: 13px !important;
  }
  
  /* Ensure wrap container doesn't override */
  body.admin-panel .wrap {
    font-size: 14px !important;
  }
}

/* Extra small screens (404px and similar) */
@media (max-width: 480px) {
  body.admin-panel,
  body.admin-panel * {
    font-size: 14px !important;
  }
  
  body.admin-panel .chip {
    font-size: 14px !important;
    padding: 14px 17px !important;
    min-height: 44px !important;
  }
  
  body.admin-panel h2 {
    font-size: 24px !important;
  }
}