/* Seapp Web 1.9.0 — redesign (camada final, carregada depois de style.css)
   Base: tons neutros inspirados no Discord + azul/ciano da marca Seapp. */
:root{
  --bg:#1e1f22;--panel-solid:#2b2d31;--panel-2:#232428;--stroke:#3a3c42;--stroke-soft:#2e3035;
  --text:#f2f3f5;--muted:#b5bac1;--muted-2:#80848e;
  --blue:#4f7cff;--blue-2:#3dd6ff;--green:#23a559;--red:#f23f43;--yellow:#f0b232;
  --chat:#313338;--rail:#1e1f22;--side:#2b2d31;--hover:rgba(78,80,88,.4);--active:rgba(78,80,88,.6);
  --radius:8px;--ring:0 0 0 2px #1e1f22,0 0 0 4px var(--blue-2);
  font-family:"gg sans","Inter","Segoe UI",system-ui,-apple-system,Roboto,"Helvetica Neue",Arial,sans-serif;
}
html,body{background:var(--bg)!important;color:var(--text)}
body{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
:focus-visible{outline:2px solid var(--blue-2);outline-offset:2px;border-radius:6px}
::-webkit-scrollbar{width:12px;height:12px}
::-webkit-scrollbar-thumb{background:#1a1b1e;border:3px solid transparent;border-radius:8px;background-clip:padding-box}
::-webkit-scrollbar-thumb:hover{background:#111214;background-clip:padding-box;border:3px solid transparent}
::-webkit-scrollbar-track{background:transparent}

/* Estrutura */
.server-rail{background:var(--rail)!important;border-right:0!important;padding:12px 0!important;gap:8px!important}
.nav-panel{background:var(--side)!important;border-right:1px solid #1f2023!important}
.content-shell,.content-view,.messages{background:var(--chat)!important}
.rail-divider{width:32px!important;height:2px!important;border-radius:2px;background:#35363c!important}

/* Ícones de servidor: círculo -> quadrado arredondado ao passar o mouse/ativo */
.server-icon{width:48px!important;height:48px!important;border-radius:50%!important;background:var(--chat)!important;border:0!important;box-shadow:none!important;transition:border-radius .15s ease,background .15s ease,transform .15s ease}
.server-icon:hover,.server-icon.active{border-radius:16px!important;background:var(--blue)!important}
.server-icon.add{color:var(--green)!important}.server-icon.add:hover{background:var(--green)!important;color:#fff!important}
.server-icon img{border-radius:inherit}

/* Navegação lateral */
.nav-item{border-radius:6px!important;color:var(--muted)!important;background:transparent!important;border:0!important;min-height:38px;transition:background .12s,color .12s}
.nav-item:hover{background:var(--hover)!important;color:var(--text)!important}
.nav-item.active{background:var(--active)!important;color:#fff!important}
.nav-search input{background:#1e1f22!important;border:0!important;border-radius:6px!important;color:var(--text)!important}
.dm-sidebar-head span,.nav-subtitle{color:var(--muted-2)!important;font-size:12px!important;font-weight:700;letter-spacing:.02em}

/* Mensagens e composer */
.message-box,.message-compose-row{background:#383a40!important;border:0!important;border-radius:var(--radius)!important}
.message-box input,.message-box textarea,#messageInput,#directMessageInput{background:transparent!important;color:var(--text)!important}
.messages .message:hover{background:rgba(2,2,2,.06)}

/* Campos, botões e modais */
input,textarea,select{font-family:inherit}
.modal,.panel,.modal.panel{background:var(--side)!important;border:1px solid #1f2023!important;border-radius:12px!important;box-shadow:0 8px 40px rgba(0,0,0,.5)!important}
.modal-backdrop{background:rgba(0,0,0,.7)!important;backdrop-filter:blur(2px)}
button.primary,.primary{background:var(--blue)!important;color:#fff!important;border:0!important;border-radius:6px!important;font-weight:600}
button.primary:hover{filter:brightness(1.1)}
button.secondary,.secondary{background:#4e5058!important;color:#fff!important;border:0!important;border-radius:6px!important}
.notice.error{background:rgba(242,63,67,.12)!important;border:1px solid rgba(242,63,67,.4)!important;color:#ffb3b5!important}
.badge{background:var(--red)!important;color:#fff!important}

@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* ===== Perfil (estilo Discord) ===== */
#userProfileModal .profile-dashboard-card{
  --pa:var(--profile-accent,#5865f2);
  width:min(400px,96vw)!important;max-height:92vh;padding:0!important;border-radius:12px!important;overflow:auto;
  background:linear-gradient(180deg,color-mix(in srgb,var(--pa) 24%,#1e1f22) 0,#1e1f22 220px)!important;
  border:1px solid color-mix(in srgb,var(--profile-border,#3f4147) 70%,transparent)!important;
  box-shadow:0 12px 48px rgba(0,0,0,.55)!important;
}
#userProfileModal .profile-dashboard-banner{height:108px!important;border-radius:0!important;
  background:linear-gradient(135deg,var(--pa),var(--profile-secondary,#2b2d31))!important}
#userProfileModal .profile-dashboard-banner::after{display:none!important}
#userProfileModal .profile-banner-image{width:100%;height:100%;object-fit:cover}
#userProfileModal .profile-dashboard-close{top:10px!important;right:10px!important;width:30px!important;height:30px!important;border-radius:50%!important;background:rgba(0,0,0,.45)!important;border:0!important;color:#fff!important}
#userProfileModal .profile-dashboard-body{padding:0 16px 16px!important}
#userProfileModal .profile-dashboard-top{display:block!important;position:relative}
#userProfileModal .profile-dashboard-avatar-wrap{margin-top:-46px!important;width:92px;height:92px}
#userProfileModal .profile-dashboard-avatar{width:92px!important;height:92px!important;margin:0!important;border:6px solid #1e1f22!important;box-sizing:border-box;border-radius:50%!important;background:var(--pa)!important;font-size:30px;font-weight:700;overflow:hidden}
#userProfileModal .profile-avatar-presence{right:2px!important;bottom:2px!important;left:auto!important;top:auto!important;width:22px!important;height:22px!important;border:5px solid #1e1f22!important;border-radius:50%!important;box-sizing:border-box}
#userProfileModal .profile-avatar-presence.online{background:var(--green)!important}
#userProfileModal .profile-avatar-presence.offline{background:#80848e!important}
#userProfileModal .profile-dashboard-status-bubble{left:96px!important;top:-6px!important;max-width:240px;padding:6px 12px!important;border-radius:14px!important;background:#2b2d31!important;color:var(--text)!important;border:1px solid #3a3c42!important;font-size:13px}
#userProfileModal .profile-dashboard-status-bubble::before{display:none!important}
#userProfileModal .profile-dashboard-identity{padding:10px 0 0!important}
#userProfileModal .profile-dashboard-name-row h2{font-size:21px!important;font-weight:700;margin:0;color:#fff}
#userProfileModal .profile-online-badge{display:none!important}
#userProfileModal .profile-dashboard-nick{color:var(--muted)!important;font-size:14px!important;margin-top:2px}
#userProfileModal .profile-dashboard-actions{display:flex;gap:8px;margin-top:14px}
#userProfileModal .profile-action{height:34px;min-width:34px;padding:0 12px;border:0!important;border-radius:6px!important;background:#4e5058!important;color:#fff!important;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-weight:600;cursor:pointer}
#userProfileModal .profile-action.primary-action{background:var(--blue)!important;flex:1}
#userProfileModal .profile-action:hover:not(:disabled){filter:brightness(1.12)}
#userProfileModal .profile-action:disabled{opacity:.6;cursor:default}
/* abas como pílulas */
#userProfileModal .profile-dashboard-tabs{display:flex;gap:4px;margin:14px 0 8px!important;padding:0!important;border:0!important;background:transparent!important;overflow-x:auto}
#userProfileModal .profile-tab{flex:0 0 auto;padding:6px 12px!important;border:0!important;border-radius:6px!important;background:transparent!important;color:var(--muted)!important;font-size:13px;font-weight:600;cursor:pointer}
#userProfileModal .profile-tab:hover{background:var(--hover)!important;color:#fff!important}
#userProfileModal .profile-tab.active{background:var(--active)!important;color:#fff!important;box-shadow:none!important}
/* cartão interno com seções */
#userProfileModal .profile-tab-pane{background:#111214;border-radius:8px;padding:12px 14px;display:flex;flex-direction:column;gap:14px}
#userProfileModal .profile-tab-pane.hidden{display:none!important}
#userProfileModal .profile-dashboard-section{margin:0!important;padding:0!important;background:none!important;border:0!important}
#userProfileModal .profile-dashboard-section h3{margin:0 0 6px;font-size:12px!important;font-weight:700;color:var(--text);text-transform:none;letter-spacing:0}
#userProfileModal .profile-dashboard-section-title{display:flex;align-items:center;justify-content:space-between}
#userProfileModal .profile-dashboard-section-title span{font-size:12px;color:var(--muted-2)}
#userProfileModal .profile-dashboard-bio{margin:0;font-size:14px;line-height:1.4;color:var(--muted);white-space:pre-wrap;overflow-wrap:anywhere}
#userProfileModal .profile-created-logo{width:16px;height:16px;border-radius:50%}
#userProfileModal .profile-info-grid>div{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--text)}
/* "Cargos": insígnias como chips */
#userProfileModal .profile-badges-showcase{display:flex;flex-wrap:wrap;gap:6px}
#userProfileModal .profile-badge-panel-card{display:inline-flex;align-items:center;gap:6px;padding:4px 8px 4px 6px;border-radius:6px;background:#2b2d31!important;border:1px solid #3a3c42!important;box-shadow:none!important}
#userProfileModal .profile-badge-panel-icon,#userProfileModal .profile-badge-panel-tag{width:18px!important;height:18px!important;min-width:18px;border-radius:50%!important;display:grid;place-items:center;font-size:10px;background:transparent!important;padding:0!important}
#userProfileModal .profile-badge-panel-icon img{width:18px;height:18px}
#userProfileModal .profile-badge-panel-tag{width:auto!important;min-width:0;color:var(--pa)}
#userProfileModal .profile-badge-panel-copy strong{font-size:12px;font-weight:600;color:var(--text)}
#userProfileModal .profile-badge-panel-copy small{display:none}
#userProfileModal .profile-status-card{display:none}
/* servidores / amigos em comum */
#userProfileModal .profile-common-groups{display:flex;flex-direction:column;gap:2px}
#userProfileModal .profile-common-group{display:flex;align-items:center;gap:10px;width:100%;padding:6px;border:0;border-radius:6px;background:transparent;color:var(--text);text-align:left;cursor:pointer}
#userProfileModal .profile-common-group:hover{background:var(--hover)}
#userProfileModal .profile-common-group img,#userProfileModal .profile-common-group>span:first-child{width:32px;height:32px;border-radius:50%;object-fit:cover;display:grid;place-items:center;background:var(--blue);font-weight:700;font-size:12px}
#userProfileModal .profile-no-groups{padding:10px;color:var(--muted-2);font-size:13px;text-align:center}
@media(max-width:620px){#userProfileModal .profile-dashboard-card{width:100%!important;max-height:100dvh;border-radius:12px 12px 0 0!important}}

/* ajustes de layout do cartão */
#userProfileModal .profile-dashboard-card{position:relative!important}
#userProfileModal .profile-dashboard-avatar-wrap{position:relative!important;display:block!important;flex:none!important;width:92px!important;height:92px!important}
#userProfileModal .profile-dashboard-avatar{display:grid!important;place-items:center;flex:none!important;aspect-ratio:1}
#userProfileModal .profile-dashboard-avatar img{width:100%;height:100%;border-radius:50%;object-fit:cover}
#userProfileModal .profile-avatar-presence{position:absolute!important}
#userProfileModal .profile-dashboard-status-bubble{position:absolute!important;top:6px!important}
#userProfileModal .profile-badge-panel-icon{overflow:hidden}
#userProfileModal .profile-badge-panel-icon .founder-wreath{width:18px;height:18px;position:relative;display:block}
#userProfileModal .profile-badge-panel-icon .founder-wreath img{width:18px;height:18px}
#userProfileModal .profile-badge-panel-icon .founder-wreath i{display:none}
#userProfileModal .profile-dashboard-status-bubble.hidden{display:none!important}
#userProfileModal .profile-dashboard-close{position:absolute!important;z-index:5;display:grid;place-items:center;cursor:pointer}
#userProfileModal .profile-dashboard-status-bubble{width:max-content;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#userProfileModal .profile-dashboard-status-bubble i{margin-right:6px}

/* ===== Topo: logo e busca alinhados ===== */
.server-rail,.nav-panel{background-image:none!important}
#homeBtn.server-icon{width:48px!important;height:48px!important;margin:0!important;padding:0!important;display:grid;place-items:center;background:var(--chat)!important;box-shadow:none!important}
#homeBtn.server-icon img{width:32px!important;height:32px!important;object-fit:contain;filter:none!important;border-radius:0}
#homeBtn.server-icon:hover,#homeBtn.server-icon.active{background:var(--blue)!important}
.nav-panel>label.nav-search.nav-search-clean{margin:18px 12px 12px!important;height:36px!important;padding:0 10px!important;border-radius:6px!important;background:#1e1f22!important;border:0!important;box-shadow:none!important;gap:8px}
.nav-search input{background:transparent!important;box-shadow:none!important;height:100%;padding:0!important;font-size:14px!important}
.nav-search i{color:var(--muted-2)!important}
.nav-search input::placeholder{color:var(--muted-2)!important}
.nav-search:focus-within{outline:2px solid var(--blue-2)}

/* ===== Barra lateral do grupo ===== */
.group-nav-title{display:flex;align-items:center;justify-content:space-between;height:48px;margin:0 0 8px;padding:0 12px 0 16px;border-bottom:1px solid #1f2023;box-shadow:0 1px 0 rgba(0,0,0,.1)}
.group-nav-main{display:flex;align-items:center;min-width:0}
.group-nav-main #navGroupAvatar{display:none!important}
.group-nav-main strong{font-size:15px;font-weight:700;color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#groupOptionsBtn{width:30px;height:30px;display:grid;place-items:center;border:0!important;border-radius:6px!important;background:transparent!important;color:var(--muted)!important;cursor:pointer}
#groupOptionsBtn:hover{background:var(--hover)!important;color:#fff!important}
.nav-subtitle{display:flex;align-items:center;gap:6px;padding:12px 16px 4px!important;margin:0!important;font-size:12px!important;font-weight:700;color:var(--muted-2)!important;text-transform:none!important;letter-spacing:0!important}
.nav-subtitle b{font-weight:600;color:var(--muted-2)}
.member-mini-list{display:flex;flex-direction:column;gap:1px;padding:0 8px 8px!important}
.member-mini{display:flex!important;align-items:center;gap:10px;min-height:42px;padding:5px 8px!important;border-radius:6px!important;background:transparent!important;border:0!important;color:var(--muted)!important;cursor:pointer}
.member-mini:hover{background:var(--hover)!important;color:var(--text)!important}
.member-mini .mini-avatar{width:32px!important;height:32px!important;border-radius:50%!important;flex:none;object-fit:cover}
.member-mini .member-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px;font-weight:500}
.member-mini.online .member-name{color:var(--text)}
.member-incall{font-size:12px;color:var(--green)}
.nav-panel .user-card,.user-panel{background:#232428!important;border-top:0!important}

/* ===== Indicador de fala ===== */
.is-speaking{box-shadow:0 0 0 2px #1e1f22,0 0 0 4px var(--green)!important;transition:box-shadow .12s ease}
.mini-avatar,#directFriendAvatar{transition:box-shadow .15s ease}
.voice-person .mini-avatar{border-radius:50%}

/* ===== Mensagens: excluir ===== */
.messages .message{position:relative}
.message-actions{position:absolute;top:-12px;right:16px;display:none;background:#313338;border:1px solid #1f2023;border-radius:8px;box-shadow:0 2px 10px rgba(0,0,0,.35);overflow:hidden}
.messages .message:hover .message-actions,.message-actions:focus-within,.message-actions:has(.confirm){display:flex}
.message-delete{display:inline-flex;align-items:center;gap:6px;height:30px;min-width:32px;padding:0 9px;border:0;background:transparent;color:var(--muted);font-size:13px;font-weight:600;cursor:pointer;justify-content:center}
.message-delete:hover{background:rgba(242,63,67,.14);color:var(--red)}
.message-delete.confirm{background:var(--red);color:#fff}
.message-delete:disabled{opacity:.5;cursor:default}
@media(hover:none){.message-actions{display:flex;position:static;margin-top:6px;border:0;background:none;box-shadow:none;align-self:flex-start}}

/* ===== Botões de voz e teste de microfone ===== */
.control-row button.danger,.control-row button[aria-pressed="true"]{background:var(--red)!important;color:#fff!important}
.mic-test{display:flex;flex-direction:column;gap:10px;margin:14px 0;padding:14px;border-radius:10px;background:#232428;border:1px solid #1f2023}
.mic-test-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.mic-test-head strong{display:block;font-size:14px}.mic-test-head small{color:var(--muted);font-size:12px}
.mic-test-head button{flex:none;min-height:34px;padding:0 14px;font-weight:600;cursor:pointer}
.mic-test-head button.danger{background:var(--red)!important}
.mic-meter{height:10px;border-radius:6px;background:#111214;overflow:hidden}
.mic-meter i{display:block;height:100%;width:0;border-radius:6px;background:linear-gradient(90deg,var(--green) 0,var(--green) 60%,var(--yellow) 80%,var(--red) 100%);background-size:100vw 100%;transition:width .06s linear}
.mic-test-loop{margin:0!important;padding:0!important;background:none!important;border:0!important}

/* ===== Perfil: degradê de duas cores (primária → destaque) ===== */
#userProfileModal .profile-dashboard-card{background:linear-gradient(180deg,var(--profile-bg,#1c6ea4) 0,var(--profile-secondary,#0d1b3a) 100%)!important;border-color:rgba(255,255,255,.1)!important}
#userProfileModal .profile-dashboard-banner{background:var(--profile-bg,#1c6ea4)!important}
#userProfileModal .profile-dashboard-avatar{border-color:var(--profile-bg,#1c6ea4)!important;background:var(--profile-secondary,#0d1b3a)!important}
#userProfileModal .profile-avatar-presence{border-color:var(--profile-bg,#1c6ea4)!important}
#userProfileModal .profile-tab-pane{background:rgba(0,0,0,.32)!important}
#userProfileModal .profile-tab.active,#userProfileModal .profile-action{background:rgba(0,0,0,.35)!important}
#userProfileModal .profile-action.primary-action{background:rgba(255,255,255,.2)!important}
#userProfileModal .profile-badge-panel-card{background:rgba(0,0,0,.3)!important;border-color:rgba(255,255,255,.12)!important}
#userProfileModal .profile-dashboard-status-bubble{background:rgba(0,0,0,.45)!important;border-color:rgba(255,255,255,.12)!important;backdrop-filter:blur(6px)}

/* ===== Editar perfil (estilo Discord: formulário + prévia) ===== */
.profile-edit-modal{width:min(860px,96vw)!important;max-height:92vh;overflow:auto;padding:0!important}
.profile-hidden-file{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.pe-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:0}
.pe-form{padding:24px;display:flex;flex-direction:column;gap:16px;min-width:0}
.pe-form h2{margin:0;font-size:20px;color:#fff}
.pe-sub{margin:-10px 0 0;color:var(--muted);font-size:14px}
.pe-field{display:flex;flex-direction:column;gap:6px}
.pe-field>label,.profile-field-title label{font-size:12px;font-weight:700;color:var(--muted);text-transform:none;letter-spacing:.02em}
.profile-field-title{display:flex;justify-content:space-between;align-items:center}.profile-field-title small{color:var(--muted-2);font-size:12px}
.pe-field input:not([type=color]):not([type=hidden]),.pe-field textarea{width:100%;box-sizing:border-box;padding:10px 12px;border:0!important;border-radius:6px!important;background:#1e1f22!important;color:var(--text)!important;font-size:15px;resize:vertical;outline:0}
.pe-field input:focus,.pe-field textarea:focus{outline:2px solid var(--blue-2)}
.field-hint{color:var(--muted-2);font-size:12px}
.pe-media{display:flex;gap:8px;flex-wrap:wrap}
.profile-media-button{display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 14px;border-radius:6px;background:#4e5058;color:#fff;font-size:14px;font-weight:600;cursor:pointer}
.profile-media-button:hover{background:#5d6069}
.profile-hidden-file:focus-visible+*{outline:2px solid var(--blue-2)}
.pe-swatches{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}
.pe-swatch{aspect-ratio:1;border-radius:50%;border:2px solid transparent;background:linear-gradient(160deg,var(--a),var(--b));cursor:pointer;padding:0;transition:transform .12s}
.pe-swatch:hover{transform:scale(1.08)}
.pe-swatch.active{border-color:#fff;box-shadow:0 0 0 2px #2b2d31 inset}
.pe-colors{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.profile-color-control{display:flex;flex-direction:column;gap:6px;padding:10px;border-radius:8px;background:#232428}
.profile-color-control>span{font-size:12px;font-weight:600;color:var(--muted)}
.profile-color-control>div{display:flex;align-items:center;gap:8px}
.profile-color-control input[type=color]{width:36px;height:36px;padding:0;border:0;border-radius:6px;background:none;cursor:pointer}
.profile-color-hex{flex:1;min-width:0;font-family:ui-monospace,Consolas,monospace;text-transform:uppercase}
.pe-actions{display:flex;justify-content:flex-end;position:sticky;bottom:0;padding-top:8px}
.pe-actions .primary{min-height:40px;padding:0 20px;font-size:15px;cursor:pointer}
.pe-preview{padding:24px 24px 24px 0;display:flex;flex-direction:column;gap:8px}
.pe-preview-label{font-size:12px;font-weight:700;color:var(--muted)}
.pe-card{--profile-bg:#1c6ea4;--profile-secondary:#0d1b3a;border-radius:10px;overflow:hidden;background:linear-gradient(180deg,var(--profile-bg),var(--profile-secondary));box-shadow:0 8px 24px rgba(0,0,0,.4);color:#fff;position:sticky;top:24px}
.profile-edit-banner{height:96px;background:var(--profile-bg);position:relative;overflow:hidden}
.profile-edit-banner .profile-banner-image{width:100%;height:100%;object-fit:cover}
.pe-card-body{padding:0 14px 16px;display:flex;flex-direction:column;gap:2px}
.pe-card-body #profileModalAvatar{width:80px;height:80px;margin-top:-40px;border:6px solid var(--profile-bg);box-sizing:border-box;border-radius:50%;font-size:26px;overflow:hidden;display:grid;place-items:center;background:var(--profile-secondary)}
.pe-card-body #profileModalAvatar img{width:100%;height:100%;object-fit:cover}
.pe-card-body #profileModalName{font-size:19px;margin-top:8px;overflow-wrap:anywhere}
.pe-card-body #profileModalNick{color:rgba(255,255,255,.75);font-size:13px}
.pe-preview-status{margin:8px 0 0;padding:4px 10px;border-radius:12px;background:rgba(0,0,0,.35);font-size:13px;width:max-content;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pe-card-section{margin-top:12px;padding:10px 12px;border-radius:8px;background:rgba(0,0,0,.32)}
.pe-card-section h3{margin:0 0 4px;font-size:12px;color:#fff}.pe-card-section p{margin:0;font-size:13px;color:rgba(255,255,255,.8);overflow-wrap:anywhere;white-space:pre-wrap}
@media(max-width:760px){.pe-layout{grid-template-columns:1fr}.pe-preview{order:-1;padding:16px 16px 0}.pe-card{position:static}.pe-form{padding:16px}.pe-swatches{grid-template-columns:repeat(6,1fr)}}
.pe-actions{background:linear-gradient(to top,var(--side) 60%,transparent);margin:0 -24px -24px;padding:16px 24px 24px!important}
@media(max-width:760px){.pe-actions{margin:0 -16px -16px;padding:12px 16px 16px!important}}

/* ===== Compartilhar tela (seletor único) ===== */
.screen-share-modal{width:min(720px,96vw)!important;max-height:92vh;overflow:auto;padding:24px!important;display:flex;flex-direction:column;gap:14px}
.screen-share-modal h2{margin:0;font-size:20px;color:#fff}.share-sub{margin:-8px 0 0;color:var(--muted);font-size:14px}
.share-tabs{display:flex;gap:4px;border-bottom:1px solid #1f2023}
.share-tabs button{padding:8px 14px;border:0;border-bottom:2px solid transparent;background:none;color:var(--muted);font-weight:600;cursor:pointer}
.share-tabs button.active{color:#fff;border-color:var(--blue)}
.share-sources{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:10px;max-height:300px;overflow:auto;padding:2px}
.share-source{display:flex;flex-direction:column;gap:6px;padding:8px;border:2px solid transparent;border-radius:8px;background:#232428;color:var(--text);cursor:pointer;text-align:left}
.share-source:hover{background:#2e3035}.share-source.selected{border-color:var(--blue);background:#2b2f45}
.share-source>img{width:100%;aspect-ratio:16/9;object-fit:contain;background:#111214;border-radius:4px}
.share-source span{display:flex;align-items:center;gap:6px;min-width:0;font-size:13px}
.share-source em{font-style:normal;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.share-app-icon{width:16px;height:16px;flex:none}
.share-empty{grid-column:1/-1;text-align:center;color:var(--muted-2);padding:24px}
.share-field{display:flex;flex-direction:column;gap:6px}.share-field>label{font-size:12px;font-weight:700;color:var(--muted)}
.share-chips{display:flex;flex-wrap:wrap;gap:6px}
.share-chips button{padding:8px 12px;border:0;border-radius:6px;background:#4e5058;color:#fff;font-size:13px;font-weight:600;cursor:pointer}
.share-chips button.active{background:var(--blue)}
.share-audio-row{flex-direction:row;align-items:center;justify-content:space-between;gap:16px;padding:12px;border-radius:8px;background:#232428}
.share-audio-row strong{display:block;font-size:14px}.share-audio-row small{color:var(--muted);font-size:12px}
.share-actions{display:flex;justify-content:flex-end;gap:8px}
.share-actions button{min-height:38px;padding:0 18px;cursor:pointer}.share-actions button:disabled{opacity:.5;cursor:default}

/* ===== Cor do anel de fala: ciano do tema Seapp ===== */
.is-speaking{box-shadow:0 0 0 2px #1e1f22,0 0 0 4px var(--blue-2),0 0 14px 3px rgba(61,214,255,.5)!important}
.member-incall{color:var(--blue-2)!important}

/* ===== Perfil: contraste automático (fundo claro / escuro) ===== */
#userProfileModal .profile-dashboard-card,.pe-card{--pf-text:#fff;--pf-muted:rgba(255,255,255,.76);--pf-pane:rgba(0,0,0,.32);--pf-chip:rgba(0,0,0,.3);--pf-line:rgba(255,255,255,.14)}
#userProfileModal .profile-dashboard-card[data-tone="light"],.pe-card[data-tone="light"]{--pf-text:#17181c;--pf-muted:rgba(23,24,28,.74);--pf-pane:rgba(255,255,255,.5);--pf-chip:rgba(255,255,255,.55);--pf-line:rgba(0,0,0,.14)}
#userProfileModal .profile-dashboard-name-row h2,.pe-card-body #profileModalName,#userProfileModal .profile-dashboard-section h3,.pe-card-section h3{color:var(--pf-text)!important}
#userProfileModal .profile-dashboard-nick,.pe-card-body #profileModalNick{color:var(--pf-muted)!important}
#userProfileModal .profile-dashboard-bio,.pe-card-section p,#userProfileModal .profile-info-grid>div{color:var(--pf-text)!important}
#userProfileModal .profile-dashboard-section-title span{color:var(--pf-muted)!important}
#userProfileModal .profile-tab-pane,.pe-card-section{background:var(--pf-pane)!important}
#userProfileModal .profile-tab{color:var(--pf-muted)!important}
#userProfileModal .profile-tab:hover,#userProfileModal .profile-tab.active{color:var(--pf-text)!important;background:var(--pf-chip)!important}
#userProfileModal .profile-action{background:var(--pf-chip)!important;color:var(--pf-text)!important}
#userProfileModal .profile-action.primary-action{background:var(--pf-chip)!important;border:1px solid var(--pf-line)!important}
#userProfileModal .profile-dashboard-status-bubble,.pe-preview-status{background:var(--pf-chip)!important;color:var(--pf-text)!important;border-color:var(--pf-line)!important}
#userProfileModal .profile-common-group{color:var(--pf-text)!important}
#userProfileModal .profile-no-groups{color:var(--pf-muted)!important}
/* abas sem a barra de rolagem preta */
#userProfileModal .profile-dashboard-tabs{scrollbar-width:none;overflow-x:auto;gap:2px!important}
#userProfileModal .profile-dashboard-tabs::-webkit-scrollbar{display:none;height:0}
#userProfileModal .profile-tab{padding:6px 9px!important;font-size:12.5px!important;white-space:nowrap}

/* ===== Insígnias: só ícones, logo abaixo do @usuário (padrão para todos os perfis) ===== */
#userProfileModal .profile-dashboard-badges{display:flex;align-items:center;gap:4px;width:max-content;max-width:100%;margin-top:10px;padding:4px 6px;border-radius:8px;background:var(--pf-chip);border:1px solid var(--pf-line)}
#userProfileModal .profile-dashboard-badges.hidden{display:none!important}
.pbadge{position:relative;display:grid;place-items:center;width:26px;height:26px;border-radius:6px;cursor:default;transition:transform .12s,background .12s;color:var(--pf-text)}
.pbadge:hover,.pbadge:focus-visible{background:rgba(127,127,127,.25);transform:translateY(-1px)}
.pbadge img{width:20px;height:20px;object-fit:contain}
.pbadge.founder img{width:20px;height:20px;border-radius:50%;box-shadow:0 0 0 2px #f0b232}
.pbadge.founder i{position:absolute;top:-4px;right:-1px;font-size:9px;color:#f0b232;filter:drop-shadow(0 1px 1px rgba(0,0,0,.5))}
.pbadge.friend{color:var(--blue-2)}.pbadge.friend i{font-size:15px}
#userProfileModal .profile-dashboard-card[data-tone="light"] .pbadge.friend{color:#1b6fb8}

/* ===== Barra "Voz conectada" no tema do site ===== */
.persistent-call-dock{margin:8px!important;padding:10px!important;border-radius:12px!important;background:linear-gradient(180deg,rgba(61,214,255,.09),rgba(79,124,255,.07)),#232428!important;border:1px solid rgba(79,124,255,.3)!important;box-shadow:0 4px 16px rgba(0,0,0,.25)!important;display:flex;flex-direction:column;gap:10px}
.persistent-call-dock.hidden{display:none!important}
.persistent-call-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0!important;padding:0!important}
.persistent-call-connected{display:flex;align-items:center;gap:10px;min-width:0;flex:1;padding:0!important;border:0!important;background:none!important;cursor:pointer;text-align:left}
.persistent-call-signal{width:36px;height:36px;flex:none;display:grid;place-items:center;border-radius:10px;background:linear-gradient(135deg,rgba(61,214,255,.22),rgba(79,124,255,.22))!important;color:var(--blue-2)!important;border:1px solid rgba(61,214,255,.35)!important;font-size:16px}
.persistent-call-copy{display:flex;flex-direction:column;min-width:0}
.persistent-call-copy strong{color:var(--blue-2)!important;font-size:14px;font-weight:700}
.persistent-call-copy small{color:var(--muted)!important;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.persistent-call-top-actions{display:flex;align-items:center;gap:6px}
.persistent-call-wave{display:inline-flex;align-items:flex-end;gap:2px;height:16px}
.persistent-call-wave i{width:3px;border-radius:2px;background:var(--blue-2)!important;animation:seapp-wave 1s ease-in-out infinite}
.persistent-call-wave i:nth-child(1){height:6px}.persistent-call-wave i:nth-child(2){height:14px;animation-delay:.15s}.persistent-call-wave i:nth-child(3){height:9px;animation-delay:.3s}.persistent-call-wave i:nth-child(4){height:12px;animation-delay:.45s}
@keyframes seapp-wave{50%{transform:scaleY(.45)}}
.persistent-call-hangup{width:32px;height:32px;display:grid;place-items:center;border:0!important;border-radius:8px!important;background:rgba(242,63,67,.14)!important;color:var(--red)!important;cursor:pointer}
.persistent-call-hangup:hover{background:var(--red)!important;color:#fff!important}
.persistent-call-actions{display:grid!important;grid-template-columns:repeat(4,1fr);gap:6px;margin:0!important}
.persistent-call-actions button{height:34px;min-width:0;padding:0!important;display:grid;place-items:center;border:0!important;border-radius:8px!important;background:#2e3035!important;color:var(--text)!important;cursor:pointer;font-size:0!important}
.persistent-call-actions button i{font-size:15px!important}
.persistent-call-actions button span{display:none!important}
.persistent-call-actions button:hover{background:#3a3d44!important}
.persistent-call-actions button.danger,.persistent-call-actions button[aria-pressed="true"],.persistent-call-actions #persistentCallMute.danger{background:rgba(242,63,67,.16)!important;color:var(--red)!important}
.persistent-call-actions #persistentCallLeave:hover{background:var(--red)!important;color:#fff!important}
.persistent-call-actions #persistentCallMute.muted{background:rgba(242,63,67,.16)!important;color:var(--red)!important}

#userProfileModal .profile-dashboard-avatar{color:var(--pf-text,#fff)!important}
.persistent-call-hangup{display:none!important}
.persistent-call-copy strong{white-space:nowrap}

/* ===== Sem orbes/grade decorativos dentro do app (eram a causa do azul na barra lateral) ===== */
body:has(#appView:not(.hidden)) .bg-orb,body:has(#appView:not(.hidden)) .bg-grid{display:none!important}

/* ===== Barra lateral: coluna com rodapé fixo ===== */
.nav-panel{display:flex!important;flex-direction:column;height:100%;min-height:0;overflow:hidden!important}
.nav-panel>label.nav-search{flex:none}
.nav-panel>.nav-section{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin}
.nav-panel>.nav-section.hidden{display:none!important}
.persistent-call-dock{flex:none}
.profile-strip{flex:none;margin:0!important;padding:0 8px!important;height:56px;display:flex;align-items:center;gap:4px;background:#232428!important;border-top:1px solid #1a1b1e!important}
.profile-main{flex:1;min-width:0;display:flex!important;align-items:center;gap:10px;padding:4px 6px!important;border:0!important;border-radius:6px!important;background:transparent!important;text-align:left;cursor:pointer;color:inherit}
.profile-main:hover{background:var(--hover)!important}
.profile-main>span:last-child{min-width:0;display:block}
.profile-main strong{display:block;font-size:14px;line-height:1.2;color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.profile-main small{display:block;font-size:12px;line-height:1.2;color:var(--muted)!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.profile-main .avatar{width:34px!important;height:34px!important;flex:none}
#logoutBtn{flex:none;width:32px;height:32px;display:grid;place-items:center;border:0!important;border-radius:6px!important;background:transparent!important;color:var(--muted)!important;cursor:pointer}
#logoutBtn:hover{background:var(--hover)!important;color:#fff!important}

/* ===== Entrar na call (barra lateral) ===== */
.sidebar-call{margin:10px 10px 2px!important;padding:8px 8px 8px 10px!important;display:flex;align-items:center;justify-content:space-between;gap:8px;border-radius:10px!important;background:#232428!important;border:1px solid #1f2023!important;box-shadow:none!important}
.sidebar-call.hidden{display:none!important}
.sidebar-call .voice-entry-copy{display:flex;align-items:center;gap:10px;min-width:0}
.sidebar-call .voice-entry-icon{width:34px;height:34px;flex:none;display:grid;place-items:center;border-radius:8px;background:rgba(61,214,255,.12)!important;color:var(--blue-2)!important;border:0!important}
.sidebar-call strong{display:block;font-size:14px;color:#fff}
.sidebar-call small{display:block;font-size:12px;color:var(--muted)!important;white-space:nowrap}
.sidebar-call .voice-entry-button{flex:none;height:32px;padding:0 12px!important;display:inline-flex;align-items:center;gap:6px;border:0!important;border-radius:8px!important;background:var(--blue)!important;color:#fff!important;font-weight:700;cursor:pointer;box-shadow:none!important}
.sidebar-call .voice-entry-button:hover{filter:brightness(1.12)}
#voiceNotice{margin:6px 10px 0!important;font-size:12.5px!important}

/* ===== Controles da call dentro do dock ===== */
.persistent-call-actions.hidden{display:none!important}
.persistent-call-actions.group-actions{grid-template-columns:repeat(5,1fr)}
.persistent-call-dock[data-call-type="group"] .direct-actions{display:none!important}
.persistent-call-dock:not([data-call-type="group"]) .group-actions{display:none!important}
.persistent-call-actions button.danger#leaveVoiceBtn{background:rgba(242,63,67,.16)!important;color:var(--red)!important}
.persistent-call-actions #muteBtn.danger,.persistent-call-actions #muteBtn.muted,.persistent-call-actions #shareBtn.danger,.persistent-call-actions #deafenBtn.danger{background:rgba(242,63,67,.16)!important;color:var(--red)!important}
.persistent-call-actions #shareBtn.danger{background:rgba(61,214,255,.18)!important;color:var(--blue-2)!important}

/* ===== Coluna da direita: só aparece quando há tela compartilhada ===== */
.group-view{grid-template-columns:minmax(0,1fr)!important}
.voice-column{display:none!important}
.group-view:has(#screenStage:not(.hidden)){grid-template-columns:minmax(0,1fr) minmax(360px,52%)!important}
.group-view:has(#screenStage:not(.hidden)) .voice-column{display:block!important;background:#1e1f22!important}
.voice-column .voice-head,.voice-column #voiceIdle,.voice-column #voiceParticipants{display:none!important}
.voice-column .voice-card{background:none!important;border:0!important;box-shadow:none!important;padding:0!important;backdrop-filter:none!important}
.persistent-call-actions.group-actions{grid-template-columns:repeat(5,minmax(0,1fr))!important}
.persistent-call-actions.direct-actions{grid-template-columns:repeat(4,minmax(0,1fr))!important}
.sidebar-call .voice-entry-icon{display:none!important}
.sidebar-call .voice-entry-copy>div{min-width:0}
.sidebar-call strong{font-size:14px}
.persistent-call-signal{width:32px!important;height:32px!important}
.persistent-call-connected{gap:8px!important}
.persistent-call-copy strong{font-size:13px!important}
.persistent-call-wave{margin-right:2px}

/* ===== Transmissão: formato real do vídeo + tela cheia sem cortar ===== */
.screen-video-wrap{aspect-ratio:var(--ar,16/9)}
.screen-tile[data-fit="fill"] video{object-fit:cover}
.screen-tile[data-fit="orig"] .screen-video-wrap{overflow:auto;display:block}
.screen-tile[data-fit="orig"] video{width:auto;height:auto;max-width:none;max-height:none;object-fit:none}
.screen-fit-btn{width:auto!important;min-width:0;padding:0 8px!important;font-size:11px!important;font-weight:700;white-space:nowrap}
.screen-tile:fullscreen{position:relative;display:block!important;background:#000}
.screen-tile:fullscreen .screen-video-wrap{position:absolute;inset:0;aspect-ratio:auto!important}
.screen-tile:fullscreen video{width:100%;height:100%}
.screen-tile:fullscreen .screen-tile-bar{position:absolute;left:0;right:0;bottom:0;padding:28px 18px 14px!important;border:0!important;background:linear-gradient(transparent,rgba(0,0,0,.78))!important;opacity:0;transition:opacity .2s;z-index:3}
.screen-tile.fs-controls:fullscreen .screen-tile-bar{opacity:1}
.screen-tile:fullscreen{cursor:none}.screen-tile.fs-controls:fullscreen{cursor:default}

/* ===== Estado de voz na lista de membros ===== */
.member-state{position:relative;display:inline-grid;place-items:center;width:20px;height:20px;font-size:13px;flex:none}
.member-state.muted{color:var(--red)}
.member-state.deaf{color:var(--red)}
.member-state.deaf::after{content:"";position:absolute;left:1px;right:1px;top:50%;height:2px;border-radius:2px;background:var(--red);box-shadow:0 0 0 1.5px #2b2d31;transform:rotate(-40deg)}
.member-admin{font-size:11px;color:var(--blue-2);margin-left:2px}

/* ===== Chat bloqueado ===== */
.chat-lock-banner{display:flex;align-items:center;gap:8px;margin:0 16px 6px;padding:8px 12px;border-radius:8px;background:rgba(240,178,50,.12);border:1px solid rgba(240,178,50,.35);color:#f0c46a;font-size:13px}
.chat-lock-banner.hidden{display:none}
.message-box:has(#messageInput:disabled){opacity:.55}

/* ===== Configurações do grupo: convites, papéis ===== */
.group-settings-shell .gs-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.gs-row strong{display:block;font-size:14px;color:#fff}.gs-row small{color:var(--muted);font-size:12px}
.gs-row button{flex:none;display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:0 14px;cursor:pointer}
.gs-invite-form{display:grid;grid-template-columns:1fr 1fr auto;gap:8px;align-items:end;margin-bottom:10px}
.gs-invite-form label{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:700;color:var(--muted)}
.gs-invite-form select{height:36px;padding:0 10px;border:0;border-radius:6px;background:#1e1f22;color:var(--text)}
.gs-invite-form button{height:36px;padding:0 14px;display:inline-flex;align-items:center;gap:6px;cursor:pointer}
.invite-code{font-family:ui-monospace,Consolas,monospace;letter-spacing:.04em}
.role-tag{font-weight:700}.role-tag.owner{color:#f0b232}.role-tag.admin{color:var(--blue-2)}
#revokeAllInvitesBtn{margin-top:10px}
@media(max-width:620px){.gs-invite-form{grid-template-columns:1fr 1fr}.gs-invite-form button{grid-column:1/-1}}

/* ===== Áudio por pessoa (volume / silenciar só para mim) ===== */
.member-audio-btn{flex:none;width:26px;height:26px;display:none;place-items:center;border:0;border-radius:6px;background:rgba(255,255,255,.08);color:var(--muted);cursor:pointer;font-size:12px}
.member-mini:hover .member-audio-btn,.member-audio-btn:focus-visible{display:grid}
.member-audio-btn:hover{background:var(--blue);color:#fff}
.member-localmuted{flex:none;font-size:12px;color:var(--muted-2)}
.user-audio-pop{position:fixed;z-index:10000;width:248px;padding:12px;border-radius:12px;background:#111214;border:1px solid #2e3035;box-shadow:0 12px 36px rgba(0,0,0,.6);color:var(--text);display:flex;flex-direction:column;gap:12px}
.ua-head{display:flex;align-items:center;gap:10px;min-width:0}
.ua-head .mini-avatar{width:36px;height:36px;border-radius:50%;object-fit:cover;flex:none}
.ua-head strong{display:block;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ua-head small{display:block;font-size:11px;color:var(--muted-2)}
.ua-row{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;font-size:12px;font-weight:700;color:var(--muted)}
.ua-row b{min-width:42px;text-align:right;color:var(--text);font-variant-numeric:tabular-nums}
.ua-row input[type=range]{width:100%;accent-color:var(--blue-2);cursor:pointer}
.user-audio-pop.is-muted .ua-row input{opacity:.45}
.ua-actions{display:flex;gap:8px}
.ua-actions button{height:34px;border:0;border-radius:8px;background:#2e3035;color:var(--text);font-weight:600;font-size:13px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:6px}
.ua-actions button:hover{background:#3a3d44}
.ua-mute{flex:1}.user-audio-pop.is-muted .ua-mute{background:rgba(242,63,67,.18);color:var(--red)}
.ua-reset{padding:0 12px}

/* ===== Quem está na call ===== */
#groupNav>.nav-subtitle{display:none}
.member-group-title{display:flex;align-items:center;gap:6px;padding:14px 16px 4px;font-size:12px;font-weight:700;color:var(--muted-2)}
.member-group-title b{font-weight:600}
.member-group-title.in-call{color:var(--blue-2)}
.member-mini.online{background:rgba(61,214,255,.06)!important}
.member-mini.online:hover{background:rgba(61,214,255,.12)!important}
.call-avatars{display:flex;align-items:center;margin-top:6px;min-height:0}
.call-avatars:empty{display:none}
.call-avatar{width:22px;height:22px;border-radius:50%;object-fit:cover;flex:none;display:grid;place-items:center;background:var(--blue);color:#fff;font-size:10px;font-weight:700;border:2px solid #232428;box-sizing:content-box;margin-left:-6px}
.call-avatar:first-child{margin-left:0}
.call-more{background:#3a3d44;color:var(--text);font-size:10px}
