/* ===============================
   QOS COMPONENT SYSTEM
================================ */
.container{

padding: 0 14px;
}


body{
padding-bottom: 80px;

}


a {
text-decoration: none;
color: inherit;
}

button {
color: inherit;
font-family: inherit;
}

input, textarea {
color: inherit;
font-family: inherit;
}

/* ===============================
   GLOBAL PAGE LOADER
================================ */

.page-loader{

position:fixed;

top:0;
left:0;

width:100%;
height:100%;

background:rgba(255,255,255,0.65);

backdrop-filter:blur(10px);

display:flex;

align-items:center;
justify-content:center;

z-index:9999;

transition:opacity .4s ease;

}

/* LOADER CONTENT */

.loader-content{

text-align:center;

}

/* BAG */

.loader-bag{

position:relative;

animation:bagFloat 1.8s ease-in-out infinite;

}

.loader-bag img{

width:70px;

opacity:0.9;

}


/* FLOAT ANIMATION */

@keyframes bagFloat{

0%{
transform:translateY(0) scale(.95);
opacity:.6;
}

50%{
transform:translateY(-6px) scale(1);
opacity:1;
}

100%{
transform:translateY(0) scale(.95);
opacity:.6;
}

}




/* BUTTON SYSTEM */

.btn{

display:inline-flex;

align-items:center;

justify-content:center;

padding:12px 22px;

font-size:14px;

font-weight:600;

border-radius:var(--radius);

cursor:pointer;

transition:var(--transition);

border:none;

gap:6px;

}



/* PRIMARY BUTTON */

.btn-primary{

background:var(--primary-blue);

color:white;

}

.btn-primary:hover{

background:#1d4ed8;

}



/* GLASS BUTTON */

.btn-glass{

background:white;

border:1px solid var(--border);

color:var(--text-dark);

}

.btn-glass:hover{

background:#f3f4f6;

}



/* SUCCESS BUTTON */

.btn-success{

background:var(--emerald-green);

color:white;

}



/* DANGER BUTTON */

.btn-danger{

background:var(--soft-red);

color:white;

}



/* INPUT SYSTEM */

.input{

width:100%;

padding:12px 16px;

border-radius:12px;

border:1px solid var(--border);

font-size:14px;

outline:none;

transition:var(--transition);

}



.input:focus{

border-color:var(--primary-blue);

}



/* CARD SYSTEM */

.card{
background:var(--card-white);
border:1px solid var(--border);
border-radius:18px;
padding:18px;
transition:var(--transition);
box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}



/* LISTING CARD */
.listing-grid{
display: grid;
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
gap: 16px;
}

/* FORCE 2 PER ROW ON MOBILE */
@media (max-width:600px){
.listing-grid{
grid-template-columns: repeat(2, 1fr);
gap: 14px;
}
}

.listing-card{
background: #fff;
border-radius: 14px;
overflow: hidden;

padding: 0;
/* CLEAN BASE */
border: 1px solid rgba(0,0,0,0.06);

/* SOFT DEPTH */
box-shadow: 0 4px 14px rgba(0,0,0,0.06);

transition: transform .2s ease;
}

.listing-title-row{
display:flex;
align-items:flex-start;
justify-content:space-between;
gap:10px;
margin-bottom:8px;
}

.listing-status-pill{
display:inline-flex;
align-items:center;
justify-content:center;
padding:5px 10px;
border-radius:999px;
font-size:11px;
font-weight:700;
letter-spacing:.01em;
white-space:nowrap;
flex-shrink:0;
}

.listing-status-pill.featured{
background:rgba(37,99,235,0.12);
color:#1d4ed8;
border:1px solid rgba(37,99,235,0.18);
}

.listing-status-pill.boosted{
background:rgba(245,158,11,0.14);
color:#b45309;
border:1px solid rgba(245,158,11,0.24);
}

.listing-status-pill.normal{
background:rgba(148,163,184,0.12);
color:#475569;
border:1px solid rgba(148,163,184,0.2);
}

/* HOVER = FLOAT EFFECT */
.listing-card:hover{
transform: translateY(-3px);
box-shadow: 0 10px 24px rgba(0,0,0,0.1);
}

/* MOBILE TAP FEEDBACK */
.listing-card:active{
transform: scale(0.97);
}

/* BADGES */

.badge{

display:inline-block;

padding:4px 10px;

font-size:12px;

border-radius:8px;

}



/* CATEGORY BUTTON */

.category{

padding:10px 16px;

border-radius:12px;

background:white;

border:1px solid var(--border);

cursor:pointer;

transition:var(--transition);

}

.category:hover{

background:#f3f4f6;

}


/* ===============================
   LISTING CARD SYSTEM
================================ */

/* IMAGE */
.listing-image-wrap{
width: 100%;
aspect-ratio: 1 / 1;
overflow: hidden;
position: relative;
}

/* VERIFIED BADGE */

.badge-verified{

position:absolute;

top:10px;

left:10px;

background:var(--emerald-green);

color:white;

font-size:12px;

padding:4px 8px;

border-radius:6px;

}

/* PRICE */


.listing-price{
font-size: 15px;
font-weight: 700;
color: var(--primary-blue);
margin: 0;
padding: 6px 10px 0px;
}


.boosted-card .listing-price{
font-size:16px;
font-weight:800;


/* subtle highlight */
text-shadow:0 1px 0 rgba(255,255,255,0.5);
}

/* LOCATION */

.listing-location{
display: flex;
align-items: flex-start;
gap: 6px;
font-size:12px;
color:var(--text-gray);
margin-top: 2px;
opacity: 0.8;
}

/* icon */
.location-icon{
width:18px;
height:18px;
min-width: 18px;
margin-top: 2px;
stroke:#9ca3af; /* softer gray */
flex-shrink:0;
}

.listing-location span{
   display: block;
   line-height: 1.3;
}

.seller-page{

padding-top:60px;
max-width:900px;

}




.site-footer{
border-top:1px solid var(--border);
margin-top: 70px;
padding-top : 30px;   

}


.footer-sponsors{

display:flex;
justify-content:center;  /* 🔥 center horizontally */
align-items:center;
gap:1px;
flex-wrap:wrap;          /* optional for responsiveness */
margin-top:10px;

}

/* logos */

.footer-sponsors img{

height:30px;

display:flex;


opacity:.7;
transition:0.2s;
margin: 0;
padding: 0;


}

.footer-sponsors img:hover{

opacity:1;
transform:scale(1.05);

}

/* hide scrollbar */

.footer-sponsors::-webkit-scrollbar{
display:none;
}

/* CTA BUTTON */
#viewListingsBtn{
margin-top:12px;
font-size:15px;
padding:12px;
width:100%;
max-width:260px;
}

/* HELPER TEXT */
.seller-helper{
font-size:13px;
color:#6b7280;
margin-top:6px;
}

/* MAKE PROFILE CLEANER */
.seller-profile{
display:flex;
flex-direction:column;
align-items:center;
gap:6px;
}

/* GRID */
.seller-grid{
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 12px;
margin-top: 10px;
}

/* bigger screens */
@media (min-width: 768px){
.seller-grid{
grid-template-columns: repeat(3, 1fr);
}
}

.listing-body{

padding: 8px 10px 10px;
display: flex;
flex-direction: column;
gap: 4px;
}

.listing-image{
width: 100%;
height: 100%;
object-fit: cover;
display: block;
/* smooth zoom */
transition: transform .4s ease;
}

/* IMAGE HOVER EFFECT */
.listing-card:hover .listing-image{
transform: scale(1.06);
}



/* TEXT */
.listing-title{
font-size: 13px;
font-weight: 600;
padding: 6px 10px 0;
line-height: 1.3;
margin: 0;
/* clean truncation */
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}


/* SELLER INFO */

.listing-meta{

display:flex;

justify-content:space-between;

align-items:center;

margin-top:8px;

}

/* SELLER */

.seller{

display:flex;

align-items:center;

gap:6px;

}

.seller-avatar{

width:22px;

height:22px;

border-radius:50%;

object-fit:cover;

}

.seller-name{

font-size:13px;

color:var(--text-gray);

}


/* SEARCH SYSTEM */

.search-box{

position:relative;

display:flex;

align-items:center;

}

.search-input{

width:0;

opacity:0;

transition:var(--transition);

}

.search-box.active .search-input{

width:260px;

opacity:1;

margin-left:10px;

}

.search-icon{

background:white;

border:1px solid var(--border);

width:36px;

height:36px;

border-radius:10px;

display:flex;

align-items:center;

justify-content:center;

cursor:pointer;

transition:var(--transition);

}

.search-icon:hover{

background:#f3f4f6;

}



/* SEARCH OVERLAY */

.search-overlay{

position:fixed;

top:0;
left:0;

width:100%;
height:100%;

background:rgba(255,255,255,0.15);

backdrop-filter:blur(3px);
box-shadow: 0 0 60px rgba(0,0,0,0.1)inset;

display:flex;

align-items:flex-start;

justify-content:center;

padding-top:120px;

opacity:0;

pointer-events:none;

transition:.25s;

z-index:999;

}

.search-overlay.active{

opacity:1;

pointer-events:auto;

}

.search-overlay-content{

position: relative;
width: 640px;
max-width: 92%;

margin: 0 auto;

}


/* SEARCH BAR */

.search-overlay-bar{

display:flex;

gap:12px;

width:100%;

max-width:90%;

margin:0 auto;

align-items: center;

position: relative;
}


/* INPUT */

.search-overlay-input{

flex:1;

padding:16px 18px;

font-size:16px;

border-radius:14px;

border:1px solid var(--border);

outline:none;

background: white;

}


/* CLOSE BUTTON */

.search-close{

flex-shrink: 0;
background:none;

border:none;

font-size:16px;

cursor:pointer;
padding: 8px;
white-space: nowrap;
}


.dock-item{
  position: relative;
}

.dock-badge{
  position: absolute;
  top: -2px;
  right: 8px;

  background: red;
  color: white;

  font-size: 10px;
  font-weight: 600;

  min-width: 16px;
  height: 16px;

  border-radius: 10px;
   box-shadow: 0 0 0 2px white;
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0 4px;

  z-index: 10;
}



/* FEATURED BADGE */


.badge-featured{
position:absolute;
top:10px;
left:10px;

background: linear-gradient(135deg, #2563eb, #1d4ed8);

color:white;
font-size:11px;
padding:5px 8px;
border-radius:8px;
font-weight:600;
z-index: 5;
box-shadow: 0 6px 14px rgba(37,99,235,0.35);
}

.listing-image-ribbon{
position:absolute;
top:12px;
right:-34px;
display:inline-flex;
align-items:center;
justify-content:center;
width:128px;
padding:6px 0;
background:linear-gradient(135deg, #f59e0b, #d97706);
color:#fff;
font-size:10px;
font-weight:700;
letter-spacing:.08em;
text-transform:uppercase;
transform:rotate(38deg);
box-shadow:0 10px 24px rgba(217,119,6,0.24);
z-index:5;
pointer-events:none;
}




/* ===============================
   LISTING OVERLAY
================================ */

.listing-overlay{

position:absolute;
top:0;
left:0;

width:100%;
height:100%;

background: linear-gradient(
to top,
rgba(0,0,0,0.6),
rgba(0,0,0,0.2)
);


display:flex;
align-items:center;
justify-content:center;

opacity:0;

transition:var(--transition);

border-radius:12px;

z-index:2;


}

/* SHOW ON HOVER */

.listing-image-wrap:hover .listing-overlay{

opacity:1;

}

.listing-image-wrap.active .listing-overlay{

opacity:1;

}


.overlay-btn{

font-size:13px;

padding:8px 16px;
 pointer-events: auto; /* 👈 re-enable click ONLY on button */
  position: relative;
  z-index: 10;
}


/* subtle content spacing fix */
.listing-card h3,
.listing-card p{
margin:0;
}

/* smoother UI feel */
.listing-card *{
transition: all .2s ease;
}

/* FAVORITE BUTTON */

.favorite-btn{

position:absolute;

top:10px;

right:10px;

width:34px;

height:34px;

border-radius:50%;

border:none;

background:white;

display:flex;

align-items:center;

justify-content:center;

cursor:pointer;

box-shadow:0 2px 6px rgba(0,0,0,0.15);

transition:var(--transition);

z-index: 2;

}

.favorite-btn:hover{

transform:scale(1.1);

}

.favorite-btn.active{

background:var(--soft-red);

color:white;

}


.suggestion-empty{

padding:14px;

border-bottom:1px solid var(--border);

color:var(--text-gray);

}

.suggestion-empty strong{

color:var(--soft-red);

}

.suggestion-item{

padding:10px 14px;

cursor:pointer;

transition:var(--transition);

}

.suggestion-item:hover{

background:#f3f4f6;

}

.suggestion-title{

padding:10px 14px;

font-size:12px;

color:var(--text-gray);

border-bottom:1px solid var(--border);

background:#fafafa;

font-weight:600;

}




.skeleton-grid{
display: grid;
grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
gap: 12px;
}

/* mobile 2 cols */
@media (max-width: 480px){
.skeleton-grid{
grid-template-columns: repeat(2, 1fr);
}
}


/* skeleton card */

.skeleton-card{
width: 100%;
aspect-ratio: 1 / 1;
border-radius: 12px;

background: linear-gradient(
90deg,
#f0f0f0 25%,
#e4e4e4 37%,
#f0f0f0 63%
);

position:relative;

overflow:hidden;
background-size: 400% 100%;
animation: skeleton 1.2s ease infinite;
}

@keyframes skeleton{

0%{
background-position:100% 50%;
}

100%{
background-position:0 50%;
}

}

.skeleton-card::after{
content:"";

position:absolute;
top:50%;
left:50%;
transform:translate(-50%,-50%);

width:80px;
height:80px;

/* ✅ CORRECT PATH (IMPORTANT) */
background:url("/assets/logo/logo-icon-nobg.png") no-repeat center;

background-size:contain;

opacity:0.05;
pointer-events:none;
}


.filter-bar::-webkit-scrollbar{
display:none;
}

/* ===============================
   GLASS FILTER BAR
================================ */

.filter-bar{

display:flex;

gap:10px;

flex-wrap:wrap;

margin-bottom:28px;

}


/* FILTER PILL */
.filter-pill{
padding:10px 16px;
border-radius:999px;

background:rgba(255,255,255,0.7);
backdrop-filter:blur(10px);

font-size:13px;
cursor:pointer;

border:1px solid rgba(0,0,0,0.05);

transition:all .25s ease;

box-shadow:0 2px 6px rgba(0,0,0,0.06);
}

.filter-pill:hover{
transform:translateY(-1px);
background:white;
}

.filter-pill.active{
background:var(--primary-blue);
color:white;
box-shadow:0 8px 20px rgba(37,99,235,0.35);
}




/* ===============================
   FOOTER
================================ */

.footer{

background:#0f172a;

color:#cbd5e1;

margin-top:80px;

padding-top:60px;

}

.footer-container{
max-width:1200px;
margin:auto;
padding:0 20px;
}

/* GRID */

.footer-grid{

display:grid;

grid-template-columns:repeat(4,1fr);

gap:40px;

}

/* BRAND */



.footer-logo{
width:30px;
}

.footer-title{
font-weight:600;
font-size:16px;
color:white;
white-space: nowrap;
}

.footer-text{
font-size:14px;
line-height:1.5;
opacity:0.8;
}

/* HEADINGS */

.footer-heading{

color:white;
font-size:14px;

margin-bottom:12px;

}

/* LINKS */

.footer-link{

display:block;

font-size:14px;

margin-bottom:8px;

color:#cbd5e1;

text-decoration:none;

}

.footer-link:hover{
color:white;
}

/* SOCIAL */

.footer-social{
display:flex;
flex-direction:column;
gap:8px;
}

/* SPONSORS */

.sponsor-logo{

height:24px;

opacity:0.85;

}

/* BOTTOM */

.footer-bottom{

margin-top:30px;

padding-top:20px;

border-top:1px solid rgba(255,255,255,0.06);

display:flex;

flex-direction:column;   /* 🔥 stack items */
align-items:center;

justify-content:space-between;

align-items:center;

font-size:12px;
opacity: 0.85;

}

/* LEGAL */

.footer-legal{
display:flex;
justify-content:center;
gap:12px;
flex-wrap:wrap;
}

.footer-legal a{

margin-left:12px;

color:#cbd5e1;

text-decoration:none;

}

.footer-legal a:hover{
color:white;
}

/* MOBILE */

/* ===============================
   MOBILE FOOTER (DESKTOP STYLE)
================================ */

@media (max-width:768px){

.footer-grid{

display:grid;

grid-template-columns:1fr 1fr;

gap:24px;

align-items:start;

}

/* reduce spacing so sponsors doesn't drop too far */

.footer-col{
margin-bottom:0;
}

/* sponsor logos centered nicely */



/* sponsor item */

.sponsor{

display:flex;

gap:1px;

}

/* smaller logo */

.sponsor img{
height:24px;
}

}

/* ===============================
   FOOTER SPONSORS
================================ */



.sponsor{

display:flex;

flex-direction:column;

align-items:center;

gap:4px;

opacity:0.9;

transition:var(--transition);

}

.sponsor:hover{

opacity:1;

transform:translateY(-2px);

}

/* LOGO */

.sponsor img{

height:26px;

object-fit:contain;

}

/* SMALL CAPTION */

.sponsor span{

font-size:11px;

color:#94a3b8;

text-align:center;

white-space:nowrap;

}

.bottom-dock{
position:fixed;
bottom:0;
left:0;
right:0;
width:100%; /* 🔥 force full width */

display:flex;
justify-content:space-evenly;
align-items:center;

padding:10px 6px;
padding-bottom: calc(10px + env(safe-area-inset-bottom));

background:rgba(255,255,255,0.95);
backdrop-filter:blur(10px);

border-top:1px solid rgba(0,0,0,0.05);

z-index:999;

transition: transform 0.3s ease;
will-change: transform;
}

.bottom-dock.hide{
transform: translateY(120%);
}
/* ===============================
   DOCK ITEMS
================================ */

.dock-item{
 flex: 1;
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
gap:4px;
font-size:10px;
font-weight:500;
cursor: pointer;
color:rgba(15,23,42,0.58);
transition:all 0.2s ease;
}

/* ICON */
.dock-item svg{
width:20px;
height:20px;
stroke-width:2;
transition: transform 0.2s ease, color 0.2s ease;
}

/* ===============================
   TAP / HAPTIC FEEL
================================ */

/* press in */
.dock-item:active{
transform:scale(0.82);
opacity:0.8;
}

/* bounce back */
.dock-item{
animation: dockBounceIn .25s ease;
}

@keyframes dockBounceIn{
0%{transform:scale(0.9);}
50%{transform:scale(1.05);}
100%{transform:scale(1);}
}

/* ===============================
   ACTIVE STATE
================================ */

.dock-item.active{
color:var(--primary-blue);
background:rgba(20,94,197,0.08);
}

/* ===============================
   CENTER BUTTON (SELL / LOGIN)
================================ */

.dock-post svg{
stroke:white;
}

/* press feel */
.dock-post:active{
transform:translateY(-6px) scale(0.85);
}

/* subtle pulse (premium feel) */
.dock-post::after{
content:"";
position:absolute;
inset:0;
border-radius:inherit;

background:radial-gradient(circle, rgba(255,255,255,0.25), transparent);

opacity:0;
transition:opacity .3s;
}

.dock-post:hover::after{
opacity:1;
}

/* ===============================
   LOGOUT (CLEAN FIX)
================================ */

.dock-logout{
border:none !important;
background:none !important;
outline:none !important;

color:#ef4444;
}

.dock-logout svg{
stroke:#ef4444;
}

/* ===============================
   RESPONSIVE
================================ */

@media (max-width:600px){
  .bottom-dock{
    width:100%;      /* 🔥 full width */
    border-radius:0; /* 🔥 remove curved look */
    left:0;
    right:0;
  }


.dock-item{
font-size:9px;
}

.dock-item svg{
width:18px;
height:18px;
}

.dock-post{
padding:10px;
transform:translateY(-10px);
}

}

.no-results{
text-align:center;
padding:60px 20px;
color:var(--text-gray);
}

.search-empty-state{
display:flex;
flex-direction:column;
align-items:center;
gap:14px;
}

.empty-suggestions{
display:flex;
flex-wrap:wrap;
justify-content:center;
gap:10px;
max-width:420px;
}

.empty-suggestion{
padding:10px 14px;
border-radius:999px;
border:1px solid rgba(37,99,235,0.14);
background:rgba(37,99,235,0.08);
color:#1d4ed8;
font-size:13px;
font-weight:600;
cursor:pointer;
transition:transform .2s ease, background .2s ease;
}

.empty-suggestion:hover{
background:rgba(37,99,235,0.12);
transform:translateY(-1px);
}

.no-results h3{
font-size:18px;
color:var(--text-dark);
margin-bottom:6px;
}





.boost-ribbon{
position:absolute;
top:10px;
left:10px;

display:flex;
align-items:center;
gap:6px;

background:linear-gradient(135deg,#facc15,#f59e0b);

color:#111;
font-size:11px;
font-weight:700;

padding:6px 10px;
border-radius:999px;

box-shadow:0 6px 18px rgba(251,191,36,0.35);

z-index:6;
}



/* BOOSTED GLOW */
.boosted-card{
position: relative;
border-radius: 18px;
overflow: hidden;

/* glass base */
background: linear-gradient(180deg,#ffffff,#f8fafc);

transform: scale(1.04) rotate(-0.5deg);
z-index: 5;
transition: all .3s ease;
}

/* glowing border */
.boosted-card::before{
content:"";
position:absolute;
inset:-2px;
border-radius:inherit;


background-size:300% 300%;
animation:goldFlow 4s linear infinite;

z-index:0;
}

.boosted-card:hover{
transform:translateY(-6px) scale(1.01);

box-shadow:
0 20px 50px rgba(37,99,235,0.25),
0 8px 20px rgba(0,0,0,0.1);
}

/* inner layer */
.boosted-card::after{
content:"";
position:absolute;
inset:1px;
border-radius:inherit;
background:linear-gradient(180deg,#ffffff,#f9fafb);
z-index:1;
}

/* inner content stays above */
.boosted-card > *{
position: relative;
z-index: 2;

border-radius: inherit;
}

/* glow animation */
@keyframes goldFlow{
0%{background-position:0% 50%;}
50%{background-position:100% 50%;}
100%{background-position:0% 50%;}
}


.boosted-card{
animation: boostPulse 3s ease-in-out infinite;
}

.sound-pill {
  position: fixed;
  bottom:80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 9999;

  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border-radius: 22px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);

  padding: 10px 14px;

  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
}

.sound-pill.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.sound-pill-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sound-icon {
  width: 18px;
  height: 18px;
  fill: #111;
  opacity: 0.8;
}

.sound-pill span {
  font-size: 14px;
  color: #111;
  font-weight: 500;
}

.sound-pill button {
  border: none;
  background: #2563eb;
  color: #fff;

  font-size: 13px;
  font-weight: 500;

  padding: 6px 12px;
  border-radius: 14px;

  cursor: pointer;
  transition: all 0.2s ease;
}

.sound-pill button:active {
  transform: scale(0.95);
}

body:not(:hover)::-webkit-scrollbar-thumb{
background:transparent;
}

.boosted-mark{
position:absolute;
bottom:8px;
right:8px;

width:40px;
height:40px;

opacity:0.85;
pointer-events:none;

/* subtle glow */
filter: drop-shadow(0 0 6px rgba(255,200,0,0.25));

transition: all 0.25s ease;
}

.listing-card:hover .boosted-mark{
opacity:1;
transform: scale(1.05);
}




body.dark{
background:#0b0b0b;
color:#e5e5e5;
}

/* cards */
body.dark .account-card{
background:#111;
border:1px solid rgba(255,255,255,0.06);
box-shadow:none;
}

/* rows */
body.dark .profile-row{
border-bottom:1px solid rgba(255,255,255,0.06);
}

/* inputs */
body.dark input,
body.dark textarea{
background:#0f0f0f;
color:#fff;
border:1px solid rgba(255,255,255,0.1);
}

/* buttons */
body.dark .btn{
background:#1a1a1a;
color:#fff;
}

/* hover */
body.dark .edit-btn:hover{
background:#1f1f1f;
}

/* modal */
body.dark .address-modal{
background:#111;
}

/* saved hover */
body.dark .saved-item:hover{
background:#1a1a1a;
}

body.dark .navbar,
body.dark .site-footer{
background:#000;
color:#fff;
}

body.dark .bottom-dock{
background:#fff !important;
color:#000 !important;
}

body.auth-gated.auth-pending{
overflow:hidden;
}

body.auth-gated.auth-pending > *{
opacity:0;
visibility:hidden;
pointer-events:none;
}

body.auth-gated.auth-ready > *{
opacity:1;
visibility:visible;
}

#globalBackBtn{
  position:fixed;
  left:14px;
  z-index:99999;
  opacity:1;
  transition:opacity .22s ease, transform .22s ease, filter .22s ease;
}

#globalBackBtn.is-awake{
  opacity:.94;
}

#globalBackBtn.is-idle{
  opacity:.16;
  filter:saturate(.55) grayscale(.24);
}

#globalBackBtn.is-scrolling{
  opacity:.28;
  transform:translateY(2px);
  filter:saturate(.7) grayscale(.12);
}

.back-pill{
  display:flex;
  align-items:center;
  justify-content:center;
  width:48px;
  height:48px;
  border-radius:18px;
  background:rgba(255,255,255,0.78);
  backdrop-filter:blur(20px) saturate(145%);
  -webkit-backdrop-filter:blur(20px) saturate(145%);
  border:1px solid rgba(15,23,42,0.1);
  box-shadow:0 14px 30px rgba(15,23,42,0.12);
  transition:transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.back-icon{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:inherit;
  background:transparent;
}

.back-icon svg{
  width:18px;
  height:18px;
  stroke:#0f172a;
}

.back-pill:active{
  transform:scale(0.94);
}

/* ===============================
   APP FOOTER + DOCK OVERRIDES
================================ */

.app-footer{
margin-top:48px;
padding:0 0 calc(18px + env(safe-area-inset-bottom));
background:transparent;
border-top:none;
}

.app-footer .app-footer-inner{
display:flex;
align-items:center;
justify-content:space-between;
gap:12px 18px;
flex-wrap:wrap;
padding-top:14px;
border-top:1px solid rgba(15,23,42,0.08);
}

.app-footer .footer-brandmarks{
display:flex;
align-items:center;
gap:10px;
flex-wrap:wrap;
min-width:0;
}

.app-footer .footer-mark{
display:inline-flex;
align-items:center;
justify-content:center;
min-width:40px;
height:40px;
padding:0 12px;
border-radius:14px;
border:1px solid rgba(15,23,42,0.08);
background:rgba(255,255,255,0.8);
box-shadow:0 10px 24px rgba(15,23,42,0.06);
backdrop-filter:blur(12px);
-webkit-backdrop-filter:blur(12px);
}

.app-footer .footer-mark-home{
width:40px;
padding:0;
}

.app-footer .footer-mark img{
display:block;
max-width:70px;
max-height:18px;
width:auto;
height:auto;
object-fit:contain;
opacity:0.82;
}

.app-footer .footer-mark-home img{
width:21px;
height:21px;
max-width:none;
max-height:none;
opacity:0.96;
}

.app-footer .footer-links{
display:flex;
align-items:center;
justify-content:flex-end;
gap:10px 16px;
flex-wrap:wrap;
}

.app-footer .footer-link{
font-size:12px;
font-weight:600;
letter-spacing:.01em;
color:rgba(15,23,42,0.58);
transition:color .2s ease, opacity .2s ease;
}

.app-footer .footer-link:hover{
color:var(--primary-blue);
}

.bottom-dock{
left:10px;
right:10px;
bottom:10px;
width:auto;
max-width:720px;
margin:0 auto;
padding:8px 8px calc(8px + env(safe-area-inset-bottom));
border-radius:28px;
background:rgba(255,255,255,0.86);
backdrop-filter:blur(18px) saturate(150%);
-webkit-backdrop-filter:blur(18px) saturate(150%);
border:1px solid rgba(15,23,42,0.08);
box-shadow:
0 14px 36px rgba(15,23,42,0.12),
inset 0 1px 0 rgba(255,255,255,0.72);
}

.bottom-dock.hide{
transform:translateY(calc(100% + 20px));
opacity:0.58;
}

.dock-item{
padding:9px 6px;
border-radius:18px;
color:rgba(15,23,42,0.58);
font-weight:600;
font-size:10px;
letter-spacing:.01em;
animation:none;
transition:color .18s ease, background .18s ease, transform .18s ease, opacity .18s ease;
}


.dock-item svg{
stroke-width:1.95;
transition:transform .18s ease, stroke .18s ease;
}

.dock-item:active{
transform:scale(0.94);
opacity:0.9;
}

.dock-item.active{
color:var(--primary-blue);
background:rgba(20,94,197,0.08);
}

.dock-item.active svg{
transform:none;
}

.dock-post{
grid-column:4;

transform:translateY(-12px);

background:linear-gradient(135deg, #145ec5, #2563eb);
color:white;

padding:12px;

border-radius:20px;

box-shadow:0 14px 28px rgba(20,94,197,0.28);

transition:all .2s ease;
}

.dock-post:active{
transform:translateY(-3px) scale(0.95);
}

.dock-post::after{
display:none;
}

.dock-logout{
color:rgba(185,28,28,0.9);
}

.dock-logout svg{
stroke:currentColor;
}

@media (max-width:640px){
.app-footer{
margin-top:40px;
padding-bottom:calc(14px + env(safe-area-inset-bottom));
}

.app-footer .app-footer-inner{
align-items:flex-start;
gap:12px;
}

.app-footer .footer-brandmarks{
gap:8px;
}

.app-footer .footer-mark{
min-width:38px;
height:38px;
padding:0 10px;
border-radius:13px;
}

.app-footer .footer-links{
justify-content:flex-start;
gap:8px 14px;
}
}

@media (max-width:600px){
.bottom-dock{
left:8px;
right:8px;
bottom:8px;
padding-inline:7px;
border-radius:24px;
}

.dock-item{
padding:8px 5px;
font-size:9px;
}

.dock-post{
transform:translateY(-5px);
}
}
