/* Mobile-first styles to match the provided screenshot */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap');

:root{
  /* Light theme (default) */
  --bg-gradient: linear-gradient(rgb(255, 255, 255), rgb(200, 226, 255));
  --text: #111;
  --icon-stroke: rgba(0,0,0,0.85);
  --muted: #6b7480;
  --card-white: rgba(255,255,255,0.98);
  --frost: rgba(255,255,255,0.6);
  --control-bg: rgba(255,255,255,0.95);
  --pill-bg: rgba(255,255,255,0.9);
  --tabbar-bg: rgba(255,255,255,0.95);
  --surface-shadow: rgba(10,20,40,0.08);
  --fav-color: #b00; /* heart active color */
  --tab-icon-size: 22px;
}

/* Loader styles: full-screen white shimmering background and large logo */
.loader{
  position:fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:99999;
  background: #000; /* changed to black for loader background */
  overflow:hidden;
}

/* moving shine across the entire screen */
.loader::before{
  content:'';
  position:absolute;
  inset:0;
  /* lighter translucent band for visibility on dark background */
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.35) 40%, rgba(255,255,255,0) 80%);
  transform:translateX(-120%);
  animation:loaderShine 3s linear forwards;
  mix-blend-mode:screen;
  pointer-events:none;
}

.loader-inner{position:relative;display:flex;align-items:center;justify-content:center;padding:0;border-radius:0;z-index:2}
.loader-logo{width:70vw;max-width:720px;height:auto;display:block;filter:drop-shadow(0 20px 40px rgba(0,0,0,0.55));animation:logoPulse 3s ease-in-out both}

@keyframes loaderShine{to{transform:translateX(120%);opacity:1}}
@keyframes logoPulse{0%{transform:scale(0.98);filter:brightness(1)}50%{transform:scale(1.04);filter:brightness(1.06)}100%{transform:scale(0.98);filter:brightness(1)}}

/* While loading, hide the main app content to avoid flash */
body.loading .app{visibility:hidden;opacity:0}
body.loading .auth-modal{display:none !important}

/* graceful hide animation when loader removed via JS */
.loader.loader-hide{transition:opacity 360ms ease, transform 360ms ease;opacity:0;transform:translateY(-8px)}

/* Dark theme overrides */
.theme-dark{
  --bg-gradient: linear-gradient(rgb(8, 2, 28), rgb(2, 0, 8));
  --text: #f6f7fb;
  --icon-stroke: rgba(255,255,255,0.95);
  --muted: #b6c0cc;
  /* Make cards and panels a very dark navy for stronger blue character */
  --card-white: rgba(2,10,32,0.96); /* deep navy */
  --card-surface: linear-gradient(180deg, rgba(6,18,48,0.96), rgba(4,10,36,0.98));
  --frost: rgba(255,255,255,0.02);
  --control-bg: rgba(255,255,255,0.04);
  --pill-bg: rgba(255,255,255,0.03);
  --tabbar-bg: rgba(6,10,24,0.88);
  --surface-shadow: rgba(0,0,0,0.6);
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  background: var(--bg-gradient);
  color: var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

.app{
  max-width:420px;
  margin:0 auto;
  min-height:100vh;
  padding:12px 12px 32px;
  position:relative;
  display:flex;
  flex-direction:column;
}

.app::before{
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  /* overlay removed so body gradient is visible */
  background: transparent;
  backdrop-filter: none;
}

.top{
  height:76px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:8px 8px;
}
.top{position:relative;z-index:80;}

.top .spacer{width:44px}
.brand{
  font-size:28px;
  font-weight:700;
  text-align:center;
  color:var(--text);
  background:transparent; /* placeholder for logo */
}
.menu{
  width:44px;
  height:44px;
  border-radius:22px;
  border:0;
  background:var(--control-bg);
  box-shadow:0 6px 12px var(--surface-shadow);
  font-size:20px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  position:relative;
  z-index:90;
}
  /* header overlays removed — header background is controlled by theme variables */

/* theme toggle button in top-left */
.theme-toggle{
  position:absolute;left:8px;top:8px;width:36px;height:36px;border-radius:18px;border:0;background:var(--control-bg);display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:95;color:var(--text);
}
.theme-toggle svg{display:block}
.theme-toggle:active{transform:translateY(1px)}

/* small transition when theme variables change */
:root, .theme-dark{transition:background 220ms ease,color 180ms ease}

.search-row{
  display:flex;
  gap:8px;
  padding: 0 4px 12px 4px;
}
.search-wrap{position:relative;flex:1;display:flex;align-items:center}
.icon{width:20px;height:20px;display:inline-block}
/* Force icons to inherit theme stroke color (overrides inline stroke attrs) */
.icon path, .icon line, .icon circle, svg.icon path{ stroke: var(--icon-stroke) !important; }
.tab-icon{width:var(--tab-icon-size);height:var(--tab-icon-size)}

/* Tab icons: default muted stroke, active uses text color */
.tab .icon path, .tab .icon circle{ fill: none; stroke: var(--icon-stroke) !important; }
.tab.active .icon path, .tab.active .icon circle{ stroke: var(--text) !important; fill: var(--text); }

/* Favorite (heart) overlay styles: show outline normally, fill when active */
.fav-btn svg{width:18px;height:18px}
.fav-btn svg path{ fill: none; stroke: var(--icon-stroke) !important; }
.fav-btn.active svg path{ fill: var(--fav-color); stroke: var(--fav-color) !important; }

/* product detail favorite pill with icon */
#product-fav svg{width:18px;height:18px;margin-right:8px;vertical-align:middle}
#product-fav svg path{ fill: none; stroke: var(--icon-stroke) !important }
#product-fav.active svg path{ fill: var(--fav-color); stroke: var(--fav-color) !important }
.search-icon{position:absolute;left:12px;opacity:0.6}
.search{
  flex:1;height:46px;border-radius:22px;padding:0 16px 0 40px;border:0;background:var(--frost);font-size:16px;outline:none;box-shadow:inset 0 1px 0 rgba(0,0,0,0.03);backdrop-filter:blur(6px);
}
.search{color:var(--text)}
.search::placeholder{color:var(--muted)}
.voice{width:44px;height:44px;border-radius:22px;border:0;background:var(--control-bg);box-shadow:0 4px 8px var(--surface-shadow);cursor:pointer}

.content{flex:1;overflow:auto;padding-bottom:120px}
.carousel-wrap{position:relative;height:180px;border-radius:18px;overflow:hidden;margin-bottom:16px;box-shadow:0 10px 30px rgba(10,20,40,0.12)}
.carousel{display:flex;height:100%;scroll-snap-type:x mandatory;overflow-x:auto;-webkit-overflow-scrolling:touch;scroll-behavior:smooth}
.slide{min-width:100%;height:100%;scroll-snap-align:center;position:relative}
.slide img{width:100%;height:100%;object-fit:cover;display:block;filter:contrast(0.98) saturate(1.03)}
.carousel-btn{position:absolute;top:50%;transform:translateY(-50%);width:48px;height:48px;border-radius:24px;border:0;background:var(--control-bg);box-shadow:0 8px 18px var(--surface-shadow);display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:6}
.carousel-btn.left{left:10px}
.carousel-btn.right{right:10px}
.dots{position:absolute;left:50%;transform:translateX(-50%);bottom:12px;display:flex;gap:8px;z-index:6}
.dots .dot{width:8px;height:8px;border-radius:4px;background:var(--dot-bg);box-shadow:0 1px 0 rgba(255,255,255,0.2) inset}
.dots .dot.active{background:var(--dot-active)}

/* hide native scrollbar for carousel */
.carousel{ -ms-overflow-style: none; /* IE/Edge */
  scrollbar-width: none; /* Firefox */ }
.carousel::-webkit-scrollbar{ display: none; }

/* Categories horizontal pills */
.categories-wrap{padding:6px 0 14px}
.categories{display:flex;gap:8px;overflow-x:auto;padding:6px 6px 10px}
.categories::-webkit-scrollbar{display:none}
.pill{flex:0 0 auto;padding:10px 16px;border-radius:20px;background:var(--pill-bg);box-shadow:0 6px 12px var(--surface-shadow);cursor:pointer;font-weight:600;color:var(--text)}
.pill.active{background:var(--pill-active-bg)}

/* ensure tabbar is on top */
.tabbar{z-index:9999;background:var(--tabbar-bg)}

/* Responsive adjustments */
@media (max-width:360px){
  .carousel-wrap{height:160px}
  .card .image{height:120px}
  .brand{font-size:24px}
}
@media (min-width:720px){
  .app{max-width:720px}
  .grid{grid-template-columns:repeat(3,1fr);gap:18px}
  .carousel-wrap{height:260px}
}

.grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.card-wrap{position:relative;z-index:1}
.card{
  border-radius:18px;overflow:visible;min-height:220px;display:flex;flex-direction:column;justify-content:flex-end;position:relative;padding-bottom:0;margin-bottom:6px
}
.card-surface{position:relative;border-radius:18px;overflow:hidden;background:linear-gradient(180deg, rgba(255,255,255,0.28), rgba(255,255,255,0.36));box-shadow:0 10px 30px rgba(10,20,40,0.08);z-index:2}
.card .image{height:140px;background:rgba(255,255,255,0.45);border-top-left-radius:18px;border-top-right-radius:18px;overflow:hidden;z-index:3}
.card .image img{width:100%;height:100%;object-fit:cover;display:block}
.card .footer{background:var(--card-white);padding:14px;border-bottom-left-radius:18px;border-bottom-right-radius:18px;display:flex;flex-direction:column;align-items:flex-start;gap:6px;z-index:4}
.price{font-weight:800;font-size:18px}
.title{color:var(--muted);margin-top:0;font-size:14px}
.buy{margin-top:8px;display:block;width:92%;max-width:220px;margin-left:auto;margin-right:auto;text-align:center;padding:12px;border-radius:28px;background:linear-gradient(180deg, rgba(245,245,245,1), rgba(235,235,235,1));border:0;cursor:pointer;box-shadow:0 10px 22px rgba(0,0,0,0.08)}
.buy:active{transform:translateY(1px)}

.card .footer .price{align-self:flex-start}

.card .footer .title{color:var(--muted)}

.card .footer .buy{font-weight:800}

.tabbar{position:fixed;left:12px;right:12px;bottom:16px;height:72px;border-radius:24px;background:var(--tabbar-bg);display:flex;align-items:center;justify-content:space-around;padding:8px 12px;box-shadow:0 10px 30px rgba(0,0,0,0.08)}
.tab{flex:1;border:0;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:8px;border-radius:12px;cursor:pointer}
.tab span{font-size:12px;color:var(--muted)}
.tab.active{background:var(--pill-active-bg);padding:8px 18px;border-radius:18px}
.tab.active span{color:var(--text)}

/* Small adjustments to match screenshot spacing */
@media (min-width:420px){.app{margin-top:10px}}

/* Chats styles (full-height panel, reduced paddings) */

.chats-wrap{display:flex;flex-direction:column;gap:6px;padding:6px}
.chats-header{padding:6px 0}
.pill.big{padding:16px 30px;border-radius:30px;background:var(--card-white);font-size:19px;font-weight:700;border:0;box-shadow:0 8px 18px rgba(0,0,0,0.06)}

/* make the chats panel occupy most of the viewport height so it's obvious this is the chats view */
/* make panel stretch a bit beyond the app padding so the chat list feels wide */
.chats-panel{background:linear-gradient(180deg, rgba(255,255,255,0.06), rgba(245,246,248,0.04));padding:8px;border-radius:22px;border:1px solid rgba(0,0,0,0.06);backdrop-filter: blur(6px);box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);position:relative;min-height:calc(100vh - 120px);max-height:calc(100vh - 80px);overflow:auto;width:calc(100% + 12px);margin-left:-6px}

.chat-list{display:flex;flex-direction:column;gap:8px;padding:4px 4px 8px;height:100%;box-sizing:border-box}

/* chat items now span full width of the panel and have slightly reduced padding */

.chat-item{background:var(--card-white);padding:12px 14px;border-radius:26px;box-shadow:0 8px 18px rgba(8,14,30,0.06);cursor:pointer;position:relative;z-index:2;width:100%;margin:0}
.chat-item .price{font-weight:800;font-size:16px;margin-bottom:4px}
.chat-item .name{font-size:14px;color:var(--text)}

/* reduced spacing between items */
.chat-item + .chat-item{margin-top:8px}
.chat-item + .chat-item::before{content:'';position:absolute;left:0;right:0;top:-5px;height:2px;background:rgba(0,0,0,0.12);border-radius:2px;z-index:1}

/* keep inner text above separator */
.chat-item *{position:relative;z-index:3}

/* lighter hover */
.chat-item:hover{transform:translateY(-3px);transition:transform 150ms ease, box-shadow 150ms ease;box-shadow:0 16px 32px rgba(8,14,30,0.08)}



/* Chat overlay window */
.card-surface{position:relative;border-radius:18px;overflow:hidden;background:linear-gradient(180deg, rgba(255,255,255,0.28), rgba(255,255,255,0.36));box-shadow:0 10px 30px rgba(10,20,40,0.08);z-index:2}

/* Dark theme: use deep navy surfaces for cards */
.theme-dark .card-surface{background:var(--card-surface);box-shadow:0 14px 38px rgba(0,0,0,0.6)}

.chat-view{position:fixed;left:12px;right:12px;top:120px;bottom:120px;border-radius:22px;background:rgba(255,255,255,0.92);backdrop-filter: blur(6px);box-shadow:0 30px 60px rgba(0,0,0,0.16);z-index:120;display:flex;flex-direction:column;overflow:hidden}
.chat-top{display:flex;align-items:center;gap:12px;padding:14px}
.circle-back{width:56px;height:56px;border-radius:28px;border:0;background:var(--card-white);box-shadow:0 10px 18px rgba(0,0,0,0.06);font-size:26px}
.chat-title-pill{flex:1;background:var(--card-white);padding:14px 20px;border-radius:28px;font-weight:700;text-align:left}
.del-pill{background:#f1c7cc;padding:10px 16px;border-radius:20px;border:0;color:#000;font-weight:700}
.messages{flex:1;overflow:auto;padding:18px 20px 30px;display:flex;flex-direction:column;gap:18px}
.msg{max-width:72%;padding:16px;border-radius:20px;background:rgba(255,255,255,0.98);box-shadow:0 8px 18px rgba(0,0,0,0.04)}
.msg.user{align-self:flex-end;background:linear-gradient(180deg,#b399ff,#b178ff);color:#07031a}
.msg.admin{align-self:flex-start;background:linear-gradient(180deg,#fff,#f7f7f7);color:#111}

/* Dark theme message bubble overrides */
.theme-dark .msg{background:transparent;box-shadow:none}
.theme-dark .msg.user{background:linear-gradient(180deg, rgba(80,36,110,0.9), rgba(60,28,90,0.9));color: #fff}
.theme-dark .msg.admin{background:linear-gradient(180deg, rgba(20,30,70,0.9), rgba(12,20,50,0.9));color: #cfe6ff}
.composer{position:relative;padding:12px}
.composer input{width:100%;height:56px;border-radius:28px;padding:0 76px 0 18px;border:0;background:rgba(245,245,245,0.8);font-size:16px}
.send-circle{position:absolute;right:22px;top:50%;transform:translateY(-50%);width:52px;height:52px;border-radius:26px;border:0;background:var(--card-white);box-shadow:0 8px 18px rgba(0,0,0,0.06);font-size:18px}

@media (min-width:720px){
  .chat-view{left:100px;right:100px;top:100px;bottom:100px}
}

/* Dark theme: chat panel becomes deep navy */
.theme-dark .chat-view{background: linear-gradient(180deg, rgba(6,12,40,0.96), rgba(3,6,28,0.98)); box-shadow:0 30px 80px rgba(0,0,0,0.6)}

/* When a chat overlay is opened, hide everything else (no blur).
  Only hide direct children of `.app` so the `.chat-view` (a direct child) stays visible
  even if other containers are ancestors/parents of it. */
.app.chat-open > *:not(.chat-view){display:none !important}

@media (min-width:720px){
  .chats-wrap{flex-direction:row}
  .chat-list{width:320px}
  .chat-view{flex:1;height:calc(100vh - 120px)}
}

/* favorite button overlay */
.fav-btn{position:absolute;left:12px;top:12px;width:40px;height:40px;border-radius:10px;border:0;background:rgba(255,255,255,0.9);box-shadow:0 6px 12px rgba(0,0,0,0.06);display:flex;align-items:center;justify-content:center;font-size:18px;cursor:pointer;z-index:8}
.fav-btn.active{background:linear-gradient(180deg,#ffe7e7,#ffdede);color:#b00}
.card .image{position:relative}

/* --- Animations & transitions --- */
/* smooth button interactions */
.carousel-btn, .tab, .buy, .primary-cta, .fav-btn, .fav-pill, .send-circle, .circle-back{
  transition: transform 140ms ease, box-shadow 160ms ease, opacity 160ms ease, background 180ms ease;
}
.carousel-btn:hover, .tab:hover, .buy:hover, .primary-cta:hover, .fav-btn:hover, .fav-pill:hover{ transform: translateY(-3px); }
.carousel-btn:active, .tab:active, .buy:active, .primary-cta:active, .fav-btn:active, .fav-pill:active{ transform: translateY(0) scale(0.98); }

/* card entrance */
.card-wrap{opacity:0;transform:translateY(10px) scale(0.995);transition:transform 320ms cubic-bezier(.2,.9,.3,1),opacity 260ms ease}
.card-wrap.entered{opacity:1;transform:none}

/* modal show animation */
.auth-modal{transition:background 220ms ease}
.auth-modal .auth-card{opacity:0;transform:translateY(10px) scale(0.985);transition:transform 260ms cubic-bezier(.2,.9,.3,1),opacity 240ms ease}
.auth-modal.open .auth-card{opacity:1;transform:none}
.auth-modal.open{background:rgba(0,0,0,0.22)}

/* subtle pulse for fav button when toggled */
.fav-btn.pulse{animation:fav-pulse 420ms ease}
.pulse{animation:fav-pulse 420ms ease}
@keyframes fav-pulse{0%{transform:scale(1)}40%{transform:scale(1.18)}100%{transform:scale(1)}}

/* focus outline for accessibility */
.tab:focus, .buy:focus, .primary-cta:focus, .fav-btn:focus, .fav-pill:focus{outline:2px solid rgba(0,123,255,0.18);outline-offset:4px}

/* favorites header pill */
.favorites-header{padding:8px 6px}
.favorites-pill{padding:16px 28px;border-radius:28px;background:var(--card-white);font-size:22px;font-weight:700;border:0;box-shadow:0 10px 22px rgba(0,0,0,0.06)}

/* Product detail view */
.product-wrap{padding:10px 6px 80px}
  .product-card{background:linear-gradient(180deg, var(--card-white), rgba(245,245,245,0.95));border-radius:18px;overflow:hidden;box-shadow:0 20px 40px rgba(0,0,0,0.08);position:relative}

  /* Dark theme: product card uses deep navy surface */
  .theme-dark .product-card{background: linear-gradient(180deg, rgba(6,16,46,0.96), rgba(3,8,32,0.98)); box-shadow:0 22px 50px rgba(0,0,0,0.6)}
.product-image img{width:100%;height:260px;object-fit:cover;display:block}
.product-body{padding:18px 16px 20px}
.product-price{font-weight:800;font-size:20px;margin-bottom:8px}
.product-title{font-size:16px;margin-bottom:10px;color:var(--text)}
.product-desc{color:var(--muted);opacity:0.95;margin-bottom:12px;line-height:1.5}
.product-colors{font-size:14px;color:var(--muted);margin-bottom:18px}
.product-actions{display:flex;gap:12px}
.fav-pill{flex:1;padding:12px;border-radius:28px;border:0;background:linear-gradient(180deg, #e9e9ec, #dcdde0);color:#111;font-weight:700;cursor:pointer}
.fav-pill.active{background:linear-gradient(180deg,#ffe7e7,#ffdede);color:#b00}
.buy-pill{flex:1;padding:12px;border-radius:28px;border:0;background:linear-gradient(180deg, #e9e9ec, #dcdde0);font-weight:700;cursor:pointer}

/* ensure close button sits above image */
#product-close{position:absolute;left:12px;top:12px;z-index:12}

/* Generic icon-like button for small back/close controls inside cards */
.icon-btn{
  width:44px;
  height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  border:0;
  background:var(--card-white);
  color:var(--text);
  box-shadow:0 8px 18px rgba(0,0,0,0.06);
  font-size:20px;
  cursor:pointer;
}


@media (max-width:360px){
  .product-image img{height:220px}
}

/* Auth modal styles */
.auth-modal{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;z-index:200;background:rgba(0,0,0,0.12)}
.auth-modal[aria-hidden="true"]{display:none}
.auth-card{width:92%;max-width:520px;background:linear-gradient(180deg,#ffffff,#fbfbfc);border-radius:24px;padding:16px;box-shadow:0 18px 40px rgba(8,12,24,0.18)}
.auth-top{padding:10px}
.auth-note{background:linear-gradient(180deg, rgba(246,238,250,0.9), rgba(250,246,255,0.9));padding:18px;border-radius:20px;font-size:18px;color:#111}
.auth-tabs{display:flex;gap:12px;padding:12px 6px}
.auth-tab{flex:1;padding:12px;border-radius:20px;border:1px solid rgba(0,0,0,0.06);background:rgba(255,255,255,0.9);font-weight:700;cursor:pointer;color:#111;transition:background 160ms ease,color 160ms ease,transform 120ms}
.auth-tab:hover{transform:translateY(-1px)}
.auth-tab.active{background:#111;color:#fff;box-shadow:0 8px 20px rgba(0,0,0,0.18)}
.auth-forms{padding:6px}
.auth-form h2{font-size:36px;margin:10px 0}
.auth-form input{display:block;width:100%;padding:16px;border-radius:28px;border:0;margin:12px 0;background:rgba(0,0,0,0.06);font-size:16px}
.primary-cta{display:block;width:100%;padding:16px;border-radius:32px;border:0;background:#007bff;color:#fff;font-weight:700;font-size:18px;cursor:pointer;box-shadow:0 10px 22px rgba(0,123,255,0.18)}

@media (max-width:420px){
  .auth-form h2{font-size:28px}
  .auth-card{padding:12px}
}

/* blur state when modal open */
.app.blurred{filter: blur(4px) saturate(0.95);transition:filter 0.18s ease;pointer-events:none;user-select:none}

/* Admin panel specific styles */
.admin-app{display:flex;min-height:80vh}
.admin-sidebar{width:220px;padding:18px;border-right:1px solid rgba(0,0,0,0.06);display:flex;flex-direction:column}
.admin-logo{font-weight:800;margin-bottom:12px}
.admin-main{flex:1;padding:18px}
.admin-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.cards{display:flex;gap:12px}
.card{background:var(--card-white);padding:12px;border-radius:12px;flex:1}
.card-title{font-size:12px;color:var(--muted)}
.card-value{font-size:20px;font-weight:800}
.admin-panel-row{display:flex;gap:12px}
.panel-left{width:360px}
.panel-right{flex:1;background:var(--card-white);padding:12px;border-radius:12px}
.admin-item{padding:10px;border-bottom:1px solid rgba(0,0,0,0.04)}
.admin-item-actions{margin-top:6px}
.admin-item-actions button{margin-right:6px}
.thread-item{padding:12px;border-bottom:1px solid rgba(0,0,0,0.04);cursor:pointer}
.chat-wrap{display:flex;gap:12px}
.chat-threads{width:320px;background:var(--card-white);padding:8px;border-radius:8px;overflow:auto}
.chat-window{flex:1;display:flex;flex-direction:column;background:var(--card-white);border-radius:8px;padding:8px}
.chat-messages{flex:1;overflow:auto;padding:8px}
.msg{padding:8px;border-radius:8px;margin-bottom:8px}
.msg.user{background:linear-gradient(180deg,#fff,#f7f7f7)}
.msg.admin{background:linear-gradient(180deg,#e6f7ff,#d4eeff)}
.chat-composer{display:flex;gap:8px;padding-top:8px}
.chat-composer input{flex:1;padding:8px;border-radius:8px;border:1px solid rgba(0,0,0,0.06)}
.nav-btn{display:block;background:transparent;border:0;padding:10px 6px;text-align:left;cursor:pointer}
.nav-btn.active{background:var(--pill-bg);border-radius:8px}

