:root { font-family: Inter, Segoe UI, Arial, sans-serif; color: #f4f4f7; background: #111217; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at top, #202231, #111217 55%); }
header { display: flex; justify-content: space-between; align-items: center; padding: 24px 32px; border-bottom: 1px solid #2b2d3b; }
.header-actions { display: flex; gap: 8px; }
.icon-button { width: 40px; min-width: 40px; height: 40px; padding: 0; display: inline-grid; place-items: center; border-radius: 6px; font-size: 19px; }
h1 { margin: 0 0 4px; font-size: 28px; }
p { margin: 0; color: #b9bac8; }
main { padding: 24px 32px 36px; }
.browser-compatibility { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; padding: 14px 16px; border: 1px solid #3b4263; background: #171923; }
.browser-compatibility strong { display: block; margin-bottom: 4px; font-size: 14px; }
.browser-compatibility p { font-size: 13px; line-height: 1.4; }
.browser-compatibility-actions { display: flex; flex: 0 0 auto; gap: 8px; }
.account-card { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(180px, .7fr) minmax(340px, 1.5fr) auto; gap: 18px; align-items: center; margin: -24px -32px 20px; padding: 16px 32px; border-bottom: 1px solid #2d3040; background: #171923; }
.account-identity, .account-subscription { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.account-identity strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-identity > span:last-child, .account-subscription > span:last-child { color: #9296aa; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-label { color: #e5b94b; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.plan-badge { align-self: flex-start; border: 1px solid #4b5064; border-radius: 6px; padding: 4px 8px; color: #d8dbe6; font-size: 12px; font-weight: 800; }
.plan-badge.plan-n1 { border-color: #5f73ee; color: #aeb8ff; }
.plan-badge.plan-n2 { border-color: #3f9e78; color: #7ed6ae; }
.plan-badge.plan-inactive { border-color: #a34a5b; color: #ff9aaa; }
.mock-billing-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mock-billing-actions button { padding: 8px 10px; font-size: 12px; white-space: nowrap; }
.privacy-card { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); gap: 18px; align-items: center; margin-bottom: 20px; padding: 18px; border: 1px solid #2d3040; background: #141722; }
.privacy-card h2 { margin: 3px 0 6px; font-size: 18px; }
.privacy-card p { font-size: 13px; line-height: 1.45; }
.privacy-label { color: #7ed6ae; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.privacy-points { display: grid; gap: 8px; }
.privacy-points span { min-height: 34px; padding: 9px 10px; border: 1px solid #30394a; border-radius: 6px; background: #10131c; color: #d8dbe6; font-size: 12px; font-weight: 700; }
.cookie-settings { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .8fr); align-items: center; gap: 18px; margin-bottom: 20px; padding: 18px; border: 1px solid #2d3040; background: #171923; }
.cookie-settings h2 { margin: 3px 0 6px; font-size: 18px; }
.cookie-settings p { font-size: 13px; line-height: 1.45; }
.cookie-settings-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; }
.cookie-settings-actions input { min-width: 0; padding: 8px; font-size: 12px; }
.service-setup { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 20px; border: 1px solid #2d3040; background: #171923; }
.service-column { min-width: 0; padding: 18px; }
.service-column + .service-column { border-left: 1px solid #2d3040; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.section-heading h2 { margin: 0 0 4px; font-size: 18px; }
.section-heading .hint { min-height: 0; }
.mock-badge { border: 1px solid #e5b94b; border-radius: 5px; padding: 3px 6px; color: #e5b94b; font-size: 10px; font-weight: 800; }
.inline-form { display: grid; gap: 8px; }
.discord-account-form { grid-template-columns: minmax(130px, .8fr) minmax(130px, 1fr) auto; }
.guild-affiliation-form { grid-template-columns: minmax(150px, 1fr) minmax(110px, .6fr) auto auto; }
.compact-list { margin-top: 12px; border-top: 1px solid #2d3040; }
.compact-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 9px 0; }
.compact-row + .compact-row { border-top: 1px solid rgba(255,255,255,.06); }
.compact-info { min-width: 0; }
.compact-info strong, .compact-info span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.compact-info strong { font-size: 13px; }
.compact-info span { margin-top: 3px; color: #9296aa; font-size: 11px; }
.compact-row button { flex-shrink: 0; padding: 7px 9px; font-size: 12px; }
.compact-empty { padding: 16px 0 4px; color: #777d91; font-size: 12px; }
.public-links-section { margin-bottom: 20px; padding: 18px; border: 1px solid #2d3040; background: #171923; }
.public-link-form { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(150px, 1fr) 140px repeat(3, auto) auto; gap: 8px; align-items: center; }
.scope-option { display: flex; align-items: center; gap: 6px; padding: 8px; white-space: nowrap; font-size: 12px; font-weight: 600; }
.scope-option input { width: 16px; height: 16px; margin: 0; padding: 0; accent-color: #5f73ee; }
.created-link { display: flex; gap: 8px; margin-top: 12px; padding: 10px; border: 1px solid #3f9e78; background: rgba(63,158,120,.08); }
.created-link input { flex: 1; min-width: 0; }
.preferences-dialog { position: fixed; z-index: 10000; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(6,7,12,.72); }
.preferences-panel { width: min(100%, 780px); max-width: calc(100vw - 40px); max-height: min(760px, calc(100vh - 40px)); overflow-x: hidden; overflow-y: auto; padding: 18px; border: 1px solid #48507a; border-radius: 8px; background: #181b27; box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.preferences-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.preferences-header h2 { margin: 3px 0 0; font-size: 21px; }
.preferences-tabs { display: flex; gap: 8px; margin: 18px 0; border-bottom: 1px solid #303446; }
.preferences-tabs button { margin-bottom: -1px; border: 1px solid transparent; border-bottom: 0; border-radius: 6px 6px 0 0; background: transparent; color: #aeb2c6; padding: 9px 12px; }
.preferences-tabs button.active { border-color: #4b568d; background: #252a3e; color: #fff; }
.preferences-view h3 { margin: 0 0 4px; font-size: 18px; }
.compact-input-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 8px; }
.preferences-login-note { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 12px; border: 1px solid #3b4263; background: #151925; }
.preferences-login-note p { font-size: 13px; }
.preferences-login-note button { flex: 0 0 auto; }
.guest-invite-form { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(130px, .9fr) minmax(120px, .8fr); gap: 8px; align-items: center; }
.guest-invite-form > input, .guest-invite-form > select { min-width: 0; }
.guest-invite-form .scope-option { min-width: 0; white-space: normal; }
.guest-invite-form > button { grid-column: 1 / -1; justify-self: end; }
.command-panel-settings { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(0, 1.2fr); gap: 16px; align-items: center; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid #303446; }
.command-panel-settings h4 { margin: 0 0 4px; font-size: 15px; }
.command-panel-settings .hint { min-height: 0; font-size: 12px; }
.command-panel-form { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; }
.command-panel-form select { min-width: 0; }
.card { background: rgba(24, 26, 36, .94); border: 1px solid #2d3040; border-radius: 18px; padding: 18px; box-shadow: 0 18px 40px rgba(0,0,0,.22); }
.connection-card { margin-bottom: 20px; }
.voice-channels-list { display: grid; gap: 5px; margin-top: 12px; }
.voice-channel-item { display: flex; justify-content: space-between; gap: 10px; min-height: 34px; padding: 8px 10px; border: 1px solid #30394a; border-radius: 6px; background: #10131c; color: #d8dbe6; font-size: 12px; cursor: context-menu; }
.voice-channel-item span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.voice-channel-item small { flex: 0 0 auto; color: #9296aa; }
.extra-audio-lanes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.audio-title { display: flex; align-items: center; gap: 8px; width: fit-content; margin: -6px -8px 0; padding: 6px 8px; border: 1px solid transparent; border-radius: 6px; cursor: pointer; transition: background .16s ease, border-color .16s ease, color .16s ease; }
.audio-title::after { content: 'Renomear'; color: #aeb8ff; font-size: 11px; font-weight: 700; opacity: 0; transform: translateX(-3px); transition: opacity .16s ease, transform .16s ease; }
.audio-title:hover, .audio-title:focus-visible { border-color: #4b568d; background: rgba(88,101,242,.12); color: #fff; outline: none; }
.audio-title:hover::after, .audio-title:focus-visible::after { opacity: 1; transform: translateX(0); }
.extra-local { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 10px; }
.audio-lane .hint { min-height: 38px; }
.access-card { margin-bottom: 20px; }
.hidden { display: none !important; }
.access-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.admin-access-tools { margin-top: 12px; border-top: 1px solid #2d3040; padding-top: 12px; }
.member-search-row { display: flex; gap: 8px; align-items: center; }
.member-search-row input { flex: 1; min-width: 0; }
.manual-member-row { display: grid; grid-template-columns: minmax(140px, .8fr) minmax(160px, 1fr) auto auto; gap: 8px; margin-top: 8px; }
.members-list { margin-top: 10px; max-height: 260px; overflow-y: auto; border: 1px solid #393c4f; border-radius: 12px; background: #0f1017; padding: 4px; }
.member-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px; border-radius: 10px; }
.member-row + .member-row { border-top: 1px solid rgba(255,255,255,.06); }
.member-info { min-width: 0; flex: 1; }
.member-info strong { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member-info span { display: block; margin-top: 2px; color: #8f91a8; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member-link { margin-top: 7px; padding: 7px 8px; border-radius: 8px; font-size: 12px; color: #cfd2ff; background: #11131f; }
.member-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; flex-shrink: 0; max-width: 390px; }
.member-actions button { padding: 8px 10px; white-space: nowrap; }
.member-empty { padding: 18px; text-align: center; color: #8f91a8; font-size: 13px; }
.control-locked .layer,
.control-locked .connection-card { opacity: .76; }
.local-locked #playMusicBtn,
.local-locked #playAmbienceBtn,
.local-locked #playSoundBtn { opacity: .45; cursor: not-allowed; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; align-items: center; margin: 10px 0; }
label { color: #d9d9e3; font-weight: 600; }
select, input { width: 100%; background: #0f1017; color: #f4f4f7; border: 1px solid #393c4f; border-radius: 12px; padding: 10px; }
.file-list { margin-top: 12px; height: 280px; }
.search { margin-top: 14px; }
.download-box { margin-top: 8px; }
.download-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px 0 0; }
.download-row input { flex: 1; min-width: 0; }
.download-row button { white-space: nowrap; }
.download-format-btn { min-width: 112px; background: #5865f2; }
.download-cancel-btn:disabled { opacity: .5; cursor: not-allowed; }
.download-progress-wrap { width: 100%; height: 8px; margin-top: 6px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.12); }
.download-progress-bar { width: 0%; height: 100%; border-radius: 999px; background: #747eec; transition: width .2s ease; }
.download-status { margin-top: 4px; min-height: 16px; font-size: 12px; color: #b9bac8; }
.download-format-menu { position: fixed; z-index: 9999; min-width: 110px; padding: 6px; border-radius: 8px; background: #181a24; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 10px 28px rgba(0,0,0,.35); }
.download-format-menu.hidden { display: none; }
.download-format-menu button { display: block; width: 100%; padding: 7px 10px; text-align: left; border: 0; border-radius: 6px; background: transparent; color: inherit; cursor: pointer; }
.download-format-menu button:hover { background: rgba(255,255,255,.12); filter: none; }
.download-format-menu button:disabled { cursor: not-allowed; opacity: .35; }
.rename-dialog { position: fixed; z-index: 10000; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(6,7,12,.72); }
.rename-dialog-panel { width: min(100%, 420px); display: grid; gap: 16px; padding: 18px; border: 1px solid #48507a; border-radius: 8px; background: #181b27; box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.rename-dialog-label { color: #aeb8ff; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.rename-dialog-panel h2 { margin: 4px 0 0; font-size: 20px; }
.rename-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
button { background: #2f3347; color: #fff; border: 0; border-radius: 12px; padding: 11px 15px; font-weight: 700; cursor: pointer; }
button:hover { filter: brightness(1.15); }
button:disabled { cursor: wait; opacity: .65; filter: none; }
button.primary { background: #5865f2; }
button.danger { background: #d83b55; }
.hint { min-height: 42px; font-size: 14px; }
.slider { display: block; margin-top: 14px; }
.slider input { margin-top: 8px; padding: 0; }
pre { margin: 14px 0 0; white-space: pre-wrap; background: #0f1017; color: #d3d5e5; padding: 12px; border-radius: 12px; border: 1px solid #2d3040; }
.panel-presence { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 10px; color: #9296aa; font-size: 12px; }
.panel-presence::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #57c98a; box-shadow: 0 0 0 3px rgba(87,201,138,.12); }
.panel-presence strong { color: #d8dbe6; font-weight: 700; }
@media (max-width: 1180px) { .public-link-form { grid-template-columns: repeat(3, minmax(130px, 1fr)); } }
@media (max-width: 1050px) { .grid, .extra-audio-lanes { grid-template-columns: 1fr; } header { align-items: flex-start; gap: 12px; flex-direction: column; } .account-card { grid-template-columns: 1fr 1fr; } .service-setup, .cookie-settings { grid-template-columns: 1fr; } .service-column + .service-column { border-left: 0; border-top: 1px solid #2d3040; } }
@media (max-width: 720px) { .manual-member-row, .member-search-row, .member-row, .member-actions, .browser-compatibility, .preferences-login-note { flex-direction: column; display: flex; align-items: stretch; } .header-actions { width: 100%; flex-wrap: wrap; } .account-card { grid-template-columns: 1fr; margin-left: -20px; margin-right: -20px; padding: 16px 20px; } main { padding-left: 20px; padding-right: 20px; } .privacy-card, .cookie-settings, .cookie-settings-actions, .command-panel-settings, .command-panel-form { grid-template-columns: 1fr; } .discord-account-form, .guild-affiliation-form, .public-link-form, .guest-invite-form, .extra-local { grid-template-columns: 1fr; } .scope-option { min-height: 40px; } .created-link, .compact-row { align-items: stretch; flex-direction: column; } .browser-compatibility-actions { width: 100%; } .browser-compatibility-actions button { flex: 1; } .preferences-dialog { padding: 12px; } .preferences-panel { max-height: calc(100vh - 24px); padding: 16px; } }

/* === File Browser (explorador de arquivos) === */
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; padding: 5px 8px; background: #181a24; border: 1px solid #2d3040; border-radius: 10px; margin-top: 10px; min-height: 30px; font-size: 12px; }
.crumb-item { cursor: pointer; padding: 2px 5px; border-radius: 6px; color: #b9bac8; }
.crumb-item:hover { background: rgba(88,101,242,.22); color: #fff; }
.crumb-sep { color: #3d4060; padding: 0 1px; }
.browser-source-toggle { width: 26px; height: 24px; margin-left: 2px; padding: 0; border: 1px solid #3b4263; border-radius: 6px; background: #252a3e; color: #cfd4ff; font-size: 14px; line-height: 1; }
.browser-source-toggle:hover { background: #363f68; }
.browser-playlist-clear { width: 26px; height: 24px; margin-left: 2px; padding: 0; border: 1px solid #6d3442; border-radius: 6px; background: #2e1c25; color: #ffadb9; font-size: 14px; line-height: 1; }
.browser-playlist-clear:hover { background: #4b2633; }
.file-browser { margin-top: 6px; height: 260px; overflow-y: auto; background: #0f1017; border: 1px solid #393c4f; border-radius: 12px; padding: 4px; }
.fb-back { padding: 7px 10px; cursor: pointer; font-size: 13px; color: #7a7d96; border-radius: 8px; font-weight: 600; }
.fb-back:hover { background: rgba(255,255,255,.07); color: #b9bac8; }
.fb-folder { display: flex; align-items: center; gap: 6px; padding: 7px 10px; cursor: pointer; font-size: 13px; color: #c8c9d9; border-radius: 8px; font-weight: 600; }
.fb-folder:hover { background: rgba(88,101,242,.2); color: #fff; }
.playlist-track { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 6px; color: #c8c9d9; cursor: pointer; font-size: 13px; font-weight: 600; }
.playlist-track:hover { background: rgba(88,101,242,.2); color: #fff; }
.playlist-track.active { background: rgba(88,101,242,.28); color: #fff; }
.playlist-track.selected { box-shadow: inset 0 0 0 1px #9ca6ff; }
.playlist-track.active.selected { box-shadow: inset 0 0 0 1px #d8dcff; }
.playlist-track span { min-width: 24px; color: #8e96bd; font-size: 11px; font-variant-numeric: tabular-nums; }
.playlist-track small { margin-left: auto; color: #aeb8ff; font-size: 11px; font-weight: 700; }
.playlist-track.loading { border: 1px solid rgba(174,184,255,.28); }
.playlist-error { margin: 6px; padding: 8px; border: 1px solid #8b3e50; color: #ff9aaa; font-size: 12px; }
.fb-file { padding: 6px 10px 6px 18px; cursor: pointer; font-size: 13px; color: #d3d5e5; border-radius: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fb-file:hover { background: rgba(88,101,242,.14); }
.fb-file.selected { background: #5865f2; color: #fff; }
.fb-empty { padding: 24px; text-align: center; color: #4a4d62; font-size: 13px; }

/* === Seek bar (barra de progresso) === */
.seek-row { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.seek-time { font-size: 12px; color: #9b9db5; min-width: 36px; text-align: center; font-variant-numeric: tabular-nums; }
.seek-bar { flex: 1; padding: 0; height: 4px; accent-color: #5865f2; cursor: pointer; }
.seek-bar:disabled { opacity: 0.35; cursor: default; }

/* === Botão repeat === */
.repeat-btn { background: #2f3347; }
.repeat-btn.repeat-active { background: #5865f2; box-shadow: 0 0 0 2px #5865f266; }

/* Scrollbar geral do app */
::-webkit-scrollbar {
  width: 15px;
  height: 10px;
}

/* Fundo/trilho da barra */
::-webkit-scrollbar-track {
  background: #111217;
}

/* Parte que você arrasta */
::-webkit-scrollbar-thumb {
  background: #747eec;
  border-radius: 999px;
  border: 2px solid #111217;
}

/* Hover */
::-webkit-scrollbar-thumb:hover {
  background: #747eec;
}

/* Canto quando tem scroll horizontal + vertical */
::-webkit-scrollbar-corner {
  background: #111217;
}
