/* SNNS Modern Mobile-First Responsive Design v29 */
:root{
  --primary:#7c3aed;
  --secondary:#06b6d4;
  --success:#22c55e;
  --danger:#fb4b78;
  --dark:#060815;
  --darker:#0a0c1a;
  --card:#11162a;
  --text:#f7f8ff;
  --muted:#8f99b4;
  --border:rgba(255,255,255,.08);
  --shadow:0 20px 60px rgba(0,0,0,.35);
  --sidebar:264px;
  --radius-lg:20px;
  --radius-md:16px;
  --radius-sm:12px;
}

*{box-sizing:border-box;margin:0;padding:0}
html,body{
  height:100%;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  background:#060815;
  color:var(--text);
  -webkit-font-smoothing:antialiased;
}
body{
  background:
    radial-gradient(circle at 8% 0%,rgba(124,58,237,.14),transparent 30%),
    radial-gradient(circle at 94% 16%,rgba(34,211,238,.08),transparent 25%),
    #060815;
}
::-webkit-scrollbar{width:8px}
::-webkit-scrollbar-thumb{background:#3b4558;border-radius:10px}

input,button,textarea,select{font:inherit;border:0}
button{cursor:pointer;transition:.2s ease}
button:active{transform:scale(.95)}

.hidden{display:none!important}
.mobile-only{display:none}

/* Auth */
.auth-shell{
  min-height:100vh;
  display:grid;place-items:center;
  padding:20px;
  background:radial-gradient(circle at 50% -10%,rgba(124,58,237,.28),transparent 34%),#070916;
}
.auth-brand{text-align:center;margin-bottom:20px}
.logo-mark{width:70px;height:70px;margin:auto 0 12px;display:grid;place-items:center;background:linear-gradient(135deg,#8b5cf6,#6d28d9);color:#fff;font-size:30px;font-weight:900;border-radius:18px;box-shadow:0 12px 34px rgba(124,58,237,.34)}
.auth-brand h1{font-size:28px;font-weight:900;color:#fff;margin:12px 0 4px}
.auth-brand p{font-size:13px;color:#929bb4}

.auth-card{
  width:min(420px,95vw);
  background:rgba(13,17,34,.88);
  border:1px solid rgba(255,255,255,.08);
  border-radius:24px;
  padding:28px;
  box-shadow:0 28px 90px rgba(0,0,0,.42);
  backdrop-filter:blur(24px);
}
.auth-tabs{
  display:grid;
  grid-template-columns:1fr 1fr;
  background:#090d1b;
  border-radius:14px;
  padding:4px;
  margin-bottom:20px;
  gap:2px;
}
.auth-tab{
  background:transparent;
  color:#8e97ae;
  border-radius:11px;
  padding:10px;
  font-weight:800;
  font-size:13px;
}
.auth-tab.active{
  background:#191f38;
  color:#fff;
}

.google-btn{
  width:100%;
  height:48px;
  background:#141a30;
  color:#f7f8ff;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.09);
  font-weight:800;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin-bottom:14px;
}
.divider{
  display:flex;
  align-items:center;
  gap:12px;
  color:#68718d;
  font-size:12px;
  margin:16px 0;
}
.divider::before,.divider::after{
  content:"";
  height:1px;
  background:rgba(255,255,255,.08);
  flex:1;
}

.auth-form{display:grid;gap:12px}
.auth-form label{font-size:12px;font-weight:800;color:#cbd1e2;margin-bottom:4px;display:block}
.auth-form input{
  width:100%;
  height:44px;
  background:#0b1020;
  color:#f7f8ff;
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;
  padding:0 14px;
  font-size:14px;
}
.auth-form input::placeholder{color:#68718d}
.auth-form input:focus{
  border-color:#8b5cf6;
  box-shadow:0 0 0 4px rgba(139,92,246,.12);
  outline:0;
}
.auth-form button{
  height:48px;
  background:linear-gradient(135deg,#8b5cf6,#6d28d9 60%);
  color:#fff;
  font-weight:900;
  font-size:14px;
  border-radius:14px;
  margin-top:4px;
}
.auth-form button:hover{box-shadow:0 8px 20px rgba(109,40,217,.3)}
.error-box{
  background:rgba(251,75,120,.1);
  border:1px solid rgba(251,75,120,.2);
  color:#fb9cba;
  padding:12px;
  border-radius:12px;
  font-size:13px;
  margin-top:12px;
}

/* Topbar */
.topbar{
  position:sticky;
  top:0;
  height:66px;
  background:rgba(7,9,22,.82);
  border-bottom:1px solid rgba(255,255,255,.07);
  backdrop-filter:blur(24px);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 18px;
  z-index:40;
}
.topbar-brand{display:flex;align-items:center;gap:12px}
.mini-logo{width:40px;height:40px;display:grid;place-items:center;background:linear-gradient(135deg,#8b5cf6,#6d28d9);color:#fff;font-weight:900;font-size:18px;border-radius:12px}
.topbar-brand strong{font-size:18px;font-weight:900;color:#fff;letter-spacing:.08em}
.topbar-brand small{display:none}
.topbar-actions{display:flex;align-items:center;gap:12px}
.language-select{background:#11162a!important;color:#dfe4f4!important;border:1px solid rgba(255,255,255,.08)!important;border-radius:12px!important;padding:0 10px!important;height:38px!important;cursor:pointer}
.online-pill{font-size:11px;background:rgba(34,197,94,.1);color:#5eea91;border:1px solid rgba(34,197,94,.2);border-radius:999px;padding:5px 12px;font-weight:800}
.soft-btn{
  height:40px;
  background:#141a30;
  color:#f7f8ff;
  border:1px solid rgba(255,255,255,.08);
  border-radius:11px;
  padding:0 12px;
  font-weight:800;
  font-size:13px;
}
.soft-btn:hover{background:#1a2037}

/* Sidebar */
.sidebar{
  position:fixed;
  right:0;
  top:66px;
  width:var(--sidebar);
  height:calc(100vh - 66px);
  background:rgba(9,12,25,.96);
  border-left:1px solid rgba(255,255,255,.06);
  padding:16px;
  z-index:30;
  overflow-y:auto;
  transition:transform .3s ease;
  transform:translateX(0);
}
.sidebar.mobile-open{transform:translateX(0)}

/* Premium Features */
.message-react{
  background:none;
  border:none;
  font-size:13px;
  opacity:.6;
  cursor:pointer;
  padding:0 4px;
  transition:.2s ease;
}
.message-react:hover{opacity:1}

.emoji-picker{
  background:#1a2035!important;
  border:1px solid #7c3aed!important;
  border-radius:8px!important;
  padding:8px!important;
  box-shadow:0 4px 20px rgba(124,58,237,.3)!important;
}

.message-reactions{
  display:flex;
  flex-wrap:wrap;
  gap:4px;
  margin-top:6px;
  font-size:12px;
}

.message-reactions .reaction{
  background:rgba(124,58,237,.15);
  border:1px solid rgba(124,58,237,.3);
  border-radius:12px;
  padding:2px 8px;
  cursor:pointer;
  transition:.2s ease;
}

.message-reactions .reaction:hover{
  background:rgba(124,58,237,.25);
  border-color:#7c3aed;
}

.call-history-item{
  display:flex;
  align-items:center;
  padding:12px;
  background:#151b2e;
  border:1px solid rgba(255,255,255,.04);
  border-radius:12px;
  margin-bottom:8px;
  transition:.2s ease;
  cursor:pointer;
}

.call-history-item:hover{
  background:#1a2035;
  border-color:#7c3aed;
}

.typing-indicator{
  display:inline-flex;
  gap:3px;
  align-items:center;
}

.typing-indicator span{
  width:4px;
  height:4px;
  background:#7c3aed;
  border-radius:50%;
  animation:typing .6s infinite;
}

.typing-indicator span:nth-child(2){animation-delay:.1s}
.typing-indicator span:nth-child(3){animation-delay:.2s}

@keyframes typing{
  0%,60%,100%{transform:translateY(0);opacity:.7}
  30%{transform:translateY(-8px);opacity:1}
}

@media(max-width:1024px){
  .sidebar{
    transform:translateX(110%);
    width:80vw;
    max-width:280px;
    box-shadow:0 0 60px rgba(0,0,0,.5);
  }
  .sidebar.mobile-open{transform:translateX(0)}
}

.profile-mini{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px;
  border-bottom:1px solid rgba(255,255,255,.06);
  margin-bottom:12px;
}
.profile-avatar{
  width:48px;
  height:48px;
  border-radius:13px;
  object-fit:cover;
  border:2px solid rgba(255,255,255,.12);
}
.profile-mini-text{min-width:0;flex:1}
.profile-mini-text strong{display:block;color:#f7f8ff;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.profile-mini-text span{display:block;color:#7c86a0;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;direction:ltr}

.side-nav{display:grid;gap:6px;margin-top:8px}
.nav-item{
  height:48px;
  background:transparent;
  color:#8e97b1;
  border-radius:12px;
  border:1px solid transparent;
  padding:0 12px;
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:700;
  font-size:13px;
  transition:.2s ease;
}
.nav-item:hover{background:#11162a;color:#fff}
.nav-item.active{
  background:linear-gradient(90deg,rgba(124,58,237,.23),rgba(91,33,182,.08));
  color:#fff;
  border-color:rgba(139,92,246,.2);
  box-shadow:inset -3px 0 0 #8b5cf6;
}
.nav-item span{
  width:20px;
  height:20px;
  display:grid;
  place-items:center;
  font-size:18px;
}
.nav-item b{flex:1}
.nav-item em{
  font-style:normal;
  font-size:10px;
  font-weight:800;
  background:#1a2037;
  color:#aeb6cc;
  padding:3px 7px;
  border-radius:999px;
}

.side-status{
  position:absolute;
  bottom:16px;
  right:14px;
  left:14px;
  background:#0e1325;
  border:1px solid rgba(255,255,255,.07);
  border-radius:12px;
  padding:10px;
  display:flex;
  align-items:center;
  gap:8px;
  font-size:12px;
}
.status-dot{
  width:8px;
  height:8px;
  background:#22c55e;
  border-radius:50%;
  box-shadow:0 0 0 3px rgba(34,197,74,.2);
}
.side-status strong{color:#e8ebf6;display:block}
.side-status small{color:#747e99;display:block;margin-top:2px}

/* Content */
.content{
  margin-right:var(--sidebar);
  padding:24px 28px 40px;
  max-width:1600px;
}

@media(max-width:1024px){
  .content{
    margin-right:0;
    padding:16px 12px 100px;
  }
}

.page-panel{max-width:1400px;margin:0 auto}

/* Hero & Section Titles */
.hero-row,.section-title{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  margin-bottom:20px;
}
.eyebrow{
  font-size:11px;
  font-weight:900;
  color:#bca8ff;
  background:rgba(124,58,237,.12);
  border:1px solid rgba(139,92,246,.12);
  padding:5px 10px;
  border-radius:999px;
  display:inline-block;
}
.hero-row h2,.section-title h2{
  font-size:28px;
  font-weight:900;
  color:#fff;
  margin:0;
}
.hero-row p{color:#8f99b4;font-size:13px;margin:0}

/* Search */
.search-card{
  height:58px;
  background:#0f1427;
  border:1px solid rgba(255,255,255,.07);
  border-radius:16px;
  padding:0 16px;
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:18px;
}
.search-card span{color:#7f89a6;font-size:18px}
.search-card input{
  flex:1;
  background:transparent;
  color:#f7f8ff;
  border:0;
  font-size:14px;
  outline:0;
}
.search-card input::placeholder{color:#68718d}
.count-pill{
  background:#191f36;
  color:#b9c1d5;
  font-size:11px;
  font-weight:800;
  padding:6px 10px;
  border-radius:999px;
  white-space:nowrap;
}

/* Users Grid - Mobile First */
.users-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
}

@media(min-width:768px){
  .users-grid{grid-template-columns:repeat(2,1fr);gap:14px}
}

@media(min-width:1024px){
  .users-grid{grid-template-columns:repeat(3,1fr);gap:14px}
}

.user-card{
  background:linear-gradient(180deg,#11162a,#0d1223);
  border:1px solid rgba(255,255,255,.07);
  border-radius:18px;
  padding:14px;
  transition:.2s ease;
}
.user-card:hover{
  border-color:rgba(139,92,246,.27);
  transform:translateY(-2px);
  box-shadow:0 14px 38px rgba(0,0,0,.22);
}

.user-head{
  display:flex;
  align-items:center;
  gap:10px;
}
.avatar{
  width:50px;
  height:50px;
  background:linear-gradient(135deg,#8b5cf6,#4f46e5);
  color:#fff;
  border-radius:14px;
  display:grid;
  place-items:center;
  font-size:20px;
  font-weight:900;
  flex-shrink:0;
  box-shadow:0 8px 22px rgba(76,29,149,.24);
  object-fit:cover;
}
.avatar.big{width:90px;height:90px;border-radius:20px;font-size:36px}

.user-info{flex:1;min-width:0}
.user-info h3{
  font-size:14px;
  font-weight:800;
  color:#f7f8ff;
  margin:0 0 2px;
  display:flex;
  align-items:center;
  gap:5px;
}
.user-info small{
  color:#818ba7;
  font-size:12px;
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.user-company,.user-domain{
  display:block;
  font-size:11px;
  color:#7a86a0;
  margin-top:2px;
}
.user-online{color:#6ee7a3!important;font-weight:800}

.user-actions{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:6px;
  margin-top:12px;
  padding-top:10px;
  border-top:1px solid rgba(255,255,255,.06);
}
.user-actions button{
  height:36px;
  border-radius:10px;
  font-weight:800;
  font-size:11px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  transition:.2s ease;
}
.message-user{background:#1a2035;color:#e4e8f4}
.audio-user{background:linear-gradient(135deg,#0e7490,#06b6d4);color:#fff}
.video-user{background:linear-gradient(135deg,#7c3aed,#4f46e5);color:#fff}
.follow-user{background:rgba(34,197,94,.1);color:#6ee7a3}
.block-user{background:rgba(251,75,120,.1);color:#fb7c9c}

/* Chat Layout */
.chat-layout{
  display:grid;
  grid-template-columns:330px minmax(0,1fr);
  min-height:calc(100vh - 130px);
  border-radius:20px;
  background:#0b0f1e;
  border:1px solid rgba(255,255,255,.07);
  overflow:hidden;
}

@media(max-width:768px){
  .chat-layout{
    grid-template-columns:1fr;
    display:none;
  }
  .chat-layout.mobile-chat-open{display:grid}
}

.chat-list-panel{
  background:#0d1223;
  border-right:1px solid rgba(255,255,255,.06);
  padding:12px 10px;
  overflow-y:auto;
}

.chat-list{display:grid;gap:6px}
.chat-list-item{
  padding:10px;
  background:transparent;
  border:1px solid transparent;
  border-radius:12px;
  display:flex;
  gap:10px;
  align-items:center;
  color:#aab2c8;
  cursor:pointer;
  transition:.2s ease;
}
.chat-list-item:hover{
  background:#151a30;
  border-color:rgba(255,255,255,.04);
  color:#fff;
}
.chat-list-item.active{
  background:linear-gradient(90deg,rgba(124,58,237,.21),rgba(124,58,237,.07));
  border-color:rgba(139,92,246,.15);
  color:#fff;
}
.chat-list-item .avatar{width:40px;height:40px;border-radius:10px}
.chat-list-item div{flex:1;min-width:0}
.chat-list-item strong{
  display:block;
  color:#eef1f9;
  font-size:13px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.chat-list-item small{
  display:block;
  color:#7f89a3;
  font-size:11px;
  margin-top:2px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.chat-list-item em{
  background:#8b5cf6;
  color:#fff;
  padding:2px 6px;
  border-radius:999px;
  font-size:10px;
  font-style:normal;
  font-weight:900;
}

.chat-panel{
  display:flex;
  flex-direction:column;
  background:#090d1b;
  min-width:0;
}
.chat-empty{
  margin:auto;
  text-align:center;
  color:#7d87a3;
}
.chat-empty h3{
  color:#f3f5fb;
  font-size:18px;
  margin:0 0 4px;
}

.chat-active{
  display:flex;
  flex-direction:column;
  height:100%;
}

.chat-head{
  height:66px;
  border-bottom:1px solid rgba(255,255,255,.06);
  padding:0 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:rgba(12,16,31,.92);
}
.chat-peer{
  display:flex;
  align-items:center;
  gap:10px;
}
.chat-peer strong{
  color:#f6f7fc;
  font-size:14px;
}
.chat-peer small{
  display:block;
  color:#62df92;
  font-size:11px;
  font-weight:800;
}
.chat-head-actions{
  display:flex;
  gap:6px;
}
.icon-soft{
  width:38px;
  height:38px;
  border-radius:10px;
  background:#161c31;
  color:#cfd5e5;
  border:1px solid rgba(255,255,255,.08);
  display:grid;
  place-items:center;
  font-size:16px;
  transition:.2s ease;
}
.icon-soft:hover{background:#1a2037}
.icon-soft.accent{
  background:#7c3aed;
  border-color:#7c3aed;
  color:#fff;
}

.messages-box{
  flex:1;
  overflow-y:auto;
  padding:18px 16px;
  display:flex;
  flex-direction:column;
  gap:8px;
  background:radial-gradient(circle at 80% 10%,rgba(124,58,237,.05),transparent 25%),#080c18;
}
.message{
  max-width:75%;
  padding:10px 13px;
  background:#151b2e;
  color:#edf0f8;
  border-radius:15px 15px 15px 3px;
  border:1px solid rgba(255,255,255,.04);
  font-size:13.5px;
  line-height:1.4;
  word-wrap:break-word;
  align-self:flex-start;
}
.message.mine{
  align-self:flex-end;
  background:linear-gradient(135deg,#6d28d9,#5b21b6);
  color:#fff;
  border-radius:15px 3px 15px 15px;
  border:0;
}
.message small{
  color:inherit;
  opacity:.56;
  font-size:11px;
  display:block;
  margin-top:4px;
}
.message img{
  max-width:100%;
  border-radius:11px;
  display:block;
  margin-bottom:5px;
}
.message a{color:#9de9ff;text-decoration:none}

.message-compose{
  height:70px;
  background:#0c1020;
  border-top:1px solid rgba(255,255,255,.06);
  padding:10px 14px;
  display:flex;
  gap:8px;
  align-items:center;
}
.message-compose input{
  flex:1;
  height:44px;
  background:#151a2d;
  color:#f7f8ff;
  border:1px solid rgba(255,255,255,.06);
  border-radius:12px;
  padding:0 12px;
  font-size:13.5px;
}
.message-compose input::placeholder{color:#68718d}
.message-compose input:focus{
  border-color:#8b5cf6;
  outline:0;
}
.compose-icon,.send-btn{
  height:42px;
  border-radius:11px;
  border:0;
  font-weight:900;
  cursor:pointer;
  transition:.2s ease;
}
.compose-icon{
  width:42px;
  background:#181e33;
  color:#b5bdd2;
  font-size:18px;
}
.send-btn{
  padding:0 18px;
  background:#7c3aed;
  color:#fff;
  font-size:13px;
}
.send-btn:hover{box-shadow:0 6px 16px rgba(124,58,237,.3)}

.quick-replies-bar{
  background:#0c1020;
  border-top:1px solid rgba(255,255,255,.05);
  padding:10px 16px;
}
.quick-replies-title{
  font-size:11px;
  font-weight:900;
  color:#8f99b5;
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:8px;
}
.quick-manage{
  background:transparent;
  color:#b59bff;
  font-size:11px;
  font-weight:800;
  cursor:pointer;
}

/* Mobile Bottom Nav */
.mobile-bottom-nav{
  display:none;
  position:fixed;
  bottom:0;
  left:0;
  right:0;
  height:64px;
  background:rgba(9,12,25,.94);
  border-top:1px solid rgba(255,255,255,.07);
  grid-template-columns:repeat(5,1fr);
  z-index:60;
  backdrop-filter:blur(18px);
  box-shadow:0 -10px 30px rgba(0,0,0,.2);
}

@media(max-width:1024px){
  .mobile-bottom-nav{display:grid}
}

.mobile-nav-item{
  background:transparent;
  color:#64748b;
  border:0;
  padding:6px 0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  cursor:pointer;
  transition:.2s ease;
  position:relative;
}
.mobile-nav-item:hover{color:#8b96ad}
.mobile-nav-item.active{color:#8b5cf6}
.mobile-nav-item.active::after{
  content:"";
  position:absolute;
  bottom:2px;
  width:16px;
  height:2.5px;
  background:#8b5cf6;
  border-radius:2px;
}
.mobile-nav-item b{font-size:9px;font-weight:800}
.mobile-nav-item span{font-size:18px}

/* Empty States */
.empty-state{
  text-align:center;
  padding:50px 20px;
  color:#7d87a3;
}
.empty-icon{
  width:64px;
  height:64px;
  display:grid;
  place-items:center;
  background:#13182d;
  color:#a991ff;
  border-radius:18px;
  font-size:26px;
  margin:0 auto 14px;
}
.empty-state h3{
  color:#f3f5fb;
  font-size:18px;
  margin:0 0 4px;
}
.empty-state p{
  color:#808aa5;
  font-size:13px;
  margin:0;
}

/* Drawer Backdrop */
.drawer-backdrop{
  position:fixed;
  inset:66px 0 0;
  background:rgba(0,0,0,.55);
  z-index:24;
  backdrop-filter:blur(4px);
}

/* Toast Notifications */
.toast{
  position:fixed;
  bottom:80px;
  left:50%;
  transform:translateX(-50%);
  background:#0f172a;
  color:#f7f8ff;
  padding:12px 20px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.1);
  font-weight:700;
  font-size:13px;
  box-shadow:0 12px 35px rgba(0,0,0,.4);
  z-index:140;
}

@media(max-width:1024px){
  .toast{bottom:90px}
}

/* Modals */
.modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.65);
  display:grid;
  place-items:center;
  z-index:90;
  padding:20px;
  backdrop-filter:blur(8px);
}
.modal-card{
  width:min(400px,95vw);
  background:#0d1223;
  border:1px solid rgba(255,255,255,.08);
  border-radius:20px;
  padding:28px;
  text-align:center;
  box-shadow:0 25px 80px rgba(0,0,0,.4);
}
.modal-card h2{
  color:#f7f8ff;
  font-size:20px;
  margin:10px 0 5px;
}
.modal-card p{
  color:#8f99b4;
  font-size:13px;
  margin:0 0 18px;
}

.pulse-avatar{
  width:100px;
  height:100px;
  margin:0 auto 16px;
  display:grid;
  place-items:center;
  background:rgba(124,58,237,.1);
  color:#8b5cf6;
  border-radius:20px;
  font-size:36px;
  font-weight:900;
  animation:callPulse 1.6s infinite;
}
@keyframes callPulse{
  50%{box-shadow:0 0 0 20px rgba(124,58,237,.08)}
}

.call-actions{
  display:flex;
  justify-content:center;
  gap:10px;
  margin-top:18px;
}
.danger-btn,.success-btn{
  height:44px;
  border-radius:12px;
  color:#fff;
  font-weight:900;
  font-size:13px;
  padding:0 22px;
  border:0;
  cursor:pointer;
}
.danger-btn{
  background:linear-gradient(135deg,#d73463,#b01a4a);
  box-shadow:0 6px 18px rgba(178,25,74,.24);
}
.success-btn{
  background:linear-gradient(135deg,#22c55e,#16a34a);
  box-shadow:0 6px 18px rgba(34,197,94,.24);
}
/* ===== SNNS Call View ===== */
.call-view{
  position:fixed;
  inset:0;
  z-index:110;
  background:#050711;
  display:flex;
  flex-direction:column;
  width:100%;
  height:100dvh;
  overflow:hidden;
}

.call-top{
  min-height:72px;
  background:rgba(7,10,24,.98);
  color:#f7f8ff;
  padding:10px 18px;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:12px;
  border-bottom:1px solid rgba(255,255,255,.07);
  flex-shrink:0;
}

.call-top > div:first-child{
  justify-self:start;
}

.call-brand{
  justify-self:center;
  font-weight:900;
  font-size:18px;
  letter-spacing:1px;
}

#callTimer{
  display:block;
  margin-top:3px;
  font-size:13px;
  opacity:.75;
}

#endCallBtn{
  justify-self:end;
  min-height:42px;
  padding:0 18px;
  border-radius:13px;
}

#dailyFrame{
  display:block;
  flex:1 1 auto;
  width:100%;
  min-height:0;
  border:0;
  background:#050711;
}

/* Mobile SNNS Call */
@media (max-width:700px){
  .call-view{
    height:100dvh;
    padding-top:env(safe-area-inset-top);
    padding-bottom:env(safe-area-inset-bottom);
    background:#050711;
  }

  .call-top{
    min-height:64px;
    padding:8px 12px;
    grid-template-columns:1fr auto 1fr;
  }

  .call-top > div:first-child{
    font-size:13px;
    min-width:0;
  }

  #callPeerName{
    display:block;
    max-width:145px;
    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
  }

  .call-brand{
    font-size:15px;
  }

  #callTimer{
    font-size:12px;
  }

  #endCallBtn{
    min-height:40px;
    padding:0 12px;
    font-size:12px;
    border-radius:12px;
  }

  #dailyFrame{
    width:100%;
    height:100%;
    min-height:0;
  }
}

/* Profile & Forms */
.profile-card{
  background:#0e1325;
  border:1px solid rgba(255,255,255,.07);
  border-radius:20px;
  overflow:hidden;
  box-shadow:0 14px 40px rgba(0,0,0,.25);
}
.profile-cover{
  height:200px;
  background:radial-gradient(circle at 74% 32%,#155e75,#4c1d95 46%,#0a0d1a 100%);
  background-size:cover;
  background-position:center;
  position:relative;
}
.profile-body{
  padding:0 20px 20px;
}
.profile-photo-wrap{
  width:110px;
  margin-top:-55px;
  position:relative;
  margin-bottom:10px;
}
.profile-photo{
  width:110px;
  height:110px;
  border-radius:18px;
  object-fit:cover;
  border:4px solid #0e1325;
  background:#6d28d9;
  box-shadow:0 14px 34px rgba(0,0,0,.3);
}
.profile-heading h2{
  color:#fff;
  font-size:22px;
  font-weight:900;
  margin:14px 0 4px;
}
.profile-heading p{
  color:#8f99b4;
  font-size:13px;
  margin:0;
}

.profile-form{
  display:grid;
  gap:14px;
}
.profile-form label{
  font-size:12px;
  font-weight:800;
  color:#cbd1e2;
  display:block;
  margin-bottom:5px;
}
.profile-form input,
.profile-form textarea,
.profile-form select{
  width:100%;
  background:#0b1020;
  color:#f7f8ff;
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;
  padding:10px 12px;
  font-size:13px;
}
.profile-form input,
.profile-form select{height:42px;padding:0 12px}
.profile-form input:focus,
.profile-form textarea:focus,
.profile-form select:focus{
  border-color:#8b5cf6;
  outline:0;
}
.profile-form input::placeholder,
.profile-form textarea::placeholder{color:#68718d}
.profile-form textarea{resize:vertical;min-height:100px}
.profile-form button{
  height:44px;
  background:linear-gradient(135deg,#8b5cf6,#6d28d9);
  color:#fff;
  font-weight:900;
  border-radius:12px;
  cursor:pointer;
  margin-top:4px;
}

/* Video Feed */
.video-feed{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
}

@media(min-width:768px){
  .video-feed{grid-template-columns:repeat(2,1fr);gap:14px}
}

/* Generic Cards */
.card{
  background:#101527;
  border:1px solid rgba(255,255,255,.07);
  border-radius:16px;
  padding:14px;
  color:#edf0f8;
}
.card strong{color:#f4f6fb}
.card small{color:#818ba5}

/* Responsive Fixes */
@media(max-width:600px){
  .users-grid{grid-template-columns:1fr}
  .topbar-brand small{display:none}
  .hero-row{flex-direction:column;align-items:flex-start}
  .hero-row h2{font-size:22px}
  .mobile-chat-back{display:block!important}
}


/* ===== SNNS v29 — Luxury Glass UI ===== */
:root{
  --glass-bg:rgba(12,18,36,.58);
  --glass-bg-strong:rgba(15,21,42,.76);
  --glass-border:rgba(255,255,255,.12);
  --glass-shadow:0 18px 55px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.045);
}
html{background:#070a14}
body{
  background:
    radial-gradient(circle at 12% 8%,rgba(124,58,237,.18),transparent 30%),
    radial-gradient(circle at 88% 18%,rgba(37,99,235,.15),transparent 28%),
    radial-gradient(circle at 52% 92%,rgba(6,182,212,.08),transparent 34%),
    #070a14;
  background-attachment:fixed;
}
/* Main glass surfaces */
.sidebar,.topbar,.card,.panel,.modal-content,.dropdown-menu,.menu-popover,
.chat-list-panel,.chat-panel,.contact-card,.user-card,.profile-card,.video-card,
.stat-card,.quick-card,.search-box,.composer,.sheet,.dialog,.toast{
  background:linear-gradient(145deg,rgba(20,27,50,.72),rgba(9,14,29,.52))!important;
  border-color:var(--glass-border)!important;
  box-shadow:var(--glass-shadow)!important;
  -webkit-backdrop-filter:blur(22px) saturate(145%);
  backdrop-filter:blur(22px) saturate(145%);
}
/* Inputs remain readable but glassy */
input,textarea,select,.search-input{
  background:rgba(5,10,23,.48)!important;
  border-color:rgba(255,255,255,.11)!important;
  -webkit-backdrop-filter:blur(14px);
  backdrop-filter:blur(14px);
}
/* Gentle glass highlight */
.card,.contact-card,.user-card,.profile-card,.video-card,.chat-list-panel,.chat-panel{
  position:relative;
  overflow:hidden;
}
.card:before,.contact-card:before,.user-card:before,.profile-card:before,.video-card:before{
  content:"";
  position:absolute;inset:0 0 auto 0;height:1px;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.28),transparent);
  pointer-events:none;
}
/* Mobile bottom bar — floating glass */
@media(max-width:768px){
  .mobile-nav{
    left:10px!important;right:10px!important;bottom:10px!important;width:auto!important;
    border:1px solid rgba(255,255,255,.13)!important;
    border-radius:22px!important;
    background:rgba(9,14,29,.70)!important;
    box-shadow:0 16px 42px rgba(0,0,0,.42)!important;
    -webkit-backdrop-filter:blur(26px) saturate(160%);
    backdrop-filter:blur(26px) saturate(160%);
  }
  .topbar{background:rgba(8,13,27,.66)!important}
}

/* ===== SNNS v30 — Reference Luxury UI / REAL DATA ONLY =====
   Visual layer inspired by the supplied reference project.
   No React mock data or demo records are imported. Existing PHP/SQLite APIs remain authoritative. */
:root{
  --v30-bg:#070b16;
  --v30-surface:#0c1324;
  --v30-surface-2:#10192d;
  --v30-line:#1f2d47;
  --v30-blue:#2168ff;
  --v30-cyan:#08d9d6;
  --v30-gold:#f5a900;
  --v30-green:#16d69a;
  --v30-muted:#8fa1bd;
}

html,body{background:var(--v30-bg)!important}
body{
  background:
    radial-gradient(900px 460px at 48% -8%,rgba(33,104,255,.10),transparent 62%),
    radial-gradient(650px 420px at 5% 15%,rgba(124,58,237,.08),transparent 68%),
    var(--v30-bg)!important;
}

/* Compact professional app frame */
.topbar{
  height:64px!important;
  background:rgba(7,11,22,.90)!important;
  border-bottom:1px solid var(--v30-line)!important;
  box-shadow:none!important;
  padding-inline:22px!important;
}
.topbar-brand .mini-logo{
  width:38px!important;height:38px!important;border-radius:12px!important;
  background:linear-gradient(145deg,#2769ff,#713cff)!important;
  box-shadow:0 0 26px rgba(55,95,255,.28)!important;
}
.topbar-brand strong{font-size:17px!important;letter-spacing:.03em!important}
.topbar-brand small{display:block!important;color:#8291aa!important;font-size:10px!important}
.language-select,.soft-btn,.online-pill{
  background:#0f182b!important;border:1px solid #223250!important;border-radius:10px!important;
  box-shadow:none!important;
}
.online-pill{color:#35e4b0!important}

.sidebar{
  top:64px!important;
  width:255px!important;
  background:#080e1b!important;
  border-left:1px solid var(--v30-line)!important;
  box-shadow:none!important;
  padding:12px!important;
}
.profile-mini{
  background:#0d1628!important;
  border:1px solid #253755!important;
  border-radius:14px!important;
  padding:10px!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025)!important;
}
.profile-avatar{border:2px solid #3f6fff!important;box-shadow:0 0 0 3px rgba(33,104,255,.10)!important}
.side-nav{gap:4px!important;margin-top:12px!important}
.nav-item{
  min-height:46px!important;
  border:1px solid transparent!important;
  border-radius:10px!important;
  padding:0 11px!important;
  color:#c2cee0!important;
  background:transparent!important;
  font-weight:800!important;
}
.nav-item:hover{background:#0d1729!important;border-color:#182944!important}
.nav-item.active{
  color:#fff!important;
  background:linear-gradient(90deg,rgba(33,104,255,.22),rgba(33,104,255,.08))!important;
  border-color:#235dd0!important;
  box-shadow:inset 3px 0 0 #2d73ff!important;
}
.nav-item .nav-svg{width:30px!important;height:30px!important;border-radius:8px!important;background:#15223a!important;color:#8ea5c8!important}
.nav-item.active .nav-svg{background:#2168ff!important;color:#fff!important}
.nav-item em{background:#1a2942!important;color:#9eb4d6!important;min-width:22px!important;height:22px!important;border-radius:999px!important;font-style:normal!important}
.side-status{background:#08182a!important;border:1px solid #173551!important;border-radius:12px!important;color:#dce9f7!important}
.side-status small{color:#27dba4!important}

.content{
  padding:30px 30px 90px!important;
  margin-right:255px!important;
  background:transparent!important;
}
.page-panel{max-width:1280px!important}

/* Hero panels closely match the supplied reference */
.hero-row,.section-title,.video-page-head,.radar-hero{
  background:linear-gradient(135deg,#101b33 0%,#0c1427 56%,#121226 100%)!important;
  border:1px solid #21375c!important;
  border-radius:22px!important;
  padding:26px 28px!important;
  box-shadow:0 20px 50px rgba(0,0,0,.18)!important;
}
.hero-row h2,.section-title h2,.video-page-head h2{font-size:29px!important;line-height:1.25!important;letter-spacing:-.02em!important}
.hero-row p,.section-title p,.video-page-head p{color:#a5b2c8!important;font-size:13px!important}
.eyebrow{color:#4cb0ff!important;background:rgba(33,104,255,.10)!important;border:1px solid rgba(50,117,255,.25)!important;border-radius:7px!important;padding:5px 8px!important}

.search-card{
  min-height:56px!important;
  margin-top:20px!important;
  border:1px solid #20304d!important;
  border-radius:13px!important;
  background:#0d1526!important;
  box-shadow:none!important;
  padding:0 16px!important;
}
.search-card:focus-within{border-color:#2a68de!important;box-shadow:0 0 0 3px rgba(33,104,255,.08)!important}
.search-card input{background:transparent!important;color:#ecf3ff!important}
.count-pill{background:#143058!important;color:#d8e8ff!important;border:1px solid #27518d!important}

/* Real-user cards */
.users-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px!important;margin-top:22px!important}
.user-card{
  min-height:246px!important;
  background:#0d1526!important;
  border:1px solid #213252!important;
  border-radius:16px!important;
  padding:18px!important;
  box-shadow:none!important;
  transition:.18s ease!important;
}
.user-card:hover{transform:translateY(-2px)!important;border-color:#356ed1!important;background:#0f192c!important}
.user-head{align-items:flex-start!important}
.user-card .avatar{width:64px!important;height:64px!important;border:2px solid #213d69!important;box-shadow:0 0 0 4px rgba(33,104,255,.08)!important}
.user-info h3{font-size:16px!important;color:#fff!important}
.user-info small,.user-company,.user-domain{color:#91a2bd!important}
.user-online{color:#21dda8!important}
.online-dot{box-shadow:0 0 0 4px rgba(22,214,154,.12)!important}
.pro-user-actions{
  margin-top:auto!important;padding-top:14px!important;border-top:1px solid #1b2a44!important;
  display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:7px!important;
}
.pro-user-actions>button{
  height:38px!important;border-radius:9px!important;border:1px solid #263957!important;background:#111d31!important;color:#dce8fb!important;
}
.pro-user-actions>button.video-user{background:#2168ff!important;border-color:#2168ff!important;color:#fff!important}
.pro-user-actions>button.audio-user{color:#35e3b0!important}
.pro-user-actions>button:hover{filter:brightness(1.12)!important}

/* Chat workspace */
.chat-layout{gap:16px!important;height:calc(100vh - 126px)!important}
.chat-list-panel,.chat-panel{
  background:#0b1323!important;border:1px solid #20304c!important;border-radius:16px!important;box-shadow:none!important;
}
.chat-list-item{border-bottom:1px solid #17263e!important}
.chat-list-item:hover,.chat-list-item.active{background:#111e34!important}
.chat-head{background:#0d1729!important;border-bottom:1px solid #20304c!important}
.messages-box{background:#09101e!important}
.message{background:#111d31!important;border:1px solid #203351!important}
.message.mine{background:linear-gradient(135deg,#1756d7,#2046b8)!important;border-color:#2a6af1!important}
.message-compose{background:#0d1728!important;border-top:1px solid #20304c!important}
.send-btn{background:#2168ff!important}

/* Social/feed cards */
.video-page-head{margin-bottom:20px!important}
.video-feed{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px!important}
.video-feed-card,.media-card,.social-card,.history-card,.notification-row,.nearby-card{
  background:#0a111f!important;border:1px solid #20304d!important;border-radius:16px!important;box-shadow:none!important;
}
.video-feed-card{overflow:hidden!important}
.video-feed-card:hover,.social-card:hover,.history-card:hover{border-color:#3265ba!important}

.primary-btn{
  background:linear-gradient(135deg,#2168ff,#0f57f0)!important;
  border:1px solid #3c7cff!important;
  box-shadow:0 10px 22px rgba(33,104,255,.18)!important;
}
.soft-btn,.icon-soft,.compose-icon{
  background:#111d31!important;border:1px solid #263957!important;color:#dce8fb!important;
}

/* Administration keeps the same product language */
.admin-card,.admin-stat,.verification-request,.admin-user-row,.admin-call-row{
  background:#0d1526!important;border-color:#20304d!important;box-shadow:none!important;
}

/* Remove v29 over-glass feeling: cleaner reference look */
.sidebar,.topbar,.card,.panel,.modal-content,.dropdown-menu,.menu-popover,
.chat-list-panel,.chat-panel,.contact-card,.user-card,.profile-card,.video-card,
.stat-card,.quick-card,.search-box,.composer,.sheet,.dialog,.toast{
  -webkit-backdrop-filter:none!important;backdrop-filter:none!important;
}

@media(max-width:1100px){
  .users-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .video-feed{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

@media(max-width:768px){
  .topbar{height:58px!important;padding-inline:12px!important}
  .topbar-brand small{display:none!important}
  .sidebar{top:58px!important;width:min(88vw,310px)!important;padding:12px!important}
  .content{margin-right:0!important;padding:16px 12px 92px!important}
  .hero-row,.section-title,.video-page-head,.radar-hero{padding:18px!important;border-radius:17px!important}
  .hero-row h2,.section-title h2,.video-page-head h2{font-size:23px!important}
  .users-grid,.video-feed{grid-template-columns:1fr!important;gap:12px!important}
  .user-card{min-height:auto!important;padding:15px!important}
  .pro-user-actions{grid-template-columns:repeat(4,1fr)!important}
  .pro-user-actions>button{height:42px!important}
  .pro-user-actions>button b{font-size:9px!important}
  .mobile-nav{
    background:#09111f!important;border:1px solid #223452!important;border-radius:18px!important;
    box-shadow:0 16px 34px rgba(0,0,0,.38)!important;
    -webkit-backdrop-filter:blur(18px)!important;backdrop-filter:blur(18px)!important;
  }
  .mobile-nav-item.active{color:#4c85ff!important}
  .mobile-nav-item.active::after{background:#3676ff!important}
  .chat-layout{height:calc(100vh - 150px)!important}
}

/* =========================================================
   SNNS v31 — approved compact mobile shell + call stage
   UI only: backend, Firebase auth, SQLite and Daily flow unchanged.
   ========================================================= */
@media(max-width:768px){
  body{background:#050914!important}
  .topbar{
    height:56px!important;min-height:56px!important;padding:0 10px!important;
    background:#07101f!important;border-bottom:1px solid #16243a!important;
  }
  .content{padding:12px 8px 76px!important}
  .page-panel{width:100%!important;max-width:none!important}
  .hero-row,.section-title,.video-page-head,.radar-hero{
    padding:14px!important;border-radius:14px!important;background:#0b1426!important;
    border-color:#1b2c47!important;box-shadow:none!important;
  }
  .hero-row h2,.section-title h2,.video-page-head h2{font-size:18px!important;line-height:1.3!important}
  .hero-row p,.section-title p,.video-page-head p{font-size:10px!important;line-height:1.65!important}
  .eyebrow{font-size:9px!important;padding:3px 6px!important}
  .search-card{min-height:46px!important;margin-top:12px!important;border-radius:11px!important}
  .users-grid,.video-feed{gap:9px!important}
  .user-card{border-radius:13px!important;padding:12px!important}
  .user-card .avatar{width:48px!important;height:48px!important}
  .user-info h3{font-size:13px!important}.user-info small,.user-company,.user-domain{font-size:9px!important}
  .pro-user-actions{gap:5px!important;padding-top:10px!important}
  .pro-user-actions>button{height:35px!important;border-radius:8px!important}

  .mobile-bottom-nav{
    display:grid!important;height:58px!important;left:6px!important;right:6px!important;bottom:5px!important;
    border:1px solid #1c2b45!important;border-radius:10px!important;background:rgba(7,15,29,.98)!important;
    box-shadow:0 10px 30px rgba(0,0,0,.42)!important;overflow:hidden!important;
    -webkit-backdrop-filter:blur(14px)!important;backdrop-filter:blur(14px)!important;
  }
  .mobile-nav-item{gap:2px!important;padding:4px 0!important;color:#71819b!important}
  .mobile-nav-item svg{width:17px!important;height:17px!important}
  .mobile-nav-item b{font-size:8px!important;line-height:1!important}
  .mobile-nav-item.active{color:#6fa2ff!important;background:rgba(36,100,220,.08)!important}
  .mobile-nav-item.active::after{bottom:0!important;width:22px!important;height:2px!important;background:#4d8cff!important}

  /* Approved narrow call composition. Daily remains the real call engine. */
  .call-view{
    inset:0!important;background:#05070b!important;padding:0!important;align-items:center!important;
    overflow:hidden!important;
  }
  .call-top{
    width:100%!important;height:74px!important;min-height:74px!important;padding:10px 14px!important;
    display:flex!important;flex-direction:row!important;justify-content:space-between!important;gap:10px!important;
    background:#05070b!important;border-bottom:0!important;box-sizing:border-box!important;
  }
  .call-top>div:first-child{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:2px!important}
  #callPeerName{font-size:13px!important;line-height:1.15!important;color:#fff!important;max-width:140px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  #callTimer{font-size:10px!important;color:#56a3ff!important;font-family:ui-monospace,SFMono-Regular,Menlo,monospace!important}
  .call-brand{
    order:-1!important;font-size:9px!important;color:#27d99a!important;background:#062d25!important;
    border:1px solid #0a765c!important;border-radius:999px!important;padding:6px 10px!important;
  }
  .call-brand::after{content:'  E2EE';font-weight:900!important}
  #endCallBtn{
    height:42px!important;padding:0 15px!important;border-radius:10px!important;background:#f50546!important;
    border:0!important;box-shadow:none!important;font-size:11px!important;white-space:nowrap!important;
  }
  #dailyFrame{
    flex:none!important;width:calc(100% - 24px)!important;height:calc(100dvh - 92px)!important;max-width:390px!important;
    margin:0 12px 18px!important;border:1px solid #17243a!important;border-radius:20px!important;
    background:#000!important;overflow:hidden!important;box-shadow:0 18px 50px rgba(0,0,0,.5)!important;
  }
}

/* =========================================================
   SNNS v31.2 — Mobile viewport lock
   Prevent horizontal page drift without scaling the UI.
   ========================================================= */
@media (max-width:768px){
  html{
    width:100%;
    max-width:100%;
    overflow-x:hidden!important;
    overscroll-behavior-x:none;
  }
  body{
    width:100%;
    max-width:100%;
    min-width:0!important;
    overflow-x:hidden!important;
    overscroll-behavior-x:none;
    position:relative;
  }
  #app,.app-shell,.app,.main,.main-content,.content,.page-panel,
  .hero-row,.section-title,.video-page-head,.radar-hero,
  .users-grid,.video-feed,.chat-layout,.chat-panel,.chat-list-panel,
  .profile-card,.card,.panel,.user-card,.video-card{
    min-width:0!important;
    max-width:100%!important;
  }
  .content{
    width:100%!important;
    margin-left:0!important;
    margin-right:0!important;
  }
  img,video,canvas,iframe{
    max-width:100%;
  }
  .sidebar:not(.mobile-open){
    visibility:hidden!important;
    pointer-events:none!important;
  }
  .sidebar.mobile-open{
    visibility:visible!important;
    pointer-events:auto!important;
  }
  .topbar{
    width:100%!important;
    max-width:100%!important;
  }
  .topbar-brand,.topbar-actions{
    min-width:0!important;
  }
  .topbar-actions{
    flex-shrink:1!important;
  }
  table{
    max-width:100%!important;
  }
}


/* =========================================================
   SNNS v32.1 — Safe premium auth + groups form repair
   Scoped overrides only. No call/chat/backend behavior changes.
   ========================================================= */
.auth-shell{
  min-height:100vh!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:18px!important;
  padding:32px 18px!important;
  overflow:hidden!important;
}
.auth-brand{width:100%;max-width:420px;margin:0!important;text-align:center!important}
.logo-mark{
  width:78px!important;height:78px!important;margin:0 auto 14px!important;padding:0!important;
  border-radius:23px!important;overflow:hidden!important;background:#0b1020!important;
  border:1px solid rgba(255,255,255,.12)!important;
  box-shadow:0 18px 45px rgba(0,0,0,.42),0 0 34px rgba(124,58,237,.24)!important;
}
.logo-mark img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}
.auth-brand h1{font-size:32px!important;letter-spacing:.5px;margin:0 0 5px!important}
.auth-brand p{font-size:13px!important;color:#9aa5bf!important}
.auth-card{
  width:min(420px,calc(100vw - 32px))!important;margin:0!important;padding:26px!important;
  background:linear-gradient(145deg,rgba(17,22,42,.96),rgba(8,12,27,.94))!important;
  border:1px solid rgba(255,255,255,.09)!important;border-radius:24px!important;
  box-shadow:0 28px 80px rgba(0,0,0,.48)!important;backdrop-filter:blur(22px)!important;
}
.google-btn{
  width:100%!important;height:54px!important;background:#fff!important;color:#172033!important;
  border:1px solid #e5e7eb!important;border-radius:14px!important;font-weight:800!important;
  display:flex!important;align-items:center!important;justify-content:center!important;gap:11px!important;
  box-shadow:0 10px 26px rgba(0,0,0,.24)!important;
}
.google-btn:hover{background:#f8fafc!important;transform:translateY(-1px)}
.google-icon{width:25px;height:25px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 25px}
.google-icon svg{display:block;width:24px;height:24px}
.auth-form input{font-size:16px!important}

/* Groups creation form: keep labels and controls in their own cells */
#groupCreateBox .form-grid{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:16px!important;align-items:start!important;width:100%!important;direction:rtl!important;
}
#groupCreateBox .form-grid>label{
  display:flex!important;flex-direction:column!important;gap:8px!important;min-width:0!important;
  color:#e8ecf7!important;font-size:13px!important;font-weight:800!important;text-align:right!important;
}
#groupCreateBox .form-grid>label.full{grid-column:1/-1!important}
#groupCreateBox input,#groupCreateBox select,#groupCreateBox textarea{
  position:static!important;transform:none!important;display:block!important;width:100%!important;max-width:100%!important;
  min-width:0!important;margin:0!important;border:1px solid rgba(255,255,255,.09)!important;
  border-radius:12px!important;background:#0b1020!important;color:#f7f8ff!important;
  padding:0 14px!important;font:inherit!important;text-align:right!important;
}
#groupCreateBox input,#groupCreateBox select{height:46px!important}
#groupCreateBox textarea{min-height:96px!important;height:auto!important;padding:12px 14px!important;resize:vertical!important}
#groupCreateBox #groupSlug{direction:ltr!important;text-align:left!important}

@media(max-width:600px){
  .auth-shell{min-height:100vh!important;padding:24px 14px!important;gap:14px!important}
  .logo-mark{width:68px!important;height:68px!important;border-radius:20px!important;margin-bottom:10px!important}
  .auth-brand h1{font-size:28px!important}
  .auth-card{width:100%!important;padding:20px 16px!important;border-radius:20px!important}
  #groupCreateBox .form-grid{grid-template-columns:1fr!important;gap:13px!important}
  #groupCreateBox .form-grid>label.full{grid-column:auto!important}
  #groupCreateBox input,#groupCreateBox select,#groupCreateBox textarea{font-size:16px!important}
}

/* SNNS v32.2 — auth visibility hotfix */
#authView.hidden{display:none!important;}
#mainView.hidden{display:none!important;}


/* ===== SNNS Media Studio v33 ===== */
.video-feed-card{position:relative;min-height:620px;aspect-ratio:9/16;background:#03050a;border:1px solid rgba(255,255,255,.10);border-radius:24px;box-shadow:0 20px 55px rgba(0,0,0,.34);isolation:isolate}
.feed-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#000}
.video-gradient{position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(0,0,0,.20),transparent 35%,rgba(0,0,0,.10) 55%,rgba(0,0,0,.82) 100%)}
.video-author{position:absolute;right:18px;left:90px;bottom:74px;display:flex;align-items:center;gap:10px;z-index:2;color:#fff}
.video-author img{width:42px;height:42px;border-radius:50%;object-fit:cover;border:2px solid rgba(255,255,255,.85)}
.video-author div{min-width:0}.video-author strong,.video-author small{display:block}.video-author small{opacity:.75}.feed-follow{margin-inline-start:auto;border:1px solid rgba(255,255,255,.45);background:rgba(10,14,25,.48);backdrop-filter:blur(10px);color:#fff;border-radius:999px;padding:7px 13px;font-weight:800}
.video-caption{position:absolute;right:18px;left:90px;bottom:30px;z-index:2;color:#fff;font-size:14px;line-height:1.55;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.video-privacy-pill{position:absolute;right:18px;top:18px;z-index:3;background:rgba(4,8,18,.58);backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.16);color:#fff;padding:7px 10px;border-radius:999px;font-size:11px;font-weight:800}
.video-actions{position:absolute;left:12px;bottom:24px;z-index:3;display:flex;flex-direction:column;gap:8px;align-items:center}
.video-action{width:58px;min-height:50px;border:0;background:rgba(6,10,20,.50);backdrop-filter:blur(12px);color:#fff;border-radius:16px;display:grid;place-items:center;text-decoration:none;cursor:pointer;padding:5px}.video-action span{font-size:20px;line-height:1}.video-action b{font-size:9px}.video-action.active{background:rgba(225,29,72,.72)}.video-action.disabled{opacity:.55}.video-action.delete-video{background:rgba(127,29,29,.52)}
.snns-publish-card{width:min(620px,calc(100vw - 28px));max-height:92vh;overflow:auto;padding:0!important;border-radius:25px!important;background:linear-gradient(180deg,#10172a,#090d19)!important;border:1px solid rgba(255,255,255,.12)!important;box-shadow:0 30px 90px rgba(0,0,0,.58)!important}
.publish-head{position:sticky;top:0;z-index:4;display:flex;justify-content:space-between;align-items:center;padding:18px 20px;background:rgba(10,15,28,.92);backdrop-filter:blur(18px);border-bottom:1px solid rgba(255,255,255,.08)}.publish-head strong{display:block;font-size:18px}.publish-head small{display:block;color:#94a3b8;margin-top:3px}.publish-head button{width:36px;height:36px;border-radius:50%;border:1px solid rgba(255,255,255,.12);background:#151d31;color:#fff;font-size:23px}
.publish-preview{display:block;width:min(280px,80%);aspect-ratio:9/16;max-height:390px;object-fit:contain;background:#000;margin:18px auto;border-radius:18px;border:1px solid rgba(255,255,255,.10)}
.publish-field{display:grid;gap:8px;padding:0 20px 15px}.publish-field>span{font-size:12px;font-weight:900;color:#cbd5e1}.publish-field textarea,.publish-field select{width:100%;border:1px solid rgba(255,255,255,.11);background:#0b1221;color:#fff;border-radius:14px;padding:12px;outline:none}.publish-field textarea{min-height:86px;resize:vertical}.publish-grid{display:grid;grid-template-columns:1fr 1fr;gap:0}.publish-toggles{padding:22px 20px 15px;display:grid;gap:12px}.publish-toggles label{display:flex;align-items:center;gap:9px;color:#dce5f3;font-size:13px}.publish-toggles input{accent-color:#6366f1;width:18px;height:18px}.publish-actions{display:flex;gap:10px;justify-content:flex-end;padding:16px 20px 20px;border-top:1px solid rgba(255,255,255,.07)}.publish-actions button{min-width:120px}.publish-progress{margin:0 20px 12px;padding:12px;border-radius:13px;background:rgba(79,70,229,.12);border:1px solid rgba(99,102,241,.28);color:#c7d2fe}.publish-progress i{display:block;height:4px;border-radius:99px;background:linear-gradient(90deg,#6366f1,#06b6d4);animation:snnsUpload 1.1s ease-in-out infinite;margin-bottom:7px;transform-origin:right}@keyframes snnsUpload{0%{transform:scaleX(.12)}50%{transform:scaleX(1)}100%{transform:scaleX(.12)}}
@media(max-width:700px){.video-feed-card{min-height:calc(100svh - 150px);border-radius:18px}.publish-grid{grid-template-columns:1fr}.publish-preview{max-height:330px}.video-author{left:78px}.video-caption{left:78px}.video-action{width:52px}}

/* ===== SNNS v34 — Dual Identity / Light Mode ===== */
.snns-theme-toggle{min-width:88px;white-space:nowrap}
body.snns-light{background:#f6f8fc!important;color:#172033!important}
body.snns-light #app,body.snns-light .app-shell,body.snns-light .content{background:#f6f8fc!important;color:#172033!important}
body.snns-light .topbar{background:rgba(255,255,255,.92)!important;border-color:#e4e9f2!important;box-shadow:0 8px 28px rgba(15,23,42,.05)!important}
body.snns-light .topbar strong,body.snns-light .topbar b,body.snns-light .topbar h1,body.snns-light .topbar h2{color:#111827!important}
body.snns-light .soft-btn,body.snns-light .language-select{background:#fff!important;color:#334155!important;border-color:#dbe3ef!important}
body.snns-light .online-pill{background:#ecfdf5!important;color:#047857!important;border-color:#a7f3d0!important}
body.snns-light .sidebar{background:linear-gradient(180deg,#0d1730,#101a34)!important;border-color:#1f2c49!important;box-shadow:-16px 0 42px rgba(15,23,42,.08)!important}
body.snns-light .page-panel,body.snns-light .section-card,body.snns-light .user-card,body.snns-light .history-card,body.snns-light .notification-card,body.snns-light .nearby-card,body.snns-light .profile-card,body.snns-light .company-card,body.snns-light .group-card{color:#172033}
body.snns-light .hero-row,body.snns-light .section-card,body.snns-light .empty-state,body.snns-light .nearby-toolbar{background:#fff!important;border-color:#e1e7f0!important;box-shadow:0 12px 34px rgba(15,23,42,.055)!important}
body.snns-light .hero-row h2,body.snns-light .section-title h2,body.snns-light .empty-state h3,body.snns-light .user-card strong,body.snns-light .nearby-card strong{color:#111827!important}
body.snns-light .hero-row p,body.snns-light .section-title p,body.snns-light .empty-state p,body.snns-light .user-card small,body.snns-light .nearby-card small{color:#64748b!important}
body.snns-light .eyebrow{color:#4f46e5!important}
body.snns-light .radar-hero{background:linear-gradient(135deg,#ffffff,#f5f3ff)!important;border:1px solid #e3e1ff!important;box-shadow:0 18px 48px rgba(79,70,229,.08)!important;color:#172033!important}
body.snns-light .radar-copy h2{color:#111827!important}body.snns-light .radar-copy p{color:#64748b!important}
body.snns-light .radar-visual{filter:drop-shadow(0 16px 28px rgba(79,70,229,.13))}
body.snns-light .radar-ring{border-color:rgba(99,102,241,.28)!important;background:rgba(99,102,241,.035)!important}
body.snns-light .radar-center{background:linear-gradient(135deg,#6366f1,#4f46e5)!important;box-shadow:0 0 0 10px rgba(99,102,241,.10),0 12px 30px rgba(79,70,229,.28)!important}
body.snns-light .nearby-chip{background:#fff!important;color:#475569!important;border-color:#dbe3ef!important}
body.snns-light .nearby-chip.active{background:#4f46e5!important;color:#fff!important;border-color:#4f46e5!important}
body.snns-light input:not([type=checkbox]):not([type=radio]),body.snns-light textarea,body.snns-light select{background:#fff;color:#172033;border-color:#dbe3ef}
body.snns-light .video-page{color:#172033}
@media(max-width:700px){.snns-theme-toggle{min-width:44px;font-size:0}.snns-theme-toggle::first-letter{font-size:17px}}
