/* =========================================================
   GLOBAL RESET
========================================================= */

* {
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html, body{
  width:100%;
  max-width:100%;
}

html, body{
  min-height:100%;
}

body{
  font-family:'Inter', sans-serif;
  min-height:100vh;
  background:#f5f7fb;
  color:#1E40AF;
  line-height:1.6;
  overflow-x:hidden;
}

.nav-buttons{
/*display:flex;*/
align-items:center;
gap:10px;
flex-wrap:nowrap;
}

.nav-buttons .btn{
display:flex;
align-items:center;
justify-content:center;
height:36px;
padding:0 14px;
white-space:nowrap;
}

/* =========================================================
   GLOBAL RESET
========================================================= */

* {
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html, body{
  width:100%;
  max-width:100%;
}

html, body{
  min-height:100%;
}
/* =========================================================
   GLOBAL HEADER
========================================================= */

.header{
position:fixed;
top:0;
left:0;
width:100%;

min-height:110px;
/*padding:20px*/

z-index:9999;

background:#ffffff;
box-shadow:0 2px 8px rgba(0,0,0,.08);
}

.header-container{
max-width:1340px;
margin:auto;
padding:20px;
display:flex;
align-items:center;
justify-content:space-between;
}

/* Prevent header overlap */



/* =========================================================
   LOGO / BRAND
========================================================= */

.logo{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:0.85rem;
  text-decoration:none;
  width:fit-content;
}

.logo-icon{
  width:64px;
  height:64px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:visible;
  flex:0 0 64px;
}

.logo-icon img{
  width:180px;
  height:180px;
  object-fit:contain;
  transform:translate(-20px,0);
}

.logo-text{
  display:flex;
  flex-direction:column;
  line-height:1.05;
  font-weight:800;
}

.logo-wordmark {
    font-size: 1.95rem;
    color: #32abef;
    letter-spacing: .03em;
    font-family: 'Font Awesome 6 Free';
}

.logo-title{
  font-size:1.4rem;
  font-weight:800;
  color:#111;
}

.logo-subtitle{
  font-size:0.82rem;
  font-weight:700;
  color:rgba(59, 92, 180, 0.55);
  letter-spacing:.08em;
  text-transform:uppercase;
}

/* desktop: flush left */
@media (min-width: 769px){
  .logo{
    margin:0;
    padding:0;
    border-radius:0;
    background:none;
    box-shadow:none;
    justify-content:flex-start;
  }

  .logo-text{
    align-items:flex-start;
    text-align:left;
  }
}

/* mobile: centered and more prominent */
@media (max-width: 768px){
  .logo{
    width:100%;
  /*  justify-content:center;*/
    text-align:center;
    padding:14px 18px;
    border-radius:18px;
    background:linear-gradient(180deg, #ffffff, #f8fafc);
    box-shadow:0 8px 24px rgba(0,0,0,.08);
    border:1px solid rgba(0,0,0,.05);
  }

  .logo-text{
    align-items:center;
    text-align:center;
  }

.logo-wordmark{
    font-size:1.95rem;
  }

  .logo-title{
    font-size:1.2rem;
  }

  .logo-subtitle{
    font-size:0.8rem;
    letter-spacing:.1em;
  }
}
/* =========================================================
   BUTTON SYSTEM
========================================================= */

.btn{
  padding:.5rem 1.25rem;
  border:none;
  border-radius:25px;

  font-weight:500;
  cursor:pointer;

  display:inline-flex;
  align-items:center;
  gap:.5rem;

  text-decoration:none;
  transition:all .3s ease;
}

.btn-primary{
  background:#88cff1;
  color:#000;
  font-size:.825rem;
}

.btn-primary:hover{
  background:#2563EB;
  transform:translateY(-1px);
}

.btn-secondary{
  background:#88cff1;
  color:#000;
  font-size:.825rem;
}

/* =========================================================
   NAV + TAB PILL SYSTEM
========================================================= */

.nav-buttons .btn,
.tab-btn{

  padding:.55rem 1.2rem;
  border-radius:999px;

  font-size:.85rem;
  font-weight:600;

  background:#E0F2FE;
  color:#075985;

  display:inline-flex;
  align-items:center;
  gap:.45rem;

  transition:all .25s ease;

  box-shadow:inset 0 0 0 1px rgba(14,165,233,.25);
}

.nav-buttons .btn:hover,
.tab-btn:hover{
  background:#BAE6FD;
  transform:translateY(-1px);
}

.nav-buttons .btn-primary,
.tab-btn.active{
  background:linear-gradient(135deg,#0EA5E9,#2563EB);
  color:#fff;
}


/* =========================
   desktop FOOTER
========================= */
.footer {
  background: #0b1220;
  color: #cbd5e1;
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 48px 20px;
  margin-top:16px;
}

.footer-container {
  max-width: 1100px;
  margin: auto;

  display: grid;
  grid-template-columns:
    repeat(auto-fit, minmax(200px, 1fr));

  gap: 40px;
}
.footer-title {
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
}

.footer-subtitle {
  color: #64748b;
  font-size: .85rem;
  margin-top: 4px;
}

.footer-meta {
  margin-top: 10px;
  font-size: .8rem;
  color: #64748b;
  max-width: 260px;
}
.footer-group {
  display: flex;
  flex-direction: column;
}

.footer-heading {
  color: #e2e8f0;
  font-size: .9rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.footer-group a {
  color: #94a3b8;
  text-decoration: none;
  font-size: .85rem;
  margin-bottom: 8px;
}

.footer-group a:hover {
  color: #fff;
}
.footer-right {
  font-size: .85rem;
}

.footer-ip {
  margin-top: 8px;
  font-size: 12px;
  color: #64748b;
  max-width: 240px;
}


/* =========================================================
   MOBILE FOOTER
========================================================= */

 /*  SHOW MOBILE FOOTER */
  .mobile-footer{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;

    position:fixed;
    bottom:0;
    left:0;
    width:100%;

    background:#020617;
    border-top:1px solid rgba(255,255,255,.08);

    padding:10px 8px;
    z-index:999;
  }

  .mobile-footer-links{
    display:flex;
    gap:14px;
    flex-wrap:wrap;
    justify-content:center;
  }

  .mobile-footer-links a{
    color:#94a3b8;
    font-size:12px;
    text-decoration:none;
  }

  .mobile-footer-copy{
    margin-top:6px;
    font-size:11px;
    color:#64748b;
  }

/* Default states */
.footer {
  display: block;
}

.mobile-footer {
  display: none;
}


/* =========================================================
   UTILITIES
========================================================= */

.hidden-section{
  display:none !important;
}

#backToTop{
  position:fixed;
  right:20px;
  bottom:90px; /* sits above mobile footer */

  width:42px;
  height:42px;

  border-radius:50%;
  border:none;

  background:#2563EB;
  color:white;

  display:none;
  align-items:center;
  justify-content:center;

  cursor:pointer;
  z-index:999;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width:768px){
    
    /* Prevent content from hiding behind mobile footer */
body{
  padding-bottom:70px;
}

  .header-container{
    flex-direction:column;
    gap:.75rem;
    padding:.75rem 1rem;
  }

  .nav-buttons{
    justify-content:center;
    flex-wrap:wrap;
  }

  .photo-gallery{
    grid-template-columns:repeat(2,1fr);
  }

  .logo-icon img{
    transform:translate(15px,8px);
    width:130px;
    height:130px;
  }

  .logo-text{
    margin-left:58px;
    margin-top:18px;
    text-align:center;
  }

}

@media (max-width:768px){

  .nav-buttons{
    display:flex;
    gap:10px;

    overflow-x:auto;
    overflow-y:hidden;

    white-space:nowrap;
    flex-wrap:nowrap;

    justify-content:flex-start;

    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }

  .nav-buttons::-webkit-scrollbar{
    display:none;
  }

}

/* =========================
   CONTENT TABS
========================= */
.content-tabs {
  background: white;
  backdrop-filter: blur(15px);
  border-radius: 15px;
  padding: 1.5rem;
 margin-bottom: 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.1);
}

/*  FIX: tab row must wrap instead of forcing width overflow */
.tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
  /*border-bottom: 1px solid rgba(59,130,246,.2);*/
}

.tab-btn {
  background: none;
  border: none;
  padding: .75rem 1.5rem;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all .3s ease;
  white-space: nowrap;
}

.tab-btn.active {
  color: #3B82F6;
  border-bottom-color: #3B82F6;
}

.tab-btn:hover {
  color: #3B82F6;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* =========================================================
   MOBILE SCROLL — ACTION BAR
========================================================= */

@media (max-width:768px){

  .action-bar.action-dock{
    display:flex;
    flex-wrap:nowrap;

    overflow-x:auto;
    overflow-y:hidden;

    width:100%;

    gap:8px;
    padding:8px 6px;

    -webkit-overflow-scrolling:touch;

    scrollbar-width:none;
  }

  .action-bar.action-dock::-webkit-scrollbar{
    display:none;
  }

  .action-bar.action-dock .pill{
    flex:0 0 auto;
    white-space:nowrap;
  }

}

/* Buttons */
.btn {
  padding: .5rem 1.25rem;
  border: none;
  border-radius: 25px;
  font-weight: 500;
  cursor: pointer;
  transition: all .3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.btn-primary {
  background: #88cff1;
  color: #000;
  font-size: .825rem;
}

.btn-primary:hover {
  background: #2563EB;
  transform: translateY(-1px);
}

.btn-secondary {
  background: #88cff1;
  color: #000;
  font-size: .825rem;
}

.btn-secondary:hover {
  background: rgba(255,255,255,.9);
  transform: translateY(-1px);
}

/* Messages Button */
#messagesBtn {
  color: #000;
  font-weight: 600;
  font-size: 0.825rem;
}

.message-image img {
  max-width: 100%;
  border-radius: 10px;
  margin-top: 8px;
}


.nav-admin {
  background: linear-gradient(135deg, #1e293b, #334155);
  color: #ffffff;
  border: 1px solid #1e293b;
}
.nav-admin:hover {
  background: linear-gradient(135deg, #0f172a, #1e293b);
}


/* ===========scrolling begins awith minor adjustments===== */
.nav-buttons .btn,
.tab-btn {
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;

  background: #E0F2FE;
  color: #075985;

  border: none;
  text-decoration: none;

  display: inline-flex;
  align-items: center;
  gap: 0.45rem;

  transition: all 0.25s ease;
  box-shadow: inset 0 0 0 1px rgba(14,165,233,0.25);
}

/* =========================================================
   MOBILE NAV SCROLL (CLEAN IMPLEMENTATION)
========================================================= */

@media (max-width:768px){

  /* Horizontal scroll menus */
  .nav-buttons,
  .tab-buttons{
    display:flex;
    flex-wrap:nowrap;

    overflow-x:auto;
    overflow-y:hidden;

   /* width:100%;*/

    gap:8px;
    padding:6px 0;

    -webkit-overflow-scrolling:touch;

    scrollbar-width:none;
  }

  .nav-buttons::-webkit-scrollbar,
  .tab-buttons::-webkit-scrollbar{
    display:none;
  }

  .nav-buttons .btn,
  .tab-btn{
    flex:0 0 auto;
    white-space:nowrap;
  }

}


/* =========================================================
   ACTION BAR — FULL WIDTH ON MOBILE ONLY
   Scope: .action-bar.action-dock
========================================================= */

@media (max-width: 768px) {

  .action-bar.action-dock {
    width: 100vw;
    max-width: 100vw;

    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);

    border-radius: 0;            /* flush edge-to-edge */
    padding-left: 1rem;
    padding-right: 1rem;
  }

}


/* =========================================================
   ACTION BAR — MATCH HEADER NAV PILLS (LIVE SAFE)
   Scope: .action-bar.action-dock ONLY
========================================================= */

.action-bar.action-dock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;

  padding: 0.75rem 1rem;
  margin-top: 1rem;

  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);

  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* Grouping */
.action-bar .action-primary,
.action-bar .action-secondary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Base pill (mirrors header .btn style) */
.action-bar .pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;

  padding: 0.45rem 1.05rem;
  border-radius: 999px;

  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;

  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;

  border: none;
  background: rgba(14,165,233,0.10);
  color: #075985;

  transition:
    background 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
}

/* Hover */
.action-bar .pill:hover {
  background: rgba(14,165,233,0.20);
  transform: translateY(-1px);
}

/* Primary pill (New Post) */
.action-bar .pill.primary {
  background: linear-gradient(135deg, #0EA5E9, #2563EB);
  color: #fff;
  box-shadow: 0 6px 18px rgba(37,99,235,0.35);
}

/* Ghost pills (Videos / Photos / Stories) */
.action-bar .pill.ghost {
  background: rgba(14,165,233,0.08);
  color: #075985;
}

.action-bar .pill.ghost:hover {
  background: rgba(14,165,233,0.18);
}

/* Icons */
.action-bar .pill i {
  font-size: 0.85rem;
  opacity: 0.9;
}
/* =========================
   SIDEBAR WIDGETS
========================= */
.sidebar-widget {
  background: white;
  backdrop-filter: blur(15px);
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.1);
  overflow: hidden;
}

.widget-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1E40AF;
  margin-bottom: 1rem;
}

.sidebar-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748B;
  margin-bottom: 0.75rem;
}

/* Ad Card */
.ad-card {
  background: rgba(255,255,255,0.95);
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  border: 3px solid rgba(59,130,246,.35);
}

.ad-box {
  width: 100%;
  height: 250px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: repeating-linear-gradient(
    135deg,
    #ECEFF3,
    #ECEFF3 12px,
    #F6F7F9 12px,
    #F6F7F9 24px
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-text {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(0,0,0,.55);
  line-height: 1.35;
}

/* MOBILE */
@media (max-width:768px){

  /*  HIDE DESKTOP FOOTER */
  .footer {
    display: none;
  }

  /*  SHOW MOBILE FOOTER */
  .mobile-footer{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;

    position:fixed;
    bottom:0;
    left:0;
    width:100%;

    background:#020617;
    border-top:1px solid rgba(255,255,255,.08);

    padding:10px 8px;
    z-index:999;
  }

  .mobile-footer-links{
    display:flex;
    gap:14px;
    flex-wrap:wrap;
    justify-content:center;
  }

  .mobile-footer-links a{
    color:#94a3b8;
    font-size:12px;
    text-decoration:none;
  }

  .mobile-footer-copy{
    margin-top:6px;
    font-size:11px;
    color:#64748b;
  }
}

/* =========================================================
   PILL BUTTON SYSTEM (NAV + TABS)
   Unified desktop & mobile
========================================================= */


/* Shared pill container */
.nav-buttons,
.tab-buttons {
  /*display: flex;*/
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0.50rem;
  background: rgba(255,255,255,0.9);
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.25);
}

/* Shared pill buttons */
.nav-buttons .btn,
.tab-btn {
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;

  background: #E0F2FE;
  color: #075985;

  border: none;
  text-decoration: none;

  display: inline-flex;
  align-items: center;
  gap: 0.45rem;

  transition: all 0.25s ease;
  box-shadow: inset 0 0 0 1px rgba(14,165,233,0.25);
}

/* Hover / focus */
.nav-buttons .btn:hover,
.tab-btn:hover {
  background: #BAE6FD;
  transform: translateY(-1px);
}

/* Logout */
.nav-buttons .btn[href*="logout"] {
  /*background: rgba(239,68,68,0.10);*/
  color: #B91C1C;
}

/* Active / primary */
.nav-buttons .btn-primary,
.tab-btn.active {
  background: linear-gradient(135deg, #0EA5E9, #2563EB);
  color: #fff;
 box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

/* Icon sizing */
.nav-buttons .btn i,
.tab-btn i {
  font-size: 0.9rem;
}

/* =========================================================
   MOBILE SCROLL MENUS (NAV + PROFILE TABS)
   Mobile only — desktop layout unchanged
========================================================= */

@media (max-width: 768px) {

  .nav-buttons,
  .tab-buttons {

    display: flex;
    flex-wrap: nowrap;        /* prevent wrapping */

    overflow-x: auto;
    overflow-y: hidden;

    justify-content: flex-start; /* don't center when scrolling */

    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;

    padding-bottom: 4px;

    scrollbar-width: none; /* Firefox */
  }

  /* hide scrollbar */
  .nav-buttons::-webkit-scrollbar,
  .tab-buttons::-webkit-scrollbar {
    display: none;
  }

  /* prevent buttons shrinking */
  .nav-buttons .btn,
  .tab-btn {

    flex: 0 0 auto;
    white-space: nowrap;

    scroll-snap-align: start;
  }

}

/* =========================================================
   MOBILE NAV SCROLL FIX
========================================================= */

@media (max-width:768px){

  .nav-buttons{

    justify-content:flex-start !important; /* critical */
    flex-wrap:nowrap !important;

    overflow-x:auto;
    overflow-y:hidden;

    -webkit-overflow-scrolling:touch;

    scrollbar-width:none;
  }

  .nav-buttons::-webkit-scrollbar{
    display:none;
  }

  .nav-buttons .btn{
    flex:0 0 auto;
    white-space:nowrap;
  }

}

/* =========================================
   FIX MOBILE NAV SCROLL
========================================= */

@media (max-width:768px){

  .nav-buttons{
    display:flex;
    flex-direction:row;
    flex-wrap:nowrap;

    width:100%;
    max-width:100%;

    overflow-x:auto;
    overflow-y:hidden;

    justify-content:flex-start !important;

    gap:8px;

    -webkit-overflow-scrolling:touch;

    scrollbar-width:none;
  }

  .nav-buttons::-webkit-scrollbar{
    display:none;
  }

  .nav-buttons .btn{
    flex:0 0 auto;
    white-space:nowrap;
  }

}

/* =========================================================
   LOGO / BRAND
========================================================= */

.logo{
  display:flex;
  align-items:center;
  gap:0.75rem;
  text-decoration:none;
}

.logo-icon{
  width:64px;
  height:64px;

  display:flex;
  align-items:center;
  justify-content:center;
  overflow:visible;
}

.logo-icon img{
  width:180px;
  height:180px;
  object-fit:contain;
  transform:translate(-20px,0);
}

.logo-text{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}

.logo-title{
  font-size:0.98rem;
  font-weight:700;
  color:black;
}

.logo-subtitle{
  font-size:0.75rem;
  font-weight:500;
  color:rgba(30,64,175,0.55);
  letter-spacing:.05em;
  text-transform:uppercase;
}

/* =========================================================
   BUTTON SYSTEM
========================================================= */

.btn{
  padding:.5rem 1.25rem;
  border:none;
  border-radius:25px;

  font-weight:500;
  cursor:pointer;

  display:inline-flex;
  align-items:center;
  gap:.5rem;

  text-decoration:none;
  transition:all .3s ease;
}

.btn-primary{
  background:#88cff1;
  color:#000;
  font-size:.825rem;
}

.btn-primary:hover{
  background:#2563EB;
  transform:translateY(-1px);
}

.btn-secondary{
  background:#88cff1;
  color:#000;
  font-size:.825rem;
}

/* =========================================================
   NAV + TAB PILL SYSTEM
========================================================= */

.nav-buttons .btn,
.tab-btn{

  padding:.55rem 1.2rem;
  border-radius:999px;

  font-size:.85rem;
  font-weight:600;

  background:#E0F2FE;
  color:#075985;

  display:inline-flex;
  align-items:center;
  gap:.45rem;

  transition:all .25s ease;

  box-shadow:inset 0 0 0 1px rgba(14,165,233,.25);
}

.nav-buttons .btn:hover,
.tab-btn:hover{
  background:#BAE6FD;
  transform:translateY(-1px);
}

.nav-buttons .btn-primary,
.tab-btn.active{
  background:linear-gradient(135deg,#0EA5E9,#2563EB);
  color:#fff;
}


/* =========================
   desktop FOOTER
========================= */
.footer {
  background: #0b1220;
  color: #cbd5e1;
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 48px 20px;
  margin-top:16px;
}

.footer-container {
  max-width: 1100px;
  margin: auto;

  display: grid;
  grid-template-columns:
    repeat(auto-fit, minmax(200px, 1fr));

  gap: 40px;
}
.footer-title {
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
}

.footer-subtitle {
  color: #64748b;
  font-size: .85rem;
  margin-top: 4px;
}

.footer-meta {
  margin-top: 10px;
  font-size: .8rem;
  color: #64748b;
  max-width: 260px;
}
.footer-group {
  display: flex;
  flex-direction: column;
}

.footer-heading {
  color: #e2e8f0;
  font-size: .9rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.footer-group a {
  color: #94a3b8;
  text-decoration: none;
  font-size: .85rem;
  margin-bottom: 8px;
}

.footer-group a:hover {
  color: #fff;
}
.footer-right {
  font-size: .85rem;
}

.footer-ip {
  margin-top: 8px;
  font-size: 12px;
  color: #64748b;
  max-width: 240px;
}


/* =========================================================
   MOBILE FOOTER
========================================================= */

 /*  SHOW MOBILE FOOTER */
  .mobile-footer{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;

    position:fixed;
    bottom:0;
    left:0;
    width:100%;

    background:#020617;
    border-top:1px solid rgba(255,255,255,.08);

    padding:10px 8px;
    z-index:999;
  }

  .mobile-footer-links{
    display:flex;
    gap:14px;
    flex-wrap:wrap;
    justify-content:center;
  }

  .mobile-footer-links a{
    color:#94a3b8;
    font-size:12px;
    text-decoration:none;
  }

  .mobile-footer-copy{
    margin-top:6px;
    font-size:11px;
    color:#64748b;
  }

/* Default states */
.footer {
  display: block;
}

.mobile-footer {
  display: none;
}


/* =========================================================
   UTILITIES
========================================================= */

.hidden-section{
  display:none !important;
}

#backToTop{
  position:fixed;
  right:20px;
  bottom:90px; /* sits above mobile footer */

  width:42px;
  height:42px;

  border-radius:50%;
  border:none;

  background:#2563EB;
  color:white;

  display:none;
  align-items:center;
  justify-content:center;

  cursor:pointer;
  z-index:999;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width:768px){
    
    /* Prevent content from hiding behind mobile footer */
body{
  padding-bottom:70px;
}

  .header-container{
    flex-direction:column;
    gap:.75rem;
    padding:.75rem 1rem;
  }

  .nav-buttons{
    justify-content:center;
    flex-wrap:wrap;
  }

  .photo-gallery{
    grid-template-columns:repeat(2,1fr);
  }

  .logo-icon img{
    transform:translate(15px,8px);
    width:130px;
    height:130px;
  }

  .logo-text{
    margin-left:58px;
    margin-top:18px;
  }

}

@media (max-width:768px){

  .nav-buttons{
    display:flex;
    gap:10px;

    overflow-x:auto;
    overflow-y:hidden;

    white-space:nowrap;
    flex-wrap:nowrap;

    justify-content:flex-start;

    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }

  .nav-buttons::-webkit-scrollbar{
    display:none;
  }

}

/* =========================
   CONTENT TABS
========================= */
.content-tabs {
  background: white;
  backdrop-filter: blur(15px);
  border-radius: 15px;
  padding: 1.5rem;
 margin-bottom: 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.1);
}

/*  FIX: tab row must wrap instead of forcing width overflow */
.tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
  /*border-bottom: 1px solid rgba(59,130,246,.2);*/
}

.tab-btn {
  background: none;
  border: none;
  padding: .75rem 1.5rem;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all .3s ease;
  white-space: nowrap;
}

.tab-btn.active {
  color: #3B82F6;
  border-bottom-color: #3B82F6;
}

.tab-btn:hover {
  color: #3B82F6;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* =========================================================
   MOBILE SCROLL — ACTION BAR
========================================================= */

@media (max-width:768px){

  .action-bar.action-dock{
    display:flex;
    flex-wrap:nowrap;

    overflow-x:auto;
    overflow-y:hidden;

    width:100%;

    gap:8px;
    padding:8px 6px;

    -webkit-overflow-scrolling:touch;

    scrollbar-width:none;
  }

  .action-bar.action-dock::-webkit-scrollbar{
    display:none;
  }

  .action-bar.action-dock .pill{
    flex:0 0 auto;
    white-space:nowrap;
  }

}

/* Buttons */
.btn {
  padding: .5rem 1.25rem;
  border: none;
  border-radius: 25px;
  font-weight: 500;
  cursor: pointer;
  transition: all .3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.btn-primary {
  background: #88cff1;
  color: #000;
  font-size: .825rem;
}

.btn-primary:hover {
  background: #2563EB;
  transform: translateY(-1px);
}

.btn-secondary {
  background: #88cff1;
  color: #000;
  font-size: .825rem;
}

.btn-secondary:hover {
  background: rgba(255,255,255,.9);
  transform: translateY(-1px);
}

/* Messages Button */
#messagesBtn {
  color: #000;
  font-weight: 600;
  font-size: 0.825rem;
}

.message-image img {
  max-width: 100%;
  border-radius: 10px;
  margin-top: 8px;
}


.nav-admin {
  background: linear-gradient(135deg, #1e293b, #334155);
  color: #ffffff;
  border: 1px solid #1e293b;
}
.nav-admin:hover {
  background: linear-gradient(135deg, #0f172a, #1e293b);
}


/* ===========scrolling begins awith minor adjustments===== */
.nav-buttons .btn,
.tab-btn {
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;

  background: #E0F2FE;
  color: #075985;

  border: none;
  text-decoration: none;

  display: inline-flex;
  align-items: center;
  gap: 0.45rem;

  transition: all 0.25s ease;
  box-shadow: inset 0 0 0 1px rgba(14,165,233,0.25);
}

/* =========================================================
   MOBILE NAV SCROLL (CLEAN IMPLEMENTATION)
========================================================= */

@media (max-width:768px){

  /* Horizontal scroll menus */
  .nav-buttons,
  .tab-buttons{
    display:flex;
    flex-wrap:nowrap;

    overflow-x:auto;
    overflow-y:hidden;

   /* width:100%;*/

    gap:8px;
    padding:6px 0;

    -webkit-overflow-scrolling:touch;

    scrollbar-width:none;
  }

  .nav-buttons::-webkit-scrollbar,
  .tab-buttons::-webkit-scrollbar{
    display:none;
  }

  .nav-buttons .btn,
  .tab-btn{
    flex:0 0 auto;
    white-space:nowrap;
  }

}


/* =========================================================
   ACTION BAR — FULL WIDTH ON MOBILE ONLY
   Scope: .action-bar.action-dock
========================================================= */

@media (max-width: 768px) {

  .action-bar.action-dock {
    width: 100vw;
    max-width: 100vw;

    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);

    border-radius: 0;            /* flush edge-to-edge */
    padding-left: 1rem;
    padding-right: 1rem;
  }

}


/* =========================================================
   ACTION BAR — MATCH HEADER NAV PILLS (LIVE SAFE)
   Scope: .action-bar.action-dock ONLY
========================================================= */

.action-bar.action-dock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;

  padding: 0.75rem 1rem;
  margin-top: 1rem;

  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);

  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* Grouping */
.action-bar .action-primary,
.action-bar .action-secondary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Base pill (mirrors header .btn style) */
.action-bar .pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;

  padding: 0.45rem 1.05rem;
  border-radius: 999px;

  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;

  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;

  border: none;
  background: rgba(14,165,233,0.10);
  color: #075985;

  transition:
    background 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
}

/* Hover */
.action-bar .pill:hover {
  background: rgba(14,165,233,0.20);
  transform: translateY(-1px);
}

/* Primary pill (New Post) */
.action-bar .pill.primary {
  background: linear-gradient(135deg, #0EA5E9, #2563EB);
  color: #fff;
  box-shadow: 0 6px 18px rgba(37,99,235,0.35);
}

/* Ghost pills (Videos / Photos / Stories) */
.action-bar .pill.ghost {
  background: rgba(14,165,233,0.08);
  color: #075985;
}

.action-bar .pill.ghost:hover {
  background: rgba(14,165,233,0.18);
}

/* Icons */
.action-bar .pill i {
  font-size: 0.85rem;
  opacity: 0.9;
}
/* =========================
   SIDEBAR WIDGETS
========================= */
.sidebar-widget {
  background: white;
  backdrop-filter: blur(15px);
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.1);
  overflow: hidden;
}

.widget-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1E40AF;
  margin-bottom: 1rem;
}

.sidebar-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748B;
  margin-bottom: 0.75rem;
}

/* Ad Card */
.ad-card {
  background: rgba(255,255,255,0.95);
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  border: 3px solid rgba(59,130,246,.35);
}

.ad-box {
  width: 100%;
  height: 250px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: repeating-linear-gradient(
    135deg,
    #ECEFF3,
    #ECEFF3 12px,
    #F6F7F9 12px,
    #F6F7F9 24px
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-text {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(0,0,0,.55);
  line-height: 1.35;
}

/* MOBILE */
@media (max-width:768px){

  /*  HIDE DESKTOP FOOTER */
  .footer {
    display: none;
  }

  /*  SHOW MOBILE FOOTER */
  .mobile-footer{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;

    position:fixed;
    bottom:0;
    left:0;
    width:100%;

    background:#020617;
    border-top:1px solid rgba(255,255,255,.08);

    padding:10px 8px;
    z-index:999;
  }

  .mobile-footer-links{
    display:flex;
    gap:14px;
    flex-wrap:wrap;
    justify-content:center;
  }

  .mobile-footer-links a{
    color:#94a3b8;
    font-size:12px;
    text-decoration:none;
  }

  .mobile-footer-copy{
    margin-top:6px;
    font-size:11px;
    color:#64748b;
  }
}

/* =========================================================
   PILL BUTTON SYSTEM (NAV + TABS)
   Unified desktop & mobile
========================================================= */


/* Shared pill container */
.nav-buttons,
.tab-buttons {
  /*display: flex;*/
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0.50rem;
  background: rgba(255,255,255,0.9);
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.25);
}

/* Shared pill buttons */
.nav-buttons .btn,
.tab-btn {
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;

  background: #E0F2FE;
  color: #075985;

  border: none;
  text-decoration: none;

  display: inline-flex;
  align-items: center;
  gap: 0.45rem;

  transition: all 0.25s ease;
  box-shadow: inset 0 0 0 1px rgba(14,165,233,0.25);
}

/* Hover / focus */
.nav-buttons .btn:hover,
.tab-btn:hover {
  background: #BAE6FD;
  transform: translateY(-1px);
}

/* Logout */
.nav-buttons .btn[href*="logout"] {
  /*background: rgba(239,68,68,0.10);*/
  color: #B91C1C;
}

/* Active / primary */
.nav-buttons .btn-primary,
.tab-btn.active {
  background: linear-gradient(135deg, #0EA5E9, #2563EB);
  color: #fff;
 box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

/* Icon sizing */
.nav-buttons .btn i,
.tab-btn i {
  font-size: 0.9rem;
}

/* =========================================================
   MOBILE SCROLL MENUS (NAV + PROFILE TABS)
   Mobile only — desktop layout unchanged
========================================================= */

@media (max-width: 768px) {

  .nav-buttons,
  .tab-buttons {

    display: flex;
    flex-wrap: nowrap;        /* prevent wrapping */

    overflow-x: auto;
    overflow-y: hidden;

    justify-content: flex-start; /* don't center when scrolling */

    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;

    padding-bottom: 4px;

    scrollbar-width: none; /* Firefox */
  }

  /* hide scrollbar */
  .nav-buttons::-webkit-scrollbar,
  .tab-buttons::-webkit-scrollbar {
    display: none;
  }

  /* prevent buttons shrinking */
  .nav-buttons .btn,
  .tab-btn {

    flex: 0 0 auto;
    white-space: nowrap;

    scroll-snap-align: start;
  }

}

/* =========================================================
   MOBILE NAV SCROLL FIX
========================================================= */

@media (max-width:768px){

  .nav-buttons{

    justify-content:flex-start !important; /* critical */
    flex-wrap:nowrap !important;

    overflow-x:auto;
    overflow-y:hidden;

    -webkit-overflow-scrolling:touch;

    scrollbar-width:none;
  }

  .nav-buttons::-webkit-scrollbar{
    display:none;
  }

  .nav-buttons .btn{
    flex:0 0 auto;
    white-space:nowrap;
  }

}

/* =========================================
   FIX MOBILE NAV SCROLL
========================================= */

@media (max-width:768px){

  .nav-buttons{
    display:flex;
    flex-direction:row;
    flex-wrap:nowrap;

    width:100%;
    max-width:100%;

    overflow-x:auto;
    overflow-y:hidden;

    justify-content:flex-start !important;

    gap:8px;

    -webkit-overflow-scrolling:touch;

    scrollbar-width:none;
  }

  .nav-buttons::-webkit-scrollbar{
    display:none;
  }

  .nav-buttons .btn{
    flex:0 0 auto;
    white-space:nowrap;
  }

}

